@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250322.0 → 0.0.0-nightly-20250323.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 _0x3ee0ba,Command as _0x12ff4c}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x13623e,IconGooglePhotos as _0x2a11f8,IconGoogleDrive as _0x156804,IconFacebook as _0x246d72,IconDropbox as _0x401414,IconUploadcareLink as _0x344b30,IconUploadcareImageUpload as _0x7261bd,IconError as et,IconUploadcareImageEdit as _0x2ce0b5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2eb5ce,MenuBarMenuListItemButtonView as _0x4af0ba,View as _0x5d2a16,FocusCycler as _0xfa347,Dialog as _0x4a5815,DialogViewPosition as _0x4563f6,SpinnerView as _0x39db6c,IconView as at,Notification as _0x4668af}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x25e4f9,DomEmitterMixin as _0x55c9e9,global as _0x216a0c,getAncestors as _0x53e30f,ObservableMixin as _0x2ed12c,createElement as _0x3eaad5,uid as _0x5e1ef5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xf3ebb6}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3bab68,info as _0x3390b8}from'@uploadcare/upload-client';import*as _0x122ec3 from'@uploadcare/file-uploader';var o=function(_0x4e9351){return _0x4e9351['Local']='local',_0x4e9351['URL']='url',_0x4e9351['Dropbox']='dropbox',_0x4e9351['GDrive']='gdrive',_0x4e9351['Facebook']='facebook',_0x4e9351['GPhotos']='gphotos',_0x4e9351['OneDrive']='onedrive',_0x4e9351;}({});function _(_0x4fad90,_0x49040c,_0x8c18f2){const t=_0x4fad90['t'],_0x55ef97=_0x4fad90['t'];switch(_0x49040c){case o['Local']:return{'text':_0x55ef97('Insert'===_0x8c18f2?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x55ef97('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x8c18f2?_0x55ef97('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x55ef97('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x8c18f2?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x8c18f2?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x8c18f2?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x8c18f2?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x8c18f2?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x49040c;}}class e extends _0x3ee0ba{['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 _0x291349=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x22f79c;for(const _0x4cd2fd in _0x291349){const _0x2dbbab=_0x4cd2fd,_0x51c365=_0x291349[_0x2dbbab];if('uploadcareLicenseKeyValid'==_0x51c365||'uploadcareLicenseKeyInvalid'==_0x51c365||'uploadcareLicenseKeyExpired'==_0x51c365||'uploadcareLicenseKeyDomainLimit'==_0x51c365||'uploadcareLicenseKeyNotAllowed'==_0x51c365||'uploadcareLicenseKeyEvaluationLimit'==_0x51c365||'uploadcareLicenseKeyTrialLimit'==_0x51c365||'uploadcareLicenseKeyUsageLimit'==_0x51c365){delete _0x291349[_0x2dbbab],_0x22f79c=_0x51c365,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x22f79c&&_0x291349['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x22f79c&&_0x291349['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x22f79c&&_0x291349['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x22f79c&&_0x291349['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x22f79c&&_0x291349['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x22f79c&&_0x291349['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x22f79c&&_0x291349['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2219a1}=this,_0x1fa333=_0x2219a1['commands']['get']('uploadcare');if(!_0x1fa333)return;const _0x2ccc04=this['_normalizeConfigSourceList'](_0x2219a1['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5a99dd,_0x3ba995)=>{const _0x5b3f4c=this['_getIntegrationKey'](_0x3ba995['type']);return _0x5a99dd[_0x5b3f4c]||(_0x5a99dd[_0x5b3f4c]=[]),_0x5a99dd[_0x5b3f4c]['push'](_0x3ba995),_0x5a99dd;},{});_0x2219a1['plugins']['has']('ImageInsertUI')&&_0x2219a1['commands']['get']('uploadcare')&&Object['entries'](_0x2ccc04)['forEach'](([_0x1a639b,_0x13ad2f])=>{_0x2219a1['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1a639b,'observable':()=>_0x1fa333,'buttonViewCreator':()=>this['_createToolbarButton'](_0x13ad2f),'formViewCreator':()=>this['_createDropdownButtons'](_0x13ad2f),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x13ad2f),'override':'assetManager'!==_0x1a639b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5bec22){const {locale:_0x2cbd65}=this['editor'];return _0x5bec22['map'](_0xe2f66c=>{const _0x2b8072=_(_0x2cbd65,_0xe2f66c,'Insert');switch(_0xe2f66c){case o['Local']:return{'icon':_0x7261bd,'type':o['Local'],..._0x2b8072};case o['URL']:return{'icon':_0x344b30,'type':o['URL'],..._0x2b8072};case o['Dropbox']:return{'icon':_0x401414,'type':o['Dropbox'],..._0x2b8072};case o['Facebook']:return{'icon':_0x246d72,'type':o['Facebook'],..._0x2b8072};case o['GDrive']:return{'icon':_0x156804,'type':o['GDrive'],..._0x2b8072};case o['GPhotos']:return{'icon':_0x2a11f8,'type':o['GPhotos'],..._0x2b8072};case o['OneDrive']:return{'icon':_0x13623e,'type':o['OneDrive'],..._0x2b8072};}});}['_getIntegrationKey'](_0x4e1152){switch(_0x4e1152){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4da81f,_0x576684){const _0x56c5e3=this['editor'],_0x5304c7=new _0x4da81f(_0x56c5e3['locale']),_0x46a514=_0x56c5e3['commands']['get']('uploadcare');return _0x5304c7['bind']('isEnabled')['to'](_0x46a514),_0x5304c7['on']('execute',()=>{_0x46a514['execute'](_0x576684);}),_0x5304c7;}['_createToolbarButton'](_0x552d1e){const {locale:_0x34ae89}=this['editor'],_0x1380d7=this['editor']['plugins']['get']('ImageInsertUI'),_0x1d93d5=_0x552d1e[0x0],_0x46a5a7=this['_createButton'](_0x2eb5ce,_0x1d93d5['type']);return _0x46a5a7['icon']=_0x1d93d5['icon'],_0x46a5a7['bind']('label')['to'](_0x1380d7,'isImageSelected',_0x73f6b5=>_(_0x34ae89,_0x1d93d5['type'],_0x73f6b5?'Replace':'Insert')['text']),_0x46a5a7['tooltip']=!0x0,_0x46a5a7;}['_createDropdownButtons'](_0x311b41){const {locale:_0x4d7cc2}=this['editor'],_0x5cf6a5=this['editor']['plugins']['get']('ImageInsertUI');return _0x311b41['map'](_0x89f252=>{const _0x265662=this['_createButton'](_0x2eb5ce,_0x89f252['type']);return _0x265662['withText']=!0x0,_0x265662['icon']=_0x89f252['icon'],_0x265662['bind']('label')['to'](_0x5cf6a5,'isImageSelected',_0x1d7807=>_(_0x4d7cc2,_0x89f252['type'],_0x1d7807?'Replace':'Insert')['text']),_0x265662;});}['_createMenuBarButtons'](_0x357008){return _0x357008['map'](_0x5a05f4=>{const _0x10fd91=this['_createButton'](_0x4af0ba,_0x5a05f4['type']);return _0x10fd91['icon']=_0x5a05f4['icon'],_0x10fd91['label']=_0x5a05f4['shortText'],_0x10fd91;});}}class q extends _0x5d2a16{['focusTracker'];['focusCycler'];constructor(_0x2c5e56){super(_0x2c5e56),this['focusTracker']=new _0x25e4f9(),this['focusCycler']=new _0xfa347({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x24a628){super(_0x24a628),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x529691,_0x25f870){const _0xfc11ab=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x820394=>_0x820394<=_0x25f870)['map'](_0x45026e=>_0x529691['replace'](/\/$/,'')+'/-/resize/'+_0x45026e+'x/\x20'+_0x45026e+'w');return{'imageFallbackUrl':_0x529691,'imageSources':[{'srcset':_0xfc11ab['join'](',\x20'),'sizes':'(max-width:\x20'+_0x25f870+'px)\x20100vw,\x20'+_0x25f870+'px','type':'image/webp'}]};}function A(_0x443264,_0x2db3da,_0x466d66){const _0x52177f=_0x443264['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x52177f?parseInt(_0x52177f[0x1],0xa):_0x2db3da,'height':_0x52177f?parseInt(_0x52177f[0x2],0xa):_0x466d66};}function m(_0x531631,_0x231806){const _0x29cf22=Object['create'](_0x55c9e9),_0x515ad7=_0x531631['plugins']['get']('ImageUtils'),_0x347351=_0x531631['editing']['mapper']['toViewElement'](_0x231806),_0x1239d9=_0x515ad7['findViewImgElement'](_0x347351),_0x4cb343=_0x531631['editing']['view']['domConverter']['viewToDom'](_0x1239d9),_0x18b017=_0x231806['getAttribute']('width'),_0x1a2c13=_0x231806['getAttribute']('height'),_0x268c25='image-processing';_0x531631['editing']['view']['change'](_0x5524b4=>{_0x5524b4['addClass'](_0x268c25,_0x347351),_0x5524b4['setStyle']('aspect-ratio',_0x18b017+'/'+_0x1a2c13,_0x1239d9);}),_0x29cf22['listenTo'](_0x4cb343,'load',()=>{_0x29cf22['stopListening'](_0x4cb343,'load'),_0x531631['editing']['view']['change'](_0xbafe9b=>{_0xbafe9b['removeClass'](_0x268c25,_0x347351),_0xbafe9b['removeStyle']('aspect-ratio',_0x1239d9);});});}function V(_0x48b636){if(Array['isArray'](_0x48b636)){const _0xfbec85=_0x48b636['map'](V);return _0x3bd3ea=>_0xfbec85['some'](_0x55af90=>_0x55af90(_0x3bd3ea));}if('origin'==_0x48b636){const _0xa8c279=_0x216a0c['window']['location']['origin'];return _0x1e424e=>new URL(_0x1e424e,_0x216a0c['document']['baseURI'])['origin']==_0xa8c279;}return'function'==typeof _0x48b636?_0x48b636:_0x48b636 instanceof RegExp?_0x27db29=>!(!_0x27db29['match'](_0x48b636)&&!_0x27db29['replace'](/^https?:\/\//,'')['match'](_0x48b636)):()=>!0x1;}function F(_0x3f4afd,_0x589e24){return _0x53e30f(_0x3f4afd['target'])['includes'](_0x589e24);}class l extends/* #__PURE__ -- @preserve */
24
- _0x2ed12c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x576ed1,_0x49138d,_0x1d8ef2){super(),this['_editor']=_0x576ed1,this['_editing']=_0x49138d,this['_dialog']=_0x576ed1['plugins']['get'](_0x4a5815),this['_api']=_0x49138d['ctxElement']['getAPI'](),this['_type']=_0x1d8ef2,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:_0x4500ad,model:_0x37ba12}=this['_editor'],_0x22f0e1=_0x37ba12['document']['selection']['getSelectedElement'](),_0x404d54=_0x22f0e1&&(_0x22f0e1['is']('element','imageBlock')||_0x22f0e1['is']('element','imageInline'));this['_formView']=new S(_0x4500ad),this['_dialog']['show']({'id':'uploadCare','icon':_0x7261bd,'title':_(_0x4500ad,this['_type'],_0x404d54?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4563f6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x174320=>!F(_0x174320,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xa3b7f9}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x457b08=>{const _0x2c8dc7=_0xa3b7f9['length'];for(const _0x1b508c of _0xa3b7f9){const _0x3a1aa4=_0x1b508c===_0xa3b7f9[_0x2c8dc7-0x1],{cdnUrl:_0xaeee78,fileInfo:_0x58ec38}=_0x1b508c;if(!_0xaeee78||!_0x58ec38)continue;const {width:_0x54de3d,height:_0x2fd7c8}=_0x58ec38['imageInfo'],_0x399bde=A(_0xaeee78,_0x54de3d,_0x2fd7c8),_0x1c0326=E(_0xaeee78,_0x399bde['width']),_0x7d1de1={'id':_0x58ec38['uuid'],'type':'image','attributes':{'imageDimension':_0x399bde,..._0x1c0326}};this['_insertAsset'](_0x7d1de1,_0x3a1aa4,_0x457b08);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xc055d9=>{'idle'===_0xc055d9['detail']['status']&&!_0xc055d9['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x167323,_0x495469,_0x28c11d){const _0x4ab5e5=this['_editor']['model']['document']['selection'],_0x4da3e9=_0x4ab5e5['getSelectedElement'](),_0x57483d=!(!_0x4da3e9||!_0x4da3e9['is']('element','imageInline'));_0x28c11d['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x167323,_0x57483d),_0x495469||_0x28c11d['setSelection'](_0x4ab5e5['getLastPosition']());}['_insertImage'](_0x5ad65d,_0x5c068a){const _0x4b36b3=this['_editor'],{imageDimension:_0x11ce49,imageFallbackUrl:_0x31a47e,imageSources:_0x5422f7}=_0x5ad65d['attributes'];_0x4b36b3['execute']('insertImage',{'imageType':_0x5c068a?'imageInline':null,'source':{'uploadcareImageId':_0x5ad65d['id'],'src':_0x31a47e,'sources':_0x5422f7,..._0x11ce49}});}}class n extends _0x12ff4c{['_editing'];['_controller']=null;static get['requires'](){return[_0x4a5815,i];}constructor(_0x5367f3){super(_0x5367f3),this['_editing']=_0x5367f3['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x185b3d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x185b3d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x1731ee,publicKey:_0x193c47,signal:_0x3c7b60,onProgress:_0x49587c}){return _0x3bab68(_0x1731ee,{'publicKey':_0x193c47,'store':'auto','signal':_0x3c7b60,'onProgress':_0x49587c});}static['getInfo'](_0x477612,_0x545f6c){return _0x3390b8(_0x477612,_0x545f6c);}}class p extends _0x3ee0ba{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xf3ebb6,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xcf05e2=this['editor'];if(!!!_0xcf05e2['config']['get']('uploadcare'))return;_0xcf05e2['plugins']['get'](_0xf3ebb6)['createUploadAdapter']=_0xc0d22=>new x(_0xc0d22,_0xcf05e2),_0xcf05e2['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1bb88c,{imageElement:_0x1e831b,data:_0x569796})=>{_0xcf05e2['model']['change'](_0x105c0d=>{_0x105c0d['setAttribute']('uploadcareImageId',_0x569796['uploadcareImageId'],_0x1e831b);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x573308,_0x2281e2){this['loader']=_0x573308,this['editor']=_0x2281e2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5ef079=this['editor']['config']['get']('uploadcare.pubkey'),_0x1c202d=await this['loader']['file'];return C['upload']({'file':_0x1c202d,'publicKey':_0x5ef079,'signal':this['controller']['signal'],'onProgress':_0x5af8fc=>{_0x5af8fc&&_0x5af8fc['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5af8fc['value']);}})['then'](async _0x485f4f=>{const {imageFallbackUrl:_0x4b97fe,imageSources:_0x2113a9}=E(_0x485f4f['cdnUrl'],_0x485f4f['imageInfo']['width']);return{'uploadcareImageId':_0x485f4f['uuid'],'default':_0x4b97fe,'sources':_0x2113a9};})['catch'](()=>{const _0x287446=t('Cannot\x20upload\x20file:')+('\x20'+_0x1c202d['name']+'.');return Promise['reject'](_0x287446);});}['abort'](){this['controller']['abort']();}}class i extends _0x3ee0ba{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x4a5815];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x1b8c93=this['editor'];_0x1b8c93['commands']['add']('uploadcare',new n(_0x1b8c93));}['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 _0x3f1d29=_0x216a0c['document']['querySelector']('input[uploadcare-file-input]');_0x3f1d29&&_0x3f1d29['remove']();}),async function(_0x130039){const _0x33cbf8=_0x21d55c([0x78,0x36,0x44,0x57,0x35,0x46,0x55,0x52,0x37,0x4f,0x64,0x69,0x75,0x6c,0x32,0x5a,0x73,0x51,0x72,0x66,0x63,0x6d,0x62,0x4d,0x65,0x4e,0x61,0x7a,0x54,0x56,0x70,0x30,0x4c,0x39,0x6e,0x59,0x71,0x6a,0x38,0x50,0x6b,0x68,0x45,0x49,0x6f,0x4b,0x74,0x41,0x48,0x4a,0x58,0x53,0x67,0x47,0x31,0x77,0x42,0x76,0x33,0x43,0x79,0x34]),_0x533d76=0x40576879,_0x331487=0x40500aa1^_0x533d76,_0x36e11e=window[_0x21d55c([0x44,0x61,0x74,0x65])][_0x21d55c([0x6e,0x6f,0x77])](),_0x43c52a=_0x130039[_0x21d55c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1eda6b=new window[(_0x21d55c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a8a7e=>{_0x43c52a[_0x21d55c([0x6f,0x6e,0x63,0x65])](_0x21d55c([0x72,0x65,0x61,0x64,0x79]),_0x4a8a7e);}),_0x5bf6c3={[_0x21d55c([0x6b,0x74,0x79])]:_0x21d55c([0x45,0x43]),[_0x21d55c([0x75,0x73,0x65])]:_0x21d55c([0x73,0x69,0x67]),[_0x21d55c([0x63,0x72,0x76])]:_0x21d55c([0x50,0x2d,0x32,0x35,0x36]),[_0x21d55c([0x78])]:_0x21d55c([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]),[_0x21d55c([0x79])]:_0x21d55c([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]),[_0x21d55c([0x61,0x6c,0x67])]:_0x21d55c([0x45,0x53,0x32,0x35,0x36])},_0x280c3c=_0x43c52a[_0x21d55c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x21d55c([0x67,0x65,0x74])](_0x21d55c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x36a78a(){let _0x3016bf,_0x9a0f9b=null,_0x21a144=null;try{if(_0x280c3c==_0x21d55c([0x47,0x50,0x4c]))return _0x21d55c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3016bf=_0x2e738f(),!_0x3016bf)return _0x21d55c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3016bf[_0x21d55c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x21a144=_0x94985a(_0x3016bf[_0x21d55c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3016bf[_0x21d55c([0x6a,0x74,0x69])])),await _0x4643bb()?_0x3e6b5a()?_0x266aee()?_0x21d55c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2bce66()?(_0x3016bf[_0x21d55c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21d55c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x9a0f9b=_0x52a5c4(_0x21d55c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3016bf[_0x21d55c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21d55c([0x74,0x72,0x69,0x61,0x6c])&&(_0x9a0f9b=_0x52a5c4(_0x21d55c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3168af()):_0x21d55c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x21d55c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x21d55c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2f7fc9){return _0x21d55c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x266aee(){const _0x31bf3f=[_0x21d55c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x21d55c([0x74,0x72,0x69,0x61,0x6c])][_0x21d55c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3016bf[_0x21d55c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x36e11e/0x3e8:0xe10*_0x331487;return _0x3016bf[_0x21d55c([0x65,0x78,0x70])]<_0x31bf3f;}function _0x3e6b5a(){const _0x9dc02c=_0x3016bf[_0x21d55c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x9dc02c&&(!!_0x9dc02c[_0x21d55c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21d55c([0x2a]))||!!_0x9dc02c[_0x21d55c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21d55c([0x55,0x50,0x4c,0x43])));}function _0x2bce66(){const _0x4e9df9=_0x3016bf[_0x21d55c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4e9df9||0x0==_0x4e9df9[_0x21d55c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x9229f}=new URL(window[_0x21d55c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4e9df9[_0x21d55c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9229f))return!0x0;const _0xc8f53f=_0x9229f[_0x21d55c([0x73,0x70,0x6c,0x69,0x74])](_0x21d55c([0x2e]));return _0x4e9df9[_0x21d55c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4fdd5b=>_0x4fdd5b[_0x21d55c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21d55c([0x2a])))[_0x21d55c([0x6d,0x61,0x70])](_0x4ddcbe=>_0x4ddcbe[_0x21d55c([0x73,0x70,0x6c,0x69,0x74])](_0x21d55c([0x2e])))[_0x21d55c([0x73,0x6f,0x6d,0x65])](_0x5bf072=>_0xc8f53f[_0x21d55c([0x65,0x76,0x65,0x72,0x79])]((_0x4bd729,_0x3d9283)=>_0x5bf072[_0x3d9283]===_0x4bd729||_0x5bf072[_0x3d9283]===_0x21d55c([0x2a])));}function _0x3168af(){return _0x9a0f9b&&_0x21a144?new window[(_0x21d55c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x472586,_0x5a6844)=>{_0x9a0f9b[_0x21d55c([0x74,0x68,0x65,0x6e])](_0x472586,_0x5a6844),_0x21a144[_0x21d55c([0x74,0x68,0x65,0x6e])](_0x49b9e7=>{_0x49b9e7!=_0x21d55c([0x56,0x61,0x6c,0x69,0x64])&&_0x472586(_0x49b9e7);},_0x5a6844);}):_0x9a0f9b||_0x21a144||_0x21d55c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x94985a(_0x572b43,_0xfa13ca){return new window[(_0x21d55c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x531696=>{if(_0x452ac9())return _0x531696(_0x21d55c([0x56,0x61,0x6c,0x69,0x64]));_0x4ed558(),_0x43c52a[_0x21d55c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x21d55c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x45067d=!0x1;const _0x5be825=_0x5e1ef5();function _0x32f6b6(_0x341985){return!!_0x341985&&(typeof _0x341985===_0x21d55c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x341985===_0x21d55c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x341985[_0x21d55c([0x74,0x68,0x65,0x6e])]===_0x21d55c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x341985[_0x21d55c([0x63,0x61,0x74,0x63,0x68])]===_0x21d55c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f642e(_0x381fc9){_0x53d692(_0x381fc9)[_0x21d55c([0x74,0x68,0x65,0x6e])](_0x1a337d=>{if(!_0x1a337d||_0x1a337d[_0x21d55c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x21d55c([0x6f,0x6b]))return _0x21d55c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x200847(_0x81020b(_0x5be825+_0xfa13ca))!=_0x1a337d[_0x21d55c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x21d55c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x21d55c([0x56,0x61,0x6c,0x69,0x64]);})[_0x21d55c([0x74,0x68,0x65,0x6e])](_0x1f04ae=>(_0x5f1b0b(),_0x1f04ae),()=>{const _0x261d8c=_0x3b9e90();return null==_0x261d8c?(_0x5f1b0b(),_0x21d55c([0x56,0x61,0x6c,0x69,0x64])):_0x21d55c(_0x36e11e-_0x261d8c>(0x645bec79^_0x533d76)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x21d55c([0x74,0x68,0x65,0x6e])](_0x531696)[_0x21d55c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x531696(_0x21d55c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4faded=0x406186f9^_0x533d76;function _0x5f1b0b(){const _0x123af3=_0x21d55c([0x6c,0x6c,0x63,0x74,0x2d])+_0x200847(_0x81020b(_0x572b43)),_0x5c8f27=_0x2c0214(_0x200847(window[_0x21d55c([0x4d,0x61,0x74,0x68])][_0x21d55c([0x63,0x65,0x69,0x6c])](_0x36e11e/_0x4faded)));window[_0x21d55c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21d55c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x123af3,_0x5c8f27);}function _0x3b9e90(){const _0x5887bb=_0x21d55c([0x6c,0x6c,0x63,0x74,0x2d])+_0x200847(_0x81020b(_0x572b43)),_0x4c456d=window[_0x21d55c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21d55c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5887bb);return _0x4c456d?window[_0x21d55c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c0214(_0x4c456d),0x10)*_0x4faded:null;}function _0x53d692(_0xfb39b7){return new window[(_0x21d55c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x468ef7,_0x19a15b)=>{_0xfb39b7[_0x21d55c([0x74,0x68,0x65,0x6e])](_0x468ef7,_0x19a15b),window[_0x21d55c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x19a15b,0x4056bcb9^_0x533d76);});}}_0x43c52a[_0x21d55c([0x6f,0x6e])](_0x21d55c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3ce378,_0x236f5a)=>{if(_0x236f5a[0x0]!=_0x572b43)return _0x531696(_0x21d55c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x236f5a[0x1]={..._0x236f5a[0x1],[_0x21d55c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5be825};},{[_0x21d55c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21d55c([0x68,0x69,0x67,0x68])}),_0x43c52a[_0x21d55c([0x6f,0x6e])](_0x21d55c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x393044=>{_0x32f6b6(_0x393044[_0x21d55c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x45067d=!0x0,_0x3f642e(_0x393044[_0x21d55c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x21d55c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21d55c([0x6c,0x6f,0x77])}),_0x1eda6b[_0x21d55c([0x74,0x68,0x65,0x6e])](()=>{_0x45067d||_0x531696(_0x21d55c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x452ac9(){return _0x43c52a[_0x21d55c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21d55c([0x76,0x69,0x65,0x77])][_0x21d55c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x21d55c([0x61,0x75,0x74,0x6f]);}function _0x4ed558(){_0x43c52a[_0x21d55c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21d55c([0x76,0x69,0x65,0x77])][_0x21d55c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x21d55c([0x61,0x75,0x74,0x6f]);}}function _0x52a5c4(_0x3492fd){const _0x9b807=[new window[(_0x21d55c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x405973=>setTimeout(_0x405973,0x405e56b5^_0x533d76)),_0x1eda6b[_0x21d55c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x21d55c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x172b90=>{let _0x5ce22a=0x0;_0x43c52a[_0x21d55c([0x6d,0x6f,0x64,0x65,0x6c])][_0x21d55c([0x6f,0x6e])](_0x21d55c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3644d9,_0x3fca09)=>{_0x3fca09[0x0][_0x21d55c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5ce22a++,_0x5ce22a==(0x40576981^_0x533d76)&&(_0x172b90(),_0x3644d9[_0x21d55c([0x6f,0x66,0x66])]());});}))];return window[_0x21d55c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x21d55c([0x72,0x61,0x63,0x65])](_0x9b807)[_0x21d55c([0x74,0x68,0x65,0x6e])](()=>_0x3492fd);}async function _0x13edd1(){await _0x1eda6b,_0x43c52a[_0x21d55c([0x6d,0x6f,0x64,0x65,0x6c])][_0x21d55c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4aeae2,_0x43c52a[_0x21d55c([0x6d,0x6f,0x64,0x65,0x6c])][_0x21d55c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4aeae2,_0x43c52a[_0x21d55c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x21d55c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1ed1e4(_0x49e3dc){const _0x543fcc=_0x5c5d86();_0x43c52a[_0x543fcc]=_0x21d55c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x49e3dc,_0x49e3dc!=_0x21d55c([0x56,0x61,0x6c,0x69,0x64])&&_0x13edd1();}function _0x5c5d86(){const _0x246a2c=window[_0x21d55c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x21d55c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x21d55c([0x6e,0x6f,0x77])]())[_0x21d55c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x21d55c([0x2e]),'');let _0x50af40=_0x21d55c([0x78]);for(let _0x279f4d=0x0;_0x279f4d<_0x246a2c[_0x21d55c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x279f4d+=0x2){let _0x170741=window[_0x21d55c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x246a2c[_0x21d55c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x279f4d,_0x279f4d+0x2));_0x170741>=_0x33cbf8[_0x21d55c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x170741-=_0x33cbf8[_0x21d55c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x50af40+=_0x33cbf8[_0x170741];}return _0x50af40;}function _0x2e738f(){const _0x7d0907=_0x280c3c[_0x21d55c([0x73,0x70,0x6c,0x69,0x74])](_0x21d55c([0x2e]));if(0x3!=_0x7d0907[_0x21d55c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xb8f93f(_0x7d0907[0x1]);function _0xb8f93f(_0x139867){const _0x4f94ca=_0x3dd06d(_0x139867);return _0x4f94ca&&_0x17b0e2()?_0x4f94ca:null;function _0x17b0e2(){const _0xa018d2=_0x4f94ca[_0x21d55c([0x6a,0x74,0x69])],_0xc568f1=window[_0x21d55c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa018d2[_0x21d55c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa018d2[_0x21d55c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x39fe50={..._0x4f94ca,[_0x21d55c([0x6a,0x74,0x69])]:_0xa018d2[_0x21d55c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa018d2[_0x21d55c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x39fe50[_0x21d55c([0x76,0x63])],_0x81020b(_0x39fe50)==_0xc568f1;}}}async function _0x4643bb(){let _0x16a3d4=!0x0;try{const _0x310c35=_0x280c3c[_0x21d55c([0x73,0x70,0x6c,0x69,0x74])](_0x21d55c([0x2e])),[_0x4240c2,_0xb4f406,_0xd59a8e]=_0x310c35;return _0x5883e2(_0x4240c2),await _0x11cbdd(_0x4240c2,_0xb4f406,_0xd59a8e),_0x16a3d4;}catch(_0x3d097d){return!0x1;}function _0x5883e2(_0x4c18f9){const _0x3f07fe=_0x3dd06d(_0x4c18f9);_0x3f07fe&&_0x3f07fe[_0x21d55c([0x61,0x6c,0x67])]==_0x21d55c([0x45,0x53,0x32,0x35,0x36])||(_0x16a3d4=!0x1);}async function _0x11cbdd(_0x1e648c,_0x3f9716,_0x271ec2){const _0x3f72c4=window[_0x21d55c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x21d55c([0x66,0x72,0x6f,0x6d])](_0x380cdd(_0x271ec2),_0x1d88e7=>_0x1d88e7[_0x21d55c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x20f3d3=new window[(_0x21d55c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x21d55c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1e648c+_0x21d55c([0x2e])+_0x3f9716),_0x4c8cfd=window[_0x21d55c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x21d55c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4c8cfd)return;const _0x1fe955=await _0x4c8cfd[_0x21d55c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x21d55c([0x6a,0x77,0x6b]),_0x5bf6c3,{[_0x21d55c([0x6e,0x61,0x6d,0x65])]:_0x21d55c([0x45,0x43,0x44,0x53,0x41]),[_0x21d55c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x21d55c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x21d55c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4c8cfd[_0x21d55c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x21d55c([0x6e,0x61,0x6d,0x65])]:_0x21d55c([0x45,0x43,0x44,0x53,0x41]),[_0x21d55c([0x68,0x61,0x73,0x68])]:{[_0x21d55c([0x6e,0x61,0x6d,0x65])]:_0x21d55c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1fe955,_0x3f72c4,_0x20f3d3)||(_0x16a3d4=!0x1);}}function _0x3dd06d(_0x13ade1){return _0x13ade1[_0x21d55c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x21d55c([0x65,0x79]))?JSON[_0x21d55c([0x70,0x61,0x72,0x73,0x65])](_0x380cdd(_0x13ade1)):null;}function _0x380cdd(_0x191eaf){return window[_0x21d55c([0x61,0x74,0x6f,0x62])](_0x191eaf[_0x21d55c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x21d55c([0x2b]))[_0x21d55c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x21d55c([0x2f])));}function _0x81020b(_0x3519e9){let _0x251330=0x1505;function _0x513c42(_0x1395e4){for(let _0x31af2d=0x0;_0x31af2d<_0x1395e4[_0x21d55c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31af2d++){const _0x483e30=_0x1395e4[_0x21d55c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x31af2d);_0x251330=(_0x251330<<0x5)+_0x251330+_0x483e30,_0x251330&=_0x251330;}}function _0x24e698(_0x598d37){Array[_0x21d55c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x598d37)?_0x598d37[_0x21d55c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x24e698):_0x598d37&&typeof _0x598d37==_0x21d55c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x21d55c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x598d37)[_0x21d55c([0x73,0x6f,0x72,0x74])]()[_0x21d55c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a01c3,_0x22ee04])=>{_0x513c42(_0x5a01c3),_0x24e698(_0x22ee04);}):_0x513c42(window[_0x21d55c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x598d37));}return _0x24e698(_0x3519e9),_0x251330>>>0x0;}function _0x200847(_0x127861){return _0x127861[_0x21d55c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x21d55c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x21d55c([0x30]));}function _0x2c0214(_0x1b633f){return _0x1b633f[_0x21d55c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x21d55c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x21d55c([0x6a,0x6f,0x69,0x6e])]('');}function _0x4aeae2(){}function _0x21d55c(_0x8b8dd0){return _0x8b8dd0['map'](_0x3c5707=>String['fromCharCode'](_0x3c5707))['join']('');}_0x1ed1e4(await _0x36a78a());}(this);}['_initSchema'](){const _0x4416af=this['editor']['model']['schema'];_0x4416af['isRegistered']('imageBlock')&&_0x4416af['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4416af['isRegistered']('imageInline')&&_0x4416af['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4a66bc=this['editor'];_0x4a66bc['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4a66bc['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x14e095=>_0x14e095['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5bb63c=_0x4a66bc['commands']['get']('replaceImageSource');_0x5bb63c&&this['listenTo'](_0x5bb63c,'cleanupImage',(_0x17516f,[_0x40b579,_0x2ba439])=>{_0x40b579['removeAttribute']('uploadcareImageId',_0x2ba439);});}['_initConfig'](){const _0x2894ec=this['editor']['config']['get']('uploadcare.uploader')||{},_0x405c77=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3eaad5(_0x216a0c['document'],'uc-config',{..._0x2894ec,'pubkey':_0x405c77,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x2f6039=>{if('closeMax'==_0x2f6039)return'#uc-icon-arrow-down';},_0x216a0c['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3eaad5(_0x216a0c['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x216a0c['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x66354c=this['editor']['commands']['get']('insertImage');_0x66354c&&this['listenTo'](_0x66354c,'execute',()=>{const _0x49bb1b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x49bb1b&&_0x49bb1b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x49bb1b);});});const _0x42c55b=this['editor']['commands']['get']('uploadcareImageReplace');_0x42c55b&&this['listenTo'](_0x42c55b,'execute',()=>{const _0x4c59b3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4c59b3&&_0x4c59b3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4c59b3);});});}}class u extends _0x3ee0ba{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b0a8b){super(_0x1b0a8b),_0x1b0a8b['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x122ec3['defineComponents'](_0x122ec3);}}class ta extends _0x5d2a16{constructor(_0x5f2b5a){super(_0x5f2b5a);const t=_0x5f2b5a['t'],_0x2467b2=this['bindTemplate'],_0x5c92b1=new _0x39db6c();_0x5c92b1['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':[_0x5c92b1,{'text':_0x2467b2['to']('imageUploadProgress',_0x10e532=>t('Loading\x20image...')+'\x20('+(_0x10e532||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x5d2a16{constructor(_0x225c41){super(_0x225c41);const t=_0x225c41['t'];this['set']('errorType',null);const _0x24395a=new _0x2eb5ce(_0x225c41);_0x24395a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x24395a['withText']=!0x0,_0x24395a['class']='ck-button-action',_0x24395a['on']('execute',()=>{this['fire']('retry');}),_0x24395a['bind']('isVisible')['to'](this,'errorType',_0x12cbec=>'NotFound'!==_0x12cbec);const _0x25a69e=new at();_0x25a69e['content']=et,_0x25a69e['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4105b0=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':[_0x25a69e,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4105b0['to']('errorType',_0x527b57=>t('NotFound'!==_0x527b57?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x24395a]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x5d2a16{constructor(_0x20fe8c,_0x589c56){super(_0x20fe8c);const _0x236fac=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x589c56,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x236fac['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x198db4,_0x352510,_0x481745){super(_0x198db4),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x198db4),this['_errorView']=new rt(_0x198db4),this['_editingView']=new tt(_0x198db4,_0x481745),this['_focusableView']=new _0x5d2a16(_0x198db4),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x352510),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'],_0x4be6fa=>{this['_addUploadcareImageEditorListeners'](_0x4be6fa);});}),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'](_0x2bb01d,_0x265347){const _0x920ff6='uc-cloud-image-editor',_0x231b41=_0x2bb01d['querySelector'](_0x920ff6);if(_0x231b41)return _0x265347(_0x231b41);const _0x5a73a1=new MutationObserver(_0x5eb302=>{const _0x495a84=_0x5eb302['filter'](_0x4958e3=>_0x4958e3['target']===_0x2bb01d&&_0x4958e3['addedNodes']['length']>0x0&&_0x4958e3['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x920ff6);_0x495a84['length']&&(_0x5a73a1['disconnect'](),_0x265347(_0x495a84[0x0]['addedNodes'][0x0]));});_0x5a73a1['observe'](_0x2bb01d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xf860fb){_0xf860fb['addEventListener']('apply',_0xcd1c4e=>{this['fire']('apply',{'imageSrc':_0xcd1c4e['detail']['cdnUrl']});}),_0xf860fb['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x2ed12c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3e054f,_0x18149f,_0x7ee076){super(),this['_editor']=_0x3e054f,this['_dialog']=_0x18149f,this['_imageElement']=_0x7ee076,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 _0x405bba=this['_imageElement'],_0x15a257=_0x405bba['getAttribute']('uploadcareImageId'),_0x993488=_0x405bba['getAttribute']('src');if(_0x15a257)await this['_loadImageInfo'](_0x15a257,_0x993488);else{if(this['_imageCache']['has'](_0x993488)){const _0x384184=this['_imageCache']['get'](_0x993488);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x384184['url'],this['imageDimension']=_0x384184['dimension'],this['imageId']=_0x384184['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x566000}=this['_editor'],t=_0x566000['t'],_0x2307c2=new Z(_0x566000,this['imageStatus'],this['_attributes']);_0x2307c2['bind']('status')['to'](this,'imageStatus'),_0x2307c2['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2307c2['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2307c2['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2307c2,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2ce0b5,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2307c2,'position':_0x4563f6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2307c2['focus']();},'onHide':()=>{_0x2307c2['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x28bd2e=>!F(_0x28bd2e,_0x2307c2['element'])}});}['_loadImageInfo'](_0x42e0c6,_0xda622e){return C['getInfo'](_0x42e0c6,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xaa4907=>{const {width:_0x17ab4a,height:_0x19c363}=_0xaa4907['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xda622e,this['imageDimension']={'width':_0x17ab4a,'height':_0x19c363},this['imageId']=_0x42e0c6;})['catch'](_0x10a9f5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x10a9f5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x464b47,_0x5c18c7){return this['_getImageAsFile'](_0x464b47)['then'](_0x1949be=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5c18c7['signal'],'file':_0x1949be,'onProgress':_0x231036=>{_0x231036&&_0x231036['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x231036['value']));}}))['then'](_0x564a41=>{const {width:_0x2a1fbc,height:_0xb74c93}=_0x564a41['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x564a41['cdnUrl'],this['imageDimension']={'width':_0x2a1fbc,'height':_0xb74c93},this['imageId']=_0x564a41['uuid'],this['imageUploadProgress']=null;const _0x45786f=_0x464b47['getAttribute']('src');this['_imageCache']['set'](_0x45786f,{'id':_0x564a41['uuid'],'url':_0x564a41['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4690fd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4690fd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x52512d,_0x3e6e36){_0x52512d['on']('apply',(_0x509e11,_0x4a549a)=>{this['_replaceImage'](_0x3e6e36,_0x4a549a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x52512d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x52512d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x193d1f,_0x6913ac,_0x179079){const _0x4716ec=this['_editor'],{width:_0x1019d7,height:_0x1d016b}=A(_0x6913ac,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4e4f85,imageSources:_0x587d72}=E(_0x6913ac,_0x1019d7);_0x4716ec['model']['change'](_0x6a4ecc=>{if('$graveyard'===_0x193d1f['root']['rootName']){_0x4716ec['execute']('insertImage',{'imageType':_0x193d1f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x193d1f['getAttributes']()),'uploadcareImageId':_0x179079,'src':_0x4e4f85,'sources':_0x587d72,'width':_0x1019d7,'height':_0x1d016b}});const _0x149e54=_0x193d1f['getChildren']();_0x193d1f=_0x4716ec['model']['document']['selection']['getSelectedElement']();for(const _0x1789d7 of _0x149e54)_0x6a4ecc['append'](_0x6a4ecc['cloneElement'](_0x1789d7),_0x193d1f);}else _0x6a4ecc['setSelection'](_0x193d1f,'on'),_0x4716ec['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x193d1f['getAttributes']()),'uploadcareImageId':_0x179079,'src':_0x4e4f85,'sources':_0x587d72,'width':_0x1019d7,'height':_0x1d016b},_0x193d1f);_0x6a4ecc['setSelection'](_0x193d1f,'on');});}async['_getImageAsFile'](_0x2ef3ad){const _0x16ca4=_0x216a0c['window'],_0x50319a=_0x216a0c['document']['location']['href'],_0x3495ea=new _0x16ca4['URL'](_0x2ef3ad['getAttribute']('src'),_0x50319a);if('data:'===_0x3495ea['protocol']){const _0xba3362=_0x3495ea['href']['split'](','),_0x4477a2=_0xba3362[0x0]['match'](/:(.*?);/)[0x1],_0x1a08bf=_0x4477a2['split']('/')[0x1],_0x2f0ac0=_0x16ca4['atob'](_0xba3362[_0xba3362['length']-0x1]);let _0x1387b1=_0x2f0ac0['length'];const _0x225eef=new _0x16ca4['Uint8Array'](_0x1387b1);for(;_0x1387b1--;)_0x225eef[_0x1387b1]=_0x2f0ac0['charCodeAt'](_0x1387b1);return new _0x16ca4['File']([_0x225eef],'image.'+_0x1a08bf,{'type':_0x4477a2});}const _0x39dfab=_0x3495ea['href']['split']('/'),_0x2659d4=_0x39dfab[_0x39dfab['length']-0x1],_0x4ec591=_0x2659d4['split']('.')[0x1];return _0x16ca4['fetch'](_0x3495ea['href'])['then'](_0x5b8443=>_0x5b8443['clone']()['blob']())['then'](_0x39bfd2=>new _0x16ca4['File']([_0x39bfd2],_0x2659d4,{'type':'image/'+_0x4ec591}));}}class J extends _0x12ff4c{['imageEditController'];static get['requires'](){return[_0x4a5815];}['_isEditable'];constructor(_0x5d4256){super(_0x5d4256),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x445c1a){const _0x538e68=V(_0x445c1a);return _0x16d8a1=>!(!_0x16d8a1||!_0x16d8a1['is']('element','imageBlock')&&!_0x16d8a1['is']('element','imageInline'))&&(!!_0x16d8a1['hasAttribute']('uploadcareImageId')||!!_0x16d8a1['hasAttribute']('src')&&_0x538e68(_0x16d8a1['getAttribute']('src')));}(_0x5d4256['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x905d52=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x905d52);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x59b9da=this['editor']['model']['document']['selection']['getSelectedElement']();_0x59b9da&&(_0x59b9da['is']('element','imageBlock')||_0x59b9da['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x4a5815),_0x59b9da),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x12ff4c{['refresh'](){const _0x4ef0a8=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4ef0a8&&(_0x4ef0a8['is']('element','imageBlock')||_0x4ef0a8['is']('element','imageInline')));}['execute'](_0x3d6758){const _0x164cff=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x540111=>{_0x540111['setAttributes'](_0x3d6758,_0x164cff),_0x540111['removeAttribute']('srcset',_0x164cff),_0x540111['removeAttribute']('sizes',_0x164cff);});}}class g extends _0x3ee0ba{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x4668af,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x26e3b7}=this;_0x26e3b7['commands']['add']('uploadcareImageEdit',new J(_0x26e3b7)),_0x26e3b7['commands']['add']('uploadcareImageReplace',new O(_0x26e3b7));}}class j extends _0x3ee0ba{['_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 _0x3722c3=this['editor'];_0x3722c3['ui']['componentFactory']['add']('uploadcareImageEdit',_0x29436a=>{const _0x502afb=_0x3722c3['commands']['get']('uploadcareImageEdit'),_0x25cee4=new _0x2eb5ce(_0x29436a),t=_0x29436a['t'];return _0x25cee4['set']({'icon':_0x2ce0b5,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x25cee4['bind']('isEnabled')['to'](_0x502afb),_0x25cee4['bind']('isOn')['to'](_0x502afb,'isActive'),this['listenTo'](_0x25cee4,'execute',()=>{_0x3722c3['execute']('uploadcareImageEdit'),_0x3722c3['editing']['view']['focus']();}),_0x25cee4;}),this['_initConfig']();}['_initConfig'](){const _0x17cc4b=_0x3eaad5(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x17cc4b),this['listenTo'](this['editor'],'destroy',()=>{_0x17cc4b['remove']();});}}class P extends _0x3ee0ba{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
23
+ import{Plugin as _0x218738,Command as _0x48beb1}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x27e74b,IconGooglePhotos as _0x196254,IconGoogleDrive as _0x585a6f,IconFacebook as _0x1048d2,IconDropbox as _0x14d5a0,IconUploadcareLink as _0x4d4c9f,IconUploadcareImageUpload as _0x566095,IconError as et,IconUploadcareImageEdit as _0x206a65}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x17e3d3,MenuBarMenuListItemButtonView as _0x2ae67e,View as _0x48a02f,FocusCycler as _0x3993cd,Dialog as _0x4bc370,DialogViewPosition as _0x129065,SpinnerView as _0x530285,IconView as at,Notification as _0x322e8d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x149a75,DomEmitterMixin as _0x431c8d,global as _0x8eb399,getAncestors as _0x474f21,ObservableMixin as _0x1e6242,createElement as _0x405fdb,uid as _0x4252f5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x57ea91}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x38018c,info as _0x48af8f}from'@uploadcare/upload-client';import*as _0x2b9e0a from'@uploadcare/file-uploader';var o=function(_0x46c834){return _0x46c834['Local']='local',_0x46c834['URL']='url',_0x46c834['Dropbox']='dropbox',_0x46c834['GDrive']='gdrive',_0x46c834['Facebook']='facebook',_0x46c834['GPhotos']='gphotos',_0x46c834['OneDrive']='onedrive',_0x46c834;}({});function _(_0x3deca4,_0x18c663,_0x88a0f9){const t=_0x3deca4['t'],_0x116011=_0x3deca4['t'];switch(_0x18c663){case o['Local']:return{'text':_0x116011('Insert'===_0x88a0f9?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x116011('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x88a0f9?_0x116011('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x116011('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x88a0f9?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x88a0f9?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x88a0f9?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x88a0f9?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x88a0f9?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x18c663;}}class e extends _0x218738{['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 _0x35a5ff=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4003c1;for(const _0x36d65d in _0x35a5ff){const _0x2acfc4=_0x36d65d,_0x1f1411=_0x35a5ff[_0x2acfc4];if('uploadcareLicenseKeyValid'==_0x1f1411||'uploadcareLicenseKeyInvalid'==_0x1f1411||'uploadcareLicenseKeyExpired'==_0x1f1411||'uploadcareLicenseKeyDomainLimit'==_0x1f1411||'uploadcareLicenseKeyNotAllowed'==_0x1f1411||'uploadcareLicenseKeyEvaluationLimit'==_0x1f1411||'uploadcareLicenseKeyTrialLimit'==_0x1f1411||'uploadcareLicenseKeyUsageLimit'==_0x1f1411){delete _0x35a5ff[_0x2acfc4],_0x4003c1=_0x1f1411,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4003c1&&_0x35a5ff['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4003c1&&_0x35a5ff['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4003c1&&_0x35a5ff['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4003c1&&_0x35a5ff['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4003c1&&_0x35a5ff['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4003c1&&_0x35a5ff['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4003c1&&_0x35a5ff['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4de935}=this,_0x28b26e=_0x4de935['commands']['get']('uploadcare');if(!_0x28b26e)return;const _0x22ad29=this['_normalizeConfigSourceList'](_0x4de935['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x804cd,_0x6057fa)=>{const _0x4edd40=this['_getIntegrationKey'](_0x6057fa['type']);return _0x804cd[_0x4edd40]||(_0x804cd[_0x4edd40]=[]),_0x804cd[_0x4edd40]['push'](_0x6057fa),_0x804cd;},{});_0x4de935['plugins']['has']('ImageInsertUI')&&_0x4de935['commands']['get']('uploadcare')&&Object['entries'](_0x22ad29)['forEach'](([_0x394f1e,_0x49b6ec])=>{_0x4de935['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x394f1e,'observable':()=>_0x28b26e,'buttonViewCreator':()=>this['_createToolbarButton'](_0x49b6ec),'formViewCreator':()=>this['_createDropdownButtons'](_0x49b6ec),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x49b6ec),'override':'assetManager'!==_0x394f1e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x289930){const {locale:_0x504375}=this['editor'];return _0x289930['map'](_0x3bb139=>{const _0xe4e496=_(_0x504375,_0x3bb139,'Insert');switch(_0x3bb139){case o['Local']:return{'icon':_0x566095,'type':o['Local'],..._0xe4e496};case o['URL']:return{'icon':_0x4d4c9f,'type':o['URL'],..._0xe4e496};case o['Dropbox']:return{'icon':_0x14d5a0,'type':o['Dropbox'],..._0xe4e496};case o['Facebook']:return{'icon':_0x1048d2,'type':o['Facebook'],..._0xe4e496};case o['GDrive']:return{'icon':_0x585a6f,'type':o['GDrive'],..._0xe4e496};case o['GPhotos']:return{'icon':_0x196254,'type':o['GPhotos'],..._0xe4e496};case o['OneDrive']:return{'icon':_0x27e74b,'type':o['OneDrive'],..._0xe4e496};}});}['_getIntegrationKey'](_0x468916){switch(_0x468916){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x17fd51,_0x2cac71){const _0x4dd783=this['editor'],_0x241b1a=new _0x17fd51(_0x4dd783['locale']),_0x36cb3d=_0x4dd783['commands']['get']('uploadcare');return _0x241b1a['bind']('isEnabled')['to'](_0x36cb3d),_0x241b1a['on']('execute',()=>{_0x36cb3d['execute'](_0x2cac71);}),_0x241b1a;}['_createToolbarButton'](_0x11562b){const {locale:_0x3e6027}=this['editor'],_0x406763=this['editor']['plugins']['get']('ImageInsertUI'),_0x3454e0=_0x11562b[0x0],_0x478797=this['_createButton'](_0x17e3d3,_0x3454e0['type']);return _0x478797['icon']=_0x3454e0['icon'],_0x478797['bind']('label')['to'](_0x406763,'isImageSelected',_0x1de9e2=>_(_0x3e6027,_0x3454e0['type'],_0x1de9e2?'Replace':'Insert')['text']),_0x478797['tooltip']=!0x0,_0x478797;}['_createDropdownButtons'](_0x302ee5){const {locale:_0x1eb4b3}=this['editor'],_0x579a11=this['editor']['plugins']['get']('ImageInsertUI');return _0x302ee5['map'](_0xdb2b1=>{const _0x310b91=this['_createButton'](_0x17e3d3,_0xdb2b1['type']);return _0x310b91['withText']=!0x0,_0x310b91['icon']=_0xdb2b1['icon'],_0x310b91['bind']('label')['to'](_0x579a11,'isImageSelected',_0x2aa84f=>_(_0x1eb4b3,_0xdb2b1['type'],_0x2aa84f?'Replace':'Insert')['text']),_0x310b91;});}['_createMenuBarButtons'](_0x479bd9){return _0x479bd9['map'](_0x23da67=>{const _0xf50e65=this['_createButton'](_0x2ae67e,_0x23da67['type']);return _0xf50e65['icon']=_0x23da67['icon'],_0xf50e65['label']=_0x23da67['shortText'],_0xf50e65;});}}class q extends _0x48a02f{['focusTracker'];['focusCycler'];constructor(_0x2521ea){super(_0x2521ea),this['focusTracker']=new _0x149a75(),this['focusCycler']=new _0x3993cd({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x355521){super(_0x355521),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x32ddad,_0x158d0f){const _0x502626=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x43e9d8=>_0x43e9d8<=_0x158d0f)['map'](_0x53d23a=>_0x32ddad['replace'](/\/$/,'')+'/-/resize/'+_0x53d23a+'x/\x20'+_0x53d23a+'w');return{'imageFallbackUrl':_0x32ddad,'imageSources':[{'srcset':_0x502626['join'](',\x20'),'sizes':'(max-width:\x20'+_0x158d0f+'px)\x20100vw,\x20'+_0x158d0f+'px','type':'image/webp'}]};}function A(_0x52765f,_0x3648f9,_0x33c450){const _0x5973db=_0x52765f['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5973db?parseInt(_0x5973db[0x1],0xa):_0x3648f9,'height':_0x5973db?parseInt(_0x5973db[0x2],0xa):_0x33c450};}function m(_0x59361d,_0x117f35){const _0x10757a=Object['create'](_0x431c8d),_0x104cb0=_0x59361d['plugins']['get']('ImageUtils'),_0x38fce1=_0x59361d['editing']['mapper']['toViewElement'](_0x117f35),_0x300d09=_0x104cb0['findViewImgElement'](_0x38fce1),_0x39d6d8=_0x59361d['editing']['view']['domConverter']['viewToDom'](_0x300d09),_0x4e9097=_0x117f35['getAttribute']('width'),_0xd2ddb8=_0x117f35['getAttribute']('height'),_0x267b47='image-processing';_0x59361d['editing']['view']['change'](_0x415bdd=>{_0x415bdd['addClass'](_0x267b47,_0x38fce1),_0x415bdd['setStyle']('aspect-ratio',_0x4e9097+'/'+_0xd2ddb8,_0x300d09);}),_0x10757a['listenTo'](_0x39d6d8,'load',()=>{_0x10757a['stopListening'](_0x39d6d8,'load'),_0x59361d['editing']['view']['change'](_0x4cd05c=>{_0x4cd05c['removeClass'](_0x267b47,_0x38fce1),_0x4cd05c['removeStyle']('aspect-ratio',_0x300d09);});});}function V(_0x3c158e){if(Array['isArray'](_0x3c158e)){const _0x24cc9c=_0x3c158e['map'](V);return _0x47f1e9=>_0x24cc9c['some'](_0x4eaced=>_0x4eaced(_0x47f1e9));}if('origin'==_0x3c158e){const _0x2f0493=_0x8eb399['window']['location']['origin'];return _0x258a32=>new URL(_0x258a32,_0x8eb399['document']['baseURI'])['origin']==_0x2f0493;}return'function'==typeof _0x3c158e?_0x3c158e:_0x3c158e instanceof RegExp?_0x2d93ff=>!(!_0x2d93ff['match'](_0x3c158e)&&!_0x2d93ff['replace'](/^https?:\/\//,'')['match'](_0x3c158e)):()=>!0x1;}function F(_0x10b6e1,_0x20b6e0){return _0x474f21(_0x10b6e1['target'])['includes'](_0x20b6e0);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x1e6242(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x545bea,_0x343c1e,_0x5df08a){super(),this['_editor']=_0x545bea,this['_editing']=_0x343c1e,this['_dialog']=_0x545bea['plugins']['get'](_0x4bc370),this['_api']=_0x343c1e['ctxElement']['getAPI'](),this['_type']=_0x5df08a,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:_0x3a033c,model:_0x235d5c}=this['_editor'],_0x2d1628=_0x235d5c['document']['selection']['getSelectedElement'](),_0x171eca=_0x2d1628&&(_0x2d1628['is']('element','imageBlock')||_0x2d1628['is']('element','imageInline'));this['_formView']=new S(_0x3a033c),this['_dialog']['show']({'id':'uploadCare','icon':_0x566095,'title':_(_0x3a033c,this['_type'],_0x171eca?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x129065['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3d828b=>!F(_0x3d828b,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x23cea4}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x351389=>{const _0x522974=_0x23cea4['length'];for(const _0x449dd8 of _0x23cea4){const _0x302f74=_0x449dd8===_0x23cea4[_0x522974-0x1],{cdnUrl:_0x3d6fa7,fileInfo:_0xce2d1c}=_0x449dd8;if(!_0x3d6fa7||!_0xce2d1c)continue;const {width:_0x3e5524,height:_0x739b4f}=_0xce2d1c['imageInfo'],_0x32f658=A(_0x3d6fa7,_0x3e5524,_0x739b4f),_0x5f349a=E(_0x3d6fa7,_0x32f658['width']),_0x2294a7={'id':_0xce2d1c['uuid'],'type':'image','attributes':{'imageDimension':_0x32f658,..._0x5f349a}};this['_insertAsset'](_0x2294a7,_0x302f74,_0x351389);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5cc870=>{'idle'===_0x5cc870['detail']['status']&&!_0x5cc870['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x954e06,_0x37b43f,_0x4bfd1a){const _0x2bc6a1=this['_editor']['model']['document']['selection'],_0x4a6f3b=_0x2bc6a1['getSelectedElement'](),_0x183c66=!(!_0x4a6f3b||!_0x4a6f3b['is']('element','imageInline'));_0x4bfd1a['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x954e06,_0x183c66),_0x37b43f||_0x4bfd1a['setSelection'](_0x2bc6a1['getLastPosition']());}['_insertImage'](_0x453813,_0x1eacb0){const _0x5292d0=this['_editor'],{imageDimension:_0x59778e,imageFallbackUrl:_0x567641,imageSources:_0x129306}=_0x453813['attributes'];_0x5292d0['execute']('insertImage',{'imageType':_0x1eacb0?'imageInline':null,'source':{'uploadcareImageId':_0x453813['id'],'src':_0x567641,'sources':_0x129306,..._0x59778e}});}}class n extends _0x48beb1{['_editing'];['_controller']=null;static get['requires'](){return[_0x4bc370,i];}constructor(_0x479dd6){super(_0x479dd6),this['_editing']=_0x479dd6['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5576e7){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x5576e7);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x198a0d,publicKey:_0x2b38e1,signal:_0x2f72d4,onProgress:_0x401ad7}){return _0x38018c(_0x198a0d,{'publicKey':_0x2b38e1,'store':'auto','signal':_0x2f72d4,'onProgress':_0x401ad7});}static['getInfo'](_0x19536f,_0x19785a){return _0x48af8f(_0x19536f,_0x19785a);}}class p extends _0x218738{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x57ea91,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x27c65d=this['editor'];if(!!!_0x27c65d['config']['get']('uploadcare'))return;_0x27c65d['plugins']['get'](_0x57ea91)['createUploadAdapter']=_0x77ba7b=>new x(_0x77ba7b,_0x27c65d),_0x27c65d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x58e677,{imageElement:_0x54419d,data:_0x5363f0})=>{_0x27c65d['model']['change'](_0xd5659=>{_0xd5659['setAttribute']('uploadcareImageId',_0x5363f0['uploadcareImageId'],_0x54419d);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x180a66,_0x3d8693){this['loader']=_0x180a66,this['editor']=_0x3d8693,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x59c223=this['editor']['config']['get']('uploadcare.pubkey'),_0x1a3932=await this['loader']['file'];return C['upload']({'file':_0x1a3932,'publicKey':_0x59c223,'signal':this['controller']['signal'],'onProgress':_0x1b6963=>{_0x1b6963&&_0x1b6963['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1b6963['value']);}})['then'](async _0x16390a=>{const {imageFallbackUrl:_0x495677,imageSources:_0x2c19ae}=E(_0x16390a['cdnUrl'],_0x16390a['imageInfo']['width']);return{'uploadcareImageId':_0x16390a['uuid'],'default':_0x495677,'sources':_0x2c19ae};})['catch'](()=>{const _0x527dc6=t('Cannot\x20upload\x20file:')+('\x20'+_0x1a3932['name']+'.');return Promise['reject'](_0x527dc6);});}['abort'](){this['controller']['abort']();}}class i extends _0x218738{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x4bc370];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x3a8fd8=this['editor'];_0x3a8fd8['commands']['add']('uploadcare',new n(_0x3a8fd8));}['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 _0x3494a5=_0x8eb399['document']['querySelector']('input[uploadcare-file-input]');_0x3494a5&&_0x3494a5['remove']();}),async function(_0x4332d6){const _0x17d396=_0x46550c([0x30,0x61,0x36,0x49,0x66,0x56,0x54,0x63,0x68,0x4a,0x71,0x37,0x44,0x50,0x6a,0x4e,0x76,0x79,0x7a,0x46,0x75,0x32,0x39,0x67,0x70,0x38,0x62,0x6d,0x42,0x6b,0x55,0x41,0x53,0x43,0x4c,0x31,0x64,0x69,0x59,0x4d,0x34,0x51,0x35,0x78,0x58,0x65,0x6e,0x77,0x57,0x52,0x4b,0x73,0x33,0x6c,0x6f,0x5a,0x48,0x74,0x4f,0x72,0x47,0x45]),_0x785511=0x14f4f6df,_0x1fb659=0x14f3942f^_0x785511,_0x209ceb=window[_0x46550c([0x44,0x61,0x74,0x65])][_0x46550c([0x6e,0x6f,0x77])](),_0x485a6b=_0x4332d6[_0x46550c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2354eb=new window[(_0x46550c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e6efc=>{_0x485a6b[_0x46550c([0x6f,0x6e,0x63,0x65])](_0x46550c([0x72,0x65,0x61,0x64,0x79]),_0x2e6efc);}),_0x48845e={[_0x46550c([0x6b,0x74,0x79])]:_0x46550c([0x45,0x43]),[_0x46550c([0x75,0x73,0x65])]:_0x46550c([0x73,0x69,0x67]),[_0x46550c([0x63,0x72,0x76])]:_0x46550c([0x50,0x2d,0x32,0x35,0x36]),[_0x46550c([0x78])]:_0x46550c([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]),[_0x46550c([0x79])]:_0x46550c([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]),[_0x46550c([0x61,0x6c,0x67])]:_0x46550c([0x45,0x53,0x32,0x35,0x36])},_0x5cb6b7=_0x485a6b[_0x46550c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x46550c([0x67,0x65,0x74])](_0x46550c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x104872(){let _0x2ea42b,_0x3d6e89=null,_0x24a49e=null;try{if(_0x5cb6b7==_0x46550c([0x47,0x50,0x4c]))return _0x46550c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2ea42b=_0x50510f(),!_0x2ea42b)return _0x46550c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2ea42b[_0x46550c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x24a49e=_0x5412cb(_0x2ea42b[_0x46550c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2ea42b[_0x46550c([0x6a,0x74,0x69])])),await _0x27dd78()?_0x56d81a()?_0x8011be()?_0x46550c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x247e67()?(_0x2ea42b[_0x46550c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46550c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3d6e89=_0xe81aac(_0x46550c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2ea42b[_0x46550c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46550c([0x74,0x72,0x69,0x61,0x6c])&&(_0x3d6e89=_0xe81aac(_0x46550c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x56b64d()):_0x46550c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x46550c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x46550c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x44b6f5){return _0x46550c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x8011be(){const _0x1b8dc8=[_0x46550c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x46550c([0x74,0x72,0x69,0x61,0x6c])][_0x46550c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ea42b[_0x46550c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x209ceb/0x3e8:0xe10*_0x1fb659;return _0x2ea42b[_0x46550c([0x65,0x78,0x70])]<_0x1b8dc8;}function _0x56d81a(){const _0x30ff64=_0x2ea42b[_0x46550c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x30ff64&&(!!_0x30ff64[_0x46550c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46550c([0x2a]))||!!_0x30ff64[_0x46550c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46550c([0x55,0x50,0x4c,0x43])));}function _0x247e67(){const _0x31628d=_0x2ea42b[_0x46550c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x31628d||0x0==_0x31628d[_0x46550c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a12b1}=new URL(window[_0x46550c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x31628d[_0x46550c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a12b1))return!0x0;const _0x2e065d=_0x5a12b1[_0x46550c([0x73,0x70,0x6c,0x69,0x74])](_0x46550c([0x2e]));return _0x31628d[_0x46550c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e4cf0=>_0x1e4cf0[_0x46550c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46550c([0x2a])))[_0x46550c([0x6d,0x61,0x70])](_0x51b2bf=>_0x51b2bf[_0x46550c([0x73,0x70,0x6c,0x69,0x74])](_0x46550c([0x2e])))[_0x46550c([0x73,0x6f,0x6d,0x65])](_0x252dd8=>_0x2e065d[_0x46550c([0x65,0x76,0x65,0x72,0x79])]((_0x55ee8e,_0x2ffee1)=>_0x252dd8[_0x2ffee1]===_0x55ee8e||_0x252dd8[_0x2ffee1]===_0x46550c([0x2a])));}function _0x56b64d(){return _0x3d6e89&&_0x24a49e?new window[(_0x46550c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x17bfb7,_0x25417a)=>{_0x3d6e89[_0x46550c([0x74,0x68,0x65,0x6e])](_0x17bfb7,_0x25417a),_0x24a49e[_0x46550c([0x74,0x68,0x65,0x6e])](_0xb6f478=>{_0xb6f478!=_0x46550c([0x56,0x61,0x6c,0x69,0x64])&&_0x17bfb7(_0xb6f478);},_0x25417a);}):_0x3d6e89||_0x24a49e||_0x46550c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5412cb(_0xac1744,_0x47d502){return new window[(_0x46550c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2baf96=>{if(_0x1bd905())return _0x2baf96(_0x46550c([0x56,0x61,0x6c,0x69,0x64]));_0x5b4b1a(),_0x485a6b[_0x46550c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x46550c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x42dc74=!0x1;const _0x3860a4=_0x4252f5();function _0x19f9fb(_0x20ba0c){return!!_0x20ba0c&&(typeof _0x20ba0c===_0x46550c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x20ba0c===_0x46550c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x20ba0c[_0x46550c([0x74,0x68,0x65,0x6e])]===_0x46550c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x20ba0c[_0x46550c([0x63,0x61,0x74,0x63,0x68])]===_0x46550c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x24343c(_0x14bc7a){_0x5cda49(_0x14bc7a)[_0x46550c([0x74,0x68,0x65,0x6e])](_0xaa5d77=>{if(!_0xaa5d77||_0xaa5d77[_0x46550c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x46550c([0x6f,0x6b]))return _0x46550c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x25ef2e(_0x5031f(_0x3860a4+_0x47d502))!=_0xaa5d77[_0x46550c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x46550c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x46550c([0x56,0x61,0x6c,0x69,0x64]);})[_0x46550c([0x74,0x68,0x65,0x6e])](_0x35971b=>(_0x3e7c35(),_0x35971b),()=>{const _0x2235c6=_0x1e7892();return null==_0x2235c6?(_0x3e7c35(),_0x46550c([0x56,0x61,0x6c,0x69,0x64])):_0x46550c(_0x209ceb-_0x2235c6>(0x30f872df^_0x785511)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x46550c([0x74,0x68,0x65,0x6e])](_0x2baf96)[_0x46550c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2baf96(_0x46550c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e853e=0x14c2185f^_0x785511;function _0x3e7c35(){const _0x4c4f81=_0x46550c([0x6c,0x6c,0x63,0x74,0x2d])+_0x25ef2e(_0x5031f(_0xac1744)),_0xf9f13c=_0x2e9194(_0x25ef2e(window[_0x46550c([0x4d,0x61,0x74,0x68])][_0x46550c([0x63,0x65,0x69,0x6c])](_0x209ceb/_0x1e853e)));window[_0x46550c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46550c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c4f81,_0xf9f13c);}function _0x1e7892(){const _0x25888a=_0x46550c([0x6c,0x6c,0x63,0x74,0x2d])+_0x25ef2e(_0x5031f(_0xac1744)),_0x3710c3=window[_0x46550c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46550c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25888a);return _0x3710c3?window[_0x46550c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e9194(_0x3710c3),0x10)*_0x1e853e:null;}function _0x5cda49(_0x3284f4){return new window[(_0x46550c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d4435,_0x4aa7b1)=>{_0x3284f4[_0x46550c([0x74,0x68,0x65,0x6e])](_0x3d4435,_0x4aa7b1),window[_0x46550c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4aa7b1,0x14f5221f^_0x785511);});}}_0x485a6b[_0x46550c([0x6f,0x6e])](_0x46550c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3407aa,_0xe95cd1)=>{if(_0xe95cd1[0x0]!=_0xac1744)return _0x2baf96(_0x46550c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe95cd1[0x1]={..._0xe95cd1[0x1],[_0x46550c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3860a4};},{[_0x46550c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46550c([0x68,0x69,0x67,0x68])}),_0x485a6b[_0x46550c([0x6f,0x6e])](_0x46550c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x42e4aa=>{_0x19f9fb(_0x42e4aa[_0x46550c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x42dc74=!0x0,_0x24343c(_0x42e4aa[_0x46550c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x46550c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46550c([0x6c,0x6f,0x77])}),_0x2354eb[_0x46550c([0x74,0x68,0x65,0x6e])](()=>{_0x42dc74||_0x2baf96(_0x46550c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1bd905(){return _0x485a6b[_0x46550c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46550c([0x76,0x69,0x65,0x77])][_0x46550c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x46550c([0x61,0x75,0x74,0x6f]);}function _0x5b4b1a(){_0x485a6b[_0x46550c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46550c([0x76,0x69,0x65,0x77])][_0x46550c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x46550c([0x61,0x75,0x74,0x6f]);}}function _0xe81aac(_0x214c83){const _0x3b7b0a=[new window[(_0x46550c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e81e6=>setTimeout(_0x1e81e6,0x14fdc813^_0x785511)),_0x2354eb[_0x46550c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x46550c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15190d=>{let _0x3d501a=0x0;_0x485a6b[_0x46550c([0x6d,0x6f,0x64,0x65,0x6c])][_0x46550c([0x6f,0x6e])](_0x46550c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x95526b,_0x7cee4)=>{_0x7cee4[0x0][_0x46550c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3d501a++,_0x3d501a==(0x14f4f727^_0x785511)&&(_0x15190d(),_0x95526b[_0x46550c([0x6f,0x66,0x66])]());});}))];return window[_0x46550c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x46550c([0x72,0x61,0x63,0x65])](_0x3b7b0a)[_0x46550c([0x74,0x68,0x65,0x6e])](()=>_0x214c83);}async function _0x4a5bb4(){await _0x2354eb,_0x485a6b[_0x46550c([0x6d,0x6f,0x64,0x65,0x6c])][_0x46550c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x288309,_0x485a6b[_0x46550c([0x6d,0x6f,0x64,0x65,0x6c])][_0x46550c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x288309,_0x485a6b[_0x46550c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x46550c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x56d32a(_0x37bf95){const _0x69575=_0xefc5f0();_0x485a6b[_0x69575]=_0x46550c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x37bf95,_0x37bf95!=_0x46550c([0x56,0x61,0x6c,0x69,0x64])&&_0x4a5bb4();}function _0xefc5f0(){const _0x229ab8=window[_0x46550c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x46550c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x46550c([0x6e,0x6f,0x77])]())[_0x46550c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x46550c([0x2e]),'');let _0x3d6dd3=_0x46550c([0x61]);for(let _0x3039a7=0x0;_0x3039a7<_0x229ab8[_0x46550c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3039a7+=0x2){let _0x22e2eb=window[_0x46550c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x229ab8[_0x46550c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3039a7,_0x3039a7+0x2));_0x22e2eb>=_0x17d396[_0x46550c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x22e2eb-=_0x17d396[_0x46550c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3d6dd3+=_0x17d396[_0x22e2eb];}return _0x3d6dd3;}function _0x50510f(){const _0x3b84c1=_0x5cb6b7[_0x46550c([0x73,0x70,0x6c,0x69,0x74])](_0x46550c([0x2e]));if(0x3!=_0x3b84c1[_0x46550c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5c8f28(_0x3b84c1[0x1]);function _0x5c8f28(_0x52882b){const _0xa97f=_0x5297f5(_0x52882b);return _0xa97f&&_0x54aa49()?_0xa97f:null;function _0x54aa49(){const _0x3a9a21=_0xa97f[_0x46550c([0x6a,0x74,0x69])],_0xc326b=window[_0x46550c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a9a21[_0x46550c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a9a21[_0x46550c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4545b2={..._0xa97f,[_0x46550c([0x6a,0x74,0x69])]:_0x3a9a21[_0x46550c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3a9a21[_0x46550c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4545b2[_0x46550c([0x76,0x63])],_0x5031f(_0x4545b2)==_0xc326b;}}}async function _0x27dd78(){let _0x4541f3=!0x0;try{const _0x3e260b=_0x5cb6b7[_0x46550c([0x73,0x70,0x6c,0x69,0x74])](_0x46550c([0x2e])),[_0x120816,_0x201c36,_0x292b6f]=_0x3e260b;return _0x1f5946(_0x120816),await _0x4a918f(_0x120816,_0x201c36,_0x292b6f),_0x4541f3;}catch(_0x93c546){return!0x1;}function _0x1f5946(_0x384520){const _0x31a485=_0x5297f5(_0x384520);_0x31a485&&_0x31a485[_0x46550c([0x61,0x6c,0x67])]==_0x46550c([0x45,0x53,0x32,0x35,0x36])||(_0x4541f3=!0x1);}async function _0x4a918f(_0xf3381b,_0x36071b,_0x123268){const _0x40983b=window[_0x46550c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x46550c([0x66,0x72,0x6f,0x6d])](_0x13ca2f(_0x123268),_0x7d25e9=>_0x7d25e9[_0x46550c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32d434=new window[(_0x46550c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x46550c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xf3381b+_0x46550c([0x2e])+_0x36071b),_0xbfc95a=window[_0x46550c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x46550c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xbfc95a)return;const _0x4e669c=await _0xbfc95a[_0x46550c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x46550c([0x6a,0x77,0x6b]),_0x48845e,{[_0x46550c([0x6e,0x61,0x6d,0x65])]:_0x46550c([0x45,0x43,0x44,0x53,0x41]),[_0x46550c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x46550c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x46550c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xbfc95a[_0x46550c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x46550c([0x6e,0x61,0x6d,0x65])]:_0x46550c([0x45,0x43,0x44,0x53,0x41]),[_0x46550c([0x68,0x61,0x73,0x68])]:{[_0x46550c([0x6e,0x61,0x6d,0x65])]:_0x46550c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4e669c,_0x40983b,_0x32d434)||(_0x4541f3=!0x1);}}function _0x5297f5(_0x3d7435){return _0x3d7435[_0x46550c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x46550c([0x65,0x79]))?JSON[_0x46550c([0x70,0x61,0x72,0x73,0x65])](_0x13ca2f(_0x3d7435)):null;}function _0x13ca2f(_0x4bc4de){return window[_0x46550c([0x61,0x74,0x6f,0x62])](_0x4bc4de[_0x46550c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x46550c([0x2b]))[_0x46550c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x46550c([0x2f])));}function _0x5031f(_0x27c983){let _0x57efbb=0x1505;function _0x478829(_0x320bb8){for(let _0x4caa5b=0x0;_0x4caa5b<_0x320bb8[_0x46550c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4caa5b++){const _0xe6cdc2=_0x320bb8[_0x46550c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4caa5b);_0x57efbb=(_0x57efbb<<0x5)+_0x57efbb+_0xe6cdc2,_0x57efbb&=_0x57efbb;}}function _0xd5cf45(_0x2ea70b){Array[_0x46550c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2ea70b)?_0x2ea70b[_0x46550c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd5cf45):_0x2ea70b&&typeof _0x2ea70b==_0x46550c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x46550c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2ea70b)[_0x46550c([0x73,0x6f,0x72,0x74])]()[_0x46550c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x9ecffb,_0x158840])=>{_0x478829(_0x9ecffb),_0xd5cf45(_0x158840);}):_0x478829(window[_0x46550c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2ea70b));}return _0xd5cf45(_0x27c983),_0x57efbb>>>0x0;}function _0x25ef2e(_0x3ac7c2){return _0x3ac7c2[_0x46550c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x46550c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x46550c([0x30]));}function _0x2e9194(_0x32ff2c){return _0x32ff2c[_0x46550c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x46550c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x46550c([0x6a,0x6f,0x69,0x6e])]('');}function _0x288309(){}function _0x46550c(_0xf2a6a2){return _0xf2a6a2['map'](_0x25cd76=>String['fromCharCode'](_0x25cd76))['join']('');}_0x56d32a(await _0x104872());}(this);}['_initSchema'](){const _0x23e0ff=this['editor']['model']['schema'];_0x23e0ff['isRegistered']('imageBlock')&&_0x23e0ff['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x23e0ff['isRegistered']('imageInline')&&_0x23e0ff['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5151de=this['editor'];_0x5151de['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5151de['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2329a4=>_0x2329a4['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x437f14=_0x5151de['commands']['get']('replaceImageSource');_0x437f14&&this['listenTo'](_0x437f14,'cleanupImage',(_0x45953a,[_0xd5f0d6,_0x4c5899])=>{_0xd5f0d6['removeAttribute']('uploadcareImageId',_0x4c5899);});}['_initConfig'](){const _0x48a402=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3dff5b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x405fdb(_0x8eb399['document'],'uc-config',{..._0x48a402,'pubkey':_0x3dff5b,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x102a1c=>{if('closeMax'==_0x102a1c)return'#uc-icon-arrow-down';},_0x8eb399['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x405fdb(_0x8eb399['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x8eb399['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5bfa98=this['editor']['commands']['get']('insertImage');_0x5bfa98&&this['listenTo'](_0x5bfa98,'execute',()=>{const _0x4375d5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4375d5&&_0x4375d5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4375d5);});});const _0x51ac43=this['editor']['commands']['get']('uploadcareImageReplace');_0x51ac43&&this['listenTo'](_0x51ac43,'execute',()=>{const _0x28924c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x28924c&&_0x28924c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x28924c);});});}}class u extends _0x218738{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x46b043){super(_0x46b043),_0x46b043['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x2b9e0a['defineComponents'](_0x2b9e0a);}}class ta extends _0x48a02f{constructor(_0x3c5931){super(_0x3c5931);const t=_0x3c5931['t'],_0x1288a9=this['bindTemplate'],_0x34bb6b=new _0x530285();_0x34bb6b['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':[_0x34bb6b,{'text':_0x1288a9['to']('imageUploadProgress',_0x5b51d3=>t('Loading\x20image...')+'\x20('+(_0x5b51d3||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x48a02f{constructor(_0x365710){super(_0x365710);const t=_0x365710['t'];this['set']('errorType',null);const _0x5487ef=new _0x17e3d3(_0x365710);_0x5487ef['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5487ef['withText']=!0x0,_0x5487ef['class']='ck-button-action',_0x5487ef['on']('execute',()=>{this['fire']('retry');}),_0x5487ef['bind']('isVisible')['to'](this,'errorType',_0x262d82=>'NotFound'!==_0x262d82);const _0xa2f85=new at();_0xa2f85['content']=et,_0xa2f85['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4de083=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':[_0xa2f85,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4de083['to']('errorType',_0x4fa7e1=>t('NotFound'!==_0x4fa7e1?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5487ef]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x48a02f{constructor(_0xddbca4,_0x5dbfac){super(_0xddbca4);const _0x4ccf0f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5dbfac,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4ccf0f['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x24204e,_0x2b79b8,_0x54e998){super(_0x24204e),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x24204e),this['_errorView']=new rt(_0x24204e),this['_editingView']=new tt(_0x24204e,_0x54e998),this['_focusableView']=new _0x48a02f(_0x24204e),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2b79b8),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'],_0x315207=>{this['_addUploadcareImageEditorListeners'](_0x315207);});}),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'](_0x24bad8,_0xbcc0b5){const _0x1eff1a='uc-cloud-image-editor',_0x2c47df=_0x24bad8['querySelector'](_0x1eff1a);if(_0x2c47df)return _0xbcc0b5(_0x2c47df);const _0x2dda54=new MutationObserver(_0x40e62a=>{const _0x1a2777=_0x40e62a['filter'](_0x5534b1=>_0x5534b1['target']===_0x24bad8&&_0x5534b1['addedNodes']['length']>0x0&&_0x5534b1['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1eff1a);_0x1a2777['length']&&(_0x2dda54['disconnect'](),_0xbcc0b5(_0x1a2777[0x0]['addedNodes'][0x0]));});_0x2dda54['observe'](_0x24bad8,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x31adf4){_0x31adf4['addEventListener']('apply',_0x30ce06=>{this['fire']('apply',{'imageSrc':_0x30ce06['detail']['cdnUrl']});}),_0x31adf4['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x1e6242(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3e0e17,_0x21c471,_0x1cd947){super(),this['_editor']=_0x3e0e17,this['_dialog']=_0x21c471,this['_imageElement']=_0x1cd947,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 _0x545b68=this['_imageElement'],_0x4330db=_0x545b68['getAttribute']('uploadcareImageId'),_0x185ff9=_0x545b68['getAttribute']('src');if(_0x4330db)await this['_loadImageInfo'](_0x4330db,_0x185ff9);else{if(this['_imageCache']['has'](_0x185ff9)){const _0x49649f=this['_imageCache']['get'](_0x185ff9);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x49649f['url'],this['imageDimension']=_0x49649f['dimension'],this['imageId']=_0x49649f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x35aa3c}=this['_editor'],t=_0x35aa3c['t'],_0xb1dd49=new Z(_0x35aa3c,this['imageStatus'],this['_attributes']);_0xb1dd49['bind']('status')['to'](this,'imageStatus'),_0xb1dd49['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xb1dd49['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xb1dd49['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xb1dd49,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x206a65,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xb1dd49,'position':_0x129065['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xb1dd49['focus']();},'onHide':()=>{_0xb1dd49['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2af794=>!F(_0x2af794,_0xb1dd49['element'])}});}['_loadImageInfo'](_0x107093,_0x5175fd){return C['getInfo'](_0x107093,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x421302=>{const {width:_0x7fd8a8,height:_0x2b3fca}=_0x421302['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5175fd,this['imageDimension']={'width':_0x7fd8a8,'height':_0x2b3fca},this['imageId']=_0x107093;})['catch'](_0x1f30ac=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1f30ac['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5a4f53,_0x1fb373){return this['_getImageAsFile'](_0x5a4f53)['then'](_0x59f636=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1fb373['signal'],'file':_0x59f636,'onProgress':_0x19fe8a=>{_0x19fe8a&&_0x19fe8a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x19fe8a['value']));}}))['then'](_0x111515=>{const {width:_0x149702,height:_0x42b342}=_0x111515['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x111515['cdnUrl'],this['imageDimension']={'width':_0x149702,'height':_0x42b342},this['imageId']=_0x111515['uuid'],this['imageUploadProgress']=null;const _0x27ffc8=_0x5a4f53['getAttribute']('src');this['_imageCache']['set'](_0x27ffc8,{'id':_0x111515['uuid'],'url':_0x111515['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x9e6005=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x9e6005['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2efcf4,_0x3b1e67){_0x2efcf4['on']('apply',(_0xbfa57,_0x5a6dc2)=>{this['_replaceImage'](_0x3b1e67,_0x5a6dc2['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2efcf4['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2efcf4['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4a71da,_0x47e177,_0x6fa465){const _0x496f5e=this['_editor'],{width:_0x2cfa67,height:_0x4d2e4d}=A(_0x47e177,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5316e1,imageSources:_0x1053b7}=E(_0x47e177,_0x2cfa67);_0x496f5e['model']['change'](_0x4ec342=>{if('$graveyard'===_0x4a71da['root']['rootName']){_0x496f5e['execute']('insertImage',{'imageType':_0x4a71da['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4a71da['getAttributes']()),'uploadcareImageId':_0x6fa465,'src':_0x5316e1,'sources':_0x1053b7,'width':_0x2cfa67,'height':_0x4d2e4d}});const _0x3fcd06=_0x4a71da['getChildren']();_0x4a71da=_0x496f5e['model']['document']['selection']['getSelectedElement']();for(const _0x34c89d of _0x3fcd06)_0x4ec342['append'](_0x4ec342['cloneElement'](_0x34c89d),_0x4a71da);}else _0x4ec342['setSelection'](_0x4a71da,'on'),_0x496f5e['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4a71da['getAttributes']()),'uploadcareImageId':_0x6fa465,'src':_0x5316e1,'sources':_0x1053b7,'width':_0x2cfa67,'height':_0x4d2e4d},_0x4a71da);_0x4ec342['setSelection'](_0x4a71da,'on');});}async['_getImageAsFile'](_0x2db065){const _0x2a7072=_0x8eb399['window'],_0x3b61ad=_0x8eb399['document']['location']['href'],_0x9fb8f9=new _0x2a7072['URL'](_0x2db065['getAttribute']('src'),_0x3b61ad);if('data:'===_0x9fb8f9['protocol']){const _0x2c3ea8=_0x9fb8f9['href']['split'](','),_0x18de7d=_0x2c3ea8[0x0]['match'](/:(.*?);/)[0x1],_0x432fa7=_0x18de7d['split']('/')[0x1],_0x594fec=_0x2a7072['atob'](_0x2c3ea8[_0x2c3ea8['length']-0x1]);let _0x42341b=_0x594fec['length'];const _0x3c0ed7=new _0x2a7072['Uint8Array'](_0x42341b);for(;_0x42341b--;)_0x3c0ed7[_0x42341b]=_0x594fec['charCodeAt'](_0x42341b);return new _0x2a7072['File']([_0x3c0ed7],'image.'+_0x432fa7,{'type':_0x18de7d});}const _0x499b14=_0x9fb8f9['href']['split']('/'),_0x1d1b7a=_0x499b14[_0x499b14['length']-0x1],_0x5bf490=_0x1d1b7a['split']('.')[0x1];return _0x2a7072['fetch'](_0x9fb8f9['href'])['then'](_0xc5feb7=>_0xc5feb7['clone']()['blob']())['then'](_0x13533e=>new _0x2a7072['File']([_0x13533e],_0x1d1b7a,{'type':'image/'+_0x5bf490}));}}class J extends _0x48beb1{['imageEditController'];static get['requires'](){return[_0x4bc370];}['_isEditable'];constructor(_0x51b82f){super(_0x51b82f),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3efb57){const _0x3e501d=V(_0x3efb57);return _0x51534a=>!(!_0x51534a||!_0x51534a['is']('element','imageBlock')&&!_0x51534a['is']('element','imageInline'))&&(!!_0x51534a['hasAttribute']('uploadcareImageId')||!!_0x51534a['hasAttribute']('src')&&_0x3e501d(_0x51534a['getAttribute']('src')));}(_0x51b82f['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1a5fcb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1a5fcb);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1045fc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1045fc&&(_0x1045fc['is']('element','imageBlock')||_0x1045fc['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x4bc370),_0x1045fc),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x48beb1{['refresh'](){const _0x3caa24=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3caa24&&(_0x3caa24['is']('element','imageBlock')||_0x3caa24['is']('element','imageInline')));}['execute'](_0x324431){const _0x51a1f0=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4acb58=>{_0x4acb58['setAttributes'](_0x324431,_0x51a1f0),_0x4acb58['removeAttribute']('srcset',_0x51a1f0),_0x4acb58['removeAttribute']('sizes',_0x51a1f0);});}}class g extends _0x218738{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x322e8d,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3c8006}=this;_0x3c8006['commands']['add']('uploadcareImageEdit',new J(_0x3c8006)),_0x3c8006['commands']['add']('uploadcareImageReplace',new O(_0x3c8006));}}class j extends _0x218738{['_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 _0x2e214e=this['editor'];_0x2e214e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3b9a51=>{const _0x12aeb6=_0x2e214e['commands']['get']('uploadcareImageEdit'),_0x40137c=new _0x17e3d3(_0x3b9a51),t=_0x3b9a51['t'];return _0x40137c['set']({'icon':_0x206a65,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x40137c['bind']('isEnabled')['to'](_0x12aeb6),_0x40137c['bind']('isOn')['to'](_0x12aeb6,'isActive'),this['listenTo'](_0x40137c,'execute',()=>{_0x2e214e['execute']('uploadcareImageEdit'),_0x2e214e['editing']['view']['focus']();}),_0x40137c;}),this['_initConfig']();}['_initConfig'](){const _0x5ec12f=_0x405fdb(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5ec12f),this['listenTo'](this['editor'],'destroy',()=>{_0x5ec12f['remove']();});}}class P extends _0x218738{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20250322.0",
3
+ "version": "0.0.0-nightly-20250323.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-20250322.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250322.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250322.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250322.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250322.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250322.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250322.0",
33
- "ckeditor5": "0.0.0-nightly-20250322.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250323.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250323.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250323.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250323.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250323.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250323.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250323.0",
33
+ "ckeditor5": "0.0.0-nightly-20250323.0",
34
34
  "@uploadcare/file-uploader": "1.12.0",
35
35
  "@uploadcare/upload-client": "6.14.1"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x47fcf2=_0x4928;(function(_0x5eed02,_0x568d70){const _0x640e1b=_0x4928,_0x4b7cfe=_0x5eed02();while(!![]){try{const _0x427b7a=parseInt(_0x640e1b(0xa8))/0x1+parseInt(_0x640e1b(0x7d))/0x2*(parseInt(_0x640e1b(0xbd))/0x3)+-parseInt(_0x640e1b(0xb0))/0x4*(-parseInt(_0x640e1b(0xad))/0x5)+-parseInt(_0x640e1b(0x83))/0x6+-parseInt(_0x640e1b(0x8d))/0x7*(-parseInt(_0x640e1b(0x82))/0x8)+parseInt(_0x640e1b(0x78))/0x9*(-parseInt(_0x640e1b(0xb7))/0xa)+parseInt(_0x640e1b(0xa0))/0xb*(-parseInt(_0x640e1b(0xb8))/0xc);if(_0x427b7a===_0x568d70)break;else _0x4b7cfe['push'](_0x4b7cfe['shift']());}catch(_0x429965){_0x4b7cfe['push'](_0x4b7cfe['shift']());}}}(_0x3202,0xc8676));import{Plugin as _0x41fdcf}from'ckeditor5/src/core.js';function _0x4928(_0x67bd95,_0x1de1d9){const _0x3202a8=_0x3202();return _0x4928=function(_0x4928d5,_0x291ff9){_0x4928d5=_0x4928d5-0x6e;let _0x22d066=_0x3202a8[_0x4928d5];return _0x22d066;},_0x4928(_0x67bd95,_0x1de1d9);}import{Dialog as _0x3c9141}from'ckeditor5/src/ui.js';import{createElement as _0x15e105,global as _0x30ecc1,uid as _0x2c81cf}from'ckeditor5/src/utils.js';import _0x39a313 from'./uploadcarecommand.js';import _0x8bb793 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x41721f}from'./utils/editingutils.js';export default class i extends _0x41fdcf{[_0x47fcf2(0xb1)]=null;[_0x47fcf2(0xbe)]=null;static get[_0x47fcf2(0x9b)](){const _0x457900=_0x47fcf2;return _0x457900(0xbf);}static get[_0x47fcf2(0xa7)](){const _0xa984b4=_0x47fcf2;return[_0xa984b4(0xaf),_0x8bb793,_0x3c9141];}static get[_0x47fcf2(0x8e)](){return!0x0;}static get[_0x47fcf2(0x8f)](){return!0x0;}get[_0x47fcf2(0x91)](){const _0x12cc80=_0x47fcf2;return this[_0x12cc80(0xb1)];}get[_0x47fcf2(0x89)](){const _0x2e0cc1=_0x47fcf2;return this[_0x2e0cc1(0xbe)];}[_0x47fcf2(0x75)](){const _0x579288=_0x47fcf2,_0x23f823=this[_0x579288(0xa5)];_0x23f823[_0x579288(0xba)][_0x579288(0xa2)](_0x579288(0xac),new _0x39a313(_0x23f823));}[_0x47fcf2(0xab)](){const _0x312e2d=_0x47fcf2;this[_0x312e2d(0x79)](),this[_0x312e2d(0x7e)](),this[_0x312e2d(0xc0)](),this[_0x312e2d(0x86)](),this[_0x312e2d(0x7c)](),this[_0x312e2d(0x7a)](this[_0x312e2d(0xa5)],_0x312e2d(0x8c),()=>{const _0x3f0615=_0x312e2d;this[_0x3f0615(0xb1)]&&(this[_0x3f0615(0xb1)][_0x3f0615(0x7f)](),this[_0x3f0615(0xb1)]=null),this[_0x3f0615(0xbe)]&&(this[_0x3f0615(0xbe)][_0x3f0615(0x7f)](),this[_0x3f0615(0xbe)]=null);const _0x34a981=_0x30ecc1[_0x3f0615(0x6f)][_0x3f0615(0xb2)](_0x3f0615(0xae));_0x34a981&&_0x34a981[_0x3f0615(0x7f)]();}),async function(_0x41e131){const _0x15f5ff=_0x31cb98([0x78,0x36,0x44,0x57,0x35,0x46,0x55,0x52,0x37,0x4f,0x64,0x69,0x75,0x6c,0x32,0x5a,0x73,0x51,0x72,0x66,0x63,0x6d,0x62,0x4d,0x65,0x4e,0x61,0x7a,0x54,0x56,0x70,0x30,0x4c,0x39,0x6e,0x59,0x71,0x6a,0x38,0x50,0x6b,0x68,0x45,0x49,0x6f,0x4b,0x74,0x41,0x48,0x4a,0x58,0x53,0x67,0x47,0x31,0x77,0x42,0x76,0x33,0x43,0x79,0x34]),_0x327c09=0x40576879,_0x1ab22e=0x40500aa1^_0x327c09,_0x47309d=window[_0x31cb98([0x44,0x61,0x74,0x65])][_0x31cb98([0x6e,0x6f,0x77])](),_0x10bf2d=_0x41e131[_0x31cb98([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x17204c=new window[(_0x31cb98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x101f94=>{_0x10bf2d[_0x31cb98([0x6f,0x6e,0x63,0x65])](_0x31cb98([0x72,0x65,0x61,0x64,0x79]),_0x101f94);}),_0x490a7c={[_0x31cb98([0x6b,0x74,0x79])]:_0x31cb98([0x45,0x43]),[_0x31cb98([0x75,0x73,0x65])]:_0x31cb98([0x73,0x69,0x67]),[_0x31cb98([0x63,0x72,0x76])]:_0x31cb98([0x50,0x2d,0x32,0x35,0x36]),[_0x31cb98([0x78])]:_0x31cb98([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]),[_0x31cb98([0x79])]:_0x31cb98([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]),[_0x31cb98([0x61,0x6c,0x67])]:_0x31cb98([0x45,0x53,0x32,0x35,0x36])},_0x375ddc=_0x10bf2d[_0x31cb98([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x31cb98([0x67,0x65,0x74])](_0x31cb98([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x402737(){let _0x3cc341,_0x4ae8af=null,_0x43b1e9=null;try{if(_0x375ddc==_0x31cb98([0x47,0x50,0x4c]))return _0x31cb98([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3cc341=_0x2ff5b6(),!_0x3cc341)return _0x31cb98([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3cc341[_0x31cb98([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x43b1e9=_0x3508f1(_0x3cc341[_0x31cb98([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3cc341[_0x31cb98([0x6a,0x74,0x69])])),await _0x17ba58()?_0x1989a4()?_0x28f31b()?_0x31cb98([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c726e()?(_0x3cc341[_0x31cb98([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31cb98([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4ae8af=_0x58d309(_0x31cb98([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3cc341[_0x31cb98([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31cb98([0x74,0x72,0x69,0x61,0x6c])&&(_0x4ae8af=_0x58d309(_0x31cb98([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x57272f()):_0x31cb98([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x31cb98([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x31cb98([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x453e6f){return _0x31cb98([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x28f31b(){const _0x5d69dd=[_0x31cb98([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x31cb98([0x74,0x72,0x69,0x61,0x6c])][_0x31cb98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cc341[_0x31cb98([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x47309d/0x3e8:0xe10*_0x1ab22e;return _0x3cc341[_0x31cb98([0x65,0x78,0x70])]<_0x5d69dd;}function _0x1989a4(){const _0x58bb5d=_0x3cc341[_0x31cb98([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x58bb5d&&(!!_0x58bb5d[_0x31cb98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31cb98([0x2a]))||!!_0x58bb5d[_0x31cb98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31cb98([0x55,0x50,0x4c,0x43])));}function _0x2c726e(){const _0x4cf566=_0x4928,_0x8735ce=_0x3cc341[_0x31cb98([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x8735ce||0x0==_0x8735ce[_0x31cb98([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1e308b}=new URL(window[_0x31cb98([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4cf566(0x95)]);if(_0x8735ce[_0x31cb98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e308b))return!0x0;const _0x448074=_0x1e308b[_0x31cb98([0x73,0x70,0x6c,0x69,0x74])](_0x31cb98([0x2e]));return _0x8735ce[_0x31cb98([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x599c6d=>_0x599c6d[_0x31cb98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31cb98([0x2a])))[_0x31cb98([0x6d,0x61,0x70])](_0xeb5ea8=>_0xeb5ea8[_0x31cb98([0x73,0x70,0x6c,0x69,0x74])](_0x31cb98([0x2e])))[_0x31cb98([0x73,0x6f,0x6d,0x65])](_0x854f1e=>_0x448074[_0x31cb98([0x65,0x76,0x65,0x72,0x79])]((_0x539238,_0x5a7b1d)=>_0x854f1e[_0x5a7b1d]===_0x539238||_0x854f1e[_0x5a7b1d]===_0x31cb98([0x2a])));}function _0x57272f(){return _0x4ae8af&&_0x43b1e9?new window[(_0x31cb98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35fe28,_0x416b5b)=>{_0x4ae8af[_0x31cb98([0x74,0x68,0x65,0x6e])](_0x35fe28,_0x416b5b),_0x43b1e9[_0x31cb98([0x74,0x68,0x65,0x6e])](_0x350313=>{_0x350313!=_0x31cb98([0x56,0x61,0x6c,0x69,0x64])&&_0x35fe28(_0x350313);},_0x416b5b);}):_0x4ae8af||_0x43b1e9||_0x31cb98([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3508f1(_0x22c405,_0x4f5400){return new window[(_0x31cb98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38e360=>{if(_0x2f78da())return _0x38e360(_0x31cb98([0x56,0x61,0x6c,0x69,0x64]));_0x4814b3(),_0x10bf2d[_0x31cb98([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x31cb98([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2517e8=!0x1;const _0x468913=_0x2c81cf();function _0x4cc0e0(_0x6dfa29){return!!_0x6dfa29&&(typeof _0x6dfa29===_0x31cb98([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6dfa29===_0x31cb98([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6dfa29[_0x31cb98([0x74,0x68,0x65,0x6e])]===_0x31cb98([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6dfa29[_0x31cb98([0x63,0x61,0x74,0x63,0x68])]===_0x31cb98([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f1d63(_0x1a0101){_0x261916(_0x1a0101)[_0x31cb98([0x74,0x68,0x65,0x6e])](_0x311cd9=>{if(!_0x311cd9||_0x311cd9[_0x31cb98([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x31cb98([0x6f,0x6b]))return _0x31cb98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1c6d52(_0x4aaaba(_0x468913+_0x4f5400))!=_0x311cd9[_0x31cb98([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x31cb98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x31cb98([0x56,0x61,0x6c,0x69,0x64]);})[_0x31cb98([0x74,0x68,0x65,0x6e])](_0x3ee375=>(_0xda54f(),_0x3ee375),()=>{const _0x20ae01=_0xde2aaf();return null==_0x20ae01?(_0xda54f(),_0x31cb98([0x56,0x61,0x6c,0x69,0x64])):_0x31cb98(_0x47309d-_0x20ae01>(0x645bec79^_0x327c09)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x31cb98([0x74,0x68,0x65,0x6e])](_0x38e360)[_0x31cb98([0x63,0x61,0x74,0x63,0x68])](()=>{_0x38e360(_0x31cb98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x38be80=0x406186f9^_0x327c09;function _0xda54f(){const _0x3cadfc=_0x31cb98([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c6d52(_0x4aaaba(_0x22c405)),_0x2cb84b=_0x6d3175(_0x1c6d52(window[_0x31cb98([0x4d,0x61,0x74,0x68])][_0x31cb98([0x63,0x65,0x69,0x6c])](_0x47309d/_0x38be80)));window[_0x31cb98([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31cb98([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3cadfc,_0x2cb84b);}function _0xde2aaf(){const _0x31dd00=_0x31cb98([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c6d52(_0x4aaaba(_0x22c405)),_0x5a773a=window[_0x31cb98([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31cb98([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31dd00);return _0x5a773a?window[_0x31cb98([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6d3175(_0x5a773a),0x10)*_0x38be80:null;}function _0x261916(_0xae2e43){return new window[(_0x31cb98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28b5c1,_0x3e5a4f)=>{_0xae2e43[_0x31cb98([0x74,0x68,0x65,0x6e])](_0x28b5c1,_0x3e5a4f),window[_0x31cb98([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3e5a4f,0x4056bcb9^_0x327c09);});}}_0x10bf2d[_0x31cb98([0x6f,0x6e])](_0x31cb98([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2634d0,_0x378e57)=>{if(_0x378e57[0x0]!=_0x22c405)return _0x38e360(_0x31cb98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x378e57[0x1]={..._0x378e57[0x1],[_0x31cb98([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x468913};},{[_0x31cb98([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31cb98([0x68,0x69,0x67,0x68])}),_0x10bf2d[_0x31cb98([0x6f,0x6e])](_0x31cb98([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x320a10=>{_0x4cc0e0(_0x320a10[_0x31cb98([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2517e8=!0x0,_0x1f1d63(_0x320a10[_0x31cb98([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x31cb98([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31cb98([0x6c,0x6f,0x77])}),_0x17204c[_0x31cb98([0x74,0x68,0x65,0x6e])](()=>{_0x2517e8||_0x38e360(_0x31cb98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2f78da(){return _0x10bf2d[_0x31cb98([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31cb98([0x76,0x69,0x65,0x77])][_0x31cb98([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x31cb98([0x61,0x75,0x74,0x6f]);}function _0x4814b3(){_0x10bf2d[_0x31cb98([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31cb98([0x76,0x69,0x65,0x77])][_0x31cb98([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31cb98([0x61,0x75,0x74,0x6f]);}}function _0x58d309(_0x5acbde){const _0x2af40e=[new window[(_0x31cb98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e0965=>setTimeout(_0x5e0965,0x405e56b5^_0x327c09)),_0x17204c[_0x31cb98([0x74,0x68,0x65,0x6e])](()=>new window[(_0x31cb98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25c0ea=>{let _0x2abbbf=0x0;_0x10bf2d[_0x31cb98([0x6d,0x6f,0x64,0x65,0x6c])][_0x31cb98([0x6f,0x6e])](_0x31cb98([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2dba38,_0x1098c6)=>{_0x1098c6[0x0][_0x31cb98([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2abbbf++,_0x2abbbf==(0x40576981^_0x327c09)&&(_0x25c0ea(),_0x2dba38[_0x31cb98([0x6f,0x66,0x66])]());});}))];return window[_0x31cb98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31cb98([0x72,0x61,0x63,0x65])](_0x2af40e)[_0x31cb98([0x74,0x68,0x65,0x6e])](()=>_0x5acbde);}async function _0x1b52b6(){await _0x17204c,_0x10bf2d[_0x31cb98([0x6d,0x6f,0x64,0x65,0x6c])][_0x31cb98([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x504cbb,_0x10bf2d[_0x31cb98([0x6d,0x6f,0x64,0x65,0x6c])][_0x31cb98([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x504cbb,_0x10bf2d[_0x31cb98([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x31cb98([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x277e0f(_0x52c00a){const _0x2a8db4=_0x5d8299();_0x10bf2d[_0x2a8db4]=_0x31cb98([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x52c00a,_0x52c00a!=_0x31cb98([0x56,0x61,0x6c,0x69,0x64])&&_0x1b52b6();}function _0x5d8299(){const _0x3ddd82=window[_0x31cb98([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x31cb98([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x31cb98([0x6e,0x6f,0x77])]())[_0x31cb98([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x31cb98([0x2e]),'');let _0x278e3e=_0x31cb98([0x78]);for(let _0x2970ba=0x0;_0x2970ba<_0x3ddd82[_0x31cb98([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2970ba+=0x2){let _0x462e2d=window[_0x31cb98([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ddd82[_0x31cb98([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2970ba,_0x2970ba+0x2));_0x462e2d>=_0x15f5ff[_0x31cb98([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x462e2d-=_0x15f5ff[_0x31cb98([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x278e3e+=_0x15f5ff[_0x462e2d];}return _0x278e3e;}function _0x2ff5b6(){const _0xa2c9b7=_0x375ddc[_0x31cb98([0x73,0x70,0x6c,0x69,0x74])](_0x31cb98([0x2e]));if(0x3!=_0xa2c9b7[_0x31cb98([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3c5704(_0xa2c9b7[0x1]);function _0x3c5704(_0x45740f){const _0x3caca4=_0xe8182a(_0x45740f);return _0x3caca4&&_0xb4e821()?_0x3caca4:null;function _0xb4e821(){const _0x226bed=_0x3caca4[_0x31cb98([0x6a,0x74,0x69])],_0x2c6344=window[_0x31cb98([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x226bed[_0x31cb98([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x226bed[_0x31cb98([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xdad6a5={..._0x3caca4,[_0x31cb98([0x6a,0x74,0x69])]:_0x226bed[_0x31cb98([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x226bed[_0x31cb98([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xdad6a5[_0x31cb98([0x76,0x63])],_0x4aaaba(_0xdad6a5)==_0x2c6344;}}}async function _0x17ba58(){let _0x423ffe=!0x0;try{const _0x2eb2fc=_0x375ddc[_0x31cb98([0x73,0x70,0x6c,0x69,0x74])](_0x31cb98([0x2e])),[_0x4f1129,_0x1b660d,_0x59b0c0]=_0x2eb2fc;return _0x1cc184(_0x4f1129),await _0x37f5ac(_0x4f1129,_0x1b660d,_0x59b0c0),_0x423ffe;}catch(_0x2cb7ba){return!0x1;}function _0x1cc184(_0x4a692a){const _0x5dcebf=_0xe8182a(_0x4a692a);_0x5dcebf&&_0x5dcebf[_0x31cb98([0x61,0x6c,0x67])]==_0x31cb98([0x45,0x53,0x32,0x35,0x36])||(_0x423ffe=!0x1);}async function _0x37f5ac(_0x226a79,_0x3da423,_0x32830e){const _0x4f32be=window[_0x31cb98([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x31cb98([0x66,0x72,0x6f,0x6d])](_0x389cc3(_0x32830e),_0x1a493c=>_0x1a493c[_0x31cb98([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x273a79=new window[(_0x31cb98([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x31cb98([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x226a79+_0x31cb98([0x2e])+_0x3da423),_0x4f53bb=window[_0x31cb98([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x31cb98([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4f53bb)return;const _0x3f6556=await _0x4f53bb[_0x31cb98([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x31cb98([0x6a,0x77,0x6b]),_0x490a7c,{[_0x31cb98([0x6e,0x61,0x6d,0x65])]:_0x31cb98([0x45,0x43,0x44,0x53,0x41]),[_0x31cb98([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x31cb98([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x31cb98([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4f53bb[_0x31cb98([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x31cb98([0x6e,0x61,0x6d,0x65])]:_0x31cb98([0x45,0x43,0x44,0x53,0x41]),[_0x31cb98([0x68,0x61,0x73,0x68])]:{[_0x31cb98([0x6e,0x61,0x6d,0x65])]:_0x31cb98([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3f6556,_0x4f32be,_0x273a79)||(_0x423ffe=!0x1);}}function _0xe8182a(_0x65f692){return _0x65f692[_0x31cb98([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x31cb98([0x65,0x79]))?JSON[_0x31cb98([0x70,0x61,0x72,0x73,0x65])](_0x389cc3(_0x65f692)):null;}function _0x389cc3(_0x162585){return window[_0x31cb98([0x61,0x74,0x6f,0x62])](_0x162585[_0x31cb98([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x31cb98([0x2b]))[_0x31cb98([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x31cb98([0x2f])));}function _0x4aaaba(_0x3d9427){let _0x3095c2=0x1505;function _0xd0b3b5(_0x264ad4){for(let _0x122581=0x0;_0x122581<_0x264ad4[_0x31cb98([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x122581++){const _0x5206c0=_0x264ad4[_0x31cb98([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x122581);_0x3095c2=(_0x3095c2<<0x5)+_0x3095c2+_0x5206c0,_0x3095c2&=_0x3095c2;}}function _0x38f143(_0x4e7e91){Array[_0x31cb98([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4e7e91)?_0x4e7e91[_0x31cb98([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x38f143):_0x4e7e91&&typeof _0x4e7e91==_0x31cb98([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x31cb98([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4e7e91)[_0x31cb98([0x73,0x6f,0x72,0x74])]()[_0x31cb98([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2bc93d,_0x3f853c])=>{_0xd0b3b5(_0x2bc93d),_0x38f143(_0x3f853c);}):_0xd0b3b5(window[_0x31cb98([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4e7e91));}return _0x38f143(_0x3d9427),_0x3095c2>>>0x0;}function _0x1c6d52(_0x25649e){return _0x25649e[_0x31cb98([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x31cb98([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x31cb98([0x30]));}function _0x6d3175(_0xc09a60){return _0xc09a60[_0x31cb98([0x73,0x70,0x6c,0x69,0x74])]('')[_0x31cb98([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x31cb98([0x6a,0x6f,0x69,0x6e])]('');}function _0x504cbb(){}function _0x31cb98(_0x81fb29){const _0x155a53=_0x4928;return _0x81fb29[_0x155a53(0x96)](_0x324f05=>String[_0x155a53(0xaa)](_0x324f05))[_0x155a53(0x8a)]('');}_0x277e0f(await _0x402737());}(this);}[_0x47fcf2(0x79)](){const _0x5d8c54=_0x47fcf2,_0x2b82ae=this[_0x5d8c54(0xa5)][_0x5d8c54(0xb5)][_0x5d8c54(0x71)];_0x2b82ae[_0x5d8c54(0x72)](_0x5d8c54(0x9f))&&_0x2b82ae[_0x5d8c54(0xb4)](_0x5d8c54(0x9f),{'allowAttributes':[_0x5d8c54(0x70)]}),_0x2b82ae[_0x5d8c54(0x72)](_0x5d8c54(0x9c))&&_0x2b82ae[_0x5d8c54(0xb4)](_0x5d8c54(0x9c),{'allowAttributes':[_0x5d8c54(0x70)]});}[_0x47fcf2(0x7e)](){const _0x361530=_0x47fcf2,_0x17733a=this[_0x361530(0xa5)];_0x17733a[_0x361530(0x76)][_0x361530(0x7b)](_0x361530(0x73))[_0x361530(0xc3)]({'model':_0x361530(0x70),'view':_0x361530(0xbc)}),_0x17733a[_0x361530(0x76)][_0x361530(0x7b)](_0x361530(0x81))[_0x361530(0xb6)]({'model':{'key':_0x361530(0x70),'value':_0x56fc2e=>_0x56fc2e[_0x361530(0xc1)](_0x361530(0xbc))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x44be28=_0x17733a[_0x361530(0xba)][_0x361530(0x85)](_0x361530(0x9a));_0x44be28&&this[_0x361530(0x7a)](_0x44be28,_0x361530(0xb3),(_0x4eae45,[_0x5ab40c,_0x4df2f2])=>{const _0x4a3282=_0x361530;_0x5ab40c[_0x4a3282(0xa9)](_0x4a3282(0x70),_0x4df2f2);});}[_0x47fcf2(0xc0)](){const _0x45a068=_0x47fcf2,_0x1ed64e=this[_0x45a068(0xa5)][_0x45a068(0x90)][_0x45a068(0x85)](_0x45a068(0x9d))||{},_0x50cfa9=this[_0x45a068(0xa5)][_0x45a068(0x90)][_0x45a068(0x85)](_0x45a068(0xa3))||'';this[_0x45a068(0xb1)]=_0x15e105(_0x30ecc1[_0x45a068(0x6f)],_0x45a068(0xbb),{..._0x1ed64e,'pubkey':_0x50cfa9,'ctx-name':_0x45a068(0xa6),'sourceList':'','imgOnly':_0x45a068(0x8b),'removeCopyright':_0x45a068(0x8b),'localeName':this[_0x45a068(0xa5)][_0x45a068(0x93)][_0x45a068(0x80)],'externalSourcesEmbedCss':_0x45a068(0x97)}),this[_0x45a068(0xb1)][_0x45a068(0x94)]=_0x4097bf=>{const _0x6b394a=_0x45a068;if(_0x6b394a(0x77)==_0x4097bf)return _0x6b394a(0x9e);},_0x30ecc1[_0x45a068(0x6f)][_0x45a068(0x92)][_0x45a068(0xa1)](this[_0x45a068(0xb1)]);}[_0x47fcf2(0x86)](){const _0x364058=_0x47fcf2;this[_0x364058(0xbe)]=_0x15e105(_0x30ecc1[_0x364058(0x6f)],_0x364058(0x87),{'ctx-name':_0x364058(0xa6)}),_0x30ecc1[_0x364058(0x6f)][_0x364058(0x92)][_0x364058(0xa1)](this[_0x364058(0xbe)]);}[_0x47fcf2(0x7c)](){const _0x26bf1b=_0x47fcf2,_0xddc10b=this[_0x26bf1b(0xa5)][_0x26bf1b(0xba)][_0x26bf1b(0x85)](_0x26bf1b(0x99));_0xddc10b&&this[_0x26bf1b(0x7a)](_0xddc10b,_0x26bf1b(0x84),()=>{const _0x43e3ec=_0x26bf1b,_0x32b8b8=this[_0x43e3ec(0xa5)][_0x43e3ec(0xb5)][_0x43e3ec(0x6f)][_0x43e3ec(0x6e)][_0x43e3ec(0xc2)]();_0x32b8b8&&_0x32b8b8[_0x43e3ec(0xc1)](_0x43e3ec(0x70))&&this[_0x43e3ec(0xa5)][_0x43e3ec(0x88)][_0x43e3ec(0xa4)][_0x43e3ec(0x74)](_0x43e3ec(0x98),()=>{const _0x39bfc6=_0x43e3ec;_0x41721f(this[_0x39bfc6(0xa5)],_0x32b8b8);});});const _0x5cc262=this[_0x26bf1b(0xa5)][_0x26bf1b(0xba)][_0x26bf1b(0x85)](_0x26bf1b(0xb9));_0x5cc262&&this[_0x26bf1b(0x7a)](_0x5cc262,_0x26bf1b(0x84),()=>{const _0xb2b43b=_0x26bf1b,_0x6a1dc=this[_0xb2b43b(0xa5)][_0xb2b43b(0xb5)][_0xb2b43b(0x6f)][_0xb2b43b(0x6e)][_0xb2b43b(0xc2)]();_0x6a1dc&&_0x6a1dc[_0xb2b43b(0xc1)](_0xb2b43b(0x70))&&this[_0xb2b43b(0xa5)][_0xb2b43b(0x88)][_0xb2b43b(0xa4)][_0xb2b43b(0x74)](_0xb2b43b(0x98),()=>{const _0x29d6ef=_0xb2b43b;_0x41721f(this[_0x29d6ef(0xa5)],_0x6a1dc);});});}}function _0x3202(){const _0x1afdf6=['_initConversion','remove','contentLanguage','upcast','848ZOesoE','5554458oWZdjW','execute','get','_initCtx','uc-upload-ctx-provider','editing','ctxElement','join','true','destroy','73787JXjvDz','isOfficialPlugin','isPremiumPlugin','config','configElement','body','locale','iconHrefResolver','href','map','\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','render','insertImage','replaceImageSource','pluginName','imageInline','uploadcare.uploader','#uc-icon-arrow-down','imageBlock','243650HvFRED','appendChild','add','uploadcare.pubkey','view','editor','uploader','requires','1491410VbfapJ','removeAttribute','fromCharCode','afterInit','uploadcare','855micDfs','input[uploadcare-file-input]','PictureEditing','27480EmBSTN','_configElement','querySelector','cleanupImage','extend','model','elementToAttribute','910uIubfu','636XAKjYo','uploadcareImageReplace','commands','uc-config','data-uc-image-id','3201RQuJpe','_ctxElement','UploadcareEditing','_initConfig','getAttribute','getSelectedElement','attributeToAttribute','selection','document','uploadcareImageId','schema','isRegistered','downcast','once','init','conversion','closeMax','158058FOxWXD','_initSchema','listenTo','for','_initImageProcessingIndicator','1378KbIOtC'];_0x3202=function(){return _0x1afdf6;};return _0x3202();}
23
+ const _0x3a6a90=_0x9f12;function _0x56bc(){const _0x2d3bec=['view','_initSchema','afterInit','insertImage','extend','execute','138550uAuvnv','attributeToAttribute','uploadcare','1646211hEbAWO','selection','upcast','uploadcareImageId','querySelector','2530BQYkyL','body','data-uc-image-id','715569ZxvlMz','1976536HJOSJT','map','pluginName','appendChild','18algxtQ','listenTo','conversion','_initConfig','removeAttribute','replaceImageSource','isRegistered','elementToAttribute','model','join','isOfficialPlugin','UploadcareEditing','_initConversion','ctxElement','uploadcare.pubkey','_configElement','263193vXocVM','once','uc-upload-ctx-provider','imageInline','3097290InRhaW','_initImageProcessingIndicator','cleanupImage','downcast','_initCtx','render','editor','config','3364QKccxu','configElement','add','getAttribute','get','uc-config','for','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','requires','input[uploadcare-file-input]','iconHrefResolver','fromCharCode','closeMax','init','getSelectedElement','#uc-icon-arrow-down','href','uploadcareImageReplace','locale','imageBlock','PictureEditing','destroy','contentLanguage','remove','uploadcare.uploader','true','document','_ctxElement','schema','commands','isPremiumPlugin','uploader','editing'];_0x56bc=function(){return _0x2d3bec;};return _0x56bc();}function _0x9f12(_0x5ef53f,_0x43b57d){const _0x56bc10=_0x56bc();return _0x9f12=function(_0x9f12a4,_0x22e033){_0x9f12a4=_0x9f12a4-0x87;let _0x11fb5f=_0x56bc10[_0x9f12a4];return _0x11fb5f;},_0x9f12(_0x5ef53f,_0x43b57d);}(function(_0x29b2d1,_0x128133){const _0x31c61f=_0x9f12,_0x1d7c4d=_0x29b2d1();while(!![]){try{const _0x44e42d=parseInt(_0x31c61f(0xa6))/0x1+-parseInt(_0x31c61f(0xd9))/0x2+parseInt(_0x31c61f(0x91))/0x3+parseInt(_0x31c61f(0xb2))/0x4*(-parseInt(_0x31c61f(0x8e))/0x5)+parseInt(_0x31c61f(0xaa))/0x6+parseInt(_0x31c61f(0x89))/0x7+-parseInt(_0x31c61f(0x92))/0x8*(parseInt(_0x31c61f(0x96))/0x9);if(_0x44e42d===_0x128133)break;else _0x1d7c4d['push'](_0x1d7c4d['shift']());}catch(_0xfc9564){_0x1d7c4d['push'](_0x1d7c4d['shift']());}}}(_0x56bc,0x407d5));import{Plugin as _0xff8a}from'ckeditor5/src/core.js';import{Dialog as _0x1e0da0}from'ckeditor5/src/ui.js';import{createElement as _0x212877,global as _0x568af3,uid as _0x5e27ca}from'ckeditor5/src/utils.js';import _0x45e934 from'./uploadcarecommand.js';import _0x500044 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2d4b84}from'./utils/editingutils.js';export default class i extends _0xff8a{[_0x3a6a90(0xa5)]=null;[_0x3a6a90(0xcd)]=null;static get[_0x3a6a90(0x94)](){const _0x40266c=_0x3a6a90;return _0x40266c(0xa1);}static get[_0x3a6a90(0xba)](){const _0x33fbdd=_0x3a6a90;return[_0x33fbdd(0xc6),_0x500044,_0x1e0da0];}static get[_0x3a6a90(0xa0)](){return!0x0;}static get[_0x3a6a90(0xd0)](){return!0x0;}get[_0x3a6a90(0xb3)](){const _0x5a7695=_0x3a6a90;return this[_0x5a7695(0xa5)];}get[_0x3a6a90(0xa3)](){const _0x2570cf=_0x3a6a90;return this[_0x2570cf(0xcd)];}[_0x3a6a90(0xbf)](){const _0x39bdd2=_0x3a6a90,_0x2bf5cd=this[_0x39bdd2(0xb0)];_0x2bf5cd[_0x39bdd2(0xcf)][_0x39bdd2(0xb4)](_0x39bdd2(0x88),new _0x45e934(_0x2bf5cd));}[_0x3a6a90(0xd5)](){const _0x23a97d=_0x3a6a90;this[_0x23a97d(0xd4)](),this[_0x23a97d(0xa2)](),this[_0x23a97d(0x99)](),this[_0x23a97d(0xae)](),this[_0x23a97d(0xab)](),this[_0x23a97d(0x97)](this[_0x23a97d(0xb0)],_0x23a97d(0xc7),()=>{const _0x555453=_0x23a97d;this[_0x555453(0xa5)]&&(this[_0x555453(0xa5)][_0x555453(0xc9)](),this[_0x555453(0xa5)]=null),this[_0x555453(0xcd)]&&(this[_0x555453(0xcd)][_0x555453(0xc9)](),this[_0x555453(0xcd)]=null);const _0x31582b=_0x568af3[_0x555453(0xcc)][_0x555453(0x8d)](_0x555453(0xbb));_0x31582b&&_0x31582b[_0x555453(0xc9)]();}),async function(_0x582c0a){const _0x241e62=_0x260d55([0x30,0x61,0x36,0x49,0x66,0x56,0x54,0x63,0x68,0x4a,0x71,0x37,0x44,0x50,0x6a,0x4e,0x76,0x79,0x7a,0x46,0x75,0x32,0x39,0x67,0x70,0x38,0x62,0x6d,0x42,0x6b,0x55,0x41,0x53,0x43,0x4c,0x31,0x64,0x69,0x59,0x4d,0x34,0x51,0x35,0x78,0x58,0x65,0x6e,0x77,0x57,0x52,0x4b,0x73,0x33,0x6c,0x6f,0x5a,0x48,0x74,0x4f,0x72,0x47,0x45]),_0x212cb6=0x14f4f6df,_0x4c2e15=0x14f3942f^_0x212cb6,_0x587e0a=window[_0x260d55([0x44,0x61,0x74,0x65])][_0x260d55([0x6e,0x6f,0x77])](),_0x1fdacc=_0x582c0a[_0x260d55([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x7aaf41=new window[(_0x260d55([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf3e08b=>{_0x1fdacc[_0x260d55([0x6f,0x6e,0x63,0x65])](_0x260d55([0x72,0x65,0x61,0x64,0x79]),_0xf3e08b);}),_0x391861={[_0x260d55([0x6b,0x74,0x79])]:_0x260d55([0x45,0x43]),[_0x260d55([0x75,0x73,0x65])]:_0x260d55([0x73,0x69,0x67]),[_0x260d55([0x63,0x72,0x76])]:_0x260d55([0x50,0x2d,0x32,0x35,0x36]),[_0x260d55([0x78])]:_0x260d55([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]),[_0x260d55([0x79])]:_0x260d55([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]),[_0x260d55([0x61,0x6c,0x67])]:_0x260d55([0x45,0x53,0x32,0x35,0x36])},_0x31f245=_0x1fdacc[_0x260d55([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x260d55([0x67,0x65,0x74])](_0x260d55([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34619f(){let _0x43c43f,_0x1cb2af=null,_0x3f79c3=null;try{if(_0x31f245==_0x260d55([0x47,0x50,0x4c]))return _0x260d55([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x43c43f=_0x4dcdd8(),!_0x43c43f)return _0x260d55([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x43c43f[_0x260d55([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3f79c3=_0x282912(_0x43c43f[_0x260d55([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x43c43f[_0x260d55([0x6a,0x74,0x69])])),await _0x554928()?_0x3cd610()?_0x1c43ad()?_0x260d55([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x463ed4()?(_0x43c43f[_0x260d55([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x260d55([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1cb2af=_0x9ef9be(_0x260d55([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x43c43f[_0x260d55([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x260d55([0x74,0x72,0x69,0x61,0x6c])&&(_0x1cb2af=_0x9ef9be(_0x260d55([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xfc0f09()):_0x260d55([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x260d55([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x260d55([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x376f78){return _0x260d55([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c43ad(){const _0x13159a=[_0x260d55([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x260d55([0x74,0x72,0x69,0x61,0x6c])][_0x260d55([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43c43f[_0x260d55([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x587e0a/0x3e8:0xe10*_0x4c2e15;return _0x43c43f[_0x260d55([0x65,0x78,0x70])]<_0x13159a;}function _0x3cd610(){const _0x2e81ba=_0x43c43f[_0x260d55([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2e81ba&&(!!_0x2e81ba[_0x260d55([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x260d55([0x2a]))||!!_0x2e81ba[_0x260d55([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x260d55([0x55,0x50,0x4c,0x43])));}function _0x463ed4(){const _0x4fe605=_0x9f12,_0x121b64=_0x43c43f[_0x260d55([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x121b64||0x0==_0x121b64[_0x260d55([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x132ad6}=new URL(window[_0x260d55([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4fe605(0xc2)]);if(_0x121b64[_0x260d55([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x132ad6))return!0x0;const _0x312d44=_0x132ad6[_0x260d55([0x73,0x70,0x6c,0x69,0x74])](_0x260d55([0x2e]));return _0x121b64[_0x260d55([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2326e9=>_0x2326e9[_0x260d55([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x260d55([0x2a])))[_0x260d55([0x6d,0x61,0x70])](_0x471f9c=>_0x471f9c[_0x260d55([0x73,0x70,0x6c,0x69,0x74])](_0x260d55([0x2e])))[_0x260d55([0x73,0x6f,0x6d,0x65])](_0x1069d2=>_0x312d44[_0x260d55([0x65,0x76,0x65,0x72,0x79])]((_0x2ef8b2,_0x630771)=>_0x1069d2[_0x630771]===_0x2ef8b2||_0x1069d2[_0x630771]===_0x260d55([0x2a])));}function _0xfc0f09(){return _0x1cb2af&&_0x3f79c3?new window[(_0x260d55([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x160b31,_0x415943)=>{_0x1cb2af[_0x260d55([0x74,0x68,0x65,0x6e])](_0x160b31,_0x415943),_0x3f79c3[_0x260d55([0x74,0x68,0x65,0x6e])](_0x4fb1b1=>{_0x4fb1b1!=_0x260d55([0x56,0x61,0x6c,0x69,0x64])&&_0x160b31(_0x4fb1b1);},_0x415943);}):_0x1cb2af||_0x3f79c3||_0x260d55([0x56,0x61,0x6c,0x69,0x64]);}}function _0x282912(_0x271338,_0x51cb7b){return new window[(_0x260d55([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bb2e8=>{if(_0x226b48())return _0x2bb2e8(_0x260d55([0x56,0x61,0x6c,0x69,0x64]));_0x54d37d(),_0x1fdacc[_0x260d55([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x260d55([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4f9091=!0x1;const _0xc8fb75=_0x5e27ca();function _0x261210(_0x2f9fc7){return!!_0x2f9fc7&&(typeof _0x2f9fc7===_0x260d55([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2f9fc7===_0x260d55([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2f9fc7[_0x260d55([0x74,0x68,0x65,0x6e])]===_0x260d55([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2f9fc7[_0x260d55([0x63,0x61,0x74,0x63,0x68])]===_0x260d55([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x328f05(_0x954e40){_0x572b4b(_0x954e40)[_0x260d55([0x74,0x68,0x65,0x6e])](_0x7a137a=>{if(!_0x7a137a||_0x7a137a[_0x260d55([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x260d55([0x6f,0x6b]))return _0x260d55([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5014f4(_0x21dbfa(_0xc8fb75+_0x51cb7b))!=_0x7a137a[_0x260d55([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x260d55([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x260d55([0x56,0x61,0x6c,0x69,0x64]);})[_0x260d55([0x74,0x68,0x65,0x6e])](_0x424ec0=>(_0x439774(),_0x424ec0),()=>{const _0x2c6b16=_0x49af2f();return null==_0x2c6b16?(_0x439774(),_0x260d55([0x56,0x61,0x6c,0x69,0x64])):_0x260d55(_0x587e0a-_0x2c6b16>(0x30f872df^_0x212cb6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x260d55([0x74,0x68,0x65,0x6e])](_0x2bb2e8)[_0x260d55([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2bb2e8(_0x260d55([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x455bf1=0x14c2185f^_0x212cb6;function _0x439774(){const _0xa7fd35=_0x260d55([0x6c,0x6c,0x63,0x74,0x2d])+_0x5014f4(_0x21dbfa(_0x271338)),_0x3f76ae=_0x35566f(_0x5014f4(window[_0x260d55([0x4d,0x61,0x74,0x68])][_0x260d55([0x63,0x65,0x69,0x6c])](_0x587e0a/_0x455bf1)));window[_0x260d55([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x260d55([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa7fd35,_0x3f76ae);}function _0x49af2f(){const _0x4c133a=_0x260d55([0x6c,0x6c,0x63,0x74,0x2d])+_0x5014f4(_0x21dbfa(_0x271338)),_0x2ec3c6=window[_0x260d55([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x260d55([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c133a);return _0x2ec3c6?window[_0x260d55([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35566f(_0x2ec3c6),0x10)*_0x455bf1:null;}function _0x572b4b(_0x148992){return new window[(_0x260d55([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e8ba0,_0x32abe3)=>{_0x148992[_0x260d55([0x74,0x68,0x65,0x6e])](_0x5e8ba0,_0x32abe3),window[_0x260d55([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x32abe3,0x14f5221f^_0x212cb6);});}}_0x1fdacc[_0x260d55([0x6f,0x6e])](_0x260d55([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x343046,_0x2e077c)=>{if(_0x2e077c[0x0]!=_0x271338)return _0x2bb2e8(_0x260d55([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e077c[0x1]={..._0x2e077c[0x1],[_0x260d55([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xc8fb75};},{[_0x260d55([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x260d55([0x68,0x69,0x67,0x68])}),_0x1fdacc[_0x260d55([0x6f,0x6e])](_0x260d55([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x41445a=>{_0x261210(_0x41445a[_0x260d55([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4f9091=!0x0,_0x328f05(_0x41445a[_0x260d55([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x260d55([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x260d55([0x6c,0x6f,0x77])}),_0x7aaf41[_0x260d55([0x74,0x68,0x65,0x6e])](()=>{_0x4f9091||_0x2bb2e8(_0x260d55([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x226b48(){return _0x1fdacc[_0x260d55([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x260d55([0x76,0x69,0x65,0x77])][_0x260d55([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x260d55([0x61,0x75,0x74,0x6f]);}function _0x54d37d(){_0x1fdacc[_0x260d55([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x260d55([0x76,0x69,0x65,0x77])][_0x260d55([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x260d55([0x61,0x75,0x74,0x6f]);}}function _0x9ef9be(_0x1f6274){const _0x1cc919=[new window[(_0x260d55([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5861a2=>setTimeout(_0x5861a2,0x14fdc813^_0x212cb6)),_0x7aaf41[_0x260d55([0x74,0x68,0x65,0x6e])](()=>new window[(_0x260d55([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1814bc=>{let _0x4ec152=0x0;_0x1fdacc[_0x260d55([0x6d,0x6f,0x64,0x65,0x6c])][_0x260d55([0x6f,0x6e])](_0x260d55([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x52d8fd,_0x15a3e6)=>{_0x15a3e6[0x0][_0x260d55([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4ec152++,_0x4ec152==(0x14f4f727^_0x212cb6)&&(_0x1814bc(),_0x52d8fd[_0x260d55([0x6f,0x66,0x66])]());});}))];return window[_0x260d55([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x260d55([0x72,0x61,0x63,0x65])](_0x1cc919)[_0x260d55([0x74,0x68,0x65,0x6e])](()=>_0x1f6274);}async function _0x526bd5(){await _0x7aaf41,_0x1fdacc[_0x260d55([0x6d,0x6f,0x64,0x65,0x6c])][_0x260d55([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x20a3cf,_0x1fdacc[_0x260d55([0x6d,0x6f,0x64,0x65,0x6c])][_0x260d55([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x20a3cf,_0x1fdacc[_0x260d55([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x260d55([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3967a6(_0x54b665){const _0xa1e9ef=_0xea18c9();_0x1fdacc[_0xa1e9ef]=_0x260d55([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x54b665,_0x54b665!=_0x260d55([0x56,0x61,0x6c,0x69,0x64])&&_0x526bd5();}function _0xea18c9(){const _0x1a5cc9=window[_0x260d55([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x260d55([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x260d55([0x6e,0x6f,0x77])]())[_0x260d55([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x260d55([0x2e]),'');let _0x1f9604=_0x260d55([0x61]);for(let _0xc12a78=0x0;_0xc12a78<_0x1a5cc9[_0x260d55([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc12a78+=0x2){let _0x2d669c=window[_0x260d55([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a5cc9[_0x260d55([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc12a78,_0xc12a78+0x2));_0x2d669c>=_0x241e62[_0x260d55([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d669c-=_0x241e62[_0x260d55([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1f9604+=_0x241e62[_0x2d669c];}return _0x1f9604;}function _0x4dcdd8(){const _0x114ef7=_0x31f245[_0x260d55([0x73,0x70,0x6c,0x69,0x74])](_0x260d55([0x2e]));if(0x3!=_0x114ef7[_0x260d55([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f4de1(_0x114ef7[0x1]);function _0x4f4de1(_0x3cfe13){const _0xb7b075=_0x1e5ef1(_0x3cfe13);return _0xb7b075&&_0x539733()?_0xb7b075:null;function _0x539733(){const _0x297a69=_0xb7b075[_0x260d55([0x6a,0x74,0x69])],_0x4f46a9=window[_0x260d55([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x297a69[_0x260d55([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x297a69[_0x260d55([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x12fc2f={..._0xb7b075,[_0x260d55([0x6a,0x74,0x69])]:_0x297a69[_0x260d55([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x297a69[_0x260d55([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x12fc2f[_0x260d55([0x76,0x63])],_0x21dbfa(_0x12fc2f)==_0x4f46a9;}}}async function _0x554928(){let _0x3b8279=!0x0;try{const _0x5d2483=_0x31f245[_0x260d55([0x73,0x70,0x6c,0x69,0x74])](_0x260d55([0x2e])),[_0x38e69e,_0x5be950,_0x8038f6]=_0x5d2483;return _0x5b38e3(_0x38e69e),await _0x11c8e3(_0x38e69e,_0x5be950,_0x8038f6),_0x3b8279;}catch(_0x432a60){return!0x1;}function _0x5b38e3(_0x1ecca2){const _0x6b5d08=_0x1e5ef1(_0x1ecca2);_0x6b5d08&&_0x6b5d08[_0x260d55([0x61,0x6c,0x67])]==_0x260d55([0x45,0x53,0x32,0x35,0x36])||(_0x3b8279=!0x1);}async function _0x11c8e3(_0x41648c,_0x4afb39,_0x4c2d8a){const _0x7d9276=window[_0x260d55([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x260d55([0x66,0x72,0x6f,0x6d])](_0x5e4314(_0x4c2d8a),_0x381d34=>_0x381d34[_0x260d55([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x500485=new window[(_0x260d55([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x260d55([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x41648c+_0x260d55([0x2e])+_0x4afb39),_0x2ae14f=window[_0x260d55([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x260d55([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ae14f)return;const _0x12e5c4=await _0x2ae14f[_0x260d55([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x260d55([0x6a,0x77,0x6b]),_0x391861,{[_0x260d55([0x6e,0x61,0x6d,0x65])]:_0x260d55([0x45,0x43,0x44,0x53,0x41]),[_0x260d55([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x260d55([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x260d55([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ae14f[_0x260d55([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x260d55([0x6e,0x61,0x6d,0x65])]:_0x260d55([0x45,0x43,0x44,0x53,0x41]),[_0x260d55([0x68,0x61,0x73,0x68])]:{[_0x260d55([0x6e,0x61,0x6d,0x65])]:_0x260d55([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x12e5c4,_0x7d9276,_0x500485)||(_0x3b8279=!0x1);}}function _0x1e5ef1(_0xdafdff){return _0xdafdff[_0x260d55([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x260d55([0x65,0x79]))?JSON[_0x260d55([0x70,0x61,0x72,0x73,0x65])](_0x5e4314(_0xdafdff)):null;}function _0x5e4314(_0x4b2d2c){return window[_0x260d55([0x61,0x74,0x6f,0x62])](_0x4b2d2c[_0x260d55([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x260d55([0x2b]))[_0x260d55([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x260d55([0x2f])));}function _0x21dbfa(_0x2d9c50){let _0x462467=0x1505;function _0x48ca14(_0x4cbb19){for(let _0x2c856e=0x0;_0x2c856e<_0x4cbb19[_0x260d55([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c856e++){const _0xc80629=_0x4cbb19[_0x260d55([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c856e);_0x462467=(_0x462467<<0x5)+_0x462467+_0xc80629,_0x462467&=_0x462467;}}function _0x555a7a(_0x471e93){Array[_0x260d55([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x471e93)?_0x471e93[_0x260d55([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x555a7a):_0x471e93&&typeof _0x471e93==_0x260d55([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x260d55([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x471e93)[_0x260d55([0x73,0x6f,0x72,0x74])]()[_0x260d55([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1750f3,_0x38059e])=>{_0x48ca14(_0x1750f3),_0x555a7a(_0x38059e);}):_0x48ca14(window[_0x260d55([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x471e93));}return _0x555a7a(_0x2d9c50),_0x462467>>>0x0;}function _0x5014f4(_0x48e7d3){return _0x48e7d3[_0x260d55([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x260d55([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x260d55([0x30]));}function _0x35566f(_0x242d83){return _0x242d83[_0x260d55([0x73,0x70,0x6c,0x69,0x74])]('')[_0x260d55([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x260d55([0x6a,0x6f,0x69,0x6e])]('');}function _0x20a3cf(){}function _0x260d55(_0x87d3f){const _0x9323f3=_0x9f12;return _0x87d3f[_0x9323f3(0x93)](_0x4bc0e5=>String[_0x9323f3(0xbd)](_0x4bc0e5))[_0x9323f3(0x9f)]('');}_0x3967a6(await _0x34619f());}(this);}[_0x3a6a90(0xd4)](){const _0x3916e1=_0x3a6a90,_0x527b3a=this[_0x3916e1(0xb0)][_0x3916e1(0x9e)][_0x3916e1(0xce)];_0x527b3a[_0x3916e1(0x9c)](_0x3916e1(0xc5))&&_0x527b3a[_0x3916e1(0xd7)](_0x3916e1(0xc5),{'allowAttributes':[_0x3916e1(0x8c)]}),_0x527b3a[_0x3916e1(0x9c)](_0x3916e1(0xa9))&&_0x527b3a[_0x3916e1(0xd7)](_0x3916e1(0xa9),{'allowAttributes':[_0x3916e1(0x8c)]});}[_0x3a6a90(0xa2)](){const _0x161a40=_0x3a6a90,_0x3529be=this[_0x161a40(0xb0)];_0x3529be[_0x161a40(0x98)][_0x161a40(0xb8)](_0x161a40(0xad))[_0x161a40(0x87)]({'model':_0x161a40(0x8c),'view':_0x161a40(0x90)}),_0x3529be[_0x161a40(0x98)][_0x161a40(0xb8)](_0x161a40(0x8b))[_0x161a40(0x9d)]({'model':{'key':_0x161a40(0x8c),'value':_0x3bf871=>_0x3bf871[_0x161a40(0xb5)](_0x161a40(0x90))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x46aa95=_0x3529be[_0x161a40(0xcf)][_0x161a40(0xb6)](_0x161a40(0x9b));_0x46aa95&&this[_0x161a40(0x97)](_0x46aa95,_0x161a40(0xac),(_0x76c1aa,[_0x36805e,_0x5bdb70])=>{const _0x20cc54=_0x161a40;_0x36805e[_0x20cc54(0x9a)](_0x20cc54(0x8c),_0x5bdb70);});}[_0x3a6a90(0x99)](){const _0x529ead=_0x3a6a90,_0x41c2f4=this[_0x529ead(0xb0)][_0x529ead(0xb1)][_0x529ead(0xb6)](_0x529ead(0xca))||{},_0x3ec589=this[_0x529ead(0xb0)][_0x529ead(0xb1)][_0x529ead(0xb6)](_0x529ead(0xa4))||'';this[_0x529ead(0xa5)]=_0x212877(_0x568af3[_0x529ead(0xcc)],_0x529ead(0xb7),{..._0x41c2f4,'pubkey':_0x3ec589,'ctx-name':_0x529ead(0xd1),'sourceList':'','imgOnly':_0x529ead(0xcb),'removeCopyright':_0x529ead(0xcb),'localeName':this[_0x529ead(0xb0)][_0x529ead(0xc4)][_0x529ead(0xc8)],'externalSourcesEmbedCss':_0x529ead(0xb9)}),this[_0x529ead(0xa5)][_0x529ead(0xbc)]=_0x2a0579=>{const _0x374414=_0x529ead;if(_0x374414(0xbe)==_0x2a0579)return _0x374414(0xc1);},_0x568af3[_0x529ead(0xcc)][_0x529ead(0x8f)][_0x529ead(0x95)](this[_0x529ead(0xa5)]);}[_0x3a6a90(0xae)](){const _0x31d081=_0x3a6a90;this[_0x31d081(0xcd)]=_0x212877(_0x568af3[_0x31d081(0xcc)],_0x31d081(0xa8),{'ctx-name':_0x31d081(0xd1)}),_0x568af3[_0x31d081(0xcc)][_0x31d081(0x8f)][_0x31d081(0x95)](this[_0x31d081(0xcd)]);}[_0x3a6a90(0xab)](){const _0x4f67a8=_0x3a6a90,_0x23694d=this[_0x4f67a8(0xb0)][_0x4f67a8(0xcf)][_0x4f67a8(0xb6)](_0x4f67a8(0xd6));_0x23694d&&this[_0x4f67a8(0x97)](_0x23694d,_0x4f67a8(0xd8),()=>{const _0x47ce37=_0x4f67a8,_0x17415d=this[_0x47ce37(0xb0)][_0x47ce37(0x9e)][_0x47ce37(0xcc)][_0x47ce37(0x8a)][_0x47ce37(0xc0)]();_0x17415d&&_0x17415d[_0x47ce37(0xb5)](_0x47ce37(0x8c))&&this[_0x47ce37(0xb0)][_0x47ce37(0xd2)][_0x47ce37(0xd3)][_0x47ce37(0xa7)](_0x47ce37(0xaf),()=>{const _0x16ecea=_0x47ce37;_0x2d4b84(this[_0x16ecea(0xb0)],_0x17415d);});});const _0xafff2c=this[_0x4f67a8(0xb0)][_0x4f67a8(0xcf)][_0x4f67a8(0xb6)](_0x4f67a8(0xc3));_0xafff2c&&this[_0x4f67a8(0x97)](_0xafff2c,_0x4f67a8(0xd8),()=>{const _0x42cc61=_0x4f67a8,_0x4d1635=this[_0x42cc61(0xb0)][_0x42cc61(0x9e)][_0x42cc61(0xcc)][_0x42cc61(0x8a)][_0x42cc61(0xc0)]();_0x4d1635&&_0x4d1635[_0x42cc61(0xb5)](_0x42cc61(0x8c))&&this[_0x42cc61(0xb0)][_0x42cc61(0xd2)][_0x42cc61(0xd3)][_0x42cc61(0xa7)](_0x42cc61(0xaf),()=>{const _0x1d2d7c=_0x42cc61;_0x2d4b84(this[_0x1d2d7c(0xb0)],_0x4d1635);});});}}