@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250227.0 → 0.0.0-nightly-next-20250227.1

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 _0x2a8cd5,Command as _0xdffaf}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5c8986,IconGooglePhotos as _0x5ad564,IconGoogleDrive as _0xba47df,IconFacebook as _0x5e34de,IconDropbox as _0x4d8f97,IconUploadcareLink as _0x182e48,IconUploadcareImageUpload as _0x43940f,IconError as et,IconUploadcareImageEdit as _0x286b0c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x398356,MenuBarMenuListItemButtonView as _0x292804,View as _0xda5fd7,FocusCycler as _0x306b63,Dialog as _0x453720,DialogViewPosition as _0x16d883,SpinnerView as _0x13f1bb,IconView as at,Notification as _0x38a1d4}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x87753e,DomEmitterMixin as _0x37d615,global as _0x5536d6,getAncestors as _0x2f759e,ObservableMixin as _0x480f99,createElement as _0x3f885f,uid as _0x5570a1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x28aba4}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xb73a4f,info as _0x571e0a}from'@uploadcare/upload-client';import*as _0x3a3e12 from'@uploadcare/file-uploader';var o=function(_0x251a23){return _0x251a23['Local']='local',_0x251a23['URL']='url',_0x251a23['Dropbox']='dropbox',_0x251a23['GDrive']='gdrive',_0x251a23['Facebook']='facebook',_0x251a23['GPhotos']='gphotos',_0x251a23['OneDrive']='onedrive',_0x251a23;}({});function _(_0x224c3c,_0x30c007,_0x100617){const t=_0x224c3c['t'],_0x328fd9=_0x224c3c['t'];switch(_0x30c007){case o['Local']:return{'text':_0x328fd9('Insert'===_0x100617?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x328fd9('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x100617?_0x328fd9('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x328fd9('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x100617?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x100617?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x100617?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x100617?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x100617?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x30c007;}}class e extends _0x2a8cd5{['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 _0x15e714=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1556d0;for(const _0x41dd64 in _0x15e714){const _0x4d0d43=_0x41dd64,_0x56219e=_0x15e714[_0x4d0d43];if('uploadcareLicenseKeyValid'==_0x56219e||'uploadcareLicenseKeyInvalid'==_0x56219e||'uploadcareLicenseKeyExpired'==_0x56219e||'uploadcareLicenseKeyDomainLimit'==_0x56219e||'uploadcareLicenseKeyNotAllowed'==_0x56219e||'uploadcareLicenseKeyEvaluationLimit'==_0x56219e||'uploadcareLicenseKeyTrialLimit'==_0x56219e||'uploadcareLicenseKeyUsageLimit'==_0x56219e){delete _0x15e714[_0x4d0d43],_0x1556d0=_0x56219e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1556d0&&_0x15e714['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1556d0&&_0x15e714['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1556d0&&_0x15e714['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1556d0&&_0x15e714['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1556d0&&_0x15e714['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1556d0&&_0x15e714['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1556d0&&_0x15e714['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x216f36}=this,_0x57f14d=_0x216f36['commands']['get']('uploadcare');if(!_0x57f14d)return;const _0x52c143=this['_normalizeConfigSourceList'](_0x216f36['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5bf2c1,_0x368e56)=>{const _0x16f81b=this['_getIntegrationKey'](_0x368e56['type']);return _0x5bf2c1[_0x16f81b]||(_0x5bf2c1[_0x16f81b]=[]),_0x5bf2c1[_0x16f81b]['push'](_0x368e56),_0x5bf2c1;},{});_0x216f36['plugins']['has']('ImageInsertUI')&&_0x216f36['commands']['get']('uploadcare')&&Object['entries'](_0x52c143)['forEach'](([_0x420c5f,_0x1125e3])=>{_0x216f36['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x420c5f,'observable':()=>_0x57f14d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1125e3),'formViewCreator':()=>this['_createDropdownButtons'](_0x1125e3),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1125e3),'override':'assetManager'!==_0x420c5f});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x49863e){const {locale:_0x23a167}=this['editor'];return _0x49863e['map'](_0x29c83e=>{const _0x554454=_(_0x23a167,_0x29c83e,'Insert');switch(_0x29c83e){case o['Local']:return{'icon':_0x43940f,'type':o['Local'],..._0x554454};case o['URL']:return{'icon':_0x182e48,'type':o['URL'],..._0x554454};case o['Dropbox']:return{'icon':_0x4d8f97,'type':o['Dropbox'],..._0x554454};case o['Facebook']:return{'icon':_0x5e34de,'type':o['Facebook'],..._0x554454};case o['GDrive']:return{'icon':_0xba47df,'type':o['GDrive'],..._0x554454};case o['GPhotos']:return{'icon':_0x5ad564,'type':o['GPhotos'],..._0x554454};case o['OneDrive']:return{'icon':_0x5c8986,'type':o['OneDrive'],..._0x554454};}});}['_getIntegrationKey'](_0x58773e){switch(_0x58773e){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5ca6a9,_0x2dab2f){const _0x4be9e0=this['editor'],_0x4f252c=new _0x5ca6a9(_0x4be9e0['locale']),_0x1fa925=_0x4be9e0['commands']['get']('uploadcare');return _0x4f252c['bind']('isEnabled')['to'](_0x1fa925),_0x4f252c['on']('execute',()=>{_0x1fa925['execute'](_0x2dab2f);}),_0x4f252c;}['_createToolbarButton'](_0x4037fa){const {locale:_0x480bfe}=this['editor'],_0x32a9d4=this['editor']['plugins']['get']('ImageInsertUI'),_0x1af8af=_0x4037fa[0x0],_0x48587f=this['_createButton'](_0x398356,_0x1af8af['type']);return _0x48587f['icon']=_0x1af8af['icon'],_0x48587f['bind']('label')['to'](_0x32a9d4,'isImageSelected',_0x4ecdbc=>_(_0x480bfe,_0x1af8af['type'],_0x4ecdbc?'Replace':'Insert')['text']),_0x48587f['tooltip']=!0x0,_0x48587f;}['_createDropdownButtons'](_0x255748){const {locale:_0x4d6969}=this['editor'],_0x3f90fc=this['editor']['plugins']['get']('ImageInsertUI');return _0x255748['map'](_0x14310c=>{const _0xf61532=this['_createButton'](_0x398356,_0x14310c['type']);return _0xf61532['withText']=!0x0,_0xf61532['icon']=_0x14310c['icon'],_0xf61532['bind']('label')['to'](_0x3f90fc,'isImageSelected',_0x2351a3=>_(_0x4d6969,_0x14310c['type'],_0x2351a3?'Replace':'Insert')['text']),_0xf61532;});}['_createMenuBarButtons'](_0x211ddc){return _0x211ddc['map'](_0x4cb174=>{const _0x368732=this['_createButton'](_0x292804,_0x4cb174['type']);return _0x368732['icon']=_0x4cb174['icon'],_0x368732['label']=_0x4cb174['shortText'],_0x368732;});}}class q extends _0xda5fd7{['focusTracker'];['focusCycler'];constructor(_0x3c1ec2){super(_0x3c1ec2),this['focusTracker']=new _0x87753e(),this['focusCycler']=new _0x306b63({'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(_0x3c393b){super(_0x3c393b),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(_0x216c96,_0x5e36e9){const _0x2b0894=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x36ae93=>_0x36ae93<=_0x5e36e9)['map'](_0x86329c=>_0x216c96['replace'](/\/$/,'')+'/-/resize/'+_0x86329c+'x/\x20'+_0x86329c+'w');return{'imageFallbackUrl':_0x216c96,'imageSources':[{'srcset':_0x2b0894['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5e36e9+'px)\x20100vw,\x20'+_0x5e36e9+'px','type':'image/webp'}]};}function A(_0x317aaa,_0x4ef75b,_0x62b228){const _0x45ba96=_0x317aaa['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x45ba96?parseInt(_0x45ba96[0x1],0xa):_0x4ef75b,'height':_0x45ba96?parseInt(_0x45ba96[0x2],0xa):_0x62b228};}function m(_0x205884,_0x4e2e53){const _0x11881e=Object['create'](_0x37d615),_0x55407d=_0x205884['plugins']['get']('ImageUtils'),_0x2c9aab=_0x205884['editing']['mapper']['toViewElement'](_0x4e2e53),_0x511eb0=_0x55407d['findViewImgElement'](_0x2c9aab),_0x439ee4=_0x205884['editing']['view']['domConverter']['viewToDom'](_0x511eb0),_0x1ac394=_0x4e2e53['getAttribute']('width'),_0x490aac=_0x4e2e53['getAttribute']('height'),_0x3fa33c='image-processing';_0x205884['editing']['view']['change'](_0x5f3e35=>{_0x5f3e35['addClass'](_0x3fa33c,_0x2c9aab),_0x5f3e35['setStyle']('aspect-ratio',_0x1ac394+'/'+_0x490aac,_0x511eb0);}),_0x11881e['listenTo'](_0x439ee4,'load',()=>{_0x11881e['stopListening'](_0x439ee4,'load'),_0x205884['editing']['view']['change'](_0x9bbaa5=>{_0x9bbaa5['removeClass'](_0x3fa33c,_0x2c9aab),_0x9bbaa5['removeStyle']('aspect-ratio',_0x511eb0);});});}function V(_0x2cfe5c){if(Array['isArray'](_0x2cfe5c)){const _0x4257e0=_0x2cfe5c['map'](V);return _0x2b344f=>_0x4257e0['some'](_0x3c45d0=>_0x3c45d0(_0x2b344f));}if('origin'==_0x2cfe5c){const _0x27d161=_0x5536d6['window']['location']['origin'];return _0x30761c=>new URL(_0x30761c,_0x5536d6['document']['baseURI'])['origin']==_0x27d161;}return'function'==typeof _0x2cfe5c?_0x2cfe5c:_0x2cfe5c instanceof RegExp?_0x473143=>!(!_0x473143['match'](_0x2cfe5c)&&!_0x473143['replace'](/^https?:\/\//,'')['match'](_0x2cfe5c)):()=>!0x1;}function F(_0x1b7067,_0x4c6922){return _0x2f759e(_0x1b7067['target'])['includes'](_0x4c6922);}class l extends/* #__PURE__ -- @preserve */
24
- _0x480f99(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x45a15b,_0x2cde54,_0x216221){super(),this['_editor']=_0x45a15b,this['_editing']=_0x2cde54,this['_dialog']=_0x45a15b['plugins']['get'](_0x453720),this['_api']=_0x2cde54['ctxElement']['getAPI'](),this['_type']=_0x216221,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:_0x1c42b4,model:_0x404875}=this['_editor'],_0x1ba987=_0x404875['document']['selection']['getSelectedElement'](),_0x2a4341=_0x1ba987&&(_0x1ba987['is']('element','imageBlock')||_0x1ba987['is']('element','imageInline'));this['_formView']=new S(_0x1c42b4),this['_dialog']['show']({'id':'uploadCare','icon':_0x43940f,'title':_(_0x1c42b4,this['_type'],_0x2a4341?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x16d883['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4dca61=>!F(_0x4dca61,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4848cb}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x10cf60=>{const _0x3edaba=_0x4848cb['length'];for(const _0xb07847 of _0x4848cb){const _0x4deb8f=_0xb07847===_0x4848cb[_0x3edaba-0x1],{cdnUrl:_0x38c671,fileInfo:_0x37b497}=_0xb07847;if(!_0x38c671||!_0x37b497)continue;const {width:_0x2f47a9,height:_0x1e9f57}=_0x37b497['imageInfo'],_0x271a66=A(_0x38c671,_0x2f47a9,_0x1e9f57),_0x54af66=E(_0x38c671,_0x271a66['width']),_0x1d5d27={'id':_0x37b497['uuid'],'type':'image','attributes':{'imageDimension':_0x271a66,..._0x54af66}};this['_insertAsset'](_0x1d5d27,_0x4deb8f,_0x10cf60);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x327bb8=>{'idle'===_0x327bb8['detail']['status']&&!_0x327bb8['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x36fbdc,_0x1f3ac2,_0x23785){const _0x3683d2=this['_editor']['model']['document']['selection'],_0x480f68=_0x3683d2['getSelectedElement'](),_0x34312e=!(!_0x480f68||!_0x480f68['is']('element','imageInline'));_0x23785['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x36fbdc,_0x34312e),_0x1f3ac2||_0x23785['setSelection'](_0x3683d2['getLastPosition']());}['_insertImage'](_0x18656d,_0x1e45f3){const _0x12c4a6=this['_editor'],{imageDimension:_0x59644c,imageFallbackUrl:_0x377037,imageSources:_0x145265}=_0x18656d['attributes'];_0x12c4a6['execute']('insertImage',{'imageType':_0x1e45f3?'imageInline':null,'source':{'uploadcareImageId':_0x18656d['id'],'src':_0x377037,'sources':_0x145265,..._0x59644c}});}}class n extends _0xdffaf{['_editing'];['_controller']=null;static get['requires'](){return[_0x453720,i];}constructor(_0x3fdb22){super(_0x3fdb22),this['_editing']=_0x3fdb22['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3e0a08){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x3e0a08);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x1cbbca,publicKey:_0x5298ab,signal:_0x48b12d,onProgress:_0x42693f}){return _0xb73a4f(_0x1cbbca,{'publicKey':_0x5298ab,'store':'auto','signal':_0x48b12d,'onProgress':_0x42693f});}static['getInfo'](_0x141e93,_0xa6326a){return _0x571e0a(_0x141e93,_0xa6326a);}}class p extends _0x2a8cd5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x28aba4,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1863ce=this['editor'];if(!!!_0x1863ce['config']['get']('uploadcare'))return;_0x1863ce['plugins']['get'](_0x28aba4)['createUploadAdapter']=_0x466748=>new x(_0x466748,_0x1863ce),_0x1863ce['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x745258,{imageElement:_0x797d31,data:_0x511b09})=>{_0x1863ce['model']['change'](_0x37f2f7=>{_0x37f2f7['setAttribute']('uploadcareImageId',_0x511b09['uploadcareImageId'],_0x797d31);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x133b68,_0x191a19){this['loader']=_0x133b68,this['editor']=_0x191a19,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x12f8a7=this['editor']['config']['get']('uploadcare.pubkey'),_0x450ac7=await this['loader']['file'];return C['upload']({'file':_0x450ac7,'publicKey':_0x12f8a7,'signal':this['controller']['signal'],'onProgress':_0x29a04b=>{_0x29a04b&&_0x29a04b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x29a04b['value']);}})['then'](async _0x545a83=>{const {imageFallbackUrl:_0x2ed948,imageSources:_0x2e3ace}=E(_0x545a83['cdnUrl'],_0x545a83['imageInfo']['width']);return{'uploadcareImageId':_0x545a83['uuid'],'default':_0x2ed948,'sources':_0x2e3ace};})['catch'](()=>{const _0x1e47e2=t('Cannot\x20upload\x20file:')+('\x20'+_0x450ac7['name']+'.');return Promise['reject'](_0x1e47e2);});}['abort'](){this['controller']['abort']();}}class i extends _0x2a8cd5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x453720];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x5f2b68=this['editor'];_0x5f2b68['commands']['add']('uploadcare',new n(_0x5f2b68));}['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 _0x3e8b78=_0x5536d6['document']['querySelector']('input[uploadcare-file-input]');_0x3e8b78&&_0x3e8b78['remove']();}),async function(_0x6df3e9){const _0x212af6=_0x5414af([0x61,0x48,0x57,0x7a,0x32,0x49,0x53,0x35,0x79,0x6f,0x70,0x42,0x44,0x31,0x46,0x4e,0x6e,0x51,0x54,0x36,0x34,0x52,0x72,0x45,0x43,0x64,0x56,0x41,0x6a,0x74,0x4a,0x39,0x33,0x38,0x62,0x6c,0x68,0x69,0x4b,0x5a,0x6b,0x6d,0x77,0x71,0x4f,0x4d,0x78,0x55,0x67,0x30,0x58,0x73,0x65,0x75,0x59,0x76,0x63,0x4c,0x37,0x66,0x50,0x47]),_0x18b738=0x6b12fc20,_0x4f297b=0x6b159c90^_0x18b738,_0xa50028=window[_0x5414af([0x44,0x61,0x74,0x65])][_0x5414af([0x6e,0x6f,0x77])](),_0x29cceb=_0x6df3e9[_0x5414af([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x217c6b=new window[(_0x5414af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fd776=>{_0x29cceb[_0x5414af([0x6f,0x6e,0x63,0x65])](_0x5414af([0x72,0x65,0x61,0x64,0x79]),_0x1fd776);}),_0x46f97e={[_0x5414af([0x6b,0x74,0x79])]:_0x5414af([0x45,0x43]),[_0x5414af([0x75,0x73,0x65])]:_0x5414af([0x73,0x69,0x67]),[_0x5414af([0x63,0x72,0x76])]:_0x5414af([0x50,0x2d,0x32,0x35,0x36]),[_0x5414af([0x78])]:_0x5414af([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]),[_0x5414af([0x79])]:_0x5414af([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]),[_0x5414af([0x61,0x6c,0x67])]:_0x5414af([0x45,0x53,0x32,0x35,0x36])},_0x2da7c4=_0x29cceb[_0x5414af([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5414af([0x67,0x65,0x74])](_0x5414af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x21accf(){let _0x39f016,_0x4696ca=null,_0xaf7ea8=null;try{if(_0x2da7c4==_0x5414af([0x47,0x50,0x4c]))return _0x5414af([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x39f016=_0x1774bb(),!_0x39f016)return _0x5414af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x39f016[_0x5414af([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xaf7ea8=_0x5372db(_0x39f016[_0x5414af([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x39f016[_0x5414af([0x6a,0x74,0x69])])),await _0x5c0816()?_0x3f4647()?_0x41cca2()?_0x5414af([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4eb147()?(_0x39f016[_0x5414af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5414af([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4696ca=_0x2e4ad0(_0x5414af([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x39f016[_0x5414af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5414af([0x74,0x72,0x69,0x61,0x6c])&&(_0x4696ca=_0x2e4ad0(_0x5414af([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2fdac0()):_0x5414af([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5414af([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5414af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x226863){return _0x5414af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x41cca2(){const _0x2932b0=[_0x5414af([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5414af([0x74,0x72,0x69,0x61,0x6c])][_0x5414af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39f016[_0x5414af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xa50028/0x3e8:0xe10*_0x4f297b;return _0x39f016[_0x5414af([0x65,0x78,0x70])]<_0x2932b0;}function _0x3f4647(){const _0x54e56e=_0x39f016[_0x5414af([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x54e56e&&(!!_0x54e56e[_0x5414af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5414af([0x2a]))||!!_0x54e56e[_0x5414af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5414af([0x55,0x50,0x4c,0x43])));}function _0x4eb147(){const _0x40c8ce=_0x39f016[_0x5414af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x40c8ce||0x0==_0x40c8ce[_0x5414af([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x260ffc}=new URL(window[_0x5414af([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x40c8ce[_0x5414af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x260ffc))return!0x0;const _0x2a9c4f=_0x260ffc[_0x5414af([0x73,0x70,0x6c,0x69,0x74])](_0x5414af([0x2e]));return _0x40c8ce[_0x5414af([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35cf2a=>_0x35cf2a[_0x5414af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5414af([0x2a])))[_0x5414af([0x6d,0x61,0x70])](_0x2d8035=>_0x2d8035[_0x5414af([0x73,0x70,0x6c,0x69,0x74])](_0x5414af([0x2e])))[_0x5414af([0x73,0x6f,0x6d,0x65])](_0x4a2897=>_0x2a9c4f[_0x5414af([0x65,0x76,0x65,0x72,0x79])]((_0x26f396,_0x5ac928)=>_0x4a2897[_0x5ac928]===_0x26f396||_0x4a2897[_0x5ac928]===_0x5414af([0x2a])));}function _0x2fdac0(){return _0x4696ca&&_0xaf7ea8?new window[(_0x5414af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a4a36,_0x55945d)=>{_0x4696ca[_0x5414af([0x74,0x68,0x65,0x6e])](_0x4a4a36,_0x55945d),_0xaf7ea8[_0x5414af([0x74,0x68,0x65,0x6e])](_0x181ae6=>{_0x181ae6!=_0x5414af([0x56,0x61,0x6c,0x69,0x64])&&_0x4a4a36(_0x181ae6);},_0x55945d);}):_0x4696ca||_0xaf7ea8||_0x5414af([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5372db(_0x384a3d,_0x3a0a33){return new window[(_0x5414af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2eeb00=>{if(_0x3c9214())return _0x2eeb00(_0x5414af([0x56,0x61,0x6c,0x69,0x64]));_0x51a433(),_0x29cceb[_0x5414af([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5414af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2580ca=!0x1;const _0x31ae64=_0x5570a1();function _0x3640ec(_0x77e45e){return!!_0x77e45e&&(typeof _0x77e45e===_0x5414af([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x77e45e===_0x5414af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x77e45e[_0x5414af([0x74,0x68,0x65,0x6e])]===_0x5414af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x77e45e[_0x5414af([0x63,0x61,0x74,0x63,0x68])]===_0x5414af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1d3ffa(_0x5990f1){_0x3fd181(_0x5990f1)[_0x5414af([0x74,0x68,0x65,0x6e])](_0x509539=>{if(!_0x509539||_0x509539[_0x5414af([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5414af([0x6f,0x6b]))return _0x5414af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x240e82(_0xb946ae(_0x31ae64+_0x3a0a33))!=_0x509539[_0x5414af([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5414af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5414af([0x56,0x61,0x6c,0x69,0x64]);})[_0x5414af([0x74,0x68,0x65,0x6e])](_0x55bab9=>(_0x301f44(),_0x55bab9),()=>{const _0xb46843=_0x898753();return null==_0xb46843?(_0x301f44(),_0x5414af([0x56,0x61,0x6c,0x69,0x64])):_0x5414af(_0xa50028-_0xb46843>(0x4f1e7820^_0x18b738)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5414af([0x74,0x68,0x65,0x6e])](_0x2eeb00)[_0x5414af([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2eeb00(_0x5414af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x8d0a99=0x6b2412a0^_0x18b738;function _0x301f44(){const _0x1db7c3=_0x5414af([0x6c,0x6c,0x63,0x74,0x2d])+_0x240e82(_0xb946ae(_0x384a3d)),_0x33b79f=_0x29fdbf(_0x240e82(window[_0x5414af([0x4d,0x61,0x74,0x68])][_0x5414af([0x63,0x65,0x69,0x6c])](_0xa50028/_0x8d0a99)));window[_0x5414af([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5414af([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1db7c3,_0x33b79f);}function _0x898753(){const _0x5ac210=_0x5414af([0x6c,0x6c,0x63,0x74,0x2d])+_0x240e82(_0xb946ae(_0x384a3d)),_0xed1435=window[_0x5414af([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5414af([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ac210);return _0xed1435?window[_0x5414af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29fdbf(_0xed1435),0x10)*_0x8d0a99:null;}function _0x3fd181(_0x7785b){return new window[(_0x5414af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3bf2c3,_0x2a5926)=>{_0x7785b[_0x5414af([0x74,0x68,0x65,0x6e])](_0x3bf2c3,_0x2a5926),window[_0x5414af([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2a5926,0x6b1328e0^_0x18b738);});}}_0x29cceb[_0x5414af([0x6f,0x6e])](_0x5414af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xefab2c,_0x557067)=>{if(_0x557067[0x0]!=_0x384a3d)return _0x2eeb00(_0x5414af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x557067[0x1]={..._0x557067[0x1],[_0x5414af([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31ae64};},{[_0x5414af([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5414af([0x68,0x69,0x67,0x68])}),_0x29cceb[_0x5414af([0x6f,0x6e])](_0x5414af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x22ec48=>{_0x3640ec(_0x22ec48[_0x5414af([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2580ca=!0x0,_0x1d3ffa(_0x22ec48[_0x5414af([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5414af([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5414af([0x6c,0x6f,0x77])}),_0x217c6b[_0x5414af([0x74,0x68,0x65,0x6e])](()=>{_0x2580ca||_0x2eeb00(_0x5414af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c9214(){return _0x29cceb[_0x5414af([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5414af([0x76,0x69,0x65,0x77])][_0x5414af([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5414af([0x61,0x75,0x74,0x6f]);}function _0x51a433(){_0x29cceb[_0x5414af([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5414af([0x76,0x69,0x65,0x77])][_0x5414af([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5414af([0x61,0x75,0x74,0x6f]);}}function _0x2e4ad0(_0x38709e){const _0x456971=[new window[(_0x5414af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1519bd=>setTimeout(_0x1519bd,0x6b1bc2ec^_0x18b738)),_0x217c6b[_0x5414af([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5414af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49ab33=>{let _0x3c9879=0x0;_0x29cceb[_0x5414af([0x6d,0x6f,0x64,0x65,0x6c])][_0x5414af([0x6f,0x6e])](_0x5414af([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4b3be1,_0x466ef3)=>{_0x466ef3[0x0][_0x5414af([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c9879++,_0x3c9879==(0x6b12fdd8^_0x18b738)&&(_0x49ab33(),_0x4b3be1[_0x5414af([0x6f,0x66,0x66])]());});}))];return window[_0x5414af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5414af([0x72,0x61,0x63,0x65])](_0x456971)[_0x5414af([0x74,0x68,0x65,0x6e])](()=>_0x38709e);}async function _0x331a10(){await _0x217c6b,_0x29cceb[_0x5414af([0x6d,0x6f,0x64,0x65,0x6c])][_0x5414af([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5178af,_0x29cceb[_0x5414af([0x6d,0x6f,0x64,0x65,0x6c])][_0x5414af([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5178af,_0x29cceb[_0x5414af([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5414af([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5134be(_0x164daa){const _0x11b75f=_0x46377e();_0x29cceb[_0x11b75f]=_0x5414af([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x164daa,_0x164daa!=_0x5414af([0x56,0x61,0x6c,0x69,0x64])&&_0x331a10();}function _0x46377e(){const _0x4e005a=window[_0x5414af([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5414af([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5414af([0x6e,0x6f,0x77])]())[_0x5414af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5414af([0x2e]),'');let _0x235cd5=_0x5414af([0x61]);for(let _0x4abafc=0x0;_0x4abafc<_0x4e005a[_0x5414af([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4abafc+=0x2){let _0x2619e2=window[_0x5414af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e005a[_0x5414af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4abafc,_0x4abafc+0x2));_0x2619e2>=_0x212af6[_0x5414af([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2619e2-=_0x212af6[_0x5414af([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x235cd5+=_0x212af6[_0x2619e2];}return _0x235cd5;}function _0x1774bb(){const _0x4475bb=_0x2da7c4[_0x5414af([0x73,0x70,0x6c,0x69,0x74])](_0x5414af([0x2e]));if(0x3!=_0x4475bb[_0x5414af([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3bfa20(_0x4475bb[0x1]);function _0x3bfa20(_0xc4c490){const _0x60cd62=_0x48cf97(_0xc4c490);return _0x60cd62&&_0x3ddf39()?_0x60cd62:null;function _0x3ddf39(){const _0x30b5ee=_0x60cd62[_0x5414af([0x6a,0x74,0x69])],_0x442e5d=window[_0x5414af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30b5ee[_0x5414af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30b5ee[_0x5414af([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x59b825={..._0x60cd62,[_0x5414af([0x6a,0x74,0x69])]:_0x30b5ee[_0x5414af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x30b5ee[_0x5414af([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x59b825[_0x5414af([0x76,0x63])],_0xb946ae(_0x59b825)==_0x442e5d;}}}async function _0x5c0816(){let _0xc247f9=!0x0;try{const _0x50715f=_0x2da7c4[_0x5414af([0x73,0x70,0x6c,0x69,0x74])](_0x5414af([0x2e])),[_0x4e4d5f,_0x1f4365,_0x1b2af2]=_0x50715f;return _0x2c1ed3(_0x4e4d5f),await _0x2c0fef(_0x4e4d5f,_0x1f4365,_0x1b2af2),_0xc247f9;}catch(_0x18b178){return!0x1;}function _0x2c1ed3(_0x2d7261){const _0x283cc9=_0x48cf97(_0x2d7261);_0x283cc9&&_0x283cc9[_0x5414af([0x61,0x6c,0x67])]==_0x5414af([0x45,0x53,0x32,0x35,0x36])||(_0xc247f9=!0x1);}async function _0x2c0fef(_0xf72ec3,_0x34c040,_0x4f1b7d){const _0xf55966=window[_0x5414af([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5414af([0x66,0x72,0x6f,0x6d])](_0x1ef52f(_0x4f1b7d),_0x10f11f=>_0x10f11f[_0x5414af([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x52adf1=new window[(_0x5414af([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5414af([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xf72ec3+_0x5414af([0x2e])+_0x34c040),_0x2e0c60=window[_0x5414af([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5414af([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e0c60)return;const _0x187931=await _0x2e0c60[_0x5414af([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5414af([0x6a,0x77,0x6b]),_0x46f97e,{[_0x5414af([0x6e,0x61,0x6d,0x65])]:_0x5414af([0x45,0x43,0x44,0x53,0x41]),[_0x5414af([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5414af([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5414af([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e0c60[_0x5414af([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5414af([0x6e,0x61,0x6d,0x65])]:_0x5414af([0x45,0x43,0x44,0x53,0x41]),[_0x5414af([0x68,0x61,0x73,0x68])]:{[_0x5414af([0x6e,0x61,0x6d,0x65])]:_0x5414af([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x187931,_0xf55966,_0x52adf1)||(_0xc247f9=!0x1);}}function _0x48cf97(_0x467d5b){return _0x467d5b[_0x5414af([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5414af([0x65,0x79]))?JSON[_0x5414af([0x70,0x61,0x72,0x73,0x65])](_0x1ef52f(_0x467d5b)):null;}function _0x1ef52f(_0x344a70){return window[_0x5414af([0x61,0x74,0x6f,0x62])](_0x344a70[_0x5414af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5414af([0x2b]))[_0x5414af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5414af([0x2f])));}function _0xb946ae(_0x3f07f7){let _0x2c97cf=0x1505;function _0x5b7cbe(_0x31086f){for(let _0x269330=0x0;_0x269330<_0x31086f[_0x5414af([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x269330++){const _0x18ce7e=_0x31086f[_0x5414af([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x269330);_0x2c97cf=(_0x2c97cf<<0x5)+_0x2c97cf+_0x18ce7e,_0x2c97cf&=_0x2c97cf;}}function _0x56c244(_0x3977bf){Array[_0x5414af([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3977bf)?_0x3977bf[_0x5414af([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x56c244):_0x3977bf&&typeof _0x3977bf==_0x5414af([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5414af([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3977bf)[_0x5414af([0x73,0x6f,0x72,0x74])]()[_0x5414af([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1461ed,_0xd5d261])=>{_0x5b7cbe(_0x1461ed),_0x56c244(_0xd5d261);}):_0x5b7cbe(window[_0x5414af([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3977bf));}return _0x56c244(_0x3f07f7),_0x2c97cf>>>0x0;}function _0x240e82(_0x5e60e5){return _0x5e60e5[_0x5414af([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5414af([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5414af([0x30]));}function _0x29fdbf(_0x3872a9){return _0x3872a9[_0x5414af([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5414af([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5414af([0x6a,0x6f,0x69,0x6e])]('');}function _0x5178af(){}function _0x5414af(_0x1403f0){return _0x1403f0['map'](_0x2b6d32=>String['fromCharCode'](_0x2b6d32))['join']('');}_0x5134be(await _0x21accf());}(this);}['_initSchema'](){const _0x3d22e5=this['editor']['model']['schema'];_0x3d22e5['isRegistered']('imageBlock')&&_0x3d22e5['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3d22e5['isRegistered']('imageInline')&&_0x3d22e5['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x32e826=this['editor'];_0x32e826['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x32e826['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1b9582=>_0x1b9582['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4b32c1=_0x32e826['commands']['get']('replaceImageSource');_0x4b32c1&&this['listenTo'](_0x4b32c1,'cleanupImage',(_0xed5c4d,[_0x57a05f,_0x155262])=>{_0x57a05f['removeAttribute']('uploadcareImageId',_0x155262);});}['_initConfig'](){const _0x247118=this['editor']['config']['get']('uploadcare.uploader')||{},_0x440fa7=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3f885f(_0x5536d6['document'],'uc-config',{..._0x247118,'pubkey':_0x440fa7,'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']=_0x2ee741=>{if('closeMax'==_0x2ee741)return'#uc-icon-arrow-down';},_0x5536d6['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3f885f(_0x5536d6['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x5536d6['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5c34da=this['editor']['commands']['get']('insertImage');_0x5c34da&&this['listenTo'](_0x5c34da,'execute',()=>{const _0x32398e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x32398e&&_0x32398e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x32398e);});});const _0x3ff213=this['editor']['commands']['get']('uploadcareImageReplace');_0x3ff213&&this['listenTo'](_0x3ff213,'execute',()=>{const _0x114b9a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x114b9a&&_0x114b9a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x114b9a);});});}}class u extends _0x2a8cd5{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x30f524){super(_0x30f524),_0x30f524['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x3a3e12['defineComponents'](_0x3a3e12);}}class ta extends _0xda5fd7{constructor(_0x5ee292){super(_0x5ee292);const t=_0x5ee292['t'],_0x41dbbb=this['bindTemplate'],_0x55ea64=new _0x13f1bb();_0x55ea64['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':[_0x55ea64,{'text':_0x41dbbb['to']('imageUploadProgress',_0x319ae1=>t('Loading\x20image...')+'\x20('+(_0x319ae1||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 _0xda5fd7{constructor(_0x584cf6){super(_0x584cf6);const t=_0x584cf6['t'];this['set']('errorType',null);const _0x5053c7=new _0x398356(_0x584cf6);_0x5053c7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5053c7['withText']=!0x0,_0x5053c7['class']='ck-button-action',_0x5053c7['on']('execute',()=>{this['fire']('retry');}),_0x5053c7['bind']('isVisible')['to'](this,'errorType',_0x1360b1=>'NotFound'!==_0x1360b1);const _0x23b01a=new at();_0x23b01a['content']=et,_0x23b01a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4f7622=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':[_0x23b01a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4f7622['to']('errorType',_0x4cfa77=>t('NotFound'!==_0x4cfa77?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5053c7]},{'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 _0xda5fd7{constructor(_0x50dec3,_0x99f0b4){super(_0x50dec3);const _0x5c7c89=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x99f0b4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5c7c89['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x48928c,_0x1cb8a8,_0x27e14c){super(_0x48928c),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x48928c),this['_errorView']=new rt(_0x48928c),this['_editingView']=new tt(_0x48928c,_0x27e14c),this['_focusableView']=new _0xda5fd7(_0x48928c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1cb8a8),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'],_0x4805cf=>{this['_addUploadcareImageEditorListeners'](_0x4805cf);});}),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'](_0x349c7a,_0x2cf634){const _0x3e1872='uc-cloud-image-editor',_0x78fb54=_0x349c7a['querySelector'](_0x3e1872);if(_0x78fb54)return _0x2cf634(_0x78fb54);const _0x54b636=new MutationObserver(_0x27cba1=>{const _0xa30336=_0x27cba1['filter'](_0x10f1cb=>_0x10f1cb['target']===_0x349c7a&&_0x10f1cb['addedNodes']['length']>0x0&&_0x10f1cb['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3e1872);_0xa30336['length']&&(_0x54b636['disconnect'](),_0x2cf634(_0xa30336[0x0]['addedNodes'][0x0]));});_0x54b636['observe'](_0x349c7a,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x55605a){_0x55605a['addEventListener']('apply',_0x12499d=>{this['fire']('apply',{'imageSrc':_0x12499d['detail']['cdnUrl']});}),_0x55605a['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x480f99(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x625792,_0x3d786f,_0x543f2b){super(),this['_editor']=_0x625792,this['_dialog']=_0x3d786f,this['_imageElement']=_0x543f2b,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 _0x11c6ea=this['_imageElement'],_0x295177=_0x11c6ea['getAttribute']('uploadcareImageId'),_0x8761c1=_0x11c6ea['getAttribute']('src');if(_0x295177)await this['_loadImageInfo'](_0x295177,_0x8761c1);else{if(this['_imageCache']['has'](_0x8761c1)){const _0xabfec6=this['_imageCache']['get'](_0x8761c1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xabfec6['url'],this['imageDimension']=_0xabfec6['dimension'],this['imageId']=_0xabfec6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4b45a1}=this['_editor'],t=_0x4b45a1['t'],_0x528bc6=new Z(_0x4b45a1,this['imageStatus'],this['_attributes']);_0x528bc6['bind']('status')['to'](this,'imageStatus'),_0x528bc6['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x528bc6['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x528bc6['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x528bc6,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x286b0c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x528bc6,'position':_0x16d883['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x528bc6['focus']();},'onHide':()=>{_0x528bc6['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xdc9e0b=>!F(_0xdc9e0b,_0x528bc6['element'])}});}['_loadImageInfo'](_0x1181d9,_0x5967d2){return C['getInfo'](_0x1181d9,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x539c7f=>{const {width:_0xb8f2c2,height:_0x354034}=_0x539c7f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5967d2,this['imageDimension']={'width':_0xb8f2c2,'height':_0x354034},this['imageId']=_0x1181d9;})['catch'](_0x3ee5ab=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3ee5ab['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x375468,_0x1180fd){return this['_getImageAsFile'](_0x375468)['then'](_0x40e60b=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1180fd['signal'],'file':_0x40e60b,'onProgress':_0x31938b=>{_0x31938b&&_0x31938b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x31938b['value']));}}))['then'](_0x3bcebe=>{const {width:_0x46dea2,height:_0x4ebb78}=_0x3bcebe['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3bcebe['cdnUrl'],this['imageDimension']={'width':_0x46dea2,'height':_0x4ebb78},this['imageId']=_0x3bcebe['uuid'],this['imageUploadProgress']=null;const _0x3b1f39=_0x375468['getAttribute']('src');this['_imageCache']['set'](_0x3b1f39,{'id':_0x3bcebe['uuid'],'url':_0x3bcebe['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2dfbfe=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2dfbfe['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x47f88a,_0x3746ad){_0x47f88a['on']('apply',(_0x44fd50,_0x30634e)=>{this['_replaceImage'](_0x3746ad,_0x30634e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x47f88a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x47f88a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x55f62f,_0x58873f,_0x531f78){const _0x5177dc=this['_editor'],{width:_0x50db43,height:_0x564fea}=A(_0x58873f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x25be2d,imageSources:_0x49b5a0}=E(_0x58873f,_0x50db43);_0x5177dc['model']['change'](_0x5e0b63=>{if('$graveyard'===_0x55f62f['root']['rootName']){_0x5177dc['execute']('insertImage',{'imageType':_0x55f62f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x55f62f['getAttributes']()),'uploadcareImageId':_0x531f78,'src':_0x25be2d,'sources':_0x49b5a0,'width':_0x50db43,'height':_0x564fea}});const _0x5e3408=_0x55f62f['getChildren']();_0x55f62f=_0x5177dc['model']['document']['selection']['getSelectedElement']();for(const _0x154e62 of _0x5e3408)_0x5e0b63['append'](_0x5e0b63['cloneElement'](_0x154e62),_0x55f62f);}else _0x5e0b63['setSelection'](_0x55f62f,'on'),_0x5177dc['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x55f62f['getAttributes']()),'uploadcareImageId':_0x531f78,'src':_0x25be2d,'sources':_0x49b5a0,'width':_0x50db43,'height':_0x564fea},_0x55f62f);_0x5e0b63['setSelection'](_0x55f62f,'on');});}async['_getImageAsFile'](_0x156777){const _0x3e82a3=_0x5536d6['window'],_0x46b1a3=_0x5536d6['document']['location']['href'],_0x469ca9=new _0x3e82a3['URL'](_0x156777['getAttribute']('src'),_0x46b1a3);if('data:'===_0x469ca9['protocol']){const _0x381775=_0x469ca9['href']['split'](','),_0x42b862=_0x381775[0x0]['match'](/:(.*?);/)[0x1],_0xd6c4c4=_0x42b862['split']('/')[0x1],_0x5eb131=_0x3e82a3['atob'](_0x381775[_0x381775['length']-0x1]);let _0x112a2a=_0x5eb131['length'];const _0x3b680d=new _0x3e82a3['Uint8Array'](_0x112a2a);for(;_0x112a2a--;)_0x3b680d[_0x112a2a]=_0x5eb131['charCodeAt'](_0x112a2a);return new _0x3e82a3['File']([_0x3b680d],'image.'+_0xd6c4c4,{'type':_0x42b862});}const _0x6c9226=_0x469ca9['href']['split']('/'),_0x22da57=_0x6c9226[_0x6c9226['length']-0x1],_0x4f5dde=_0x22da57['split']('.')[0x1];return _0x3e82a3['fetch'](_0x469ca9['href'])['then'](_0x45de66=>_0x45de66['clone']()['blob']())['then'](_0x12d72c=>new _0x3e82a3['File']([_0x12d72c],_0x22da57,{'type':'image/'+_0x4f5dde}));}}class J extends _0xdffaf{['imageEditController'];static get['requires'](){return[_0x453720];}['_isEditable'];constructor(_0x1877d4){super(_0x1877d4),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4b3663){const _0x5519f0=V(_0x4b3663);return _0x30c0d4=>!(!_0x30c0d4||!_0x30c0d4['is']('element','imageBlock')&&!_0x30c0d4['is']('element','imageInline'))&&(!!_0x30c0d4['hasAttribute']('uploadcareImageId')||!!_0x30c0d4['hasAttribute']('src')&&_0x5519f0(_0x30c0d4['getAttribute']('src')));}(_0x1877d4['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x7d6a23=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x7d6a23);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x337cf2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x337cf2&&(_0x337cf2['is']('element','imageBlock')||_0x337cf2['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x453720),_0x337cf2),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0xdffaf{['refresh'](){const _0xc9703d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xc9703d&&(_0xc9703d['is']('element','imageBlock')||_0xc9703d['is']('element','imageInline')));}['execute'](_0x321c73){const _0x5f1e60=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xe4dc2d=>{_0xe4dc2d['setAttributes'](_0x321c73,_0x5f1e60),_0xe4dc2d['removeAttribute']('srcset',_0x5f1e60),_0xe4dc2d['removeAttribute']('sizes',_0x5f1e60);});}}class g extends _0x2a8cd5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x38a1d4,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xa4b76}=this;_0xa4b76['commands']['add']('uploadcareImageEdit',new J(_0xa4b76)),_0xa4b76['commands']['add']('uploadcareImageReplace',new O(_0xa4b76));}}class j extends _0x2a8cd5{['_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 _0x3d89d8=this['editor'];_0x3d89d8['ui']['componentFactory']['add']('uploadcareImageEdit',_0x43c232=>{const _0x47b481=_0x3d89d8['commands']['get']('uploadcareImageEdit'),_0x293e6=new _0x398356(_0x43c232),t=_0x43c232['t'];return _0x293e6['set']({'icon':_0x286b0c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x293e6['bind']('isEnabled')['to'](_0x47b481),_0x293e6['bind']('isOn')['to'](_0x47b481,'isActive'),this['listenTo'](_0x293e6,'execute',()=>{_0x3d89d8['execute']('uploadcareImageEdit'),_0x3d89d8['editing']['view']['focus']();}),_0x293e6;}),this['_initConfig']();}['_initConfig'](){const _0x1d2a8d=_0x3f885f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1d2a8d),this['listenTo'](this['editor'],'destroy',()=>{_0x1d2a8d['remove']();});}}class P extends _0x2a8cd5{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 _0x89bf4b,Command as _0x3682da}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x50294b,IconGooglePhotos as _0x232410,IconGoogleDrive as _0x4491ac,IconFacebook as _0x3527e0,IconDropbox as _0x6ece2b,IconUploadcareLink as _0x4d57f0,IconUploadcareImageUpload as _0xbb5ff,IconError as et,IconUploadcareImageEdit as _0x2bf65d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2384d2,MenuBarMenuListItemButtonView as _0x532a65,View as _0x3ef8e2,FocusCycler as _0x126556,Dialog as _0x55adf0,DialogViewPosition as _0x12bee4,SpinnerView as _0x1c282d,IconView as at,Notification as _0xa2548d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x335ecb,DomEmitterMixin as _0x2c8f69,global as _0x143fb0,getAncestors as _0x2f5b42,ObservableMixin as _0x2faac7,createElement as _0x4e7da7,uid as _0x53d801}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1f0571}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3e1960,info as _0xbf8b5d}from'@uploadcare/upload-client';import*as _0x5797b4 from'@uploadcare/file-uploader';var o=function(_0x224d8d){return _0x224d8d['Local']='local',_0x224d8d['URL']='url',_0x224d8d['Dropbox']='dropbox',_0x224d8d['GDrive']='gdrive',_0x224d8d['Facebook']='facebook',_0x224d8d['GPhotos']='gphotos',_0x224d8d['OneDrive']='onedrive',_0x224d8d;}({});function _(_0x3df378,_0x4b6494,_0x3d30c5){const t=_0x3df378['t'],_0x284848=_0x3df378['t'];switch(_0x4b6494){case o['Local']:return{'text':_0x284848('Insert'===_0x3d30c5?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x284848('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x3d30c5?_0x284848('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x284848('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x3d30c5?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x3d30c5?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x3d30c5?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x3d30c5?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x3d30c5?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4b6494;}}class e extends _0x89bf4b{['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 _0x152ddd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4977c0;for(const _0x52a231 in _0x152ddd){const _0x218410=_0x52a231,_0x4442d7=_0x152ddd[_0x218410];if('uploadcareLicenseKeyValid'==_0x4442d7||'uploadcareLicenseKeyInvalid'==_0x4442d7||'uploadcareLicenseKeyExpired'==_0x4442d7||'uploadcareLicenseKeyDomainLimit'==_0x4442d7||'uploadcareLicenseKeyNotAllowed'==_0x4442d7||'uploadcareLicenseKeyEvaluationLimit'==_0x4442d7||'uploadcareLicenseKeyTrialLimit'==_0x4442d7||'uploadcareLicenseKeyUsageLimit'==_0x4442d7){delete _0x152ddd[_0x218410],_0x4977c0=_0x4442d7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4977c0&&_0x152ddd['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4977c0&&_0x152ddd['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4977c0&&_0x152ddd['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4977c0&&_0x152ddd['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4977c0&&_0x152ddd['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4977c0&&_0x152ddd['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4977c0&&_0x152ddd['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1bf05e}=this,_0x21c925=_0x1bf05e['commands']['get']('uploadcare');if(!_0x21c925)return;const _0x123d48=this['_normalizeConfigSourceList'](_0x1bf05e['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5136d3,_0xef375c)=>{const _0x362102=this['_getIntegrationKey'](_0xef375c['type']);return _0x5136d3[_0x362102]||(_0x5136d3[_0x362102]=[]),_0x5136d3[_0x362102]['push'](_0xef375c),_0x5136d3;},{});_0x1bf05e['plugins']['has']('ImageInsertUI')&&_0x1bf05e['commands']['get']('uploadcare')&&Object['entries'](_0x123d48)['forEach'](([_0x3b522a,_0x232169])=>{_0x1bf05e['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3b522a,'observable':()=>_0x21c925,'buttonViewCreator':()=>this['_createToolbarButton'](_0x232169),'formViewCreator':()=>this['_createDropdownButtons'](_0x232169),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x232169),'override':'assetManager'!==_0x3b522a});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2abaf8){const {locale:_0x20e2b7}=this['editor'];return _0x2abaf8['map'](_0x8676e3=>{const _0x4be0b2=_(_0x20e2b7,_0x8676e3,'Insert');switch(_0x8676e3){case o['Local']:return{'icon':_0xbb5ff,'type':o['Local'],..._0x4be0b2};case o['URL']:return{'icon':_0x4d57f0,'type':o['URL'],..._0x4be0b2};case o['Dropbox']:return{'icon':_0x6ece2b,'type':o['Dropbox'],..._0x4be0b2};case o['Facebook']:return{'icon':_0x3527e0,'type':o['Facebook'],..._0x4be0b2};case o['GDrive']:return{'icon':_0x4491ac,'type':o['GDrive'],..._0x4be0b2};case o['GPhotos']:return{'icon':_0x232410,'type':o['GPhotos'],..._0x4be0b2};case o['OneDrive']:return{'icon':_0x50294b,'type':o['OneDrive'],..._0x4be0b2};}});}['_getIntegrationKey'](_0x6663cf){switch(_0x6663cf){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2e547e,_0x369237){const _0x2ce564=this['editor'],_0x3aaa12=new _0x2e547e(_0x2ce564['locale']),_0x3c978f=_0x2ce564['commands']['get']('uploadcare');return _0x3aaa12['bind']('isEnabled')['to'](_0x3c978f),_0x3aaa12['on']('execute',()=>{_0x3c978f['execute'](_0x369237);}),_0x3aaa12;}['_createToolbarButton'](_0x102a42){const {locale:_0x401966}=this['editor'],_0x5b6265=this['editor']['plugins']['get']('ImageInsertUI'),_0x4f7348=_0x102a42[0x0],_0x32eb58=this['_createButton'](_0x2384d2,_0x4f7348['type']);return _0x32eb58['icon']=_0x4f7348['icon'],_0x32eb58['bind']('label')['to'](_0x5b6265,'isImageSelected',_0xf6cade=>_(_0x401966,_0x4f7348['type'],_0xf6cade?'Replace':'Insert')['text']),_0x32eb58['tooltip']=!0x0,_0x32eb58;}['_createDropdownButtons'](_0x128b0b){const {locale:_0x3633d2}=this['editor'],_0x297ab7=this['editor']['plugins']['get']('ImageInsertUI');return _0x128b0b['map'](_0x522950=>{const _0x4e7e56=this['_createButton'](_0x2384d2,_0x522950['type']);return _0x4e7e56['withText']=!0x0,_0x4e7e56['icon']=_0x522950['icon'],_0x4e7e56['bind']('label')['to'](_0x297ab7,'isImageSelected',_0x4c30fc=>_(_0x3633d2,_0x522950['type'],_0x4c30fc?'Replace':'Insert')['text']),_0x4e7e56;});}['_createMenuBarButtons'](_0x2d3123){return _0x2d3123['map'](_0x24c1ab=>{const _0x2eb321=this['_createButton'](_0x532a65,_0x24c1ab['type']);return _0x2eb321['icon']=_0x24c1ab['icon'],_0x2eb321['label']=_0x24c1ab['shortText'],_0x2eb321;});}}class q extends _0x3ef8e2{['focusTracker'];['focusCycler'];constructor(_0x55d4a1){super(_0x55d4a1),this['focusTracker']=new _0x335ecb(),this['focusCycler']=new _0x126556({'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(_0x31d5dd){super(_0x31d5dd),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(_0x509bcd,_0x21fb07){const _0x1bd775=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xc4d1de=>_0xc4d1de<=_0x21fb07)['map'](_0x453f50=>_0x509bcd['replace'](/\/$/,'')+'/-/resize/'+_0x453f50+'x/\x20'+_0x453f50+'w');return{'imageFallbackUrl':_0x509bcd,'imageSources':[{'srcset':_0x1bd775['join'](',\x20'),'sizes':'(max-width:\x20'+_0x21fb07+'px)\x20100vw,\x20'+_0x21fb07+'px','type':'image/webp'}]};}function A(_0x274f10,_0x469454,_0x335769){const _0x8d7ec1=_0x274f10['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x8d7ec1?parseInt(_0x8d7ec1[0x1],0xa):_0x469454,'height':_0x8d7ec1?parseInt(_0x8d7ec1[0x2],0xa):_0x335769};}function m(_0x5c9a05,_0x12eed2){const _0x612376=Object['create'](_0x2c8f69),_0x523522=_0x5c9a05['plugins']['get']('ImageUtils'),_0x4ee32c=_0x5c9a05['editing']['mapper']['toViewElement'](_0x12eed2),_0x11d5bc=_0x523522['findViewImgElement'](_0x4ee32c),_0x57d8a8=_0x5c9a05['editing']['view']['domConverter']['viewToDom'](_0x11d5bc),_0xc12e36=_0x12eed2['getAttribute']('width'),_0x42bd2a=_0x12eed2['getAttribute']('height'),_0x23913e='image-processing';_0x5c9a05['editing']['view']['change'](_0x1222e7=>{_0x1222e7['addClass'](_0x23913e,_0x4ee32c),_0x1222e7['setStyle']('aspect-ratio',_0xc12e36+'/'+_0x42bd2a,_0x11d5bc);}),_0x612376['listenTo'](_0x57d8a8,'load',()=>{_0x612376['stopListening'](_0x57d8a8,'load'),_0x5c9a05['editing']['view']['change'](_0x459b9d=>{_0x459b9d['removeClass'](_0x23913e,_0x4ee32c),_0x459b9d['removeStyle']('aspect-ratio',_0x11d5bc);});});}function V(_0xd60bfa){if(Array['isArray'](_0xd60bfa)){const _0x140455=_0xd60bfa['map'](V);return _0x1ad46=>_0x140455['some'](_0x29b93d=>_0x29b93d(_0x1ad46));}if('origin'==_0xd60bfa){const _0x726c5a=_0x143fb0['window']['location']['origin'];return _0x5392ba=>new URL(_0x5392ba,_0x143fb0['document']['baseURI'])['origin']==_0x726c5a;}return'function'==typeof _0xd60bfa?_0xd60bfa:_0xd60bfa instanceof RegExp?_0x135bd2=>!(!_0x135bd2['match'](_0xd60bfa)&&!_0x135bd2['replace'](/^https?:\/\//,'')['match'](_0xd60bfa)):()=>!0x1;}function F(_0x52fac2,_0x27199c){return _0x2f5b42(_0x52fac2['target'])['includes'](_0x27199c);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x2faac7(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4d2fc9,_0xbb85b2,_0x5a66c2){super(),this['_editor']=_0x4d2fc9,this['_editing']=_0xbb85b2,this['_dialog']=_0x4d2fc9['plugins']['get'](_0x55adf0),this['_api']=_0xbb85b2['ctxElement']['getAPI'](),this['_type']=_0x5a66c2,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:_0x450e27,model:_0xd9edba}=this['_editor'],_0x2e8785=_0xd9edba['document']['selection']['getSelectedElement'](),_0x340868=_0x2e8785&&(_0x2e8785['is']('element','imageBlock')||_0x2e8785['is']('element','imageInline'));this['_formView']=new S(_0x450e27),this['_dialog']['show']({'id':'uploadCare','icon':_0xbb5ff,'title':_(_0x450e27,this['_type'],_0x340868?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x12bee4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4c6351=>!F(_0x4c6351,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5dd2b6}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x94387d=>{const _0x13d699=_0x5dd2b6['length'];for(const _0x345057 of _0x5dd2b6){const _0x332939=_0x345057===_0x5dd2b6[_0x13d699-0x1],{cdnUrl:_0x11f97c,fileInfo:_0x19cc82}=_0x345057;if(!_0x11f97c||!_0x19cc82)continue;const {width:_0x2d3f03,height:_0x571717}=_0x19cc82['imageInfo'],_0x4ba4da=A(_0x11f97c,_0x2d3f03,_0x571717),_0x5261eb=E(_0x11f97c,_0x4ba4da['width']),_0x2a1a4c={'id':_0x19cc82['uuid'],'type':'image','attributes':{'imageDimension':_0x4ba4da,..._0x5261eb}};this['_insertAsset'](_0x2a1a4c,_0x332939,_0x94387d);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x315200=>{'idle'===_0x315200['detail']['status']&&!_0x315200['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x29ec40,_0x6231d7,_0x2822a4){const _0x28f117=this['_editor']['model']['document']['selection'],_0x4e6c54=_0x28f117['getSelectedElement'](),_0x6608c0=!(!_0x4e6c54||!_0x4e6c54['is']('element','imageInline'));_0x2822a4['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x29ec40,_0x6608c0),_0x6231d7||_0x2822a4['setSelection'](_0x28f117['getLastPosition']());}['_insertImage'](_0x23637b,_0x21596c){const _0x30a887=this['_editor'],{imageDimension:_0x2b8d3b,imageFallbackUrl:_0x73181e,imageSources:_0x57127e}=_0x23637b['attributes'];_0x30a887['execute']('insertImage',{'imageType':_0x21596c?'imageInline':null,'source':{'uploadcareImageId':_0x23637b['id'],'src':_0x73181e,'sources':_0x57127e,..._0x2b8d3b}});}}class n extends _0x3682da{['_editing'];['_controller']=null;static get['requires'](){return[_0x55adf0,i];}constructor(_0x48201f){super(_0x48201f),this['_editing']=_0x48201f['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1d0168){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1d0168);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x374dae,publicKey:_0x1cb08b,signal:_0xf92407,onProgress:_0x1774d0}){return _0x3e1960(_0x374dae,{'publicKey':_0x1cb08b,'store':'auto','signal':_0xf92407,'onProgress':_0x1774d0});}static['getInfo'](_0x39b353,_0xddbcea){return _0xbf8b5d(_0x39b353,_0xddbcea);}}class p extends _0x89bf4b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1f0571,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xfa9ae7=this['editor'];if(!!!_0xfa9ae7['config']['get']('uploadcare'))return;_0xfa9ae7['plugins']['get'](_0x1f0571)['createUploadAdapter']=_0x58ea17=>new x(_0x58ea17,_0xfa9ae7),_0xfa9ae7['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x375dae,{imageElement:_0x5b59b0,data:_0x507fe4})=>{_0xfa9ae7['model']['change'](_0x4b6b4a=>{_0x4b6b4a['setAttribute']('uploadcareImageId',_0x507fe4['uploadcareImageId'],_0x5b59b0);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x12bb9c,_0x4b1b77){this['loader']=_0x12bb9c,this['editor']=_0x4b1b77,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x519f48=this['editor']['config']['get']('uploadcare.pubkey'),_0x1da3c6=await this['loader']['file'];return C['upload']({'file':_0x1da3c6,'publicKey':_0x519f48,'signal':this['controller']['signal'],'onProgress':_0x3f844e=>{_0x3f844e&&_0x3f844e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3f844e['value']);}})['then'](async _0x8446fa=>{const {imageFallbackUrl:_0x169127,imageSources:_0x2bb963}=E(_0x8446fa['cdnUrl'],_0x8446fa['imageInfo']['width']);return{'uploadcareImageId':_0x8446fa['uuid'],'default':_0x169127,'sources':_0x2bb963};})['catch'](()=>{const _0x214da5=t('Cannot\x20upload\x20file:')+('\x20'+_0x1da3c6['name']+'.');return Promise['reject'](_0x214da5);});}['abort'](){this['controller']['abort']();}}class i extends _0x89bf4b{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x55adf0];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x59fe90=this['editor'];_0x59fe90['commands']['add']('uploadcare',new n(_0x59fe90));}['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 _0x2fa237=_0x143fb0['document']['querySelector']('input[uploadcare-file-input]');_0x2fa237&&_0x2fa237['remove']();}),async function(_0x4de987){const _0x32ff98=_0x6f3715([0x75,0x42,0x34,0x66,0x39,0x72,0x44,0x5a,0x4e,0x4c,0x6a,0x31,0x54,0x38,0x36,0x71,0x45,0x76,0x57,0x4a,0x4d,0x55,0x61,0x56,0x67,0x7a,0x59,0x53,0x6c,0x33,0x73,0x51,0x70,0x65,0x4f,0x37,0x30,0x6d,0x6f,0x6e,0x79,0x58,0x78,0x6b,0x46,0x43,0x52,0x69,0x4b,0x49,0x35,0x68,0x41,0x64,0x77,0x74,0x62,0x50,0x48,0x32,0x47,0x63]),_0x3f3949=0x4a28d3e7,_0x446d24=0x4a2fb357^_0x3f3949,_0xcc517d=window[_0x6f3715([0x44,0x61,0x74,0x65])][_0x6f3715([0x6e,0x6f,0x77])](),_0x4089af=_0x4de987[_0x6f3715([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47b6a1=new window[(_0x6f3715([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34e6c2=>{_0x4089af[_0x6f3715([0x6f,0x6e,0x63,0x65])](_0x6f3715([0x72,0x65,0x61,0x64,0x79]),_0x34e6c2);}),_0x18e478={[_0x6f3715([0x6b,0x74,0x79])]:_0x6f3715([0x45,0x43]),[_0x6f3715([0x75,0x73,0x65])]:_0x6f3715([0x73,0x69,0x67]),[_0x6f3715([0x63,0x72,0x76])]:_0x6f3715([0x50,0x2d,0x32,0x35,0x36]),[_0x6f3715([0x78])]:_0x6f3715([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]),[_0x6f3715([0x79])]:_0x6f3715([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]),[_0x6f3715([0x61,0x6c,0x67])]:_0x6f3715([0x45,0x53,0x32,0x35,0x36])},_0x2635bc=_0x4089af[_0x6f3715([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x6f3715([0x67,0x65,0x74])](_0x6f3715([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x28c1ed(){let _0x1b4f2a,_0x1bacaf=null,_0x55a3b7=null;try{if(_0x2635bc==_0x6f3715([0x47,0x50,0x4c]))return _0x6f3715([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1b4f2a=_0x88de03(),!_0x1b4f2a)return _0x6f3715([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1b4f2a[_0x6f3715([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55a3b7=_0x38f475(_0x1b4f2a[_0x6f3715([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1b4f2a[_0x6f3715([0x6a,0x74,0x69])])),await _0x4acce9()?_0x1e32ba()?_0x27f8b4()?_0x6f3715([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5b0028()?(_0x1b4f2a[_0x6f3715([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6f3715([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1bacaf=_0x1ad963(_0x6f3715([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1b4f2a[_0x6f3715([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6f3715([0x74,0x72,0x69,0x61,0x6c])&&(_0x1bacaf=_0x1ad963(_0x6f3715([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1fc260()):_0x6f3715([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x6f3715([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x6f3715([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xa01b7c){return _0x6f3715([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x27f8b4(){const _0x14ef60=[_0x6f3715([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x6f3715([0x74,0x72,0x69,0x61,0x6c])][_0x6f3715([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b4f2a[_0x6f3715([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xcc517d/0x3e8:0xe10*_0x446d24;return _0x1b4f2a[_0x6f3715([0x65,0x78,0x70])]<_0x14ef60;}function _0x1e32ba(){const _0x37a186=_0x1b4f2a[_0x6f3715([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x37a186&&(!!_0x37a186[_0x6f3715([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6f3715([0x2a]))||!!_0x37a186[_0x6f3715([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6f3715([0x55,0x50,0x4c,0x43])));}function _0x5b0028(){const _0x6915a8=_0x1b4f2a[_0x6f3715([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x6915a8||0x0==_0x6915a8[_0x6f3715([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x48bea9}=new URL(window[_0x6f3715([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x6915a8[_0x6f3715([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48bea9))return!0x0;const _0x5c8051=_0x48bea9[_0x6f3715([0x73,0x70,0x6c,0x69,0x74])](_0x6f3715([0x2e]));return _0x6915a8[_0x6f3715([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc93aa6=>_0xc93aa6[_0x6f3715([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6f3715([0x2a])))[_0x6f3715([0x6d,0x61,0x70])](_0x68adb9=>_0x68adb9[_0x6f3715([0x73,0x70,0x6c,0x69,0x74])](_0x6f3715([0x2e])))[_0x6f3715([0x73,0x6f,0x6d,0x65])](_0x3c4390=>_0x5c8051[_0x6f3715([0x65,0x76,0x65,0x72,0x79])]((_0x8e03c,_0x5c67a6)=>_0x3c4390[_0x5c67a6]===_0x8e03c||_0x3c4390[_0x5c67a6]===_0x6f3715([0x2a])));}function _0x1fc260(){return _0x1bacaf&&_0x55a3b7?new window[(_0x6f3715([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30b7e7,_0x45c339)=>{_0x1bacaf[_0x6f3715([0x74,0x68,0x65,0x6e])](_0x30b7e7,_0x45c339),_0x55a3b7[_0x6f3715([0x74,0x68,0x65,0x6e])](_0x7dce66=>{_0x7dce66!=_0x6f3715([0x56,0x61,0x6c,0x69,0x64])&&_0x30b7e7(_0x7dce66);},_0x45c339);}):_0x1bacaf||_0x55a3b7||_0x6f3715([0x56,0x61,0x6c,0x69,0x64]);}}function _0x38f475(_0x36ac98,_0x4be9a8){return new window[(_0x6f3715([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x106256=>{if(_0x274656())return _0x106256(_0x6f3715([0x56,0x61,0x6c,0x69,0x64]));_0x1032c2(),_0x4089af[_0x6f3715([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x6f3715([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x37d8c6=!0x1;const _0x287daa=_0x53d801();function _0x580f97(_0x574fe3){return!!_0x574fe3&&(typeof _0x574fe3===_0x6f3715([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x574fe3===_0x6f3715([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x574fe3[_0x6f3715([0x74,0x68,0x65,0x6e])]===_0x6f3715([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x574fe3[_0x6f3715([0x63,0x61,0x74,0x63,0x68])]===_0x6f3715([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4e9951(_0x39522f){_0x307d9b(_0x39522f)[_0x6f3715([0x74,0x68,0x65,0x6e])](_0x427cde=>{if(!_0x427cde||_0x427cde[_0x6f3715([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x6f3715([0x6f,0x6b]))return _0x6f3715([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x51747a(_0x54948f(_0x287daa+_0x4be9a8))!=_0x427cde[_0x6f3715([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x6f3715([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x6f3715([0x56,0x61,0x6c,0x69,0x64]);})[_0x6f3715([0x74,0x68,0x65,0x6e])](_0x22303d=>(_0x286463(),_0x22303d),()=>{const _0x88ba63=_0x42d106();return null==_0x88ba63?(_0x286463(),_0x6f3715([0x56,0x61,0x6c,0x69,0x64])):_0x6f3715(_0xcc517d-_0x88ba63>(0x6e2457e7^_0x3f3949)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x6f3715([0x74,0x68,0x65,0x6e])](_0x106256)[_0x6f3715([0x63,0x61,0x74,0x63,0x68])](()=>{_0x106256(_0x6f3715([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5853cc=0x4a1e3d67^_0x3f3949;function _0x286463(){const _0x528c2c=_0x6f3715([0x6c,0x6c,0x63,0x74,0x2d])+_0x51747a(_0x54948f(_0x36ac98)),_0x250e56=_0x45c7fa(_0x51747a(window[_0x6f3715([0x4d,0x61,0x74,0x68])][_0x6f3715([0x63,0x65,0x69,0x6c])](_0xcc517d/_0x5853cc)));window[_0x6f3715([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6f3715([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x528c2c,_0x250e56);}function _0x42d106(){const _0x5ec4aa=_0x6f3715([0x6c,0x6c,0x63,0x74,0x2d])+_0x51747a(_0x54948f(_0x36ac98)),_0x4b6695=window[_0x6f3715([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6f3715([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ec4aa);return _0x4b6695?window[_0x6f3715([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45c7fa(_0x4b6695),0x10)*_0x5853cc:null;}function _0x307d9b(_0x35e2d2){return new window[(_0x6f3715([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5163c1,_0x698ed0)=>{_0x35e2d2[_0x6f3715([0x74,0x68,0x65,0x6e])](_0x5163c1,_0x698ed0),window[_0x6f3715([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x698ed0,0x4a290727^_0x3f3949);});}}_0x4089af[_0x6f3715([0x6f,0x6e])](_0x6f3715([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x47c6c2,_0x329fce)=>{if(_0x329fce[0x0]!=_0x36ac98)return _0x106256(_0x6f3715([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x329fce[0x1]={..._0x329fce[0x1],[_0x6f3715([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x287daa};},{[_0x6f3715([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6f3715([0x68,0x69,0x67,0x68])}),_0x4089af[_0x6f3715([0x6f,0x6e])](_0x6f3715([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5c54a4=>{_0x580f97(_0x5c54a4[_0x6f3715([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x37d8c6=!0x0,_0x4e9951(_0x5c54a4[_0x6f3715([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x6f3715([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6f3715([0x6c,0x6f,0x77])}),_0x47b6a1[_0x6f3715([0x74,0x68,0x65,0x6e])](()=>{_0x37d8c6||_0x106256(_0x6f3715([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x274656(){return _0x4089af[_0x6f3715([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6f3715([0x76,0x69,0x65,0x77])][_0x6f3715([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x6f3715([0x61,0x75,0x74,0x6f]);}function _0x1032c2(){_0x4089af[_0x6f3715([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6f3715([0x76,0x69,0x65,0x77])][_0x6f3715([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x6f3715([0x61,0x75,0x74,0x6f]);}}function _0x1ad963(_0x24f758){const _0x7f0e84=[new window[(_0x6f3715([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54cecf=>setTimeout(_0x54cecf,0x4a21ed2b^_0x3f3949)),_0x47b6a1[_0x6f3715([0x74,0x68,0x65,0x6e])](()=>new window[(_0x6f3715([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x442427=>{let _0x15edef=0x0;_0x4089af[_0x6f3715([0x6d,0x6f,0x64,0x65,0x6c])][_0x6f3715([0x6f,0x6e])](_0x6f3715([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x32d825,_0x5c4759)=>{_0x5c4759[0x0][_0x6f3715([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x15edef++,_0x15edef==(0x4a28d21f^_0x3f3949)&&(_0x442427(),_0x32d825[_0x6f3715([0x6f,0x66,0x66])]());});}))];return window[_0x6f3715([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x6f3715([0x72,0x61,0x63,0x65])](_0x7f0e84)[_0x6f3715([0x74,0x68,0x65,0x6e])](()=>_0x24f758);}async function _0x1a0e82(){await _0x47b6a1,_0x4089af[_0x6f3715([0x6d,0x6f,0x64,0x65,0x6c])][_0x6f3715([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4570fe,_0x4089af[_0x6f3715([0x6d,0x6f,0x64,0x65,0x6c])][_0x6f3715([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4570fe,_0x4089af[_0x6f3715([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x6f3715([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x515e41(_0x2a0cff){const _0x1438d0=_0x51cfcb();_0x4089af[_0x1438d0]=_0x6f3715([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2a0cff,_0x2a0cff!=_0x6f3715([0x56,0x61,0x6c,0x69,0x64])&&_0x1a0e82();}function _0x51cfcb(){const _0x366c51=window[_0x6f3715([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x6f3715([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x6f3715([0x6e,0x6f,0x77])]())[_0x6f3715([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x6f3715([0x2e]),'');let _0x572111=_0x6f3715([0x75]);for(let _0xc84bdc=0x0;_0xc84bdc<_0x366c51[_0x6f3715([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc84bdc+=0x2){let _0x2ad386=window[_0x6f3715([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x366c51[_0x6f3715([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc84bdc,_0xc84bdc+0x2));_0x2ad386>=_0x32ff98[_0x6f3715([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ad386-=_0x32ff98[_0x6f3715([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x572111+=_0x32ff98[_0x2ad386];}return _0x572111;}function _0x88de03(){const _0x56c7ba=_0x2635bc[_0x6f3715([0x73,0x70,0x6c,0x69,0x74])](_0x6f3715([0x2e]));if(0x3!=_0x56c7ba[_0x6f3715([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x36b5a8(_0x56c7ba[0x1]);function _0x36b5a8(_0x3327e5){const _0x423744=_0xfc67f9(_0x3327e5);return _0x423744&&_0x105b99()?_0x423744:null;function _0x105b99(){const _0x55d78b=_0x423744[_0x6f3715([0x6a,0x74,0x69])],_0x5d3a4d=window[_0x6f3715([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55d78b[_0x6f3715([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55d78b[_0x6f3715([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5b84bc={..._0x423744,[_0x6f3715([0x6a,0x74,0x69])]:_0x55d78b[_0x6f3715([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x55d78b[_0x6f3715([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5b84bc[_0x6f3715([0x76,0x63])],_0x54948f(_0x5b84bc)==_0x5d3a4d;}}}async function _0x4acce9(){let _0x1f7ebf=!0x0;try{const _0x25a202=_0x2635bc[_0x6f3715([0x73,0x70,0x6c,0x69,0x74])](_0x6f3715([0x2e])),[_0x32357b,_0x4907f7,_0x2bd2a4]=_0x25a202;return _0x3e8f6f(_0x32357b),await _0x422759(_0x32357b,_0x4907f7,_0x2bd2a4),_0x1f7ebf;}catch(_0x1656f4){return!0x1;}function _0x3e8f6f(_0x3ceecc){const _0x113c3a=_0xfc67f9(_0x3ceecc);_0x113c3a&&_0x113c3a[_0x6f3715([0x61,0x6c,0x67])]==_0x6f3715([0x45,0x53,0x32,0x35,0x36])||(_0x1f7ebf=!0x1);}async function _0x422759(_0x238825,_0x4f5263,_0x712abc){const _0x5f4f08=window[_0x6f3715([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x6f3715([0x66,0x72,0x6f,0x6d])](_0x135df3(_0x712abc),_0x36f935=>_0x36f935[_0x6f3715([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4d6d5f=new window[(_0x6f3715([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x6f3715([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x238825+_0x6f3715([0x2e])+_0x4f5263),_0x3a0690=window[_0x6f3715([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x6f3715([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3a0690)return;const _0x4ca01a=await _0x3a0690[_0x6f3715([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x6f3715([0x6a,0x77,0x6b]),_0x18e478,{[_0x6f3715([0x6e,0x61,0x6d,0x65])]:_0x6f3715([0x45,0x43,0x44,0x53,0x41]),[_0x6f3715([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x6f3715([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x6f3715([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3a0690[_0x6f3715([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x6f3715([0x6e,0x61,0x6d,0x65])]:_0x6f3715([0x45,0x43,0x44,0x53,0x41]),[_0x6f3715([0x68,0x61,0x73,0x68])]:{[_0x6f3715([0x6e,0x61,0x6d,0x65])]:_0x6f3715([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ca01a,_0x5f4f08,_0x4d6d5f)||(_0x1f7ebf=!0x1);}}function _0xfc67f9(_0x3fe8df){return _0x3fe8df[_0x6f3715([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x6f3715([0x65,0x79]))?JSON[_0x6f3715([0x70,0x61,0x72,0x73,0x65])](_0x135df3(_0x3fe8df)):null;}function _0x135df3(_0x2b9f75){return window[_0x6f3715([0x61,0x74,0x6f,0x62])](_0x2b9f75[_0x6f3715([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x6f3715([0x2b]))[_0x6f3715([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x6f3715([0x2f])));}function _0x54948f(_0x978561){let _0xb7780=0x1505;function _0x36020e(_0x26531b){for(let _0x8f763e=0x0;_0x8f763e<_0x26531b[_0x6f3715([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8f763e++){const _0x4fbfcd=_0x26531b[_0x6f3715([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x8f763e);_0xb7780=(_0xb7780<<0x5)+_0xb7780+_0x4fbfcd,_0xb7780&=_0xb7780;}}function _0x23285a(_0x5c8ec6){Array[_0x6f3715([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5c8ec6)?_0x5c8ec6[_0x6f3715([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x23285a):_0x5c8ec6&&typeof _0x5c8ec6==_0x6f3715([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x6f3715([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5c8ec6)[_0x6f3715([0x73,0x6f,0x72,0x74])]()[_0x6f3715([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2678cb,_0x5cc43a])=>{_0x36020e(_0x2678cb),_0x23285a(_0x5cc43a);}):_0x36020e(window[_0x6f3715([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5c8ec6));}return _0x23285a(_0x978561),_0xb7780>>>0x0;}function _0x51747a(_0x166862){return _0x166862[_0x6f3715([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x6f3715([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x6f3715([0x30]));}function _0x45c7fa(_0x1433ec){return _0x1433ec[_0x6f3715([0x73,0x70,0x6c,0x69,0x74])]('')[_0x6f3715([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x6f3715([0x6a,0x6f,0x69,0x6e])]('');}function _0x4570fe(){}function _0x6f3715(_0x559e9e){return _0x559e9e['map'](_0x47fde2=>String['fromCharCode'](_0x47fde2))['join']('');}_0x515e41(await _0x28c1ed());}(this);}['_initSchema'](){const _0x1a31cb=this['editor']['model']['schema'];_0x1a31cb['isRegistered']('imageBlock')&&_0x1a31cb['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1a31cb['isRegistered']('imageInline')&&_0x1a31cb['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3a428c=this['editor'];_0x3a428c['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3a428c['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xdfe2d1=>_0xdfe2d1['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x45f030=_0x3a428c['commands']['get']('replaceImageSource');_0x45f030&&this['listenTo'](_0x45f030,'cleanupImage',(_0x36c1d0,[_0x33bfab,_0x2044bc])=>{_0x33bfab['removeAttribute']('uploadcareImageId',_0x2044bc);});}['_initConfig'](){const _0x64ceee=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1eda0f=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4e7da7(_0x143fb0['document'],'uc-config',{..._0x64ceee,'pubkey':_0x1eda0f,'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']=_0x55a38c=>{if('closeMax'==_0x55a38c)return'#uc-icon-arrow-down';},_0x143fb0['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4e7da7(_0x143fb0['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x143fb0['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xa0cbe5=this['editor']['commands']['get']('insertImage');_0xa0cbe5&&this['listenTo'](_0xa0cbe5,'execute',()=>{const _0x47504e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x47504e&&_0x47504e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x47504e);});});const _0x4937a0=this['editor']['commands']['get']('uploadcareImageReplace');_0x4937a0&&this['listenTo'](_0x4937a0,'execute',()=>{const _0x428662=this['editor']['model']['document']['selection']['getSelectedElement']();_0x428662&&_0x428662['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x428662);});});}}class u extends _0x89bf4b{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50dc29){super(_0x50dc29),_0x50dc29['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x5797b4['defineComponents'](_0x5797b4);}}class ta extends _0x3ef8e2{constructor(_0x3585fe){super(_0x3585fe);const t=_0x3585fe['t'],_0x52860e=this['bindTemplate'],_0x51397b=new _0x1c282d();_0x51397b['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':[_0x51397b,{'text':_0x52860e['to']('imageUploadProgress',_0x2a8715=>t('Loading\x20image...')+'\x20('+(_0x2a8715||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 _0x3ef8e2{constructor(_0x5dc799){super(_0x5dc799);const t=_0x5dc799['t'];this['set']('errorType',null);const _0x51cc19=new _0x2384d2(_0x5dc799);_0x51cc19['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x51cc19['withText']=!0x0,_0x51cc19['class']='ck-button-action',_0x51cc19['on']('execute',()=>{this['fire']('retry');}),_0x51cc19['bind']('isVisible')['to'](this,'errorType',_0x437195=>'NotFound'!==_0x437195);const _0x7dda3b=new at();_0x7dda3b['content']=et,_0x7dda3b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x777243=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':[_0x7dda3b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x777243['to']('errorType',_0x365694=>t('NotFound'!==_0x365694?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x51cc19]},{'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 _0x3ef8e2{constructor(_0x3090e9,_0x31c6ca){super(_0x3090e9);const _0x296b4a=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x31c6ca,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x296b4a['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x19e590,_0x69dd2a,_0x51e63a){super(_0x19e590),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x19e590),this['_errorView']=new rt(_0x19e590),this['_editingView']=new tt(_0x19e590,_0x51e63a),this['_focusableView']=new _0x3ef8e2(_0x19e590),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x69dd2a),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'],_0x210011=>{this['_addUploadcareImageEditorListeners'](_0x210011);});}),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'](_0x133a09,_0x3cdd15){const _0x3b4564='uc-cloud-image-editor',_0x15772d=_0x133a09['querySelector'](_0x3b4564);if(_0x15772d)return _0x3cdd15(_0x15772d);const _0x5919b6=new MutationObserver(_0xf88d16=>{const _0x4a94e8=_0xf88d16['filter'](_0x16b007=>_0x16b007['target']===_0x133a09&&_0x16b007['addedNodes']['length']>0x0&&_0x16b007['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3b4564);_0x4a94e8['length']&&(_0x5919b6['disconnect'](),_0x3cdd15(_0x4a94e8[0x0]['addedNodes'][0x0]));});_0x5919b6['observe'](_0x133a09,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xe236f4){_0xe236f4['addEventListener']('apply',_0x46732d=>{this['fire']('apply',{'imageSrc':_0x46732d['detail']['cdnUrl']});}),_0xe236f4['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x2faac7(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xc7207c,_0xa26018,_0x119750){super(),this['_editor']=_0xc7207c,this['_dialog']=_0xa26018,this['_imageElement']=_0x119750,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 _0xc3ac14=this['_imageElement'],_0xcb5c94=_0xc3ac14['getAttribute']('uploadcareImageId'),_0x32550e=_0xc3ac14['getAttribute']('src');if(_0xcb5c94)await this['_loadImageInfo'](_0xcb5c94,_0x32550e);else{if(this['_imageCache']['has'](_0x32550e)){const _0x4619f6=this['_imageCache']['get'](_0x32550e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4619f6['url'],this['imageDimension']=_0x4619f6['dimension'],this['imageId']=_0x4619f6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x31b4db}=this['_editor'],t=_0x31b4db['t'],_0x3ecbfa=new Z(_0x31b4db,this['imageStatus'],this['_attributes']);_0x3ecbfa['bind']('status')['to'](this,'imageStatus'),_0x3ecbfa['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3ecbfa['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3ecbfa['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3ecbfa,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2bf65d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3ecbfa,'position':_0x12bee4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3ecbfa['focus']();},'onHide':()=>{_0x3ecbfa['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x122a0c=>!F(_0x122a0c,_0x3ecbfa['element'])}});}['_loadImageInfo'](_0x29114e,_0x3434a9){return C['getInfo'](_0x29114e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4a6cbb=>{const {width:_0x551de5,height:_0x39cefc}=_0x4a6cbb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3434a9,this['imageDimension']={'width':_0x551de5,'height':_0x39cefc},this['imageId']=_0x29114e;})['catch'](_0x560c01=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x560c01['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x307e3c,_0x59dac6){return this['_getImageAsFile'](_0x307e3c)['then'](_0x36bfbd=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x59dac6['signal'],'file':_0x36bfbd,'onProgress':_0x384d19=>{_0x384d19&&_0x384d19['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x384d19['value']));}}))['then'](_0x2a66ee=>{const {width:_0x3b7e82,height:_0x7412e8}=_0x2a66ee['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2a66ee['cdnUrl'],this['imageDimension']={'width':_0x3b7e82,'height':_0x7412e8},this['imageId']=_0x2a66ee['uuid'],this['imageUploadProgress']=null;const _0x5d362d=_0x307e3c['getAttribute']('src');this['_imageCache']['set'](_0x5d362d,{'id':_0x2a66ee['uuid'],'url':_0x2a66ee['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x13ddfc=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x13ddfc['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x42f819,_0xd4cfd6){_0x42f819['on']('apply',(_0x460d1b,_0x4187d1)=>{this['_replaceImage'](_0xd4cfd6,_0x4187d1['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x42f819['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x42f819['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x24f3f5,_0x16ec30,_0x5bacfe){const _0x3060b3=this['_editor'],{width:_0x18c2da,height:_0x2ac482}=A(_0x16ec30,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x52c61d,imageSources:_0x2a97f6}=E(_0x16ec30,_0x18c2da);_0x3060b3['model']['change'](_0x3b1ebd=>{if('$graveyard'===_0x24f3f5['root']['rootName']){_0x3060b3['execute']('insertImage',{'imageType':_0x24f3f5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x24f3f5['getAttributes']()),'uploadcareImageId':_0x5bacfe,'src':_0x52c61d,'sources':_0x2a97f6,'width':_0x18c2da,'height':_0x2ac482}});const _0x5620c1=_0x24f3f5['getChildren']();_0x24f3f5=_0x3060b3['model']['document']['selection']['getSelectedElement']();for(const _0x40bda9 of _0x5620c1)_0x3b1ebd['append'](_0x3b1ebd['cloneElement'](_0x40bda9),_0x24f3f5);}else _0x3b1ebd['setSelection'](_0x24f3f5,'on'),_0x3060b3['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x24f3f5['getAttributes']()),'uploadcareImageId':_0x5bacfe,'src':_0x52c61d,'sources':_0x2a97f6,'width':_0x18c2da,'height':_0x2ac482},_0x24f3f5);_0x3b1ebd['setSelection'](_0x24f3f5,'on');});}async['_getImageAsFile'](_0x50d7e5){const _0x56224e=_0x143fb0['window'],_0x917a10=_0x143fb0['document']['location']['href'],_0x1ca001=new _0x56224e['URL'](_0x50d7e5['getAttribute']('src'),_0x917a10);if('data:'===_0x1ca001['protocol']){const _0x5b9298=_0x1ca001['href']['split'](','),_0x58e542=_0x5b9298[0x0]['match'](/:(.*?);/)[0x1],_0x547b48=_0x58e542['split']('/')[0x1],_0x5ec657=_0x56224e['atob'](_0x5b9298[_0x5b9298['length']-0x1]);let _0x2b8b7d=_0x5ec657['length'];const _0x3d206b=new _0x56224e['Uint8Array'](_0x2b8b7d);for(;_0x2b8b7d--;)_0x3d206b[_0x2b8b7d]=_0x5ec657['charCodeAt'](_0x2b8b7d);return new _0x56224e['File']([_0x3d206b],'image.'+_0x547b48,{'type':_0x58e542});}const _0x48ef6f=_0x1ca001['href']['split']('/'),_0x4a047b=_0x48ef6f[_0x48ef6f['length']-0x1],_0x110697=_0x4a047b['split']('.')[0x1];return _0x56224e['fetch'](_0x1ca001['href'])['then'](_0x42b685=>_0x42b685['clone']()['blob']())['then'](_0x212c13=>new _0x56224e['File']([_0x212c13],_0x4a047b,{'type':'image/'+_0x110697}));}}class J extends _0x3682da{['imageEditController'];static get['requires'](){return[_0x55adf0];}['_isEditable'];constructor(_0x5dd603){super(_0x5dd603),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x56479d){const _0x2b4044=V(_0x56479d);return _0x596de3=>!(!_0x596de3||!_0x596de3['is']('element','imageBlock')&&!_0x596de3['is']('element','imageInline'))&&(!!_0x596de3['hasAttribute']('uploadcareImageId')||!!_0x596de3['hasAttribute']('src')&&_0x2b4044(_0x596de3['getAttribute']('src')));}(_0x5dd603['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3dd49f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3dd49f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1b61c2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1b61c2&&(_0x1b61c2['is']('element','imageBlock')||_0x1b61c2['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x55adf0),_0x1b61c2),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x3682da{['refresh'](){const _0x3917a3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3917a3&&(_0x3917a3['is']('element','imageBlock')||_0x3917a3['is']('element','imageInline')));}['execute'](_0x30fa1d){const _0x315e26=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5d2ac1=>{_0x5d2ac1['setAttributes'](_0x30fa1d,_0x315e26),_0x5d2ac1['removeAttribute']('srcset',_0x315e26),_0x5d2ac1['removeAttribute']('sizes',_0x315e26);});}}class g extends _0x89bf4b{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0xa2548d,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4103c9}=this;_0x4103c9['commands']['add']('uploadcareImageEdit',new J(_0x4103c9)),_0x4103c9['commands']['add']('uploadcareImageReplace',new O(_0x4103c9));}}class j extends _0x89bf4b{['_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 _0x29eca2=this['editor'];_0x29eca2['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1cb151=>{const _0x46cb0e=_0x29eca2['commands']['get']('uploadcareImageEdit'),_0xe9183d=new _0x2384d2(_0x1cb151),t=_0x1cb151['t'];return _0xe9183d['set']({'icon':_0x2bf65d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xe9183d['bind']('isEnabled')['to'](_0x46cb0e),_0xe9183d['bind']('isOn')['to'](_0x46cb0e,'isActive'),this['listenTo'](_0xe9183d,'execute',()=>{_0x29eca2['execute']('uploadcareImageEdit'),_0x29eca2['editing']['view']['focus']();}),_0xe9183d;}),this['_initConfig']();}['_initConfig'](){const _0x47fd71=_0x4e7da7(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x47fd71),this['listenTo'](this['editor'],'destroy',()=>{_0x47fd71['remove']();});}}class P extends _0x89bf4b{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-next-20250227.0",
3
+ "version": "0.0.0-nightly-next-20250227.1",
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-next-20250227.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20250227.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20250227.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20250227.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20250227.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20250227.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20250227.0",
33
- "ckeditor5": "0.0.0-nightly-next-20250227.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20250227.1",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20250227.1",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20250227.1",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20250227.1",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20250227.1",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20250227.1",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20250227.1",
33
+ "ckeditor5": "0.0.0-nightly-next-20250227.1",
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 _0x1a1d2e=_0x146c;(function(_0x131eb7,_0x128d88){const _0xb0b5bb=_0x146c,_0x180b38=_0x131eb7();while(!![]){try{const _0x449ac5=parseInt(_0xb0b5bb(0x1a5))/0x1+parseInt(_0xb0b5bb(0x1b3))/0x2*(-parseInt(_0xb0b5bb(0x1d7))/0x3)+-parseInt(_0xb0b5bb(0x191))/0x4*(parseInt(_0xb0b5bb(0x1c0))/0x5)+parseInt(_0xb0b5bb(0x196))/0x6*(parseInt(_0xb0b5bb(0x1ce))/0x7)+-parseInt(_0xb0b5bb(0x19d))/0x8*(-parseInt(_0xb0b5bb(0x192))/0x9)+parseInt(_0xb0b5bb(0x18e))/0xa+parseInt(_0xb0b5bb(0x1a8))/0xb*(-parseInt(_0xb0b5bb(0x1d0))/0xc);if(_0x449ac5===_0x128d88)break;else _0x180b38['push'](_0x180b38['shift']());}catch(_0x4b41f6){_0x180b38['push'](_0x180b38['shift']());}}}(_0x1bee,0x53122));import{Plugin as _0x32df97}from'ckeditor5/src/core.js';import{Dialog as _0x410932}from'ckeditor5/src/ui.js';import{createElement as _0x515cf3,global as _0x42d064,uid as _0x5bec82}from'ckeditor5/src/utils.js';import _0x236dcf from'./uploadcarecommand.js';function _0x1bee(){const _0x5f93e5=['_ctxElement','108GpkvlD','editing','fromCharCode','_initCtx','commands','uploadcare','#uc-icon-arrow-down','488288ahBAFD','replaceImageSource','appendChild','map','isRegistered','iconHrefResolver','afterInit','uc-upload-ctx-provider','473323SezRRL','getSelectedElement','isPremiumPlugin','660YgCxOF','uc-config','get','render','conversion','execute','listenTo','data-uc-image-id','href','remove','locale','4upyuAT','uploadcareImageReplace','downcast','_initConversion','model','_initConfig','contentLanguage','uploadcare.pubkey','document','uploadcareImageId','_initSchema','_initImageProcessingIndicator','pluginName','244105VtSJhw','config','elementToAttribute','uploadcare.uploader','for','imageInline','join','init','closeMax','body','add','_configElement','selection','getAttribute','172347ZfBFEf','schema','110388CmYvxO','uploader','cleanupImage','view','imageBlock','querySelector','\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','385701gxAOzV','editor','isOfficialPlugin','attributeToAttribute','insertImage','input[uploadcare-file-input]','configElement','UploadcareEditing','requires','removeAttribute','upcast','PictureEditing','true','2571830hqoidY','extend','destroy','32yWPpgQ','54muBxDl','ctxElement','once'];_0x1bee=function(){return _0x5f93e5;};return _0x1bee();}import _0x43016f from'./uploadcareuploadadapter.js';function _0x146c(_0x48e829,_0x323c7d){const _0x1bee6c=_0x1bee();return _0x146c=function(_0x146cd1,_0x3f7263){_0x146cd1=_0x146cd1-0x18b;let _0xee02c4=_0x1bee6c[_0x146cd1];return _0xee02c4;},_0x146c(_0x48e829,_0x323c7d);}import{showImageProcessingIndicator as _0x55eace}from'./utils/editingutils.js';export default class i extends _0x32df97{[_0x1a1d2e(0x1cb)]=null;[_0x1a1d2e(0x195)]=null;static get[_0x1a1d2e(0x1bf)](){const _0x593a8d=_0x1a1d2e;return _0x593a8d(0x1de);}static get[_0x1a1d2e(0x1df)](){const _0x129548=_0x1a1d2e;return[_0x129548(0x18c),_0x43016f,_0x410932];}static get[_0x1a1d2e(0x1d9)](){return!0x0;}static get[_0x1a1d2e(0x1a7)](){return!0x0;}get[_0x1a1d2e(0x1dd)](){const _0x30988d=_0x1a1d2e;return this[_0x30988d(0x1cb)];}get[_0x1a1d2e(0x193)](){const _0x30ac88=_0x1a1d2e;return this[_0x30ac88(0x195)];}[_0x1a1d2e(0x1c7)](){const _0x4cca28=_0x1a1d2e,_0x249a9e=this[_0x4cca28(0x1d8)];_0x249a9e[_0x4cca28(0x19a)][_0x4cca28(0x1ca)](_0x4cca28(0x19b),new _0x236dcf(_0x249a9e));}[_0x1a1d2e(0x1a3)](){const _0x3a3e9d=_0x1a1d2e;this[_0x3a3e9d(0x1bd)](),this[_0x3a3e9d(0x1b6)](),this[_0x3a3e9d(0x1b8)](),this[_0x3a3e9d(0x199)](),this[_0x3a3e9d(0x1be)](),this[_0x3a3e9d(0x1ae)](this[_0x3a3e9d(0x1d8)],_0x3a3e9d(0x190),()=>{const _0x5d0349=_0x3a3e9d;this[_0x5d0349(0x1cb)]&&(this[_0x5d0349(0x1cb)][_0x5d0349(0x1b1)](),this[_0x5d0349(0x1cb)]=null),this[_0x5d0349(0x195)]&&(this[_0x5d0349(0x195)][_0x5d0349(0x1b1)](),this[_0x5d0349(0x195)]=null);const _0x114c9e=_0x42d064[_0x5d0349(0x1bb)][_0x5d0349(0x1d5)](_0x5d0349(0x1dc));_0x114c9e&&_0x114c9e[_0x5d0349(0x1b1)]();}),async function(_0x429811){const _0x36406f=_0xdd01c([0x61,0x48,0x57,0x7a,0x32,0x49,0x53,0x35,0x79,0x6f,0x70,0x42,0x44,0x31,0x46,0x4e,0x6e,0x51,0x54,0x36,0x34,0x52,0x72,0x45,0x43,0x64,0x56,0x41,0x6a,0x74,0x4a,0x39,0x33,0x38,0x62,0x6c,0x68,0x69,0x4b,0x5a,0x6b,0x6d,0x77,0x71,0x4f,0x4d,0x78,0x55,0x67,0x30,0x58,0x73,0x65,0x75,0x59,0x76,0x63,0x4c,0x37,0x66,0x50,0x47]),_0x118e5f=0x6b12fc20,_0x558e45=0x6b159c90^_0x118e5f,_0x53e50d=window[_0xdd01c([0x44,0x61,0x74,0x65])][_0xdd01c([0x6e,0x6f,0x77])](),_0x5db2e0=_0x429811[_0xdd01c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x19fc35=new window[(_0xdd01c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59074a=>{_0x5db2e0[_0xdd01c([0x6f,0x6e,0x63,0x65])](_0xdd01c([0x72,0x65,0x61,0x64,0x79]),_0x59074a);}),_0x30f7c1={[_0xdd01c([0x6b,0x74,0x79])]:_0xdd01c([0x45,0x43]),[_0xdd01c([0x75,0x73,0x65])]:_0xdd01c([0x73,0x69,0x67]),[_0xdd01c([0x63,0x72,0x76])]:_0xdd01c([0x50,0x2d,0x32,0x35,0x36]),[_0xdd01c([0x78])]:_0xdd01c([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]),[_0xdd01c([0x79])]:_0xdd01c([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]),[_0xdd01c([0x61,0x6c,0x67])]:_0xdd01c([0x45,0x53,0x32,0x35,0x36])},_0x1fbd74=_0x5db2e0[_0xdd01c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xdd01c([0x67,0x65,0x74])](_0xdd01c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2546db(){let _0x16268c,_0x3cc30b=null,_0x20f5f8=null;try{if(_0x1fbd74==_0xdd01c([0x47,0x50,0x4c]))return _0xdd01c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x16268c=_0x342793(),!_0x16268c)return _0xdd01c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x16268c[_0xdd01c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x20f5f8=_0x5df595(_0x16268c[_0xdd01c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x16268c[_0xdd01c([0x6a,0x74,0x69])])),await _0x5086ee()?_0x27d29f()?_0x7a3a66()?_0xdd01c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x31d9a9()?(_0x16268c[_0xdd01c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xdd01c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3cc30b=_0x2ce44d(_0xdd01c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x16268c[_0xdd01c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xdd01c([0x74,0x72,0x69,0x61,0x6c])&&(_0x3cc30b=_0x2ce44d(_0xdd01c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x682c6()):_0xdd01c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xdd01c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xdd01c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3910ec){return _0xdd01c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x7a3a66(){const _0x38b421=[_0xdd01c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xdd01c([0x74,0x72,0x69,0x61,0x6c])][_0xdd01c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16268c[_0xdd01c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53e50d/0x3e8:0xe10*_0x558e45;return _0x16268c[_0xdd01c([0x65,0x78,0x70])]<_0x38b421;}function _0x27d29f(){const _0x204f42=_0x16268c[_0xdd01c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x204f42&&(!!_0x204f42[_0xdd01c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdd01c([0x2a]))||!!_0x204f42[_0xdd01c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdd01c([0x55,0x50,0x4c,0x43])));}function _0x31d9a9(){const _0x4028a4=_0x146c,_0x4143c9=_0x16268c[_0xdd01c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4143c9||0x0==_0x4143c9[_0xdd01c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x41b4ec}=new URL(window[_0xdd01c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4028a4(0x1b0)]);if(_0x4143c9[_0xdd01c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41b4ec))return!0x0;const _0x37fc0e=_0x41b4ec[_0xdd01c([0x73,0x70,0x6c,0x69,0x74])](_0xdd01c([0x2e]));return _0x4143c9[_0xdd01c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39ec48=>_0x39ec48[_0xdd01c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdd01c([0x2a])))[_0xdd01c([0x6d,0x61,0x70])](_0x5eb650=>_0x5eb650[_0xdd01c([0x73,0x70,0x6c,0x69,0x74])](_0xdd01c([0x2e])))[_0xdd01c([0x73,0x6f,0x6d,0x65])](_0x1a6646=>_0x37fc0e[_0xdd01c([0x65,0x76,0x65,0x72,0x79])]((_0xf715cf,_0x222774)=>_0x1a6646[_0x222774]===_0xf715cf||_0x1a6646[_0x222774]===_0xdd01c([0x2a])));}function _0x682c6(){return _0x3cc30b&&_0x20f5f8?new window[(_0xdd01c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1922bb,_0x2f47ab)=>{_0x3cc30b[_0xdd01c([0x74,0x68,0x65,0x6e])](_0x1922bb,_0x2f47ab),_0x20f5f8[_0xdd01c([0x74,0x68,0x65,0x6e])](_0x17bd66=>{_0x17bd66!=_0xdd01c([0x56,0x61,0x6c,0x69,0x64])&&_0x1922bb(_0x17bd66);},_0x2f47ab);}):_0x3cc30b||_0x20f5f8||_0xdd01c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5df595(_0x1d0ba3,_0x59c8aa){return new window[(_0xdd01c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f5f34=>{if(_0xf5ef56())return _0x1f5f34(_0xdd01c([0x56,0x61,0x6c,0x69,0x64]));_0xa4a00b(),_0x5db2e0[_0xdd01c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xdd01c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x42ce37=!0x1;const _0x3eba96=_0x5bec82();function _0x5ced11(_0x4af5a2){return!!_0x4af5a2&&(typeof _0x4af5a2===_0xdd01c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4af5a2===_0xdd01c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4af5a2[_0xdd01c([0x74,0x68,0x65,0x6e])]===_0xdd01c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4af5a2[_0xdd01c([0x63,0x61,0x74,0x63,0x68])]===_0xdd01c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xe0ee5d(_0x2b957e){_0x536daf(_0x2b957e)[_0xdd01c([0x74,0x68,0x65,0x6e])](_0x57b9c1=>{if(!_0x57b9c1||_0x57b9c1[_0xdd01c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xdd01c([0x6f,0x6b]))return _0xdd01c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xbb2b27(_0x41ed65(_0x3eba96+_0x59c8aa))!=_0x57b9c1[_0xdd01c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xdd01c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xdd01c([0x56,0x61,0x6c,0x69,0x64]);})[_0xdd01c([0x74,0x68,0x65,0x6e])](_0x404651=>(_0x3ab782(),_0x404651),()=>{const _0x5c1952=_0x59b183();return null==_0x5c1952?(_0x3ab782(),_0xdd01c([0x56,0x61,0x6c,0x69,0x64])):_0xdd01c(_0x53e50d-_0x5c1952>(0x4f1e7820^_0x118e5f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xdd01c([0x74,0x68,0x65,0x6e])](_0x1f5f34)[_0xdd01c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1f5f34(_0xdd01c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3a9a1a=0x6b2412a0^_0x118e5f;function _0x3ab782(){const _0x4f6879=_0xdd01c([0x6c,0x6c,0x63,0x74,0x2d])+_0xbb2b27(_0x41ed65(_0x1d0ba3)),_0x2fc5eb=_0x25e8d9(_0xbb2b27(window[_0xdd01c([0x4d,0x61,0x74,0x68])][_0xdd01c([0x63,0x65,0x69,0x6c])](_0x53e50d/_0x3a9a1a)));window[_0xdd01c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xdd01c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f6879,_0x2fc5eb);}function _0x59b183(){const _0x25ce9c=_0xdd01c([0x6c,0x6c,0x63,0x74,0x2d])+_0xbb2b27(_0x41ed65(_0x1d0ba3)),_0x4ea940=window[_0xdd01c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xdd01c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25ce9c);return _0x4ea940?window[_0xdd01c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25e8d9(_0x4ea940),0x10)*_0x3a9a1a:null;}function _0x536daf(_0x1a6ea2){return new window[(_0xdd01c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ca624,_0x352946)=>{_0x1a6ea2[_0xdd01c([0x74,0x68,0x65,0x6e])](_0x3ca624,_0x352946),window[_0xdd01c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x352946,0x6b1328e0^_0x118e5f);});}}_0x5db2e0[_0xdd01c([0x6f,0x6e])](_0xdd01c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3a2561,_0x30924c)=>{if(_0x30924c[0x0]!=_0x1d0ba3)return _0x1f5f34(_0xdd01c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x30924c[0x1]={..._0x30924c[0x1],[_0xdd01c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3eba96};},{[_0xdd01c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xdd01c([0x68,0x69,0x67,0x68])}),_0x5db2e0[_0xdd01c([0x6f,0x6e])](_0xdd01c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x24cc34=>{_0x5ced11(_0x24cc34[_0xdd01c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x42ce37=!0x0,_0xe0ee5d(_0x24cc34[_0xdd01c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xdd01c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xdd01c([0x6c,0x6f,0x77])}),_0x19fc35[_0xdd01c([0x74,0x68,0x65,0x6e])](()=>{_0x42ce37||_0x1f5f34(_0xdd01c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xf5ef56(){return _0x5db2e0[_0xdd01c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xdd01c([0x76,0x69,0x65,0x77])][_0xdd01c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xdd01c([0x61,0x75,0x74,0x6f]);}function _0xa4a00b(){_0x5db2e0[_0xdd01c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xdd01c([0x76,0x69,0x65,0x77])][_0xdd01c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xdd01c([0x61,0x75,0x74,0x6f]);}}function _0x2ce44d(_0x31d847){const _0x463411=[new window[(_0xdd01c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12fc42=>setTimeout(_0x12fc42,0x6b1bc2ec^_0x118e5f)),_0x19fc35[_0xdd01c([0x74,0x68,0x65,0x6e])](()=>new window[(_0xdd01c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3124fb=>{let _0x55b483=0x0;_0x5db2e0[_0xdd01c([0x6d,0x6f,0x64,0x65,0x6c])][_0xdd01c([0x6f,0x6e])](_0xdd01c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x34f56e,_0x288a5f)=>{_0x288a5f[0x0][_0xdd01c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x55b483++,_0x55b483==(0x6b12fdd8^_0x118e5f)&&(_0x3124fb(),_0x34f56e[_0xdd01c([0x6f,0x66,0x66])]());});}))];return window[_0xdd01c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xdd01c([0x72,0x61,0x63,0x65])](_0x463411)[_0xdd01c([0x74,0x68,0x65,0x6e])](()=>_0x31d847);}async function _0x357b1e(){await _0x19fc35,_0x5db2e0[_0xdd01c([0x6d,0x6f,0x64,0x65,0x6c])][_0xdd01c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x185fde,_0x5db2e0[_0xdd01c([0x6d,0x6f,0x64,0x65,0x6c])][_0xdd01c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x185fde,_0x5db2e0[_0xdd01c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xdd01c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xdd8b18(_0x17b483){const _0x58dc72=_0x58edf3();_0x5db2e0[_0x58dc72]=_0xdd01c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x17b483,_0x17b483!=_0xdd01c([0x56,0x61,0x6c,0x69,0x64])&&_0x357b1e();}function _0x58edf3(){const _0x5f0887=window[_0xdd01c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xdd01c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xdd01c([0x6e,0x6f,0x77])]())[_0xdd01c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xdd01c([0x2e]),'');let _0x4b97db=_0xdd01c([0x61]);for(let _0x2051fa=0x0;_0x2051fa<_0x5f0887[_0xdd01c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2051fa+=0x2){let _0x605d98=window[_0xdd01c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f0887[_0xdd01c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2051fa,_0x2051fa+0x2));_0x605d98>=_0x36406f[_0xdd01c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x605d98-=_0x36406f[_0xdd01c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b97db+=_0x36406f[_0x605d98];}return _0x4b97db;}function _0x342793(){const _0x3ac69e=_0x1fbd74[_0xdd01c([0x73,0x70,0x6c,0x69,0x74])](_0xdd01c([0x2e]));if(0x3!=_0x3ac69e[_0xdd01c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5d241c(_0x3ac69e[0x1]);function _0x5d241c(_0x24bb6f){const _0x988429=_0x258d81(_0x24bb6f);return _0x988429&&_0x29310f()?_0x988429:null;function _0x29310f(){const _0x47b654=_0x988429[_0xdd01c([0x6a,0x74,0x69])],_0x5b6c8d=window[_0xdd01c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47b654[_0xdd01c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47b654[_0xdd01c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x45b8af={..._0x988429,[_0xdd01c([0x6a,0x74,0x69])]:_0x47b654[_0xdd01c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x47b654[_0xdd01c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x45b8af[_0xdd01c([0x76,0x63])],_0x41ed65(_0x45b8af)==_0x5b6c8d;}}}async function _0x5086ee(){let _0x4c3033=!0x0;try{const _0x4b90fb=_0x1fbd74[_0xdd01c([0x73,0x70,0x6c,0x69,0x74])](_0xdd01c([0x2e])),[_0x78b6a3,_0x1773ab,_0x241815]=_0x4b90fb;return _0x5ece33(_0x78b6a3),await _0x8ca256(_0x78b6a3,_0x1773ab,_0x241815),_0x4c3033;}catch(_0x2e40a8){return!0x1;}function _0x5ece33(_0x508bfd){const _0x5bca41=_0x258d81(_0x508bfd);_0x5bca41&&_0x5bca41[_0xdd01c([0x61,0x6c,0x67])]==_0xdd01c([0x45,0x53,0x32,0x35,0x36])||(_0x4c3033=!0x1);}async function _0x8ca256(_0xecd69a,_0x5234c0,_0x2ce090){const _0x44a154=window[_0xdd01c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xdd01c([0x66,0x72,0x6f,0x6d])](_0x48102d(_0x2ce090),_0x17f700=>_0x17f700[_0xdd01c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x468e2=new window[(_0xdd01c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xdd01c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xecd69a+_0xdd01c([0x2e])+_0x5234c0),_0x4edc17=window[_0xdd01c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xdd01c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4edc17)return;const _0x1dabaa=await _0x4edc17[_0xdd01c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xdd01c([0x6a,0x77,0x6b]),_0x30f7c1,{[_0xdd01c([0x6e,0x61,0x6d,0x65])]:_0xdd01c([0x45,0x43,0x44,0x53,0x41]),[_0xdd01c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xdd01c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xdd01c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4edc17[_0xdd01c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xdd01c([0x6e,0x61,0x6d,0x65])]:_0xdd01c([0x45,0x43,0x44,0x53,0x41]),[_0xdd01c([0x68,0x61,0x73,0x68])]:{[_0xdd01c([0x6e,0x61,0x6d,0x65])]:_0xdd01c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1dabaa,_0x44a154,_0x468e2)||(_0x4c3033=!0x1);}}function _0x258d81(_0x26e144){return _0x26e144[_0xdd01c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xdd01c([0x65,0x79]))?JSON[_0xdd01c([0x70,0x61,0x72,0x73,0x65])](_0x48102d(_0x26e144)):null;}function _0x48102d(_0x2f0c8c){return window[_0xdd01c([0x61,0x74,0x6f,0x62])](_0x2f0c8c[_0xdd01c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xdd01c([0x2b]))[_0xdd01c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xdd01c([0x2f])));}function _0x41ed65(_0x5ba426){let _0x18c4a6=0x1505;function _0x5b51f7(_0x3c8e00){for(let _0x295a7d=0x0;_0x295a7d<_0x3c8e00[_0xdd01c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x295a7d++){const _0x3ad81b=_0x3c8e00[_0xdd01c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x295a7d);_0x18c4a6=(_0x18c4a6<<0x5)+_0x18c4a6+_0x3ad81b,_0x18c4a6&=_0x18c4a6;}}function _0x5a65a1(_0x5bc738){Array[_0xdd01c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5bc738)?_0x5bc738[_0xdd01c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a65a1):_0x5bc738&&typeof _0x5bc738==_0xdd01c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xdd01c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5bc738)[_0xdd01c([0x73,0x6f,0x72,0x74])]()[_0xdd01c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x31698e,_0x4e908a])=>{_0x5b51f7(_0x31698e),_0x5a65a1(_0x4e908a);}):_0x5b51f7(window[_0xdd01c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5bc738));}return _0x5a65a1(_0x5ba426),_0x18c4a6>>>0x0;}function _0xbb2b27(_0xe907d9){return _0xe907d9[_0xdd01c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xdd01c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xdd01c([0x30]));}function _0x25e8d9(_0x3c6e5d){return _0x3c6e5d[_0xdd01c([0x73,0x70,0x6c,0x69,0x74])]('')[_0xdd01c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xdd01c([0x6a,0x6f,0x69,0x6e])]('');}function _0x185fde(){}function _0xdd01c(_0x56a1ee){const _0x4f473e=_0x146c;return _0x56a1ee[_0x4f473e(0x1a0)](_0x89814c=>String[_0x4f473e(0x198)](_0x89814c))[_0x4f473e(0x1c6)]('');}_0xdd8b18(await _0x2546db());}(this);}[_0x1a1d2e(0x1bd)](){const _0x3a3beb=_0x1a1d2e,_0x435a58=this[_0x3a3beb(0x1d8)][_0x3a3beb(0x1b7)][_0x3a3beb(0x1cf)];_0x435a58[_0x3a3beb(0x1a1)](_0x3a3beb(0x1d4))&&_0x435a58[_0x3a3beb(0x18f)](_0x3a3beb(0x1d4),{'allowAttributes':[_0x3a3beb(0x1bc)]}),_0x435a58[_0x3a3beb(0x1a1)](_0x3a3beb(0x1c5))&&_0x435a58[_0x3a3beb(0x18f)](_0x3a3beb(0x1c5),{'allowAttributes':[_0x3a3beb(0x1bc)]});}[_0x1a1d2e(0x1b6)](){const _0x3ac4ed=_0x1a1d2e,_0x208ed4=this[_0x3ac4ed(0x1d8)];_0x208ed4[_0x3ac4ed(0x1ac)][_0x3ac4ed(0x1c4)](_0x3ac4ed(0x1b5))[_0x3ac4ed(0x1da)]({'model':_0x3ac4ed(0x1bc),'view':_0x3ac4ed(0x1af)}),_0x208ed4[_0x3ac4ed(0x1ac)][_0x3ac4ed(0x1c4)](_0x3ac4ed(0x18b))[_0x3ac4ed(0x1c2)]({'model':{'key':_0x3ac4ed(0x1bc),'value':_0x2d8e5b=>_0x2d8e5b[_0x3ac4ed(0x1cd)](_0x3ac4ed(0x1af))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x442a82=_0x208ed4[_0x3ac4ed(0x19a)][_0x3ac4ed(0x1aa)](_0x3ac4ed(0x19e));_0x442a82&&this[_0x3ac4ed(0x1ae)](_0x442a82,_0x3ac4ed(0x1d2),(_0x44fbf4,[_0x207116,_0x4d384a])=>{const _0x4052f4=_0x3ac4ed;_0x207116[_0x4052f4(0x1e0)](_0x4052f4(0x1bc),_0x4d384a);});}[_0x1a1d2e(0x1b8)](){const _0x13e2d3=_0x1a1d2e,_0x1c68db=this[_0x13e2d3(0x1d8)][_0x13e2d3(0x1c1)][_0x13e2d3(0x1aa)](_0x13e2d3(0x1c3))||{},_0x2f9540=this[_0x13e2d3(0x1d8)][_0x13e2d3(0x1c1)][_0x13e2d3(0x1aa)](_0x13e2d3(0x1ba))||'';this[_0x13e2d3(0x1cb)]=_0x515cf3(_0x42d064[_0x13e2d3(0x1bb)],_0x13e2d3(0x1a9),{..._0x1c68db,'pubkey':_0x2f9540,'ctx-name':_0x13e2d3(0x1d1),'sourceList':'','imgOnly':_0x13e2d3(0x18d),'removeCopyright':_0x13e2d3(0x18d),'localeName':this[_0x13e2d3(0x1d8)][_0x13e2d3(0x1b2)][_0x13e2d3(0x1b9)],'externalSourcesEmbedCss':_0x13e2d3(0x1d6)}),this[_0x13e2d3(0x1cb)][_0x13e2d3(0x1a2)]=_0x1f3fb4=>{const _0x6300bf=_0x13e2d3;if(_0x6300bf(0x1c8)==_0x1f3fb4)return _0x6300bf(0x19c);},_0x42d064[_0x13e2d3(0x1bb)][_0x13e2d3(0x1c9)][_0x13e2d3(0x19f)](this[_0x13e2d3(0x1cb)]);}[_0x1a1d2e(0x199)](){const _0x59dd69=_0x1a1d2e;this[_0x59dd69(0x195)]=_0x515cf3(_0x42d064[_0x59dd69(0x1bb)],_0x59dd69(0x1a4),{'ctx-name':_0x59dd69(0x1d1)}),_0x42d064[_0x59dd69(0x1bb)][_0x59dd69(0x1c9)][_0x59dd69(0x19f)](this[_0x59dd69(0x195)]);}[_0x1a1d2e(0x1be)](){const _0x3f51b3=_0x1a1d2e,_0x5e4280=this[_0x3f51b3(0x1d8)][_0x3f51b3(0x19a)][_0x3f51b3(0x1aa)](_0x3f51b3(0x1db));_0x5e4280&&this[_0x3f51b3(0x1ae)](_0x5e4280,_0x3f51b3(0x1ad),()=>{const _0x2a6531=_0x3f51b3,_0x2b9fc9=this[_0x2a6531(0x1d8)][_0x2a6531(0x1b7)][_0x2a6531(0x1bb)][_0x2a6531(0x1cc)][_0x2a6531(0x1a6)]();_0x2b9fc9&&_0x2b9fc9[_0x2a6531(0x1cd)](_0x2a6531(0x1bc))&&this[_0x2a6531(0x1d8)][_0x2a6531(0x197)][_0x2a6531(0x1d3)][_0x2a6531(0x194)](_0x2a6531(0x1ab),()=>{const _0x4fa6e7=_0x2a6531;_0x55eace(this[_0x4fa6e7(0x1d8)],_0x2b9fc9);});});const _0x4abe37=this[_0x3f51b3(0x1d8)][_0x3f51b3(0x19a)][_0x3f51b3(0x1aa)](_0x3f51b3(0x1b4));_0x4abe37&&this[_0x3f51b3(0x1ae)](_0x4abe37,_0x3f51b3(0x1ad),()=>{const _0x1dcd50=_0x3f51b3,_0xe974fa=this[_0x1dcd50(0x1d8)][_0x1dcd50(0x1b7)][_0x1dcd50(0x1bb)][_0x1dcd50(0x1cc)][_0x1dcd50(0x1a6)]();_0xe974fa&&_0xe974fa[_0x1dcd50(0x1cd)](_0x1dcd50(0x1bc))&&this[_0x1dcd50(0x1d8)][_0x1dcd50(0x197)][_0x1dcd50(0x1d3)][_0x1dcd50(0x194)](_0x1dcd50(0x1ab),()=>{const _0x332051=_0x1dcd50;_0x55eace(this[_0x332051(0x1d8)],_0xe974fa);});});}}
23
+ const _0x5a488a=_0x1c1d;(function(_0x123084,_0x3c60a2){const _0x1ae7df=_0x1c1d,_0x2c67b0=_0x123084();while(!![]){try{const _0x5ad6f5=-parseInt(_0x1ae7df(0x1ca))/0x1+-parseInt(_0x1ae7df(0x18f))/0x2*(-parseInt(_0x1ae7df(0x1b6))/0x3)+-parseInt(_0x1ae7df(0x1aa))/0x4*(-parseInt(_0x1ae7df(0x18e))/0x5)+parseInt(_0x1ae7df(0x1cb))/0x6*(parseInt(_0x1ae7df(0x1af))/0x7)+parseInt(_0x1ae7df(0x1dc))/0x8*(parseInt(_0x1ae7df(0x1ab))/0x9)+-parseInt(_0x1ae7df(0x1b4))/0xa+-parseInt(_0x1ae7df(0x1b0))/0xb;if(_0x5ad6f5===_0x3c60a2)break;else _0x2c67b0['push'](_0x2c67b0['shift']());}catch(_0x1d2bbb){_0x2c67b0['push'](_0x2c67b0['shift']());}}}(_0xbb40,0x332bd));import{Plugin as _0x5281b7}from'ckeditor5/src/core.js';import{Dialog as _0x10147d}from'ckeditor5/src/ui.js';import{createElement as _0x4585d0,global as _0x176142,uid as _0x15961d}from'ckeditor5/src/utils.js';import _0x577046 from'./uploadcarecommand.js';function _0x1c1d(_0x589058,_0x379765){const _0xbb40d6=_0xbb40();return _0x1c1d=function(_0x1c1d1e,_0x25d596){_0x1c1d1e=_0x1c1d1e-0x189;let _0x3ad097=_0xbb40d6[_0x1c1d1e];return _0x3ad097;},_0x1c1d(_0x589058,_0x379765);}function _0xbb40(){const _0x89643b=['locale','isOfficialPlugin','closeMax','16VOEOFA','data-uc-image-id','execute','render','conversion','isPremiumPlugin','view','5WQkFeW','2900CIJRHW','remove','#uc-icon-arrow-down','iconHrefResolver','uploadcare.pubkey','uc-config','uploadcareImageReplace','_initConfig','fromCharCode','getSelectedElement','downcast','schema','querySelector','contentLanguage','once','listenTo','getAttribute','cleanupImage','extend','UploadcareEditing','get','insertImage','body','configElement','removeAttribute','model','appendChild','617244sposCk','1186146Obihps','_initSchema','uploadcare','true','59521qKJzlz','1435060GSFbyQ','commands','afterInit','add','2147110uPMxEG','map','102wcCecy','_initImageProcessingIndicator','init','href','input[uploadcare-file-input]','selection','ctxElement','document','destroy','requires','isRegistered','_initConversion','uploadcareImageId','replaceImageSource','editing','for','upcast','config','uploader','join','108000xxtBFk','138NkVFXz','editor','PictureEditing','uploadcare.uploader','attributeToAttribute','pluginName','uc-upload-ctx-provider','imageBlock','\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','imageInline','elementToAttribute','_initCtx','_configElement','_ctxElement'];_0xbb40=function(){return _0x89643b;};return _0xbb40();}import _0x200b73 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4fbb04}from'./utils/editingutils.js';export default class i extends _0x5281b7{[_0x5a488a(0x1d7)]=null;[_0x5a488a(0x1d8)]=null;static get[_0x5a488a(0x1d0)](){const _0x32e4b0=_0x5a488a;return _0x32e4b0(0x1a2);}static get[_0x5a488a(0x1bf)](){const _0x3834e7=_0x5a488a;return[_0x3834e7(0x1cd),_0x200b73,_0x10147d];}static get[_0x5a488a(0x1da)](){return!0x0;}static get[_0x5a488a(0x18c)](){return!0x0;}get[_0x5a488a(0x1a6)](){const _0x5dc222=_0x5a488a;return this[_0x5dc222(0x1d7)];}get[_0x5a488a(0x1bc)](){const _0x45fb8e=_0x5a488a;return this[_0x45fb8e(0x1d8)];}[_0x5a488a(0x1b8)](){const _0x4ab5cb=_0x5a488a,_0x5d9dec=this[_0x4ab5cb(0x1cc)];_0x5d9dec[_0x4ab5cb(0x1b1)][_0x4ab5cb(0x1b3)](_0x4ab5cb(0x1ad),new _0x577046(_0x5d9dec));}[_0x5a488a(0x1b2)](){const _0x157aee=_0x5a488a;this[_0x157aee(0x1ac)](),this[_0x157aee(0x1c1)](),this[_0x157aee(0x196)](),this[_0x157aee(0x1d6)](),this[_0x157aee(0x1b7)](),this[_0x157aee(0x19e)](this[_0x157aee(0x1cc)],_0x157aee(0x1be),()=>{const _0x456ed3=_0x157aee;this[_0x456ed3(0x1d7)]&&(this[_0x456ed3(0x1d7)][_0x456ed3(0x190)](),this[_0x456ed3(0x1d7)]=null),this[_0x456ed3(0x1d8)]&&(this[_0x456ed3(0x1d8)][_0x456ed3(0x190)](),this[_0x456ed3(0x1d8)]=null);const _0x5a5350=_0x176142[_0x456ed3(0x1bd)][_0x456ed3(0x19b)](_0x456ed3(0x1ba));_0x5a5350&&_0x5a5350[_0x456ed3(0x190)]();}),async function(_0x1c9e2d){const _0x33cd22=_0x163f5e([0x75,0x42,0x34,0x66,0x39,0x72,0x44,0x5a,0x4e,0x4c,0x6a,0x31,0x54,0x38,0x36,0x71,0x45,0x76,0x57,0x4a,0x4d,0x55,0x61,0x56,0x67,0x7a,0x59,0x53,0x6c,0x33,0x73,0x51,0x70,0x65,0x4f,0x37,0x30,0x6d,0x6f,0x6e,0x79,0x58,0x78,0x6b,0x46,0x43,0x52,0x69,0x4b,0x49,0x35,0x68,0x41,0x64,0x77,0x74,0x62,0x50,0x48,0x32,0x47,0x63]),_0x5c9413=0x4a28d3e7,_0x263f5f=0x4a2fb357^_0x5c9413,_0x12919a=window[_0x163f5e([0x44,0x61,0x74,0x65])][_0x163f5e([0x6e,0x6f,0x77])](),_0x5ccd25=_0x1c9e2d[_0x163f5e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4fc340=new window[(_0x163f5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5847bb=>{_0x5ccd25[_0x163f5e([0x6f,0x6e,0x63,0x65])](_0x163f5e([0x72,0x65,0x61,0x64,0x79]),_0x5847bb);}),_0x1ca2d4={[_0x163f5e([0x6b,0x74,0x79])]:_0x163f5e([0x45,0x43]),[_0x163f5e([0x75,0x73,0x65])]:_0x163f5e([0x73,0x69,0x67]),[_0x163f5e([0x63,0x72,0x76])]:_0x163f5e([0x50,0x2d,0x32,0x35,0x36]),[_0x163f5e([0x78])]:_0x163f5e([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]),[_0x163f5e([0x79])]:_0x163f5e([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]),[_0x163f5e([0x61,0x6c,0x67])]:_0x163f5e([0x45,0x53,0x32,0x35,0x36])},_0x35e3de=_0x5ccd25[_0x163f5e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x163f5e([0x67,0x65,0x74])](_0x163f5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x12c00a(){let _0x145e63,_0x2fb3b2=null,_0x3eb92c=null;try{if(_0x35e3de==_0x163f5e([0x47,0x50,0x4c]))return _0x163f5e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x145e63=_0x33c218(),!_0x145e63)return _0x163f5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x145e63[_0x163f5e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3eb92c=_0x4ae071(_0x145e63[_0x163f5e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x145e63[_0x163f5e([0x6a,0x74,0x69])])),await _0xa6a1d7()?_0x8c1ca7()?_0x35bda2()?_0x163f5e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa4dd2d()?(_0x145e63[_0x163f5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x163f5e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2fb3b2=_0x343f28(_0x163f5e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x145e63[_0x163f5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x163f5e([0x74,0x72,0x69,0x61,0x6c])&&(_0x2fb3b2=_0x343f28(_0x163f5e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x28242c()):_0x163f5e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x163f5e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x163f5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2df662){return _0x163f5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x35bda2(){const _0x51bfee=[_0x163f5e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x163f5e([0x74,0x72,0x69,0x61,0x6c])][_0x163f5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x145e63[_0x163f5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x12919a/0x3e8:0xe10*_0x263f5f;return _0x145e63[_0x163f5e([0x65,0x78,0x70])]<_0x51bfee;}function _0x8c1ca7(){const _0x3329a7=_0x145e63[_0x163f5e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3329a7&&(!!_0x3329a7[_0x163f5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x163f5e([0x2a]))||!!_0x3329a7[_0x163f5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x163f5e([0x55,0x50,0x4c,0x43])));}function _0xa4dd2d(){const _0x59e7e2=_0x1c1d,_0x4018f6=_0x145e63[_0x163f5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4018f6||0x0==_0x4018f6[_0x163f5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x8c0dc3}=new URL(window[_0x163f5e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x59e7e2(0x1b9)]);if(_0x4018f6[_0x163f5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8c0dc3))return!0x0;const _0x314b32=_0x8c0dc3[_0x163f5e([0x73,0x70,0x6c,0x69,0x74])](_0x163f5e([0x2e]));return _0x4018f6[_0x163f5e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2a728b=>_0x2a728b[_0x163f5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x163f5e([0x2a])))[_0x163f5e([0x6d,0x61,0x70])](_0x209116=>_0x209116[_0x163f5e([0x73,0x70,0x6c,0x69,0x74])](_0x163f5e([0x2e])))[_0x163f5e([0x73,0x6f,0x6d,0x65])](_0xe4cc8d=>_0x314b32[_0x163f5e([0x65,0x76,0x65,0x72,0x79])]((_0x2801d5,_0x49bb8a)=>_0xe4cc8d[_0x49bb8a]===_0x2801d5||_0xe4cc8d[_0x49bb8a]===_0x163f5e([0x2a])));}function _0x28242c(){return _0x2fb3b2&&_0x3eb92c?new window[(_0x163f5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3de8d8,_0x97f54a)=>{_0x2fb3b2[_0x163f5e([0x74,0x68,0x65,0x6e])](_0x3de8d8,_0x97f54a),_0x3eb92c[_0x163f5e([0x74,0x68,0x65,0x6e])](_0x27c186=>{_0x27c186!=_0x163f5e([0x56,0x61,0x6c,0x69,0x64])&&_0x3de8d8(_0x27c186);},_0x97f54a);}):_0x2fb3b2||_0x3eb92c||_0x163f5e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4ae071(_0x5822ac,_0x2a3bef){return new window[(_0x163f5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bb72f=>{if(_0xa30910())return _0x1bb72f(_0x163f5e([0x56,0x61,0x6c,0x69,0x64]));_0x41b691(),_0x5ccd25[_0x163f5e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x163f5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xc88cb3=!0x1;const _0x4f97f2=_0x15961d();function _0x4fa2f8(_0x3fe43b){return!!_0x3fe43b&&(typeof _0x3fe43b===_0x163f5e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3fe43b===_0x163f5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3fe43b[_0x163f5e([0x74,0x68,0x65,0x6e])]===_0x163f5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3fe43b[_0x163f5e([0x63,0x61,0x74,0x63,0x68])]===_0x163f5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1e485a(_0x1cc54d){_0x7e8080(_0x1cc54d)[_0x163f5e([0x74,0x68,0x65,0x6e])](_0x376327=>{if(!_0x376327||_0x376327[_0x163f5e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x163f5e([0x6f,0x6b]))return _0x163f5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a0038(_0x57f6ff(_0x4f97f2+_0x2a3bef))!=_0x376327[_0x163f5e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x163f5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x163f5e([0x56,0x61,0x6c,0x69,0x64]);})[_0x163f5e([0x74,0x68,0x65,0x6e])](_0xcfd756=>(_0x3aedbd(),_0xcfd756),()=>{const _0x6ff588=_0x2147ac();return null==_0x6ff588?(_0x3aedbd(),_0x163f5e([0x56,0x61,0x6c,0x69,0x64])):_0x163f5e(_0x12919a-_0x6ff588>(0x6e2457e7^_0x5c9413)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x163f5e([0x74,0x68,0x65,0x6e])](_0x1bb72f)[_0x163f5e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1bb72f(_0x163f5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xaf9d8=0x4a1e3d67^_0x5c9413;function _0x3aedbd(){const _0x28c6e8=_0x163f5e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a0038(_0x57f6ff(_0x5822ac)),_0x59e776=_0x275585(_0x2a0038(window[_0x163f5e([0x4d,0x61,0x74,0x68])][_0x163f5e([0x63,0x65,0x69,0x6c])](_0x12919a/_0xaf9d8)));window[_0x163f5e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x163f5e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28c6e8,_0x59e776);}function _0x2147ac(){const _0x2ca9dd=_0x163f5e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a0038(_0x57f6ff(_0x5822ac)),_0x1edd41=window[_0x163f5e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x163f5e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ca9dd);return _0x1edd41?window[_0x163f5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x275585(_0x1edd41),0x10)*_0xaf9d8:null;}function _0x7e8080(_0x7e7fc){return new window[(_0x163f5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x319f97,_0x3f1f9e)=>{_0x7e7fc[_0x163f5e([0x74,0x68,0x65,0x6e])](_0x319f97,_0x3f1f9e),window[_0x163f5e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3f1f9e,0x4a290727^_0x5c9413);});}}_0x5ccd25[_0x163f5e([0x6f,0x6e])](_0x163f5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4b269f,_0xd169b9)=>{if(_0xd169b9[0x0]!=_0x5822ac)return _0x1bb72f(_0x163f5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd169b9[0x1]={..._0xd169b9[0x1],[_0x163f5e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4f97f2};},{[_0x163f5e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x163f5e([0x68,0x69,0x67,0x68])}),_0x5ccd25[_0x163f5e([0x6f,0x6e])](_0x163f5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x40c0d8=>{_0x4fa2f8(_0x40c0d8[_0x163f5e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xc88cb3=!0x0,_0x1e485a(_0x40c0d8[_0x163f5e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x163f5e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x163f5e([0x6c,0x6f,0x77])}),_0x4fc340[_0x163f5e([0x74,0x68,0x65,0x6e])](()=>{_0xc88cb3||_0x1bb72f(_0x163f5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa30910(){return _0x5ccd25[_0x163f5e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x163f5e([0x76,0x69,0x65,0x77])][_0x163f5e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x163f5e([0x61,0x75,0x74,0x6f]);}function _0x41b691(){_0x5ccd25[_0x163f5e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x163f5e([0x76,0x69,0x65,0x77])][_0x163f5e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x163f5e([0x61,0x75,0x74,0x6f]);}}function _0x343f28(_0x989985){const _0x52b74f=[new window[(_0x163f5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cf769=>setTimeout(_0x3cf769,0x4a21ed2b^_0x5c9413)),_0x4fc340[_0x163f5e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x163f5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x513aea=>{let _0xbf5177=0x0;_0x5ccd25[_0x163f5e([0x6d,0x6f,0x64,0x65,0x6c])][_0x163f5e([0x6f,0x6e])](_0x163f5e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x19670d,_0x36caea)=>{_0x36caea[0x0][_0x163f5e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xbf5177++,_0xbf5177==(0x4a28d21f^_0x5c9413)&&(_0x513aea(),_0x19670d[_0x163f5e([0x6f,0x66,0x66])]());});}))];return window[_0x163f5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x163f5e([0x72,0x61,0x63,0x65])](_0x52b74f)[_0x163f5e([0x74,0x68,0x65,0x6e])](()=>_0x989985);}async function _0x399d26(){await _0x4fc340,_0x5ccd25[_0x163f5e([0x6d,0x6f,0x64,0x65,0x6c])][_0x163f5e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4f5f6c,_0x5ccd25[_0x163f5e([0x6d,0x6f,0x64,0x65,0x6c])][_0x163f5e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4f5f6c,_0x5ccd25[_0x163f5e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x163f5e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2377c0(_0x19f0f9){const _0x4a9944=_0x263f70();_0x5ccd25[_0x4a9944]=_0x163f5e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x19f0f9,_0x19f0f9!=_0x163f5e([0x56,0x61,0x6c,0x69,0x64])&&_0x399d26();}function _0x263f70(){const _0x17d7af=window[_0x163f5e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x163f5e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x163f5e([0x6e,0x6f,0x77])]())[_0x163f5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x163f5e([0x2e]),'');let _0xa9d05a=_0x163f5e([0x75]);for(let _0x3096a5=0x0;_0x3096a5<_0x17d7af[_0x163f5e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3096a5+=0x2){let _0x136c82=window[_0x163f5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17d7af[_0x163f5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3096a5,_0x3096a5+0x2));_0x136c82>=_0x33cd22[_0x163f5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x136c82-=_0x33cd22[_0x163f5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa9d05a+=_0x33cd22[_0x136c82];}return _0xa9d05a;}function _0x33c218(){const _0x2c74dc=_0x35e3de[_0x163f5e([0x73,0x70,0x6c,0x69,0x74])](_0x163f5e([0x2e]));if(0x3!=_0x2c74dc[_0x163f5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x11a95d(_0x2c74dc[0x1]);function _0x11a95d(_0x24a9f9){const _0xb16724=_0x56902b(_0x24a9f9);return _0xb16724&&_0x5f2968()?_0xb16724:null;function _0x5f2968(){const _0x32bec2=_0xb16724[_0x163f5e([0x6a,0x74,0x69])],_0x4b116c=window[_0x163f5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32bec2[_0x163f5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32bec2[_0x163f5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x323aa9={..._0xb16724,[_0x163f5e([0x6a,0x74,0x69])]:_0x32bec2[_0x163f5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x32bec2[_0x163f5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x323aa9[_0x163f5e([0x76,0x63])],_0x57f6ff(_0x323aa9)==_0x4b116c;}}}async function _0xa6a1d7(){let _0xc355c2=!0x0;try{const _0x229dd8=_0x35e3de[_0x163f5e([0x73,0x70,0x6c,0x69,0x74])](_0x163f5e([0x2e])),[_0x52b6d8,_0x5d0832,_0x5451d8]=_0x229dd8;return _0x30ffcf(_0x52b6d8),await _0x24644a(_0x52b6d8,_0x5d0832,_0x5451d8),_0xc355c2;}catch(_0x110961){return!0x1;}function _0x30ffcf(_0x45536a){const _0x157faa=_0x56902b(_0x45536a);_0x157faa&&_0x157faa[_0x163f5e([0x61,0x6c,0x67])]==_0x163f5e([0x45,0x53,0x32,0x35,0x36])||(_0xc355c2=!0x1);}async function _0x24644a(_0x2ee3ce,_0x4101c3,_0x3e82ef){const _0x1a259d=window[_0x163f5e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x163f5e([0x66,0x72,0x6f,0x6d])](_0x375193(_0x3e82ef),_0x3fcdb2=>_0x3fcdb2[_0x163f5e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f102a=new window[(_0x163f5e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x163f5e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2ee3ce+_0x163f5e([0x2e])+_0x4101c3),_0x2b920e=window[_0x163f5e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x163f5e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2b920e)return;const _0x1d79d4=await _0x2b920e[_0x163f5e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x163f5e([0x6a,0x77,0x6b]),_0x1ca2d4,{[_0x163f5e([0x6e,0x61,0x6d,0x65])]:_0x163f5e([0x45,0x43,0x44,0x53,0x41]),[_0x163f5e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x163f5e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x163f5e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2b920e[_0x163f5e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x163f5e([0x6e,0x61,0x6d,0x65])]:_0x163f5e([0x45,0x43,0x44,0x53,0x41]),[_0x163f5e([0x68,0x61,0x73,0x68])]:{[_0x163f5e([0x6e,0x61,0x6d,0x65])]:_0x163f5e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d79d4,_0x1a259d,_0x2f102a)||(_0xc355c2=!0x1);}}function _0x56902b(_0xce8e0){return _0xce8e0[_0x163f5e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x163f5e([0x65,0x79]))?JSON[_0x163f5e([0x70,0x61,0x72,0x73,0x65])](_0x375193(_0xce8e0)):null;}function _0x375193(_0x310ad8){return window[_0x163f5e([0x61,0x74,0x6f,0x62])](_0x310ad8[_0x163f5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x163f5e([0x2b]))[_0x163f5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x163f5e([0x2f])));}function _0x57f6ff(_0x13b822){let _0x597b18=0x1505;function _0x22f7c0(_0x40062a){for(let _0x4440b3=0x0;_0x4440b3<_0x40062a[_0x163f5e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4440b3++){const _0x4cc171=_0x40062a[_0x163f5e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4440b3);_0x597b18=(_0x597b18<<0x5)+_0x597b18+_0x4cc171,_0x597b18&=_0x597b18;}}function _0x42e8b6(_0x1d53dd){Array[_0x163f5e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1d53dd)?_0x1d53dd[_0x163f5e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x42e8b6):_0x1d53dd&&typeof _0x1d53dd==_0x163f5e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x163f5e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1d53dd)[_0x163f5e([0x73,0x6f,0x72,0x74])]()[_0x163f5e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4f6401,_0x34046e])=>{_0x22f7c0(_0x4f6401),_0x42e8b6(_0x34046e);}):_0x22f7c0(window[_0x163f5e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1d53dd));}return _0x42e8b6(_0x13b822),_0x597b18>>>0x0;}function _0x2a0038(_0x5e431a){return _0x5e431a[_0x163f5e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x163f5e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x163f5e([0x30]));}function _0x275585(_0xd26039){return _0xd26039[_0x163f5e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x163f5e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x163f5e([0x6a,0x6f,0x69,0x6e])]('');}function _0x4f5f6c(){}function _0x163f5e(_0x50be13){const _0x301d0f=_0x1c1d;return _0x50be13[_0x301d0f(0x1b5)](_0x4f4cfe=>String[_0x301d0f(0x197)](_0x4f4cfe))[_0x301d0f(0x1c9)]('');}_0x2377c0(await _0x12c00a());}(this);}[_0x5a488a(0x1ac)](){const _0x6837ee=_0x5a488a,_0x569211=this[_0x6837ee(0x1cc)][_0x6837ee(0x1a8)][_0x6837ee(0x19a)];_0x569211[_0x6837ee(0x1c0)](_0x6837ee(0x1d2))&&_0x569211[_0x6837ee(0x1a1)](_0x6837ee(0x1d2),{'allowAttributes':[_0x6837ee(0x1c2)]}),_0x569211[_0x6837ee(0x1c0)](_0x6837ee(0x1d4))&&_0x569211[_0x6837ee(0x1a1)](_0x6837ee(0x1d4),{'allowAttributes':[_0x6837ee(0x1c2)]});}[_0x5a488a(0x1c1)](){const _0x23720b=_0x5a488a,_0x47f081=this[_0x23720b(0x1cc)];_0x47f081[_0x23720b(0x18b)][_0x23720b(0x1c5)](_0x23720b(0x199))[_0x23720b(0x1cf)]({'model':_0x23720b(0x1c2),'view':_0x23720b(0x1dd)}),_0x47f081[_0x23720b(0x18b)][_0x23720b(0x1c5)](_0x23720b(0x1c6))[_0x23720b(0x1d5)]({'model':{'key':_0x23720b(0x1c2),'value':_0x27a5aa=>_0x27a5aa[_0x23720b(0x19f)](_0x23720b(0x1dd))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x322a88=_0x47f081[_0x23720b(0x1b1)][_0x23720b(0x1a3)](_0x23720b(0x1c3));_0x322a88&&this[_0x23720b(0x19e)](_0x322a88,_0x23720b(0x1a0),(_0x51ea72,[_0x30dffe,_0x15e6a0])=>{const _0x583c15=_0x23720b;_0x30dffe[_0x583c15(0x1a7)](_0x583c15(0x1c2),_0x15e6a0);});}[_0x5a488a(0x196)](){const _0x2940e7=_0x5a488a,_0x566243=this[_0x2940e7(0x1cc)][_0x2940e7(0x1c7)][_0x2940e7(0x1a3)](_0x2940e7(0x1ce))||{},_0x33fab2=this[_0x2940e7(0x1cc)][_0x2940e7(0x1c7)][_0x2940e7(0x1a3)](_0x2940e7(0x193))||'';this[_0x2940e7(0x1d7)]=_0x4585d0(_0x176142[_0x2940e7(0x1bd)],_0x2940e7(0x194),{..._0x566243,'pubkey':_0x33fab2,'ctx-name':_0x2940e7(0x1c8),'sourceList':'','imgOnly':_0x2940e7(0x1ae),'removeCopyright':_0x2940e7(0x1ae),'localeName':this[_0x2940e7(0x1cc)][_0x2940e7(0x1d9)][_0x2940e7(0x19c)],'externalSourcesEmbedCss':_0x2940e7(0x1d3)}),this[_0x2940e7(0x1d7)][_0x2940e7(0x192)]=_0x378604=>{const _0x19960f=_0x2940e7;if(_0x19960f(0x1db)==_0x378604)return _0x19960f(0x191);},_0x176142[_0x2940e7(0x1bd)][_0x2940e7(0x1a5)][_0x2940e7(0x1a9)](this[_0x2940e7(0x1d7)]);}[_0x5a488a(0x1d6)](){const _0x4a2f67=_0x5a488a;this[_0x4a2f67(0x1d8)]=_0x4585d0(_0x176142[_0x4a2f67(0x1bd)],_0x4a2f67(0x1d1),{'ctx-name':_0x4a2f67(0x1c8)}),_0x176142[_0x4a2f67(0x1bd)][_0x4a2f67(0x1a5)][_0x4a2f67(0x1a9)](this[_0x4a2f67(0x1d8)]);}[_0x5a488a(0x1b7)](){const _0x3fb61a=_0x5a488a,_0x3e6434=this[_0x3fb61a(0x1cc)][_0x3fb61a(0x1b1)][_0x3fb61a(0x1a3)](_0x3fb61a(0x1a4));_0x3e6434&&this[_0x3fb61a(0x19e)](_0x3e6434,_0x3fb61a(0x189),()=>{const _0x3d23c7=_0x3fb61a,_0x4d9ebb=this[_0x3d23c7(0x1cc)][_0x3d23c7(0x1a8)][_0x3d23c7(0x1bd)][_0x3d23c7(0x1bb)][_0x3d23c7(0x198)]();_0x4d9ebb&&_0x4d9ebb[_0x3d23c7(0x19f)](_0x3d23c7(0x1c2))&&this[_0x3d23c7(0x1cc)][_0x3d23c7(0x1c4)][_0x3d23c7(0x18d)][_0x3d23c7(0x19d)](_0x3d23c7(0x18a),()=>{const _0x372449=_0x3d23c7;_0x4fbb04(this[_0x372449(0x1cc)],_0x4d9ebb);});});const _0x5e74bb=this[_0x3fb61a(0x1cc)][_0x3fb61a(0x1b1)][_0x3fb61a(0x1a3)](_0x3fb61a(0x195));_0x5e74bb&&this[_0x3fb61a(0x19e)](_0x5e74bb,_0x3fb61a(0x189),()=>{const _0x328b7b=_0x3fb61a,_0x3d4121=this[_0x328b7b(0x1cc)][_0x328b7b(0x1a8)][_0x328b7b(0x1bd)][_0x328b7b(0x1bb)][_0x328b7b(0x198)]();_0x3d4121&&_0x3d4121[_0x328b7b(0x19f)](_0x328b7b(0x1c2))&&this[_0x328b7b(0x1cc)][_0x328b7b(0x1c4)][_0x328b7b(0x18d)][_0x328b7b(0x19d)](_0x328b7b(0x18a),()=>{const _0x191ed1=_0x328b7b;_0x4fbb04(this[_0x191ed1(0x1cc)],_0x3d4121);});});}}