@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250220.0 → 0.0.0-nightly-next-20250221.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x5726b9,Command as _0x1b010c}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x23c819,IconGooglePhotos as _0x41d021,IconGoogleDrive as _0x2e3bd5,IconFacebook as _0x441b78,IconDropbox as _0x49013d,IconUploadcareLink as _0x4e6eb3,IconUploadcareImageUpload as _0x4c4ff4,IconError as et,IconUploadcareImageEdit as _0x5bfd63}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xb5b0a7,MenuBarMenuListItemButtonView as _0x5eab9a,View as _0x57c868,FocusCycler as _0x359baa,Dialog as _0x3dcc53,DialogViewPosition as _0x24e18f,SpinnerView as _0x158b05,IconView as at,Notification as _0x2ea444}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4973c6,DomEmitterMixin as _0x2ac1e2,global as _0x142c83,getAncestors as _0x1f6f58,ObservableMixin as _0x31975a,createElement as _0x1295f2,uid as _0x3d8a91}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x154043}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x25d980,info as _0x17342f}from'@uploadcare/upload-client';import*as _0xf492ec from'@uploadcare/file-uploader';var o=function(_0xdfd4cc){return _0xdfd4cc['Local']='local',_0xdfd4cc['URL']='url',_0xdfd4cc['Dropbox']='dropbox',_0xdfd4cc['GDrive']='gdrive',_0xdfd4cc['Facebook']='facebook',_0xdfd4cc['GPhotos']='gphotos',_0xdfd4cc['OneDrive']='onedrive',_0xdfd4cc;}({});function _(_0x43aa64,_0x2fe46f,_0x1b7da9){const t=_0x43aa64['t'],_0x48e38a=_0x43aa64['t'];switch(_0x2fe46f){case o['Local']:return{'text':_0x48e38a('Insert'===_0x1b7da9?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x48e38a('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x1b7da9?_0x48e38a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x48e38a('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x1b7da9?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x1b7da9?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x1b7da9?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x1b7da9?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x1b7da9?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2fe46f;}}class e extends _0x5726b9{['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 _0x53e3f1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x44251b;for(const _0x3ba7e1 in _0x53e3f1){const _0x186a07=_0x3ba7e1,_0x5ddd39=_0x53e3f1[_0x186a07];if('uploadcareLicenseKeyValid'==_0x5ddd39||'uploadcareLicenseKeyInvalid'==_0x5ddd39||'uploadcareLicenseKeyExpired'==_0x5ddd39||'uploadcareLicenseKeyDomainLimit'==_0x5ddd39||'uploadcareLicenseKeyNotAllowed'==_0x5ddd39||'uploadcareLicenseKeyEvaluationLimit'==_0x5ddd39||'uploadcareLicenseKeyTrialLimit'==_0x5ddd39||'uploadcareLicenseKeyUsageLimit'==_0x5ddd39){delete _0x53e3f1[_0x186a07],_0x44251b=_0x5ddd39,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x44251b&&_0x53e3f1['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x44251b&&_0x53e3f1['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x44251b&&_0x53e3f1['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x44251b&&_0x53e3f1['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x44251b&&_0x53e3f1['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x44251b&&_0x53e3f1['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x44251b&&_0x53e3f1['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x509f95}=this,_0x5309d4=_0x509f95['commands']['get']('uploadcare');if(!_0x5309d4)return;const _0x4972a4=this['_normalizeConfigSourceList'](_0x509f95['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x16c979,_0x337c0c)=>{const _0x28872f=this['_getIntegrationKey'](_0x337c0c['type']);return _0x16c979[_0x28872f]||(_0x16c979[_0x28872f]=[]),_0x16c979[_0x28872f]['push'](_0x337c0c),_0x16c979;},{});_0x509f95['plugins']['has']('ImageInsertUI')&&_0x509f95['commands']['get']('uploadcare')&&Object['entries'](_0x4972a4)['forEach'](([_0x4d0f24,_0x51946c])=>{_0x509f95['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4d0f24,'observable':()=>_0x5309d4,'buttonViewCreator':()=>this['_createToolbarButton'](_0x51946c),'formViewCreator':()=>this['_createDropdownButtons'](_0x51946c),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x51946c),'override':'assetManager'!==_0x4d0f24});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xed9830){const {locale:_0x26d863}=this['editor'];return _0xed9830['map'](_0x174533=>{const _0x11897b=_(_0x26d863,_0x174533,'Insert');switch(_0x174533){case o['Local']:return{'icon':_0x4c4ff4,'type':o['Local'],..._0x11897b};case o['URL']:return{'icon':_0x4e6eb3,'type':o['URL'],..._0x11897b};case o['Dropbox']:return{'icon':_0x49013d,'type':o['Dropbox'],..._0x11897b};case o['Facebook']:return{'icon':_0x441b78,'type':o['Facebook'],..._0x11897b};case o['GDrive']:return{'icon':_0x2e3bd5,'type':o['GDrive'],..._0x11897b};case o['GPhotos']:return{'icon':_0x41d021,'type':o['GPhotos'],..._0x11897b};case o['OneDrive']:return{'icon':_0x23c819,'type':o['OneDrive'],..._0x11897b};}});}['_getIntegrationKey'](_0x337847){switch(_0x337847){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x169166,_0x53f7fd){const _0x44c4ed=this['editor'],_0x597cc5=new _0x169166(_0x44c4ed['locale']),_0x4eae26=_0x44c4ed['commands']['get']('uploadcare');return _0x597cc5['bind']('isEnabled')['to'](_0x4eae26),_0x597cc5['on']('execute',()=>{_0x4eae26['execute'](_0x53f7fd);}),_0x597cc5;}['_createToolbarButton'](_0x3d40de){const {locale:_0x47b09b}=this['editor'],_0x55fbd0=this['editor']['plugins']['get']('ImageInsertUI'),_0x50f41d=_0x3d40de[0x0],_0x1a301c=this['_createButton'](_0xb5b0a7,_0x50f41d['type']);return _0x1a301c['icon']=_0x50f41d['icon'],_0x1a301c['bind']('label')['to'](_0x55fbd0,'isImageSelected',_0x159cc7=>_(_0x47b09b,_0x50f41d['type'],_0x159cc7?'Replace':'Insert')['text']),_0x1a301c['tooltip']=!0x0,_0x1a301c;}['_createDropdownButtons'](_0x4bbd6d){const {locale:_0x1c7b68}=this['editor'],_0x800447=this['editor']['plugins']['get']('ImageInsertUI');return _0x4bbd6d['map'](_0x5e4dac=>{const _0x40ef6e=this['_createButton'](_0xb5b0a7,_0x5e4dac['type']);return _0x40ef6e['withText']=!0x0,_0x40ef6e['icon']=_0x5e4dac['icon'],_0x40ef6e['bind']('label')['to'](_0x800447,'isImageSelected',_0x35aa1f=>_(_0x1c7b68,_0x5e4dac['type'],_0x35aa1f?'Replace':'Insert')['text']),_0x40ef6e;});}['_createMenuBarButtons'](_0x17484d){return _0x17484d['map'](_0x1ff5c0=>{const _0x3c2322=this['_createButton'](_0x5eab9a,_0x1ff5c0['type']);return _0x3c2322['icon']=_0x1ff5c0['icon'],_0x3c2322['label']=_0x1ff5c0['shortText'],_0x3c2322;});}}class q extends _0x57c868{['focusTracker'];['focusCycler'];constructor(_0x569a77){super(_0x569a77),this['focusTracker']=new _0x4973c6(),this['focusCycler']=new _0x359baa({'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(_0x3c8d46){super(_0x3c8d46),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(_0x1610b6,_0x568659){const _0x342e64=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1fc56d=>_0x1fc56d<=_0x568659)['map'](_0x459357=>_0x1610b6['replace'](/\/$/,'')+'/-/resize/'+_0x459357+'x/\x20'+_0x459357+'w');return{'imageFallbackUrl':_0x1610b6,'imageSources':[{'srcset':_0x342e64['join'](',\x20'),'sizes':'(max-width:\x20'+_0x568659+'px)\x20100vw,\x20'+_0x568659+'px','type':'image/webp'}]};}function A(_0x3d3d16,_0x169e8f,_0x33c1e3){const _0x24ba7c=_0x3d3d16['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x24ba7c?parseInt(_0x24ba7c[0x1],0xa):_0x169e8f,'height':_0x24ba7c?parseInt(_0x24ba7c[0x2],0xa):_0x33c1e3};}function m(_0x2856fd,_0x26fa20){const _0x145faa=Object['create'](_0x2ac1e2),_0x47b03a=_0x2856fd['plugins']['get']('ImageUtils'),_0x3a4274=_0x2856fd['editing']['mapper']['toViewElement'](_0x26fa20),_0x36d13c=_0x47b03a['findViewImgElement'](_0x3a4274),_0x3210db=_0x2856fd['editing']['view']['domConverter']['viewToDom'](_0x36d13c),_0x4937fc=_0x26fa20['getAttribute']('width'),_0xb542f0=_0x26fa20['getAttribute']('height'),_0x133481='image-processing';_0x2856fd['editing']['view']['change'](_0x48ed9e=>{_0x48ed9e['addClass'](_0x133481,_0x3a4274),_0x48ed9e['setStyle']('aspect-ratio',_0x4937fc+'/'+_0xb542f0,_0x36d13c);}),_0x145faa['listenTo'](_0x3210db,'load',()=>{_0x145faa['stopListening'](_0x3210db,'load'),_0x2856fd['editing']['view']['change'](_0x4b10f6=>{_0x4b10f6['removeClass'](_0x133481,_0x3a4274),_0x4b10f6['removeStyle']('aspect-ratio',_0x36d13c);});});}function V(_0x507f56){if(Array['isArray'](_0x507f56)){const _0x1764ea=_0x507f56['map'](V);return _0x4b2512=>_0x1764ea['some'](_0x54f2b4=>_0x54f2b4(_0x4b2512));}if('origin'==_0x507f56){const _0x371385=_0x142c83['window']['location']['origin'];return _0x48d191=>new URL(_0x48d191,_0x142c83['document']['baseURI'])['origin']==_0x371385;}return'function'==typeof _0x507f56?_0x507f56:_0x507f56 instanceof RegExp?_0x53ce58=>!(!_0x53ce58['match'](_0x507f56)&&!_0x53ce58['replace'](/^https?:\/\//,'')['match'](_0x507f56)):()=>!0x1;}function F(_0x3167f0,_0xda3447){return _0x1f6f58(_0x3167f0['target'])['includes'](_0xda3447);}class l extends/* #__PURE__ -- @preserve */
24
- _0x31975a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x151354,_0x360243,_0x30cf03){super(),this['_editor']=_0x151354,this['_editing']=_0x360243,this['_dialog']=_0x151354['plugins']['get'](_0x3dcc53),this['_api']=_0x360243['ctxElement']['getAPI'](),this['_type']=_0x30cf03,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:_0x4e2040,model:_0xac64d1}=this['_editor'],_0x18883b=_0xac64d1['document']['selection']['getSelectedElement'](),_0x29fe86=_0x18883b&&(_0x18883b['is']('element','imageBlock')||_0x18883b['is']('element','imageInline'));this['_formView']=new S(_0x4e2040),this['_dialog']['show']({'id':'uploadCare','icon':_0x4c4ff4,'title':_(_0x4e2040,this['_type'],_0x29fe86?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x24e18f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x37abbd=>!F(_0x37abbd,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5e9a6b}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x19b5bc=>{const _0x46e745=_0x5e9a6b['length'];for(const _0x4ddcb7 of _0x5e9a6b){const _0x3c3b65=_0x4ddcb7===_0x5e9a6b[_0x46e745-0x1],{cdnUrl:_0x1939e8,fileInfo:_0x2319e5}=_0x4ddcb7;if(!_0x1939e8||!_0x2319e5)continue;const {width:_0x42df0a,height:_0xf74d4b}=_0x2319e5['imageInfo'],_0x1559fb=A(_0x1939e8,_0x42df0a,_0xf74d4b),_0x2e5e2d=E(_0x1939e8,_0x1559fb['width']),_0x585c2f={'id':_0x2319e5['uuid'],'type':'image','attributes':{'imageDimension':_0x1559fb,..._0x2e5e2d}};this['_insertAsset'](_0x585c2f,_0x3c3b65,_0x19b5bc);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3dbaed=>{'idle'===_0x3dbaed['detail']['status']&&!_0x3dbaed['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xadf89b,_0x509eda,_0x3fe160){const _0x49f440=this['_editor']['model']['document']['selection'],_0x493793=_0x49f440['getSelectedElement'](),_0x243a30=!(!_0x493793||!_0x493793['is']('element','imageInline'));_0x3fe160['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xadf89b,_0x243a30),_0x509eda||_0x3fe160['setSelection'](_0x49f440['getLastPosition']());}['_insertImage'](_0x510058,_0x44bf93){const _0x5cdf52=this['_editor'],{imageDimension:_0x4fa650,imageFallbackUrl:_0x2c6b94,imageSources:_0x3af49d}=_0x510058['attributes'];_0x5cdf52['execute']('insertImage',{'imageType':_0x44bf93?'imageInline':null,'source':{'uploadcareImageId':_0x510058['id'],'src':_0x2c6b94,'sources':_0x3af49d,..._0x4fa650}});}}class n extends _0x1b010c{['_editing'];['_controller']=null;static get['requires'](){return[_0x3dcc53,i];}constructor(_0x3e14c0){super(_0x3e14c0),this['_editing']=_0x3e14c0['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5d03b9){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x5d03b9);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x969f86,publicKey:_0x4716fa,signal:_0x3980a8,onProgress:_0x1d9582}){return _0x25d980(_0x969f86,{'publicKey':_0x4716fa,'store':'auto','signal':_0x3980a8,'onProgress':_0x1d9582});}static['getInfo'](_0x3f6b01,_0x2874c3){return _0x17342f(_0x3f6b01,_0x2874c3);}}class p extends _0x5726b9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x154043,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2bc20e=this['editor'];if(!!!_0x2bc20e['config']['get']('uploadcare'))return;_0x2bc20e['plugins']['get'](_0x154043)['createUploadAdapter']=_0x514a0d=>new x(_0x514a0d,_0x2bc20e),_0x2bc20e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3f66f4,{imageElement:_0x1c3e67,data:_0x229be9})=>{_0x2bc20e['model']['change'](_0x4a74bb=>{_0x4a74bb['setAttribute']('uploadcareImageId',_0x229be9['uploadcareImageId'],_0x1c3e67);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x8b4fdf,_0x3002f1){this['loader']=_0x8b4fdf,this['editor']=_0x3002f1,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5589dc=this['editor']['config']['get']('uploadcare.pubkey'),_0xc177c8=await this['loader']['file'];return C['upload']({'file':_0xc177c8,'publicKey':_0x5589dc,'signal':this['controller']['signal'],'onProgress':_0x16fb2f=>{_0x16fb2f&&_0x16fb2f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x16fb2f['value']);}})['then'](async _0x7ee509=>{const {imageFallbackUrl:_0x284a4c,imageSources:_0x36fd16}=E(_0x7ee509['cdnUrl'],_0x7ee509['imageInfo']['width']);return{'uploadcareImageId':_0x7ee509['uuid'],'default':_0x284a4c,'sources':_0x36fd16};})['catch'](()=>{const _0x4d28bc=t('Cannot\x20upload\x20file:')+('\x20'+_0xc177c8['name']+'.');return Promise['reject'](_0x4d28bc);});}['abort'](){this['controller']['abort']();}}class i extends _0x5726b9{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x3dcc53];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x25838a=this['editor'];_0x25838a['commands']['add']('uploadcare',new n(_0x25838a));}['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 _0x325f21=_0x142c83['document']['querySelector']('input[uploadcare-file-input]');_0x325f21&&_0x325f21['remove']();}),async function(_0x59c52f){const _0x28d172=_0x226928([0x63,0x41,0x74,0x69,0x66,0x76,0x6b,0x6a,0x78,0x77,0x6c,0x54,0x50,0x44,0x62,0x43,0x35,0x4b,0x59,0x4d,0x31,0x4e,0x75,0x42,0x30,0x4f,0x33,0x6e,0x4a,0x4c,0x70,0x6f,0x34,0x55,0x52,0x51,0x67,0x36,0x53,0x49,0x6d,0x46,0x73,0x68,0x58,0x72,0x45,0x7a,0x47,0x37,0x32,0x71,0x61,0x56,0x57,0x5a,0x38,0x64,0x65,0x79,0x48,0x39]),_0x263934=0x524c4791,_0x2d2ed5=0x524b2799^_0x263934,_0x390a76=window[_0x226928([0x44,0x61,0x74,0x65])][_0x226928([0x6e,0x6f,0x77])](),_0x44a159=_0x59c52f[_0x226928([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x58fb6d=new window[(_0x226928([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c88c1=>{_0x44a159[_0x226928([0x6f,0x6e,0x63,0x65])](_0x226928([0x72,0x65,0x61,0x64,0x79]),_0x3c88c1);}),_0x18d212={[_0x226928([0x6b,0x74,0x79])]:_0x226928([0x45,0x43]),[_0x226928([0x75,0x73,0x65])]:_0x226928([0x73,0x69,0x67]),[_0x226928([0x63,0x72,0x76])]:_0x226928([0x50,0x2d,0x32,0x35,0x36]),[_0x226928([0x78])]:_0x226928([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]),[_0x226928([0x79])]:_0x226928([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]),[_0x226928([0x61,0x6c,0x67])]:_0x226928([0x45,0x53,0x32,0x35,0x36])},_0x19f60b=_0x44a159[_0x226928([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x226928([0x67,0x65,0x74])](_0x226928([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a3747(){let _0x38fc58,_0x3b3927=null,_0x2c6dcf=null;try{if(_0x19f60b==_0x226928([0x47,0x50,0x4c]))return _0x226928([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x38fc58=_0x190109(),!_0x38fc58)return _0x226928([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x38fc58[_0x226928([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2c6dcf=_0x241ed4(_0x38fc58[_0x226928([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x38fc58[_0x226928([0x6a,0x74,0x69])])),await _0x5dc2d9()?_0x3d6e4e()?_0x3a1afa()?_0x226928([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x24aa2e()?(_0x38fc58[_0x226928([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x226928([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b3927=_0x2a7862(_0x226928([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x38fc58[_0x226928([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x226928([0x74,0x72,0x69,0x61,0x6c])&&(_0x3b3927=_0x2a7862(_0x226928([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x7170f1()):_0x226928([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x226928([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x226928([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1b5fe0){return _0x226928([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3a1afa(){const _0x453b77=[_0x226928([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x226928([0x74,0x72,0x69,0x61,0x6c])][_0x226928([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38fc58[_0x226928([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x390a76/0x3e8:0xe10*_0x2d2ed5;return _0x38fc58[_0x226928([0x65,0x78,0x70])]<_0x453b77;}function _0x3d6e4e(){const _0x665182=_0x38fc58[_0x226928([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x665182&&(!!_0x665182[_0x226928([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x226928([0x2a]))||!!_0x665182[_0x226928([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x226928([0x55,0x50,0x4c,0x43])));}function _0x24aa2e(){const _0x58a529=_0x38fc58[_0x226928([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58a529||0x0==_0x58a529[_0x226928([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4b95fd}=new URL(window[_0x226928([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x58a529[_0x226928([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b95fd))return!0x0;const _0x1b83c6=_0x4b95fd[_0x226928([0x73,0x70,0x6c,0x69,0x74])](_0x226928([0x2e]));return _0x58a529[_0x226928([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x299a85=>_0x299a85[_0x226928([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x226928([0x2a])))[_0x226928([0x6d,0x61,0x70])](_0x283a63=>_0x283a63[_0x226928([0x73,0x70,0x6c,0x69,0x74])](_0x226928([0x2e])))[_0x226928([0x73,0x6f,0x6d,0x65])](_0x349e96=>_0x1b83c6[_0x226928([0x65,0x76,0x65,0x72,0x79])]((_0x33a9a8,_0x33cdcd)=>_0x349e96[_0x33cdcd]===_0x33a9a8||_0x349e96[_0x33cdcd]===_0x226928([0x2a])));}function _0x7170f1(){return _0x3b3927&&_0x2c6dcf?new window[(_0x226928([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x347900,_0x138543)=>{_0x3b3927[_0x226928([0x74,0x68,0x65,0x6e])](_0x347900,_0x138543),_0x2c6dcf[_0x226928([0x74,0x68,0x65,0x6e])](_0x5aef2f=>{_0x5aef2f!=_0x226928([0x56,0x61,0x6c,0x69,0x64])&&_0x347900(_0x5aef2f);},_0x138543);}):_0x3b3927||_0x2c6dcf||_0x226928([0x56,0x61,0x6c,0x69,0x64]);}}function _0x241ed4(_0x375f8a,_0x514283){return new window[(_0x226928([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33ebcb=>{if(_0x293ef9())return _0x33ebcb(_0x226928([0x56,0x61,0x6c,0x69,0x64]));_0x66105d(),_0x44a159[_0x226928([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x226928([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a96b7=!0x1;const _0xc2a029=_0x3d8a91();function _0x542362(_0xb26fb7){return!!_0xb26fb7&&(typeof _0xb26fb7===_0x226928([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb26fb7===_0x226928([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb26fb7[_0x226928([0x74,0x68,0x65,0x6e])]===_0x226928([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb26fb7[_0x226928([0x63,0x61,0x74,0x63,0x68])]===_0x226928([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x510d1d(_0x3eb72c){_0x5b557a(_0x3eb72c)[_0x226928([0x74,0x68,0x65,0x6e])](_0x241e24=>{if(!_0x241e24||_0x241e24[_0x226928([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x226928([0x6f,0x6b]))return _0x226928([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x79a3f(_0x2102b5(_0xc2a029+_0x514283))!=_0x241e24[_0x226928([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x226928([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x226928([0x56,0x61,0x6c,0x69,0x64]);})[_0x226928([0x74,0x68,0x65,0x6e])](_0x108c4f=>(_0x248dd7(),_0x108c4f),()=>{const _0x227b4c=_0xe3cb28();return null==_0x227b4c?(_0x248dd7(),_0x226928([0x56,0x61,0x6c,0x69,0x64])):_0x226928(_0x390a76-_0x227b4c>(0x7640c391^_0x263934)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x226928([0x74,0x68,0x65,0x6e])](_0x33ebcb)[_0x226928([0x63,0x61,0x74,0x63,0x68])](()=>{_0x33ebcb(_0x226928([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6a0daf=0x527aa911^_0x263934;function _0x248dd7(){const _0x1c4bd6=_0x226928([0x6c,0x6c,0x63,0x74,0x2d])+_0x79a3f(_0x2102b5(_0x375f8a)),_0x21db6e=_0x3113b3(_0x79a3f(window[_0x226928([0x4d,0x61,0x74,0x68])][_0x226928([0x63,0x65,0x69,0x6c])](_0x390a76/_0x6a0daf)));window[_0x226928([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x226928([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c4bd6,_0x21db6e);}function _0xe3cb28(){const _0x3c9b78=_0x226928([0x6c,0x6c,0x63,0x74,0x2d])+_0x79a3f(_0x2102b5(_0x375f8a)),_0x517b85=window[_0x226928([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x226928([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c9b78);return _0x517b85?window[_0x226928([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3113b3(_0x517b85),0x10)*_0x6a0daf:null;}function _0x5b557a(_0x32e58d){return new window[(_0x226928([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22d2a3,_0x5c39db)=>{_0x32e58d[_0x226928([0x74,0x68,0x65,0x6e])](_0x22d2a3,_0x5c39db),window[_0x226928([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5c39db,0x524d9351^_0x263934);});}}_0x44a159[_0x226928([0x6f,0x6e])](_0x226928([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb54d9f,_0x3c5aff)=>{if(_0x3c5aff[0x0]!=_0x375f8a)return _0x33ebcb(_0x226928([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3c5aff[0x1]={..._0x3c5aff[0x1],[_0x226928([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xc2a029};},{[_0x226928([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x226928([0x68,0x69,0x67,0x68])}),_0x44a159[_0x226928([0x6f,0x6e])](_0x226928([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x272001=>{_0x542362(_0x272001[_0x226928([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a96b7=!0x0,_0x510d1d(_0x272001[_0x226928([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x226928([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x226928([0x6c,0x6f,0x77])}),_0x58fb6d[_0x226928([0x74,0x68,0x65,0x6e])](()=>{_0x4a96b7||_0x33ebcb(_0x226928([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x293ef9(){return _0x44a159[_0x226928([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x226928([0x76,0x69,0x65,0x77])][_0x226928([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x226928([0x61,0x75,0x74,0x6f]);}function _0x66105d(){_0x44a159[_0x226928([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x226928([0x76,0x69,0x65,0x77])][_0x226928([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x226928([0x61,0x75,0x74,0x6f]);}}function _0x2a7862(_0x4b71d4){const _0x31c942=[new window[(_0x226928([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44f405=>setTimeout(_0x44f405,0x5245795d^_0x263934)),_0x58fb6d[_0x226928([0x74,0x68,0x65,0x6e])](()=>new window[(_0x226928([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c07dd=>{let _0x3c218a=0x0;_0x44a159[_0x226928([0x6d,0x6f,0x64,0x65,0x6c])][_0x226928([0x6f,0x6e])](_0x226928([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5d0e85,_0x16ad10)=>{_0x16ad10[0x0][_0x226928([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c218a++,_0x3c218a==(0x524c4669^_0x263934)&&(_0x2c07dd(),_0x5d0e85[_0x226928([0x6f,0x66,0x66])]());});}))];return window[_0x226928([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x226928([0x72,0x61,0x63,0x65])](_0x31c942)[_0x226928([0x74,0x68,0x65,0x6e])](()=>_0x4b71d4);}async function _0x42079d(){await _0x58fb6d,_0x44a159[_0x226928([0x6d,0x6f,0x64,0x65,0x6c])][_0x226928([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x9837bd,_0x44a159[_0x226928([0x6d,0x6f,0x64,0x65,0x6c])][_0x226928([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x9837bd,_0x44a159[_0x226928([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x226928([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3003a9(_0x30b381){const _0x2a8661=_0x5ed41e();_0x44a159[_0x2a8661]=_0x226928([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x30b381,_0x30b381!=_0x226928([0x56,0x61,0x6c,0x69,0x64])&&_0x42079d();}function _0x5ed41e(){const _0x4092b2=window[_0x226928([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x226928([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x226928([0x6e,0x6f,0x77])]())[_0x226928([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x226928([0x2e]),'');let _0x2e9c72=_0x226928([0x63]);for(let _0x21aad8=0x0;_0x21aad8<_0x4092b2[_0x226928([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x21aad8+=0x2){let _0x5349f6=window[_0x226928([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4092b2[_0x226928([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x21aad8,_0x21aad8+0x2));_0x5349f6>=_0x28d172[_0x226928([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5349f6-=_0x28d172[_0x226928([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e9c72+=_0x28d172[_0x5349f6];}return _0x2e9c72;}function _0x190109(){const _0x4afb4c=_0x19f60b[_0x226928([0x73,0x70,0x6c,0x69,0x74])](_0x226928([0x2e]));if(0x3!=_0x4afb4c[_0x226928([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x453947(_0x4afb4c[0x1]);function _0x453947(_0x2bfd3b){const _0x58667b=_0x5aa50c(_0x2bfd3b);return _0x58667b&&_0x2c151c()?_0x58667b:null;function _0x2c151c(){const _0x44f127=_0x58667b[_0x226928([0x6a,0x74,0x69])],_0x5635a3=window[_0x226928([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44f127[_0x226928([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44f127[_0x226928([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x120c53={..._0x58667b,[_0x226928([0x6a,0x74,0x69])]:_0x44f127[_0x226928([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x44f127[_0x226928([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x120c53[_0x226928([0x76,0x63])],_0x2102b5(_0x120c53)==_0x5635a3;}}}async function _0x5dc2d9(){let _0x5cae87=!0x0;try{const _0x4e8b98=_0x19f60b[_0x226928([0x73,0x70,0x6c,0x69,0x74])](_0x226928([0x2e])),[_0x2fd66d,_0x253a03,_0x35dd03]=_0x4e8b98;return _0x592001(_0x2fd66d),await _0x5c1654(_0x2fd66d,_0x253a03,_0x35dd03),_0x5cae87;}catch(_0x552f84){return!0x1;}function _0x592001(_0x55344c){const _0x2aa2b3=_0x5aa50c(_0x55344c);_0x2aa2b3&&_0x2aa2b3[_0x226928([0x61,0x6c,0x67])]==_0x226928([0x45,0x53,0x32,0x35,0x36])||(_0x5cae87=!0x1);}async function _0x5c1654(_0x355dc4,_0x392407,_0x443953){const _0x21ec28=window[_0x226928([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x226928([0x66,0x72,0x6f,0x6d])](_0x568ebe(_0x443953),_0x29d272=>_0x29d272[_0x226928([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x565b32=new window[(_0x226928([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x226928([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x355dc4+_0x226928([0x2e])+_0x392407),_0x1bc8ec=window[_0x226928([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x226928([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1bc8ec)return;const _0x255e1d=await _0x1bc8ec[_0x226928([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x226928([0x6a,0x77,0x6b]),_0x18d212,{[_0x226928([0x6e,0x61,0x6d,0x65])]:_0x226928([0x45,0x43,0x44,0x53,0x41]),[_0x226928([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x226928([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x226928([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1bc8ec[_0x226928([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x226928([0x6e,0x61,0x6d,0x65])]:_0x226928([0x45,0x43,0x44,0x53,0x41]),[_0x226928([0x68,0x61,0x73,0x68])]:{[_0x226928([0x6e,0x61,0x6d,0x65])]:_0x226928([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x255e1d,_0x21ec28,_0x565b32)||(_0x5cae87=!0x1);}}function _0x5aa50c(_0x2edfb1){return _0x2edfb1[_0x226928([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x226928([0x65,0x79]))?JSON[_0x226928([0x70,0x61,0x72,0x73,0x65])](_0x568ebe(_0x2edfb1)):null;}function _0x568ebe(_0x146a9a){return window[_0x226928([0x61,0x74,0x6f,0x62])](_0x146a9a[_0x226928([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x226928([0x2b]))[_0x226928([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x226928([0x2f])));}function _0x2102b5(_0x5d6d39){let _0x1bf9f8=0x1505;function _0x47e0e0(_0x521cc5){for(let _0x9baf42=0x0;_0x9baf42<_0x521cc5[_0x226928([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9baf42++){const _0x58163f=_0x521cc5[_0x226928([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x9baf42);_0x1bf9f8=(_0x1bf9f8<<0x5)+_0x1bf9f8+_0x58163f,_0x1bf9f8&=_0x1bf9f8;}}function _0x2087bd(_0x3937c9){Array[_0x226928([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3937c9)?_0x3937c9[_0x226928([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2087bd):_0x3937c9&&typeof _0x3937c9==_0x226928([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x226928([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3937c9)[_0x226928([0x73,0x6f,0x72,0x74])]()[_0x226928([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x596904,_0x21ba6e])=>{_0x47e0e0(_0x596904),_0x2087bd(_0x21ba6e);}):_0x47e0e0(window[_0x226928([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3937c9));}return _0x2087bd(_0x5d6d39),_0x1bf9f8>>>0x0;}function _0x79a3f(_0x2b9b2c){return _0x2b9b2c[_0x226928([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x226928([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x226928([0x30]));}function _0x3113b3(_0x4bcdf2){return _0x4bcdf2[_0x226928([0x73,0x70,0x6c,0x69,0x74])]('')[_0x226928([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x226928([0x6a,0x6f,0x69,0x6e])]('');}function _0x9837bd(){}function _0x226928(_0xff08b9){return _0xff08b9['map'](_0x107aa1=>String['fromCharCode'](_0x107aa1))['join']('');}_0x3003a9(await _0x2a3747());}(this);}['_initSchema'](){const _0x5215c1=this['editor']['model']['schema'];_0x5215c1['isRegistered']('imageBlock')&&_0x5215c1['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5215c1['isRegistered']('imageInline')&&_0x5215c1['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x45c1ec=this['editor'];_0x45c1ec['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x45c1ec['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x101da5=>_0x101da5['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3072e4=_0x45c1ec['commands']['get']('replaceImageSource');_0x3072e4&&this['listenTo'](_0x3072e4,'cleanupImage',(_0x514105,[_0x8d8010,_0xbdf378])=>{_0x8d8010['removeAttribute']('uploadcareImageId',_0xbdf378);});}['_initConfig'](){const _0x14d64f=this['editor']['config']['get']('uploadcare.uploader')||{},_0x143874=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1295f2(_0x142c83['document'],'uc-config',{..._0x14d64f,'pubkey':_0x143874,'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']=_0x5754d6=>{if('closeMax'==_0x5754d6)return'#uc-icon-arrow-down';},_0x142c83['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1295f2(_0x142c83['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x142c83['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3889d4=this['editor']['commands']['get']('insertImage');_0x3889d4&&this['listenTo'](_0x3889d4,'execute',()=>{const _0x5b1bbb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5b1bbb&&_0x5b1bbb['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x5b1bbb);});});const _0x2584f4=this['editor']['commands']['get']('uploadcareImageReplace');_0x2584f4&&this['listenTo'](_0x2584f4,'execute',()=>{const _0x5568ed=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5568ed&&_0x5568ed['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x5568ed);});});}}class u extends _0x5726b9{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x27a5db){super(_0x27a5db),_0x27a5db['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0xf492ec['defineComponents'](_0xf492ec);}}class ta extends _0x57c868{constructor(_0xdcf0e7){super(_0xdcf0e7);const t=_0xdcf0e7['t'],_0x3272cb=this['bindTemplate'],_0x45fb18=new _0x158b05();_0x45fb18['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':[_0x45fb18,{'text':_0x3272cb['to']('imageUploadProgress',_0x3cd4ca=>t('Loading\x20image...')+'\x20('+(_0x3cd4ca||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 _0x57c868{constructor(_0x27d4f0){super(_0x27d4f0);const t=_0x27d4f0['t'];this['set']('errorType',null);const _0x474921=new _0xb5b0a7(_0x27d4f0);_0x474921['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x474921['withText']=!0x0,_0x474921['class']='ck-button-action',_0x474921['on']('execute',()=>{this['fire']('retry');}),_0x474921['bind']('isVisible')['to'](this,'errorType',_0x113e8a=>'NotFound'!==_0x113e8a);const _0x4fbd00=new at();_0x4fbd00['content']=et,_0x4fbd00['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1c5bd7=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':[_0x4fbd00,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1c5bd7['to']('errorType',_0x1aaf46=>t('NotFound'!==_0x1aaf46?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x474921]},{'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 _0x57c868{constructor(_0x1ea8c7,_0x10c0cf){super(_0x1ea8c7);const _0x20ab85=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x10c0cf,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x20ab85['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x135ee6,_0x417aca,_0x3c54bd){super(_0x135ee6),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x135ee6),this['_errorView']=new rt(_0x135ee6),this['_editingView']=new tt(_0x135ee6,_0x3c54bd),this['_focusableView']=new _0x57c868(_0x135ee6),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x417aca),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'],_0x24f7ee=>{this['_addUploadcareImageEditorListeners'](_0x24f7ee);});}),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'](_0x1df71c,_0x3da280){const _0x4ad9bf='uc-cloud-image-editor',_0x37bfa5=_0x1df71c['querySelector'](_0x4ad9bf);if(_0x37bfa5)return _0x3da280(_0x37bfa5);const _0x261753=new MutationObserver(_0x38699b=>{const _0x1f7795=_0x38699b['filter'](_0x2389f5=>_0x2389f5['target']===_0x1df71c&&_0x2389f5['addedNodes']['length']>0x0&&_0x2389f5['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4ad9bf);_0x1f7795['length']&&(_0x261753['disconnect'](),_0x3da280(_0x1f7795[0x0]['addedNodes'][0x0]));});_0x261753['observe'](_0x1df71c,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x59533e){_0x59533e['addEventListener']('apply',_0x34b008=>{this['fire']('apply',{'imageSrc':_0x34b008['detail']['cdnUrl']});}),_0x59533e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x31975a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2f93cf,_0x1a50b2,_0x2c1ad3){super(),this['_editor']=_0x2f93cf,this['_dialog']=_0x1a50b2,this['_imageElement']=_0x2c1ad3,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 _0x15c83a=this['_imageElement'],_0x10600f=_0x15c83a['getAttribute']('uploadcareImageId'),_0x29bcd7=_0x15c83a['getAttribute']('src');if(_0x10600f)await this['_loadImageInfo'](_0x10600f,_0x29bcd7);else{if(this['_imageCache']['has'](_0x29bcd7)){const _0x43d585=this['_imageCache']['get'](_0x29bcd7);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x43d585['url'],this['imageDimension']=_0x43d585['dimension'],this['imageId']=_0x43d585['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x24063b}=this['_editor'],t=_0x24063b['t'],_0x1575f3=new Z(_0x24063b,this['imageStatus'],this['_attributes']);_0x1575f3['bind']('status')['to'](this,'imageStatus'),_0x1575f3['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1575f3['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1575f3['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1575f3,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5bfd63,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1575f3,'position':_0x24e18f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1575f3['focus']();},'onHide':()=>{_0x1575f3['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2bb428=>!F(_0x2bb428,_0x1575f3['element'])}});}['_loadImageInfo'](_0x7681c6,_0x49d472){return C['getInfo'](_0x7681c6,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1d82ce=>{const {width:_0x1383cf,height:_0x20cb75}=_0x1d82ce['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x49d472,this['imageDimension']={'width':_0x1383cf,'height':_0x20cb75},this['imageId']=_0x7681c6;})['catch'](_0x541e7a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x541e7a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x27808a,_0x2d89cb){return this['_getImageAsFile'](_0x27808a)['then'](_0x4fe053=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2d89cb['signal'],'file':_0x4fe053,'onProgress':_0x2a2277=>{_0x2a2277&&_0x2a2277['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2a2277['value']));}}))['then'](_0x1c9d44=>{const {width:_0x1adf2c,height:_0x489123}=_0x1c9d44['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1c9d44['cdnUrl'],this['imageDimension']={'width':_0x1adf2c,'height':_0x489123},this['imageId']=_0x1c9d44['uuid'],this['imageUploadProgress']=null;const _0x31eb87=_0x27808a['getAttribute']('src');this['_imageCache']['set'](_0x31eb87,{'id':_0x1c9d44['uuid'],'url':_0x1c9d44['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x23cac5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x23cac5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x47122f,_0x4db91e){_0x47122f['on']('apply',(_0x16c9e4,_0x59ffbc)=>{this['_replaceImage'](_0x4db91e,_0x59ffbc['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x47122f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x47122f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x225e09,_0x236461,_0x59814d){const _0x1303f3=this['_editor'],{width:_0xf756b9,height:_0x11d200}=A(_0x236461,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x19d6d5,imageSources:_0x3cb968}=E(_0x236461,_0xf756b9);_0x1303f3['model']['change'](_0x42210b=>{if('$graveyard'===_0x225e09['root']['rootName']){_0x1303f3['execute']('insertImage',{'imageType':_0x225e09['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x225e09['getAttributes']()),'uploadcareImageId':_0x59814d,'src':_0x19d6d5,'sources':_0x3cb968,'width':_0xf756b9,'height':_0x11d200}});const _0x3f6c8f=_0x225e09['getChildren']();_0x225e09=_0x1303f3['model']['document']['selection']['getSelectedElement']();for(const _0x4449b8 of _0x3f6c8f)_0x42210b['append'](_0x42210b['cloneElement'](_0x4449b8),_0x225e09);}else _0x42210b['setSelection'](_0x225e09,'on'),_0x1303f3['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x225e09['getAttributes']()),'uploadcareImageId':_0x59814d,'src':_0x19d6d5,'sources':_0x3cb968,'width':_0xf756b9,'height':_0x11d200},_0x225e09);_0x42210b['setSelection'](_0x225e09,'on');});}async['_getImageAsFile'](_0x2aca6f){const _0x775d79=_0x142c83['window'],_0x51143c=_0x142c83['document']['location']['href'],_0x3de0e2=new _0x775d79['URL'](_0x2aca6f['getAttribute']('src'),_0x51143c);if('data:'===_0x3de0e2['protocol']){const _0x4d4f21=_0x3de0e2['href']['split'](','),_0x14ac98=_0x4d4f21[0x0]['match'](/:(.*?);/)[0x1],_0x1e091a=_0x14ac98['split']('/')[0x1],_0x2ea5a5=_0x775d79['atob'](_0x4d4f21[_0x4d4f21['length']-0x1]);let _0x69f528=_0x2ea5a5['length'];const _0x3a2b67=new _0x775d79['Uint8Array'](_0x69f528);for(;_0x69f528--;)_0x3a2b67[_0x69f528]=_0x2ea5a5['charCodeAt'](_0x69f528);return new _0x775d79['File']([_0x3a2b67],'image.'+_0x1e091a,{'type':_0x14ac98});}const _0x2dd0fd=_0x3de0e2['href']['split']('/'),_0xdb1798=_0x2dd0fd[_0x2dd0fd['length']-0x1],_0x5b00d2=_0xdb1798['split']('.')[0x1];return _0x775d79['fetch'](_0x3de0e2['href'])['then'](_0x27f2be=>_0x27f2be['clone']()['blob']())['then'](_0x2c8e22=>new _0x775d79['File']([_0x2c8e22],_0xdb1798,{'type':'image/'+_0x5b00d2}));}}class J extends _0x1b010c{['imageEditController'];static get['requires'](){return[_0x3dcc53];}['_isEditable'];constructor(_0x1ce13e){super(_0x1ce13e),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x31dc72){const _0x25693d=V(_0x31dc72);return _0x5213f7=>!(!_0x5213f7||!_0x5213f7['is']('element','imageBlock')&&!_0x5213f7['is']('element','imageInline'))&&(!!_0x5213f7['hasAttribute']('uploadcareImageId')||!!_0x5213f7['hasAttribute']('src')&&_0x25693d(_0x5213f7['getAttribute']('src')));}(_0x1ce13e['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x465cf2=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x465cf2);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x280abb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x280abb&&(_0x280abb['is']('element','imageBlock')||_0x280abb['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x3dcc53),_0x280abb),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x1b010c{['refresh'](){const _0x3e4d08=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3e4d08&&(_0x3e4d08['is']('element','imageBlock')||_0x3e4d08['is']('element','imageInline')));}['execute'](_0x4cfcbe){const _0x2ff0f1=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x9aee12=>{_0x9aee12['setAttributes'](_0x4cfcbe,_0x2ff0f1),_0x9aee12['removeAttribute']('srcset',_0x2ff0f1),_0x9aee12['removeAttribute']('sizes',_0x2ff0f1);});}}class g extends _0x5726b9{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x2ea444,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2f1af0}=this;_0x2f1af0['commands']['add']('uploadcareImageEdit',new J(_0x2f1af0)),_0x2f1af0['commands']['add']('uploadcareImageReplace',new O(_0x2f1af0));}}class j extends _0x5726b9{['_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 _0x3132eb=this['editor'];_0x3132eb['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1dfde2=>{const _0x4d8b87=_0x3132eb['commands']['get']('uploadcareImageEdit'),_0xd15591=new _0xb5b0a7(_0x1dfde2),t=_0x1dfde2['t'];return _0xd15591['set']({'icon':_0x5bfd63,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xd15591['bind']('isEnabled')['to'](_0x4d8b87),_0xd15591['bind']('isOn')['to'](_0x4d8b87,'isActive'),this['listenTo'](_0xd15591,'execute',()=>{_0x3132eb['execute']('uploadcareImageEdit'),_0x3132eb['editing']['view']['focus']();}),_0xd15591;}),this['_initConfig']();}['_initConfig'](){const _0x40d4d6=_0x1295f2(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x40d4d6),this['listenTo'](this['editor'],'destroy',()=>{_0x40d4d6['remove']();});}}class P extends _0x5726b9{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 _0x4cfb30,Command as _0x5e9925}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3b85d3,IconGooglePhotos as _0x1ebae7,IconGoogleDrive as _0x53765,IconFacebook as _0x19e88a,IconDropbox as _0x363375,IconUploadcareLink as _0xef41d0,IconUploadcareImageUpload as _0x5f265e,IconError as et,IconUploadcareImageEdit as _0x10f3f7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2d4be6,MenuBarMenuListItemButtonView as _0x252944,View as _0x1e89e6,FocusCycler as _0xcb77d1,Dialog as _0x511073,DialogViewPosition as _0x39b119,SpinnerView as _0x3c5a9e,IconView as at,Notification as _0xd66bec}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x123b1a,DomEmitterMixin as _0x184f6f,global as _0x3e8a54,getAncestors as _0x2e5b74,ObservableMixin as _0x2b5c1a,createElement as _0x3134cc,uid as _0x549092}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x47d4d6}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5bcbf7,info as _0x12bfdd}from'@uploadcare/upload-client';import*as _0x20b8e9 from'@uploadcare/file-uploader';var o=function(_0x2f2dfa){return _0x2f2dfa['Local']='local',_0x2f2dfa['URL']='url',_0x2f2dfa['Dropbox']='dropbox',_0x2f2dfa['GDrive']='gdrive',_0x2f2dfa['Facebook']='facebook',_0x2f2dfa['GPhotos']='gphotos',_0x2f2dfa['OneDrive']='onedrive',_0x2f2dfa;}({});function _(_0x4d91e3,_0x519f4d,_0x2f85ff){const t=_0x4d91e3['t'],_0x4eecb6=_0x4d91e3['t'];switch(_0x519f4d){case o['Local']:return{'text':_0x4eecb6('Insert'===_0x2f85ff?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4eecb6('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x2f85ff?_0x4eecb6('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4eecb6('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x2f85ff?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x2f85ff?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x2f85ff?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x2f85ff?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x2f85ff?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x519f4d;}}class e extends _0x4cfb30{['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 _0x512c14=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x44507a;for(const _0x223f5f in _0x512c14){const _0xe625f1=_0x223f5f,_0x48c77e=_0x512c14[_0xe625f1];if('uploadcareLicenseKeyValid'==_0x48c77e||'uploadcareLicenseKeyInvalid'==_0x48c77e||'uploadcareLicenseKeyExpired'==_0x48c77e||'uploadcareLicenseKeyDomainLimit'==_0x48c77e||'uploadcareLicenseKeyNotAllowed'==_0x48c77e||'uploadcareLicenseKeyEvaluationLimit'==_0x48c77e||'uploadcareLicenseKeyTrialLimit'==_0x48c77e||'uploadcareLicenseKeyUsageLimit'==_0x48c77e){delete _0x512c14[_0xe625f1],_0x44507a=_0x48c77e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x44507a&&_0x512c14['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x44507a&&_0x512c14['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x44507a&&_0x512c14['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x44507a&&_0x512c14['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x44507a&&_0x512c14['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x44507a&&_0x512c14['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x44507a&&_0x512c14['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x11798c}=this,_0x10d447=_0x11798c['commands']['get']('uploadcare');if(!_0x10d447)return;const _0xea7d2c=this['_normalizeConfigSourceList'](_0x11798c['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3086b0,_0x5e6c4e)=>{const _0x486322=this['_getIntegrationKey'](_0x5e6c4e['type']);return _0x3086b0[_0x486322]||(_0x3086b0[_0x486322]=[]),_0x3086b0[_0x486322]['push'](_0x5e6c4e),_0x3086b0;},{});_0x11798c['plugins']['has']('ImageInsertUI')&&_0x11798c['commands']['get']('uploadcare')&&Object['entries'](_0xea7d2c)['forEach'](([_0x40e99b,_0x271f94])=>{_0x11798c['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x40e99b,'observable':()=>_0x10d447,'buttonViewCreator':()=>this['_createToolbarButton'](_0x271f94),'formViewCreator':()=>this['_createDropdownButtons'](_0x271f94),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x271f94),'override':'assetManager'!==_0x40e99b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1ccc2b){const {locale:_0x46ed0c}=this['editor'];return _0x1ccc2b['map'](_0x41ecba=>{const _0x43255d=_(_0x46ed0c,_0x41ecba,'Insert');switch(_0x41ecba){case o['Local']:return{'icon':_0x5f265e,'type':o['Local'],..._0x43255d};case o['URL']:return{'icon':_0xef41d0,'type':o['URL'],..._0x43255d};case o['Dropbox']:return{'icon':_0x363375,'type':o['Dropbox'],..._0x43255d};case o['Facebook']:return{'icon':_0x19e88a,'type':o['Facebook'],..._0x43255d};case o['GDrive']:return{'icon':_0x53765,'type':o['GDrive'],..._0x43255d};case o['GPhotos']:return{'icon':_0x1ebae7,'type':o['GPhotos'],..._0x43255d};case o['OneDrive']:return{'icon':_0x3b85d3,'type':o['OneDrive'],..._0x43255d};}});}['_getIntegrationKey'](_0x142fe0){switch(_0x142fe0){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x157ec5,_0x4dea15){const _0x184bf7=this['editor'],_0x453cc9=new _0x157ec5(_0x184bf7['locale']),_0x2666e6=_0x184bf7['commands']['get']('uploadcare');return _0x453cc9['bind']('isEnabled')['to'](_0x2666e6),_0x453cc9['on']('execute',()=>{_0x2666e6['execute'](_0x4dea15);}),_0x453cc9;}['_createToolbarButton'](_0x510e47){const {locale:_0x18ca60}=this['editor'],_0x44fc7e=this['editor']['plugins']['get']('ImageInsertUI'),_0xd317c2=_0x510e47[0x0],_0xeae348=this['_createButton'](_0x2d4be6,_0xd317c2['type']);return _0xeae348['icon']=_0xd317c2['icon'],_0xeae348['bind']('label')['to'](_0x44fc7e,'isImageSelected',_0x19054a=>_(_0x18ca60,_0xd317c2['type'],_0x19054a?'Replace':'Insert')['text']),_0xeae348['tooltip']=!0x0,_0xeae348;}['_createDropdownButtons'](_0x2295c5){const {locale:_0x14876f}=this['editor'],_0x464bba=this['editor']['plugins']['get']('ImageInsertUI');return _0x2295c5['map'](_0x5aa507=>{const _0x11b003=this['_createButton'](_0x2d4be6,_0x5aa507['type']);return _0x11b003['withText']=!0x0,_0x11b003['icon']=_0x5aa507['icon'],_0x11b003['bind']('label')['to'](_0x464bba,'isImageSelected',_0x49519a=>_(_0x14876f,_0x5aa507['type'],_0x49519a?'Replace':'Insert')['text']),_0x11b003;});}['_createMenuBarButtons'](_0x41f848){return _0x41f848['map'](_0x350dda=>{const _0x2410c6=this['_createButton'](_0x252944,_0x350dda['type']);return _0x2410c6['icon']=_0x350dda['icon'],_0x2410c6['label']=_0x350dda['shortText'],_0x2410c6;});}}class q extends _0x1e89e6{['focusTracker'];['focusCycler'];constructor(_0x19e84f){super(_0x19e84f),this['focusTracker']=new _0x123b1a(),this['focusCycler']=new _0xcb77d1({'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(_0x34bdda){super(_0x34bdda),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(_0x37c1f4,_0x585856){const _0x1e7177=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1e6a7e=>_0x1e6a7e<=_0x585856)['map'](_0x48a89d=>_0x37c1f4['replace'](/\/$/,'')+'/-/resize/'+_0x48a89d+'x/\x20'+_0x48a89d+'w');return{'imageFallbackUrl':_0x37c1f4,'imageSources':[{'srcset':_0x1e7177['join'](',\x20'),'sizes':'(max-width:\x20'+_0x585856+'px)\x20100vw,\x20'+_0x585856+'px','type':'image/webp'}]};}function A(_0x4db959,_0x40821d,_0x1ea676){const _0x27d477=_0x4db959['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x27d477?parseInt(_0x27d477[0x1],0xa):_0x40821d,'height':_0x27d477?parseInt(_0x27d477[0x2],0xa):_0x1ea676};}function m(_0x4b1a28,_0x2da379){const _0x3f52b0=Object['create'](_0x184f6f),_0x40bd09=_0x4b1a28['plugins']['get']('ImageUtils'),_0x35d6eb=_0x4b1a28['editing']['mapper']['toViewElement'](_0x2da379),_0x554101=_0x40bd09['findViewImgElement'](_0x35d6eb),_0x54cbe2=_0x4b1a28['editing']['view']['domConverter']['viewToDom'](_0x554101),_0x505152=_0x2da379['getAttribute']('width'),_0x2f69b2=_0x2da379['getAttribute']('height'),_0x143668='image-processing';_0x4b1a28['editing']['view']['change'](_0x3c1a8f=>{_0x3c1a8f['addClass'](_0x143668,_0x35d6eb),_0x3c1a8f['setStyle']('aspect-ratio',_0x505152+'/'+_0x2f69b2,_0x554101);}),_0x3f52b0['listenTo'](_0x54cbe2,'load',()=>{_0x3f52b0['stopListening'](_0x54cbe2,'load'),_0x4b1a28['editing']['view']['change'](_0x43caa3=>{_0x43caa3['removeClass'](_0x143668,_0x35d6eb),_0x43caa3['removeStyle']('aspect-ratio',_0x554101);});});}function V(_0x5b6a85){if(Array['isArray'](_0x5b6a85)){const _0x4c1a2f=_0x5b6a85['map'](V);return _0x4d899d=>_0x4c1a2f['some'](_0x5c69dc=>_0x5c69dc(_0x4d899d));}if('origin'==_0x5b6a85){const _0x4ac65b=_0x3e8a54['window']['location']['origin'];return _0x135b34=>new URL(_0x135b34,_0x3e8a54['document']['baseURI'])['origin']==_0x4ac65b;}return'function'==typeof _0x5b6a85?_0x5b6a85:_0x5b6a85 instanceof RegExp?_0xa7a437=>!(!_0xa7a437['match'](_0x5b6a85)&&!_0xa7a437['replace'](/^https?:\/\//,'')['match'](_0x5b6a85)):()=>!0x1;}function F(_0x3a31a4,_0x1bc9c7){return _0x2e5b74(_0x3a31a4['target'])['includes'](_0x1bc9c7);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x2b5c1a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x48439d,_0x2db562,_0x1deaa5){super(),this['_editor']=_0x48439d,this['_editing']=_0x2db562,this['_dialog']=_0x48439d['plugins']['get'](_0x511073),this['_api']=_0x2db562['ctxElement']['getAPI'](),this['_type']=_0x1deaa5,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:_0x2fb7dd,model:_0x1619f6}=this['_editor'],_0x18da9f=_0x1619f6['document']['selection']['getSelectedElement'](),_0x481ca9=_0x18da9f&&(_0x18da9f['is']('element','imageBlock')||_0x18da9f['is']('element','imageInline'));this['_formView']=new S(_0x2fb7dd),this['_dialog']['show']({'id':'uploadCare','icon':_0x5f265e,'title':_(_0x2fb7dd,this['_type'],_0x481ca9?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x39b119['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x28fe80=>!F(_0x28fe80,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x110eb5}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x15b6f1=>{const _0x3677d9=_0x110eb5['length'];for(const _0x326946 of _0x110eb5){const _0x59d4ea=_0x326946===_0x110eb5[_0x3677d9-0x1],{cdnUrl:_0x329597,fileInfo:_0xfb6157}=_0x326946;if(!_0x329597||!_0xfb6157)continue;const {width:_0x35d213,height:_0xd0a191}=_0xfb6157['imageInfo'],_0x1caf7e=A(_0x329597,_0x35d213,_0xd0a191),_0x255ef1=E(_0x329597,_0x1caf7e['width']),_0x1916db={'id':_0xfb6157['uuid'],'type':'image','attributes':{'imageDimension':_0x1caf7e,..._0x255ef1}};this['_insertAsset'](_0x1916db,_0x59d4ea,_0x15b6f1);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xcb2efd=>{'idle'===_0xcb2efd['detail']['status']&&!_0xcb2efd['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x45e041,_0x119a85,_0x2a39eb){const _0x5ceec2=this['_editor']['model']['document']['selection'],_0x1a25e4=_0x5ceec2['getSelectedElement'](),_0x4d4f1f=!(!_0x1a25e4||!_0x1a25e4['is']('element','imageInline'));_0x2a39eb['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x45e041,_0x4d4f1f),_0x119a85||_0x2a39eb['setSelection'](_0x5ceec2['getLastPosition']());}['_insertImage'](_0x2747ce,_0x2f9791){const _0xdf10f9=this['_editor'],{imageDimension:_0x5b8486,imageFallbackUrl:_0x51b5b8,imageSources:_0x3bc7a1}=_0x2747ce['attributes'];_0xdf10f9['execute']('insertImage',{'imageType':_0x2f9791?'imageInline':null,'source':{'uploadcareImageId':_0x2747ce['id'],'src':_0x51b5b8,'sources':_0x3bc7a1,..._0x5b8486}});}}class n extends _0x5e9925{['_editing'];['_controller']=null;static get['requires'](){return[_0x511073,i];}constructor(_0x7e4509){super(_0x7e4509),this['_editing']=_0x7e4509['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x29c70f){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x29c70f);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x571bf9,publicKey:_0x5f2b33,signal:_0x21f81b,onProgress:_0x584022}){return _0x5bcbf7(_0x571bf9,{'publicKey':_0x5f2b33,'store':'auto','signal':_0x21f81b,'onProgress':_0x584022});}static['getInfo'](_0xdb7839,_0x3b4dfd){return _0x12bfdd(_0xdb7839,_0x3b4dfd);}}class p extends _0x4cfb30{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x47d4d6,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x57502a=this['editor'];if(!!!_0x57502a['config']['get']('uploadcare'))return;_0x57502a['plugins']['get'](_0x47d4d6)['createUploadAdapter']=_0x193aaa=>new x(_0x193aaa,_0x57502a),_0x57502a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5643da,{imageElement:_0x1cb2af,data:_0x2163f0})=>{_0x57502a['model']['change'](_0x4cdb82=>{_0x4cdb82['setAttribute']('uploadcareImageId',_0x2163f0['uploadcareImageId'],_0x1cb2af);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x215fbc,_0x824e92){this['loader']=_0x215fbc,this['editor']=_0x824e92,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4dab5a=this['editor']['config']['get']('uploadcare.pubkey'),_0xdf4eeb=await this['loader']['file'];return C['upload']({'file':_0xdf4eeb,'publicKey':_0x4dab5a,'signal':this['controller']['signal'],'onProgress':_0x697ced=>{_0x697ced&&_0x697ced['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x697ced['value']);}})['then'](async _0x52bf60=>{const {imageFallbackUrl:_0x5b83cc,imageSources:_0x26786b}=E(_0x52bf60['cdnUrl'],_0x52bf60['imageInfo']['width']);return{'uploadcareImageId':_0x52bf60['uuid'],'default':_0x5b83cc,'sources':_0x26786b};})['catch'](()=>{const _0x1f8e0d=t('Cannot\x20upload\x20file:')+('\x20'+_0xdf4eeb['name']+'.');return Promise['reject'](_0x1f8e0d);});}['abort'](){this['controller']['abort']();}}class i extends _0x4cfb30{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x511073];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x7f2823=this['editor'];_0x7f2823['commands']['add']('uploadcare',new n(_0x7f2823));}['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 _0x2ea5e1=_0x3e8a54['document']['querySelector']('input[uploadcare-file-input]');_0x2ea5e1&&_0x2ea5e1['remove']();}),async function(_0x33b883){const _0x3f7a65=_0x1853a4([0x37,0x70,0x41,0x4a,0x66,0x43,0x71,0x69,0x77,0x42,0x46,0x78,0x73,0x59,0x64,0x62,0x53,0x55,0x33,0x35,0x67,0x56,0x39,0x61,0x65,0x36,0x52,0x79,0x5a,0x7a,0x6e,0x38,0x4b,0x75,0x57,0x4d,0x48,0x72,0x50,0x49,0x76,0x47,0x31,0x63,0x4c,0x6f,0x45,0x68,0x4e,0x74,0x6b,0x34,0x6a,0x6d,0x51,0x6c,0x44,0x32,0x4f,0x30,0x58,0x54]),_0x5183ee=0x15557fc9,_0x1e0f28=0x15521fe9^_0x5183ee,_0x3d5dfe=window[_0x1853a4([0x44,0x61,0x74,0x65])][_0x1853a4([0x6e,0x6f,0x77])](),_0x180eda=_0x33b883[_0x1853a4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xadaca9=new window[(_0x1853a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x550ab3=>{_0x180eda[_0x1853a4([0x6f,0x6e,0x63,0x65])](_0x1853a4([0x72,0x65,0x61,0x64,0x79]),_0x550ab3);}),_0x23a053={[_0x1853a4([0x6b,0x74,0x79])]:_0x1853a4([0x45,0x43]),[_0x1853a4([0x75,0x73,0x65])]:_0x1853a4([0x73,0x69,0x67]),[_0x1853a4([0x63,0x72,0x76])]:_0x1853a4([0x50,0x2d,0x32,0x35,0x36]),[_0x1853a4([0x78])]:_0x1853a4([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]),[_0x1853a4([0x79])]:_0x1853a4([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]),[_0x1853a4([0x61,0x6c,0x67])]:_0x1853a4([0x45,0x53,0x32,0x35,0x36])},_0x3fe244=_0x180eda[_0x1853a4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1853a4([0x67,0x65,0x74])](_0x1853a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5268b3(){let _0x369623,_0x3e65c8=null,_0x1feb8d=null;try{if(_0x3fe244==_0x1853a4([0x47,0x50,0x4c]))return _0x1853a4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x369623=_0x1e8388(),!_0x369623)return _0x1853a4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x369623[_0x1853a4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1feb8d=_0x5281f5(_0x369623[_0x1853a4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x369623[_0x1853a4([0x6a,0x74,0x69])])),await _0x1b13da()?_0xdab2c7()?_0xaca9ff()?_0x1853a4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x530172()?(_0x369623[_0x1853a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1853a4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e65c8=_0x5046fd(_0x1853a4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x369623[_0x1853a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1853a4([0x74,0x72,0x69,0x61,0x6c])&&(_0x3e65c8=_0x5046fd(_0x1853a4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x13f81a()):_0x1853a4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1853a4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1853a4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x43b954){return _0x1853a4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xaca9ff(){const _0x233e45=[_0x1853a4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1853a4([0x74,0x72,0x69,0x61,0x6c])][_0x1853a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x369623[_0x1853a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3d5dfe/0x3e8:0xe10*_0x1e0f28;return _0x369623[_0x1853a4([0x65,0x78,0x70])]<_0x233e45;}function _0xdab2c7(){const _0x2b5bc3=_0x369623[_0x1853a4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2b5bc3&&(!!_0x2b5bc3[_0x1853a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1853a4([0x2a]))||!!_0x2b5bc3[_0x1853a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1853a4([0x55,0x50,0x4c,0x43])));}function _0x530172(){const _0xb2d9ac=_0x369623[_0x1853a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb2d9ac||0x0==_0xb2d9ac[_0x1853a4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x491c86}=new URL(window[_0x1853a4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xb2d9ac[_0x1853a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x491c86))return!0x0;const _0x303330=_0x491c86[_0x1853a4([0x73,0x70,0x6c,0x69,0x74])](_0x1853a4([0x2e]));return _0xb2d9ac[_0x1853a4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x184ac9=>_0x184ac9[_0x1853a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1853a4([0x2a])))[_0x1853a4([0x6d,0x61,0x70])](_0xb9c9e6=>_0xb9c9e6[_0x1853a4([0x73,0x70,0x6c,0x69,0x74])](_0x1853a4([0x2e])))[_0x1853a4([0x73,0x6f,0x6d,0x65])](_0x2ec4bc=>_0x303330[_0x1853a4([0x65,0x76,0x65,0x72,0x79])]((_0x466d9e,_0x1124b2)=>_0x2ec4bc[_0x1124b2]===_0x466d9e||_0x2ec4bc[_0x1124b2]===_0x1853a4([0x2a])));}function _0x13f81a(){return _0x3e65c8&&_0x1feb8d?new window[(_0x1853a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x527cd0,_0x2b53ce)=>{_0x3e65c8[_0x1853a4([0x74,0x68,0x65,0x6e])](_0x527cd0,_0x2b53ce),_0x1feb8d[_0x1853a4([0x74,0x68,0x65,0x6e])](_0x4cfd2c=>{_0x4cfd2c!=_0x1853a4([0x56,0x61,0x6c,0x69,0x64])&&_0x527cd0(_0x4cfd2c);},_0x2b53ce);}):_0x3e65c8||_0x1feb8d||_0x1853a4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5281f5(_0x45242a,_0x424d52){return new window[(_0x1853a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e3588=>{if(_0x50fd5a())return _0x4e3588(_0x1853a4([0x56,0x61,0x6c,0x69,0x64]));_0x6b3265(),_0x180eda[_0x1853a4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1853a4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c086b=!0x1;const _0x104461=_0x549092();function _0x1d37ec(_0x176e50){return!!_0x176e50&&(typeof _0x176e50===_0x1853a4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x176e50===_0x1853a4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x176e50[_0x1853a4([0x74,0x68,0x65,0x6e])]===_0x1853a4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x176e50[_0x1853a4([0x63,0x61,0x74,0x63,0x68])]===_0x1853a4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x29cc35(_0x389029){_0x87cd4c(_0x389029)[_0x1853a4([0x74,0x68,0x65,0x6e])](_0x541bc6=>{if(!_0x541bc6||_0x541bc6[_0x1853a4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1853a4([0x6f,0x6b]))return _0x1853a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x358a4f(_0x10915c(_0x104461+_0x424d52))!=_0x541bc6[_0x1853a4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1853a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1853a4([0x56,0x61,0x6c,0x69,0x64]);})[_0x1853a4([0x74,0x68,0x65,0x6e])](_0x2f9389=>(_0x3c159b(),_0x2f9389),()=>{const _0x443fac=_0x4a2ca6();return null==_0x443fac?(_0x3c159b(),_0x1853a4([0x56,0x61,0x6c,0x69,0x64])):_0x1853a4(_0x3d5dfe-_0x443fac>(0x3159fbc9^_0x5183ee)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1853a4([0x74,0x68,0x65,0x6e])](_0x4e3588)[_0x1853a4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e3588(_0x1853a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x168949=0x15639149^_0x5183ee;function _0x3c159b(){const _0x2040e7=_0x1853a4([0x6c,0x6c,0x63,0x74,0x2d])+_0x358a4f(_0x10915c(_0x45242a)),_0x1c3642=_0x11157d(_0x358a4f(window[_0x1853a4([0x4d,0x61,0x74,0x68])][_0x1853a4([0x63,0x65,0x69,0x6c])](_0x3d5dfe/_0x168949)));window[_0x1853a4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1853a4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2040e7,_0x1c3642);}function _0x4a2ca6(){const _0x5a2518=_0x1853a4([0x6c,0x6c,0x63,0x74,0x2d])+_0x358a4f(_0x10915c(_0x45242a)),_0x4d8bbd=window[_0x1853a4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1853a4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a2518);return _0x4d8bbd?window[_0x1853a4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11157d(_0x4d8bbd),0x10)*_0x168949:null;}function _0x87cd4c(_0x4aac45){return new window[(_0x1853a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ce4a6,_0x3be8df)=>{_0x4aac45[_0x1853a4([0x74,0x68,0x65,0x6e])](_0x1ce4a6,_0x3be8df),window[_0x1853a4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3be8df,0x1554ab09^_0x5183ee);});}}_0x180eda[_0x1853a4([0x6f,0x6e])](_0x1853a4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x383bec,_0x438886)=>{if(_0x438886[0x0]!=_0x45242a)return _0x4e3588(_0x1853a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x438886[0x1]={..._0x438886[0x1],[_0x1853a4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x104461};},{[_0x1853a4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1853a4([0x68,0x69,0x67,0x68])}),_0x180eda[_0x1853a4([0x6f,0x6e])](_0x1853a4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2ea5d2=>{_0x1d37ec(_0x2ea5d2[_0x1853a4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c086b=!0x0,_0x29cc35(_0x2ea5d2[_0x1853a4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1853a4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1853a4([0x6c,0x6f,0x77])}),_0xadaca9[_0x1853a4([0x74,0x68,0x65,0x6e])](()=>{_0x2c086b||_0x4e3588(_0x1853a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x50fd5a(){return _0x180eda[_0x1853a4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1853a4([0x76,0x69,0x65,0x77])][_0x1853a4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1853a4([0x61,0x75,0x74,0x6f]);}function _0x6b3265(){_0x180eda[_0x1853a4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1853a4([0x76,0x69,0x65,0x77])][_0x1853a4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1853a4([0x61,0x75,0x74,0x6f]);}}function _0x5046fd(_0xb64ae6){const _0x4bd4b5=[new window[(_0x1853a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x78c7ed=>setTimeout(_0x78c7ed,0x155c4105^_0x5183ee)),_0xadaca9[_0x1853a4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1853a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fcc3b=>{let _0xe2f2ba=0x0;_0x180eda[_0x1853a4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1853a4([0x6f,0x6e])](_0x1853a4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x245815,_0x3dc491)=>{_0x3dc491[0x0][_0x1853a4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xe2f2ba++,_0xe2f2ba==(0x15557e31^_0x5183ee)&&(_0x2fcc3b(),_0x245815[_0x1853a4([0x6f,0x66,0x66])]());});}))];return window[_0x1853a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1853a4([0x72,0x61,0x63,0x65])](_0x4bd4b5)[_0x1853a4([0x74,0x68,0x65,0x6e])](()=>_0xb64ae6);}async function _0x2c283d(){await _0xadaca9,_0x180eda[_0x1853a4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1853a4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ef3f8,_0x180eda[_0x1853a4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1853a4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ef3f8,_0x180eda[_0x1853a4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1853a4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x55b8eb(_0x110ac5){const _0x2a7bfe=_0x5e1cd7();_0x180eda[_0x2a7bfe]=_0x1853a4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x110ac5,_0x110ac5!=_0x1853a4([0x56,0x61,0x6c,0x69,0x64])&&_0x2c283d();}function _0x5e1cd7(){const _0x405f37=window[_0x1853a4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1853a4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1853a4([0x6e,0x6f,0x77])]())[_0x1853a4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1853a4([0x2e]),'');let _0x4d3194=_0x1853a4([0x70]);for(let _0x3bb177=0x0;_0x3bb177<_0x405f37[_0x1853a4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3bb177+=0x2){let _0x20f4cc=window[_0x1853a4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x405f37[_0x1853a4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3bb177,_0x3bb177+0x2));_0x20f4cc>=_0x3f7a65[_0x1853a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x20f4cc-=_0x3f7a65[_0x1853a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4d3194+=_0x3f7a65[_0x20f4cc];}return _0x4d3194;}function _0x1e8388(){const _0x42e50e=_0x3fe244[_0x1853a4([0x73,0x70,0x6c,0x69,0x74])](_0x1853a4([0x2e]));if(0x3!=_0x42e50e[_0x1853a4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x41fb3c(_0x42e50e[0x1]);function _0x41fb3c(_0x2c9b23){const _0x49f7da=_0x4025a9(_0x2c9b23);return _0x49f7da&&_0x437b74()?_0x49f7da:null;function _0x437b74(){const _0x5c2899=_0x49f7da[_0x1853a4([0x6a,0x74,0x69])],_0x54710d=window[_0x1853a4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c2899[_0x1853a4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c2899[_0x1853a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x38ffa9={..._0x49f7da,[_0x1853a4([0x6a,0x74,0x69])]:_0x5c2899[_0x1853a4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5c2899[_0x1853a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x38ffa9[_0x1853a4([0x76,0x63])],_0x10915c(_0x38ffa9)==_0x54710d;}}}async function _0x1b13da(){let _0x5be97c=!0x0;try{const _0x4463ac=_0x3fe244[_0x1853a4([0x73,0x70,0x6c,0x69,0x74])](_0x1853a4([0x2e])),[_0x547ac1,_0x46e6f6,_0x5371f4]=_0x4463ac;return _0x38ea31(_0x547ac1),await _0x570575(_0x547ac1,_0x46e6f6,_0x5371f4),_0x5be97c;}catch(_0x441c6c){return!0x1;}function _0x38ea31(_0x2e2de5){const _0x322d97=_0x4025a9(_0x2e2de5);_0x322d97&&_0x322d97[_0x1853a4([0x61,0x6c,0x67])]==_0x1853a4([0x45,0x53,0x32,0x35,0x36])||(_0x5be97c=!0x1);}async function _0x570575(_0x23bdc5,_0xc34cfc,_0x46e7b0){const _0x3f3fea=window[_0x1853a4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1853a4([0x66,0x72,0x6f,0x6d])](_0x38e858(_0x46e7b0),_0x4d4e3e=>_0x4d4e3e[_0x1853a4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x18b0d9=new window[(_0x1853a4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1853a4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x23bdc5+_0x1853a4([0x2e])+_0xc34cfc),_0x2d923c=window[_0x1853a4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1853a4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2d923c)return;const _0x49e1a5=await _0x2d923c[_0x1853a4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1853a4([0x6a,0x77,0x6b]),_0x23a053,{[_0x1853a4([0x6e,0x61,0x6d,0x65])]:_0x1853a4([0x45,0x43,0x44,0x53,0x41]),[_0x1853a4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1853a4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1853a4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2d923c[_0x1853a4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1853a4([0x6e,0x61,0x6d,0x65])]:_0x1853a4([0x45,0x43,0x44,0x53,0x41]),[_0x1853a4([0x68,0x61,0x73,0x68])]:{[_0x1853a4([0x6e,0x61,0x6d,0x65])]:_0x1853a4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x49e1a5,_0x3f3fea,_0x18b0d9)||(_0x5be97c=!0x1);}}function _0x4025a9(_0x452ba1){return _0x452ba1[_0x1853a4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1853a4([0x65,0x79]))?JSON[_0x1853a4([0x70,0x61,0x72,0x73,0x65])](_0x38e858(_0x452ba1)):null;}function _0x38e858(_0x2453dc){return window[_0x1853a4([0x61,0x74,0x6f,0x62])](_0x2453dc[_0x1853a4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1853a4([0x2b]))[_0x1853a4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1853a4([0x2f])));}function _0x10915c(_0x363ac3){let _0x5348ce=0x1505;function _0x3a1c19(_0x246029){for(let _0x5755c3=0x0;_0x5755c3<_0x246029[_0x1853a4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5755c3++){const _0x32e1cd=_0x246029[_0x1853a4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5755c3);_0x5348ce=(_0x5348ce<<0x5)+_0x5348ce+_0x32e1cd,_0x5348ce&=_0x5348ce;}}function _0x5a6107(_0x222306){Array[_0x1853a4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x222306)?_0x222306[_0x1853a4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a6107):_0x222306&&typeof _0x222306==_0x1853a4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1853a4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x222306)[_0x1853a4([0x73,0x6f,0x72,0x74])]()[_0x1853a4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x53406b,_0x22c50b])=>{_0x3a1c19(_0x53406b),_0x5a6107(_0x22c50b);}):_0x3a1c19(window[_0x1853a4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x222306));}return _0x5a6107(_0x363ac3),_0x5348ce>>>0x0;}function _0x358a4f(_0x3fe8e4){return _0x3fe8e4[_0x1853a4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1853a4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1853a4([0x30]));}function _0x11157d(_0x54145d){return _0x54145d[_0x1853a4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1853a4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1853a4([0x6a,0x6f,0x69,0x6e])]('');}function _0x4ef3f8(){}function _0x1853a4(_0x345ca8){return _0x345ca8['map'](_0x42e206=>String['fromCharCode'](_0x42e206))['join']('');}_0x55b8eb(await _0x5268b3());}(this);}['_initSchema'](){const _0x22ffcb=this['editor']['model']['schema'];_0x22ffcb['isRegistered']('imageBlock')&&_0x22ffcb['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x22ffcb['isRegistered']('imageInline')&&_0x22ffcb['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x536508=this['editor'];_0x536508['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x536508['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x49a6f2=>_0x49a6f2['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x289320=_0x536508['commands']['get']('replaceImageSource');_0x289320&&this['listenTo'](_0x289320,'cleanupImage',(_0x254287,[_0x2a9abf,_0x452fd1])=>{_0x2a9abf['removeAttribute']('uploadcareImageId',_0x452fd1);});}['_initConfig'](){const _0x337d44=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1ecef4=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3134cc(_0x3e8a54['document'],'uc-config',{..._0x337d44,'pubkey':_0x1ecef4,'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']=_0x1c8377=>{if('closeMax'==_0x1c8377)return'#uc-icon-arrow-down';},_0x3e8a54['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3134cc(_0x3e8a54['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x3e8a54['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4791f2=this['editor']['commands']['get']('insertImage');_0x4791f2&&this['listenTo'](_0x4791f2,'execute',()=>{const _0x5aa86a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5aa86a&&_0x5aa86a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x5aa86a);});});const _0x3e444e=this['editor']['commands']['get']('uploadcareImageReplace');_0x3e444e&&this['listenTo'](_0x3e444e,'execute',()=>{const _0x289c89=this['editor']['model']['document']['selection']['getSelectedElement']();_0x289c89&&_0x289c89['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x289c89);});});}}class u extends _0x4cfb30{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x58c5b8){super(_0x58c5b8),_0x58c5b8['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x20b8e9['defineComponents'](_0x20b8e9);}}class ta extends _0x1e89e6{constructor(_0x223a61){super(_0x223a61);const t=_0x223a61['t'],_0x203744=this['bindTemplate'],_0xb77e58=new _0x3c5a9e();_0xb77e58['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':[_0xb77e58,{'text':_0x203744['to']('imageUploadProgress',_0x39869=>t('Loading\x20image...')+'\x20('+(_0x39869||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 _0x1e89e6{constructor(_0x2b23a){super(_0x2b23a);const t=_0x2b23a['t'];this['set']('errorType',null);const _0x58bbea=new _0x2d4be6(_0x2b23a);_0x58bbea['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x58bbea['withText']=!0x0,_0x58bbea['class']='ck-button-action',_0x58bbea['on']('execute',()=>{this['fire']('retry');}),_0x58bbea['bind']('isVisible')['to'](this,'errorType',_0x16cf05=>'NotFound'!==_0x16cf05);const _0x32ceb0=new at();_0x32ceb0['content']=et,_0x32ceb0['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1eddd2=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':[_0x32ceb0,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1eddd2['to']('errorType',_0x550d99=>t('NotFound'!==_0x550d99?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x58bbea]},{'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 _0x1e89e6{constructor(_0x2d66f0,_0x470b99){super(_0x2d66f0);const _0x440792=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x470b99,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x440792['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x567f6c,_0x5c5e70,_0x403b96){super(_0x567f6c),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x567f6c),this['_errorView']=new rt(_0x567f6c),this['_editingView']=new tt(_0x567f6c,_0x403b96),this['_focusableView']=new _0x1e89e6(_0x567f6c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5c5e70),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'],_0x2bfcef=>{this['_addUploadcareImageEditorListeners'](_0x2bfcef);});}),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'](_0x5833ad,_0x912084){const _0x1a6467='uc-cloud-image-editor',_0x496b45=_0x5833ad['querySelector'](_0x1a6467);if(_0x496b45)return _0x912084(_0x496b45);const _0x446426=new MutationObserver(_0x253d5e=>{const _0x2946d4=_0x253d5e['filter'](_0x4314fb=>_0x4314fb['target']===_0x5833ad&&_0x4314fb['addedNodes']['length']>0x0&&_0x4314fb['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1a6467);_0x2946d4['length']&&(_0x446426['disconnect'](),_0x912084(_0x2946d4[0x0]['addedNodes'][0x0]));});_0x446426['observe'](_0x5833ad,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5f4238){_0x5f4238['addEventListener']('apply',_0x2a271b=>{this['fire']('apply',{'imageSrc':_0x2a271b['detail']['cdnUrl']});}),_0x5f4238['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x2b5c1a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x322fd9,_0x1422a4,_0x494cf4){super(),this['_editor']=_0x322fd9,this['_dialog']=_0x1422a4,this['_imageElement']=_0x494cf4,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 _0x4ce29d=this['_imageElement'],_0x5c10fd=_0x4ce29d['getAttribute']('uploadcareImageId'),_0x4490ca=_0x4ce29d['getAttribute']('src');if(_0x5c10fd)await this['_loadImageInfo'](_0x5c10fd,_0x4490ca);else{if(this['_imageCache']['has'](_0x4490ca)){const _0x198919=this['_imageCache']['get'](_0x4490ca);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x198919['url'],this['imageDimension']=_0x198919['dimension'],this['imageId']=_0x198919['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5781cf}=this['_editor'],t=_0x5781cf['t'],_0x4c2140=new Z(_0x5781cf,this['imageStatus'],this['_attributes']);_0x4c2140['bind']('status')['to'](this,'imageStatus'),_0x4c2140['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4c2140['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4c2140['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4c2140,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x10f3f7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4c2140,'position':_0x39b119['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4c2140['focus']();},'onHide':()=>{_0x4c2140['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x49c39a=>!F(_0x49c39a,_0x4c2140['element'])}});}['_loadImageInfo'](_0x2b923f,_0x4f8e21){return C['getInfo'](_0x2b923f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5605e2=>{const {width:_0x4331f2,height:_0x35c87e}=_0x5605e2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4f8e21,this['imageDimension']={'width':_0x4331f2,'height':_0x35c87e},this['imageId']=_0x2b923f;})['catch'](_0x2a01e3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2a01e3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x25fed3,_0x4d6b02){return this['_getImageAsFile'](_0x25fed3)['then'](_0x485fef=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4d6b02['signal'],'file':_0x485fef,'onProgress':_0x1848cc=>{_0x1848cc&&_0x1848cc['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1848cc['value']));}}))['then'](_0x1f90ad=>{const {width:_0x132b10,height:_0x16d011}=_0x1f90ad['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1f90ad['cdnUrl'],this['imageDimension']={'width':_0x132b10,'height':_0x16d011},this['imageId']=_0x1f90ad['uuid'],this['imageUploadProgress']=null;const _0x2cc300=_0x25fed3['getAttribute']('src');this['_imageCache']['set'](_0x2cc300,{'id':_0x1f90ad['uuid'],'url':_0x1f90ad['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5396ae=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5396ae['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x524a93,_0x1283bb){_0x524a93['on']('apply',(_0x5796d7,_0x40cc9c)=>{this['_replaceImage'](_0x1283bb,_0x40cc9c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x524a93['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x524a93['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xaa1f02,_0x3f83cc,_0x4914bd){const _0x1f4476=this['_editor'],{width:_0xaee779,height:_0x476845}=A(_0x3f83cc,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1268ac,imageSources:_0x38a75b}=E(_0x3f83cc,_0xaee779);_0x1f4476['model']['change'](_0x50dccf=>{if('$graveyard'===_0xaa1f02['root']['rootName']){_0x1f4476['execute']('insertImage',{'imageType':_0xaa1f02['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xaa1f02['getAttributes']()),'uploadcareImageId':_0x4914bd,'src':_0x1268ac,'sources':_0x38a75b,'width':_0xaee779,'height':_0x476845}});const _0x173041=_0xaa1f02['getChildren']();_0xaa1f02=_0x1f4476['model']['document']['selection']['getSelectedElement']();for(const _0x401313 of _0x173041)_0x50dccf['append'](_0x50dccf['cloneElement'](_0x401313),_0xaa1f02);}else _0x50dccf['setSelection'](_0xaa1f02,'on'),_0x1f4476['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xaa1f02['getAttributes']()),'uploadcareImageId':_0x4914bd,'src':_0x1268ac,'sources':_0x38a75b,'width':_0xaee779,'height':_0x476845},_0xaa1f02);_0x50dccf['setSelection'](_0xaa1f02,'on');});}async['_getImageAsFile'](_0x17f200){const _0x52ce05=_0x3e8a54['window'],_0xd5bc03=_0x3e8a54['document']['location']['href'],_0x145f6e=new _0x52ce05['URL'](_0x17f200['getAttribute']('src'),_0xd5bc03);if('data:'===_0x145f6e['protocol']){const _0x3bed56=_0x145f6e['href']['split'](','),_0x5ebb49=_0x3bed56[0x0]['match'](/:(.*?);/)[0x1],_0x3e108f=_0x5ebb49['split']('/')[0x1],_0x220db1=_0x52ce05['atob'](_0x3bed56[_0x3bed56['length']-0x1]);let _0x49058a=_0x220db1['length'];const _0x16bc7a=new _0x52ce05['Uint8Array'](_0x49058a);for(;_0x49058a--;)_0x16bc7a[_0x49058a]=_0x220db1['charCodeAt'](_0x49058a);return new _0x52ce05['File']([_0x16bc7a],'image.'+_0x3e108f,{'type':_0x5ebb49});}const _0x4ef196=_0x145f6e['href']['split']('/'),_0x250516=_0x4ef196[_0x4ef196['length']-0x1],_0x2fd8c7=_0x250516['split']('.')[0x1];return _0x52ce05['fetch'](_0x145f6e['href'])['then'](_0x2f5d33=>_0x2f5d33['clone']()['blob']())['then'](_0x49f5ee=>new _0x52ce05['File']([_0x49f5ee],_0x250516,{'type':'image/'+_0x2fd8c7}));}}class J extends _0x5e9925{['imageEditController'];static get['requires'](){return[_0x511073];}['_isEditable'];constructor(_0xe1a15a){super(_0xe1a15a),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2e00c9){const _0xff1f92=V(_0x2e00c9);return _0x3cfad5=>!(!_0x3cfad5||!_0x3cfad5['is']('element','imageBlock')&&!_0x3cfad5['is']('element','imageInline'))&&(!!_0x3cfad5['hasAttribute']('uploadcareImageId')||!!_0x3cfad5['hasAttribute']('src')&&_0xff1f92(_0x3cfad5['getAttribute']('src')));}(_0xe1a15a['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x525a19=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x525a19);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4a0b68=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4a0b68&&(_0x4a0b68['is']('element','imageBlock')||_0x4a0b68['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x511073),_0x4a0b68),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x5e9925{['refresh'](){const _0xbe0a67=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xbe0a67&&(_0xbe0a67['is']('element','imageBlock')||_0xbe0a67['is']('element','imageInline')));}['execute'](_0x51bf27){const _0x25e6b3=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3cc91e=>{_0x3cc91e['setAttributes'](_0x51bf27,_0x25e6b3),_0x3cc91e['removeAttribute']('srcset',_0x25e6b3),_0x3cc91e['removeAttribute']('sizes',_0x25e6b3);});}}class g extends _0x4cfb30{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0xd66bec,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x16d6c1}=this;_0x16d6c1['commands']['add']('uploadcareImageEdit',new J(_0x16d6c1)),_0x16d6c1['commands']['add']('uploadcareImageReplace',new O(_0x16d6c1));}}class j extends _0x4cfb30{['_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 _0x84c07c=this['editor'];_0x84c07c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4f4631=>{const _0x36b5e5=_0x84c07c['commands']['get']('uploadcareImageEdit'),_0x4a5f19=new _0x2d4be6(_0x4f4631),t=_0x4f4631['t'];return _0x4a5f19['set']({'icon':_0x10f3f7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4a5f19['bind']('isEnabled')['to'](_0x36b5e5),_0x4a5f19['bind']('isOn')['to'](_0x36b5e5,'isActive'),this['listenTo'](_0x4a5f19,'execute',()=>{_0x84c07c['execute']('uploadcareImageEdit'),_0x84c07c['editing']['view']['focus']();}),_0x4a5f19;}),this['_initConfig']();}['_initConfig'](){const _0x2552b6=_0x3134cc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2552b6),this['listenTo'](this['editor'],'destroy',()=>{_0x2552b6['remove']();});}}class P extends _0x4cfb30{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-20250220.0",
3
+ "version": "0.0.0-nightly-next-20250221.0",
4
4
  "description": "Uploadcare feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,14 +23,14 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20250220.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20250220.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20250220.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20250220.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20250220.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20250220.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20250220.0",
33
- "ckeditor5": "0.0.0-nightly-next-20250220.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20250221.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20250221.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20250221.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20250221.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20250221.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20250221.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20250221.0",
33
+ "ckeditor5": "0.0.0-nightly-next-20250221.0",
34
34
  "@uploadcare/file-uploader": "1.12.0",
35
35
  "@uploadcare/upload-client": "6.14.1"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x50c9e3=_0x1b6f;(function(_0x5553d8,_0x4cabcf){const _0x4142ca=_0x1b6f,_0x2bd0ed=_0x5553d8();while(!![]){try{const _0x531f40=parseInt(_0x4142ca(0x193))/0x1+-parseInt(_0x4142ca(0x1b1))/0x2*(parseInt(_0x4142ca(0x196))/0x3)+parseInt(_0x4142ca(0x183))/0x4*(parseInt(_0x4142ca(0x1a9))/0x5)+-parseInt(_0x4142ca(0x1d3))/0x6*(parseInt(_0x4142ca(0x1af))/0x7)+-parseInt(_0x4142ca(0x187))/0x8*(-parseInt(_0x4142ca(0x1a0))/0x9)+parseInt(_0x4142ca(0x1d2))/0xa*(parseInt(_0x4142ca(0x19e))/0xb)+-parseInt(_0x4142ca(0x1c9))/0xc;if(_0x531f40===_0x4cabcf)break;else _0x2bd0ed['push'](_0x2bd0ed['shift']());}catch(_0x475a0f){_0x2bd0ed['push'](_0x2bd0ed['shift']());}}}(_0x241e,0x5ed02));import{Plugin as _0x4e11bb}from'ckeditor5/src/core.js';function _0x241e(){const _0x3f0866=['uploadcareImageReplace','106315ttPZRq','model','4747797ivUvBk','config','appendChild','_initCtx','execute','destroy','elementToAttribute','selection','iconHrefResolver','75pMhceb','commands','add','extend','_configElement','requires','133MHwdZC','editor','1572TSZctw','attributeToAttribute','document','schema','isRegistered','imageInline','href','querySelector','remove','_initConfig','uploadcare.pubkey','afterInit','get','replaceImageSource','fromCharCode','view','init','contentLanguage','true','render','getAttribute','PictureEditing','once','imageBlock','13090560sAJwqT','getSelectedElement','uploader','uc-config','uc-upload-ctx-provider','data-uc-image-id','cleanupImage','removeAttribute','locale','510jHXaYP','116916vDsnOv','listenTo','uploadcare.uploader','#uc-icon-arrow-down','_initConversion','configElement','201548uoqglQ','ctxElement','editing','insertImage','8dpJqCD','uploadcareImageId','upcast','downcast','for','conversion','pluginName','\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','isPremiumPlugin','map','_ctxElement','UploadcareEditing','251637dxdmhn','_initSchema','uploadcare','681cUghrn','body','isOfficialPlugin','input[uploadcare-file-input]','closeMax','join','_initImageProcessingIndicator'];_0x241e=function(){return _0x3f0866;};return _0x241e();}import{Dialog as _0x33febc}from'ckeditor5/src/ui.js';function _0x1b6f(_0x5d9c32,_0x392b99){const _0x241e89=_0x241e();return _0x1b6f=function(_0x1b6f85,_0x1fb2ff){_0x1b6f85=_0x1b6f85-0x181;let _0x5cd7a6=_0x241e89[_0x1b6f85];return _0x5cd7a6;},_0x1b6f(_0x5d9c32,_0x392b99);}import{createElement as _0x4038ae,global as _0x537e4e,uid as _0x26808d}from'ckeditor5/src/utils.js';import _0x23efa9 from'./uploadcarecommand.js';import _0x4502ef from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x48266a}from'./utils/editingutils.js';export default class i extends _0x4e11bb{[_0x50c9e3(0x1ad)]=null;[_0x50c9e3(0x191)]=null;static get[_0x50c9e3(0x18d)](){const _0x330bb8=_0x50c9e3;return _0x330bb8(0x192);}static get[_0x50c9e3(0x1ae)](){const _0x430fa4=_0x50c9e3;return[_0x430fa4(0x1c6),_0x4502ef,_0x33febc];}static get[_0x50c9e3(0x198)](){return!0x0;}static get[_0x50c9e3(0x18f)](){return!0x0;}get[_0x50c9e3(0x182)](){const _0x5681=_0x50c9e3;return this[_0x5681(0x1ad)];}get[_0x50c9e3(0x184)](){const _0x45840c=_0x50c9e3;return this[_0x45840c(0x191)];}[_0x50c9e3(0x1c1)](){const _0x1859eb=_0x50c9e3,_0x583c00=this[_0x1859eb(0x1b0)];_0x583c00[_0x1859eb(0x1aa)][_0x1859eb(0x1ab)](_0x1859eb(0x195),new _0x23efa9(_0x583c00));}[_0x50c9e3(0x1bc)](){const _0x344afc=_0x50c9e3;this[_0x344afc(0x194)](),this[_0x344afc(0x181)](),this[_0x344afc(0x1ba)](),this[_0x344afc(0x1a3)](),this[_0x344afc(0x19c)](),this[_0x344afc(0x1d4)](this[_0x344afc(0x1b0)],_0x344afc(0x1a5),()=>{const _0x1ec355=_0x344afc;this[_0x1ec355(0x1ad)]&&(this[_0x1ec355(0x1ad)][_0x1ec355(0x1b9)](),this[_0x1ec355(0x1ad)]=null),this[_0x1ec355(0x191)]&&(this[_0x1ec355(0x191)][_0x1ec355(0x1b9)](),this[_0x1ec355(0x191)]=null);const _0x2c2b16=_0x537e4e[_0x1ec355(0x1b3)][_0x1ec355(0x1b8)](_0x1ec355(0x199));_0x2c2b16&&_0x2c2b16[_0x1ec355(0x1b9)]();}),async function(_0x53a87a){const _0x2c9e68=_0x431b23([0x63,0x41,0x74,0x69,0x66,0x76,0x6b,0x6a,0x78,0x77,0x6c,0x54,0x50,0x44,0x62,0x43,0x35,0x4b,0x59,0x4d,0x31,0x4e,0x75,0x42,0x30,0x4f,0x33,0x6e,0x4a,0x4c,0x70,0x6f,0x34,0x55,0x52,0x51,0x67,0x36,0x53,0x49,0x6d,0x46,0x73,0x68,0x58,0x72,0x45,0x7a,0x47,0x37,0x32,0x71,0x61,0x56,0x57,0x5a,0x38,0x64,0x65,0x79,0x48,0x39]),_0x3c2e7f=0x524c4791,_0x1b0262=0x524b2799^_0x3c2e7f,_0x134c47=window[_0x431b23([0x44,0x61,0x74,0x65])][_0x431b23([0x6e,0x6f,0x77])](),_0x3084bb=_0x53a87a[_0x431b23([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xae0e9b=new window[(_0x431b23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f04f6=>{_0x3084bb[_0x431b23([0x6f,0x6e,0x63,0x65])](_0x431b23([0x72,0x65,0x61,0x64,0x79]),_0x2f04f6);}),_0x4ab85b={[_0x431b23([0x6b,0x74,0x79])]:_0x431b23([0x45,0x43]),[_0x431b23([0x75,0x73,0x65])]:_0x431b23([0x73,0x69,0x67]),[_0x431b23([0x63,0x72,0x76])]:_0x431b23([0x50,0x2d,0x32,0x35,0x36]),[_0x431b23([0x78])]:_0x431b23([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]),[_0x431b23([0x79])]:_0x431b23([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]),[_0x431b23([0x61,0x6c,0x67])]:_0x431b23([0x45,0x53,0x32,0x35,0x36])},_0x375bc3=_0x3084bb[_0x431b23([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x431b23([0x67,0x65,0x74])](_0x431b23([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2e1878(){let _0x494c46,_0x3b5e72=null,_0x3829d8=null;try{if(_0x375bc3==_0x431b23([0x47,0x50,0x4c]))return _0x431b23([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x494c46=_0x2c8be4(),!_0x494c46)return _0x431b23([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x494c46[_0x431b23([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3829d8=_0x490aa3(_0x494c46[_0x431b23([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x494c46[_0x431b23([0x6a,0x74,0x69])])),await _0xcc289()?_0x22cb81()?_0x32c40e()?_0x431b23([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x219322()?(_0x494c46[_0x431b23([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x431b23([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b5e72=_0x132b73(_0x431b23([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x494c46[_0x431b23([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x431b23([0x74,0x72,0x69,0x61,0x6c])&&(_0x3b5e72=_0x132b73(_0x431b23([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3d9b01()):_0x431b23([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x431b23([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x431b23([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xdc74cb){return _0x431b23([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x32c40e(){const _0x208738=[_0x431b23([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x431b23([0x74,0x72,0x69,0x61,0x6c])][_0x431b23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x494c46[_0x431b23([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x134c47/0x3e8:0xe10*_0x1b0262;return _0x494c46[_0x431b23([0x65,0x78,0x70])]<_0x208738;}function _0x22cb81(){const _0x22bd49=_0x494c46[_0x431b23([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x22bd49&&(!!_0x22bd49[_0x431b23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x431b23([0x2a]))||!!_0x22bd49[_0x431b23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x431b23([0x55,0x50,0x4c,0x43])));}function _0x219322(){const _0x284976=_0x1b6f,_0x5dcaa1=_0x494c46[_0x431b23([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5dcaa1||0x0==_0x5dcaa1[_0x431b23([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1c61a7}=new URL(window[_0x431b23([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x284976(0x1b7)]);if(_0x5dcaa1[_0x431b23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c61a7))return!0x0;const _0x554c08=_0x1c61a7[_0x431b23([0x73,0x70,0x6c,0x69,0x74])](_0x431b23([0x2e]));return _0x5dcaa1[_0x431b23([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e5555=>_0x1e5555[_0x431b23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x431b23([0x2a])))[_0x431b23([0x6d,0x61,0x70])](_0x395e65=>_0x395e65[_0x431b23([0x73,0x70,0x6c,0x69,0x74])](_0x431b23([0x2e])))[_0x431b23([0x73,0x6f,0x6d,0x65])](_0x1933c6=>_0x554c08[_0x431b23([0x65,0x76,0x65,0x72,0x79])]((_0x2cf8d9,_0x1d6610)=>_0x1933c6[_0x1d6610]===_0x2cf8d9||_0x1933c6[_0x1d6610]===_0x431b23([0x2a])));}function _0x3d9b01(){return _0x3b5e72&&_0x3829d8?new window[(_0x431b23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b07a2,_0x36f0c3)=>{_0x3b5e72[_0x431b23([0x74,0x68,0x65,0x6e])](_0x2b07a2,_0x36f0c3),_0x3829d8[_0x431b23([0x74,0x68,0x65,0x6e])](_0x3a3fbc=>{_0x3a3fbc!=_0x431b23([0x56,0x61,0x6c,0x69,0x64])&&_0x2b07a2(_0x3a3fbc);},_0x36f0c3);}):_0x3b5e72||_0x3829d8||_0x431b23([0x56,0x61,0x6c,0x69,0x64]);}}function _0x490aa3(_0xa2f857,_0x1a46be){return new window[(_0x431b23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50c732=>{if(_0x465b37())return _0x50c732(_0x431b23([0x56,0x61,0x6c,0x69,0x64]));_0x2172e3(),_0x3084bb[_0x431b23([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x431b23([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1fb35e=!0x1;const _0x5660bb=_0x26808d();function _0x117c55(_0x57c440){return!!_0x57c440&&(typeof _0x57c440===_0x431b23([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57c440===_0x431b23([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57c440[_0x431b23([0x74,0x68,0x65,0x6e])]===_0x431b23([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57c440[_0x431b23([0x63,0x61,0x74,0x63,0x68])]===_0x431b23([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4359f6(_0x4e68ec){_0x56f4fb(_0x4e68ec)[_0x431b23([0x74,0x68,0x65,0x6e])](_0x213ecc=>{if(!_0x213ecc||_0x213ecc[_0x431b23([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x431b23([0x6f,0x6b]))return _0x431b23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5c8f6c(_0x1f7880(_0x5660bb+_0x1a46be))!=_0x213ecc[_0x431b23([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x431b23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x431b23([0x56,0x61,0x6c,0x69,0x64]);})[_0x431b23([0x74,0x68,0x65,0x6e])](_0xb52713=>(_0x346197(),_0xb52713),()=>{const _0x576e33=_0x119aaf();return null==_0x576e33?(_0x346197(),_0x431b23([0x56,0x61,0x6c,0x69,0x64])):_0x431b23(_0x134c47-_0x576e33>(0x7640c391^_0x3c2e7f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x431b23([0x74,0x68,0x65,0x6e])](_0x50c732)[_0x431b23([0x63,0x61,0x74,0x63,0x68])](()=>{_0x50c732(_0x431b23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x546aab=0x527aa911^_0x3c2e7f;function _0x346197(){const _0xa62ad3=_0x431b23([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c8f6c(_0x1f7880(_0xa2f857)),_0x4c475b=_0x3f7137(_0x5c8f6c(window[_0x431b23([0x4d,0x61,0x74,0x68])][_0x431b23([0x63,0x65,0x69,0x6c])](_0x134c47/_0x546aab)));window[_0x431b23([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x431b23([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa62ad3,_0x4c475b);}function _0x119aaf(){const _0x29542a=_0x431b23([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c8f6c(_0x1f7880(_0xa2f857)),_0x5dd225=window[_0x431b23([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x431b23([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29542a);return _0x5dd225?window[_0x431b23([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f7137(_0x5dd225),0x10)*_0x546aab:null;}function _0x56f4fb(_0x21a8ea){return new window[(_0x431b23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x20059e,_0x135531)=>{_0x21a8ea[_0x431b23([0x74,0x68,0x65,0x6e])](_0x20059e,_0x135531),window[_0x431b23([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x135531,0x524d9351^_0x3c2e7f);});}}_0x3084bb[_0x431b23([0x6f,0x6e])](_0x431b23([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x491f7b,_0x435639)=>{if(_0x435639[0x0]!=_0xa2f857)return _0x50c732(_0x431b23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x435639[0x1]={..._0x435639[0x1],[_0x431b23([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5660bb};},{[_0x431b23([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x431b23([0x68,0x69,0x67,0x68])}),_0x3084bb[_0x431b23([0x6f,0x6e])](_0x431b23([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x40f86a=>{_0x117c55(_0x40f86a[_0x431b23([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1fb35e=!0x0,_0x4359f6(_0x40f86a[_0x431b23([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x431b23([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x431b23([0x6c,0x6f,0x77])}),_0xae0e9b[_0x431b23([0x74,0x68,0x65,0x6e])](()=>{_0x1fb35e||_0x50c732(_0x431b23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x465b37(){return _0x3084bb[_0x431b23([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x431b23([0x76,0x69,0x65,0x77])][_0x431b23([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x431b23([0x61,0x75,0x74,0x6f]);}function _0x2172e3(){_0x3084bb[_0x431b23([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x431b23([0x76,0x69,0x65,0x77])][_0x431b23([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x431b23([0x61,0x75,0x74,0x6f]);}}function _0x132b73(_0x47695d){const _0x5aa220=[new window[(_0x431b23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfc70f6=>setTimeout(_0xfc70f6,0x5245795d^_0x3c2e7f)),_0xae0e9b[_0x431b23([0x74,0x68,0x65,0x6e])](()=>new window[(_0x431b23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ac92e=>{let _0xfdde7b=0x0;_0x3084bb[_0x431b23([0x6d,0x6f,0x64,0x65,0x6c])][_0x431b23([0x6f,0x6e])](_0x431b23([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3f2959,_0x3b030b)=>{_0x3b030b[0x0][_0x431b23([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xfdde7b++,_0xfdde7b==(0x524c4669^_0x3c2e7f)&&(_0x5ac92e(),_0x3f2959[_0x431b23([0x6f,0x66,0x66])]());});}))];return window[_0x431b23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x431b23([0x72,0x61,0x63,0x65])](_0x5aa220)[_0x431b23([0x74,0x68,0x65,0x6e])](()=>_0x47695d);}async function _0x568d12(){await _0xae0e9b,_0x3084bb[_0x431b23([0x6d,0x6f,0x64,0x65,0x6c])][_0x431b23([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x390014,_0x3084bb[_0x431b23([0x6d,0x6f,0x64,0x65,0x6c])][_0x431b23([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x390014,_0x3084bb[_0x431b23([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x431b23([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c0712(_0xe02c65){const _0x42f8c5=_0xe6f376();_0x3084bb[_0x42f8c5]=_0x431b23([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xe02c65,_0xe02c65!=_0x431b23([0x56,0x61,0x6c,0x69,0x64])&&_0x568d12();}function _0xe6f376(){const _0x408d3f=window[_0x431b23([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x431b23([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x431b23([0x6e,0x6f,0x77])]())[_0x431b23([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x431b23([0x2e]),'');let _0xa63424=_0x431b23([0x63]);for(let _0xe92cd6=0x0;_0xe92cd6<_0x408d3f[_0x431b23([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe92cd6+=0x2){let _0x44f3d7=window[_0x431b23([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x408d3f[_0x431b23([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe92cd6,_0xe92cd6+0x2));_0x44f3d7>=_0x2c9e68[_0x431b23([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x44f3d7-=_0x2c9e68[_0x431b23([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa63424+=_0x2c9e68[_0x44f3d7];}return _0xa63424;}function _0x2c8be4(){const _0x43c7fa=_0x375bc3[_0x431b23([0x73,0x70,0x6c,0x69,0x74])](_0x431b23([0x2e]));if(0x3!=_0x43c7fa[_0x431b23([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x430df1(_0x43c7fa[0x1]);function _0x430df1(_0x107b16){const _0x10cb50=_0x41ea89(_0x107b16);return _0x10cb50&&_0x4beae5()?_0x10cb50:null;function _0x4beae5(){const _0x123ebd=_0x10cb50[_0x431b23([0x6a,0x74,0x69])],_0x4656d6=window[_0x431b23([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x123ebd[_0x431b23([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x123ebd[_0x431b23([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x981359={..._0x10cb50,[_0x431b23([0x6a,0x74,0x69])]:_0x123ebd[_0x431b23([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x123ebd[_0x431b23([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x981359[_0x431b23([0x76,0x63])],_0x1f7880(_0x981359)==_0x4656d6;}}}async function _0xcc289(){let _0xa31c6c=!0x0;try{const _0x512842=_0x375bc3[_0x431b23([0x73,0x70,0x6c,0x69,0x74])](_0x431b23([0x2e])),[_0xefee97,_0x374766,_0x462926]=_0x512842;return _0xdd4b9a(_0xefee97),await _0x2c942f(_0xefee97,_0x374766,_0x462926),_0xa31c6c;}catch(_0x4f803f){return!0x1;}function _0xdd4b9a(_0x1118a8){const _0x1d33cf=_0x41ea89(_0x1118a8);_0x1d33cf&&_0x1d33cf[_0x431b23([0x61,0x6c,0x67])]==_0x431b23([0x45,0x53,0x32,0x35,0x36])||(_0xa31c6c=!0x1);}async function _0x2c942f(_0x587fa9,_0x40b5ff,_0x23bfb0){const _0x25471f=window[_0x431b23([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x431b23([0x66,0x72,0x6f,0x6d])](_0x2892f7(_0x23bfb0),_0x397791=>_0x397791[_0x431b23([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xc3f1d5=new window[(_0x431b23([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x431b23([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x587fa9+_0x431b23([0x2e])+_0x40b5ff),_0x36fe5e=window[_0x431b23([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x431b23([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x36fe5e)return;const _0x56947c=await _0x36fe5e[_0x431b23([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x431b23([0x6a,0x77,0x6b]),_0x4ab85b,{[_0x431b23([0x6e,0x61,0x6d,0x65])]:_0x431b23([0x45,0x43,0x44,0x53,0x41]),[_0x431b23([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x431b23([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x431b23([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x36fe5e[_0x431b23([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x431b23([0x6e,0x61,0x6d,0x65])]:_0x431b23([0x45,0x43,0x44,0x53,0x41]),[_0x431b23([0x68,0x61,0x73,0x68])]:{[_0x431b23([0x6e,0x61,0x6d,0x65])]:_0x431b23([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x56947c,_0x25471f,_0xc3f1d5)||(_0xa31c6c=!0x1);}}function _0x41ea89(_0x466c71){return _0x466c71[_0x431b23([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x431b23([0x65,0x79]))?JSON[_0x431b23([0x70,0x61,0x72,0x73,0x65])](_0x2892f7(_0x466c71)):null;}function _0x2892f7(_0x2c8074){return window[_0x431b23([0x61,0x74,0x6f,0x62])](_0x2c8074[_0x431b23([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x431b23([0x2b]))[_0x431b23([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x431b23([0x2f])));}function _0x1f7880(_0x3a9c54){let _0x2ee05e=0x1505;function _0x177b3f(_0x11a5c2){for(let _0x46173f=0x0;_0x46173f<_0x11a5c2[_0x431b23([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46173f++){const _0x1416a8=_0x11a5c2[_0x431b23([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x46173f);_0x2ee05e=(_0x2ee05e<<0x5)+_0x2ee05e+_0x1416a8,_0x2ee05e&=_0x2ee05e;}}function _0x338c9b(_0x2022bd){Array[_0x431b23([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2022bd)?_0x2022bd[_0x431b23([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x338c9b):_0x2022bd&&typeof _0x2022bd==_0x431b23([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x431b23([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2022bd)[_0x431b23([0x73,0x6f,0x72,0x74])]()[_0x431b23([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x59fb4c,_0x379d07])=>{_0x177b3f(_0x59fb4c),_0x338c9b(_0x379d07);}):_0x177b3f(window[_0x431b23([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2022bd));}return _0x338c9b(_0x3a9c54),_0x2ee05e>>>0x0;}function _0x5c8f6c(_0x141689){return _0x141689[_0x431b23([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x431b23([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x431b23([0x30]));}function _0x3f7137(_0x16f9a7){return _0x16f9a7[_0x431b23([0x73,0x70,0x6c,0x69,0x74])]('')[_0x431b23([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x431b23([0x6a,0x6f,0x69,0x6e])]('');}function _0x390014(){}function _0x431b23(_0x528829){const _0x49c995=_0x1b6f;return _0x528829[_0x49c995(0x190)](_0x39f6fe=>String[_0x49c995(0x1bf)](_0x39f6fe))[_0x49c995(0x19b)]('');}_0x3c0712(await _0x2e1878());}(this);}[_0x50c9e3(0x194)](){const _0x28a4dd=_0x50c9e3,_0x1f31b5=this[_0x28a4dd(0x1b0)][_0x28a4dd(0x19f)][_0x28a4dd(0x1b4)];_0x1f31b5[_0x28a4dd(0x1b5)](_0x28a4dd(0x1c8))&&_0x1f31b5[_0x28a4dd(0x1ac)](_0x28a4dd(0x1c8),{'allowAttributes':[_0x28a4dd(0x188)]}),_0x1f31b5[_0x28a4dd(0x1b5)](_0x28a4dd(0x1b6))&&_0x1f31b5[_0x28a4dd(0x1ac)](_0x28a4dd(0x1b6),{'allowAttributes':[_0x28a4dd(0x188)]});}[_0x50c9e3(0x181)](){const _0x366c48=_0x50c9e3,_0x269367=this[_0x366c48(0x1b0)];_0x269367[_0x366c48(0x18c)][_0x366c48(0x18b)](_0x366c48(0x18a))[_0x366c48(0x1b2)]({'model':_0x366c48(0x188),'view':_0x366c48(0x1ce)}),_0x269367[_0x366c48(0x18c)][_0x366c48(0x18b)](_0x366c48(0x189))[_0x366c48(0x1a6)]({'model':{'key':_0x366c48(0x188),'value':_0x36d0ca=>_0x36d0ca[_0x366c48(0x1c5)](_0x366c48(0x1ce))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xf604dc=_0x269367[_0x366c48(0x1aa)][_0x366c48(0x1bd)](_0x366c48(0x1be));_0xf604dc&&this[_0x366c48(0x1d4)](_0xf604dc,_0x366c48(0x1cf),(_0x1f50c8,[_0x3cefaf,_0x5cf975])=>{const _0x4e5dc0=_0x366c48;_0x3cefaf[_0x4e5dc0(0x1d0)](_0x4e5dc0(0x188),_0x5cf975);});}[_0x50c9e3(0x1ba)](){const _0x3b2ae0=_0x50c9e3,_0x7102df=this[_0x3b2ae0(0x1b0)][_0x3b2ae0(0x1a1)][_0x3b2ae0(0x1bd)](_0x3b2ae0(0x1d5))||{},_0x55c20f=this[_0x3b2ae0(0x1b0)][_0x3b2ae0(0x1a1)][_0x3b2ae0(0x1bd)](_0x3b2ae0(0x1bb))||'';this[_0x3b2ae0(0x1ad)]=_0x4038ae(_0x537e4e[_0x3b2ae0(0x1b3)],_0x3b2ae0(0x1cc),{..._0x7102df,'pubkey':_0x55c20f,'ctx-name':_0x3b2ae0(0x1cb),'sourceList':'','imgOnly':_0x3b2ae0(0x1c3),'removeCopyright':_0x3b2ae0(0x1c3),'localeName':this[_0x3b2ae0(0x1b0)][_0x3b2ae0(0x1d1)][_0x3b2ae0(0x1c2)],'externalSourcesEmbedCss':_0x3b2ae0(0x18e)}),this[_0x3b2ae0(0x1ad)][_0x3b2ae0(0x1a8)]=_0x336846=>{const _0x209576=_0x3b2ae0;if(_0x209576(0x19a)==_0x336846)return _0x209576(0x1d6);},_0x537e4e[_0x3b2ae0(0x1b3)][_0x3b2ae0(0x197)][_0x3b2ae0(0x1a2)](this[_0x3b2ae0(0x1ad)]);}[_0x50c9e3(0x1a3)](){const _0x5b9eeb=_0x50c9e3;this[_0x5b9eeb(0x191)]=_0x4038ae(_0x537e4e[_0x5b9eeb(0x1b3)],_0x5b9eeb(0x1cd),{'ctx-name':_0x5b9eeb(0x1cb)}),_0x537e4e[_0x5b9eeb(0x1b3)][_0x5b9eeb(0x197)][_0x5b9eeb(0x1a2)](this[_0x5b9eeb(0x191)]);}[_0x50c9e3(0x19c)](){const _0x150e89=_0x50c9e3,_0x640db8=this[_0x150e89(0x1b0)][_0x150e89(0x1aa)][_0x150e89(0x1bd)](_0x150e89(0x186));_0x640db8&&this[_0x150e89(0x1d4)](_0x640db8,_0x150e89(0x1a4),()=>{const _0x41764f=_0x150e89,_0x170ce5=this[_0x41764f(0x1b0)][_0x41764f(0x19f)][_0x41764f(0x1b3)][_0x41764f(0x1a7)][_0x41764f(0x1ca)]();_0x170ce5&&_0x170ce5[_0x41764f(0x1c5)](_0x41764f(0x188))&&this[_0x41764f(0x1b0)][_0x41764f(0x185)][_0x41764f(0x1c0)][_0x41764f(0x1c7)](_0x41764f(0x1c4),()=>{const _0x31b464=_0x41764f;_0x48266a(this[_0x31b464(0x1b0)],_0x170ce5);});});const _0x2b09d0=this[_0x150e89(0x1b0)][_0x150e89(0x1aa)][_0x150e89(0x1bd)](_0x150e89(0x19d));_0x2b09d0&&this[_0x150e89(0x1d4)](_0x2b09d0,_0x150e89(0x1a4),()=>{const _0x15b093=_0x150e89,_0x56c89c=this[_0x15b093(0x1b0)][_0x15b093(0x19f)][_0x15b093(0x1b3)][_0x15b093(0x1a7)][_0x15b093(0x1ca)]();_0x56c89c&&_0x56c89c[_0x15b093(0x1c5)](_0x15b093(0x188))&&this[_0x15b093(0x1b0)][_0x15b093(0x185)][_0x15b093(0x1c0)][_0x15b093(0x1c7)](_0x15b093(0x1c4),()=>{const _0x5a70cd=_0x15b093;_0x48266a(this[_0x5a70cd(0x1b0)],_0x56c89c);});});}}
23
+ const _0x5e9fc0=_0x2bd0;function _0x2bd0(_0x2c9650,_0x236b30){const _0xf74479=_0xf744();return _0x2bd0=function(_0x2bd05b,_0x5c38d8){_0x2bd05b=_0x2bd05b-0x122;let _0x4c8613=_0xf74479[_0x2bd05b];return _0x4c8613;},_0x2bd0(_0x2c9650,_0x236b30);}function _0xf744(){const _0x277a4d=['cleanupImage','2278800WFttsl','uploader','once','#uc-icon-arrow-down','_initCtx','extend','config','_initSchema','for','insertImage','_initConversion','_ctxElement','pluginName','replaceImageSource','selection','272831mkMpcT','true','getAttribute','init','downcast','input[uploadcare-file-input]','model','document','map','uploadcareImageReplace','uploadcare','uc-config','commands','get','983105LrdGei','_initConfig','body','data-uc-image-id','schema','ctxElement','configElement','querySelector','listenTo','1026956CkOedR','editor','upcast','locale','_initImageProcessingIndicator','afterInit','20oKmAze','uploadcareImageId','join','16YSMBFv','view','PictureEditing','isPremiumPlugin','imageInline','isRegistered','3WkVoMO','add','isOfficialPlugin','destroy','iconHrefResolver','5449680rTtJnM','uc-upload-ctx-provider','_configElement','contentLanguage','uploadcare.pubkey','removeAttribute','\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','href','remove','closeMax','fromCharCode','getSelectedElement','imageBlock','attributeToAttribute','appendChild','execute','uploadcare.uploader','2806794CiAvdW','1754746NzmymG','render','UploadcareEditing','conversion','elementToAttribute','editing','requires'];_0xf744=function(){return _0x277a4d;};return _0xf744();}(function(_0xe61898,_0x6b0ff9){const _0x5c1e96=_0x2bd0,_0x56465b=_0xe61898();while(!![]){try{const _0x21d170=-parseInt(_0x5c1e96(0x166))/0x1+parseInt(_0x5c1e96(0x14f))/0x2*(-parseInt(_0x5c1e96(0x138))/0x3)+-parseInt(_0x5c1e96(0x12f))/0x4*(-parseInt(_0x5c1e96(0x174))/0x5)+-parseInt(_0x5c1e96(0x157))/0x6+-parseInt(_0x5c1e96(0x129))/0x7*(-parseInt(_0x5c1e96(0x132))/0x8)+parseInt(_0x5c1e96(0x14e))/0x9+parseInt(_0x5c1e96(0x13d))/0xa;if(_0x21d170===_0x6b0ff9)break;else _0x56465b['push'](_0x56465b['shift']());}catch(_0x5ed039){_0x56465b['push'](_0x56465b['shift']());}}}(_0xf744,0x934d7));import{Plugin as _0x4346cc}from'ckeditor5/src/core.js';import{Dialog as _0x3e84fc}from'ckeditor5/src/ui.js';import{createElement as _0x3625e0,global as _0x2a409a,uid as _0xe7cc5f}from'ckeditor5/src/utils.js';import _0x565509 from'./uploadcarecommand.js';import _0x345473 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x17ab8a}from'./utils/editingutils.js';export default class i extends _0x4346cc{[_0x5e9fc0(0x13f)]=null;[_0x5e9fc0(0x162)]=null;static get[_0x5e9fc0(0x163)](){const _0x532f18=_0x5e9fc0;return _0x532f18(0x151);}static get[_0x5e9fc0(0x155)](){const _0x2c51a2=_0x5e9fc0;return[_0x2c51a2(0x134),_0x345473,_0x3e84fc];}static get[_0x5e9fc0(0x13a)](){return!0x0;}static get[_0x5e9fc0(0x135)](){return!0x0;}get[_0x5e9fc0(0x126)](){const _0x26d20a=_0x5e9fc0;return this[_0x26d20a(0x13f)];}get[_0x5e9fc0(0x125)](){const _0x45c807=_0x5e9fc0;return this[_0x45c807(0x162)];}[_0x5e9fc0(0x169)](){const _0x2ad142=_0x5e9fc0,_0x1c01d8=this[_0x2ad142(0x12a)];_0x1c01d8[_0x2ad142(0x172)][_0x2ad142(0x139)](_0x2ad142(0x170),new _0x565509(_0x1c01d8));}[_0x5e9fc0(0x12e)](){const _0x38e35a=_0x5e9fc0;this[_0x38e35a(0x15e)](),this[_0x38e35a(0x161)](),this[_0x38e35a(0x175)](),this[_0x38e35a(0x15b)](),this[_0x38e35a(0x12d)](),this[_0x38e35a(0x128)](this[_0x38e35a(0x12a)],_0x38e35a(0x13b),()=>{const _0x3a1b66=_0x38e35a;this[_0x3a1b66(0x13f)]&&(this[_0x3a1b66(0x13f)][_0x3a1b66(0x145)](),this[_0x3a1b66(0x13f)]=null),this[_0x3a1b66(0x162)]&&(this[_0x3a1b66(0x162)][_0x3a1b66(0x145)](),this[_0x3a1b66(0x162)]=null);const _0x5f4e5a=_0x2a409a[_0x3a1b66(0x16d)][_0x3a1b66(0x127)](_0x3a1b66(0x16b));_0x5f4e5a&&_0x5f4e5a[_0x3a1b66(0x145)]();}),async function(_0x49b7c1){const _0x3e9d69=_0x1b13aa([0x37,0x70,0x41,0x4a,0x66,0x43,0x71,0x69,0x77,0x42,0x46,0x78,0x73,0x59,0x64,0x62,0x53,0x55,0x33,0x35,0x67,0x56,0x39,0x61,0x65,0x36,0x52,0x79,0x5a,0x7a,0x6e,0x38,0x4b,0x75,0x57,0x4d,0x48,0x72,0x50,0x49,0x76,0x47,0x31,0x63,0x4c,0x6f,0x45,0x68,0x4e,0x74,0x6b,0x34,0x6a,0x6d,0x51,0x6c,0x44,0x32,0x4f,0x30,0x58,0x54]),_0x3d237d=0x15557fc9,_0x23d923=0x15521fe9^_0x3d237d,_0x3874b3=window[_0x1b13aa([0x44,0x61,0x74,0x65])][_0x1b13aa([0x6e,0x6f,0x77])](),_0xaee598=_0x49b7c1[_0x1b13aa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4192b7=new window[(_0x1b13aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x524206=>{_0xaee598[_0x1b13aa([0x6f,0x6e,0x63,0x65])](_0x1b13aa([0x72,0x65,0x61,0x64,0x79]),_0x524206);}),_0x60355a={[_0x1b13aa([0x6b,0x74,0x79])]:_0x1b13aa([0x45,0x43]),[_0x1b13aa([0x75,0x73,0x65])]:_0x1b13aa([0x73,0x69,0x67]),[_0x1b13aa([0x63,0x72,0x76])]:_0x1b13aa([0x50,0x2d,0x32,0x35,0x36]),[_0x1b13aa([0x78])]:_0x1b13aa([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]),[_0x1b13aa([0x79])]:_0x1b13aa([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]),[_0x1b13aa([0x61,0x6c,0x67])]:_0x1b13aa([0x45,0x53,0x32,0x35,0x36])},_0x5ad104=_0xaee598[_0x1b13aa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1b13aa([0x67,0x65,0x74])](_0x1b13aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x23b84c(){let _0x25b558,_0x4b5143=null,_0x55c9d6=null;try{if(_0x5ad104==_0x1b13aa([0x47,0x50,0x4c]))return _0x1b13aa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x25b558=_0x4a1ec8(),!_0x25b558)return _0x1b13aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x25b558[_0x1b13aa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55c9d6=_0x890858(_0x25b558[_0x1b13aa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x25b558[_0x1b13aa([0x6a,0x74,0x69])])),await _0x3c7c91()?_0x1b3b22()?_0x4bede5()?_0x1b13aa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x985c3f()?(_0x25b558[_0x1b13aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1b13aa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b5143=_0x2e2925(_0x1b13aa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x25b558[_0x1b13aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1b13aa([0x74,0x72,0x69,0x61,0x6c])&&(_0x4b5143=_0x2e2925(_0x1b13aa([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x506995()):_0x1b13aa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1b13aa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1b13aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x11ec5b){return _0x1b13aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4bede5(){const _0x3d4d7a=[_0x1b13aa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1b13aa([0x74,0x72,0x69,0x61,0x6c])][_0x1b13aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25b558[_0x1b13aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3874b3/0x3e8:0xe10*_0x23d923;return _0x25b558[_0x1b13aa([0x65,0x78,0x70])]<_0x3d4d7a;}function _0x1b3b22(){const _0x131149=_0x25b558[_0x1b13aa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x131149&&(!!_0x131149[_0x1b13aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b13aa([0x2a]))||!!_0x131149[_0x1b13aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b13aa([0x55,0x50,0x4c,0x43])));}function _0x985c3f(){const _0x2741f5=_0x2bd0,_0x5b89f6=_0x25b558[_0x1b13aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b89f6||0x0==_0x5b89f6[_0x1b13aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x8f8a0}=new URL(window[_0x1b13aa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2741f5(0x144)]);if(_0x5b89f6[_0x1b13aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8f8a0))return!0x0;const _0x1f4edb=_0x8f8a0[_0x1b13aa([0x73,0x70,0x6c,0x69,0x74])](_0x1b13aa([0x2e]));return _0x5b89f6[_0x1b13aa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x348fc2=>_0x348fc2[_0x1b13aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b13aa([0x2a])))[_0x1b13aa([0x6d,0x61,0x70])](_0x198fd5=>_0x198fd5[_0x1b13aa([0x73,0x70,0x6c,0x69,0x74])](_0x1b13aa([0x2e])))[_0x1b13aa([0x73,0x6f,0x6d,0x65])](_0x4a7b13=>_0x1f4edb[_0x1b13aa([0x65,0x76,0x65,0x72,0x79])]((_0x1b44f8,_0x51f999)=>_0x4a7b13[_0x51f999]===_0x1b44f8||_0x4a7b13[_0x51f999]===_0x1b13aa([0x2a])));}function _0x506995(){return _0x4b5143&&_0x55c9d6?new window[(_0x1b13aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50ae4a,_0x50a776)=>{_0x4b5143[_0x1b13aa([0x74,0x68,0x65,0x6e])](_0x50ae4a,_0x50a776),_0x55c9d6[_0x1b13aa([0x74,0x68,0x65,0x6e])](_0xce0703=>{_0xce0703!=_0x1b13aa([0x56,0x61,0x6c,0x69,0x64])&&_0x50ae4a(_0xce0703);},_0x50a776);}):_0x4b5143||_0x55c9d6||_0x1b13aa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x890858(_0x2254af,_0x33c2df){return new window[(_0x1b13aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcf0c46=>{if(_0x51921d())return _0xcf0c46(_0x1b13aa([0x56,0x61,0x6c,0x69,0x64]));_0x2fe2ff(),_0xaee598[_0x1b13aa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1b13aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf1cf1e=!0x1;const _0x3e2b64=_0xe7cc5f();function _0x20198b(_0x36b27d){return!!_0x36b27d&&(typeof _0x36b27d===_0x1b13aa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x36b27d===_0x1b13aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x36b27d[_0x1b13aa([0x74,0x68,0x65,0x6e])]===_0x1b13aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x36b27d[_0x1b13aa([0x63,0x61,0x74,0x63,0x68])]===_0x1b13aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x56a28a(_0x19a886){_0x26462e(_0x19a886)[_0x1b13aa([0x74,0x68,0x65,0x6e])](_0x3232f9=>{if(!_0x3232f9||_0x3232f9[_0x1b13aa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1b13aa([0x6f,0x6b]))return _0x1b13aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x276744(_0x18eabf(_0x3e2b64+_0x33c2df))!=_0x3232f9[_0x1b13aa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1b13aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1b13aa([0x56,0x61,0x6c,0x69,0x64]);})[_0x1b13aa([0x74,0x68,0x65,0x6e])](_0x476a45=>(_0x4de6e0(),_0x476a45),()=>{const _0x9dd640=_0x4f3865();return null==_0x9dd640?(_0x4de6e0(),_0x1b13aa([0x56,0x61,0x6c,0x69,0x64])):_0x1b13aa(_0x3874b3-_0x9dd640>(0x3159fbc9^_0x3d237d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1b13aa([0x74,0x68,0x65,0x6e])](_0xcf0c46)[_0x1b13aa([0x63,0x61,0x74,0x63,0x68])](()=>{_0xcf0c46(_0x1b13aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2c6804=0x15639149^_0x3d237d;function _0x4de6e0(){const _0x691a7e=_0x1b13aa([0x6c,0x6c,0x63,0x74,0x2d])+_0x276744(_0x18eabf(_0x2254af)),_0x45e8b3=_0x39ff91(_0x276744(window[_0x1b13aa([0x4d,0x61,0x74,0x68])][_0x1b13aa([0x63,0x65,0x69,0x6c])](_0x3874b3/_0x2c6804)));window[_0x1b13aa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b13aa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x691a7e,_0x45e8b3);}function _0x4f3865(){const _0x190b7e=_0x1b13aa([0x6c,0x6c,0x63,0x74,0x2d])+_0x276744(_0x18eabf(_0x2254af)),_0x1e726c=window[_0x1b13aa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b13aa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x190b7e);return _0x1e726c?window[_0x1b13aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39ff91(_0x1e726c),0x10)*_0x2c6804:null;}function _0x26462e(_0x7a1c28){return new window[(_0x1b13aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ea5b4,_0x3b1a29)=>{_0x7a1c28[_0x1b13aa([0x74,0x68,0x65,0x6e])](_0x5ea5b4,_0x3b1a29),window[_0x1b13aa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3b1a29,0x1554ab09^_0x3d237d);});}}_0xaee598[_0x1b13aa([0x6f,0x6e])](_0x1b13aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2d833b,_0x1b1bc6)=>{if(_0x1b1bc6[0x0]!=_0x2254af)return _0xcf0c46(_0x1b13aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b1bc6[0x1]={..._0x1b1bc6[0x1],[_0x1b13aa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e2b64};},{[_0x1b13aa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b13aa([0x68,0x69,0x67,0x68])}),_0xaee598[_0x1b13aa([0x6f,0x6e])](_0x1b13aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4e3004=>{_0x20198b(_0x4e3004[_0x1b13aa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf1cf1e=!0x0,_0x56a28a(_0x4e3004[_0x1b13aa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1b13aa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b13aa([0x6c,0x6f,0x77])}),_0x4192b7[_0x1b13aa([0x74,0x68,0x65,0x6e])](()=>{_0xf1cf1e||_0xcf0c46(_0x1b13aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x51921d(){return _0xaee598[_0x1b13aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b13aa([0x76,0x69,0x65,0x77])][_0x1b13aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1b13aa([0x61,0x75,0x74,0x6f]);}function _0x2fe2ff(){_0xaee598[_0x1b13aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b13aa([0x76,0x69,0x65,0x77])][_0x1b13aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1b13aa([0x61,0x75,0x74,0x6f]);}}function _0x2e2925(_0x4e3d76){const _0x38e58c=[new window[(_0x1b13aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28d8c3=>setTimeout(_0x28d8c3,0x155c4105^_0x3d237d)),_0x4192b7[_0x1b13aa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1b13aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x548720=>{let _0x42bfb1=0x0;_0xaee598[_0x1b13aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b13aa([0x6f,0x6e])](_0x1b13aa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x10cc08,_0x32badf)=>{_0x32badf[0x0][_0x1b13aa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x42bfb1++,_0x42bfb1==(0x15557e31^_0x3d237d)&&(_0x548720(),_0x10cc08[_0x1b13aa([0x6f,0x66,0x66])]());});}))];return window[_0x1b13aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1b13aa([0x72,0x61,0x63,0x65])](_0x38e58c)[_0x1b13aa([0x74,0x68,0x65,0x6e])](()=>_0x4e3d76);}async function _0xc6dbcd(){await _0x4192b7,_0xaee598[_0x1b13aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b13aa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x16eaf3,_0xaee598[_0x1b13aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b13aa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x16eaf3,_0xaee598[_0x1b13aa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1b13aa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1992d5(_0x4f0aba){const _0x1581a8=_0x321c71();_0xaee598[_0x1581a8]=_0x1b13aa([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4f0aba,_0x4f0aba!=_0x1b13aa([0x56,0x61,0x6c,0x69,0x64])&&_0xc6dbcd();}function _0x321c71(){const _0x8eaaa6=window[_0x1b13aa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1b13aa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1b13aa([0x6e,0x6f,0x77])]())[_0x1b13aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1b13aa([0x2e]),'');let _0x508ec5=_0x1b13aa([0x70]);for(let _0x58574d=0x0;_0x58574d<_0x8eaaa6[_0x1b13aa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x58574d+=0x2){let _0x4793b0=window[_0x1b13aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8eaaa6[_0x1b13aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58574d,_0x58574d+0x2));_0x4793b0>=_0x3e9d69[_0x1b13aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4793b0-=_0x3e9d69[_0x1b13aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x508ec5+=_0x3e9d69[_0x4793b0];}return _0x508ec5;}function _0x4a1ec8(){const _0x1e6ec9=_0x5ad104[_0x1b13aa([0x73,0x70,0x6c,0x69,0x74])](_0x1b13aa([0x2e]));if(0x3!=_0x1e6ec9[_0x1b13aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x192dbb(_0x1e6ec9[0x1]);function _0x192dbb(_0x2d7683){const _0x3c5623=_0x449e3d(_0x2d7683);return _0x3c5623&&_0x558f36()?_0x3c5623:null;function _0x558f36(){const _0x4f27fd=_0x3c5623[_0x1b13aa([0x6a,0x74,0x69])],_0x1252a3=window[_0x1b13aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f27fd[_0x1b13aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f27fd[_0x1b13aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x535778={..._0x3c5623,[_0x1b13aa([0x6a,0x74,0x69])]:_0x4f27fd[_0x1b13aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4f27fd[_0x1b13aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x535778[_0x1b13aa([0x76,0x63])],_0x18eabf(_0x535778)==_0x1252a3;}}}async function _0x3c7c91(){let _0x3904d2=!0x0;try{const _0x2d311b=_0x5ad104[_0x1b13aa([0x73,0x70,0x6c,0x69,0x74])](_0x1b13aa([0x2e])),[_0x1ddce9,_0x1fd331,_0x3e70b1]=_0x2d311b;return _0x3eb133(_0x1ddce9),await _0x10a898(_0x1ddce9,_0x1fd331,_0x3e70b1),_0x3904d2;}catch(_0x5c5b7c){return!0x1;}function _0x3eb133(_0x52a5c5){const _0x513e52=_0x449e3d(_0x52a5c5);_0x513e52&&_0x513e52[_0x1b13aa([0x61,0x6c,0x67])]==_0x1b13aa([0x45,0x53,0x32,0x35,0x36])||(_0x3904d2=!0x1);}async function _0x10a898(_0x4ecfac,_0x3c40f5,_0x39de85){const _0x1a334b=window[_0x1b13aa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1b13aa([0x66,0x72,0x6f,0x6d])](_0x4a7d9b(_0x39de85),_0x485836=>_0x485836[_0x1b13aa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x20b5e1=new window[(_0x1b13aa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1b13aa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ecfac+_0x1b13aa([0x2e])+_0x3c40f5),_0x27e009=window[_0x1b13aa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1b13aa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27e009)return;const _0x5f3701=await _0x27e009[_0x1b13aa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1b13aa([0x6a,0x77,0x6b]),_0x60355a,{[_0x1b13aa([0x6e,0x61,0x6d,0x65])]:_0x1b13aa([0x45,0x43,0x44,0x53,0x41]),[_0x1b13aa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1b13aa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1b13aa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27e009[_0x1b13aa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1b13aa([0x6e,0x61,0x6d,0x65])]:_0x1b13aa([0x45,0x43,0x44,0x53,0x41]),[_0x1b13aa([0x68,0x61,0x73,0x68])]:{[_0x1b13aa([0x6e,0x61,0x6d,0x65])]:_0x1b13aa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5f3701,_0x1a334b,_0x20b5e1)||(_0x3904d2=!0x1);}}function _0x449e3d(_0x4d4553){return _0x4d4553[_0x1b13aa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1b13aa([0x65,0x79]))?JSON[_0x1b13aa([0x70,0x61,0x72,0x73,0x65])](_0x4a7d9b(_0x4d4553)):null;}function _0x4a7d9b(_0x2785aa){return window[_0x1b13aa([0x61,0x74,0x6f,0x62])](_0x2785aa[_0x1b13aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1b13aa([0x2b]))[_0x1b13aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1b13aa([0x2f])));}function _0x18eabf(_0x5f556a){let _0x2ab6f9=0x1505;function _0x303fc2(_0x46c63a){for(let _0x15f8e7=0x0;_0x15f8e7<_0x46c63a[_0x1b13aa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15f8e7++){const _0x3ed10a=_0x46c63a[_0x1b13aa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x15f8e7);_0x2ab6f9=(_0x2ab6f9<<0x5)+_0x2ab6f9+_0x3ed10a,_0x2ab6f9&=_0x2ab6f9;}}function _0x7fc5fe(_0x4098dd){Array[_0x1b13aa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4098dd)?_0x4098dd[_0x1b13aa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7fc5fe):_0x4098dd&&typeof _0x4098dd==_0x1b13aa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1b13aa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4098dd)[_0x1b13aa([0x73,0x6f,0x72,0x74])]()[_0x1b13aa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x79f338,_0xb27a3e])=>{_0x303fc2(_0x79f338),_0x7fc5fe(_0xb27a3e);}):_0x303fc2(window[_0x1b13aa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4098dd));}return _0x7fc5fe(_0x5f556a),_0x2ab6f9>>>0x0;}function _0x276744(_0x4af26e){return _0x4af26e[_0x1b13aa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1b13aa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1b13aa([0x30]));}function _0x39ff91(_0x40de9a){return _0x40de9a[_0x1b13aa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1b13aa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1b13aa([0x6a,0x6f,0x69,0x6e])]('');}function _0x16eaf3(){}function _0x1b13aa(_0xab88f4){const _0xb787f6=_0x2bd0;return _0xab88f4[_0xb787f6(0x16e)](_0x2c93a5=>String[_0xb787f6(0x147)](_0x2c93a5))[_0xb787f6(0x131)]('');}_0x1992d5(await _0x23b84c());}(this);}[_0x5e9fc0(0x15e)](){const _0x47f9c3=_0x5e9fc0,_0x29e76c=this[_0x47f9c3(0x12a)][_0x47f9c3(0x16c)][_0x47f9c3(0x124)];_0x29e76c[_0x47f9c3(0x137)](_0x47f9c3(0x149))&&_0x29e76c[_0x47f9c3(0x15c)](_0x47f9c3(0x149),{'allowAttributes':[_0x47f9c3(0x130)]}),_0x29e76c[_0x47f9c3(0x137)](_0x47f9c3(0x136))&&_0x29e76c[_0x47f9c3(0x15c)](_0x47f9c3(0x136),{'allowAttributes':[_0x47f9c3(0x130)]});}[_0x5e9fc0(0x161)](){const _0x5865fc=_0x5e9fc0,_0x3cb2a9=this[_0x5865fc(0x12a)];_0x3cb2a9[_0x5865fc(0x152)][_0x5865fc(0x15f)](_0x5865fc(0x16a))[_0x5865fc(0x14a)]({'model':_0x5865fc(0x130),'view':_0x5865fc(0x123)}),_0x3cb2a9[_0x5865fc(0x152)][_0x5865fc(0x15f)](_0x5865fc(0x12b))[_0x5865fc(0x153)]({'model':{'key':_0x5865fc(0x130),'value':_0xee6b56=>_0xee6b56[_0x5865fc(0x168)](_0x5865fc(0x123))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x27705c=_0x3cb2a9[_0x5865fc(0x172)][_0x5865fc(0x173)](_0x5865fc(0x164));_0x27705c&&this[_0x5865fc(0x128)](_0x27705c,_0x5865fc(0x156),(_0x598d3d,[_0x5183b9,_0x2d7835])=>{const _0x270328=_0x5865fc;_0x5183b9[_0x270328(0x142)](_0x270328(0x130),_0x2d7835);});}[_0x5e9fc0(0x175)](){const _0x58a823=_0x5e9fc0,_0x55c7c6=this[_0x58a823(0x12a)][_0x58a823(0x15d)][_0x58a823(0x173)](_0x58a823(0x14d))||{},_0x297c11=this[_0x58a823(0x12a)][_0x58a823(0x15d)][_0x58a823(0x173)](_0x58a823(0x141))||'';this[_0x58a823(0x13f)]=_0x3625e0(_0x2a409a[_0x58a823(0x16d)],_0x58a823(0x171),{..._0x55c7c6,'pubkey':_0x297c11,'ctx-name':_0x58a823(0x158),'sourceList':'','imgOnly':_0x58a823(0x167),'removeCopyright':_0x58a823(0x167),'localeName':this[_0x58a823(0x12a)][_0x58a823(0x12c)][_0x58a823(0x140)],'externalSourcesEmbedCss':_0x58a823(0x143)}),this[_0x58a823(0x13f)][_0x58a823(0x13c)]=_0x1668c4=>{const _0x4df380=_0x58a823;if(_0x4df380(0x146)==_0x1668c4)return _0x4df380(0x15a);},_0x2a409a[_0x58a823(0x16d)][_0x58a823(0x122)][_0x58a823(0x14b)](this[_0x58a823(0x13f)]);}[_0x5e9fc0(0x15b)](){const _0x571795=_0x5e9fc0;this[_0x571795(0x162)]=_0x3625e0(_0x2a409a[_0x571795(0x16d)],_0x571795(0x13e),{'ctx-name':_0x571795(0x158)}),_0x2a409a[_0x571795(0x16d)][_0x571795(0x122)][_0x571795(0x14b)](this[_0x571795(0x162)]);}[_0x5e9fc0(0x12d)](){const _0x5dc512=_0x5e9fc0,_0x49e064=this[_0x5dc512(0x12a)][_0x5dc512(0x172)][_0x5dc512(0x173)](_0x5dc512(0x160));_0x49e064&&this[_0x5dc512(0x128)](_0x49e064,_0x5dc512(0x14c),()=>{const _0x37c8ec=_0x5dc512,_0x1026d2=this[_0x37c8ec(0x12a)][_0x37c8ec(0x16c)][_0x37c8ec(0x16d)][_0x37c8ec(0x165)][_0x37c8ec(0x148)]();_0x1026d2&&_0x1026d2[_0x37c8ec(0x168)](_0x37c8ec(0x130))&&this[_0x37c8ec(0x12a)][_0x37c8ec(0x154)][_0x37c8ec(0x133)][_0x37c8ec(0x159)](_0x37c8ec(0x150),()=>{const _0x5b8753=_0x37c8ec;_0x17ab8a(this[_0x5b8753(0x12a)],_0x1026d2);});});const _0x1b9212=this[_0x5dc512(0x12a)][_0x5dc512(0x172)][_0x5dc512(0x173)](_0x5dc512(0x16f));_0x1b9212&&this[_0x5dc512(0x128)](_0x1b9212,_0x5dc512(0x14c),()=>{const _0x325f31=_0x5dc512,_0x10e2c0=this[_0x325f31(0x12a)][_0x325f31(0x16c)][_0x325f31(0x16d)][_0x325f31(0x165)][_0x325f31(0x148)]();_0x10e2c0&&_0x10e2c0[_0x325f31(0x168)](_0x325f31(0x130))&&this[_0x325f31(0x12a)][_0x325f31(0x154)][_0x325f31(0x133)][_0x325f31(0x159)](_0x325f31(0x150),()=>{const _0x27fae0=_0x325f31;_0x17ab8a(this[_0x27fae0(0x12a)],_0x10e2c0);});});}}