@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251213.0 → 0.0.0-nightly-20251214.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 _0x4e72f8,Command as _0x398c68}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1f010e,IconGooglePhotos as _0x11cc0c,IconGoogleDrive as _0x6368de,IconFacebook as _0x41a71e,IconDropbox as _0xe0aeb4,IconUploadcareLink as _0x2d5732,IconUploadcareImageUpload as _0x24c59d,IconError as _0x3e7822,IconUploadcareImageEdit as _0x485d1e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x21c793,MenuBarMenuListItemButtonView as _0x3ad38e,View as _0x3a6e23,FocusCycler as _0x2e7625,Dialog as _0x53f875,DialogViewPosition as _0x3f67d1,SpinnerView as _0x26b4a6,IconView as _0x1b01da,Notification as _0x7b201}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3b1c6d,DomEmitterMixin as _0x47fa5a,global as _0x3dc227,getAncestors as _0x536b9b,ObservableMixin as _0x2b992c,uid as _0x19c946,createElement as _0x3c126f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x21338f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3a02ab,info as _0x485143}from'@uploadcare/upload-client';import*as _0x4d06f6 from'@uploadcare/file-uploader';var i=function(_0x286dd1){return _0x286dd1['Local']='local',_0x286dd1['URL']='url',_0x286dd1['Dropbox']='dropbox',_0x286dd1['GDrive']='gdrive',_0x286dd1['Facebook']='facebook',_0x286dd1['GPhotos']='gphotos',_0x286dd1['OneDrive']='onedrive',_0x286dd1;}({});function _(_0x3051ca,_0x282e82,_0x2536df){const t=_0x3051ca['t'],_0x2fbcee=_0x3051ca['t'];switch(_0x282e82){case i['Local']:return{'text':_0x2fbcee('Insert'===_0x2536df?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2fbcee('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x2536df?_0x2fbcee('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2fbcee('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x2536df?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x2536df?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x2536df?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x2536df?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x2536df?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x282e82;}}class e extends _0x4e72f8{['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 _0x3eee5f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x374cce;for(const _0x397de3 in _0x3eee5f){const _0x30bb74=_0x397de3,_0x3bdac1=_0x3eee5f[_0x30bb74];if('uploadcareLicenseKeyValid'==_0x3bdac1||'uploadcareLicenseKeyInvalid'==_0x3bdac1||'uploadcareLicenseKeyExpired'==_0x3bdac1||'uploadcareLicenseKeyDomainLimit'==_0x3bdac1||'uploadcareLicenseKeyNotAllowed'==_0x3bdac1||'uploadcareLicenseKeyEvaluationLimit'==_0x3bdac1||'uploadcareLicenseKeyTrialLimit'==_0x3bdac1||'uploadcareLicenseKeyUsageLimit'==_0x3bdac1){delete _0x3eee5f[_0x30bb74],_0x374cce=_0x3bdac1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x374cce&&_0x3eee5f['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x374cce&&_0x3eee5f['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x374cce&&_0x3eee5f['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x374cce&&_0x3eee5f['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x374cce&&_0x3eee5f['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x374cce&&_0x3eee5f['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x374cce&&_0x3eee5f['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x315cf1}=this,_0x28711c=_0x315cf1['commands']['get']('uploadcare');if(!_0x28711c)return;const _0x30844c=this['_normalizeConfigSourceList'](_0x315cf1['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2f8d87,_0x1b10d9)=>{const _0x4562a2=this['_getIntegrationKey'](_0x1b10d9['type']);return _0x2f8d87[_0x4562a2]||(_0x2f8d87[_0x4562a2]=[]),_0x2f8d87[_0x4562a2]['push'](_0x1b10d9),_0x2f8d87;},{});_0x315cf1['plugins']['has']('ImageInsertUI')&&_0x315cf1['commands']['get']('uploadcare')&&Object['entries'](_0x30844c)['forEach'](([_0x43b19d,_0x9fe88e])=>{_0x315cf1['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x43b19d,'observable':()=>_0x28711c,'buttonViewCreator':()=>this['_createToolbarButton'](_0x9fe88e),'formViewCreator':()=>this['_createDropdownButtons'](_0x9fe88e),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x9fe88e),'override':'assetManager'!==_0x43b19d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4db8b4){const {locale:_0x4b261b}=this['editor'];return _0x4db8b4['map'](_0x5d709f=>{const _0x37dc22=_(_0x4b261b,_0x5d709f,'Insert');switch(_0x5d709f){case i['Local']:return{'icon':_0x24c59d,'type':i['Local'],..._0x37dc22};case i['URL']:return{'icon':_0x2d5732,'type':i['URL'],..._0x37dc22};case i['Dropbox']:return{'icon':_0xe0aeb4,'type':i['Dropbox'],..._0x37dc22};case i['Facebook']:return{'icon':_0x41a71e,'type':i['Facebook'],..._0x37dc22};case i['GDrive']:return{'icon':_0x6368de,'type':i['GDrive'],..._0x37dc22};case i['GPhotos']:return{'icon':_0x11cc0c,'type':i['GPhotos'],..._0x37dc22};case i['OneDrive']:return{'icon':_0x1f010e,'type':i['OneDrive'],..._0x37dc22};}});}['_getIntegrationKey'](_0x1130c9){switch(_0x1130c9){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4c126a,_0x108835){const _0x4d2c55=this['editor'],_0x4639cc=new _0x4c126a(_0x4d2c55['locale']),_0x1a6bf9=_0x4d2c55['commands']['get']('uploadcare');return _0x4639cc['bind']('isEnabled')['to'](_0x1a6bf9),_0x4639cc['on']('execute',()=>{_0x1a6bf9['execute'](_0x108835);}),_0x4639cc;}['_createToolbarButton'](_0x401047){const {locale:_0x590426}=this['editor'],_0x1538e3=this['editor']['plugins']['get']('ImageInsertUI'),_0x5c47f4=_0x401047[0x0],_0x2ef539=this['_createButton'](_0x21c793,_0x5c47f4['type']);return _0x2ef539['icon']=_0x5c47f4['icon'],_0x2ef539['bind']('label')['to'](_0x1538e3,'isImageSelected',_0x43b962=>_(_0x590426,_0x5c47f4['type'],_0x43b962?'Replace':'Insert')['text']),_0x2ef539['tooltip']=!0x0,_0x2ef539;}['_createDropdownButtons'](_0x48d4be){const {locale:_0x47ec92}=this['editor'],_0x1b2227=this['editor']['plugins']['get']('ImageInsertUI');return _0x48d4be['map'](_0x514384=>{const _0x45e4a7=this['_createButton'](_0x21c793,_0x514384['type']);return _0x45e4a7['withText']=!0x0,_0x45e4a7['icon']=_0x514384['icon'],_0x45e4a7['bind']('label')['to'](_0x1b2227,'isImageSelected',_0x24cb4e=>_(_0x47ec92,_0x514384['type'],_0x24cb4e?'Replace':'Insert')['text']),_0x45e4a7;});}['_createMenuBarButtons'](_0x527e3d){return _0x527e3d['map'](_0x1c2af4=>{const _0x542432=this['_createButton'](_0x3ad38e,_0x1c2af4['type']);return _0x542432['icon']=_0x1c2af4['icon'],_0x542432['label']=_0x1c2af4['shortText'],_0x542432;});}}class F extends _0x3a6e23{['focusTracker'];['focusCycler'];constructor(_0x5b18cc){super(_0x5b18cc),this['focusTracker']=new _0x3b1c6d(),this['focusCycler']=new _0x2e7625({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x3d771f,_0x5ce87c){super(_0x3d771f),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-'+_0x5ce87c}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x2850e4,_0x175ceb){const _0x179c26=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5f1a7e=>_0x5f1a7e<=_0x175ceb)['map'](_0x4c1e92=>_0x2850e4['replace'](/\/$/,'')+'/-/resize/'+_0x4c1e92+'x/\x20'+_0x4c1e92+'w');return{'imageFallbackUrl':_0x2850e4,'imageSources':[{'srcset':_0x179c26['join'](',\x20'),'sizes':'(max-width:\x20'+_0x175ceb+'px)\x20100vw,\x20'+_0x175ceb+'px','type':'image/webp'}]};}function S(_0x5b2eda,_0x5168d4,_0x12f390){const _0x5a349b=_0x5b2eda['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5a349b?parseInt(_0x5a349b[0x1],0xa):_0x5168d4,'height':_0x5a349b?parseInt(_0x5a349b[0x2],0xa):_0x12f390};}function p(_0x1bead7,_0x467134){const _0x5084b8=new(_0x47fa5a())(),_0x4472b6=_0x1bead7['plugins']['get']('ImageUtils'),_0x30e4fb=_0x1bead7['editing']['mapper']['toViewElement'](_0x467134),_0x341304=_0x4472b6['findViewImgElement'](_0x30e4fb),_0x4a1c36=_0x1bead7['editing']['view']['domConverter']['viewToDom'](_0x341304),_0x55e499=_0x467134['getAttribute']('width'),_0x53f2c0=_0x467134['getAttribute']('height'),_0x4ff855='image-processing';_0x1bead7['editing']['view']['change'](_0x2d0864=>{_0x2d0864['addClass'](_0x4ff855,_0x30e4fb),_0x2d0864['setStyle']('aspect-ratio',_0x55e499+'/'+_0x53f2c0,_0x341304);}),_0x5084b8['listenTo'](_0x4a1c36,'load',()=>{_0x5084b8['stopListening'](_0x4a1c36,'load'),_0x1bead7['editing']['view']['change'](_0x4b1c4d=>{_0x4b1c4d['removeClass'](_0x4ff855,_0x30e4fb),_0x4b1c4d['removeStyle']('aspect-ratio',_0x341304);});});}function z(_0x203021){if(Array['isArray'](_0x203021)){const _0xb8c7ab=_0x203021['map'](z);return _0x1cd452=>_0xb8c7ab['some'](_0xadfa92=>_0xadfa92(_0x1cd452));}if('origin'==_0x203021){const _0x5c9c62=_0x3dc227['window']['location']['origin'];return _0x25c1c2=>new URL(_0x25c1c2,_0x3dc227['document']['baseURI'])['origin']==_0x5c9c62;}return'function'==typeof _0x203021?_0x203021:_0x203021 instanceof RegExp?_0x1d7094=>!(!_0x1d7094['match'](_0x203021)&&!_0x1d7094['replace'](/^https?:\/\//,'')['match'](_0x203021)):()=>!0x1;}function A(_0x553fab,_0x917670){return _0x536b9b(_0x553fab['target'])['includes'](_0x917670);}class n extends/* #__PURE__ -- @preserve */
24
- _0x2b992c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x498384,_0xb248bc,_0x25fde9){super(),this['_editor']=_0x498384,this['_editing']=_0xb248bc,this['_dialog']=_0x498384['plugins']['get'](_0x53f875),this['_api']=_0xb248bc['ctxElement']['getAPI'](),this['_type']=_0x25fde9,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:_0x337da1,model:_0x1b3ec7}=this['_editor'],_0xd567b0=_0x1b3ec7['document']['selection']['getSelectedElement'](),_0x3808ec=_0xd567b0&&(_0xd567b0['is']('element','imageBlock')||_0xd567b0['is']('element','imageInline'));this['_formView']=new x(_0x337da1,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x24c59d,'title':_(_0x337da1,this['_type'],_0x3808ec?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3f67d1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x247c26=>!A(_0x247c26,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x12e3e8}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3b43f2=>{const _0xb0a6f3=_0x12e3e8['length'];for(const _0x1462be of _0x12e3e8){const _0x4cbbd2=_0x1462be===_0x12e3e8[_0xb0a6f3-0x1],{cdnUrl:_0x3b81b1,fileInfo:_0x597259}=_0x1462be;if(!_0x3b81b1||!_0x597259)continue;const {width:_0x35ca06,height:_0x4773c8}=_0x597259['imageInfo'],_0x543ef9=S(_0x3b81b1,_0x35ca06,_0x4773c8),_0x42553e=C(_0x3b81b1,_0x543ef9['width']),_0x3c9bd4={'id':_0x597259['uuid'],'type':'image','attributes':{'imageDimension':_0x543ef9,..._0x42553e}};this['_insertAsset'](_0x3c9bd4,_0x4cbbd2,_0x3b43f2);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x215bfb=>{'idle'===_0x215bfb['detail']['status']&&!_0x215bfb['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x34b5f3,_0x39ed43,_0x498277){const _0x389f42=this['_editor']['model']['document']['selection'],_0x1dc2a2=_0x389f42['getSelectedElement'](),_0x3826ed=!(!_0x1dc2a2||!_0x1dc2a2['is']('element','imageInline'));_0x498277['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x34b5f3,_0x3826ed),_0x39ed43||_0x498277['setSelection'](_0x389f42['getLastPosition']());}['_insertImage'](_0x11f9c4,_0x589edb){const _0xfab0d6=this['_editor'],{imageDimension:_0x3ebc06,imageFallbackUrl:_0x467f2b,imageSources:_0x46cb9d}=_0x11f9c4['attributes'];_0xfab0d6['execute']('insertImage',{'imageType':_0x589edb?'imageInline':null,'source':{'uploadcareImageId':_0x11f9c4['id'],'src':_0x467f2b,'sources':_0x46cb9d,..._0x3ebc06}});}}class w extends _0x398c68{['_editing'];['_controller']=null;static get['requires'](){return[_0x53f875,o];}constructor(_0x52b88e){super(_0x52b88e),this['_editing']=_0x52b88e['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xdc24f1){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xdc24f1);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x152255,..._0x41b94a}){return _0x3a02ab(_0x152255,_0x41b94a);}static['getInfo'](_0xa5b112,_0x3b16d2){return _0x485143(_0xa5b112,_0x3b16d2);}}class f extends _0x4e72f8{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x21338f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4bbad3=this['editor'];if(!!!_0x4bbad3['config']['get']('uploadcare'))return;_0x4bbad3['plugins']['get'](_0x21338f)['createUploadAdapter']=_0x276cc7=>new k(_0x276cc7,_0x4bbad3),_0x4bbad3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3a7bcb,{imageElement:_0x26c1e0,data:_0x2ef696})=>{_0x4bbad3['model']['change'](_0x233fb1=>{_0x233fb1['setAttribute']('uploadcareImageId',_0x2ef696['uploadcareImageId'],_0x26c1e0);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x210c64,_0x1c6fde){this['loader']=_0x210c64,this['editor']=_0x1c6fde,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x512016=await this['loader']['file'];return j['upload']({'file':_0x512016,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x57450e=>{_0x57450e&&_0x57450e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x57450e['value']);}})['then'](async _0x14135f=>{const {imageFallbackUrl:_0x5807d5,imageSources:_0x2d8d77}=C(_0x14135f['cdnUrl'],_0x14135f['imageInfo']['width']);return{'uploadcareImageId':_0x14135f['uuid'],'default':_0x5807d5,'sources':_0x2d8d77};})['catch'](()=>{const _0x4112f3=t('Cannot\x20upload\x20file:')+('\x20'+_0x512016['name']+'.');return Promise['reject'](_0x4112f3);});}['abort'](){this['controller']['abort']();}}class o extends _0x4e72f8{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x53f875];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x13d4a8){super(_0x13d4a8),this['ucContextId']=_0x19c946();}['init'](){const _0x59ef98=this['editor'];_0x59ef98['commands']['add']('uploadcare',new w(_0x59ef98));}['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 _0x551b4d=_0x3dc227['document']['querySelector']('input[uploadcare-file-input]');_0x551b4d&&_0x551b4d['remove']();}),async function(_0x90808f){const _0x5565f3=_0x4a0972([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x9fee38=0x535f8c3a,_0x25405a=0x5358f7f2^_0x9fee38,_0x21687d=window[_0x4a0972([0x44,0x61,0x74,0x65])][_0x4a0972([0x6e,0x6f,0x77])](),_0x9bfc8b=_0x90808f[_0x4a0972([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x145b3e=new window[(_0x4a0972([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a9521=>{_0x9bfc8b[_0x4a0972([0x6f,0x6e,0x63,0x65])](_0x4a0972([0x72,0x65,0x61,0x64,0x79]),_0x4a9521);}),_0x4192d1={[_0x4a0972([0x6b,0x74,0x79])]:_0x4a0972([0x45,0x43]),[_0x4a0972([0x75,0x73,0x65])]:_0x4a0972([0x73,0x69,0x67]),[_0x4a0972([0x63,0x72,0x76])]:_0x4a0972([0x50,0x2d,0x32,0x35,0x36]),[_0x4a0972([0x78])]:_0x4a0972([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]),[_0x4a0972([0x79])]:_0x4a0972([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]),[_0x4a0972([0x61,0x6c,0x67])]:_0x4a0972([0x45,0x53,0x32,0x35,0x36])},_0x17d8fc=_0x9bfc8b[_0x4a0972([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4a0972([0x67,0x65,0x74])](_0x4a0972([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x12382c(){let _0xd0ba77,_0x2f4124=null,_0xd0d578=null;try{if(_0x17d8fc==_0x4a0972([0x47,0x50,0x4c]))return _0x4a0972([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xd0ba77=_0x564a8f(),!_0xd0ba77)return _0x4a0972([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xd0ba77[_0x4a0972([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd0d578=_0x562f0a(_0xd0ba77[_0x4a0972([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xd0ba77[_0x4a0972([0x6a,0x74,0x69])])),await _0x435489()?_0x41eadd()?_0x3a29dd()?_0x4a0972([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x17b58d()?(_0xd0ba77[_0x4a0972([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4a0972([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2f4124=_0x5bdb27(_0x4a0972([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xd0ba77[_0x4a0972([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4a0972([0x74,0x72,0x69,0x61,0x6c])&&(_0x2f4124=_0x5bdb27(_0x4a0972([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x20568e()):_0x4a0972([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4a0972([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4a0972([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4a0972([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3a29dd(){const _0x50c262=[_0x4a0972([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4a0972([0x74,0x72,0x69,0x61,0x6c])][_0x4a0972([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd0ba77[_0x4a0972([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x21687d/0x3e8:0xe10*_0x25405a;return _0xd0ba77[_0x4a0972([0x65,0x78,0x70])]<_0x50c262;}function _0x41eadd(){const _0x5d1a6d=_0xd0ba77[_0x4a0972([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5d1a6d&&(!!_0x5d1a6d[_0x4a0972([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a0972([0x2a]))||!!_0x5d1a6d[_0x4a0972([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a0972([0x55,0x50,0x4c,0x43])));}function _0x17b58d(){const _0x225088=_0xd0ba77[_0x4a0972([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x225088||0x0==_0x225088[_0x4a0972([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3a5cef}=new URL(window[_0x4a0972([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x225088[_0x4a0972([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a5cef))return!0x0;const _0x1f851d=_0x3a5cef[_0x4a0972([0x73,0x70,0x6c,0x69,0x74])](_0x4a0972([0x2e]));return _0x225088[_0x4a0972([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ba945=>_0x2ba945[_0x4a0972([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a0972([0x2a])))[_0x4a0972([0x6d,0x61,0x70])](_0x158855=>_0x158855[_0x4a0972([0x73,0x70,0x6c,0x69,0x74])](_0x4a0972([0x2e])))[_0x4a0972([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3af65f=>_0x3af65f[_0x4a0972([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1f851d[_0x4a0972([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4a0972([0x6d,0x61,0x70])](_0x1b99b7=>Array(_0x1f851d[_0x4a0972([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1b99b7[_0x4a0972([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4a0972([0x66,0x69,0x6c,0x6c])](_0x1b99b7[0x0]===_0x4a0972([0x2a])?_0x4a0972([0x2a]):'')[_0x4a0972([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1b99b7))[_0x4a0972([0x73,0x6f,0x6d,0x65])](_0xa4d77f=>_0x1f851d[_0x4a0972([0x65,0x76,0x65,0x72,0x79])]((_0x474f5f,_0x43babb)=>_0xa4d77f[_0x43babb]===_0x474f5f||_0xa4d77f[_0x43babb]===_0x4a0972([0x2a])));}function _0x20568e(){return _0x2f4124&&_0xd0d578?new window[(_0x4a0972([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c479f,_0x345134)=>{_0x2f4124[_0x4a0972([0x74,0x68,0x65,0x6e])](_0x1c479f,_0x345134),_0xd0d578[_0x4a0972([0x74,0x68,0x65,0x6e])](_0x19cda8=>{_0x19cda8!=_0x4a0972([0x56,0x61,0x6c,0x69,0x64])&&_0x1c479f(_0x19cda8);},_0x345134);}):_0x2f4124||_0xd0d578||_0x4a0972([0x56,0x61,0x6c,0x69,0x64]);}}function _0x562f0a(_0x1980c3,_0x18074c){return new window[(_0x4a0972([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28a9ee=>{if(_0x26ae59())return _0x28a9ee(_0x4a0972([0x56,0x61,0x6c,0x69,0x64]));_0x3ab039(),_0x9bfc8b[_0x4a0972([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4a0972([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5bd168=!0x1;const _0x3f0922=_0x19c946();function _0x26b136(_0x1d8ca7){return!!_0x1d8ca7&&(typeof _0x1d8ca7===_0x4a0972([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1d8ca7===_0x4a0972([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1d8ca7[_0x4a0972([0x74,0x68,0x65,0x6e])]===_0x4a0972([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1d8ca7[_0x4a0972([0x63,0x61,0x74,0x63,0x68])]===_0x4a0972([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x40cec4(_0x399ed5){_0x7c0b3a(_0x399ed5)[_0x4a0972([0x74,0x68,0x65,0x6e])](_0x5be9b1=>{if(!_0x5be9b1||_0x5be9b1[_0x4a0972([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4a0972([0x6f,0x6b]))return _0x4a0972([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3335c2(_0x43b0b3(_0x3f0922+_0x18074c))!=_0x5be9b1[_0x4a0972([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4a0972([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4a0972([0x56,0x61,0x6c,0x69,0x64]);})[_0x4a0972([0x74,0x68,0x65,0x6e])](_0x2dd7f1=>(_0x6d1e6f(),_0x2dd7f1),()=>{const _0x4185a5=_0x2efef7();return null==_0x4185a5?(_0x6d1e6f(),_0x4a0972([0x56,0x61,0x6c,0x69,0x64])):_0x4a0972(_0x21687d-_0x4185a5>(0x7753083a^_0x9fee38)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4a0972([0x74,0x68,0x65,0x6e])](_0x28a9ee)[_0x4a0972([0x63,0x61,0x74,0x63,0x68])](()=>{_0x28a9ee(_0x4a0972([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4436fe=0x536962ba^_0x9fee38;function _0x6d1e6f(){const _0x575f5e=_0x4a0972([0x6c,0x6c,0x63,0x74,0x2d])+_0x3335c2(_0x43b0b3(_0x1980c3)),_0x344f3a=_0x29ba2f(_0x3335c2(window[_0x4a0972([0x4d,0x61,0x74,0x68])][_0x4a0972([0x63,0x65,0x69,0x6c])](_0x21687d/_0x4436fe)));window[_0x4a0972([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a0972([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x575f5e,_0x344f3a);}function _0x2efef7(){const _0x142171=_0x4a0972([0x6c,0x6c,0x63,0x74,0x2d])+_0x3335c2(_0x43b0b3(_0x1980c3)),_0x54f997=window[_0x4a0972([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a0972([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x142171);return _0x54f997?window[_0x4a0972([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29ba2f(_0x54f997),0x10)*_0x4436fe:null;}function _0x7c0b3a(_0x1a532e){return new window[(_0x4a0972([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5740ef,_0x172758)=>{_0x1a532e[_0x4a0972([0x74,0x68,0x65,0x6e])](_0x5740ef,_0x172758),window[_0x4a0972([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x172758,0x535e58fa^_0x9fee38);});}}_0x9bfc8b[_0x4a0972([0x6f,0x6e])](_0x4a0972([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4cc192,_0x371984)=>{if(_0x371984[0x0]!=_0x1980c3)return _0x28a9ee(_0x4a0972([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x371984[0x1]={..._0x371984[0x1],[_0x4a0972([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f0922};},{[_0x4a0972([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a0972([0x68,0x69,0x67,0x68])}),_0x9bfc8b[_0x4a0972([0x6f,0x6e])](_0x4a0972([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x52aaa7=>{_0x26b136(_0x52aaa7[_0x4a0972([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5bd168=!0x0,_0x40cec4(_0x52aaa7[_0x4a0972([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4a0972([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a0972([0x6c,0x6f,0x77])}),_0x145b3e[_0x4a0972([0x74,0x68,0x65,0x6e])](()=>{_0x5bd168||_0x28a9ee(_0x4a0972([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x26ae59(){return _0x9bfc8b[_0x4a0972([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a0972([0x76,0x69,0x65,0x77])][_0x4a0972([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4a0972([0x61,0x75,0x74,0x6f]);}function _0x3ab039(){_0x9bfc8b[_0x4a0972([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a0972([0x76,0x69,0x65,0x77])][_0x4a0972([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4a0972([0x61,0x75,0x74,0x6f]);}}function _0x5bdb27(_0x3a8c29){const _0x306be5=[new window[(_0x4a0972([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b8872=>setTimeout(_0x5b8872,0x5356b2f6^_0x9fee38)),_0x145b3e[_0x4a0972([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4a0972([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f4d8c=>{let _0x390d66=0x0;_0x9bfc8b[_0x4a0972([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a0972([0x6f,0x6e])](_0x4a0972([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5f000b,_0x4c7fdb)=>{_0x4c7fdb[0x0][_0x4a0972([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x390d66++,_0x390d66==(0x535f8dc2^_0x9fee38)&&(_0x4f4d8c(),_0x5f000b[_0x4a0972([0x6f,0x66,0x66])]());});}))];return window[_0x4a0972([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4a0972([0x72,0x61,0x63,0x65])](_0x306be5)[_0x4a0972([0x74,0x68,0x65,0x6e])](()=>_0x3a8c29);}async function _0x397fef(){await _0x145b3e,_0x9bfc8b[_0x4a0972([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a0972([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x184b68,_0x9bfc8b[_0x4a0972([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a0972([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x184b68,_0x9bfc8b[_0x4a0972([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4a0972([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x307298(_0x4c5388){const _0x5688e5=_0x40a2c4();_0x9bfc8b[_0x5688e5]=_0x4a0972([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c5388,_0x4c5388!=_0x4a0972([0x56,0x61,0x6c,0x69,0x64])&&_0x397fef();}function _0x40a2c4(){const _0x298b5d=window[_0x4a0972([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4a0972([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4a0972([0x6e,0x6f,0x77])]())[_0x4a0972([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4a0972([0x2e]),'');let _0x3de5d4=_0x4a0972([0x68]);for(let _0x1c8f31=0x0;_0x1c8f31<_0x298b5d[_0x4a0972([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c8f31+=0x2){let _0x283764=window[_0x4a0972([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x298b5d[_0x4a0972([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c8f31,_0x1c8f31+0x2));_0x283764>=_0x5565f3[_0x4a0972([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x283764-=_0x5565f3[_0x4a0972([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3de5d4+=_0x5565f3[_0x283764];}return _0x3de5d4;}function _0x564a8f(){const _0x3e1fba=_0x17d8fc[_0x4a0972([0x73,0x70,0x6c,0x69,0x74])](_0x4a0972([0x2e]));if(0x3!=_0x3e1fba[_0x4a0972([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x392940(_0x3e1fba[0x1]);function _0x392940(_0x1e51d8){const _0x5cdc55=_0x4837a7(_0x1e51d8);return _0x5cdc55&&_0x3a56e9()?_0x5cdc55:null;function _0x3a56e9(){const _0x10095f=_0x5cdc55[_0x4a0972([0x6a,0x74,0x69])],_0x8dc52a=window[_0x4a0972([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10095f[_0x4a0972([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10095f[_0x4a0972([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x14e381={..._0x5cdc55,[_0x4a0972([0x6a,0x74,0x69])]:_0x10095f[_0x4a0972([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x10095f[_0x4a0972([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x14e381[_0x4a0972([0x76,0x63])],_0x43b0b3(_0x14e381)==_0x8dc52a;}}}async function _0x435489(){let _0xfe6a79=!0x0;try{const _0x25437d=_0x17d8fc[_0x4a0972([0x73,0x70,0x6c,0x69,0x74])](_0x4a0972([0x2e])),[_0x832af3,_0x3a1d33,_0x587312]=_0x25437d;return _0x320cd7(_0x832af3),await _0x31cec7(_0x832af3,_0x3a1d33,_0x587312),_0xfe6a79;}catch{return!0x1;}function _0x320cd7(_0x77f337){const _0x330539=_0x4837a7(_0x77f337);_0x330539&&_0x330539[_0x4a0972([0x61,0x6c,0x67])]==_0x4a0972([0x45,0x53,0x32,0x35,0x36])||(_0xfe6a79=!0x1);}async function _0x31cec7(_0x20c0e7,_0x157ba8,_0x4f7060){const _0x52a43e=window[_0x4a0972([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4a0972([0x66,0x72,0x6f,0x6d])](_0x16fff4(_0x4f7060),_0xf8e825=>_0xf8e825[_0x4a0972([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x28e15e=new window[(_0x4a0972([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4a0972([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x20c0e7+_0x4a0972([0x2e])+_0x157ba8),_0x5c2143=window[_0x4a0972([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4a0972([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5c2143)return;const _0x2b9e04=await _0x5c2143[_0x4a0972([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4a0972([0x6a,0x77,0x6b]),_0x4192d1,{[_0x4a0972([0x6e,0x61,0x6d,0x65])]:_0x4a0972([0x45,0x43,0x44,0x53,0x41]),[_0x4a0972([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4a0972([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4a0972([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5c2143[_0x4a0972([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4a0972([0x6e,0x61,0x6d,0x65])]:_0x4a0972([0x45,0x43,0x44,0x53,0x41]),[_0x4a0972([0x68,0x61,0x73,0x68])]:{[_0x4a0972([0x6e,0x61,0x6d,0x65])]:_0x4a0972([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2b9e04,_0x52a43e,_0x28e15e)||(_0xfe6a79=!0x1);}}function _0x4837a7(_0x4ddb62){return _0x4ddb62[_0x4a0972([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4a0972([0x65,0x79]))?JSON[_0x4a0972([0x70,0x61,0x72,0x73,0x65])](_0x16fff4(_0x4ddb62)):null;}function _0x16fff4(_0x45a220){return window[_0x4a0972([0x61,0x74,0x6f,0x62])](_0x45a220[_0x4a0972([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4a0972([0x2b]))[_0x4a0972([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4a0972([0x2f])));}function _0x43b0b3(_0x1ffbb1){let _0x2e58f0=0x1505;function _0xd67f2e(_0x5b958c){for(let _0x353a1e=0x0;_0x353a1e<_0x5b958c[_0x4a0972([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x353a1e++){const _0x90a16f=_0x5b958c[_0x4a0972([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x353a1e);_0x2e58f0=(_0x2e58f0<<0x5)+_0x2e58f0+_0x90a16f,_0x2e58f0&=_0x2e58f0;}}function _0x4c686d(_0x8e74e5){Array[_0x4a0972([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x8e74e5)?_0x8e74e5[_0x4a0972([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4c686d):_0x8e74e5&&typeof _0x8e74e5==_0x4a0972([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4a0972([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x8e74e5)[_0x4a0972([0x73,0x6f,0x72,0x74])]()[_0x4a0972([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2b442e,_0x853090])=>{_0xd67f2e(_0x2b442e),_0x4c686d(_0x853090);}):_0xd67f2e(window[_0x4a0972([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x8e74e5));}return _0x4c686d(_0x1ffbb1),_0x2e58f0>>>0x0;}function _0x3335c2(_0x3ec51c){return _0x3ec51c[_0x4a0972([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4a0972([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4a0972([0x30]));}function _0x29ba2f(_0x59427a){return _0x59427a[_0x4a0972([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4a0972([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4a0972([0x6a,0x6f,0x69,0x6e])]('');}function _0x184b68(){}function _0x4a0972(_0x6c2777){return _0x6c2777['map'](_0x3f05a7=>String['fromCharCode'](_0x3f05a7))['join']('');}_0x307298(await _0x12382c());}(this);}['_initSchema'](){const _0x1692a1=this['editor']['model']['schema'];_0x1692a1['isRegistered']('imageBlock')&&_0x1692a1['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1692a1['isRegistered']('imageInline')&&_0x1692a1['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2c16aa=this['editor'];_0x2c16aa['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2c16aa['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x79cc4b=>_0x79cc4b['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x236763=_0x2c16aa['commands']['get']('replaceImageSource');_0x236763&&this['listenTo'](_0x236763,'cleanupImage',(_0x2ed227,[_0x86a72f,_0x10a1d0])=>{_0x86a72f['removeAttribute']('uploadcareImageId',_0x10a1d0);});}['_initConfig'](){const _0x3f55ec=this['editor']['config']['get']('uploadcare.uploader')||{},_0x22c217=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3c126f(_0x3dc227['document'],'uc-config',{..._0x3f55ec,'pubkey':_0x22c217,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x48dfda=>{if('closeMax'==_0x48dfda)return'#uc-icon-arrow-down';},_0x3dc227['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3c126f(_0x3dc227['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3dc227['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x494d90=this['editor']['commands']['get']('insertImage');_0x494d90&&this['listenTo'](_0x494d90,'execute',()=>{const _0x4392b4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4392b4&&_0x4392b4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4392b4);});});const _0x3704e3=this['editor']['commands']['get']('uploadcareImageReplace');_0x3704e3&&this['listenTo'](_0x3704e3,'execute',()=>{const _0x1c6abb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1c6abb&&_0x1c6abb['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1c6abb);});});}}class tt extends _0x4e72f8{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2b0699){super(_0x2b0699),_0x2b0699['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4d06f6['defineComponents'](_0x4d06f6),this['_defineLocale']();}['_defineLocale'](){const _0x43eee3=this['editor']['config']['get']('uploadcare.locale'),_0x3056a9=this['editor']['locale']['contentLanguage'];_0x43eee3&&_0x4d06f6['defineLocale'](_0x3056a9,_0x43eee3);}}class ii extends _0x3a6e23{constructor(_0x4688c9){super(_0x4688c9);const t=_0x4688c9['t'],_0x40b9ae=this['bindTemplate'],_0x7d0216=new _0x26b4a6();_0x7d0216['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':[_0x7d0216,{'text':_0x40b9ae['to']('imageUploadProgress',_0x33fe11=>t('Loading\x20image...')+'\x20('+(_0x33fe11||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x3a6e23{constructor(_0x5ede1a){super(_0x5ede1a);const t=_0x5ede1a['t'];this['set']('errorType',null);const _0x5a49d2=new _0x21c793(_0x5ede1a);_0x5a49d2['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5a49d2['withText']=!0x0,_0x5a49d2['class']='ck-button-action',_0x5a49d2['on']('execute',()=>{this['fire']('retry');}),_0x5a49d2['bind']('isVisible')['to'](this,'errorType',_0x5a1fd8=>'NotFound'!==_0x5a1fd8);const _0x2da61e=new _0x1b01da();_0x2da61e['content']=_0x3e7822,_0x2da61e['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5bdb05=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':[_0x2da61e,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5bdb05['to']('errorType',_0x152b19=>t('NotFound'!==_0x152b19?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5a49d2]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x3a6e23{constructor(_0x45ed79,_0x257186){super(_0x45ed79);const _0x4d4ba4=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x257186,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4d4ba4['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1ae5a0,_0x55fe88,_0x16be25){super(_0x1ae5a0),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1ae5a0),this['_errorView']=new ti(_0x1ae5a0),this['_editingView']=new ei(_0x1ae5a0,_0x16be25),this['_focusableView']=new _0x3a6e23(_0x1ae5a0),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x55fe88),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'],_0x54d1a6=>{this['_addUploadcareImageEditorListeners'](_0x54d1a6);});}),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'](_0x4f8303,_0x4f838d){const _0x31c302='uc-cloud-image-editor',_0x352fb5=_0x4f8303['querySelector'](_0x31c302);if(_0x352fb5)return _0x4f838d(_0x352fb5);const _0xbb7539=new MutationObserver(_0x65fc66=>{const _0x57f53d=_0x65fc66['filter'](_0x530f84=>_0x530f84['target']===_0x4f8303&&_0x530f84['addedNodes']['length']>0x0&&_0x530f84['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x31c302);_0x57f53d['length']&&(_0xbb7539['disconnect'](),_0x4f838d(_0x57f53d[0x0]['addedNodes'][0x0]));});_0xbb7539['observe'](_0x4f8303,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5558dd){_0x5558dd['addEventListener']('apply',_0x1d8610=>{this['fire']('apply',{'imageSrc':_0x1d8610['detail']['cdnUrl']});}),_0x5558dd['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
25
- _0x2b992c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x553468,_0x24965f,_0x145379){super(),this['_editor']=_0x553468,this['_dialog']=_0x24965f,this['_imageElement']=_0x145379,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 _0x3bde9d=this['_imageElement'],_0x107839=_0x3bde9d['getAttribute']('uploadcareImageId'),_0x7a2325=_0x3bde9d['getAttribute']('src');if(_0x107839)await this['_loadImageInfo'](_0x107839,_0x7a2325);else{if(this['_imageCache']['has'](_0x7a2325)){const _0x418cf2=this['_imageCache']['get'](_0x7a2325);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x418cf2['url'],this['imageDimension']=_0x418cf2['dimension'],this['imageId']=_0x418cf2['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3242ca}=this['_editor'],t=_0x3242ca['t'],_0x40a064=new X(_0x3242ca,this['imageStatus'],this['_attributes']);_0x40a064['bind']('status')['to'](this,'imageStatus'),_0x40a064['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x40a064['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x40a064['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x40a064,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x485d1e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x40a064,'position':_0x3f67d1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x40a064['focus']();},'onHide':()=>{_0x40a064['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x20a3b9=>!A(_0x20a3b9,_0x40a064['element'])}});}['_loadImageInfo'](_0x1fc2b5,_0x21bdd0){return j['getInfo'](_0x1fc2b5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x44ee5d=>{const {width:_0x354651,height:_0x1aeff8}=_0x44ee5d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x21bdd0,this['imageDimension']={'width':_0x354651,'height':_0x1aeff8},this['imageId']=_0x1fc2b5;})['catch'](_0x2d4ea7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2d4ea7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x452d8b,_0x1c66ed){return this['_getImageAsFile'](_0x452d8b)['then'](_0x366d91=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x1c66ed['signal'],'file':_0x366d91,'onProgress':_0x3ec86c=>{_0x3ec86c&&_0x3ec86c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3ec86c['value']));}}))['then'](_0x3fb85c=>{const {width:_0x2269f4,height:_0x3c501b}=_0x3fb85c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3fb85c['cdnUrl'],this['imageDimension']={'width':_0x2269f4,'height':_0x3c501b},this['imageId']=_0x3fb85c['uuid'],this['imageUploadProgress']=null;const _0x24fbbd=_0x452d8b['getAttribute']('src');this['_imageCache']['set'](_0x24fbbd,{'id':_0x3fb85c['uuid'],'url':_0x3fb85c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2d78b8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2d78b8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1cd3f7,_0xabccdb){_0x1cd3f7['on']('apply',(_0x17ae8e,_0x205fe9)=>{this['_replaceImage'](_0xabccdb,_0x205fe9['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1cd3f7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1cd3f7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x43339d,_0x58e3d7,_0x3d7352){const _0x535df6=this['_editor'],{width:_0x105f3b,height:_0x4f863d}=S(_0x58e3d7,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5657a4,imageSources:_0x2d9bbe}=C(_0x58e3d7,_0x105f3b);_0x535df6['model']['change'](_0x1fda35=>{if('$graveyard'===_0x43339d['root']['rootName']){_0x535df6['execute']('insertImage',{'imageType':_0x43339d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x43339d['getAttributes']()),'uploadcareImageId':_0x3d7352,'src':_0x5657a4,'sources':_0x2d9bbe,'width':_0x105f3b,'height':_0x4f863d}});const _0x2f9b4f=_0x43339d['getChildren']();_0x43339d=_0x535df6['model']['document']['selection']['getSelectedElement']();for(const _0x54b3f3 of _0x2f9b4f)_0x1fda35['append'](_0x1fda35['cloneElement'](_0x54b3f3),_0x43339d);}else _0x1fda35['setSelection'](_0x43339d,'on'),_0x535df6['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x43339d['getAttributes']()),'uploadcareImageId':_0x3d7352,'src':_0x5657a4,'sources':_0x2d9bbe,'width':_0x105f3b,'height':_0x4f863d},_0x43339d);_0x1fda35['setSelection'](_0x43339d,'on');});}async['_getImageAsFile'](_0x22aa40){const _0x31db7c=_0x3dc227['window'],_0x35d8ae=_0x3dc227['document']['location']['href'],_0x1147e9=new _0x31db7c['URL'](_0x22aa40['getAttribute']('src'),_0x35d8ae);if('data:'===_0x1147e9['protocol']){const _0xca32e2=_0x1147e9['href']['split'](','),_0x25a915=_0xca32e2[0x0]['match'](/:(.*?);/)[0x1],_0x470fe5=_0x25a915['split']('/')[0x1],_0x48ee3b=_0x31db7c['atob'](_0xca32e2[_0xca32e2['length']-0x1]);let _0x3c18b6=_0x48ee3b['length'];const _0x25e38b=new _0x31db7c['Uint8Array'](_0x3c18b6);for(;_0x3c18b6--;)_0x25e38b[_0x3c18b6]=_0x48ee3b['charCodeAt'](_0x3c18b6);return new _0x31db7c['File']([_0x25e38b],'image.'+_0x470fe5,{'type':_0x25a915});}const _0x177535=_0x1147e9['href']['split']('/'),_0x5b912b=_0x177535[_0x177535['length']-0x1],_0x2d5504=_0x5b912b['split']('.')[0x1];return _0x31db7c['fetch'](_0x1147e9['href'])['then'](_0x146636=>_0x146636['clone']()['blob']())['then'](_0x4dfc62=>new _0x31db7c['File']([_0x4dfc62],_0x5b912b,{'type':'image/'+_0x2d5504}));}}class Q extends _0x398c68{['imageEditController'];static get['requires'](){return[_0x53f875];}['_isEditable'];constructor(_0x6aa1b9){super(_0x6aa1b9),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x210b64){const _0x30d8d7=z(_0x210b64);return _0x5387e9=>!(!_0x5387e9||!_0x5387e9['is']('element','imageBlock')&&!_0x5387e9['is']('element','imageInline'))&&(!!_0x5387e9['hasAttribute']('uploadcareImageId')||!!_0x5387e9['hasAttribute']('src')&&_0x30d8d7(_0x5387e9['getAttribute']('src')));}(_0x6aa1b9['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3b16f4=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3b16f4);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1177e4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1177e4&&(_0x1177e4['is']('element','imageBlock')||_0x1177e4['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x53f875),_0x1177e4),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x398c68{['refresh'](){const _0x12e249=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x12e249&&(_0x12e249['is']('element','imageBlock')||_0x12e249['is']('element','imageInline')));}['execute'](_0x209474){const _0x28aa2a=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xb849d8=>{_0xb849d8['setAttributes'](_0x209474,_0x28aa2a),_0xb849d8['removeAttribute']('srcset',_0x28aa2a),_0xb849d8['removeAttribute']('sizes',_0x28aa2a);});}}class m extends _0x4e72f8{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x7b201,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2c75a8}=this;_0x2c75a8['commands']['add']('uploadcareImageEdit',new Q(_0x2c75a8)),_0x2c75a8['commands']['add']('uploadcareImageReplace',new V(_0x2c75a8));}}class g extends _0x4e72f8{['_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 _0x2eee33=this['editor'];_0x2eee33['ui']['componentFactory']['add']('uploadcareImageEdit',_0x15a476=>{const _0x2c1d0d=_0x2eee33['commands']['get']('uploadcareImageEdit'),_0x287aaf=new _0x21c793(_0x15a476),t=_0x15a476['t'];return _0x287aaf['set']({'icon':_0x485d1e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x287aaf['bind']('isEnabled')['to'](_0x2c1d0d),_0x287aaf['bind']('isOn')['to'](_0x2c1d0d,'isActive'),this['listenTo'](_0x287aaf,'execute',()=>{_0x2eee33['execute']('uploadcareImageEdit'),_0x2eee33['editing']['view']['focus']();}),_0x287aaf;}),this['_initConfig']();}['_initConfig'](){const _0x49dfe9=_0x3c126f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x49dfe9),this['listenTo'](this['editor'],'destroy',()=>{_0x49dfe9['remove']();});}}class et extends _0x4e72f8{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0xf38636,Command as _0x392ed7}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x7e97a7,IconGooglePhotos as _0x55fad1,IconGoogleDrive as _0xa5c6d9,IconFacebook as _0x33b9b6,IconDropbox as _0xe40a39,IconUploadcareLink as _0x29f467,IconUploadcareImageUpload as _0x31c404,IconError as _0x10dfd5,IconUploadcareImageEdit as _0x2173fe}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x52b656,MenuBarMenuListItemButtonView as _0x380de1,View as _0x1028fe,FocusCycler as _0x320b59,Dialog as _0x5f1377,DialogViewPosition as _0x16cfb1,SpinnerView as _0x2a9dcb,IconView as _0x3dae89,Notification as _0xaf71b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xc3e5b8,DomEmitterMixin as _0x4e81f9,global as _0x5b66cb,getAncestors as _0x28d403,ObservableMixin as _0x59bb24,uid as _0x4c54e9,createElement as _0x35d2c7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2b8b93}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x49f3ab,info as _0x278478}from'@uploadcare/upload-client';import*as _0x36873e from'@uploadcare/file-uploader';var i=function(_0x2278b7){return _0x2278b7['Local']='local',_0x2278b7['URL']='url',_0x2278b7['Dropbox']='dropbox',_0x2278b7['GDrive']='gdrive',_0x2278b7['Facebook']='facebook',_0x2278b7['GPhotos']='gphotos',_0x2278b7['OneDrive']='onedrive',_0x2278b7;}({});function _(_0x16086d,_0xc8c4ca,_0x3e5d78){const t=_0x16086d['t'],_0x5d4338=_0x16086d['t'];switch(_0xc8c4ca){case i['Local']:return{'text':_0x5d4338('Insert'===_0x3e5d78?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5d4338('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3e5d78?_0x5d4338('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5d4338('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3e5d78?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3e5d78?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3e5d78?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3e5d78?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3e5d78?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xc8c4ca;}}class e extends _0xf38636{['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 _0x1d7ae7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x462afa;for(const _0x444df5 in _0x1d7ae7){const _0x51533c=_0x444df5,_0x2df0cf=_0x1d7ae7[_0x51533c];if('uploadcareLicenseKeyValid'==_0x2df0cf||'uploadcareLicenseKeyInvalid'==_0x2df0cf||'uploadcareLicenseKeyExpired'==_0x2df0cf||'uploadcareLicenseKeyDomainLimit'==_0x2df0cf||'uploadcareLicenseKeyNotAllowed'==_0x2df0cf||'uploadcareLicenseKeyEvaluationLimit'==_0x2df0cf||'uploadcareLicenseKeyTrialLimit'==_0x2df0cf||'uploadcareLicenseKeyUsageLimit'==_0x2df0cf){delete _0x1d7ae7[_0x51533c],_0x462afa=_0x2df0cf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x462afa&&_0x1d7ae7['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x462afa&&_0x1d7ae7['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x462afa&&_0x1d7ae7['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x462afa&&_0x1d7ae7['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x462afa&&_0x1d7ae7['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x462afa&&_0x1d7ae7['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x462afa&&_0x1d7ae7['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x48b09e}=this,_0x1a7044=_0x48b09e['commands']['get']('uploadcare');if(!_0x1a7044)return;const _0x5527ed=this['_normalizeConfigSourceList'](_0x48b09e['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3d7862,_0x377513)=>{const _0x1a245c=this['_getIntegrationKey'](_0x377513['type']);return _0x3d7862[_0x1a245c]||(_0x3d7862[_0x1a245c]=[]),_0x3d7862[_0x1a245c]['push'](_0x377513),_0x3d7862;},{});_0x48b09e['plugins']['has']('ImageInsertUI')&&_0x48b09e['commands']['get']('uploadcare')&&Object['entries'](_0x5527ed)['forEach'](([_0x2c68fd,_0x35dad6])=>{_0x48b09e['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2c68fd,'observable':()=>_0x1a7044,'buttonViewCreator':()=>this['_createToolbarButton'](_0x35dad6),'formViewCreator':()=>this['_createDropdownButtons'](_0x35dad6),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x35dad6),'override':'assetManager'!==_0x2c68fd});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x43e520){const {locale:_0x1e5774}=this['editor'];return _0x43e520['map'](_0x51faac=>{const _0xec2ed1=_(_0x1e5774,_0x51faac,'Insert');switch(_0x51faac){case i['Local']:return{'icon':_0x31c404,'type':i['Local'],..._0xec2ed1};case i['URL']:return{'icon':_0x29f467,'type':i['URL'],..._0xec2ed1};case i['Dropbox']:return{'icon':_0xe40a39,'type':i['Dropbox'],..._0xec2ed1};case i['Facebook']:return{'icon':_0x33b9b6,'type':i['Facebook'],..._0xec2ed1};case i['GDrive']:return{'icon':_0xa5c6d9,'type':i['GDrive'],..._0xec2ed1};case i['GPhotos']:return{'icon':_0x55fad1,'type':i['GPhotos'],..._0xec2ed1};case i['OneDrive']:return{'icon':_0x7e97a7,'type':i['OneDrive'],..._0xec2ed1};}});}['_getIntegrationKey'](_0x4fbe56){switch(_0x4fbe56){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1d9f8c,_0x41d414){const _0x7db6e0=this['editor'],_0x26b813=new _0x1d9f8c(_0x7db6e0['locale']),_0x15985a=_0x7db6e0['commands']['get']('uploadcare');return _0x26b813['bind']('isEnabled')['to'](_0x15985a),_0x26b813['on']('execute',()=>{_0x15985a['execute'](_0x41d414);}),_0x26b813;}['_createToolbarButton'](_0x23c873){const {locale:_0x2980ca}=this['editor'],_0x478f4c=this['editor']['plugins']['get']('ImageInsertUI'),_0x2706cf=_0x23c873[0x0],_0x2808c3=this['_createButton'](_0x52b656,_0x2706cf['type']);return _0x2808c3['icon']=_0x2706cf['icon'],_0x2808c3['bind']('label')['to'](_0x478f4c,'isImageSelected',_0x162f59=>_(_0x2980ca,_0x2706cf['type'],_0x162f59?'Replace':'Insert')['text']),_0x2808c3['tooltip']=!0x0,_0x2808c3;}['_createDropdownButtons'](_0xce2cae){const {locale:_0x466251}=this['editor'],_0x7f722d=this['editor']['plugins']['get']('ImageInsertUI');return _0xce2cae['map'](_0x138452=>{const _0x81f5ca=this['_createButton'](_0x52b656,_0x138452['type']);return _0x81f5ca['withText']=!0x0,_0x81f5ca['icon']=_0x138452['icon'],_0x81f5ca['bind']('label')['to'](_0x7f722d,'isImageSelected',_0x301073=>_(_0x466251,_0x138452['type'],_0x301073?'Replace':'Insert')['text']),_0x81f5ca;});}['_createMenuBarButtons'](_0x457128){return _0x457128['map'](_0x452e3e=>{const _0xbf0adf=this['_createButton'](_0x380de1,_0x452e3e['type']);return _0xbf0adf['icon']=_0x452e3e['icon'],_0xbf0adf['label']=_0x452e3e['shortText'],_0xbf0adf;});}}class V extends _0x1028fe{['focusTracker'];['focusCycler'];constructor(_0x8ee38d){super(_0x8ee38d),this['focusTracker']=new _0xc3e5b8(),this['focusCycler']=new _0x320b59({'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 V{constructor(_0x5c2cfd,_0x96f641){super(_0x5c2cfd),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-'+_0x96f641}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x14915d,_0x66f5d8){const _0x1667e4=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1fd8e0=>_0x1fd8e0<=_0x66f5d8)['map'](_0x150b2a=>_0x14915d['replace'](/\/$/,'')+'/-/resize/'+_0x150b2a+'x/\x20'+_0x150b2a+'w');return{'imageFallbackUrl':_0x14915d,'imageSources':[{'srcset':_0x1667e4['join'](',\x20'),'sizes':'(max-width:\x20'+_0x66f5d8+'px)\x20100vw,\x20'+_0x66f5d8+'px','type':'image/webp'}]};}function F(_0x2041c2,_0xb77078,_0x31b8d0){const _0x39db2d=_0x2041c2['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x39db2d?parseInt(_0x39db2d[0x1],0xa):_0xb77078,'height':_0x39db2d?parseInt(_0x39db2d[0x2],0xa):_0x31b8d0};}function p(_0x148e6a,_0x2eff1d){const _0x1de72f=new(_0x4e81f9())(),_0x457e03=_0x148e6a['plugins']['get']('ImageUtils'),_0x3cfc0d=_0x148e6a['editing']['mapper']['toViewElement'](_0x2eff1d),_0x5a0fb=_0x457e03['findViewImgElement'](_0x3cfc0d),_0x5245d5=_0x148e6a['editing']['view']['domConverter']['viewToDom'](_0x5a0fb),_0x145080=_0x2eff1d['getAttribute']('width'),_0x13aa8d=_0x2eff1d['getAttribute']('height'),_0x451e23='image-processing';_0x148e6a['editing']['view']['change'](_0x437113=>{_0x437113['addClass'](_0x451e23,_0x3cfc0d),_0x437113['setStyle']('aspect-ratio',_0x145080+'/'+_0x13aa8d,_0x5a0fb);}),_0x1de72f['listenTo'](_0x5245d5,'load',()=>{_0x1de72f['stopListening'](_0x5245d5,'load'),_0x148e6a['editing']['view']['change'](_0x5cef64=>{_0x5cef64['removeClass'](_0x451e23,_0x3cfc0d),_0x5cef64['removeStyle']('aspect-ratio',_0x5a0fb);});});}function R(_0x34cb06){if(Array['isArray'](_0x34cb06)){const _0x33f4ef=_0x34cb06['map'](R);return _0x1904f7=>_0x33f4ef['some'](_0x4a2a38=>_0x4a2a38(_0x1904f7));}if('origin'==_0x34cb06){const _0x569f06=_0x5b66cb['window']['location']['origin'];return _0x2c560a=>new URL(_0x2c560a,_0x5b66cb['document']['baseURI'])['origin']==_0x569f06;}return'function'==typeof _0x34cb06?_0x34cb06:_0x34cb06 instanceof RegExp?_0x15c0d8=>!(!_0x15c0d8['match'](_0x34cb06)&&!_0x15c0d8['replace'](/^https?:\/\//,'')['match'](_0x34cb06)):()=>!0x1;}function M(_0x1b0694,_0xd81b12){return _0x28d403(_0x1b0694['target'])['includes'](_0xd81b12);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x59bb24(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x54d715,_0x2b9cc7,_0x1fabe9){super(),this['_editor']=_0x54d715,this['_editing']=_0x2b9cc7,this['_dialog']=_0x54d715['plugins']['get'](_0x5f1377),this['_api']=_0x2b9cc7['ctxElement']['getAPI'](),this['_type']=_0x1fabe9,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:_0x442201,model:_0x35867d}=this['_editor'],_0x2bb752=_0x35867d['document']['selection']['getSelectedElement'](),_0x57f8f1=_0x2bb752&&(_0x2bb752['is']('element','imageBlock')||_0x2bb752['is']('element','imageInline'));this['_formView']=new S(_0x442201,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x31c404,'title':_(_0x442201,this['_type'],_0x57f8f1?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x16cfb1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x53a7d1=>!M(_0x53a7d1,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x21fb9d}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x282aff=>{const _0x585b07=_0x21fb9d['length'];for(const _0x1ad9bd of _0x21fb9d){const _0x64cba0=_0x1ad9bd===_0x21fb9d[_0x585b07-0x1],{cdnUrl:_0x3dccff,fileInfo:_0x27cc60}=_0x1ad9bd;if(!_0x3dccff||!_0x27cc60)continue;const {width:_0x182665,height:_0x4afa7e}=_0x27cc60['imageInfo'],_0x47f770=F(_0x3dccff,_0x182665,_0x4afa7e),_0xb841dc=C(_0x3dccff,_0x47f770['width']),_0x3ac941={'id':_0x27cc60['uuid'],'type':'image','attributes':{'imageDimension':_0x47f770,..._0xb841dc}};this['_insertAsset'](_0x3ac941,_0x64cba0,_0x282aff);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5bec5c=>{'idle'===_0x5bec5c['detail']['status']&&!_0x5bec5c['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x209a86,_0x308e4b,_0x3d9268){const _0x1856d1=this['_editor']['model']['document']['selection'],_0x4fc2ae=_0x1856d1['getSelectedElement'](),_0x1471d4=!(!_0x4fc2ae||!_0x4fc2ae['is']('element','imageInline'));_0x3d9268['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x209a86,_0x1471d4),_0x308e4b||_0x3d9268['setSelection'](_0x1856d1['getLastPosition']());}['_insertImage'](_0x103dd1,_0x40fdd9){const _0x301e6c=this['_editor'],{imageDimension:_0x43af01,imageFallbackUrl:_0x5eeebf,imageSources:_0x1500ae}=_0x103dd1['attributes'];_0x301e6c['execute']('insertImage',{'imageType':_0x40fdd9?'imageInline':null,'source':{'uploadcareImageId':_0x103dd1['id'],'src':_0x5eeebf,'sources':_0x1500ae,..._0x43af01}});}}class w extends _0x392ed7{['_editing'];['_controller']=null;static get['requires'](){return[_0x5f1377,o];}constructor(_0x579464){super(_0x579464),this['_editing']=_0x579464['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5d5a1d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5d5a1d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xeefb46,..._0x216f58}){return _0x49f3ab(_0xeefb46,_0x216f58);}static['getInfo'](_0x152dd6,_0x1ca375){return _0x278478(_0x152dd6,_0x1ca375);}}class f extends _0xf38636{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2b8b93,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2a3a62=this['editor'];if(!!!_0x2a3a62['config']['get']('uploadcare'))return;_0x2a3a62['plugins']['get'](_0x2b8b93)['createUploadAdapter']=_0x11b184=>new k(_0x11b184,_0x2a3a62),_0x2a3a62['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x13cd40,{imageElement:_0x3be15c,data:_0x2dd286})=>{_0x2a3a62['model']['change'](_0x56554c=>{_0x56554c['setAttribute']('uploadcareImageId',_0x2dd286['uploadcareImageId'],_0x3be15c);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1ac07a,_0x40639f){this['loader']=_0x1ac07a,this['editor']=_0x40639f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2f8851=await this['loader']['file'];return j['upload']({'file':_0x2f8851,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x55ba00=>{_0x55ba00&&_0x55ba00['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x55ba00['value']);}})['then'](async _0x12844e=>{const {imageFallbackUrl:_0x4a9ca9,imageSources:_0x200322}=C(_0x12844e['cdnUrl'],_0x12844e['imageInfo']['width']);return{'uploadcareImageId':_0x12844e['uuid'],'default':_0x4a9ca9,'sources':_0x200322};})['catch'](()=>{const _0x181c91=t('Cannot\x20upload\x20file:')+('\x20'+_0x2f8851['name']+'.');return Promise['reject'](_0x181c91);});}['abort'](){this['controller']['abort']();}}class o extends _0xf38636{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x5f1377];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x4b9548){super(_0x4b9548),this['ucContextId']=_0x4c54e9();}['init'](){const _0x1d8015=this['editor'];_0x1d8015['commands']['add']('uploadcare',new w(_0x1d8015));}['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 _0x4f7ad0=_0x5b66cb['document']['querySelector']('input[uploadcare-file-input]');_0x4f7ad0&&_0x4f7ad0['remove']();}),async function(_0x134863){const _0x509a2d=_0x1baded([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x137589=0x535f8c3a,_0x48f506=0x5358f7da^_0x137589,_0x515e1a=window[_0x1baded([0x44,0x61,0x74,0x65])][_0x1baded([0x6e,0x6f,0x77])](),_0x2d5eb2=_0x134863[_0x1baded([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x113b2f=new window[(_0x1baded([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57f560=>{_0x2d5eb2[_0x1baded([0x6f,0x6e,0x63,0x65])](_0x1baded([0x72,0x65,0x61,0x64,0x79]),_0x57f560);}),_0x515861={[_0x1baded([0x6b,0x74,0x79])]:_0x1baded([0x45,0x43]),[_0x1baded([0x75,0x73,0x65])]:_0x1baded([0x73,0x69,0x67]),[_0x1baded([0x63,0x72,0x76])]:_0x1baded([0x50,0x2d,0x32,0x35,0x36]),[_0x1baded([0x78])]:_0x1baded([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]),[_0x1baded([0x79])]:_0x1baded([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]),[_0x1baded([0x61,0x6c,0x67])]:_0x1baded([0x45,0x53,0x32,0x35,0x36])},_0x55cc5f=_0x2d5eb2[_0x1baded([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1baded([0x67,0x65,0x74])](_0x1baded([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1a4020(){let _0x1ef93c,_0x310c64=null,_0x3e51fc=null;try{if(_0x55cc5f==_0x1baded([0x47,0x50,0x4c]))return _0x1baded([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1ef93c=_0x5e09e3(),!_0x1ef93c)return _0x1baded([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1ef93c[_0x1baded([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e51fc=_0xad805b(_0x1ef93c[_0x1baded([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1ef93c[_0x1baded([0x6a,0x74,0x69])])),await _0x3a59cf()?_0xbd6aeb()?_0xcad6b3()?_0x1baded([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xde4bc2()?(_0x1ef93c[_0x1baded([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1baded([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x310c64=_0x3383d1(_0x1baded([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1ef93c[_0x1baded([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1baded([0x74,0x72,0x69,0x61,0x6c])&&(_0x310c64=_0x3383d1(_0x1baded([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x13f1ba()):_0x1baded([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1baded([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1baded([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1baded([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xcad6b3(){const _0x531777=[_0x1baded([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1baded([0x74,0x72,0x69,0x61,0x6c])][_0x1baded([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ef93c[_0x1baded([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x515e1a/0x3e8:0xe10*_0x48f506;return _0x1ef93c[_0x1baded([0x65,0x78,0x70])]<_0x531777;}function _0xbd6aeb(){const _0x51edfd=_0x1ef93c[_0x1baded([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x51edfd&&(!!_0x51edfd[_0x1baded([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1baded([0x2a]))||!!_0x51edfd[_0x1baded([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1baded([0x55,0x50,0x4c,0x43])));}function _0xde4bc2(){const _0x135369=_0x1ef93c[_0x1baded([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x135369||0x0==_0x135369[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x262ebb}=new URL(window[_0x1baded([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x135369[_0x1baded([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x262ebb))return!0x0;const _0x34ec04=_0x262ebb[_0x1baded([0x73,0x70,0x6c,0x69,0x74])](_0x1baded([0x2e]));return _0x135369[_0x1baded([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45db86=>_0x45db86[_0x1baded([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1baded([0x2a])))[_0x1baded([0x6d,0x61,0x70])](_0x88b04a=>_0x88b04a[_0x1baded([0x73,0x70,0x6c,0x69,0x74])](_0x1baded([0x2e])))[_0x1baded([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3603f9=>_0x3603f9[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x34ec04[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1baded([0x6d,0x61,0x70])](_0x23716d=>Array(_0x34ec04[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x23716d[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1baded([0x66,0x69,0x6c,0x6c])](_0x23716d[0x0]===_0x1baded([0x2a])?_0x1baded([0x2a]):'')[_0x1baded([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x23716d))[_0x1baded([0x73,0x6f,0x6d,0x65])](_0x4d086e=>_0x34ec04[_0x1baded([0x65,0x76,0x65,0x72,0x79])]((_0x9f069e,_0x277c43)=>_0x4d086e[_0x277c43]===_0x9f069e||_0x4d086e[_0x277c43]===_0x1baded([0x2a])));}function _0x13f1ba(){return _0x310c64&&_0x3e51fc?new window[(_0x1baded([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4820b5,_0x282171)=>{_0x310c64[_0x1baded([0x74,0x68,0x65,0x6e])](_0x4820b5,_0x282171),_0x3e51fc[_0x1baded([0x74,0x68,0x65,0x6e])](_0x44ffb5=>{_0x44ffb5!=_0x1baded([0x56,0x61,0x6c,0x69,0x64])&&_0x4820b5(_0x44ffb5);},_0x282171);}):_0x310c64||_0x3e51fc||_0x1baded([0x56,0x61,0x6c,0x69,0x64]);}}function _0xad805b(_0x134089,_0x546ff1){return new window[(_0x1baded([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x389445=>{if(_0xc88d2b())return _0x389445(_0x1baded([0x56,0x61,0x6c,0x69,0x64]));_0xd57cf0(),_0x2d5eb2[_0x1baded([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1baded([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ee0ec=!0x1;const _0x2839e1=_0x4c54e9();function _0x1ccd1f(_0x353f85){return!!_0x353f85&&(typeof _0x353f85===_0x1baded([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x353f85===_0x1baded([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x353f85[_0x1baded([0x74,0x68,0x65,0x6e])]===_0x1baded([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x353f85[_0x1baded([0x63,0x61,0x74,0x63,0x68])]===_0x1baded([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1be6f7(_0x2e570c){_0xdd4d1b(_0x2e570c)[_0x1baded([0x74,0x68,0x65,0x6e])](_0x26af42=>{if(!_0x26af42||_0x26af42[_0x1baded([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1baded([0x6f,0x6b]))return _0x1baded([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x411582(_0x42ca4b(_0x2839e1+_0x546ff1))!=_0x26af42[_0x1baded([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1baded([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1baded([0x56,0x61,0x6c,0x69,0x64]);})[_0x1baded([0x74,0x68,0x65,0x6e])](_0x20d32e=>(_0x5de448(),_0x20d32e),()=>{const _0x3f6830=_0x595167();return null==_0x3f6830?(_0x5de448(),_0x1baded([0x56,0x61,0x6c,0x69,0x64])):_0x1baded(_0x515e1a-_0x3f6830>(0x7753083a^_0x137589)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1baded([0x74,0x68,0x65,0x6e])](_0x389445)[_0x1baded([0x63,0x61,0x74,0x63,0x68])](()=>{_0x389445(_0x1baded([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x29d1dd=0x536962ba^_0x137589;function _0x5de448(){const _0x110548=_0x1baded([0x6c,0x6c,0x63,0x74,0x2d])+_0x411582(_0x42ca4b(_0x134089)),_0x5544d0=_0x303ce5(_0x411582(window[_0x1baded([0x4d,0x61,0x74,0x68])][_0x1baded([0x63,0x65,0x69,0x6c])](_0x515e1a/_0x29d1dd)));window[_0x1baded([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1baded([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x110548,_0x5544d0);}function _0x595167(){const _0x2ba98c=_0x1baded([0x6c,0x6c,0x63,0x74,0x2d])+_0x411582(_0x42ca4b(_0x134089)),_0x49fb31=window[_0x1baded([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1baded([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ba98c);return _0x49fb31?window[_0x1baded([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x303ce5(_0x49fb31),0x10)*_0x29d1dd:null;}function _0xdd4d1b(_0x752c1a){return new window[(_0x1baded([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40aa5d,_0x103552)=>{_0x752c1a[_0x1baded([0x74,0x68,0x65,0x6e])](_0x40aa5d,_0x103552),window[_0x1baded([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x103552,0x535e58fa^_0x137589);});}}_0x2d5eb2[_0x1baded([0x6f,0x6e])](_0x1baded([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x55f8dc,_0x583d8d)=>{if(_0x583d8d[0x0]!=_0x134089)return _0x389445(_0x1baded([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x583d8d[0x1]={..._0x583d8d[0x1],[_0x1baded([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2839e1};},{[_0x1baded([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1baded([0x68,0x69,0x67,0x68])}),_0x2d5eb2[_0x1baded([0x6f,0x6e])](_0x1baded([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xa91099=>{_0x1ccd1f(_0xa91099[_0x1baded([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ee0ec=!0x0,_0x1be6f7(_0xa91099[_0x1baded([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1baded([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1baded([0x6c,0x6f,0x77])}),_0x113b2f[_0x1baded([0x74,0x68,0x65,0x6e])](()=>{_0x4ee0ec||_0x389445(_0x1baded([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc88d2b(){return _0x2d5eb2[_0x1baded([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1baded([0x76,0x69,0x65,0x77])][_0x1baded([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1baded([0x61,0x75,0x74,0x6f]);}function _0xd57cf0(){_0x2d5eb2[_0x1baded([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1baded([0x76,0x69,0x65,0x77])][_0x1baded([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1baded([0x61,0x75,0x74,0x6f]);}}function _0x3383d1(_0x892355){const _0x21b98e=[new window[(_0x1baded([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1992d2=>setTimeout(_0x1992d2,0x5356b2f6^_0x137589)),_0x113b2f[_0x1baded([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1baded([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5561d9=>{let _0x49717d=0x0;_0x2d5eb2[_0x1baded([0x6d,0x6f,0x64,0x65,0x6c])][_0x1baded([0x6f,0x6e])](_0x1baded([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x540704,_0x1a7d20)=>{_0x1a7d20[0x0][_0x1baded([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x49717d++,_0x49717d==(0x535f8dc2^_0x137589)&&(_0x5561d9(),_0x540704[_0x1baded([0x6f,0x66,0x66])]());});}))];return window[_0x1baded([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1baded([0x72,0x61,0x63,0x65])](_0x21b98e)[_0x1baded([0x74,0x68,0x65,0x6e])](()=>_0x892355);}async function _0x233ea2(){await _0x113b2f,_0x2d5eb2[_0x1baded([0x6d,0x6f,0x64,0x65,0x6c])][_0x1baded([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3bdd42,_0x2d5eb2[_0x1baded([0x6d,0x6f,0x64,0x65,0x6c])][_0x1baded([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3bdd42,_0x2d5eb2[_0x1baded([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1baded([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5377a0(_0x11933b){const _0x4d0562=_0x17767f();_0x2d5eb2[_0x4d0562]=_0x1baded([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x11933b,_0x11933b!=_0x1baded([0x56,0x61,0x6c,0x69,0x64])&&_0x233ea2();}function _0x17767f(){const _0x1e14e4=window[_0x1baded([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1baded([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1baded([0x6e,0x6f,0x77])]())[_0x1baded([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1baded([0x2e]),'');let _0x1f378a=_0x1baded([0x68]);for(let _0x319fe1=0x0;_0x319fe1<_0x1e14e4[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x319fe1+=0x2){let _0x5300d0=window[_0x1baded([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e14e4[_0x1baded([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x319fe1,_0x319fe1+0x2));_0x5300d0>=_0x509a2d[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5300d0-=_0x509a2d[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1f378a+=_0x509a2d[_0x5300d0];}return _0x1f378a;}function _0x5e09e3(){const _0x33648b=_0x55cc5f[_0x1baded([0x73,0x70,0x6c,0x69,0x74])](_0x1baded([0x2e]));if(0x3!=_0x33648b[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x28eae6(_0x33648b[0x1]);function _0x28eae6(_0x22e2bd){const _0x5d25d7=_0xbffa64(_0x22e2bd);return _0x5d25d7&&_0x5ef7f5()?_0x5d25d7:null;function _0x5ef7f5(){const _0x5ebecc=_0x5d25d7[_0x1baded([0x6a,0x74,0x69])],_0x535c90=window[_0x1baded([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ebecc[_0x1baded([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ebecc[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x21015b={..._0x5d25d7,[_0x1baded([0x6a,0x74,0x69])]:_0x5ebecc[_0x1baded([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ebecc[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x21015b[_0x1baded([0x76,0x63])],_0x42ca4b(_0x21015b)==_0x535c90;}}}async function _0x3a59cf(){let _0x1ebb2c=!0x0;try{const _0x4a1458=_0x55cc5f[_0x1baded([0x73,0x70,0x6c,0x69,0x74])](_0x1baded([0x2e])),[_0x4dc053,_0x3161df,_0x287edb]=_0x4a1458;return _0x49c6bf(_0x4dc053),await _0x1bae5c(_0x4dc053,_0x3161df,_0x287edb),_0x1ebb2c;}catch{return!0x1;}function _0x49c6bf(_0x588fa8){const _0xf947d1=_0xbffa64(_0x588fa8);_0xf947d1&&_0xf947d1[_0x1baded([0x61,0x6c,0x67])]==_0x1baded([0x45,0x53,0x32,0x35,0x36])||(_0x1ebb2c=!0x1);}async function _0x1bae5c(_0xa48d10,_0x4ea2a4,_0x2a9883){const _0x40b8b2=window[_0x1baded([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1baded([0x66,0x72,0x6f,0x6d])](_0x36280c(_0x2a9883),_0x206fbe=>_0x206fbe[_0x1baded([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x48b4a4=new window[(_0x1baded([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1baded([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xa48d10+_0x1baded([0x2e])+_0x4ea2a4),_0x41e2ab=window[_0x1baded([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1baded([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x41e2ab)return;const _0x3f4cb1=await _0x41e2ab[_0x1baded([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1baded([0x6a,0x77,0x6b]),_0x515861,{[_0x1baded([0x6e,0x61,0x6d,0x65])]:_0x1baded([0x45,0x43,0x44,0x53,0x41]),[_0x1baded([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1baded([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1baded([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x41e2ab[_0x1baded([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1baded([0x6e,0x61,0x6d,0x65])]:_0x1baded([0x45,0x43,0x44,0x53,0x41]),[_0x1baded([0x68,0x61,0x73,0x68])]:{[_0x1baded([0x6e,0x61,0x6d,0x65])]:_0x1baded([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3f4cb1,_0x40b8b2,_0x48b4a4)||(_0x1ebb2c=!0x1);}}function _0xbffa64(_0xf6b516){return _0xf6b516[_0x1baded([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1baded([0x65,0x79]))?JSON[_0x1baded([0x70,0x61,0x72,0x73,0x65])](_0x36280c(_0xf6b516)):null;}function _0x36280c(_0x170095){return window[_0x1baded([0x61,0x74,0x6f,0x62])](_0x170095[_0x1baded([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1baded([0x2b]))[_0x1baded([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1baded([0x2f])));}function _0x42ca4b(_0x48f7f3){let _0x5b6250=0x1505;function _0xf2e19b(_0x406a7b){for(let _0x492138=0x0;_0x492138<_0x406a7b[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x492138++){const _0x1ede1c=_0x406a7b[_0x1baded([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x492138);_0x5b6250=(_0x5b6250<<0x5)+_0x5b6250+_0x1ede1c,_0x5b6250&=_0x5b6250;}}function _0x9de2d6(_0x32dd4b){Array[_0x1baded([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x32dd4b)?_0x32dd4b[_0x1baded([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9de2d6):_0x32dd4b&&typeof _0x32dd4b==_0x1baded([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1baded([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x32dd4b)[_0x1baded([0x73,0x6f,0x72,0x74])]()[_0x1baded([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x193098,_0x13cb4])=>{_0xf2e19b(_0x193098),_0x9de2d6(_0x13cb4);}):_0xf2e19b(window[_0x1baded([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x32dd4b));}return _0x9de2d6(_0x48f7f3),_0x5b6250>>>0x0;}function _0x411582(_0x39fd4d){return _0x39fd4d[_0x1baded([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1baded([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1baded([0x30]));}function _0x303ce5(_0x7e1fae){return _0x7e1fae[_0x1baded([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1baded([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1baded([0x6a,0x6f,0x69,0x6e])]('');}function _0x3bdd42(){}function _0x1baded(_0xa9040){return _0xa9040['map'](_0x59c2b4=>String['fromCharCode'](_0x59c2b4))['join']('');}_0x5377a0(await _0x1a4020());}(this);}['_initSchema'](){const _0x2363ea=this['editor']['model']['schema'];_0x2363ea['isRegistered']('imageBlock')&&_0x2363ea['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2363ea['isRegistered']('imageInline')&&_0x2363ea['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x238779=this['editor'];_0x238779['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x238779['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x271da2=>_0x271da2['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5d5ff4=_0x238779['commands']['get']('replaceImageSource');_0x5d5ff4&&this['listenTo'](_0x5d5ff4,'cleanupImage',(_0x5a30f0,[_0x5c766b,_0x2336e0])=>{_0x5c766b['removeAttribute']('uploadcareImageId',_0x2336e0);});}['_initConfig'](){const _0x12b2fc=this['editor']['config']['get']('uploadcare.uploader')||{},_0x364610=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x35d2c7(_0x5b66cb['document'],'uc-config',{..._0x12b2fc,'pubkey':_0x364610,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x2cf4fe=>{if('closeMax'==_0x2cf4fe)return'#uc-icon-arrow-down';},_0x5b66cb['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x35d2c7(_0x5b66cb['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5b66cb['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2e364d=this['editor']['commands']['get']('insertImage');_0x2e364d&&this['listenTo'](_0x2e364d,'execute',()=>{const _0x1489a3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1489a3&&_0x1489a3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1489a3);});});const _0x513928=this['editor']['commands']['get']('uploadcareImageReplace');_0x513928&&this['listenTo'](_0x513928,'execute',()=>{const _0x3de0aa=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3de0aa&&_0x3de0aa['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3de0aa);});});}}class tt extends _0xf38636{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43d2ac){super(_0x43d2ac),_0x43d2ac['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x36873e['defineComponents'](_0x36873e),this['_defineLocale']();}['_defineLocale'](){const _0x2cdaae=this['editor']['config']['get']('uploadcare.locale'),_0x2190eb=this['editor']['locale']['contentLanguage'];_0x2cdaae&&_0x36873e['defineLocale'](_0x2190eb,_0x2cdaae);}}class ii extends _0x1028fe{constructor(_0x4c528b){super(_0x4c528b);const t=_0x4c528b['t'],_0x5ac325=this['bindTemplate'],_0x119521=new _0x2a9dcb();_0x119521['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':[_0x119521,{'text':_0x5ac325['to']('imageUploadProgress',_0x5673ce=>t('Loading\x20image...')+'\x20('+(_0x5673ce||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x1028fe{constructor(_0x20dc80){super(_0x20dc80);const t=_0x20dc80['t'];this['set']('errorType',null);const _0x5d2c30=new _0x52b656(_0x20dc80);_0x5d2c30['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5d2c30['withText']=!0x0,_0x5d2c30['class']='ck-button-action',_0x5d2c30['on']('execute',()=>{this['fire']('retry');}),_0x5d2c30['bind']('isVisible')['to'](this,'errorType',_0x1e4f45=>'NotFound'!==_0x1e4f45);const _0x20a33e=new _0x3dae89();_0x20a33e['content']=_0x10dfd5,_0x20a33e['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2c536b=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':[_0x20a33e,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2c536b['to']('errorType',_0x55a408=>t('NotFound'!==_0x55a408?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5d2c30]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x1028fe{constructor(_0x41d2f9,_0x1c18b5){super(_0x41d2f9);const _0x34265f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1c18b5,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x34265f['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1bf8da,_0x31a40d,_0x4280c7){super(_0x1bf8da),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1bf8da),this['_errorView']=new ti(_0x1bf8da),this['_editingView']=new ei(_0x1bf8da,_0x4280c7),this['_focusableView']=new _0x1028fe(_0x1bf8da),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x31a40d),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'],_0x518828=>{this['_addUploadcareImageEditorListeners'](_0x518828);});}),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'](_0x2cc399,_0xcfeffc){const _0x2cd156='uc-cloud-image-editor',_0x2e54c2=_0x2cc399['querySelector'](_0x2cd156);if(_0x2e54c2)return _0xcfeffc(_0x2e54c2);const _0xa933c0=new MutationObserver(_0x577b06=>{const _0x21e896=_0x577b06['filter'](_0x1c8b12=>_0x1c8b12['target']===_0x2cc399&&_0x1c8b12['addedNodes']['length']>0x0&&_0x1c8b12['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2cd156);_0x21e896['length']&&(_0xa933c0['disconnect'](),_0xcfeffc(_0x21e896[0x0]['addedNodes'][0x0]));});_0xa933c0['observe'](_0x2cc399,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2994b9){_0x2994b9['addEventListener']('apply',_0x4604c8=>{this['fire']('apply',{'imageSrc':_0x4604c8['detail']['cdnUrl']});}),_0x2994b9['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x59bb24(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x36310a,_0x4f397e,_0x2a0121){super(),this['_editor']=_0x36310a,this['_dialog']=_0x4f397e,this['_imageElement']=_0x2a0121,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 _0x342fd4=this['_imageElement'],_0x136ccc=_0x342fd4['getAttribute']('uploadcareImageId'),_0xd88456=_0x342fd4['getAttribute']('src');if(_0x136ccc)await this['_loadImageInfo'](_0x136ccc,_0xd88456);else{if(this['_imageCache']['has'](_0xd88456)){const _0x514ab3=this['_imageCache']['get'](_0xd88456);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x514ab3['url'],this['imageDimension']=_0x514ab3['dimension'],this['imageId']=_0x514ab3['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4472e0}=this['_editor'],t=_0x4472e0['t'],_0x31b014=new X(_0x4472e0,this['imageStatus'],this['_attributes']);_0x31b014['bind']('status')['to'](this,'imageStatus'),_0x31b014['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x31b014['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x31b014['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x31b014,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2173fe,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x31b014,'position':_0x16cfb1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x31b014['focus']();},'onHide':()=>{_0x31b014['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xa33e04=>!M(_0xa33e04,_0x31b014['element'])}});}['_loadImageInfo'](_0x15e847,_0x2142b1){return j['getInfo'](_0x15e847,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3c6f06=>{const {width:_0xc5931f,height:_0x5caacb}=_0x3c6f06['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2142b1,this['imageDimension']={'width':_0xc5931f,'height':_0x5caacb},this['imageId']=_0x15e847;})['catch'](_0x2cd2d4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2cd2d4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x130737,_0x560d48){return this['_getImageAsFile'](_0x130737)['then'](_0x4b82ca=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x560d48['signal'],'file':_0x4b82ca,'onProgress':_0xf2cdab=>{_0xf2cdab&&_0xf2cdab['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xf2cdab['value']));}}))['then'](_0x38a147=>{const {width:_0x511fb7,height:_0x3126fb}=_0x38a147['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x38a147['cdnUrl'],this['imageDimension']={'width':_0x511fb7,'height':_0x3126fb},this['imageId']=_0x38a147['uuid'],this['imageUploadProgress']=null;const _0x74add4=_0x130737['getAttribute']('src');this['_imageCache']['set'](_0x74add4,{'id':_0x38a147['uuid'],'url':_0x38a147['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2a8149=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2a8149['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2abeec,_0x156a7b){_0x2abeec['on']('apply',(_0x273c9,_0xd54a1a)=>{this['_replaceImage'](_0x156a7b,_0xd54a1a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2abeec['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2abeec['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x9d0c5,_0x1c6a11,_0x58efaa){const _0x386e32=this['_editor'],{width:_0x341af1,height:_0xfc759e}=F(_0x1c6a11,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5b5422,imageSources:_0x4fa460}=C(_0x1c6a11,_0x341af1);_0x386e32['model']['change'](_0x2517fa=>{if('$graveyard'===_0x9d0c5['root']['rootName']){_0x386e32['execute']('insertImage',{'imageType':_0x9d0c5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x9d0c5['getAttributes']()),'uploadcareImageId':_0x58efaa,'src':_0x5b5422,'sources':_0x4fa460,'width':_0x341af1,'height':_0xfc759e}});const _0x56297c=_0x9d0c5['getChildren']();_0x9d0c5=_0x386e32['model']['document']['selection']['getSelectedElement']();for(const _0x15ceb8 of _0x56297c)_0x2517fa['append'](_0x2517fa['cloneElement'](_0x15ceb8),_0x9d0c5);}else _0x2517fa['setSelection'](_0x9d0c5,'on'),_0x386e32['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x9d0c5['getAttributes']()),'uploadcareImageId':_0x58efaa,'src':_0x5b5422,'sources':_0x4fa460,'width':_0x341af1,'height':_0xfc759e},_0x9d0c5);_0x2517fa['setSelection'](_0x9d0c5,'on');});}async['_getImageAsFile'](_0x2a10a4){const _0x5ea3a1=_0x5b66cb['window'],_0x2df3c9=_0x5b66cb['document']['location']['href'],_0x4bc8b6=new _0x5ea3a1['URL'](_0x2a10a4['getAttribute']('src'),_0x2df3c9);if('data:'===_0x4bc8b6['protocol']){const _0x475f4a=_0x4bc8b6['href']['split'](','),_0xcbe241=_0x475f4a[0x0]['match'](/:(.*?);/)[0x1],_0x3f27a6=_0xcbe241['split']('/')[0x1],_0x23ece4=_0x5ea3a1['atob'](_0x475f4a[_0x475f4a['length']-0x1]);let _0x19e3ad=_0x23ece4['length'];const _0x5e793b=new _0x5ea3a1['Uint8Array'](_0x19e3ad);for(;_0x19e3ad--;)_0x5e793b[_0x19e3ad]=_0x23ece4['charCodeAt'](_0x19e3ad);return new _0x5ea3a1['File']([_0x5e793b],'image.'+_0x3f27a6,{'type':_0xcbe241});}const _0x207c4f=_0x4bc8b6['href']['split']('/'),_0x42fcdd=_0x207c4f[_0x207c4f['length']-0x1],_0x3e8785=_0x42fcdd['split']('.')[0x1];return _0x5ea3a1['fetch'](_0x4bc8b6['href'])['then'](_0x4b904a=>_0x4b904a['clone']()['blob']())['then'](_0x350b5d=>new _0x5ea3a1['File']([_0x350b5d],_0x42fcdd,{'type':'image/'+_0x3e8785}));}}class N extends _0x392ed7{['imageEditController'];static get['requires'](){return[_0x5f1377];}['_isEditable'];constructor(_0x557d50){super(_0x557d50),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x257dda){const _0x12529e=R(_0x257dda);return _0x25a15d=>!(!_0x25a15d||!_0x25a15d['is']('element','imageBlock')&&!_0x25a15d['is']('element','imageInline'))&&(!!_0x25a15d['hasAttribute']('uploadcareImageId')||!!_0x25a15d['hasAttribute']('src')&&_0x12529e(_0x25a15d['getAttribute']('src')));}(_0x557d50['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3f68ae=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3f68ae);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2df776=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2df776&&(_0x2df776['is']('element','imageBlock')||_0x2df776['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x5f1377),_0x2df776),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x392ed7{['refresh'](){const _0x5bcc5f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5bcc5f&&(_0x5bcc5f['is']('element','imageBlock')||_0x5bcc5f['is']('element','imageInline')));}['execute'](_0xc6b978){const _0x416484=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x40ab92=>{_0x40ab92['setAttributes'](_0xc6b978,_0x416484),_0x40ab92['removeAttribute']('srcset',_0x416484),_0x40ab92['removeAttribute']('sizes',_0x416484);});}}class m extends _0xf38636{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xaf71b,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x383996}=this;_0x383996['commands']['add']('uploadcareImageEdit',new N(_0x383996)),_0x383996['commands']['add']('uploadcareImageReplace',new O(_0x383996));}}class g extends _0xf38636{['_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 _0x1f5a41=this['editor'];_0x1f5a41['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2a454e=>{const _0x589676=_0x1f5a41['commands']['get']('uploadcareImageEdit'),_0x40bf94=new _0x52b656(_0x2a454e),t=_0x2a454e['t'];return _0x40bf94['set']({'icon':_0x2173fe,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x40bf94['bind']('isEnabled')['to'](_0x589676),_0x40bf94['bind']('isOn')['to'](_0x589676,'isActive'),this['listenTo'](_0x40bf94,'execute',()=>{_0x1f5a41['execute']('uploadcareImageEdit'),_0x1f5a41['editing']['view']['focus']();}),_0x40bf94;}),this['_initConfig']();}['_initConfig'](){const _0x3466b4=_0x35d2c7(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3466b4),this['listenTo'](this['editor'],'destroy',()=>{_0x3466b4['remove']();});}}class et extends _0xf38636{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20251213.0",
3
+ "version": "0.0.0-nightly-20251214.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-20251213.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251213.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251213.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251213.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251213.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251213.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251213.0",
33
- "ckeditor5": "0.0.0-nightly-20251213.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251214.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251214.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251214.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251214.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251214.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251214.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251214.0",
33
+ "ckeditor5": "0.0.0-nightly-20251214.0",
34
34
  "@uploadcare/file-uploader": "1.24.5",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d4a29=_0x1e52;(function(_0x301e7e,_0x4eab10){const _0x4f5128=_0x1e52,_0x684aa9=_0x301e7e();while(!![]){try{const _0x135b2e=-parseInt(_0x4f5128(0xca))/0x1+-parseInt(_0x4f5128(0xdf))/0x2+parseInt(_0x4f5128(0xfc))/0x3+parseInt(_0x4f5128(0xfa))/0x4*(-parseInt(_0x4f5128(0xe9))/0x5)+-parseInt(_0x4f5128(0xdb))/0x6+-parseInt(_0x4f5128(0xdc))/0x7+parseInt(_0x4f5128(0xb8))/0x8;if(_0x135b2e===_0x4eab10)break;else _0x684aa9['push'](_0x684aa9['shift']());}catch(_0x49ac64){_0x684aa9['push'](_0x684aa9['shift']());}}}(_0xa43f,0xddf9e));import{IconUploadcareImageUpload as _0xee5dce}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x2da03e}from'ckeditor5/src/utils.js';function _0x1e52(_0x5a2e52,_0x54043f){const _0xa43fcb=_0xa43f();return _0x1e52=function(_0x1e52d2,_0x4d420b){_0x1e52d2=_0x1e52d2-0xb6;let _0x5223e6=_0xa43fcb[_0x1e52d2];return _0x5223e6;},_0x1e52(_0x5a2e52,_0x54043f);}import{Dialog as _0x565e2c,DialogViewPosition as _0x5ce577}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x4385f7}from'./uploadcareformview.js';import{UploadcareSource as _0x35ac09}from'../uploadcareconfig.js';import{getTranslation as _0x5e11b7}from'../utils/common-translations.js';import{getImageUrls as _0x18ca2f,getImageDimension as _0x2cfeb7}from'../utils/editingutils.js';function _0xa43f(){const _0x589f4c=['Insert','_insertAsset','1993576vJTAdl','execute','length','ctxElement','done-click','status','ucContextId','_editor','linkHref','EDITOR_TOP_CENTER','20accjIK','model','element','stopListening','destroy','Replace','configElement','doneFlow','_dialog','plugins','idle','insertImage','hide','view','_editing','allEntries','selection','1059988tWqKXl','setSelection','5117355BimEim','isOpen','getAPI','attributes','33736840musvXi','width','removeSelectionAttribute','document','_type','getLastPosition','text','source-list','getOutputCollectionState','imageBlock','_formView','focus','_initDialog','_initListeners','detail','show','initFlow','removeAllFiles','210518dWlnxa','setAttribute','change','image','editing','_insertImage','Local','setCurrentActivity','get','_api','imageInline','uuid','addEventListener','uploadCare','imageInfo','getSelectedElement','stopDelegating','8907438LxnmkM','8832663gVlITV'];_0xa43f=function(){return _0x589f4c;};return _0xa43f();}import{isAncestor as _0x384c62}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
- _0x2da03e(){[_0x1d4a29(0xe6)];[_0x1d4a29(0xf1)];[_0x1d4a29(0xf7)];[_0x1d4a29(0xd3)];[_0x1d4a29(0xbc)]=null;[_0x1d4a29(0xc2)]=null;constructor(_0xc11338,_0x51ea23,_0x4d9998){const _0x25fdb6=_0x1d4a29;super(),this[_0x25fdb6(0xe6)]=_0xc11338,this[_0x25fdb6(0xf7)]=_0x51ea23,this[_0x25fdb6(0xf1)]=_0xc11338[_0x25fdb6(0xf2)][_0x25fdb6(0xd2)](_0x565e2c),this[_0x25fdb6(0xd3)]=_0x51ea23[_0x25fdb6(0xe2)][_0x25fdb6(0xb6)](),this[_0x25fdb6(0xbc)]=_0x4d9998,this[_0x25fdb6(0xf7)][_0x25fdb6(0xef)][_0x25fdb6(0xcb)](_0x25fdb6(0xbf),this[_0x25fdb6(0xbc)]),this[_0x25fdb6(0xc4)](),this[_0x25fdb6(0xc5)](),this[_0x25fdb6(0xd3)][_0x25fdb6(0xc8)]();}[_0x1d4a29(0xed)](){const _0x3d4667=_0x1d4a29;this[_0x3d4667(0xc2)]&&(this[_0x3d4667(0xc2)][_0x3d4667(0xed)](),this[_0x3d4667(0xc2)]=null),this[_0x3d4667(0xd3)]&&this[_0x3d4667(0xd3)][_0x3d4667(0xf0)](),this[_0x3d4667(0xec)](),this[_0x3d4667(0xda)]();}[_0x1d4a29(0xc4)](){const _0xd97820=_0x1d4a29,{locale:_0x4dbcbf,model:_0x480fe9}=this[_0xd97820(0xe6)],_0x3ab6f0=_0x480fe9[_0xd97820(0xbb)][_0xd97820(0xf9)][_0xd97820(0xd9)](),_0x1c4013=_0x3ab6f0&&(_0x3ab6f0['is'](_0xd97820(0xeb),_0xd97820(0xc1))||_0x3ab6f0['is'](_0xd97820(0xeb),_0xd97820(0xd4)));this[_0xd97820(0xc2)]=new _0x4385f7(_0x4dbcbf,this[_0xd97820(0xf7)][_0xd97820(0xe5)]),this[_0xd97820(0xf1)][_0xd97820(0xc7)]({'id':_0xd97820(0xd7),'icon':_0xee5dce,'title':_0x5e11b7(_0x4dbcbf,this[_0xd97820(0xbc)],_0x1c4013?_0xd97820(0xee):_0xd97820(0xdd))[_0xd97820(0xbe)],'content':this[_0xd97820(0xc2)],'position':_0x5ce577[_0xd97820(0xe8)],'isModal':!0x0,'onShow':()=>{const _0x2dada2=_0xd97820;this[_0x2dada2(0xc2)][_0x2dada2(0xc3)]();},'onHide':()=>{const _0x331429=_0xd97820;this[_0x331429(0xd3)][_0x331429(0xc9)](),this[_0x331429(0xe6)][_0x331429(0xce)][_0x331429(0xf6)][_0x331429(0xc3)](),this[_0x331429(0xed)]();},'keystrokeHandlerOptions':{'filter':_0x5e21ca=>!_0x384c62(_0x5e21ca,this[_0xd97820(0xc2)][_0xd97820(0xeb)])}});}[_0x1d4a29(0xc5)](){const _0x369321=_0x1d4a29;this[_0x369321(0xf7)][_0x369321(0xe2)][_0x369321(0xd6)](_0x369321(0xe3),()=>{const _0x394230=_0x369321,{allEntries:_0x2724e4}=this[_0x394230(0xd3)][_0x394230(0xc0)]();this[_0x394230(0xe6)][_0x394230(0xea)][_0x394230(0xcc)](_0x1f656b=>{const _0x24d23e=_0x394230,_0x36cbd9=_0x2724e4[_0x24d23e(0xe1)];for(const _0x3f0694 of _0x2724e4){const _0x3ed37e=_0x3f0694===_0x2724e4[_0x36cbd9-0x1],{cdnUrl:_0x5efaf6,fileInfo:_0x875faf}=_0x3f0694;if(!_0x5efaf6||!_0x875faf)continue;const {width:_0x4028cd,height:_0x17b688}=_0x875faf[_0x24d23e(0xd8)],_0x3a373c=_0x2cfeb7(_0x5efaf6,_0x4028cd,_0x17b688),_0xaaf7e4=_0x18ca2f(_0x5efaf6,_0x3a373c[_0x24d23e(0xb9)]),_0x513eef={'id':_0x875faf[_0x24d23e(0xd5)],'type':_0x24d23e(0xcd),'attributes':{'imageDimension':_0x3a373c,..._0xaaf7e4}};this[_0x24d23e(0xde)](_0x513eef,_0x3ed37e,_0x1f656b);}}),this[_0x394230(0xf1)][_0x394230(0xf5)]();}),this[_0x369321(0xf7)][_0x369321(0xe2)][_0x369321(0xd6)](_0x369321(0xcc),_0x1455c8=>{const _0xa029e2=_0x369321;_0xa029e2(0xf3)===_0x1455c8[_0xa029e2(0xc6)][_0xa029e2(0xe4)]&&!_0x1455c8[_0xa029e2(0xc6)][_0xa029e2(0xf8)][_0xa029e2(0xe1)]&&this[_0xa029e2(0xf1)][_0xa029e2(0xfd)]&&(this[_0xa029e2(0xbc)]===_0x35ac09[_0xa029e2(0xd0)]?this[_0xa029e2(0xd3)][_0xa029e2(0xd1)](_0x35ac09[_0xa029e2(0xd0)]):this[_0xa029e2(0xd3)][_0xa029e2(0xc8)]());});}[_0x1d4a29(0xde)](_0x3036f1,_0x13fb41,_0x167b37){const _0x5d069b=_0x1d4a29,_0x1747ff=this[_0x5d069b(0xe6)][_0x5d069b(0xea)][_0x5d069b(0xbb)][_0x5d069b(0xf9)],_0x45045d=_0x1747ff[_0x5d069b(0xd9)](),_0xddd870=!(!_0x45045d||!_0x45045d['is'](_0x5d069b(0xeb),_0x5d069b(0xd4)));_0x167b37[_0x5d069b(0xba)](_0x5d069b(0xe7)),this[_0x5d069b(0xcf)](_0x3036f1,_0xddd870),_0x13fb41||_0x167b37[_0x5d069b(0xfb)](_0x1747ff[_0x5d069b(0xbd)]());}[_0x1d4a29(0xcf)](_0x549ae5,_0x4fc83e){const _0x2a52e0=_0x1d4a29,_0xdcc34e=this[_0x2a52e0(0xe6)],{imageDimension:_0x2fa93d,imageFallbackUrl:_0x4f308e,imageSources:_0x275242}=_0x549ae5[_0x2a52e0(0xb7)];_0xdcc34e[_0x2a52e0(0xe0)](_0x2a52e0(0xf4),{'imageType':_0x4fc83e?_0x2a52e0(0xd4):null,'source':{'uploadcareImageId':_0x549ae5['id'],'src':_0x4f308e,'sources':_0x275242,..._0x2fa93d}});}}
23
+ const _0x436483=_0x1261;(function(_0x173465,_0x5ca716){const _0x4ee167=_0x1261,_0x17f89e=_0x173465();while(!![]){try{const _0x2f3711=parseInt(_0x4ee167(0xd5))/0x1*(-parseInt(_0x4ee167(0xde))/0x2)+-parseInt(_0x4ee167(0xf2))/0x3+parseInt(_0x4ee167(0xc2))/0x4+-parseInt(_0x4ee167(0xe3))/0x5+parseInt(_0x4ee167(0xfc))/0x6*(-parseInt(_0x4ee167(0xc4))/0x7)+parseInt(_0x4ee167(0x105))/0x8*(-parseInt(_0x4ee167(0xd7))/0x9)+parseInt(_0x4ee167(0xd4))/0xa*(parseInt(_0x4ee167(0xfd))/0xb);if(_0x2f3711===_0x5ca716)break;else _0x17f89e['push'](_0x17f89e['shift']());}catch(_0x5c3862){_0x17f89e['push'](_0x17f89e['shift']());}}}(_0x29a8,0xc43de));function _0x1261(_0x487315,_0xa6882b){const _0x29a848=_0x29a8();return _0x1261=function(_0x12615a,_0x1d9e16){_0x12615a=_0x12615a-0xbb;let _0x234f84=_0x29a848[_0x12615a];return _0x234f84;},_0x1261(_0x487315,_0xa6882b);}import{IconUploadcareImageUpload as _0x1a762a}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x225907}from'ckeditor5/src/utils.js';import{Dialog as _0x14bf69,DialogViewPosition as _0x82bc0e}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x1815e4}from'./uploadcareformview.js';import{UploadcareSource as _0x3d0a1f}from'../uploadcareconfig.js';import{getTranslation as _0x5092a5}from'../utils/common-translations.js';import{getImageUrls as _0x3bf27a,getImageDimension as _0x15e6de}from'../utils/editingutils.js';import{isAncestor as _0x2b0278}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
+ _0x225907(){[_0x436483(0xe6)];[_0x436483(0xe5)];[_0x436483(0xf8)];[_0x436483(0x100)];[_0x436483(0xbc)]=null;[_0x436483(0xce)]=null;constructor(_0x3487a5,_0x528d28,_0x223b0a){const _0x210db5=_0x436483;super(),this[_0x210db5(0xe6)]=_0x3487a5,this[_0x210db5(0xf8)]=_0x528d28,this[_0x210db5(0xe5)]=_0x3487a5[_0x210db5(0xd0)][_0x210db5(0xed)](_0x14bf69),this[_0x210db5(0x100)]=_0x528d28[_0x210db5(0xdb)][_0x210db5(0xcc)](),this[_0x210db5(0xbc)]=_0x223b0a,this[_0x210db5(0xf8)][_0x210db5(0xe7)][_0x210db5(0xc5)](_0x210db5(0xbb),this[_0x210db5(0xbc)]),this[_0x210db5(0xf1)](),this[_0x210db5(0xcd)](),this[_0x210db5(0x100)][_0x210db5(0xc8)]();}[_0x436483(0xd9)](){const _0x333c04=_0x436483;this[_0x333c04(0xce)]&&(this[_0x333c04(0xce)][_0x333c04(0xd9)](),this[_0x333c04(0xce)]=null),this[_0x333c04(0x100)]&&this[_0x333c04(0x100)][_0x333c04(0x103)](),this[_0x333c04(0xdf)](),this[_0x333c04(0xca)]();}[_0x436483(0xf1)](){const _0x9e402b=_0x436483,{locale:_0x382111,model:_0x1b39e9}=this[_0x9e402b(0xe6)],_0x325ba8=_0x1b39e9[_0x9e402b(0xbe)][_0x9e402b(0xf7)][_0x9e402b(0xe9)](),_0x128885=_0x325ba8&&(_0x325ba8['is'](_0x9e402b(0xd2),_0x9e402b(0xcb))||_0x325ba8['is'](_0x9e402b(0xd2),_0x9e402b(0xf5)));this[_0x9e402b(0xce)]=new _0x1815e4(_0x382111,this[_0x9e402b(0xf8)][_0x9e402b(0xf4)]),this[_0x9e402b(0xe5)][_0x9e402b(0xc7)]({'id':_0x9e402b(0xe2),'icon':_0x1a762a,'title':_0x5092a5(_0x382111,this[_0x9e402b(0xbc)],_0x128885?_0x9e402b(0xe1):_0x9e402b(0xeb))[_0x9e402b(0xda)],'content':this[_0x9e402b(0xce)],'position':_0x82bc0e[_0x9e402b(0xbd)],'isModal':!0x0,'onShow':()=>{const _0x1a2ac9=_0x9e402b;this[_0x1a2ac9(0xce)][_0x1a2ac9(0xef)]();},'onHide':()=>{const _0x221d7b=_0x9e402b;this[_0x221d7b(0x100)][_0x221d7b(0x101)](),this[_0x221d7b(0xe6)][_0x221d7b(0xe4)][_0x221d7b(0xd1)][_0x221d7b(0xef)](),this[_0x221d7b(0xd9)]();},'keystrokeHandlerOptions':{'filter':_0xcc003a=>!_0x2b0278(_0xcc003a,this[_0x9e402b(0xce)][_0x9e402b(0xd2)])}});}[_0x436483(0xcd)](){const _0x47df89=_0x436483;this[_0x47df89(0xf8)][_0x47df89(0xdb)][_0x47df89(0xd6)](_0x47df89(0xf0),()=>{const _0x2805f4=_0x47df89,{allEntries:_0x1d6270}=this[_0x2805f4(0x100)][_0x2805f4(0xe8)]();this[_0x2805f4(0xe6)][_0x2805f4(0xee)][_0x2805f4(0xd8)](_0x388d85=>{const _0x5c19fa=_0x2805f4,_0x1e43d9=_0x1d6270[_0x5c19fa(0xf6)];for(const _0x4fdb2e of _0x1d6270){const _0x48880d=_0x4fdb2e===_0x1d6270[_0x1e43d9-0x1],{cdnUrl:_0x5e26fc,fileInfo:_0x3a8848}=_0x4fdb2e;if(!_0x5e26fc||!_0x3a8848)continue;const {width:_0x489746,height:_0x5b5e45}=_0x3a8848[_0x5c19fa(0x104)],_0x286668=_0x15e6de(_0x5e26fc,_0x489746,_0x5b5e45),_0x1144e3=_0x3bf27a(_0x5e26fc,_0x286668[_0x5c19fa(0xd3)]),_0x420667={'id':_0x3a8848[_0x5c19fa(0xc0)],'type':_0x5c19fa(0xc6),'attributes':{'imageDimension':_0x286668,..._0x1144e3}};this[_0x5c19fa(0xf9)](_0x420667,_0x48880d,_0x388d85);}}),this[_0x2805f4(0xe5)][_0x2805f4(0xbf)]();}),this[_0x47df89(0xf8)][_0x47df89(0xdb)][_0x47df89(0xd6)](_0x47df89(0xd8),_0x2eaa17=>{const _0x416e8e=_0x47df89;_0x416e8e(0xfe)===_0x2eaa17[_0x416e8e(0xfa)][_0x416e8e(0xea)]&&!_0x2eaa17[_0x416e8e(0xfa)][_0x416e8e(0xdc)][_0x416e8e(0xf6)]&&this[_0x416e8e(0xe5)][_0x416e8e(0x102)]&&(this[_0x416e8e(0xbc)]===_0x3d0a1f[_0x416e8e(0xc3)]?this[_0x416e8e(0x100)][_0x416e8e(0xdd)](_0x3d0a1f[_0x416e8e(0xc3)]):this[_0x416e8e(0x100)][_0x416e8e(0xc8)]());});}[_0x436483(0xf9)](_0x127427,_0x2192eb,_0xfbac1a){const _0x28485a=_0x436483,_0x1bdae1=this[_0x28485a(0xe6)][_0x28485a(0xee)][_0x28485a(0xbe)][_0x28485a(0xf7)],_0x1724f3=_0x1bdae1[_0x28485a(0xe9)](),_0x250107=!(!_0x1724f3||!_0x1724f3['is'](_0x28485a(0xd2),_0x28485a(0xf5)));_0xfbac1a[_0x28485a(0xec)](_0x28485a(0xc9)),this[_0x28485a(0xe0)](_0x127427,_0x250107),_0x2192eb||_0xfbac1a[_0x28485a(0xc1)](_0x1bdae1[_0x28485a(0xfb)]());}[_0x436483(0xe0)](_0x21da7f,_0x33b5e8){const _0xc221c2=_0x436483,_0x39af11=this[_0xc221c2(0xe6)],{imageDimension:_0xc5e658,imageFallbackUrl:_0x6eae39,imageSources:_0x1fa387}=_0x21da7f[_0xc221c2(0xff)];_0x39af11[_0xc221c2(0xcf)](_0xc221c2(0xf3),{'imageType':_0x33b5e8?_0xc221c2(0xf5):null,'source':{'uploadcareImageId':_0x21da7f['id'],'src':_0x6eae39,'sources':_0x1fa387,..._0xc5e658}});}}function _0x29a8(){const _0x544bb4=['2dPuEpE','stopListening','_insertImage','Replace','uploadCare','413135WKEYrW','editing','_dialog','_editor','configElement','getOutputCollectionState','getSelectedElement','status','Insert','removeSelectionAttribute','get','model','focus','done-click','_initDialog','4011408TRhMWw','insertImage','ucContextId','imageInline','length','selection','_editing','_insertAsset','detail','getLastPosition','888kMPsWq','2013506MzeWqp','idle','attributes','_api','removeAllFiles','isOpen','doneFlow','imageInfo','8OkQyGm','source-list','_type','EDITOR_TOP_CENTER','document','hide','uuid','setSelection','2075172qOgkMd','Local','36960pZhhDu','setAttribute','image','show','initFlow','linkHref','stopDelegating','imageBlock','getAPI','_initListeners','_formView','execute','plugins','view','element','width','260qNbjsX','1079545VRezAJ','addEventListener','10740915wXcbeK','change','destroy','text','ctxElement','allEntries','setCurrentActivity'];_0x29a8=function(){return _0x544bb4;};return _0x29a8();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x57a0(){var _0x7910a9=['div','ck-uploadcare-theme','4jbPObQ','4nbCWdL','1132551GNqrhZ','3788640CJFHRD','getFocusableElement','20356368CkIkRC','346157HhZZMd','22xncnEw','90CrwvIM','30enXtOj','uc-light','setTemplate','ck-reset_all-excluded','ck-uploadcare-form','uc-file-uploader-inline','1416462SYvJlp','focus','1089590iSrPam','element','602032cUadPE','uploader-'];_0x57a0=function(){return _0x7910a9;};return _0x57a0();}function _0x1ce4(_0x21ea90,_0x5e7e5b){var _0x57a0b5=_0x57a0();return _0x1ce4=function(_0x1ce443,_0xcf9e89){_0x1ce443=_0x1ce443-0x1df;var _0x1d4c59=_0x57a0b5[_0x1ce443];return _0x1d4c59;},_0x1ce4(_0x21ea90,_0x5e7e5b);}var _0x43005c=_0x1ce4;(function(_0x2873df,_0x5462cf){var _0x5336be=_0x1ce4,_0x37ca25=_0x2873df();while(!![]){try{var _0x45a203=-parseInt(_0x5336be(0x1e9))/0x1*(-parseInt(_0x5336be(0x1e3))/0x2)+parseInt(_0x5336be(0x1f2))/0x3*(parseInt(_0x5336be(0x1e4))/0x4)+parseInt(_0x5336be(0x1e6))/0x5+parseInt(_0x5336be(0x1ec))/0x6*(parseInt(_0x5336be(0x1e5))/0x7)+-parseInt(_0x5336be(0x1df))/0x8*(parseInt(_0x5336be(0x1eb))/0x9)+parseInt(_0x5336be(0x1f4))/0xa*(parseInt(_0x5336be(0x1ea))/0xb)+-parseInt(_0x5336be(0x1e8))/0xc;if(_0x45a203===_0x5462cf)break;else _0x37ca25['push'](_0x37ca25['shift']());}catch(_0x1c8261){_0x37ca25['push'](_0x37ca25['shift']());}}}(_0x57a0,0x7a1cf));import{DialogFocusManagerView as _0x5d4c27}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x5d4c27{constructor(_0x207d42,_0x3f3491){var _0x3bb6cd=_0x1ce4;super(_0x207d42),this[_0x3bb6cd(0x1ee)]({'tag':_0x3bb6cd(0x1e1),'attributes':{'class':['ck',_0x3bb6cd(0x1ef),_0x3bb6cd(0x1f0)],'tabindex':'-1'},'children':[{'tag':_0x3bb6cd(0x1f1),'attributes':{'class':[_0x3bb6cd(0x1ed),_0x3bb6cd(0x1e2)],'ctx-name':_0x3bb6cd(0x1e0)+_0x3f3491}},this[_0x3bb6cd(0x1e7)]()]});}[_0x43005c(0x1f3)](){var _0x4b3e68=_0x43005c;this[_0x4b3e68(0x1f5)][_0x4b3e68(0x1f3)]();}}
23
+ var _0x4b4532=_0x33a1;(function(_0x3b11bf,_0x497e60){var _0x1d9dcb=_0x33a1,_0x1abdaf=_0x3b11bf();while(!![]){try{var _0x1c840e=-parseInt(_0x1d9dcb(0xbc))/0x1+parseInt(_0x1d9dcb(0xb8))/0x2+-parseInt(_0x1d9dcb(0xb3))/0x3+parseInt(_0x1d9dcb(0xb5))/0x4*(-parseInt(_0x1d9dcb(0xb1))/0x5)+parseInt(_0x1d9dcb(0xac))/0x6+parseInt(_0x1d9dcb(0xb7))/0x7+-parseInt(_0x1d9dcb(0xbb))/0x8;if(_0x1c840e===_0x497e60)break;else _0x1abdaf['push'](_0x1abdaf['shift']());}catch(_0x5612a7){_0x1abdaf['push'](_0x1abdaf['shift']());}}}(_0x6313,0xef983));import{DialogFocusManagerView as _0x4b7bfa}from'../utils/dialogfocusmanagerview.js';function _0x33a1(_0x486d60,_0x589fe6){var _0x63139a=_0x6313();return _0x33a1=function(_0x33a183,_0x803732){_0x33a183=_0x33a183-0xab;var _0x1158ed=_0x63139a[_0x33a183];return _0x1158ed;},_0x33a1(_0x486d60,_0x589fe6);}import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x4b7bfa{constructor(_0x22d5d5,_0x32c225){var _0x2e8404=_0x33a1;super(_0x22d5d5),this[_0x2e8404(0xb6)]({'tag':_0x2e8404(0xab),'attributes':{'class':['ck',_0x2e8404(0xb2),_0x2e8404(0xbd)],'tabindex':'-1'},'children':[{'tag':_0x2e8404(0xba),'attributes':{'class':[_0x2e8404(0xae),_0x2e8404(0xad)],'ctx-name':_0x2e8404(0xb4)+_0x32c225}},this[_0x2e8404(0xb0)]()]});}[_0x4b4532(0xaf)](){var _0x38d75f=_0x4b4532;this[_0x38d75f(0xb9)][_0x38d75f(0xaf)]();}}function _0x6313(){var _0x479572=['uc-file-uploader-inline','5189320XqiXvO','226892LKZdtB','ck-uploadcare-form','div','10342368FAxWoY','ck-uploadcare-theme','uc-light','focus','getFocusableElement','465585vLUKvH','ck-reset_all-excluded','267183pXvZCO','uploader-','44tJzqMT','setTemplate','1225567mEmrOu','2142950rcOWMC','element'];_0x6313=function(){return _0x479572;};return _0x6313();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4352ed=_0x11fe;function _0x56c9(){const _0x3ad151=['extend','document','listenTo','5849096mgOiaY','getAttribute','_initImageProcessingIndicator','3759875inZopc','view','uploadcareImageId','isPremiumPlugin','replaceImageSource','join','ctxElement','upcast','data-uc-image-id','contentLanguage','20322AomNFR','init','appendChild','config','href','querySelector','editor','uc-config','#uc-icon-arrow-down','uploadcare','\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','isOfficialPlugin','input[uploadcare-file-input]','schema','1243005YxeSXZ','UploadcareEditing','destroy','elementToAttribute','locale','938174KlvDen','removeAttribute','getSelectedElement','2dLCjgK','once','fromCharCode','_configElement','editing','imageInline','_initSchema','afterInit','imageBlock','4790dOZsWN','_initConversion','uploadcareImageReplace','closeMax','for','model','attributeToAttribute','add','uploader-','get','render','isRegistered','pluginName','_ctxElement','6391TpTiku','_initConfig','conversion','PictureEditing','iconHrefResolver','selection','ucContextId','execute','configElement','true','cleanupImage','3534XMLlXf','_initCtx','uc-upload-ctx-provider','body','downcast','insertImage','map','uploadcare.pubkey','uploadcare.uploader','1780900BuGtio','requires','remove','commands'];_0x56c9=function(){return _0x3ad151;};return _0x56c9();}(function(_0x138318,_0x49d436){const _0x3f4beb=_0x11fe,_0x1c42fa=_0x138318();while(!![]){try{const _0x9971c0=-parseInt(_0x3f4beb(0x97))/0x1*(-parseInt(_0x3f4beb(0x9a))/0x2)+-parseInt(_0x3f4beb(0x92))/0x3+-parseInt(_0x3f4beb(0xc5))/0x4+-parseInt(_0x3f4beb(0xcf))/0x5+parseInt(_0x3f4beb(0xbc))/0x6*(-parseInt(_0x3f4beb(0xb1))/0x7)+parseInt(_0x3f4beb(0xcc))/0x8+parseInt(_0x3f4beb(0x84))/0x9*(parseInt(_0x3f4beb(0xa3))/0xa);if(_0x9971c0===_0x49d436)break;else _0x1c42fa['push'](_0x1c42fa['shift']());}catch(_0x1d5b9b){_0x1c42fa['push'](_0x1c42fa['shift']());}}}(_0x56c9,0x92e01));import{Plugin as _0x24b16a}from'ckeditor5/src/core.js';import{Dialog as _0x397985}from'ckeditor5/src/ui.js';import{createElement as _0x51c90a,global as _0x1e45e5,uid as _0x36745f}from'ckeditor5/src/utils.js';function _0x11fe(_0x336de4,_0x1a63c8){const _0x56c9e1=_0x56c9();return _0x11fe=function(_0x11fe54,_0x3b1704){_0x11fe54=_0x11fe54-0x7c;let _0x500f19=_0x56c9e1[_0x11fe54];return _0x500f19;},_0x11fe(_0x336de4,_0x1a63c8);}import{UploadcareCommand as _0x1faab9}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x3c3832}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5e114d}from'./utils/editingutils.js';export class UploadcareEditing extends _0x24b16a{[_0x4352ed(0x9d)]=null;[_0x4352ed(0xb0)]=null;static get[_0x4352ed(0xaf)](){const _0x1bbae8=_0x4352ed;return _0x1bbae8(0x93);}static get[_0x4352ed(0xc6)](){const _0x51673f=_0x4352ed;return[_0x51673f(0xb4),_0x3c3832,_0x397985];}static get[_0x4352ed(0x8f)](){return!0x0;}static get[_0x4352ed(0x7d)](){return!0x0;}[_0x4352ed(0xb7)];get[_0x4352ed(0xb9)](){const _0x3bacc4=_0x4352ed;return this[_0x3bacc4(0x9d)];}get[_0x4352ed(0x80)](){const _0x2eb69b=_0x4352ed;return this[_0x2eb69b(0xb0)];}constructor(_0x88f942){const _0x4b89af=_0x4352ed;super(_0x88f942),this[_0x4b89af(0xb7)]=_0x36745f();}[_0x4352ed(0x85)](){const _0x290866=_0x4352ed,_0x5bb2dd=this[_0x290866(0x8a)];_0x5bb2dd[_0x290866(0xc8)][_0x290866(0xaa)](_0x290866(0x8d),new _0x1faab9(_0x5bb2dd));}[_0x4352ed(0xa1)](){const _0x2f6faf=_0x4352ed;this[_0x2f6faf(0xa0)](),this[_0x2f6faf(0xa4)](),this[_0x2f6faf(0xb2)](),this[_0x2f6faf(0xbd)](),this[_0x2f6faf(0xce)](),this[_0x2f6faf(0xcb)](this[_0x2f6faf(0x8a)],_0x2f6faf(0x94),()=>{const _0x417d86=_0x2f6faf;this[_0x417d86(0x9d)]&&(this[_0x417d86(0x9d)][_0x417d86(0xc7)](),this[_0x417d86(0x9d)]=null),this[_0x417d86(0xb0)]&&(this[_0x417d86(0xb0)][_0x417d86(0xc7)](),this[_0x417d86(0xb0)]=null);const _0x15f5cc=_0x1e45e5[_0x417d86(0xca)][_0x417d86(0x89)](_0x417d86(0x90));_0x15f5cc&&_0x15f5cc[_0x417d86(0xc7)]();}),async function(_0x23882e){const _0x3fb94b=_0x24e480([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x5bce2b=0x535f8c3a,_0x5630a2=0x5358f7f2^_0x5bce2b,_0x298733=window[_0x24e480([0x44,0x61,0x74,0x65])][_0x24e480([0x6e,0x6f,0x77])](),_0x1c2d12=_0x23882e[_0x24e480([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x18a86b=new window[(_0x24e480([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x330e1b=>{_0x1c2d12[_0x24e480([0x6f,0x6e,0x63,0x65])](_0x24e480([0x72,0x65,0x61,0x64,0x79]),_0x330e1b);}),_0x52a71f={[_0x24e480([0x6b,0x74,0x79])]:_0x24e480([0x45,0x43]),[_0x24e480([0x75,0x73,0x65])]:_0x24e480([0x73,0x69,0x67]),[_0x24e480([0x63,0x72,0x76])]:_0x24e480([0x50,0x2d,0x32,0x35,0x36]),[_0x24e480([0x78])]:_0x24e480([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]),[_0x24e480([0x79])]:_0x24e480([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]),[_0x24e480([0x61,0x6c,0x67])]:_0x24e480([0x45,0x53,0x32,0x35,0x36])},_0x120e93=_0x1c2d12[_0x24e480([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x24e480([0x67,0x65,0x74])](_0x24e480([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x148236(){let _0x5320f6,_0x2e8d37=null,_0x363c3f=null;try{if(_0x120e93==_0x24e480([0x47,0x50,0x4c]))return _0x24e480([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5320f6=_0x4e6abe(),!_0x5320f6)return _0x24e480([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5320f6[_0x24e480([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x363c3f=_0x2d6d0b(_0x5320f6[_0x24e480([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5320f6[_0x24e480([0x6a,0x74,0x69])])),await _0x484c79()?_0x5b8c25()?_0x38069d()?_0x24e480([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x227176()?(_0x5320f6[_0x24e480([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24e480([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2e8d37=_0x58f0d2(_0x24e480([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5320f6[_0x24e480([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24e480([0x74,0x72,0x69,0x61,0x6c])&&(_0x2e8d37=_0x58f0d2(_0x24e480([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3ca5f1()):_0x24e480([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x24e480([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x24e480([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x24e480([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x38069d(){const _0x3480ac=[_0x24e480([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x24e480([0x74,0x72,0x69,0x61,0x6c])][_0x24e480([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5320f6[_0x24e480([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x298733/0x3e8:0xe10*_0x5630a2;return _0x5320f6[_0x24e480([0x65,0x78,0x70])]<_0x3480ac;}function _0x5b8c25(){const _0x52d5ec=_0x5320f6[_0x24e480([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x52d5ec&&(!!_0x52d5ec[_0x24e480([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24e480([0x2a]))||!!_0x52d5ec[_0x24e480([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24e480([0x55,0x50,0x4c,0x43])));}function _0x227176(){const _0x34e753=_0x11fe,_0x1ca6b6=_0x5320f6[_0x24e480([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1ca6b6||0x0==_0x1ca6b6[_0x24e480([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b8042}=new URL(window[_0x24e480([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x34e753(0x88)]);if(_0x1ca6b6[_0x24e480([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b8042))return!0x0;const _0x1df692=_0x5b8042[_0x24e480([0x73,0x70,0x6c,0x69,0x74])](_0x24e480([0x2e]));return _0x1ca6b6[_0x24e480([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x372f32=>_0x372f32[_0x24e480([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24e480([0x2a])))[_0x24e480([0x6d,0x61,0x70])](_0x4b9f4a=>_0x4b9f4a[_0x24e480([0x73,0x70,0x6c,0x69,0x74])](_0x24e480([0x2e])))[_0x24e480([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13b52e=>_0x13b52e[_0x24e480([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1df692[_0x24e480([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24e480([0x6d,0x61,0x70])](_0x3d0727=>Array(_0x1df692[_0x24e480([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3d0727[_0x24e480([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24e480([0x66,0x69,0x6c,0x6c])](_0x3d0727[0x0]===_0x24e480([0x2a])?_0x24e480([0x2a]):'')[_0x24e480([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3d0727))[_0x24e480([0x73,0x6f,0x6d,0x65])](_0xd5bd72=>_0x1df692[_0x24e480([0x65,0x76,0x65,0x72,0x79])]((_0x55aa6b,_0x3b2ba4)=>_0xd5bd72[_0x3b2ba4]===_0x55aa6b||_0xd5bd72[_0x3b2ba4]===_0x24e480([0x2a])));}function _0x3ca5f1(){return _0x2e8d37&&_0x363c3f?new window[(_0x24e480([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x861bf6,_0x8abfdd)=>{_0x2e8d37[_0x24e480([0x74,0x68,0x65,0x6e])](_0x861bf6,_0x8abfdd),_0x363c3f[_0x24e480([0x74,0x68,0x65,0x6e])](_0x45ae5c=>{_0x45ae5c!=_0x24e480([0x56,0x61,0x6c,0x69,0x64])&&_0x861bf6(_0x45ae5c);},_0x8abfdd);}):_0x2e8d37||_0x363c3f||_0x24e480([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d6d0b(_0x45f59f,_0x5aa7a8){return new window[(_0x24e480([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43e6ed=>{if(_0xa7389b())return _0x43e6ed(_0x24e480([0x56,0x61,0x6c,0x69,0x64]));_0x10d6f1(),_0x1c2d12[_0x24e480([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x24e480([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x12f9b7=!0x1;const _0x2ce630=_0x36745f();function _0x4e1fd1(_0x45bed0){return!!_0x45bed0&&(typeof _0x45bed0===_0x24e480([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x45bed0===_0x24e480([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x45bed0[_0x24e480([0x74,0x68,0x65,0x6e])]===_0x24e480([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x45bed0[_0x24e480([0x63,0x61,0x74,0x63,0x68])]===_0x24e480([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46b9c0(_0x356bc){_0x395784(_0x356bc)[_0x24e480([0x74,0x68,0x65,0x6e])](_0x3c4e06=>{if(!_0x3c4e06||_0x3c4e06[_0x24e480([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x24e480([0x6f,0x6b]))return _0x24e480([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x12b7f5(_0x3de3c5(_0x2ce630+_0x5aa7a8))!=_0x3c4e06[_0x24e480([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x24e480([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x24e480([0x56,0x61,0x6c,0x69,0x64]);})[_0x24e480([0x74,0x68,0x65,0x6e])](_0x4d8071=>(_0x2e69b3(),_0x4d8071),()=>{const _0x275886=_0x29c1fb();return null==_0x275886?(_0x2e69b3(),_0x24e480([0x56,0x61,0x6c,0x69,0x64])):_0x24e480(_0x298733-_0x275886>(0x7753083a^_0x5bce2b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x24e480([0x74,0x68,0x65,0x6e])](_0x43e6ed)[_0x24e480([0x63,0x61,0x74,0x63,0x68])](()=>{_0x43e6ed(_0x24e480([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2c35e9=0x536962ba^_0x5bce2b;function _0x2e69b3(){const _0x2f0797=_0x24e480([0x6c,0x6c,0x63,0x74,0x2d])+_0x12b7f5(_0x3de3c5(_0x45f59f)),_0x503b95=_0xfdb7b4(_0x12b7f5(window[_0x24e480([0x4d,0x61,0x74,0x68])][_0x24e480([0x63,0x65,0x69,0x6c])](_0x298733/_0x2c35e9)));window[_0x24e480([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24e480([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f0797,_0x503b95);}function _0x29c1fb(){const _0x1d280b=_0x24e480([0x6c,0x6c,0x63,0x74,0x2d])+_0x12b7f5(_0x3de3c5(_0x45f59f)),_0x446d31=window[_0x24e480([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24e480([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d280b);return _0x446d31?window[_0x24e480([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfdb7b4(_0x446d31),0x10)*_0x2c35e9:null;}function _0x395784(_0x119b08){return new window[(_0x24e480([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x586374,_0x51644c)=>{_0x119b08[_0x24e480([0x74,0x68,0x65,0x6e])](_0x586374,_0x51644c),window[_0x24e480([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x51644c,0x535e58fa^_0x5bce2b);});}}_0x1c2d12[_0x24e480([0x6f,0x6e])](_0x24e480([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4a9d5d,_0x2c47c5)=>{if(_0x2c47c5[0x0]!=_0x45f59f)return _0x43e6ed(_0x24e480([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2c47c5[0x1]={..._0x2c47c5[0x1],[_0x24e480([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2ce630};},{[_0x24e480([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24e480([0x68,0x69,0x67,0x68])}),_0x1c2d12[_0x24e480([0x6f,0x6e])](_0x24e480([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x163774=>{_0x4e1fd1(_0x163774[_0x24e480([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x12f9b7=!0x0,_0x46b9c0(_0x163774[_0x24e480([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x24e480([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24e480([0x6c,0x6f,0x77])}),_0x18a86b[_0x24e480([0x74,0x68,0x65,0x6e])](()=>{_0x12f9b7||_0x43e6ed(_0x24e480([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa7389b(){return _0x1c2d12[_0x24e480([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24e480([0x76,0x69,0x65,0x77])][_0x24e480([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x24e480([0x61,0x75,0x74,0x6f]);}function _0x10d6f1(){_0x1c2d12[_0x24e480([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24e480([0x76,0x69,0x65,0x77])][_0x24e480([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24e480([0x61,0x75,0x74,0x6f]);}}function _0x58f0d2(_0x118317){const _0x15d90f=[new window[(_0x24e480([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ec738=>setTimeout(_0x5ec738,0x5356b2f6^_0x5bce2b)),_0x18a86b[_0x24e480([0x74,0x68,0x65,0x6e])](()=>new window[(_0x24e480([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd607a2=>{let _0x50eacc=0x0;_0x1c2d12[_0x24e480([0x6d,0x6f,0x64,0x65,0x6c])][_0x24e480([0x6f,0x6e])](_0x24e480([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3a406f,_0x47d81c)=>{_0x47d81c[0x0][_0x24e480([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x50eacc++,_0x50eacc==(0x535f8dc2^_0x5bce2b)&&(_0xd607a2(),_0x3a406f[_0x24e480([0x6f,0x66,0x66])]());});}))];return window[_0x24e480([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24e480([0x72,0x61,0x63,0x65])](_0x15d90f)[_0x24e480([0x74,0x68,0x65,0x6e])](()=>_0x118317);}async function _0x2a50fd(){await _0x18a86b,_0x1c2d12[_0x24e480([0x6d,0x6f,0x64,0x65,0x6c])][_0x24e480([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d7b03,_0x1c2d12[_0x24e480([0x6d,0x6f,0x64,0x65,0x6c])][_0x24e480([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d7b03,_0x1c2d12[_0x24e480([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x24e480([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x52e048(_0x1cc7cc){const _0x1b1b17=_0x546e69();_0x1c2d12[_0x1b1b17]=_0x24e480([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1cc7cc,_0x1cc7cc!=_0x24e480([0x56,0x61,0x6c,0x69,0x64])&&_0x2a50fd();}function _0x546e69(){const _0x542859=window[_0x24e480([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x24e480([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x24e480([0x6e,0x6f,0x77])]())[_0x24e480([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x24e480([0x2e]),'');let _0x4dad18=_0x24e480([0x68]);for(let _0x235343=0x0;_0x235343<_0x542859[_0x24e480([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x235343+=0x2){let _0x2828dd=window[_0x24e480([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x542859[_0x24e480([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x235343,_0x235343+0x2));_0x2828dd>=_0x3fb94b[_0x24e480([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2828dd-=_0x3fb94b[_0x24e480([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4dad18+=_0x3fb94b[_0x2828dd];}return _0x4dad18;}function _0x4e6abe(){const _0x8895f4=_0x120e93[_0x24e480([0x73,0x70,0x6c,0x69,0x74])](_0x24e480([0x2e]));if(0x3!=_0x8895f4[_0x24e480([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x834d41(_0x8895f4[0x1]);function _0x834d41(_0x510cee){const _0x29fd8f=_0x183914(_0x510cee);return _0x29fd8f&&_0x57183e()?_0x29fd8f:null;function _0x57183e(){const _0x4b1878=_0x29fd8f[_0x24e480([0x6a,0x74,0x69])],_0x39205b=window[_0x24e480([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b1878[_0x24e480([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b1878[_0x24e480([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc1d69f={..._0x29fd8f,[_0x24e480([0x6a,0x74,0x69])]:_0x4b1878[_0x24e480([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4b1878[_0x24e480([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc1d69f[_0x24e480([0x76,0x63])],_0x3de3c5(_0xc1d69f)==_0x39205b;}}}async function _0x484c79(){let _0x53db02=!0x0;try{const _0x4973de=_0x120e93[_0x24e480([0x73,0x70,0x6c,0x69,0x74])](_0x24e480([0x2e])),[_0xff8c7a,_0x3429d9,_0x47eb05]=_0x4973de;return _0x3bb4ab(_0xff8c7a),await _0x446892(_0xff8c7a,_0x3429d9,_0x47eb05),_0x53db02;}catch{return!0x1;}function _0x3bb4ab(_0x50bf2e){const _0x380800=_0x183914(_0x50bf2e);_0x380800&&_0x380800[_0x24e480([0x61,0x6c,0x67])]==_0x24e480([0x45,0x53,0x32,0x35,0x36])||(_0x53db02=!0x1);}async function _0x446892(_0x52d425,_0x47fd3b,_0x4adf0c){const _0x5e6fec=window[_0x24e480([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x24e480([0x66,0x72,0x6f,0x6d])](_0x55cc87(_0x4adf0c),_0x551913=>_0x551913[_0x24e480([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x45449f=new window[(_0x24e480([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x24e480([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x52d425+_0x24e480([0x2e])+_0x47fd3b),_0x50167c=window[_0x24e480([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x24e480([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x50167c)return;const _0x4a225a=await _0x50167c[_0x24e480([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x24e480([0x6a,0x77,0x6b]),_0x52a71f,{[_0x24e480([0x6e,0x61,0x6d,0x65])]:_0x24e480([0x45,0x43,0x44,0x53,0x41]),[_0x24e480([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x24e480([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x24e480([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x50167c[_0x24e480([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x24e480([0x6e,0x61,0x6d,0x65])]:_0x24e480([0x45,0x43,0x44,0x53,0x41]),[_0x24e480([0x68,0x61,0x73,0x68])]:{[_0x24e480([0x6e,0x61,0x6d,0x65])]:_0x24e480([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a225a,_0x5e6fec,_0x45449f)||(_0x53db02=!0x1);}}function _0x183914(_0x55f91c){return _0x55f91c[_0x24e480([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x24e480([0x65,0x79]))?JSON[_0x24e480([0x70,0x61,0x72,0x73,0x65])](_0x55cc87(_0x55f91c)):null;}function _0x55cc87(_0x9ccc54){return window[_0x24e480([0x61,0x74,0x6f,0x62])](_0x9ccc54[_0x24e480([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x24e480([0x2b]))[_0x24e480([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x24e480([0x2f])));}function _0x3de3c5(_0x3dfed1){let _0x59469f=0x1505;function _0xf79921(_0x458239){for(let _0x1b7fce=0x0;_0x1b7fce<_0x458239[_0x24e480([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b7fce++){const _0x5f14c3=_0x458239[_0x24e480([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1b7fce);_0x59469f=(_0x59469f<<0x5)+_0x59469f+_0x5f14c3,_0x59469f&=_0x59469f;}}function _0x4e2d73(_0x362efa){Array[_0x24e480([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x362efa)?_0x362efa[_0x24e480([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4e2d73):_0x362efa&&typeof _0x362efa==_0x24e480([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x24e480([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x362efa)[_0x24e480([0x73,0x6f,0x72,0x74])]()[_0x24e480([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2706c8,_0x53ae51])=>{_0xf79921(_0x2706c8),_0x4e2d73(_0x53ae51);}):_0xf79921(window[_0x24e480([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x362efa));}return _0x4e2d73(_0x3dfed1),_0x59469f>>>0x0;}function _0x12b7f5(_0x4d847a){return _0x4d847a[_0x24e480([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x24e480([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x24e480([0x30]));}function _0xfdb7b4(_0x377b99){return _0x377b99[_0x24e480([0x73,0x70,0x6c,0x69,0x74])]('')[_0x24e480([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x24e480([0x6a,0x6f,0x69,0x6e])]('');}function _0x5d7b03(){}function _0x24e480(_0x554337){const _0x4aa474=_0x11fe;return _0x554337[_0x4aa474(0xc2)](_0x2f9d89=>String[_0x4aa474(0x9c)](_0x2f9d89))[_0x4aa474(0x7f)]('');}_0x52e048(await _0x148236());}(this);}[_0x4352ed(0xa0)](){const _0x37e473=_0x4352ed,_0x3090bb=this[_0x37e473(0x8a)][_0x37e473(0xa8)][_0x37e473(0x91)];_0x3090bb[_0x37e473(0xae)](_0x37e473(0xa2))&&_0x3090bb[_0x37e473(0xc9)](_0x37e473(0xa2),{'allowAttributes':[_0x37e473(0x7c)]}),_0x3090bb[_0x37e473(0xae)](_0x37e473(0x9f))&&_0x3090bb[_0x37e473(0xc9)](_0x37e473(0x9f),{'allowAttributes':[_0x37e473(0x7c)]});}[_0x4352ed(0xa4)](){const _0x108313=_0x4352ed,_0x58acd3=this[_0x108313(0x8a)];_0x58acd3[_0x108313(0xb3)][_0x108313(0xa7)](_0x108313(0xc0))[_0x108313(0xa9)]({'model':_0x108313(0x7c),'view':_0x108313(0x82)}),_0x58acd3[_0x108313(0xb3)][_0x108313(0xa7)](_0x108313(0x81))[_0x108313(0x95)]({'model':{'key':_0x108313(0x7c),'value':_0x57d19e=>_0x57d19e[_0x108313(0xcd)](_0x108313(0x82))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1404a7=_0x58acd3[_0x108313(0xc8)][_0x108313(0xac)](_0x108313(0x7e));_0x1404a7&&this[_0x108313(0xcb)](_0x1404a7,_0x108313(0xbb),(_0xd4e0e4,[_0x476f6b,_0x533927])=>{const _0x193c04=_0x108313;_0x476f6b[_0x193c04(0x98)](_0x193c04(0x7c),_0x533927);});}[_0x4352ed(0xb2)](){const _0x43cc40=_0x4352ed,_0x5be234=this[_0x43cc40(0x8a)][_0x43cc40(0x87)][_0x43cc40(0xac)](_0x43cc40(0xc4))||{},_0xd30a4b=this[_0x43cc40(0x8a)][_0x43cc40(0x87)][_0x43cc40(0xac)](_0x43cc40(0xc3))||'';this[_0x43cc40(0x9d)]=_0x51c90a(_0x1e45e5[_0x43cc40(0xca)],_0x43cc40(0x8b),{..._0x5be234,'pubkey':_0xd30a4b,'ctx-name':_0x43cc40(0xab)+this[_0x43cc40(0xb7)],'sourceList':'','imgOnly':_0x43cc40(0xba),'removeCopyright':_0x43cc40(0xba),'localeName':this[_0x43cc40(0x8a)][_0x43cc40(0x96)][_0x43cc40(0x83)],'externalSourcesEmbedCss':_0x43cc40(0x8e)}),this[_0x43cc40(0x9d)][_0x43cc40(0xb5)]=_0x1ed2ad=>{const _0x194ead=_0x43cc40;if(_0x194ead(0xa6)==_0x1ed2ad)return _0x194ead(0x8c);},_0x1e45e5[_0x43cc40(0xca)][_0x43cc40(0xbf)][_0x43cc40(0x86)](this[_0x43cc40(0x9d)]);}[_0x4352ed(0xbd)](){const _0x450666=_0x4352ed;this[_0x450666(0xb0)]=_0x51c90a(_0x1e45e5[_0x450666(0xca)],_0x450666(0xbe),{'ctx-name':_0x450666(0xab)+this[_0x450666(0xb7)]}),_0x1e45e5[_0x450666(0xca)][_0x450666(0xbf)][_0x450666(0x86)](this[_0x450666(0xb0)]);}[_0x4352ed(0xce)](){const _0x2e2397=_0x4352ed,_0x5b6090=this[_0x2e2397(0x8a)][_0x2e2397(0xc8)][_0x2e2397(0xac)](_0x2e2397(0xc1));_0x5b6090&&this[_0x2e2397(0xcb)](_0x5b6090,_0x2e2397(0xb8),()=>{const _0x58f075=_0x2e2397,_0x2b6a2d=this[_0x58f075(0x8a)][_0x58f075(0xa8)][_0x58f075(0xca)][_0x58f075(0xb6)][_0x58f075(0x99)]();_0x2b6a2d&&_0x2b6a2d[_0x58f075(0xcd)](_0x58f075(0x7c))&&this[_0x58f075(0x8a)][_0x58f075(0x9e)][_0x58f075(0xd0)][_0x58f075(0x9b)](_0x58f075(0xad),()=>{const _0x93a73d=_0x58f075;_0x5e114d(this[_0x93a73d(0x8a)],_0x2b6a2d);});});const _0x2a6c4e=this[_0x2e2397(0x8a)][_0x2e2397(0xc8)][_0x2e2397(0xac)](_0x2e2397(0xa5));_0x2a6c4e&&this[_0x2e2397(0xcb)](_0x2a6c4e,_0x2e2397(0xb8),()=>{const _0x3a5a6a=_0x2e2397,_0x468306=this[_0x3a5a6a(0x8a)][_0x3a5a6a(0xa8)][_0x3a5a6a(0xca)][_0x3a5a6a(0xb6)][_0x3a5a6a(0x99)]();_0x468306&&_0x468306[_0x3a5a6a(0xcd)](_0x3a5a6a(0x7c))&&this[_0x3a5a6a(0x8a)][_0x3a5a6a(0x9e)][_0x3a5a6a(0xd0)][_0x3a5a6a(0x9b)](_0x3a5a6a(0xad),()=>{const _0x220477=_0x3a5a6a;_0x5e114d(this[_0x220477(0x8a)],_0x468306);});});}}
23
+ function _0x37ee(){const _0x965b3a=['1342925ILzkBp','isOfficialPlugin','ctxElement','imageInline','_configElement','8kFPHJo','insertImage','get','join','cleanupImage','_initSchema','fromCharCode','uploadcare','downcast','removeAttribute','357179nNvLLY','model','data-uc-image-id','uploader-','uc-config','querySelector','isRegistered','getAttribute','body','execute','369PSenzi','uploadcare.pubkey','_initImageProcessingIndicator','getSelectedElement','locale','PictureEditing','_initConversion','4FOxSiQ','upcast','35uuSJIL','replaceImageSource','appendChild','_initCtx','map','conversion','421506GdqiVu','uc-upload-ctx-provider','imageBlock','11515537vAZNnu','schema','contentLanguage','12QdFywK','afterInit','isPremiumPlugin','listenTo','commands','uploadcareImageId','href','pluginName','remove','UploadcareEditing','uploadcareImageReplace','config','_ctxElement','view','ucContextId','render','selection','attributeToAttribute','configElement','input[uploadcare-file-input]','add','closeMax','editing','173010LEIFBc','_initConfig','elementToAttribute','once','true','document','iconHrefResolver','uploadcare.uploader','475515SWhToe','init','requires','extend','#uc-icon-arrow-down','editor','\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','for','1069800IlXxRa','destroy'];_0x37ee=function(){return _0x965b3a;};return _0x37ee();}const _0x113fc3=_0x2db8;(function(_0x3ad154,_0x2ce57f){const _0x15c82c=_0x2db8,_0x27591b=_0x3ad154();while(!![]){try{const _0x572ba7=-parseInt(_0x15c82c(0x178))/0x1*(-parseInt(_0x15c82c(0x132))/0x2)+parseInt(_0x15c82c(0x15f))/0x3+parseInt(_0x15c82c(0x16e))/0x4*(-parseInt(_0x15c82c(0x169))/0x5)+-parseInt(_0x15c82c(0x13a))/0x6*(parseInt(_0x15c82c(0x134))/0x7)+parseInt(_0x15c82c(0x167))/0x8+parseInt(_0x15c82c(0x12b))/0x9*(-parseInt(_0x15c82c(0x157))/0xa)+parseInt(_0x15c82c(0x13d))/0xb*(parseInt(_0x15c82c(0x140))/0xc);if(_0x572ba7===_0x2ce57f)break;else _0x27591b['push'](_0x27591b['shift']());}catch(_0x579d32){_0x27591b['push'](_0x27591b['shift']());}}}(_0x37ee,0x6f409));import{Plugin as _0x54054d}from'ckeditor5/src/core.js';function _0x2db8(_0x187711,_0x43929a){const _0x37ee6a=_0x37ee();return _0x2db8=function(_0x2db8dc,_0x50e540){_0x2db8dc=_0x2db8dc-0x12b;let _0x4813a3=_0x37ee6a[_0x2db8dc];return _0x4813a3;},_0x2db8(_0x187711,_0x43929a);}import{Dialog as _0x293c51}from'ckeditor5/src/ui.js';import{createElement as _0x525512,global as _0x234f2d,uid as _0x440e54}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5f3483}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x471b66}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1799d1}from'./utils/editingutils.js';export class UploadcareEditing extends _0x54054d{[_0x113fc3(0x16d)]=null;[_0x113fc3(0x14c)]=null;static get[_0x113fc3(0x147)](){const _0x385ac7=_0x113fc3;return _0x385ac7(0x149);}static get[_0x113fc3(0x161)](){const _0x32123f=_0x113fc3;return[_0x32123f(0x130),_0x471b66,_0x293c51];}static get[_0x113fc3(0x16a)](){return!0x0;}static get[_0x113fc3(0x142)](){return!0x0;}[_0x113fc3(0x14e)];get[_0x113fc3(0x152)](){const _0x4a3660=_0x113fc3;return this[_0x4a3660(0x16d)];}get[_0x113fc3(0x16b)](){const _0x287e08=_0x113fc3;return this[_0x287e08(0x14c)];}constructor(_0x45e416){const _0x2478f4=_0x113fc3;super(_0x45e416),this[_0x2478f4(0x14e)]=_0x440e54();}[_0x113fc3(0x160)](){const _0x455330=_0x113fc3,_0x219a25=this[_0x455330(0x164)];_0x219a25[_0x455330(0x144)][_0x455330(0x154)](_0x455330(0x175),new _0x5f3483(_0x219a25));}[_0x113fc3(0x141)](){const _0x499a97=_0x113fc3;this[_0x499a97(0x173)](),this[_0x499a97(0x131)](),this[_0x499a97(0x158)](),this[_0x499a97(0x137)](),this[_0x499a97(0x12d)](),this[_0x499a97(0x143)](this[_0x499a97(0x164)],_0x499a97(0x168),()=>{const _0x1a6e39=_0x499a97;this[_0x1a6e39(0x16d)]&&(this[_0x1a6e39(0x16d)][_0x1a6e39(0x148)](),this[_0x1a6e39(0x16d)]=null),this[_0x1a6e39(0x14c)]&&(this[_0x1a6e39(0x14c)][_0x1a6e39(0x148)](),this[_0x1a6e39(0x14c)]=null);const _0x5f273d=_0x234f2d[_0x1a6e39(0x15c)][_0x1a6e39(0x17d)](_0x1a6e39(0x153));_0x5f273d&&_0x5f273d[_0x1a6e39(0x148)]();}),async function(_0x409a81){const _0x5d860d=_0x48e9dc([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x36616f=0x535f8c3a,_0x551bd1=0x5358f7da^_0x36616f,_0x299259=window[_0x48e9dc([0x44,0x61,0x74,0x65])][_0x48e9dc([0x6e,0x6f,0x77])](),_0x2c2827=_0x409a81[_0x48e9dc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x34e131=new window[(_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b974c=>{_0x2c2827[_0x48e9dc([0x6f,0x6e,0x63,0x65])](_0x48e9dc([0x72,0x65,0x61,0x64,0x79]),_0x4b974c);}),_0x351024={[_0x48e9dc([0x6b,0x74,0x79])]:_0x48e9dc([0x45,0x43]),[_0x48e9dc([0x75,0x73,0x65])]:_0x48e9dc([0x73,0x69,0x67]),[_0x48e9dc([0x63,0x72,0x76])]:_0x48e9dc([0x50,0x2d,0x32,0x35,0x36]),[_0x48e9dc([0x78])]:_0x48e9dc([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]),[_0x48e9dc([0x79])]:_0x48e9dc([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]),[_0x48e9dc([0x61,0x6c,0x67])]:_0x48e9dc([0x45,0x53,0x32,0x35,0x36])},_0x445e40=_0x2c2827[_0x48e9dc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x48e9dc([0x67,0x65,0x74])](_0x48e9dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x210f06(){let _0x5a0aae,_0x234780=null,_0x57f502=null;try{if(_0x445e40==_0x48e9dc([0x47,0x50,0x4c]))return _0x48e9dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a0aae=_0x3e14dc(),!_0x5a0aae)return _0x48e9dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a0aae[_0x48e9dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x57f502=_0x2b51a0(_0x5a0aae[_0x48e9dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a0aae[_0x48e9dc([0x6a,0x74,0x69])])),await _0x52ee37()?_0x4d67ef()?_0x2e786b()?_0x48e9dc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1117fc()?(_0x5a0aae[_0x48e9dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48e9dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x234780=_0x11afb6(_0x48e9dc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a0aae[_0x48e9dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48e9dc([0x74,0x72,0x69,0x61,0x6c])&&(_0x234780=_0x11afb6(_0x48e9dc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1274aa()):_0x48e9dc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x48e9dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x48e9dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x48e9dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2e786b(){const _0x431440=[_0x48e9dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x48e9dc([0x74,0x72,0x69,0x61,0x6c])][_0x48e9dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a0aae[_0x48e9dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x299259/0x3e8:0xe10*_0x551bd1;return _0x5a0aae[_0x48e9dc([0x65,0x78,0x70])]<_0x431440;}function _0x4d67ef(){const _0x3e59a6=_0x5a0aae[_0x48e9dc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3e59a6&&(!!_0x3e59a6[_0x48e9dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48e9dc([0x2a]))||!!_0x3e59a6[_0x48e9dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48e9dc([0x55,0x50,0x4c,0x43])));}function _0x1117fc(){const _0x10e494=_0x2db8,_0x1c1e2b=_0x5a0aae[_0x48e9dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c1e2b||0x0==_0x1c1e2b[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x56a24b}=new URL(window[_0x48e9dc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x10e494(0x146)]);if(_0x1c1e2b[_0x48e9dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56a24b))return!0x0;const _0x175fa3=_0x56a24b[_0x48e9dc([0x73,0x70,0x6c,0x69,0x74])](_0x48e9dc([0x2e]));return _0x1c1e2b[_0x48e9dc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf632db=>_0xf632db[_0x48e9dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48e9dc([0x2a])))[_0x48e9dc([0x6d,0x61,0x70])](_0x4be230=>_0x4be230[_0x48e9dc([0x73,0x70,0x6c,0x69,0x74])](_0x48e9dc([0x2e])))[_0x48e9dc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x598c74=>_0x598c74[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x175fa3[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48e9dc([0x6d,0x61,0x70])](_0x212c6d=>Array(_0x175fa3[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x212c6d[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48e9dc([0x66,0x69,0x6c,0x6c])](_0x212c6d[0x0]===_0x48e9dc([0x2a])?_0x48e9dc([0x2a]):'')[_0x48e9dc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x212c6d))[_0x48e9dc([0x73,0x6f,0x6d,0x65])](_0x1e6cb7=>_0x175fa3[_0x48e9dc([0x65,0x76,0x65,0x72,0x79])]((_0x2ce6f7,_0x492b01)=>_0x1e6cb7[_0x492b01]===_0x2ce6f7||_0x1e6cb7[_0x492b01]===_0x48e9dc([0x2a])));}function _0x1274aa(){return _0x234780&&_0x57f502?new window[(_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb09964,_0x242ac6)=>{_0x234780[_0x48e9dc([0x74,0x68,0x65,0x6e])](_0xb09964,_0x242ac6),_0x57f502[_0x48e9dc([0x74,0x68,0x65,0x6e])](_0x2c931a=>{_0x2c931a!=_0x48e9dc([0x56,0x61,0x6c,0x69,0x64])&&_0xb09964(_0x2c931a);},_0x242ac6);}):_0x234780||_0x57f502||_0x48e9dc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2b51a0(_0x33c674,_0x1256f6){return new window[(_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x603e5b=>{if(_0xeea858())return _0x603e5b(_0x48e9dc([0x56,0x61,0x6c,0x69,0x64]));_0x5a28f5(),_0x2c2827[_0x48e9dc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x48e9dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x18ddbf=!0x1;const _0x163306=_0x440e54();function _0x3ce52d(_0x23f8e4){return!!_0x23f8e4&&(typeof _0x23f8e4===_0x48e9dc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x23f8e4===_0x48e9dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x23f8e4[_0x48e9dc([0x74,0x68,0x65,0x6e])]===_0x48e9dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x23f8e4[_0x48e9dc([0x63,0x61,0x74,0x63,0x68])]===_0x48e9dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xc03dd3(_0x1ca2f9){_0x54286f(_0x1ca2f9)[_0x48e9dc([0x74,0x68,0x65,0x6e])](_0x5a306b=>{if(!_0x5a306b||_0x5a306b[_0x48e9dc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x48e9dc([0x6f,0x6b]))return _0x48e9dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x580385(_0x5bc4e2(_0x163306+_0x1256f6))!=_0x5a306b[_0x48e9dc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x48e9dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x48e9dc([0x56,0x61,0x6c,0x69,0x64]);})[_0x48e9dc([0x74,0x68,0x65,0x6e])](_0x3571ed=>(_0x54a2a6(),_0x3571ed),()=>{const _0x549765=_0x56f779();return null==_0x549765?(_0x54a2a6(),_0x48e9dc([0x56,0x61,0x6c,0x69,0x64])):_0x48e9dc(_0x299259-_0x549765>(0x7753083a^_0x36616f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x48e9dc([0x74,0x68,0x65,0x6e])](_0x603e5b)[_0x48e9dc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x603e5b(_0x48e9dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c22a5=0x536962ba^_0x36616f;function _0x54a2a6(){const _0x3904c9=_0x48e9dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x580385(_0x5bc4e2(_0x33c674)),_0xe6c30a=_0x438a92(_0x580385(window[_0x48e9dc([0x4d,0x61,0x74,0x68])][_0x48e9dc([0x63,0x65,0x69,0x6c])](_0x299259/_0x3c22a5)));window[_0x48e9dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48e9dc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3904c9,_0xe6c30a);}function _0x56f779(){const _0x50ed75=_0x48e9dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x580385(_0x5bc4e2(_0x33c674)),_0x50a413=window[_0x48e9dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48e9dc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50ed75);return _0x50a413?window[_0x48e9dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x438a92(_0x50a413),0x10)*_0x3c22a5:null;}function _0x54286f(_0x1f3793){return new window[(_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c14d8,_0x53052e)=>{_0x1f3793[_0x48e9dc([0x74,0x68,0x65,0x6e])](_0x5c14d8,_0x53052e),window[_0x48e9dc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53052e,0x535e58fa^_0x36616f);});}}_0x2c2827[_0x48e9dc([0x6f,0x6e])](_0x48e9dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5162fe,_0x39238f)=>{if(_0x39238f[0x0]!=_0x33c674)return _0x603e5b(_0x48e9dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x39238f[0x1]={..._0x39238f[0x1],[_0x48e9dc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x163306};},{[_0x48e9dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48e9dc([0x68,0x69,0x67,0x68])}),_0x2c2827[_0x48e9dc([0x6f,0x6e])](_0x48e9dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x340833=>{_0x3ce52d(_0x340833[_0x48e9dc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x18ddbf=!0x0,_0xc03dd3(_0x340833[_0x48e9dc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x48e9dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48e9dc([0x6c,0x6f,0x77])}),_0x34e131[_0x48e9dc([0x74,0x68,0x65,0x6e])](()=>{_0x18ddbf||_0x603e5b(_0x48e9dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xeea858(){return _0x2c2827[_0x48e9dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48e9dc([0x76,0x69,0x65,0x77])][_0x48e9dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x48e9dc([0x61,0x75,0x74,0x6f]);}function _0x5a28f5(){_0x2c2827[_0x48e9dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48e9dc([0x76,0x69,0x65,0x77])][_0x48e9dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48e9dc([0x61,0x75,0x74,0x6f]);}}function _0x11afb6(_0x32d8e7){const _0x3071c2=[new window[(_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x62fd4f=>setTimeout(_0x62fd4f,0x5356b2f6^_0x36616f)),_0x34e131[_0x48e9dc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1275f7=>{let _0x38b536=0x0;_0x2c2827[_0x48e9dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x48e9dc([0x6f,0x6e])](_0x48e9dc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x173589,_0x529e6d)=>{_0x529e6d[0x0][_0x48e9dc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x38b536++,_0x38b536==(0x535f8dc2^_0x36616f)&&(_0x1275f7(),_0x173589[_0x48e9dc([0x6f,0x66,0x66])]());});}))];return window[_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48e9dc([0x72,0x61,0x63,0x65])](_0x3071c2)[_0x48e9dc([0x74,0x68,0x65,0x6e])](()=>_0x32d8e7);}async function _0x13724b(){await _0x34e131,_0x2c2827[_0x48e9dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x48e9dc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf2461c,_0x2c2827[_0x48e9dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x48e9dc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf2461c,_0x2c2827[_0x48e9dc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x48e9dc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25a8c1(_0x345c33){const _0x1e4e3f=_0x499ef9();_0x2c2827[_0x1e4e3f]=_0x48e9dc([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x345c33,_0x345c33!=_0x48e9dc([0x56,0x61,0x6c,0x69,0x64])&&_0x13724b();}function _0x499ef9(){const _0x197382=window[_0x48e9dc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x48e9dc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x48e9dc([0x6e,0x6f,0x77])]())[_0x48e9dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x48e9dc([0x2e]),'');let _0x57c745=_0x48e9dc([0x68]);for(let _0x1d311a=0x0;_0x1d311a<_0x197382[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d311a+=0x2){let _0xe2131=window[_0x48e9dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x197382[_0x48e9dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d311a,_0x1d311a+0x2));_0xe2131>=_0x5d860d[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe2131-=_0x5d860d[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x57c745+=_0x5d860d[_0xe2131];}return _0x57c745;}function _0x3e14dc(){const _0xba0d3b=_0x445e40[_0x48e9dc([0x73,0x70,0x6c,0x69,0x74])](_0x48e9dc([0x2e]));if(0x3!=_0xba0d3b[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1df5bf(_0xba0d3b[0x1]);function _0x1df5bf(_0xfa8b31){const _0x5e9fbd=_0x333a15(_0xfa8b31);return _0x5e9fbd&&_0x350661()?_0x5e9fbd:null;function _0x350661(){const _0x59485f=_0x5e9fbd[_0x48e9dc([0x6a,0x74,0x69])],_0x1a4572=window[_0x48e9dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59485f[_0x48e9dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59485f[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x413ca2={..._0x5e9fbd,[_0x48e9dc([0x6a,0x74,0x69])]:_0x59485f[_0x48e9dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x59485f[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x413ca2[_0x48e9dc([0x76,0x63])],_0x5bc4e2(_0x413ca2)==_0x1a4572;}}}async function _0x52ee37(){let _0x110983=!0x0;try{const _0x538984=_0x445e40[_0x48e9dc([0x73,0x70,0x6c,0x69,0x74])](_0x48e9dc([0x2e])),[_0x2c701b,_0x1cb341,_0x360893]=_0x538984;return _0x2cbb70(_0x2c701b),await _0x1ee8b4(_0x2c701b,_0x1cb341,_0x360893),_0x110983;}catch{return!0x1;}function _0x2cbb70(_0x49bce5){const _0x799725=_0x333a15(_0x49bce5);_0x799725&&_0x799725[_0x48e9dc([0x61,0x6c,0x67])]==_0x48e9dc([0x45,0x53,0x32,0x35,0x36])||(_0x110983=!0x1);}async function _0x1ee8b4(_0x28415d,_0x491889,_0x219015){const _0x3b5d09=window[_0x48e9dc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x48e9dc([0x66,0x72,0x6f,0x6d])](_0x192b6d(_0x219015),_0x472457=>_0x472457[_0x48e9dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x37950c=new window[(_0x48e9dc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x48e9dc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x28415d+_0x48e9dc([0x2e])+_0x491889),_0x64a236=window[_0x48e9dc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x48e9dc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x64a236)return;const _0x39c263=await _0x64a236[_0x48e9dc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x48e9dc([0x6a,0x77,0x6b]),_0x351024,{[_0x48e9dc([0x6e,0x61,0x6d,0x65])]:_0x48e9dc([0x45,0x43,0x44,0x53,0x41]),[_0x48e9dc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x48e9dc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x48e9dc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x64a236[_0x48e9dc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x48e9dc([0x6e,0x61,0x6d,0x65])]:_0x48e9dc([0x45,0x43,0x44,0x53,0x41]),[_0x48e9dc([0x68,0x61,0x73,0x68])]:{[_0x48e9dc([0x6e,0x61,0x6d,0x65])]:_0x48e9dc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x39c263,_0x3b5d09,_0x37950c)||(_0x110983=!0x1);}}function _0x333a15(_0x38dd34){return _0x38dd34[_0x48e9dc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x48e9dc([0x65,0x79]))?JSON[_0x48e9dc([0x70,0x61,0x72,0x73,0x65])](_0x192b6d(_0x38dd34)):null;}function _0x192b6d(_0x5b2a73){return window[_0x48e9dc([0x61,0x74,0x6f,0x62])](_0x5b2a73[_0x48e9dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x48e9dc([0x2b]))[_0x48e9dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x48e9dc([0x2f])));}function _0x5bc4e2(_0x370724){let _0x1d7fe9=0x1505;function _0x3aabf7(_0xd9bd82){for(let _0x5975c6=0x0;_0x5975c6<_0xd9bd82[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5975c6++){const _0x5494a9=_0xd9bd82[_0x48e9dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5975c6);_0x1d7fe9=(_0x1d7fe9<<0x5)+_0x1d7fe9+_0x5494a9,_0x1d7fe9&=_0x1d7fe9;}}function _0x156c61(_0x496589){Array[_0x48e9dc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x496589)?_0x496589[_0x48e9dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x156c61):_0x496589&&typeof _0x496589==_0x48e9dc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x48e9dc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x496589)[_0x48e9dc([0x73,0x6f,0x72,0x74])]()[_0x48e9dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x154443,_0x2f1ba4])=>{_0x3aabf7(_0x154443),_0x156c61(_0x2f1ba4);}):_0x3aabf7(window[_0x48e9dc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x496589));}return _0x156c61(_0x370724),_0x1d7fe9>>>0x0;}function _0x580385(_0x3903d3){return _0x3903d3[_0x48e9dc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x48e9dc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x48e9dc([0x30]));}function _0x438a92(_0x4f8292){return _0x4f8292[_0x48e9dc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x48e9dc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x48e9dc([0x6a,0x6f,0x69,0x6e])]('');}function _0xf2461c(){}function _0x48e9dc(_0x137e68){const _0x416ef3=_0x2db8;return _0x137e68[_0x416ef3(0x138)](_0x2cd532=>String[_0x416ef3(0x174)](_0x2cd532))[_0x416ef3(0x171)]('');}_0x25a8c1(await _0x210f06());}(this);}[_0x113fc3(0x173)](){const _0x44ec1d=_0x113fc3,_0x434349=this[_0x44ec1d(0x164)][_0x44ec1d(0x179)][_0x44ec1d(0x13e)];_0x434349[_0x44ec1d(0x17e)](_0x44ec1d(0x13c))&&_0x434349[_0x44ec1d(0x162)](_0x44ec1d(0x13c),{'allowAttributes':[_0x44ec1d(0x145)]}),_0x434349[_0x44ec1d(0x17e)](_0x44ec1d(0x16c))&&_0x434349[_0x44ec1d(0x162)](_0x44ec1d(0x16c),{'allowAttributes':[_0x44ec1d(0x145)]});}[_0x113fc3(0x131)](){const _0x408ba2=_0x113fc3,_0x300448=this[_0x408ba2(0x164)];_0x300448[_0x408ba2(0x139)][_0x408ba2(0x166)](_0x408ba2(0x176))[_0x408ba2(0x151)]({'model':_0x408ba2(0x145),'view':_0x408ba2(0x17a)}),_0x300448[_0x408ba2(0x139)][_0x408ba2(0x166)](_0x408ba2(0x133))[_0x408ba2(0x159)]({'model':{'key':_0x408ba2(0x145),'value':_0x146735=>_0x146735[_0x408ba2(0x17f)](_0x408ba2(0x17a))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2b084f=_0x300448[_0x408ba2(0x144)][_0x408ba2(0x170)](_0x408ba2(0x135));_0x2b084f&&this[_0x408ba2(0x143)](_0x2b084f,_0x408ba2(0x172),(_0x44d8ba,[_0xca65ba,_0x5e0e74])=>{const _0x3ff5f9=_0x408ba2;_0xca65ba[_0x3ff5f9(0x177)](_0x3ff5f9(0x145),_0x5e0e74);});}[_0x113fc3(0x158)](){const _0x258b11=_0x113fc3,_0x1c021e=this[_0x258b11(0x164)][_0x258b11(0x14b)][_0x258b11(0x170)](_0x258b11(0x15e))||{},_0x2964b8=this[_0x258b11(0x164)][_0x258b11(0x14b)][_0x258b11(0x170)](_0x258b11(0x12c))||'';this[_0x258b11(0x16d)]=_0x525512(_0x234f2d[_0x258b11(0x15c)],_0x258b11(0x17c),{..._0x1c021e,'pubkey':_0x2964b8,'ctx-name':_0x258b11(0x17b)+this[_0x258b11(0x14e)],'sourceList':'','imgOnly':_0x258b11(0x15b),'removeCopyright':_0x258b11(0x15b),'localeName':this[_0x258b11(0x164)][_0x258b11(0x12f)][_0x258b11(0x13f)],'externalSourcesEmbedCss':_0x258b11(0x165)}),this[_0x258b11(0x16d)][_0x258b11(0x15d)]=_0x694b1a=>{const _0x522fd2=_0x258b11;if(_0x522fd2(0x155)==_0x694b1a)return _0x522fd2(0x163);},_0x234f2d[_0x258b11(0x15c)][_0x258b11(0x180)][_0x258b11(0x136)](this[_0x258b11(0x16d)]);}[_0x113fc3(0x137)](){const _0x257fd6=_0x113fc3;this[_0x257fd6(0x14c)]=_0x525512(_0x234f2d[_0x257fd6(0x15c)],_0x257fd6(0x13b),{'ctx-name':_0x257fd6(0x17b)+this[_0x257fd6(0x14e)]}),_0x234f2d[_0x257fd6(0x15c)][_0x257fd6(0x180)][_0x257fd6(0x136)](this[_0x257fd6(0x14c)]);}[_0x113fc3(0x12d)](){const _0x444c82=_0x113fc3,_0x2ec014=this[_0x444c82(0x164)][_0x444c82(0x144)][_0x444c82(0x170)](_0x444c82(0x16f));_0x2ec014&&this[_0x444c82(0x143)](_0x2ec014,_0x444c82(0x181),()=>{const _0x284300=_0x444c82,_0x288ad5=this[_0x284300(0x164)][_0x284300(0x179)][_0x284300(0x15c)][_0x284300(0x150)][_0x284300(0x12e)]();_0x288ad5&&_0x288ad5[_0x284300(0x17f)](_0x284300(0x145))&&this[_0x284300(0x164)][_0x284300(0x156)][_0x284300(0x14d)][_0x284300(0x15a)](_0x284300(0x14f),()=>{const _0x45294f=_0x284300;_0x1799d1(this[_0x45294f(0x164)],_0x288ad5);});});const _0x28cbbb=this[_0x444c82(0x164)][_0x444c82(0x144)][_0x444c82(0x170)](_0x444c82(0x14a));_0x28cbbb&&this[_0x444c82(0x143)](_0x28cbbb,_0x444c82(0x181),()=>{const _0x528b2a=_0x444c82,_0x44cd7f=this[_0x528b2a(0x164)][_0x528b2a(0x179)][_0x528b2a(0x15c)][_0x528b2a(0x150)][_0x528b2a(0x12e)]();_0x44cd7f&&_0x44cd7f[_0x528b2a(0x17f)](_0x528b2a(0x145))&&this[_0x528b2a(0x164)][_0x528b2a(0x156)][_0x528b2a(0x14d)][_0x528b2a(0x15a)](_0x528b2a(0x14f),()=>{const _0x15e85b=_0x528b2a;_0x1799d1(this[_0x15e85b(0x164)],_0x44cd7f);});});}}