@ckeditor/ckeditor5-uploadcare 45.0.0-alpha.10 → 45.0.0-alpha.12

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 _0x1ea684,Command as _0x116f96}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x34ed8d,IconGooglePhotos as _0x1c9e88,IconGoogleDrive as _0x257d56,IconFacebook as _0x3fcc2a,IconDropbox as _0x1c4d83,IconUploadcareLink as _0x7e2265,IconUploadcareImageUpload as _0x25ba5c,IconError as et,IconUploadcareImageEdit as _0x4a1503}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x41db23,MenuBarMenuListItemButtonView as _0x24f8e0,View as _0x15b594,FocusCycler as _0x396d0a,Dialog as _0x1c3622,DialogViewPosition as _0x4b51b9,SpinnerView as _0xf8fcb3,IconView as at,Notification as _0x525d53}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4ad3cf,DomEmitterMixin as _0x5a42ec,global as _0x1cdeb7,getAncestors as _0x16836b,ObservableMixin as _0x3284b9,createElement as _0x76639e,uid as _0x419551}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x25c78c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x203273,info as _0x4d0433}from'@uploadcare/upload-client';import*as _0x44e753 from'@uploadcare/file-uploader';var o=function(_0x1ec809){return _0x1ec809['Local']='local',_0x1ec809['URL']='url',_0x1ec809['Dropbox']='dropbox',_0x1ec809['GDrive']='gdrive',_0x1ec809['Facebook']='facebook',_0x1ec809['GPhotos']='gphotos',_0x1ec809['OneDrive']='onedrive',_0x1ec809;}({});function _(_0x3e1c7a,_0x552698,_0x458baf){const t=_0x3e1c7a['t'],_0x176052=_0x3e1c7a['t'];switch(_0x552698){case o['Local']:return{'text':_0x176052('Insert'===_0x458baf?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x176052('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x458baf?_0x176052('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x176052('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x458baf?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x458baf?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x458baf?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x458baf?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x458baf?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x552698;}}class e extends _0x1ea684{['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 _0x38f27f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2c4340;for(const _0x312d39 in _0x38f27f){const _0x3d32b2=_0x312d39,_0xefbef8=_0x38f27f[_0x3d32b2];if('uploadcareLicenseKeyValid'==_0xefbef8||'uploadcareLicenseKeyInvalid'==_0xefbef8||'uploadcareLicenseKeyExpired'==_0xefbef8||'uploadcareLicenseKeyDomainLimit'==_0xefbef8||'uploadcareLicenseKeyNotAllowed'==_0xefbef8||'uploadcareLicenseKeyEvaluationLimit'==_0xefbef8||'uploadcareLicenseKeyTrialLimit'==_0xefbef8||'uploadcareLicenseKeyUsageLimit'==_0xefbef8){delete _0x38f27f[_0x3d32b2],_0x2c4340=_0xefbef8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2c4340&&_0x38f27f['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2c4340&&_0x38f27f['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2c4340&&_0x38f27f['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2c4340&&_0x38f27f['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2c4340&&_0x38f27f['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2c4340&&_0x38f27f['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2c4340&&_0x38f27f['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x9dab85}=this,_0x437650=_0x9dab85['commands']['get']('uploadcare');if(!_0x437650)return;const _0x40e997=this['_normalizeConfigSourceList'](_0x9dab85['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x21545e,_0xc7858f)=>{const _0x3fb109=this['_getIntegrationKey'](_0xc7858f['type']);return _0x21545e[_0x3fb109]||(_0x21545e[_0x3fb109]=[]),_0x21545e[_0x3fb109]['push'](_0xc7858f),_0x21545e;},{});_0x9dab85['plugins']['has']('ImageInsertUI')&&_0x9dab85['commands']['get']('uploadcare')&&Object['entries'](_0x40e997)['forEach'](([_0x19a36b,_0x3f6b48])=>{_0x9dab85['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x19a36b,'observable':()=>_0x437650,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3f6b48),'formViewCreator':()=>this['_createDropdownButtons'](_0x3f6b48),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3f6b48),'override':'assetManager'!==_0x19a36b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3a0ce7){const {locale:_0x1150bb}=this['editor'];return _0x3a0ce7['map'](_0x268615=>{const _0x2dd5a2=_(_0x1150bb,_0x268615,'Insert');switch(_0x268615){case o['Local']:return{'icon':_0x25ba5c,'type':o['Local'],..._0x2dd5a2};case o['URL']:return{'icon':_0x7e2265,'type':o['URL'],..._0x2dd5a2};case o['Dropbox']:return{'icon':_0x1c4d83,'type':o['Dropbox'],..._0x2dd5a2};case o['Facebook']:return{'icon':_0x3fcc2a,'type':o['Facebook'],..._0x2dd5a2};case o['GDrive']:return{'icon':_0x257d56,'type':o['GDrive'],..._0x2dd5a2};case o['GPhotos']:return{'icon':_0x1c9e88,'type':o['GPhotos'],..._0x2dd5a2};case o['OneDrive']:return{'icon':_0x34ed8d,'type':o['OneDrive'],..._0x2dd5a2};}});}['_getIntegrationKey'](_0x327ae2){switch(_0x327ae2){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5adbce,_0x41e0df){const _0x35c2ee=this['editor'],_0x43dba2=new _0x5adbce(_0x35c2ee['locale']),_0x3a0682=_0x35c2ee['commands']['get']('uploadcare');return _0x43dba2['bind']('isEnabled')['to'](_0x3a0682),_0x43dba2['on']('execute',()=>{_0x3a0682['execute'](_0x41e0df);}),_0x43dba2;}['_createToolbarButton'](_0x5c329b){const {locale:_0x116b99}=this['editor'],_0xcc213e=this['editor']['plugins']['get']('ImageInsertUI'),_0x42bb4b=_0x5c329b[0x0],_0x559b5c=this['_createButton'](_0x41db23,_0x42bb4b['type']);return _0x559b5c['icon']=_0x42bb4b['icon'],_0x559b5c['bind']('label')['to'](_0xcc213e,'isImageSelected',_0x3d9784=>_(_0x116b99,_0x42bb4b['type'],_0x3d9784?'Replace':'Insert')['text']),_0x559b5c['tooltip']=!0x0,_0x559b5c;}['_createDropdownButtons'](_0x5374f8){const {locale:_0x287de5}=this['editor'],_0x49cc67=this['editor']['plugins']['get']('ImageInsertUI');return _0x5374f8['map'](_0x269621=>{const _0x4f58fe=this['_createButton'](_0x41db23,_0x269621['type']);return _0x4f58fe['withText']=!0x0,_0x4f58fe['icon']=_0x269621['icon'],_0x4f58fe['bind']('label')['to'](_0x49cc67,'isImageSelected',_0x58bc7d=>_(_0x287de5,_0x269621['type'],_0x58bc7d?'Replace':'Insert')['text']),_0x4f58fe;});}['_createMenuBarButtons'](_0x14e3ab){return _0x14e3ab['map'](_0xa9fee4=>{const _0x3d5d2b=this['_createButton'](_0x24f8e0,_0xa9fee4['type']);return _0x3d5d2b['icon']=_0xa9fee4['icon'],_0x3d5d2b['label']=_0xa9fee4['shortText'],_0x3d5d2b;});}}class q extends _0x15b594{['focusTracker'];['focusCycler'];constructor(_0x1d9fec){super(_0x1d9fec),this['focusTracker']=new _0x4ad3cf(),this['focusCycler']=new _0x396d0a({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x25accb){super(_0x25accb),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x176fb5,_0x3f0dfc){const _0x59745c=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x31eb48=>_0x31eb48<=_0x3f0dfc)['map'](_0x5aaeed=>_0x176fb5['replace'](/\/$/,'')+'/-/resize/'+_0x5aaeed+'x/\x20'+_0x5aaeed+'w');return{'imageFallbackUrl':_0x176fb5,'imageSources':[{'srcset':_0x59745c['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3f0dfc+'px)\x20100vw,\x20'+_0x3f0dfc+'px','type':'image/webp'}]};}function A(_0x51f30d,_0xe989ed,_0x11dcbf){const _0x33a0ca=_0x51f30d['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x33a0ca?parseInt(_0x33a0ca[0x1],0xa):_0xe989ed,'height':_0x33a0ca?parseInt(_0x33a0ca[0x2],0xa):_0x11dcbf};}function m(_0x3d2c47,_0x53e6f6){const _0x2ce211=Object['create'](_0x5a42ec),_0x34876d=_0x3d2c47['plugins']['get']('ImageUtils'),_0x5b0d37=_0x3d2c47['editing']['mapper']['toViewElement'](_0x53e6f6),_0x2056be=_0x34876d['findViewImgElement'](_0x5b0d37),_0x21a3f1=_0x3d2c47['editing']['view']['domConverter']['viewToDom'](_0x2056be),_0x9faca3=_0x53e6f6['getAttribute']('width'),_0x41cb66=_0x53e6f6['getAttribute']('height'),_0x38ac6d='image-processing';_0x3d2c47['editing']['view']['change'](_0xe304b4=>{_0xe304b4['addClass'](_0x38ac6d,_0x5b0d37),_0xe304b4['setStyle']('aspect-ratio',_0x9faca3+'/'+_0x41cb66,_0x2056be);}),_0x2ce211['listenTo'](_0x21a3f1,'load',()=>{_0x2ce211['stopListening'](_0x21a3f1,'load'),_0x3d2c47['editing']['view']['change'](_0x171f6c=>{_0x171f6c['removeClass'](_0x38ac6d,_0x5b0d37),_0x171f6c['removeStyle']('aspect-ratio',_0x2056be);});});}function V(_0xe5d45a){if(Array['isArray'](_0xe5d45a)){const _0x39aaad=_0xe5d45a['map'](V);return _0x49f5f2=>_0x39aaad['some'](_0x1a3293=>_0x1a3293(_0x49f5f2));}if('origin'==_0xe5d45a){const _0x1bc30d=_0x1cdeb7['window']['location']['origin'];return _0x506164=>new URL(_0x506164,_0x1cdeb7['document']['baseURI'])['origin']==_0x1bc30d;}return'function'==typeof _0xe5d45a?_0xe5d45a:_0xe5d45a instanceof RegExp?_0x26f1e3=>!(!_0x26f1e3['match'](_0xe5d45a)&&!_0x26f1e3['replace'](/^https?:\/\//,'')['match'](_0xe5d45a)):()=>!0x1;}function F(_0x1ef350,_0x7264a4){return _0x16836b(_0x1ef350['target'])['includes'](_0x7264a4);}class l extends/* #__PURE__ -- @preserve */
24
- _0x3284b9(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x18b720,_0x162328,_0x5cb149){super(),this['_editor']=_0x18b720,this['_editing']=_0x162328,this['_dialog']=_0x18b720['plugins']['get'](_0x1c3622),this['_api']=_0x162328['ctxElement']['getAPI'](),this['_type']=_0x5cb149,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:_0xfc1d01,model:_0x4cea2d}=this['_editor'],_0x55d5ac=_0x4cea2d['document']['selection']['getSelectedElement'](),_0x1989ac=_0x55d5ac&&(_0x55d5ac['is']('element','imageBlock')||_0x55d5ac['is']('element','imageInline'));this['_formView']=new S(_0xfc1d01),this['_dialog']['show']({'id':'uploadCare','icon':_0x25ba5c,'title':_(_0xfc1d01,this['_type'],_0x1989ac?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4b51b9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2bbb08=>!F(_0x2bbb08,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x37948e}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1c113f=>{const _0x573f6a=_0x37948e['length'];for(const _0xeedfa5 of _0x37948e){const _0x393ab3=_0xeedfa5===_0x37948e[_0x573f6a-0x1],{cdnUrl:_0x13af07,fileInfo:_0x54ad8b}=_0xeedfa5;if(!_0x13af07||!_0x54ad8b)continue;const {width:_0x296f66,height:_0x12a7be}=_0x54ad8b['imageInfo'],_0x1ce2cb=A(_0x13af07,_0x296f66,_0x12a7be),_0x54d4d2=E(_0x13af07,_0x1ce2cb['width']),_0x313c07={'id':_0x54ad8b['uuid'],'type':'image','attributes':{'imageDimension':_0x1ce2cb,..._0x54d4d2}};this['_insertAsset'](_0x313c07,_0x393ab3,_0x1c113f);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xbd74de=>{'idle'===_0xbd74de['detail']['status']&&!_0xbd74de['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xdd4143,_0x578f94,_0x21d1dd){const _0x50808f=this['_editor']['model']['document']['selection'],_0x2fcf64=_0x50808f['getSelectedElement'](),_0x238bcf=!(!_0x2fcf64||!_0x2fcf64['is']('element','imageInline'));_0x21d1dd['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xdd4143,_0x238bcf),_0x578f94||_0x21d1dd['setSelection'](_0x50808f['getLastPosition']());}['_insertImage'](_0x338a2a,_0x4d88c3){const _0x1458cd=this['_editor'],{imageDimension:_0x52bb12,imageFallbackUrl:_0x1bad4d,imageSources:_0x269516}=_0x338a2a['attributes'];_0x1458cd['execute']('insertImage',{'imageType':_0x4d88c3?'imageInline':null,'source':{'uploadcareImageId':_0x338a2a['id'],'src':_0x1bad4d,'sources':_0x269516,..._0x52bb12}});}}class n extends _0x116f96{['_editing'];['_controller']=null;static get['requires'](){return[_0x1c3622,i];}constructor(_0x4ed62b){super(_0x4ed62b),this['_editing']=_0x4ed62b['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x54317c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x54317c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x8591d5,publicKey:_0x45700c,signal:_0x204243,onProgress:_0x884cf3}){return _0x203273(_0x8591d5,{'publicKey':_0x45700c,'store':'auto','signal':_0x204243,'onProgress':_0x884cf3});}static['getInfo'](_0x41e6c0,_0x39016a){return _0x4d0433(_0x41e6c0,_0x39016a);}}class p extends _0x1ea684{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x25c78c,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4643bf=this['editor'];if(!!!_0x4643bf['config']['get']('uploadcare'))return;_0x4643bf['plugins']['get'](_0x25c78c)['createUploadAdapter']=_0x44027e=>new x(_0x44027e,_0x4643bf),_0x4643bf['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x29c6e0,{imageElement:_0x18618d,data:_0x39a9dc})=>{_0x4643bf['model']['change'](_0x4dfc6e=>{_0x4dfc6e['setAttribute']('uploadcareImageId',_0x39a9dc['uploadcareImageId'],_0x18618d);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x14b0ea,_0x58346a){this['loader']=_0x14b0ea,this['editor']=_0x58346a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x35bfb0=this['editor']['config']['get']('uploadcare.pubkey'),_0x477203=await this['loader']['file'];return C['upload']({'file':_0x477203,'publicKey':_0x35bfb0,'signal':this['controller']['signal'],'onProgress':_0x1726b9=>{_0x1726b9&&_0x1726b9['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1726b9['value']);}})['then'](async _0x3d0a8b=>{const {imageFallbackUrl:_0xa14f72,imageSources:_0x3bafa1}=E(_0x3d0a8b['cdnUrl'],_0x3d0a8b['imageInfo']['width']);return{'uploadcareImageId':_0x3d0a8b['uuid'],'default':_0xa14f72,'sources':_0x3bafa1};})['catch'](()=>{const _0x547e02=t('Cannot\x20upload\x20file:')+('\x20'+_0x477203['name']+'.');return Promise['reject'](_0x547e02);});}['abort'](){this['controller']['abort']();}}class i extends _0x1ea684{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x1c3622];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x56989d=this['editor'];_0x56989d['commands']['add']('uploadcare',new n(_0x56989d));}['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 _0x115807=_0x1cdeb7['document']['querySelector']('input[uploadcare-file-input]');_0x115807&&_0x115807['remove']();}),async function(_0x429c46){const _0x40ad9f=_0x3e0e14([0x6a,0x4f,0x77,0x76,0x55,0x53,0x58,0x43,0x57,0x78,0x5a,0x36,0x79,0x30,0x61,0x72,0x45,0x44,0x6c,0x4a,0x50,0x4e,0x75,0x39,0x37,0x38,0x33,0x42,0x32,0x56,0x63,0x66,0x49,0x59,0x54,0x73,0x6e,0x47,0x35,0x41,0x4b,0x69,0x67,0x31,0x52,0x4d,0x7a,0x48,0x65,0x70,0x71,0x46,0x68,0x6d,0x64,0x34,0x74,0x6f,0x6b,0x4c,0x62,0x51]),_0x17a952=0x504ac03c,_0x270fab=0x504da414^_0x17a952,_0x3c9024=window[_0x3e0e14([0x44,0x61,0x74,0x65])][_0x3e0e14([0x6e,0x6f,0x77])](),_0x1def2b=_0x429c46[_0x3e0e14([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1d940d=new window[(_0x3e0e14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ce9a2=>{_0x1def2b[_0x3e0e14([0x6f,0x6e,0x63,0x65])](_0x3e0e14([0x72,0x65,0x61,0x64,0x79]),_0x1ce9a2);}),_0x5921d7={[_0x3e0e14([0x6b,0x74,0x79])]:_0x3e0e14([0x45,0x43]),[_0x3e0e14([0x75,0x73,0x65])]:_0x3e0e14([0x73,0x69,0x67]),[_0x3e0e14([0x63,0x72,0x76])]:_0x3e0e14([0x50,0x2d,0x32,0x35,0x36]),[_0x3e0e14([0x78])]:_0x3e0e14([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]),[_0x3e0e14([0x79])]:_0x3e0e14([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]),[_0x3e0e14([0x61,0x6c,0x67])]:_0x3e0e14([0x45,0x53,0x32,0x35,0x36])},_0x5da21f=_0x1def2b[_0x3e0e14([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e0e14([0x67,0x65,0x74])](_0x3e0e14([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5bbc7a(){let _0x12d261,_0x4f680b=null,_0x426f9e=null;try{if(_0x5da21f==_0x3e0e14([0x47,0x50,0x4c]))return _0x3e0e14([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x12d261=_0x506038(),!_0x12d261)return _0x3e0e14([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x12d261[_0x3e0e14([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x426f9e=_0x4eb325(_0x12d261[_0x3e0e14([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x12d261[_0x3e0e14([0x6a,0x74,0x69])])),await _0x1d88bc()?_0x38359c()?_0x5a0be4()?_0x3e0e14([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xdb41f1()?(_0x12d261[_0x3e0e14([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e0e14([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4f680b=_0x45f984(_0x3e0e14([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x12d261[_0x3e0e14([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e0e14([0x74,0x72,0x69,0x61,0x6c])&&(_0x4f680b=_0x45f984(_0x3e0e14([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x224e6d()):_0x3e0e14([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e0e14([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e0e14([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2e418e){return _0x3e0e14([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5a0be4(){const _0x1a86f0=[_0x3e0e14([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e0e14([0x74,0x72,0x69,0x61,0x6c])][_0x3e0e14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12d261[_0x3e0e14([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c9024/0x3e8:0xe10*_0x270fab;return _0x12d261[_0x3e0e14([0x65,0x78,0x70])]<_0x1a86f0;}function _0x38359c(){const _0x5cd1ca=_0x12d261[_0x3e0e14([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5cd1ca&&(!!_0x5cd1ca[_0x3e0e14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e0e14([0x2a]))||!!_0x5cd1ca[_0x3e0e14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e0e14([0x55,0x50,0x4c,0x43])));}function _0xdb41f1(){const _0x5979af=_0x12d261[_0x3e0e14([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5979af||0x0==_0x5979af[_0x3e0e14([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x25e1d1}=new URL(window[_0x3e0e14([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5979af[_0x3e0e14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25e1d1))return!0x0;const _0x5a774b=_0x25e1d1[_0x3e0e14([0x73,0x70,0x6c,0x69,0x74])](_0x3e0e14([0x2e]));return _0x5979af[_0x3e0e14([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e3c77=>_0x3e3c77[_0x3e0e14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e0e14([0x2a])))[_0x3e0e14([0x6d,0x61,0x70])](_0x4ce2cd=>_0x4ce2cd[_0x3e0e14([0x73,0x70,0x6c,0x69,0x74])](_0x3e0e14([0x2e])))[_0x3e0e14([0x73,0x6f,0x6d,0x65])](_0xac2377=>_0x5a774b[_0x3e0e14([0x65,0x76,0x65,0x72,0x79])]((_0xb6a60b,_0x3c5883)=>_0xac2377[_0x3c5883]===_0xb6a60b||_0xac2377[_0x3c5883]===_0x3e0e14([0x2a])));}function _0x224e6d(){return _0x4f680b&&_0x426f9e?new window[(_0x3e0e14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1df12a,_0x1bcf77)=>{_0x4f680b[_0x3e0e14([0x74,0x68,0x65,0x6e])](_0x1df12a,_0x1bcf77),_0x426f9e[_0x3e0e14([0x74,0x68,0x65,0x6e])](_0x57a627=>{_0x57a627!=_0x3e0e14([0x56,0x61,0x6c,0x69,0x64])&&_0x1df12a(_0x57a627);},_0x1bcf77);}):_0x4f680b||_0x426f9e||_0x3e0e14([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4eb325(_0x3f8f6c,_0x55f4ec){return new window[(_0x3e0e14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e790c=>{if(_0x359148())return _0x1e790c(_0x3e0e14([0x56,0x61,0x6c,0x69,0x64]));_0x5f9127(),_0x1def2b[_0x3e0e14([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e0e14([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1da3a3=!0x1;const _0x51663d=_0x419551();function _0x2b44ad(_0x523748){return!!_0x523748&&(typeof _0x523748===_0x3e0e14([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x523748===_0x3e0e14([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x523748[_0x3e0e14([0x74,0x68,0x65,0x6e])]===_0x3e0e14([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x523748[_0x3e0e14([0x63,0x61,0x74,0x63,0x68])]===_0x3e0e14([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x14db79(_0x3d92f6){_0x34afb4(_0x3d92f6)[_0x3e0e14([0x74,0x68,0x65,0x6e])](_0x41dffe=>{if(!_0x41dffe||_0x41dffe[_0x3e0e14([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e0e14([0x6f,0x6b]))return _0x3e0e14([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x565b3e(_0x287940(_0x51663d+_0x55f4ec))!=_0x41dffe[_0x3e0e14([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e0e14([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e0e14([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e0e14([0x74,0x68,0x65,0x6e])](_0x3f1e65=>(_0x1a08a3(),_0x3f1e65),()=>{const _0x56b1a4=_0x4fb615();return null==_0x56b1a4?(_0x1a08a3(),_0x3e0e14([0x56,0x61,0x6c,0x69,0x64])):_0x3e0e14(_0x3c9024-_0x56b1a4>(0x7446443c^_0x17a952)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e0e14([0x74,0x68,0x65,0x6e])](_0x1e790c)[_0x3e0e14([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1e790c(_0x3e0e14([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x585ba6=0x507c2ebc^_0x17a952;function _0x1a08a3(){const _0x43b3be=_0x3e0e14([0x6c,0x6c,0x63,0x74,0x2d])+_0x565b3e(_0x287940(_0x3f8f6c)),_0x4d4e04=_0x243cc0(_0x565b3e(window[_0x3e0e14([0x4d,0x61,0x74,0x68])][_0x3e0e14([0x63,0x65,0x69,0x6c])](_0x3c9024/_0x585ba6)));window[_0x3e0e14([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e0e14([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43b3be,_0x4d4e04);}function _0x4fb615(){const _0x579dfe=_0x3e0e14([0x6c,0x6c,0x63,0x74,0x2d])+_0x565b3e(_0x287940(_0x3f8f6c)),_0x555367=window[_0x3e0e14([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e0e14([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x579dfe);return _0x555367?window[_0x3e0e14([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x243cc0(_0x555367),0x10)*_0x585ba6:null;}function _0x34afb4(_0x13dcd0){return new window[(_0x3e0e14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53b4c7,_0x6d1b60)=>{_0x13dcd0[_0x3e0e14([0x74,0x68,0x65,0x6e])](_0x53b4c7,_0x6d1b60),window[_0x3e0e14([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x6d1b60,0x504b14fc^_0x17a952);});}}_0x1def2b[_0x3e0e14([0x6f,0x6e])](_0x3e0e14([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x837551,_0x22b481)=>{if(_0x22b481[0x0]!=_0x3f8f6c)return _0x1e790c(_0x3e0e14([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x22b481[0x1]={..._0x22b481[0x1],[_0x3e0e14([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x51663d};},{[_0x3e0e14([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e0e14([0x68,0x69,0x67,0x68])}),_0x1def2b[_0x3e0e14([0x6f,0x6e])](_0x3e0e14([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x17a7ef=>{_0x2b44ad(_0x17a7ef[_0x3e0e14([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1da3a3=!0x0,_0x14db79(_0x17a7ef[_0x3e0e14([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e0e14([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e0e14([0x6c,0x6f,0x77])}),_0x1d940d[_0x3e0e14([0x74,0x68,0x65,0x6e])](()=>{_0x1da3a3||_0x1e790c(_0x3e0e14([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x359148(){return _0x1def2b[_0x3e0e14([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e0e14([0x76,0x69,0x65,0x77])][_0x3e0e14([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e0e14([0x61,0x75,0x74,0x6f]);}function _0x5f9127(){_0x1def2b[_0x3e0e14([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e0e14([0x76,0x69,0x65,0x77])][_0x3e0e14([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e0e14([0x61,0x75,0x74,0x6f]);}}function _0x45f984(_0x104de8){const _0x9e7c1a=[new window[(_0x3e0e14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15a006=>setTimeout(_0x15a006,0x5043fef0^_0x17a952)),_0x1d940d[_0x3e0e14([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e0e14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x127074=>{let _0x22d25a=0x0;_0x1def2b[_0x3e0e14([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e0e14([0x6f,0x6e])](_0x3e0e14([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x22b4ed,_0x5561e0)=>{_0x5561e0[0x0][_0x3e0e14([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x22d25a++,_0x22d25a==(0x504ac1c4^_0x17a952)&&(_0x127074(),_0x22b4ed[_0x3e0e14([0x6f,0x66,0x66])]());});}))];return window[_0x3e0e14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e0e14([0x72,0x61,0x63,0x65])](_0x9e7c1a)[_0x3e0e14([0x74,0x68,0x65,0x6e])](()=>_0x104de8);}async function _0x5df3f7(){await _0x1d940d,_0x1def2b[_0x3e0e14([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e0e14([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1a4515,_0x1def2b[_0x3e0e14([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e0e14([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1a4515,_0x1def2b[_0x3e0e14([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e0e14([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5e038d(_0x83f68a){const _0x47441b=_0x259b48();_0x1def2b[_0x47441b]=_0x3e0e14([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x83f68a,_0x83f68a!=_0x3e0e14([0x56,0x61,0x6c,0x69,0x64])&&_0x5df3f7();}function _0x259b48(){const _0x4ccdfe=window[_0x3e0e14([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e0e14([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e0e14([0x6e,0x6f,0x77])]())[_0x3e0e14([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e0e14([0x2e]),'');let _0x220a55=_0x3e0e14([0x6a]);for(let _0x1d136e=0x0;_0x1d136e<_0x4ccdfe[_0x3e0e14([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d136e+=0x2){let _0x736095=window[_0x3e0e14([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ccdfe[_0x3e0e14([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d136e,_0x1d136e+0x2));_0x736095>=_0x40ad9f[_0x3e0e14([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x736095-=_0x40ad9f[_0x3e0e14([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x220a55+=_0x40ad9f[_0x736095];}return _0x220a55;}function _0x506038(){const _0x400057=_0x5da21f[_0x3e0e14([0x73,0x70,0x6c,0x69,0x74])](_0x3e0e14([0x2e]));if(0x3!=_0x400057[_0x3e0e14([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x436725(_0x400057[0x1]);function _0x436725(_0x5ac58e){const _0x58a722=_0x2524ff(_0x5ac58e);return _0x58a722&&_0x6996ce()?_0x58a722:null;function _0x6996ce(){const _0x59a839=_0x58a722[_0x3e0e14([0x6a,0x74,0x69])],_0x3047b7=window[_0x3e0e14([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59a839[_0x3e0e14([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59a839[_0x3e0e14([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x39d1bc={..._0x58a722,[_0x3e0e14([0x6a,0x74,0x69])]:_0x59a839[_0x3e0e14([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x59a839[_0x3e0e14([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x39d1bc[_0x3e0e14([0x76,0x63])],_0x287940(_0x39d1bc)==_0x3047b7;}}}async function _0x1d88bc(){let _0x3a1bb0=!0x0;try{const _0x3b4ba8=_0x5da21f[_0x3e0e14([0x73,0x70,0x6c,0x69,0x74])](_0x3e0e14([0x2e])),[_0x61ab30,_0x1a7282,_0x1896d5]=_0x3b4ba8;return _0x5d4ba5(_0x61ab30),await _0x5a1fdb(_0x61ab30,_0x1a7282,_0x1896d5),_0x3a1bb0;}catch(_0x2c0cf6){return!0x1;}function _0x5d4ba5(_0x37bff7){const _0x280670=_0x2524ff(_0x37bff7);_0x280670&&_0x280670[_0x3e0e14([0x61,0x6c,0x67])]==_0x3e0e14([0x45,0x53,0x32,0x35,0x36])||(_0x3a1bb0=!0x1);}async function _0x5a1fdb(_0xfcad30,_0x564792,_0x3a6f2d){const _0x4fc9d4=window[_0x3e0e14([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e0e14([0x66,0x72,0x6f,0x6d])](_0x2d4aa4(_0x3a6f2d),_0x1bcf38=>_0x1bcf38[_0x3e0e14([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x287586=new window[(_0x3e0e14([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e0e14([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xfcad30+_0x3e0e14([0x2e])+_0x564792),_0x13b527=window[_0x3e0e14([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e0e14([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x13b527)return;const _0xe6488f=await _0x13b527[_0x3e0e14([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e0e14([0x6a,0x77,0x6b]),_0x5921d7,{[_0x3e0e14([0x6e,0x61,0x6d,0x65])]:_0x3e0e14([0x45,0x43,0x44,0x53,0x41]),[_0x3e0e14([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e0e14([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e0e14([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x13b527[_0x3e0e14([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e0e14([0x6e,0x61,0x6d,0x65])]:_0x3e0e14([0x45,0x43,0x44,0x53,0x41]),[_0x3e0e14([0x68,0x61,0x73,0x68])]:{[_0x3e0e14([0x6e,0x61,0x6d,0x65])]:_0x3e0e14([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xe6488f,_0x4fc9d4,_0x287586)||(_0x3a1bb0=!0x1);}}function _0x2524ff(_0x36c15a){return _0x36c15a[_0x3e0e14([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e0e14([0x65,0x79]))?JSON[_0x3e0e14([0x70,0x61,0x72,0x73,0x65])](_0x2d4aa4(_0x36c15a)):null;}function _0x2d4aa4(_0x5d56e6){return window[_0x3e0e14([0x61,0x74,0x6f,0x62])](_0x5d56e6[_0x3e0e14([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e0e14([0x2b]))[_0x3e0e14([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e0e14([0x2f])));}function _0x287940(_0x419332){let _0x53e9ab=0x1505;function _0x3533cb(_0x3fc852){for(let _0x5c9ab1=0x0;_0x5c9ab1<_0x3fc852[_0x3e0e14([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c9ab1++){const _0x2df074=_0x3fc852[_0x3e0e14([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c9ab1);_0x53e9ab=(_0x53e9ab<<0x5)+_0x53e9ab+_0x2df074,_0x53e9ab&=_0x53e9ab;}}function _0x22fcdc(_0x147d3a){Array[_0x3e0e14([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x147d3a)?_0x147d3a[_0x3e0e14([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x22fcdc):_0x147d3a&&typeof _0x147d3a==_0x3e0e14([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e0e14([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x147d3a)[_0x3e0e14([0x73,0x6f,0x72,0x74])]()[_0x3e0e14([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4e5971,_0x4aa9d4])=>{_0x3533cb(_0x4e5971),_0x22fcdc(_0x4aa9d4);}):_0x3533cb(window[_0x3e0e14([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x147d3a));}return _0x22fcdc(_0x419332),_0x53e9ab>>>0x0;}function _0x565b3e(_0x57244e){return _0x57244e[_0x3e0e14([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e0e14([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e0e14([0x30]));}function _0x243cc0(_0x1bc851){return _0x1bc851[_0x3e0e14([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e0e14([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e0e14([0x6a,0x6f,0x69,0x6e])]('');}function _0x1a4515(){}function _0x3e0e14(_0x1ab4fb){return _0x1ab4fb['map'](_0x31d7f0=>String['fromCharCode'](_0x31d7f0))['join']('');}_0x5e038d(await _0x5bbc7a());}(this);}['_initSchema'](){const _0x560989=this['editor']['model']['schema'];_0x560989['isRegistered']('imageBlock')&&_0x560989['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x560989['isRegistered']('imageInline')&&_0x560989['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x20af9f=this['editor'];_0x20af9f['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x20af9f['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5f47c6=>_0x5f47c6['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x26a270=_0x20af9f['commands']['get']('replaceImageSource');_0x26a270&&this['listenTo'](_0x26a270,'cleanupImage',(_0x3e6f9f,[_0xf0a40e,_0x3f70b8])=>{_0xf0a40e['removeAttribute']('uploadcareImageId',_0x3f70b8);});}['_initConfig'](){const _0x3af031=this['editor']['config']['get']('uploadcare.uploader')||{},_0x25a24a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x76639e(_0x1cdeb7['document'],'uc-config',{..._0x3af031,'pubkey':_0x25a24a,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4c81c7=>{if('closeMax'==_0x4c81c7)return'#uc-icon-arrow-down';},_0x1cdeb7['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x76639e(_0x1cdeb7['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x1cdeb7['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4a2524=this['editor']['commands']['get']('insertImage');_0x4a2524&&this['listenTo'](_0x4a2524,'execute',()=>{const _0x2cf9fa=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2cf9fa&&_0x2cf9fa['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2cf9fa);});});const _0x1f2d21=this['editor']['commands']['get']('uploadcareImageReplace');_0x1f2d21&&this['listenTo'](_0x1f2d21,'execute',()=>{const _0x41dda0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x41dda0&&_0x41dda0['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x41dda0);});});}}class u extends _0x1ea684{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4eaf7a){super(_0x4eaf7a),_0x4eaf7a['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x44e753['defineComponents'](_0x44e753);}}class ta extends _0x15b594{constructor(_0x11a391){super(_0x11a391);const t=_0x11a391['t'],_0x406b70=this['bindTemplate'],_0x2f80be=new _0xf8fcb3();_0x2f80be['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':[_0x2f80be,{'text':_0x406b70['to']('imageUploadProgress',_0x27870b=>t('Loading\x20image...')+'\x20('+(_0x27870b||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x15b594{constructor(_0x2ccc5f){super(_0x2ccc5f);const t=_0x2ccc5f['t'];this['set']('errorType',null);const _0x9f87c3=new _0x41db23(_0x2ccc5f);_0x9f87c3['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x9f87c3['withText']=!0x0,_0x9f87c3['class']='ck-button-action',_0x9f87c3['on']('execute',()=>{this['fire']('retry');}),_0x9f87c3['bind']('isVisible')['to'](this,'errorType',_0x2687dc=>'NotFound'!==_0x2687dc);const _0x27602f=new at();_0x27602f['content']=et,_0x27602f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x195fd7=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':[_0x27602f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x195fd7['to']('errorType',_0x4e0918=>t('NotFound'!==_0x4e0918?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x9f87c3]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x15b594{constructor(_0x28cd22,_0x5c1684){super(_0x28cd22);const _0x233fe9=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5c1684,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x233fe9['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xc80601,_0x2c3d70,_0x14ebd){super(_0xc80601),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0xc80601),this['_errorView']=new rt(_0xc80601),this['_editingView']=new tt(_0xc80601,_0x14ebd),this['_focusableView']=new _0x15b594(_0xc80601),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2c3d70),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'],_0x15be29=>{this['_addUploadcareImageEditorListeners'](_0x15be29);});}),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'](_0x33ae43,_0x3783eb){const _0x5bdaa7='uc-cloud-image-editor',_0x3a6260=_0x33ae43['querySelector'](_0x5bdaa7);if(_0x3a6260)return _0x3783eb(_0x3a6260);const _0x502f12=new MutationObserver(_0x164d86=>{const _0x46d580=_0x164d86['filter'](_0x59e457=>_0x59e457['target']===_0x33ae43&&_0x59e457['addedNodes']['length']>0x0&&_0x59e457['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5bdaa7);_0x46d580['length']&&(_0x502f12['disconnect'](),_0x3783eb(_0x46d580[0x0]['addedNodes'][0x0]));});_0x502f12['observe'](_0x33ae43,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x260961){_0x260961['addEventListener']('apply',_0x4ad96f=>{this['fire']('apply',{'imageSrc':_0x4ad96f['detail']['cdnUrl']});}),_0x260961['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x3284b9(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x303034,_0x57ad65,_0x5ad739){super(),this['_editor']=_0x303034,this['_dialog']=_0x57ad65,this['_imageElement']=_0x5ad739,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 _0x51c710=this['_imageElement'],_0x5be057=_0x51c710['getAttribute']('uploadcareImageId'),_0x4fced1=_0x51c710['getAttribute']('src');if(_0x5be057)await this['_loadImageInfo'](_0x5be057,_0x4fced1);else{if(this['_imageCache']['has'](_0x4fced1)){const _0x43ead1=this['_imageCache']['get'](_0x4fced1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x43ead1['url'],this['imageDimension']=_0x43ead1['dimension'],this['imageId']=_0x43ead1['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x21756c}=this['_editor'],t=_0x21756c['t'],_0x13926b=new Z(_0x21756c,this['imageStatus'],this['_attributes']);_0x13926b['bind']('status')['to'](this,'imageStatus'),_0x13926b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x13926b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x13926b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x13926b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4a1503,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x13926b,'position':_0x4b51b9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x13926b['focus']();},'onHide':()=>{_0x13926b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1b014b=>!F(_0x1b014b,_0x13926b['element'])}});}['_loadImageInfo'](_0x19726e,_0x5668ba){return C['getInfo'](_0x19726e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x370339=>{const {width:_0x2e23e7,height:_0x24d9f0}=_0x370339['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5668ba,this['imageDimension']={'width':_0x2e23e7,'height':_0x24d9f0},this['imageId']=_0x19726e;})['catch'](_0x2398e5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2398e5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x555594,_0x599eac){return this['_getImageAsFile'](_0x555594)['then'](_0x3fd887=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x599eac['signal'],'file':_0x3fd887,'onProgress':_0x27017c=>{_0x27017c&&_0x27017c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x27017c['value']));}}))['then'](_0x16d449=>{const {width:_0x2d7091,height:_0x4c38bd}=_0x16d449['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x16d449['cdnUrl'],this['imageDimension']={'width':_0x2d7091,'height':_0x4c38bd},this['imageId']=_0x16d449['uuid'],this['imageUploadProgress']=null;const _0x2e7d55=_0x555594['getAttribute']('src');this['_imageCache']['set'](_0x2e7d55,{'id':_0x16d449['uuid'],'url':_0x16d449['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x42fce5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x42fce5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x7efe60,_0x1c9cb1){_0x7efe60['on']('apply',(_0x38dfb1,_0x5d2570)=>{this['_replaceImage'](_0x1c9cb1,_0x5d2570['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x7efe60['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x7efe60['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x290f04,_0x517433,_0x56a35e){const _0x76a133=this['_editor'],{width:_0x5aceaa,height:_0x11eb8b}=A(_0x517433,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x285bf3,imageSources:_0x5e63e2}=E(_0x517433,_0x5aceaa);_0x76a133['model']['change'](_0x48a48d=>{if('$graveyard'===_0x290f04['root']['rootName']){_0x76a133['execute']('insertImage',{'imageType':_0x290f04['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x290f04['getAttributes']()),'uploadcareImageId':_0x56a35e,'src':_0x285bf3,'sources':_0x5e63e2,'width':_0x5aceaa,'height':_0x11eb8b}});const _0x239bed=_0x290f04['getChildren']();_0x290f04=_0x76a133['model']['document']['selection']['getSelectedElement']();for(const _0xab0093 of _0x239bed)_0x48a48d['append'](_0x48a48d['cloneElement'](_0xab0093),_0x290f04);}else _0x48a48d['setSelection'](_0x290f04,'on'),_0x76a133['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x290f04['getAttributes']()),'uploadcareImageId':_0x56a35e,'src':_0x285bf3,'sources':_0x5e63e2,'width':_0x5aceaa,'height':_0x11eb8b},_0x290f04);_0x48a48d['setSelection'](_0x290f04,'on');});}async['_getImageAsFile'](_0x25fc3a){const _0x3faedd=_0x1cdeb7['window'],_0x4015d3=_0x1cdeb7['document']['location']['href'],_0x29f0a7=new _0x3faedd['URL'](_0x25fc3a['getAttribute']('src'),_0x4015d3);if('data:'===_0x29f0a7['protocol']){const _0x410fa9=_0x29f0a7['href']['split'](','),_0x5e2579=_0x410fa9[0x0]['match'](/:(.*?);/)[0x1],_0x2c054b=_0x5e2579['split']('/')[0x1],_0x1cf47e=_0x3faedd['atob'](_0x410fa9[_0x410fa9['length']-0x1]);let _0x463da7=_0x1cf47e['length'];const _0x2ffe36=new _0x3faedd['Uint8Array'](_0x463da7);for(;_0x463da7--;)_0x2ffe36[_0x463da7]=_0x1cf47e['charCodeAt'](_0x463da7);return new _0x3faedd['File']([_0x2ffe36],'image.'+_0x2c054b,{'type':_0x5e2579});}const _0x369c2f=_0x29f0a7['href']['split']('/'),_0x116683=_0x369c2f[_0x369c2f['length']-0x1],_0x17b586=_0x116683['split']('.')[0x1];return _0x3faedd['fetch'](_0x29f0a7['href'])['then'](_0x366049=>_0x366049['clone']()['blob']())['then'](_0x273e2e=>new _0x3faedd['File']([_0x273e2e],_0x116683,{'type':'image/'+_0x17b586}));}}class J extends _0x116f96{['imageEditController'];static get['requires'](){return[_0x1c3622];}['_isEditable'];constructor(_0x3ae546){super(_0x3ae546),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x55a581){const _0x505098=V(_0x55a581);return _0x3a1cf6=>!(!_0x3a1cf6||!_0x3a1cf6['is']('element','imageBlock')&&!_0x3a1cf6['is']('element','imageInline'))&&(!!_0x3a1cf6['hasAttribute']('uploadcareImageId')||!!_0x3a1cf6['hasAttribute']('src')&&_0x505098(_0x3a1cf6['getAttribute']('src')));}(_0x3ae546['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2f637d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2f637d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1af169=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1af169&&(_0x1af169['is']('element','imageBlock')||_0x1af169['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x1c3622),_0x1af169),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x116f96{['refresh'](){const _0x115aee=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x115aee&&(_0x115aee['is']('element','imageBlock')||_0x115aee['is']('element','imageInline')));}['execute'](_0x3c5461){const _0x5c47d2=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x156030=>{_0x156030['setAttributes'](_0x3c5461,_0x5c47d2),_0x156030['removeAttribute']('srcset',_0x5c47d2),_0x156030['removeAttribute']('sizes',_0x5c47d2);});}}class g extends _0x1ea684{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x525d53,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1b4910}=this;_0x1b4910['commands']['add']('uploadcareImageEdit',new J(_0x1b4910)),_0x1b4910['commands']['add']('uploadcareImageReplace',new O(_0x1b4910));}}class j extends _0x1ea684{['_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 _0x11484b=this['editor'];_0x11484b['ui']['componentFactory']['add']('uploadcareImageEdit',_0xe3097a=>{const _0xf8ba50=_0x11484b['commands']['get']('uploadcareImageEdit'),_0x5bdf35=new _0x41db23(_0xe3097a),t=_0xe3097a['t'];return _0x5bdf35['set']({'icon':_0x4a1503,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5bdf35['bind']('isEnabled')['to'](_0xf8ba50),_0x5bdf35['bind']('isOn')['to'](_0xf8ba50,'isActive'),this['listenTo'](_0x5bdf35,'execute',()=>{_0x11484b['execute']('uploadcareImageEdit'),_0x11484b['editing']['view']['focus']();}),_0x5bdf35;}),this['_initConfig']();}['_initConfig'](){const _0x3d6ecb=_0x76639e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3d6ecb),this['listenTo'](this['editor'],'destroy',()=>{_0x3d6ecb['remove']();});}}class P extends _0x1ea684{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
23
+ import{Plugin as _0x292556,Command as _0x4ec00f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2465e3,IconGooglePhotos as _0x447f64,IconGoogleDrive as _0xaffca3,IconFacebook as _0x6de565,IconDropbox as _0x30d46d,IconUploadcareLink as _0x581818,IconUploadcareImageUpload as _0x1dcfc0,IconError as et,IconUploadcareImageEdit as _0x352b93}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x215852,MenuBarMenuListItemButtonView as _0x2fa567,View as _0x2b3a63,FocusCycler as _0x11f367,Dialog as _0x276a1c,DialogViewPosition as _0x516c83,SpinnerView as _0x4a3fd2,IconView as at,Notification as _0x3c6dda}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1b07af,DomEmitterMixin as _0x24cb53,global as _0x2b9394,getAncestors as _0x446835,ObservableMixin as _0x3db09a,createElement as _0x78a2e6,uid as _0x42d67b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x27cd44}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4648a4,info as _0xacd9a7}from'@uploadcare/upload-client';import*as _0x2431d1 from'@uploadcare/file-uploader';var o=function(_0x92db4d){return _0x92db4d['Local']='local',_0x92db4d['URL']='url',_0x92db4d['Dropbox']='dropbox',_0x92db4d['GDrive']='gdrive',_0x92db4d['Facebook']='facebook',_0x92db4d['GPhotos']='gphotos',_0x92db4d['OneDrive']='onedrive',_0x92db4d;}({});function _(_0x56bb75,_0x260cad,_0x3f9239){const t=_0x56bb75['t'],_0x1cd59d=_0x56bb75['t'];switch(_0x260cad){case o['Local']:return{'text':_0x1cd59d('Insert'===_0x3f9239?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1cd59d('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x3f9239?_0x1cd59d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1cd59d('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x3f9239?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x3f9239?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x3f9239?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x3f9239?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x3f9239?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x260cad;}}class e extends _0x292556{['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 _0x427d9d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3c79d7;for(const _0x1da4ca in _0x427d9d){const _0x55451f=_0x1da4ca,_0xe429ac=_0x427d9d[_0x55451f];if('uploadcareLicenseKeyValid'==_0xe429ac||'uploadcareLicenseKeyInvalid'==_0xe429ac||'uploadcareLicenseKeyExpired'==_0xe429ac||'uploadcareLicenseKeyDomainLimit'==_0xe429ac||'uploadcareLicenseKeyNotAllowed'==_0xe429ac||'uploadcareLicenseKeyEvaluationLimit'==_0xe429ac||'uploadcareLicenseKeyTrialLimit'==_0xe429ac||'uploadcareLicenseKeyUsageLimit'==_0xe429ac){delete _0x427d9d[_0x55451f],_0x3c79d7=_0xe429ac,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3c79d7&&_0x427d9d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3c79d7&&_0x427d9d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3c79d7&&_0x427d9d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3c79d7&&_0x427d9d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3c79d7&&_0x427d9d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3c79d7&&_0x427d9d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3c79d7&&_0x427d9d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x55fe73}=this,_0x5dcd87=_0x55fe73['commands']['get']('uploadcare');if(!_0x5dcd87)return;const _0x1a2b05=this['_normalizeConfigSourceList'](_0x55fe73['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2886d4,_0x4787aa)=>{const _0x482a9f=this['_getIntegrationKey'](_0x4787aa['type']);return _0x2886d4[_0x482a9f]||(_0x2886d4[_0x482a9f]=[]),_0x2886d4[_0x482a9f]['push'](_0x4787aa),_0x2886d4;},{});_0x55fe73['plugins']['has']('ImageInsertUI')&&_0x55fe73['commands']['get']('uploadcare')&&Object['entries'](_0x1a2b05)['forEach'](([_0x449a06,_0x36ba7f])=>{_0x55fe73['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x449a06,'observable':()=>_0x5dcd87,'buttonViewCreator':()=>this['_createToolbarButton'](_0x36ba7f),'formViewCreator':()=>this['_createDropdownButtons'](_0x36ba7f),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x36ba7f),'override':'assetManager'!==_0x449a06});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3acd1c){const {locale:_0x45a7a8}=this['editor'];return _0x3acd1c['map'](_0xd38a6f=>{const _0x3629da=_(_0x45a7a8,_0xd38a6f,'Insert');switch(_0xd38a6f){case o['Local']:return{'icon':_0x1dcfc0,'type':o['Local'],..._0x3629da};case o['URL']:return{'icon':_0x581818,'type':o['URL'],..._0x3629da};case o['Dropbox']:return{'icon':_0x30d46d,'type':o['Dropbox'],..._0x3629da};case o['Facebook']:return{'icon':_0x6de565,'type':o['Facebook'],..._0x3629da};case o['GDrive']:return{'icon':_0xaffca3,'type':o['GDrive'],..._0x3629da};case o['GPhotos']:return{'icon':_0x447f64,'type':o['GPhotos'],..._0x3629da};case o['OneDrive']:return{'icon':_0x2465e3,'type':o['OneDrive'],..._0x3629da};}});}['_getIntegrationKey'](_0x470186){switch(_0x470186){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1b377c,_0x2da23c){const _0x3c62c3=this['editor'],_0x2257c9=new _0x1b377c(_0x3c62c3['locale']),_0x344df4=_0x3c62c3['commands']['get']('uploadcare');return _0x2257c9['bind']('isEnabled')['to'](_0x344df4),_0x2257c9['on']('execute',()=>{_0x344df4['execute'](_0x2da23c);}),_0x2257c9;}['_createToolbarButton'](_0x33d5d9){const {locale:_0x1f704c}=this['editor'],_0xb5b18c=this['editor']['plugins']['get']('ImageInsertUI'),_0x5bc820=_0x33d5d9[0x0],_0x12265c=this['_createButton'](_0x215852,_0x5bc820['type']);return _0x12265c['icon']=_0x5bc820['icon'],_0x12265c['bind']('label')['to'](_0xb5b18c,'isImageSelected',_0xcff7f2=>_(_0x1f704c,_0x5bc820['type'],_0xcff7f2?'Replace':'Insert')['text']),_0x12265c['tooltip']=!0x0,_0x12265c;}['_createDropdownButtons'](_0x38ded3){const {locale:_0x21ae91}=this['editor'],_0x1eec8e=this['editor']['plugins']['get']('ImageInsertUI');return _0x38ded3['map'](_0x3efae7=>{const _0x35967b=this['_createButton'](_0x215852,_0x3efae7['type']);return _0x35967b['withText']=!0x0,_0x35967b['icon']=_0x3efae7['icon'],_0x35967b['bind']('label')['to'](_0x1eec8e,'isImageSelected',_0x31ab28=>_(_0x21ae91,_0x3efae7['type'],_0x31ab28?'Replace':'Insert')['text']),_0x35967b;});}['_createMenuBarButtons'](_0x14bb47){return _0x14bb47['map'](_0x1582c9=>{const _0x280658=this['_createButton'](_0x2fa567,_0x1582c9['type']);return _0x280658['icon']=_0x1582c9['icon'],_0x280658['label']=_0x1582c9['shortText'],_0x280658;});}}class q extends _0x2b3a63{['focusTracker'];['focusCycler'];constructor(_0x522de6){super(_0x522de6),this['focusTracker']=new _0x1b07af(),this['focusCycler']=new _0x11f367({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x19030c){super(_0x19030c),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x5ce7c5,_0x333da4){const _0x3a0b9f=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x218930=>_0x218930<=_0x333da4)['map'](_0x5c19da=>_0x5ce7c5['replace'](/\/$/,'')+'/-/resize/'+_0x5c19da+'x/\x20'+_0x5c19da+'w');return{'imageFallbackUrl':_0x5ce7c5,'imageSources':[{'srcset':_0x3a0b9f['join'](',\x20'),'sizes':'(max-width:\x20'+_0x333da4+'px)\x20100vw,\x20'+_0x333da4+'px','type':'image/webp'}]};}function A(_0x14490d,_0x1a3c85,_0x149f58){const _0x6bde68=_0x14490d['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x6bde68?parseInt(_0x6bde68[0x1],0xa):_0x1a3c85,'height':_0x6bde68?parseInt(_0x6bde68[0x2],0xa):_0x149f58};}function m(_0x421b10,_0x523df0){const _0x52ac63=Object['create'](_0x24cb53),_0x56eb0e=_0x421b10['plugins']['get']('ImageUtils'),_0x1a734a=_0x421b10['editing']['mapper']['toViewElement'](_0x523df0),_0x164bc1=_0x56eb0e['findViewImgElement'](_0x1a734a),_0x392644=_0x421b10['editing']['view']['domConverter']['viewToDom'](_0x164bc1),_0x40f08d=_0x523df0['getAttribute']('width'),_0x32da1b=_0x523df0['getAttribute']('height'),_0x51b1d0='image-processing';_0x421b10['editing']['view']['change'](_0x1984aa=>{_0x1984aa['addClass'](_0x51b1d0,_0x1a734a),_0x1984aa['setStyle']('aspect-ratio',_0x40f08d+'/'+_0x32da1b,_0x164bc1);}),_0x52ac63['listenTo'](_0x392644,'load',()=>{_0x52ac63['stopListening'](_0x392644,'load'),_0x421b10['editing']['view']['change'](_0x577433=>{_0x577433['removeClass'](_0x51b1d0,_0x1a734a),_0x577433['removeStyle']('aspect-ratio',_0x164bc1);});});}function V(_0x2c8031){if(Array['isArray'](_0x2c8031)){const _0x1e1e94=_0x2c8031['map'](V);return _0x3890f7=>_0x1e1e94['some'](_0x2fe27f=>_0x2fe27f(_0x3890f7));}if('origin'==_0x2c8031){const _0x40da45=_0x2b9394['window']['location']['origin'];return _0x2f6810=>new URL(_0x2f6810,_0x2b9394['document']['baseURI'])['origin']==_0x40da45;}return'function'==typeof _0x2c8031?_0x2c8031:_0x2c8031 instanceof RegExp?_0xc2f1f4=>!(!_0xc2f1f4['match'](_0x2c8031)&&!_0xc2f1f4['replace'](/^https?:\/\//,'')['match'](_0x2c8031)):()=>!0x1;}function F(_0x5beb45,_0x15748e){return _0x446835(_0x5beb45['target'])['includes'](_0x15748e);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x3db09a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1e2ede,_0x2a3de5,_0x5793f3){super(),this['_editor']=_0x1e2ede,this['_editing']=_0x2a3de5,this['_dialog']=_0x1e2ede['plugins']['get'](_0x276a1c),this['_api']=_0x2a3de5['ctxElement']['getAPI'](),this['_type']=_0x5793f3,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:_0x31d33,model:_0x29f4d2}=this['_editor'],_0x2ceb3=_0x29f4d2['document']['selection']['getSelectedElement'](),_0x5507ba=_0x2ceb3&&(_0x2ceb3['is']('element','imageBlock')||_0x2ceb3['is']('element','imageInline'));this['_formView']=new S(_0x31d33),this['_dialog']['show']({'id':'uploadCare','icon':_0x1dcfc0,'title':_(_0x31d33,this['_type'],_0x5507ba?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x516c83['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x29c873=>!F(_0x29c873,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xa685cd}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x57b85f=>{const _0x1283ce=_0xa685cd['length'];for(const _0x53889e of _0xa685cd){const _0x2dc007=_0x53889e===_0xa685cd[_0x1283ce-0x1],{cdnUrl:_0x3089ac,fileInfo:_0x16614f}=_0x53889e;if(!_0x3089ac||!_0x16614f)continue;const {width:_0x250e73,height:_0x5985bd}=_0x16614f['imageInfo'],_0x1aa0d4=A(_0x3089ac,_0x250e73,_0x5985bd),_0x2d95ff=E(_0x3089ac,_0x1aa0d4['width']),_0x3a3e86={'id':_0x16614f['uuid'],'type':'image','attributes':{'imageDimension':_0x1aa0d4,..._0x2d95ff}};this['_insertAsset'](_0x3a3e86,_0x2dc007,_0x57b85f);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4f2dba=>{'idle'===_0x4f2dba['detail']['status']&&!_0x4f2dba['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x30060e,_0x104a34,_0x552326){const _0xc3de09=this['_editor']['model']['document']['selection'],_0x1f0cf8=_0xc3de09['getSelectedElement'](),_0x1019a7=!(!_0x1f0cf8||!_0x1f0cf8['is']('element','imageInline'));_0x552326['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x30060e,_0x1019a7),_0x104a34||_0x552326['setSelection'](_0xc3de09['getLastPosition']());}['_insertImage'](_0x33582e,_0x384173){const _0x2f0977=this['_editor'],{imageDimension:_0x14b212,imageFallbackUrl:_0x3383c6,imageSources:_0x1c1f61}=_0x33582e['attributes'];_0x2f0977['execute']('insertImage',{'imageType':_0x384173?'imageInline':null,'source':{'uploadcareImageId':_0x33582e['id'],'src':_0x3383c6,'sources':_0x1c1f61,..._0x14b212}});}}class n extends _0x4ec00f{['_editing'];['_controller']=null;static get['requires'](){return[_0x276a1c,i];}constructor(_0x9b11fa){super(_0x9b11fa),this['_editing']=_0x9b11fa['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x30b919){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x30b919);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x3a8a45,publicKey:_0x2a35a6,signal:_0x14fff2,onProgress:_0x48a38b}){return _0x4648a4(_0x3a8a45,{'publicKey':_0x2a35a6,'store':'auto','signal':_0x14fff2,'onProgress':_0x48a38b});}static['getInfo'](_0x1f72a5,_0x19884c){return _0xacd9a7(_0x1f72a5,_0x19884c);}}class p extends _0x292556{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x27cd44,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x12b948=this['editor'];if(!!!_0x12b948['config']['get']('uploadcare'))return;_0x12b948['plugins']['get'](_0x27cd44)['createUploadAdapter']=_0x59b0db=>new x(_0x59b0db,_0x12b948),_0x12b948['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x22e2da,{imageElement:_0x17708d,data:_0x551d01})=>{_0x12b948['model']['change'](_0x56cf8d=>{_0x56cf8d['setAttribute']('uploadcareImageId',_0x551d01['uploadcareImageId'],_0x17708d);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x983db,_0x54defa){this['loader']=_0x983db,this['editor']=_0x54defa,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x441cc8=this['editor']['config']['get']('uploadcare.pubkey'),_0x1eacd1=await this['loader']['file'];return C['upload']({'file':_0x1eacd1,'publicKey':_0x441cc8,'signal':this['controller']['signal'],'onProgress':_0x4f19bf=>{_0x4f19bf&&_0x4f19bf['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4f19bf['value']);}})['then'](async _0x1c1213=>{const {imageFallbackUrl:_0x42ae9f,imageSources:_0x59724d}=E(_0x1c1213['cdnUrl'],_0x1c1213['imageInfo']['width']);return{'uploadcareImageId':_0x1c1213['uuid'],'default':_0x42ae9f,'sources':_0x59724d};})['catch'](()=>{const _0x4375bd=t('Cannot\x20upload\x20file:')+('\x20'+_0x1eacd1['name']+'.');return Promise['reject'](_0x4375bd);});}['abort'](){this['controller']['abort']();}}class i extends _0x292556{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x276a1c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x43f95a=this['editor'];_0x43f95a['commands']['add']('uploadcare',new n(_0x43f95a));}['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 _0x32af13=_0x2b9394['document']['querySelector']('input[uploadcare-file-input]');_0x32af13&&_0x32af13['remove']();}),async function(_0x4ccbb0){const _0x475a43=_0x329d19([0x71,0x42,0x6c,0x34,0x67,0x45,0x78,0x4c,0x6f,0x53,0x50,0x69,0x59,0x37,0x4a,0x48,0x65,0x38,0x54,0x44,0x5a,0x74,0x4d,0x6d,0x58,0x62,0x47,0x76,0x4e,0x61,0x6a,0x49,0x79,0x70,0x33,0x30,0x4f,0x4b,0x63,0x51,0x52,0x35,0x64,0x43,0x72,0x36,0x31,0x32,0x73,0x41,0x75,0x6e,0x77,0x56,0x46,0x57,0x55,0x7a,0x6b,0x66,0x39,0x68]),_0x44ba11=0x7ad616d5,_0x1ec464=0x7ad1728d^_0x44ba11,_0x7b515b=window[_0x329d19([0x44,0x61,0x74,0x65])][_0x329d19([0x6e,0x6f,0x77])](),_0x48a435=_0x4ccbb0[_0x329d19([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x38f0ad=new window[(_0x329d19([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a318b=>{_0x48a435[_0x329d19([0x6f,0x6e,0x63,0x65])](_0x329d19([0x72,0x65,0x61,0x64,0x79]),_0x2a318b);}),_0x4dd0f9={[_0x329d19([0x6b,0x74,0x79])]:_0x329d19([0x45,0x43]),[_0x329d19([0x75,0x73,0x65])]:_0x329d19([0x73,0x69,0x67]),[_0x329d19([0x63,0x72,0x76])]:_0x329d19([0x50,0x2d,0x32,0x35,0x36]),[_0x329d19([0x78])]:_0x329d19([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]),[_0x329d19([0x79])]:_0x329d19([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]),[_0x329d19([0x61,0x6c,0x67])]:_0x329d19([0x45,0x53,0x32,0x35,0x36])},_0x27971b=_0x48a435[_0x329d19([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x329d19([0x67,0x65,0x74])](_0x329d19([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2f40d5(){let _0x56376a,_0x3d4e6d=null,_0x157382=null;try{if(_0x27971b==_0x329d19([0x47,0x50,0x4c]))return _0x329d19([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x56376a=_0x236eaa(),!_0x56376a)return _0x329d19([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x56376a[_0x329d19([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x157382=_0x456bcd(_0x56376a[_0x329d19([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x56376a[_0x329d19([0x6a,0x74,0x69])])),await _0x267d70()?_0x4cb3a9()?_0x15f655()?_0x329d19([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x318266()?(_0x56376a[_0x329d19([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x329d19([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3d4e6d=_0x3c2f89(_0x329d19([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x56376a[_0x329d19([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x329d19([0x74,0x72,0x69,0x61,0x6c])&&(_0x3d4e6d=_0x3c2f89(_0x329d19([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xd4f192()):_0x329d19([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x329d19([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x329d19([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4b1537){return _0x329d19([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x15f655(){const _0x4f9c90=[_0x329d19([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x329d19([0x74,0x72,0x69,0x61,0x6c])][_0x329d19([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56376a[_0x329d19([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7b515b/0x3e8:0xe10*_0x1ec464;return _0x56376a[_0x329d19([0x65,0x78,0x70])]<_0x4f9c90;}function _0x4cb3a9(){const _0x507375=_0x56376a[_0x329d19([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x507375&&(!!_0x507375[_0x329d19([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x329d19([0x2a]))||!!_0x507375[_0x329d19([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x329d19([0x55,0x50,0x4c,0x43])));}function _0x318266(){const _0x508ab3=_0x56376a[_0x329d19([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x508ab3||0x0==_0x508ab3[_0x329d19([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x12b7f1}=new URL(window[_0x329d19([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x508ab3[_0x329d19([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12b7f1))return!0x0;const _0x9bd218=_0x12b7f1[_0x329d19([0x73,0x70,0x6c,0x69,0x74])](_0x329d19([0x2e]));return _0x508ab3[_0x329d19([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f4a25=>_0x3f4a25[_0x329d19([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x329d19([0x2a])))[_0x329d19([0x6d,0x61,0x70])](_0x72276=>_0x72276[_0x329d19([0x73,0x70,0x6c,0x69,0x74])](_0x329d19([0x2e])))[_0x329d19([0x73,0x6f,0x6d,0x65])](_0x3c73c9=>_0x9bd218[_0x329d19([0x65,0x76,0x65,0x72,0x79])]((_0x3889af,_0x1797e6)=>_0x3c73c9[_0x1797e6]===_0x3889af||_0x3c73c9[_0x1797e6]===_0x329d19([0x2a])));}function _0xd4f192(){return _0x3d4e6d&&_0x157382?new window[(_0x329d19([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa6c9f6,_0x10f6fd)=>{_0x3d4e6d[_0x329d19([0x74,0x68,0x65,0x6e])](_0xa6c9f6,_0x10f6fd),_0x157382[_0x329d19([0x74,0x68,0x65,0x6e])](_0xd4f5ac=>{_0xd4f5ac!=_0x329d19([0x56,0x61,0x6c,0x69,0x64])&&_0xa6c9f6(_0xd4f5ac);},_0x10f6fd);}):_0x3d4e6d||_0x157382||_0x329d19([0x56,0x61,0x6c,0x69,0x64]);}}function _0x456bcd(_0x24900a,_0x3a8f32){return new window[(_0x329d19([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ef0cb=>{if(_0x2668d3())return _0x3ef0cb(_0x329d19([0x56,0x61,0x6c,0x69,0x64]));_0x35ed3f(),_0x48a435[_0x329d19([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x329d19([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1eedde=!0x1;const _0x2d7afc=_0x42d67b();function _0x413527(_0x397d88){return!!_0x397d88&&(typeof _0x397d88===_0x329d19([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x397d88===_0x329d19([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x397d88[_0x329d19([0x74,0x68,0x65,0x6e])]===_0x329d19([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x397d88[_0x329d19([0x63,0x61,0x74,0x63,0x68])]===_0x329d19([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x529eed(_0x1a315d){_0x22f40a(_0x1a315d)[_0x329d19([0x74,0x68,0x65,0x6e])](_0x490143=>{if(!_0x490143||_0x490143[_0x329d19([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x329d19([0x6f,0x6b]))return _0x329d19([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xdf4ca2(_0x54d426(_0x2d7afc+_0x3a8f32))!=_0x490143[_0x329d19([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x329d19([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x329d19([0x56,0x61,0x6c,0x69,0x64]);})[_0x329d19([0x74,0x68,0x65,0x6e])](_0x17ed11=>(_0x3d0f2c(),_0x17ed11),()=>{const _0x4250ea=_0xa0e2f9();return null==_0x4250ea?(_0x3d0f2c(),_0x329d19([0x56,0x61,0x6c,0x69,0x64])):_0x329d19(_0x7b515b-_0x4250ea>(0x5eda92d5^_0x44ba11)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x329d19([0x74,0x68,0x65,0x6e])](_0x3ef0cb)[_0x329d19([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ef0cb(_0x329d19([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x239cc2=0x7ae0f855^_0x44ba11;function _0x3d0f2c(){const _0x391b67=_0x329d19([0x6c,0x6c,0x63,0x74,0x2d])+_0xdf4ca2(_0x54d426(_0x24900a)),_0x19309e=_0x1719ca(_0xdf4ca2(window[_0x329d19([0x4d,0x61,0x74,0x68])][_0x329d19([0x63,0x65,0x69,0x6c])](_0x7b515b/_0x239cc2)));window[_0x329d19([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x329d19([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x391b67,_0x19309e);}function _0xa0e2f9(){const _0x4468d9=_0x329d19([0x6c,0x6c,0x63,0x74,0x2d])+_0xdf4ca2(_0x54d426(_0x24900a)),_0x4b9ebc=window[_0x329d19([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x329d19([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4468d9);return _0x4b9ebc?window[_0x329d19([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1719ca(_0x4b9ebc),0x10)*_0x239cc2:null;}function _0x22f40a(_0x4247ed){return new window[(_0x329d19([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2fe31d,_0x4b0eb9)=>{_0x4247ed[_0x329d19([0x74,0x68,0x65,0x6e])](_0x2fe31d,_0x4b0eb9),window[_0x329d19([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b0eb9,0x7ad7c215^_0x44ba11);});}}_0x48a435[_0x329d19([0x6f,0x6e])](_0x329d19([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2748ec,_0x1750e5)=>{if(_0x1750e5[0x0]!=_0x24900a)return _0x3ef0cb(_0x329d19([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1750e5[0x1]={..._0x1750e5[0x1],[_0x329d19([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d7afc};},{[_0x329d19([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x329d19([0x68,0x69,0x67,0x68])}),_0x48a435[_0x329d19([0x6f,0x6e])](_0x329d19([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55462f=>{_0x413527(_0x55462f[_0x329d19([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1eedde=!0x0,_0x529eed(_0x55462f[_0x329d19([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x329d19([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x329d19([0x6c,0x6f,0x77])}),_0x38f0ad[_0x329d19([0x74,0x68,0x65,0x6e])](()=>{_0x1eedde||_0x3ef0cb(_0x329d19([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2668d3(){return _0x48a435[_0x329d19([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x329d19([0x76,0x69,0x65,0x77])][_0x329d19([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x329d19([0x61,0x75,0x74,0x6f]);}function _0x35ed3f(){_0x48a435[_0x329d19([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x329d19([0x76,0x69,0x65,0x77])][_0x329d19([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x329d19([0x61,0x75,0x74,0x6f]);}}function _0x3c2f89(_0xadfadf){const _0x221508=[new window[(_0x329d19([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x264f12=>setTimeout(_0x264f12,0x7adf2819^_0x44ba11)),_0x38f0ad[_0x329d19([0x74,0x68,0x65,0x6e])](()=>new window[(_0x329d19([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d8123=>{let _0x16bbdf=0x0;_0x48a435[_0x329d19([0x6d,0x6f,0x64,0x65,0x6c])][_0x329d19([0x6f,0x6e])](_0x329d19([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x58a2cc,_0x3f6475)=>{_0x3f6475[0x0][_0x329d19([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x16bbdf++,_0x16bbdf==(0x7ad6172d^_0x44ba11)&&(_0x3d8123(),_0x58a2cc[_0x329d19([0x6f,0x66,0x66])]());});}))];return window[_0x329d19([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x329d19([0x72,0x61,0x63,0x65])](_0x221508)[_0x329d19([0x74,0x68,0x65,0x6e])](()=>_0xadfadf);}async function _0x246e0e(){await _0x38f0ad,_0x48a435[_0x329d19([0x6d,0x6f,0x64,0x65,0x6c])][_0x329d19([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x507bf0,_0x48a435[_0x329d19([0x6d,0x6f,0x64,0x65,0x6c])][_0x329d19([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x507bf0,_0x48a435[_0x329d19([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x329d19([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x263c29(_0x18e05d){const _0x4a9a53=_0x3c20bd();_0x48a435[_0x4a9a53]=_0x329d19([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x18e05d,_0x18e05d!=_0x329d19([0x56,0x61,0x6c,0x69,0x64])&&_0x246e0e();}function _0x3c20bd(){const _0x3c8ee3=window[_0x329d19([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x329d19([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x329d19([0x6e,0x6f,0x77])]())[_0x329d19([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x329d19([0x2e]),'');let _0x3f08e7=_0x329d19([0x71]);for(let _0x570f0a=0x0;_0x570f0a<_0x3c8ee3[_0x329d19([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x570f0a+=0x2){let _0x3d59e9=window[_0x329d19([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c8ee3[_0x329d19([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x570f0a,_0x570f0a+0x2));_0x3d59e9>=_0x475a43[_0x329d19([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3d59e9-=_0x475a43[_0x329d19([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3f08e7+=_0x475a43[_0x3d59e9];}return _0x3f08e7;}function _0x236eaa(){const _0x4fd52e=_0x27971b[_0x329d19([0x73,0x70,0x6c,0x69,0x74])](_0x329d19([0x2e]));if(0x3!=_0x4fd52e[_0x329d19([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x53fcc3(_0x4fd52e[0x1]);function _0x53fcc3(_0x450031){const _0x2977ba=_0x52e983(_0x450031);return _0x2977ba&&_0x3b4a69()?_0x2977ba:null;function _0x3b4a69(){const _0x1178d2=_0x2977ba[_0x329d19([0x6a,0x74,0x69])],_0x127847=window[_0x329d19([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1178d2[_0x329d19([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1178d2[_0x329d19([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5e7e52={..._0x2977ba,[_0x329d19([0x6a,0x74,0x69])]:_0x1178d2[_0x329d19([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1178d2[_0x329d19([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5e7e52[_0x329d19([0x76,0x63])],_0x54d426(_0x5e7e52)==_0x127847;}}}async function _0x267d70(){let _0x254537=!0x0;try{const _0x19bdb4=_0x27971b[_0x329d19([0x73,0x70,0x6c,0x69,0x74])](_0x329d19([0x2e])),[_0x47eb4a,_0x1a96ee,_0x2afd19]=_0x19bdb4;return _0x2e1d09(_0x47eb4a),await _0xd5c838(_0x47eb4a,_0x1a96ee,_0x2afd19),_0x254537;}catch(_0x1d5e5f){return!0x1;}function _0x2e1d09(_0x326c9f){const _0x26bb01=_0x52e983(_0x326c9f);_0x26bb01&&_0x26bb01[_0x329d19([0x61,0x6c,0x67])]==_0x329d19([0x45,0x53,0x32,0x35,0x36])||(_0x254537=!0x1);}async function _0xd5c838(_0x33c909,_0x53d7f5,_0x226f68){const _0x5b16d1=window[_0x329d19([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x329d19([0x66,0x72,0x6f,0x6d])](_0x53696f(_0x226f68),_0x4412be=>_0x4412be[_0x329d19([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1dd5cf=new window[(_0x329d19([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x329d19([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x33c909+_0x329d19([0x2e])+_0x53d7f5),_0x217b68=window[_0x329d19([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x329d19([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x217b68)return;const _0x4931b7=await _0x217b68[_0x329d19([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x329d19([0x6a,0x77,0x6b]),_0x4dd0f9,{[_0x329d19([0x6e,0x61,0x6d,0x65])]:_0x329d19([0x45,0x43,0x44,0x53,0x41]),[_0x329d19([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x329d19([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x329d19([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x217b68[_0x329d19([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x329d19([0x6e,0x61,0x6d,0x65])]:_0x329d19([0x45,0x43,0x44,0x53,0x41]),[_0x329d19([0x68,0x61,0x73,0x68])]:{[_0x329d19([0x6e,0x61,0x6d,0x65])]:_0x329d19([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4931b7,_0x5b16d1,_0x1dd5cf)||(_0x254537=!0x1);}}function _0x52e983(_0x282bc6){return _0x282bc6[_0x329d19([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x329d19([0x65,0x79]))?JSON[_0x329d19([0x70,0x61,0x72,0x73,0x65])](_0x53696f(_0x282bc6)):null;}function _0x53696f(_0x2042b9){return window[_0x329d19([0x61,0x74,0x6f,0x62])](_0x2042b9[_0x329d19([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x329d19([0x2b]))[_0x329d19([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x329d19([0x2f])));}function _0x54d426(_0x418559){let _0xafcdb5=0x1505;function _0x24df50(_0x4ebc96){for(let _0x337870=0x0;_0x337870<_0x4ebc96[_0x329d19([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x337870++){const _0x31a349=_0x4ebc96[_0x329d19([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x337870);_0xafcdb5=(_0xafcdb5<<0x5)+_0xafcdb5+_0x31a349,_0xafcdb5&=_0xafcdb5;}}function _0x5661fc(_0x5d831d){Array[_0x329d19([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d831d)?_0x5d831d[_0x329d19([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5661fc):_0x5d831d&&typeof _0x5d831d==_0x329d19([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x329d19([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d831d)[_0x329d19([0x73,0x6f,0x72,0x74])]()[_0x329d19([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4c0471,_0x39a67f])=>{_0x24df50(_0x4c0471),_0x5661fc(_0x39a67f);}):_0x24df50(window[_0x329d19([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d831d));}return _0x5661fc(_0x418559),_0xafcdb5>>>0x0;}function _0xdf4ca2(_0x4f36de){return _0x4f36de[_0x329d19([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x329d19([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x329d19([0x30]));}function _0x1719ca(_0x147a55){return _0x147a55[_0x329d19([0x73,0x70,0x6c,0x69,0x74])]('')[_0x329d19([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x329d19([0x6a,0x6f,0x69,0x6e])]('');}function _0x507bf0(){}function _0x329d19(_0x4ba138){return _0x4ba138['map'](_0x15c687=>String['fromCharCode'](_0x15c687))['join']('');}_0x263c29(await _0x2f40d5());}(this);}['_initSchema'](){const _0x2aed15=this['editor']['model']['schema'];_0x2aed15['isRegistered']('imageBlock')&&_0x2aed15['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2aed15['isRegistered']('imageInline')&&_0x2aed15['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xb37bef=this['editor'];_0xb37bef['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xb37bef['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xe0d28d=>_0xe0d28d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1a53e2=_0xb37bef['commands']['get']('replaceImageSource');_0x1a53e2&&this['listenTo'](_0x1a53e2,'cleanupImage',(_0x210de6,[_0x2c8f59,_0x55bc44])=>{_0x2c8f59['removeAttribute']('uploadcareImageId',_0x55bc44);});}['_initConfig'](){const _0x48295d=this['editor']['config']['get']('uploadcare.uploader')||{},_0x39f0e6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x78a2e6(_0x2b9394['document'],'uc-config',{..._0x48295d,'pubkey':_0x39f0e6,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x2b6fb5=>{if('closeMax'==_0x2b6fb5)return'#uc-icon-arrow-down';},_0x2b9394['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x78a2e6(_0x2b9394['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x2b9394['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2482f7=this['editor']['commands']['get']('insertImage');_0x2482f7&&this['listenTo'](_0x2482f7,'execute',()=>{const _0x2d11bd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2d11bd&&_0x2d11bd['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2d11bd);});});const _0x59bae8=this['editor']['commands']['get']('uploadcareImageReplace');_0x59bae8&&this['listenTo'](_0x59bae8,'execute',()=>{const _0xd71b73=this['editor']['model']['document']['selection']['getSelectedElement']();_0xd71b73&&_0xd71b73['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xd71b73);});});}}class u extends _0x292556{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50512c){super(_0x50512c),_0x50512c['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x2431d1['defineComponents'](_0x2431d1);}}class ta extends _0x2b3a63{constructor(_0x511e12){super(_0x511e12);const t=_0x511e12['t'],_0x295180=this['bindTemplate'],_0x3540b3=new _0x4a3fd2();_0x3540b3['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':[_0x3540b3,{'text':_0x295180['to']('imageUploadProgress',_0x58ef60=>t('Loading\x20image...')+'\x20('+(_0x58ef60||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x2b3a63{constructor(_0x2a843c){super(_0x2a843c);const t=_0x2a843c['t'];this['set']('errorType',null);const _0xf3dcef=new _0x215852(_0x2a843c);_0xf3dcef['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xf3dcef['withText']=!0x0,_0xf3dcef['class']='ck-button-action',_0xf3dcef['on']('execute',()=>{this['fire']('retry');}),_0xf3dcef['bind']('isVisible')['to'](this,'errorType',_0x1f981a=>'NotFound'!==_0x1f981a);const _0x373d15=new at();_0x373d15['content']=et,_0x373d15['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5b240e=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':[_0x373d15,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5b240e['to']('errorType',_0x52ef2d=>t('NotFound'!==_0x52ef2d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xf3dcef]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x2b3a63{constructor(_0x3ee0d2,_0x1b72c8){super(_0x3ee0d2);const _0x388017=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1b72c8,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x388017['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x203cdf,_0x1a07e1,_0xa075ea){super(_0x203cdf),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x203cdf),this['_errorView']=new rt(_0x203cdf),this['_editingView']=new tt(_0x203cdf,_0xa075ea),this['_focusableView']=new _0x2b3a63(_0x203cdf),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1a07e1),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'],_0x1c407c=>{this['_addUploadcareImageEditorListeners'](_0x1c407c);});}),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'](_0x289f9a,_0x343c4b){const _0x43b380='uc-cloud-image-editor',_0x37b734=_0x289f9a['querySelector'](_0x43b380);if(_0x37b734)return _0x343c4b(_0x37b734);const _0x332fe6=new MutationObserver(_0x5db77a=>{const _0x2c55dd=_0x5db77a['filter'](_0x2957c6=>_0x2957c6['target']===_0x289f9a&&_0x2957c6['addedNodes']['length']>0x0&&_0x2957c6['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x43b380);_0x2c55dd['length']&&(_0x332fe6['disconnect'](),_0x343c4b(_0x2c55dd[0x0]['addedNodes'][0x0]));});_0x332fe6['observe'](_0x289f9a,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x31e99f){_0x31e99f['addEventListener']('apply',_0x5d9e6a=>{this['fire']('apply',{'imageSrc':_0x5d9e6a['detail']['cdnUrl']});}),_0x31e99f['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x3db09a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4ce24d,_0x166390,_0x83cd54){super(),this['_editor']=_0x4ce24d,this['_dialog']=_0x166390,this['_imageElement']=_0x83cd54,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 _0x2c35a1=this['_imageElement'],_0x30b520=_0x2c35a1['getAttribute']('uploadcareImageId'),_0x2af60b=_0x2c35a1['getAttribute']('src');if(_0x30b520)await this['_loadImageInfo'](_0x30b520,_0x2af60b);else{if(this['_imageCache']['has'](_0x2af60b)){const _0x3947aa=this['_imageCache']['get'](_0x2af60b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3947aa['url'],this['imageDimension']=_0x3947aa['dimension'],this['imageId']=_0x3947aa['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x340ec1}=this['_editor'],t=_0x340ec1['t'],_0x690253=new Z(_0x340ec1,this['imageStatus'],this['_attributes']);_0x690253['bind']('status')['to'](this,'imageStatus'),_0x690253['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x690253['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x690253['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x690253,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x352b93,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x690253,'position':_0x516c83['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x690253['focus']();},'onHide':()=>{_0x690253['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2aefab=>!F(_0x2aefab,_0x690253['element'])}});}['_loadImageInfo'](_0x333d65,_0x45a18d){return C['getInfo'](_0x333d65,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5a39ff=>{const {width:_0x1ab2b6,height:_0x189893}=_0x5a39ff['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x45a18d,this['imageDimension']={'width':_0x1ab2b6,'height':_0x189893},this['imageId']=_0x333d65;})['catch'](_0xd75ee9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xd75ee9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x40154c,_0x5e51a4){return this['_getImageAsFile'](_0x40154c)['then'](_0x42e630=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5e51a4['signal'],'file':_0x42e630,'onProgress':_0x3b97ed=>{_0x3b97ed&&_0x3b97ed['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3b97ed['value']));}}))['then'](_0x2babaa=>{const {width:_0x457efa,height:_0x458f05}=_0x2babaa['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2babaa['cdnUrl'],this['imageDimension']={'width':_0x457efa,'height':_0x458f05},this['imageId']=_0x2babaa['uuid'],this['imageUploadProgress']=null;const _0x1b6e3a=_0x40154c['getAttribute']('src');this['_imageCache']['set'](_0x1b6e3a,{'id':_0x2babaa['uuid'],'url':_0x2babaa['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xd72a66=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xd72a66['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x50c306,_0x2760a2){_0x50c306['on']('apply',(_0x45e524,_0x348831)=>{this['_replaceImage'](_0x2760a2,_0x348831['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x50c306['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x50c306['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2b5a0a,_0x51e76d,_0x440364){const _0x4506ba=this['_editor'],{width:_0x459228,height:_0x2cfa79}=A(_0x51e76d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x55754d,imageSources:_0x266144}=E(_0x51e76d,_0x459228);_0x4506ba['model']['change'](_0x4315c1=>{if('$graveyard'===_0x2b5a0a['root']['rootName']){_0x4506ba['execute']('insertImage',{'imageType':_0x2b5a0a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2b5a0a['getAttributes']()),'uploadcareImageId':_0x440364,'src':_0x55754d,'sources':_0x266144,'width':_0x459228,'height':_0x2cfa79}});const _0x576693=_0x2b5a0a['getChildren']();_0x2b5a0a=_0x4506ba['model']['document']['selection']['getSelectedElement']();for(const _0x16e384 of _0x576693)_0x4315c1['append'](_0x4315c1['cloneElement'](_0x16e384),_0x2b5a0a);}else _0x4315c1['setSelection'](_0x2b5a0a,'on'),_0x4506ba['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2b5a0a['getAttributes']()),'uploadcareImageId':_0x440364,'src':_0x55754d,'sources':_0x266144,'width':_0x459228,'height':_0x2cfa79},_0x2b5a0a);_0x4315c1['setSelection'](_0x2b5a0a,'on');});}async['_getImageAsFile'](_0x4df5de){const _0xbffde8=_0x2b9394['window'],_0x69ee27=_0x2b9394['document']['location']['href'],_0x78cc30=new _0xbffde8['URL'](_0x4df5de['getAttribute']('src'),_0x69ee27);if('data:'===_0x78cc30['protocol']){const _0x138fd4=_0x78cc30['href']['split'](','),_0x4968e0=_0x138fd4[0x0]['match'](/:(.*?);/)[0x1],_0x87dd2a=_0x4968e0['split']('/')[0x1],_0x2b291b=_0xbffde8['atob'](_0x138fd4[_0x138fd4['length']-0x1]);let _0x12c564=_0x2b291b['length'];const _0x24bfb8=new _0xbffde8['Uint8Array'](_0x12c564);for(;_0x12c564--;)_0x24bfb8[_0x12c564]=_0x2b291b['charCodeAt'](_0x12c564);return new _0xbffde8['File']([_0x24bfb8],'image.'+_0x87dd2a,{'type':_0x4968e0});}const _0x324433=_0x78cc30['href']['split']('/'),_0x20a8f3=_0x324433[_0x324433['length']-0x1],_0x22ed8d=_0x20a8f3['split']('.')[0x1];return _0xbffde8['fetch'](_0x78cc30['href'])['then'](_0x13deb1=>_0x13deb1['clone']()['blob']())['then'](_0x578ed2=>new _0xbffde8['File']([_0x578ed2],_0x20a8f3,{'type':'image/'+_0x22ed8d}));}}class J extends _0x4ec00f{['imageEditController'];static get['requires'](){return[_0x276a1c];}['_isEditable'];constructor(_0x13bbcd){super(_0x13bbcd),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x54b2ec){const _0x31526c=V(_0x54b2ec);return _0x5c048f=>!(!_0x5c048f||!_0x5c048f['is']('element','imageBlock')&&!_0x5c048f['is']('element','imageInline'))&&(!!_0x5c048f['hasAttribute']('uploadcareImageId')||!!_0x5c048f['hasAttribute']('src')&&_0x31526c(_0x5c048f['getAttribute']('src')));}(_0x13bbcd['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4ebfcb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4ebfcb);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3a2ed4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3a2ed4&&(_0x3a2ed4['is']('element','imageBlock')||_0x3a2ed4['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x276a1c),_0x3a2ed4),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x4ec00f{['refresh'](){const _0x1b412d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1b412d&&(_0x1b412d['is']('element','imageBlock')||_0x1b412d['is']('element','imageInline')));}['execute'](_0x4d1a5c){const _0x35d546=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xf48fc1=>{_0xf48fc1['setAttributes'](_0x4d1a5c,_0x35d546),_0xf48fc1['removeAttribute']('srcset',_0x35d546),_0xf48fc1['removeAttribute']('sizes',_0x35d546);});}}class g extends _0x292556{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3c6dda,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3b7000}=this;_0x3b7000['commands']['add']('uploadcareImageEdit',new J(_0x3b7000)),_0x3b7000['commands']['add']('uploadcareImageReplace',new O(_0x3b7000));}}class j extends _0x292556{['_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 _0x3a3040=this['editor'];_0x3a3040['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4b3f73=>{const _0x4c331a=_0x3a3040['commands']['get']('uploadcareImageEdit'),_0x1be739=new _0x215852(_0x4b3f73),t=_0x4b3f73['t'];return _0x1be739['set']({'icon':_0x352b93,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1be739['bind']('isEnabled')['to'](_0x4c331a),_0x1be739['bind']('isOn')['to'](_0x4c331a,'isActive'),this['listenTo'](_0x1be739,'execute',()=>{_0x3a3040['execute']('uploadcareImageEdit'),_0x3a3040['editing']['view']['focus']();}),_0x1be739;}),this['_initConfig']();}['_initConfig'](){const _0xe3180a=_0x78a2e6(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xe3180a),this['listenTo'](this['editor'],'destroy',()=>{_0xe3180a['remove']();});}}class P extends _0x292556{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "45.0.0-alpha.10",
3
+ "version": "45.0.0-alpha.12",
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": "45.0.0-alpha.10",
27
- "@ckeditor/ckeditor5-icons": "45.0.0-alpha.10",
28
- "@ckeditor/ckeditor5-image": "45.0.0-alpha.10",
29
- "@ckeditor/ckeditor5-theme-lark": "45.0.0-alpha.10",
30
- "@ckeditor/ckeditor5-ui": "45.0.0-alpha.10",
31
- "@ckeditor/ckeditor5-upload": "45.0.0-alpha.10",
32
- "@ckeditor/ckeditor5-utils": "45.0.0-alpha.10",
33
- "ckeditor5": "45.0.0-alpha.10",
26
+ "@ckeditor/ckeditor5-core": "45.0.0-alpha.12",
27
+ "@ckeditor/ckeditor5-icons": "45.0.0-alpha.12",
28
+ "@ckeditor/ckeditor5-image": "45.0.0-alpha.12",
29
+ "@ckeditor/ckeditor5-theme-lark": "45.0.0-alpha.12",
30
+ "@ckeditor/ckeditor5-ui": "45.0.0-alpha.12",
31
+ "@ckeditor/ckeditor5-upload": "45.0.0-alpha.12",
32
+ "@ckeditor/ckeditor5-utils": "45.0.0-alpha.12",
33
+ "ckeditor5": "45.0.0-alpha.12",
34
34
  "@uploadcare/file-uploader": "1.12.0",
35
35
  "@uploadcare/upload-client": "6.14.1"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x121a47=_0x581b;(function(_0x2fbab1,_0x5f0451){const _0x16393a=_0x581b,_0x44a37a=_0x2fbab1();while(!![]){try{const _0x5acdc5=parseInt(_0x16393a(0x19a))/0x1+-parseInt(_0x16393a(0x1be))/0x2+-parseInt(_0x16393a(0x1c8))/0x3+parseInt(_0x16393a(0x1d6))/0x4*(-parseInt(_0x16393a(0x195))/0x5)+parseInt(_0x16393a(0x1af))/0x6*(parseInt(_0x16393a(0x1b8))/0x7)+parseInt(_0x16393a(0x1dc))/0x8+-parseInt(_0x16393a(0x1d0))/0x9*(-parseInt(_0x16393a(0x1a2))/0xa);if(_0x5acdc5===_0x5f0451)break;else _0x44a37a['push'](_0x44a37a['shift']());}catch(_0x372433){_0x44a37a['push'](_0x44a37a['shift']());}}}(_0x1595,0x2b72c));import{Plugin as _0x1d5723}from'ckeditor5/src/core.js';function _0x1595(){const _0x4c8275=['uploader','PictureEditing','init','imageBlock','attributeToAttribute','replaceImageSource','querySelector','18lpAzWB','_initCtx','execute','downcast','get','join','124fCUnxM','isPremiumPlugin','uploadcareImageReplace','\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','#uc-icon-arrow-down','removeAttribute','391512EzGTjC','once','afterInit','imageInline','href','requires','view','body','_initConversion','uploadcare.pubkey','uc-config','conversion','uploadcare.uploader','15485DWFpFa','cleanupImage','listenTo','map','getAttribute','44293xVHoqS','uc-upload-ctx-provider','extend','document','configElement','_ctxElement','iconHrefResolver','input[uploadcare-file-input]','256030KdAGgw','_initConfig','pluginName','_configElement','model','UploadcareEditing','editing','destroy','data-uc-image-id','schema','_initImageProcessingIndicator','true','uploadcareImageId','12JeikaB','isOfficialPlugin','getSelectedElement','closeMax','isRegistered','uploadcare','contentLanguage','_initSchema','upcast','1185856jgkijq','config','for','insertImage','editor','ctxElement','182854LKwRKt','remove','commands','elementToAttribute','add','locale','render','selection','fromCharCode','appendChild','353568sSganC'];_0x1595=function(){return _0x4c8275;};return _0x1595();}function _0x581b(_0x2a9375,_0x867f1e){const _0x159501=_0x1595();return _0x581b=function(_0x581bdb,_0x164320){_0x581bdb=_0x581bdb-0x18b;let _0x3cdbc7=_0x159501[_0x581bdb];return _0x3cdbc7;},_0x581b(_0x2a9375,_0x867f1e);}import{Dialog as _0x24d032}from'ckeditor5/src/ui.js';import{createElement as _0x365870,global as _0x2ee5f1,uid as _0x4664c4}from'ckeditor5/src/utils.js';import _0x2a7bd1 from'./uploadcarecommand.js';import _0x3d5521 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3ef294}from'./utils/editingutils.js';export default class i extends _0x1d5723{[_0x121a47(0x1a5)]=null;[_0x121a47(0x19f)]=null;static get[_0x121a47(0x1a4)](){const _0x5b96a6=_0x121a47;return _0x5b96a6(0x1a7);}static get[_0x121a47(0x18d)](){const _0x1632b5=_0x121a47;return[_0x1632b5(0x1ca),_0x3d5521,_0x24d032];}static get[_0x121a47(0x1b0)](){return!0x0;}static get[_0x121a47(0x1d7)](){return!0x0;}get[_0x121a47(0x19e)](){const _0xb3f0b5=_0x121a47;return this[_0xb3f0b5(0x1a5)];}get[_0x121a47(0x1bd)](){const _0x53d445=_0x121a47;return this[_0x53d445(0x19f)];}[_0x121a47(0x1cb)](){const _0x46dea3=_0x121a47,_0x2025cc=this[_0x46dea3(0x1bc)];_0x2025cc[_0x46dea3(0x1c0)][_0x46dea3(0x1c2)](_0x46dea3(0x1b4),new _0x2a7bd1(_0x2025cc));}[_0x121a47(0x1de)](){const _0xcbb987=_0x121a47;this[_0xcbb987(0x1b6)](),this[_0xcbb987(0x190)](),this[_0xcbb987(0x1a3)](),this[_0xcbb987(0x1d1)](),this[_0xcbb987(0x1ac)](),this[_0xcbb987(0x197)](this[_0xcbb987(0x1bc)],_0xcbb987(0x1a9),()=>{const _0x4f3a34=_0xcbb987;this[_0x4f3a34(0x1a5)]&&(this[_0x4f3a34(0x1a5)][_0x4f3a34(0x1bf)](),this[_0x4f3a34(0x1a5)]=null),this[_0x4f3a34(0x19f)]&&(this[_0x4f3a34(0x19f)][_0x4f3a34(0x1bf)](),this[_0x4f3a34(0x19f)]=null);const _0x3a92d0=_0x2ee5f1[_0x4f3a34(0x19d)][_0x4f3a34(0x1cf)](_0x4f3a34(0x1a1));_0x3a92d0&&_0x3a92d0[_0x4f3a34(0x1bf)]();}),async function(_0x43b5be){const _0x383618=_0x58e9d9([0x6a,0x4f,0x77,0x76,0x55,0x53,0x58,0x43,0x57,0x78,0x5a,0x36,0x79,0x30,0x61,0x72,0x45,0x44,0x6c,0x4a,0x50,0x4e,0x75,0x39,0x37,0x38,0x33,0x42,0x32,0x56,0x63,0x66,0x49,0x59,0x54,0x73,0x6e,0x47,0x35,0x41,0x4b,0x69,0x67,0x31,0x52,0x4d,0x7a,0x48,0x65,0x70,0x71,0x46,0x68,0x6d,0x64,0x34,0x74,0x6f,0x6b,0x4c,0x62,0x51]),_0x1b8433=0x504ac03c,_0x596b58=0x504da414^_0x1b8433,_0x26c48a=window[_0x58e9d9([0x44,0x61,0x74,0x65])][_0x58e9d9([0x6e,0x6f,0x77])](),_0x54de97=_0x43b5be[_0x58e9d9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3158c0=new window[(_0x58e9d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59028d=>{_0x54de97[_0x58e9d9([0x6f,0x6e,0x63,0x65])](_0x58e9d9([0x72,0x65,0x61,0x64,0x79]),_0x59028d);}),_0x1ae4bf={[_0x58e9d9([0x6b,0x74,0x79])]:_0x58e9d9([0x45,0x43]),[_0x58e9d9([0x75,0x73,0x65])]:_0x58e9d9([0x73,0x69,0x67]),[_0x58e9d9([0x63,0x72,0x76])]:_0x58e9d9([0x50,0x2d,0x32,0x35,0x36]),[_0x58e9d9([0x78])]:_0x58e9d9([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]),[_0x58e9d9([0x79])]:_0x58e9d9([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]),[_0x58e9d9([0x61,0x6c,0x67])]:_0x58e9d9([0x45,0x53,0x32,0x35,0x36])},_0x21f9f2=_0x54de97[_0x58e9d9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x58e9d9([0x67,0x65,0x74])](_0x58e9d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1a9a0a(){let _0x22b854,_0x39eded=null,_0x158617=null;try{if(_0x21f9f2==_0x58e9d9([0x47,0x50,0x4c]))return _0x58e9d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x22b854=_0xb6ab9b(),!_0x22b854)return _0x58e9d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x22b854[_0x58e9d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x158617=_0x25c5c5(_0x22b854[_0x58e9d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x22b854[_0x58e9d9([0x6a,0x74,0x69])])),await _0xa5a479()?_0x4c7b38()?_0x4447b9()?_0x58e9d9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x286215()?(_0x22b854[_0x58e9d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58e9d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x39eded=_0x2d2cbc(_0x58e9d9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x22b854[_0x58e9d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58e9d9([0x74,0x72,0x69,0x61,0x6c])&&(_0x39eded=_0x2d2cbc(_0x58e9d9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x12758a()):_0x58e9d9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x58e9d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x58e9d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x107b7f){return _0x58e9d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4447b9(){const _0x1de91e=[_0x58e9d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x58e9d9([0x74,0x72,0x69,0x61,0x6c])][_0x58e9d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22b854[_0x58e9d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x26c48a/0x3e8:0xe10*_0x596b58;return _0x22b854[_0x58e9d9([0x65,0x78,0x70])]<_0x1de91e;}function _0x4c7b38(){const _0x10fd7b=_0x22b854[_0x58e9d9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x10fd7b&&(!!_0x10fd7b[_0x58e9d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58e9d9([0x2a]))||!!_0x10fd7b[_0x58e9d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58e9d9([0x55,0x50,0x4c,0x43])));}function _0x286215(){const _0x37f24b=_0x581b,_0x9514ee=_0x22b854[_0x58e9d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9514ee||0x0==_0x9514ee[_0x58e9d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2a2cdb}=new URL(window[_0x58e9d9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x37f24b(0x18c)]);if(_0x9514ee[_0x58e9d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a2cdb))return!0x0;const _0x511a02=_0x2a2cdb[_0x58e9d9([0x73,0x70,0x6c,0x69,0x74])](_0x58e9d9([0x2e]));return _0x9514ee[_0x58e9d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f85cc=>_0x2f85cc[_0x58e9d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58e9d9([0x2a])))[_0x58e9d9([0x6d,0x61,0x70])](_0x156d7e=>_0x156d7e[_0x58e9d9([0x73,0x70,0x6c,0x69,0x74])](_0x58e9d9([0x2e])))[_0x58e9d9([0x73,0x6f,0x6d,0x65])](_0x31b396=>_0x511a02[_0x58e9d9([0x65,0x76,0x65,0x72,0x79])]((_0x4d1a0f,_0x5e4af0)=>_0x31b396[_0x5e4af0]===_0x4d1a0f||_0x31b396[_0x5e4af0]===_0x58e9d9([0x2a])));}function _0x12758a(){return _0x39eded&&_0x158617?new window[(_0x58e9d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd655fc,_0xa48480)=>{_0x39eded[_0x58e9d9([0x74,0x68,0x65,0x6e])](_0xd655fc,_0xa48480),_0x158617[_0x58e9d9([0x74,0x68,0x65,0x6e])](_0x16b0d8=>{_0x16b0d8!=_0x58e9d9([0x56,0x61,0x6c,0x69,0x64])&&_0xd655fc(_0x16b0d8);},_0xa48480);}):_0x39eded||_0x158617||_0x58e9d9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x25c5c5(_0x3a5a31,_0x330fce){return new window[(_0x58e9d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42233b=>{if(_0x481145())return _0x42233b(_0x58e9d9([0x56,0x61,0x6c,0x69,0x64]));_0x1115ed(),_0x54de97[_0x58e9d9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x58e9d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x287f64=!0x1;const _0x440b97=_0x4664c4();function _0x44d57d(_0x950a0d){return!!_0x950a0d&&(typeof _0x950a0d===_0x58e9d9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x950a0d===_0x58e9d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x950a0d[_0x58e9d9([0x74,0x68,0x65,0x6e])]===_0x58e9d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x950a0d[_0x58e9d9([0x63,0x61,0x74,0x63,0x68])]===_0x58e9d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x116128(_0x5805ab){_0x52fa74(_0x5805ab)[_0x58e9d9([0x74,0x68,0x65,0x6e])](_0x20ae5f=>{if(!_0x20ae5f||_0x20ae5f[_0x58e9d9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x58e9d9([0x6f,0x6b]))return _0x58e9d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x309ffc(_0x446a86(_0x440b97+_0x330fce))!=_0x20ae5f[_0x58e9d9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x58e9d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x58e9d9([0x56,0x61,0x6c,0x69,0x64]);})[_0x58e9d9([0x74,0x68,0x65,0x6e])](_0xef54be=>(_0x4a7941(),_0xef54be),()=>{const _0x2ae6b2=_0x6857c0();return null==_0x2ae6b2?(_0x4a7941(),_0x58e9d9([0x56,0x61,0x6c,0x69,0x64])):_0x58e9d9(_0x26c48a-_0x2ae6b2>(0x7446443c^_0x1b8433)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x58e9d9([0x74,0x68,0x65,0x6e])](_0x42233b)[_0x58e9d9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x42233b(_0x58e9d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2edea1=0x507c2ebc^_0x1b8433;function _0x4a7941(){const _0x3eef20=_0x58e9d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x309ffc(_0x446a86(_0x3a5a31)),_0x483989=_0xe46eb1(_0x309ffc(window[_0x58e9d9([0x4d,0x61,0x74,0x68])][_0x58e9d9([0x63,0x65,0x69,0x6c])](_0x26c48a/_0x2edea1)));window[_0x58e9d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58e9d9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3eef20,_0x483989);}function _0x6857c0(){const _0x1cd20e=_0x58e9d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x309ffc(_0x446a86(_0x3a5a31)),_0x7830fd=window[_0x58e9d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58e9d9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1cd20e);return _0x7830fd?window[_0x58e9d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe46eb1(_0x7830fd),0x10)*_0x2edea1:null;}function _0x52fa74(_0x4fb718){return new window[(_0x58e9d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f2066,_0x157d3a)=>{_0x4fb718[_0x58e9d9([0x74,0x68,0x65,0x6e])](_0x4f2066,_0x157d3a),window[_0x58e9d9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x157d3a,0x504b14fc^_0x1b8433);});}}_0x54de97[_0x58e9d9([0x6f,0x6e])](_0x58e9d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x49ea8a,_0x23b09e)=>{if(_0x23b09e[0x0]!=_0x3a5a31)return _0x42233b(_0x58e9d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x23b09e[0x1]={..._0x23b09e[0x1],[_0x58e9d9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x440b97};},{[_0x58e9d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58e9d9([0x68,0x69,0x67,0x68])}),_0x54de97[_0x58e9d9([0x6f,0x6e])](_0x58e9d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x275982=>{_0x44d57d(_0x275982[_0x58e9d9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x287f64=!0x0,_0x116128(_0x275982[_0x58e9d9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x58e9d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58e9d9([0x6c,0x6f,0x77])}),_0x3158c0[_0x58e9d9([0x74,0x68,0x65,0x6e])](()=>{_0x287f64||_0x42233b(_0x58e9d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x481145(){return _0x54de97[_0x58e9d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58e9d9([0x76,0x69,0x65,0x77])][_0x58e9d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x58e9d9([0x61,0x75,0x74,0x6f]);}function _0x1115ed(){_0x54de97[_0x58e9d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58e9d9([0x76,0x69,0x65,0x77])][_0x58e9d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58e9d9([0x61,0x75,0x74,0x6f]);}}function _0x2d2cbc(_0x48c4e0){const _0x487d50=[new window[(_0x58e9d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x125029=>setTimeout(_0x125029,0x5043fef0^_0x1b8433)),_0x3158c0[_0x58e9d9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x58e9d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa74c67=>{let _0x5a8e00=0x0;_0x54de97[_0x58e9d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x58e9d9([0x6f,0x6e])](_0x58e9d9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x20cde5,_0x4bbc9b)=>{_0x4bbc9b[0x0][_0x58e9d9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5a8e00++,_0x5a8e00==(0x504ac1c4^_0x1b8433)&&(_0xa74c67(),_0x20cde5[_0x58e9d9([0x6f,0x66,0x66])]());});}))];return window[_0x58e9d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58e9d9([0x72,0x61,0x63,0x65])](_0x487d50)[_0x58e9d9([0x74,0x68,0x65,0x6e])](()=>_0x48c4e0);}async function _0x1d22ec(){await _0x3158c0,_0x54de97[_0x58e9d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x58e9d9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc7c9a1,_0x54de97[_0x58e9d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x58e9d9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc7c9a1,_0x54de97[_0x58e9d9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x58e9d9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e9e75(_0x120f58){const _0x2c7a3d=_0x4efe14();_0x54de97[_0x2c7a3d]=_0x58e9d9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x120f58,_0x120f58!=_0x58e9d9([0x56,0x61,0x6c,0x69,0x64])&&_0x1d22ec();}function _0x4efe14(){const _0x3e482b=window[_0x58e9d9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x58e9d9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x58e9d9([0x6e,0x6f,0x77])]())[_0x58e9d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x58e9d9([0x2e]),'');let _0x3d4cb5=_0x58e9d9([0x6a]);for(let _0x1478af=0x0;_0x1478af<_0x3e482b[_0x58e9d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1478af+=0x2){let _0x250325=window[_0x58e9d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e482b[_0x58e9d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1478af,_0x1478af+0x2));_0x250325>=_0x383618[_0x58e9d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x250325-=_0x383618[_0x58e9d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3d4cb5+=_0x383618[_0x250325];}return _0x3d4cb5;}function _0xb6ab9b(){const _0xd209c9=_0x21f9f2[_0x58e9d9([0x73,0x70,0x6c,0x69,0x74])](_0x58e9d9([0x2e]));if(0x3!=_0xd209c9[_0x58e9d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1b45de(_0xd209c9[0x1]);function _0x1b45de(_0x594f89){const _0x355801=_0x19bf55(_0x594f89);return _0x355801&&_0x1c8d89()?_0x355801:null;function _0x1c8d89(){const _0x4993a2=_0x355801[_0x58e9d9([0x6a,0x74,0x69])],_0x59637f=window[_0x58e9d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4993a2[_0x58e9d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4993a2[_0x58e9d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x508124={..._0x355801,[_0x58e9d9([0x6a,0x74,0x69])]:_0x4993a2[_0x58e9d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4993a2[_0x58e9d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x508124[_0x58e9d9([0x76,0x63])],_0x446a86(_0x508124)==_0x59637f;}}}async function _0xa5a479(){let _0x2987c2=!0x0;try{const _0x508aa4=_0x21f9f2[_0x58e9d9([0x73,0x70,0x6c,0x69,0x74])](_0x58e9d9([0x2e])),[_0x349a7a,_0x26e18a,_0x474e99]=_0x508aa4;return _0xc6ba9d(_0x349a7a),await _0x3cf77e(_0x349a7a,_0x26e18a,_0x474e99),_0x2987c2;}catch(_0x182be6){return!0x1;}function _0xc6ba9d(_0x4837d2){const _0x2b7799=_0x19bf55(_0x4837d2);_0x2b7799&&_0x2b7799[_0x58e9d9([0x61,0x6c,0x67])]==_0x58e9d9([0x45,0x53,0x32,0x35,0x36])||(_0x2987c2=!0x1);}async function _0x3cf77e(_0x223fb0,_0x5258d0,_0x172c85){const _0x4d24f0=window[_0x58e9d9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x58e9d9([0x66,0x72,0x6f,0x6d])](_0x5862e0(_0x172c85),_0x54fff6=>_0x54fff6[_0x58e9d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x453fb6=new window[(_0x58e9d9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x58e9d9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x223fb0+_0x58e9d9([0x2e])+_0x5258d0),_0x5d0e2c=window[_0x58e9d9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x58e9d9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5d0e2c)return;const _0x2c7bb0=await _0x5d0e2c[_0x58e9d9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x58e9d9([0x6a,0x77,0x6b]),_0x1ae4bf,{[_0x58e9d9([0x6e,0x61,0x6d,0x65])]:_0x58e9d9([0x45,0x43,0x44,0x53,0x41]),[_0x58e9d9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x58e9d9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x58e9d9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5d0e2c[_0x58e9d9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x58e9d9([0x6e,0x61,0x6d,0x65])]:_0x58e9d9([0x45,0x43,0x44,0x53,0x41]),[_0x58e9d9([0x68,0x61,0x73,0x68])]:{[_0x58e9d9([0x6e,0x61,0x6d,0x65])]:_0x58e9d9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2c7bb0,_0x4d24f0,_0x453fb6)||(_0x2987c2=!0x1);}}function _0x19bf55(_0x406cf4){return _0x406cf4[_0x58e9d9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x58e9d9([0x65,0x79]))?JSON[_0x58e9d9([0x70,0x61,0x72,0x73,0x65])](_0x5862e0(_0x406cf4)):null;}function _0x5862e0(_0x54e891){return window[_0x58e9d9([0x61,0x74,0x6f,0x62])](_0x54e891[_0x58e9d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x58e9d9([0x2b]))[_0x58e9d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x58e9d9([0x2f])));}function _0x446a86(_0x307150){let _0x5eecb0=0x1505;function _0x3f6ece(_0x49b14b){for(let _0x2010ef=0x0;_0x2010ef<_0x49b14b[_0x58e9d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2010ef++){const _0x2199ab=_0x49b14b[_0x58e9d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2010ef);_0x5eecb0=(_0x5eecb0<<0x5)+_0x5eecb0+_0x2199ab,_0x5eecb0&=_0x5eecb0;}}function _0x520c65(_0x3c65c8){Array[_0x58e9d9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c65c8)?_0x3c65c8[_0x58e9d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x520c65):_0x3c65c8&&typeof _0x3c65c8==_0x58e9d9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x58e9d9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c65c8)[_0x58e9d9([0x73,0x6f,0x72,0x74])]()[_0x58e9d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xde174f,_0x1d6230])=>{_0x3f6ece(_0xde174f),_0x520c65(_0x1d6230);}):_0x3f6ece(window[_0x58e9d9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c65c8));}return _0x520c65(_0x307150),_0x5eecb0>>>0x0;}function _0x309ffc(_0x44a8e6){return _0x44a8e6[_0x58e9d9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x58e9d9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x58e9d9([0x30]));}function _0xe46eb1(_0x4e9b42){return _0x4e9b42[_0x58e9d9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x58e9d9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x58e9d9([0x6a,0x6f,0x69,0x6e])]('');}function _0xc7c9a1(){}function _0x58e9d9(_0x39f2e3){const _0x7de2f8=_0x581b;return _0x39f2e3[_0x7de2f8(0x198)](_0x146201=>String[_0x7de2f8(0x1c6)](_0x146201))[_0x7de2f8(0x1d5)]('');}_0x1e9e75(await _0x1a9a0a());}(this);}[_0x121a47(0x1b6)](){const _0x408ae9=_0x121a47,_0x2d9997=this[_0x408ae9(0x1bc)][_0x408ae9(0x1a6)][_0x408ae9(0x1ab)];_0x2d9997[_0x408ae9(0x1b3)](_0x408ae9(0x1cc))&&_0x2d9997[_0x408ae9(0x19c)](_0x408ae9(0x1cc),{'allowAttributes':[_0x408ae9(0x1ae)]}),_0x2d9997[_0x408ae9(0x1b3)](_0x408ae9(0x18b))&&_0x2d9997[_0x408ae9(0x19c)](_0x408ae9(0x18b),{'allowAttributes':[_0x408ae9(0x1ae)]});}[_0x121a47(0x190)](){const _0xa3db4c=_0x121a47,_0x10329e=this[_0xa3db4c(0x1bc)];_0x10329e[_0xa3db4c(0x193)][_0xa3db4c(0x1ba)](_0xa3db4c(0x1d3))[_0xa3db4c(0x1cd)]({'model':_0xa3db4c(0x1ae),'view':_0xa3db4c(0x1aa)}),_0x10329e[_0xa3db4c(0x193)][_0xa3db4c(0x1ba)](_0xa3db4c(0x1b7))[_0xa3db4c(0x1c1)]({'model':{'key':_0xa3db4c(0x1ae),'value':_0x4a0cea=>_0x4a0cea[_0xa3db4c(0x199)](_0xa3db4c(0x1aa))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x55deb4=_0x10329e[_0xa3db4c(0x1c0)][_0xa3db4c(0x1d4)](_0xa3db4c(0x1ce));_0x55deb4&&this[_0xa3db4c(0x197)](_0x55deb4,_0xa3db4c(0x196),(_0x3df465,[_0x293896,_0x4340ae])=>{const _0x566487=_0xa3db4c;_0x293896[_0x566487(0x1db)](_0x566487(0x1ae),_0x4340ae);});}[_0x121a47(0x1a3)](){const _0x32ed6a=_0x121a47,_0x56c018=this[_0x32ed6a(0x1bc)][_0x32ed6a(0x1b9)][_0x32ed6a(0x1d4)](_0x32ed6a(0x194))||{},_0x2ebfd6=this[_0x32ed6a(0x1bc)][_0x32ed6a(0x1b9)][_0x32ed6a(0x1d4)](_0x32ed6a(0x191))||'';this[_0x32ed6a(0x1a5)]=_0x365870(_0x2ee5f1[_0x32ed6a(0x19d)],_0x32ed6a(0x192),{..._0x56c018,'pubkey':_0x2ebfd6,'ctx-name':_0x32ed6a(0x1c9),'sourceList':'','imgOnly':_0x32ed6a(0x1ad),'removeCopyright':_0x32ed6a(0x1ad),'localeName':this[_0x32ed6a(0x1bc)][_0x32ed6a(0x1c3)][_0x32ed6a(0x1b5)],'externalSourcesEmbedCss':_0x32ed6a(0x1d9)}),this[_0x32ed6a(0x1a5)][_0x32ed6a(0x1a0)]=_0x16ab45=>{const _0x549f45=_0x32ed6a;if(_0x549f45(0x1b2)==_0x16ab45)return _0x549f45(0x1da);},_0x2ee5f1[_0x32ed6a(0x19d)][_0x32ed6a(0x18f)][_0x32ed6a(0x1c7)](this[_0x32ed6a(0x1a5)]);}[_0x121a47(0x1d1)](){const _0x324ccd=_0x121a47;this[_0x324ccd(0x19f)]=_0x365870(_0x2ee5f1[_0x324ccd(0x19d)],_0x324ccd(0x19b),{'ctx-name':_0x324ccd(0x1c9)}),_0x2ee5f1[_0x324ccd(0x19d)][_0x324ccd(0x18f)][_0x324ccd(0x1c7)](this[_0x324ccd(0x19f)]);}[_0x121a47(0x1ac)](){const _0x131488=_0x121a47,_0x277b40=this[_0x131488(0x1bc)][_0x131488(0x1c0)][_0x131488(0x1d4)](_0x131488(0x1bb));_0x277b40&&this[_0x131488(0x197)](_0x277b40,_0x131488(0x1d2),()=>{const _0x3b4979=_0x131488,_0x57a6d0=this[_0x3b4979(0x1bc)][_0x3b4979(0x1a6)][_0x3b4979(0x19d)][_0x3b4979(0x1c5)][_0x3b4979(0x1b1)]();_0x57a6d0&&_0x57a6d0[_0x3b4979(0x199)](_0x3b4979(0x1ae))&&this[_0x3b4979(0x1bc)][_0x3b4979(0x1a8)][_0x3b4979(0x18e)][_0x3b4979(0x1dd)](_0x3b4979(0x1c4),()=>{const _0x1f66eb=_0x3b4979;_0x3ef294(this[_0x1f66eb(0x1bc)],_0x57a6d0);});});const _0x15a52b=this[_0x131488(0x1bc)][_0x131488(0x1c0)][_0x131488(0x1d4)](_0x131488(0x1d8));_0x15a52b&&this[_0x131488(0x197)](_0x15a52b,_0x131488(0x1d2),()=>{const _0x23b830=_0x131488,_0x46275f=this[_0x23b830(0x1bc)][_0x23b830(0x1a6)][_0x23b830(0x19d)][_0x23b830(0x1c5)][_0x23b830(0x1b1)]();_0x46275f&&_0x46275f[_0x23b830(0x199)](_0x23b830(0x1ae))&&this[_0x23b830(0x1bc)][_0x23b830(0x1a8)][_0x23b830(0x18e)][_0x23b830(0x1dd)](_0x23b830(0x1c4),()=>{const _0x1d0bd2=_0x23b830;_0x3ef294(this[_0x1d0bd2(0x1bc)],_0x46275f);});});}}
23
+ const _0x1a941b=_0x362c;function _0x5443(){const _0x450c91=['_initImageProcessingIndicator','href','getAttribute','42VUTydE','init','iconHrefResolver','conversion','schema','\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','listenTo','upcast','replaceImageSource','extend','true','89333SIBpAS','model','contentLanguage','elementToAttribute','selection','6237532EcPdWi','add','22yxvXYO','closeMax','view','requires','isPremiumPlugin','execute','afterInit','querySelector','_configElement','_initConfig','commands','once','removeAttribute','isOfficialPlugin','#uc-icon-arrow-down','_ctxElement','map','uc-upload-ctx-provider','locale','render','fromCharCode','pluginName','ctxElement','uploadcare','3253758YYwmGr','config','_initSchema','6357652ORrxNp','uploadcareImageReplace','isRegistered','2121280XGznBK','data-uc-image-id','join','uploadcareImageId','editing','imageInline','_initConversion','uploader','remove','324905kyLnLG','imageBlock','configElement','downcast','input[uploadcare-file-input]','for','editor','destroy','_initCtx','insertImage','UploadcareEditing','uploadcare.uploader','PictureEditing','cleanupImage','6323958ztSCqt','uc-config','attributeToAttribute','document','uploadcare.pubkey','get','body','appendChild','getSelectedElement'];_0x5443=function(){return _0x450c91;};return _0x5443();}(function(_0x242581,_0x5efdb9){const _0x3e10c5=_0x362c,_0x365bd1=_0x242581();while(!![]){try{const _0x24a990=-parseInt(_0x3e10c5(0x165))/0x1*(parseInt(_0x3e10c5(0x16c))/0x2)+-parseInt(_0x3e10c5(0x184))/0x3+parseInt(_0x3e10c5(0x16a))/0x4+-parseInt(_0x3e10c5(0x193))/0x5*(parseInt(_0x3e10c5(0x15a))/0x6)+parseInt(_0x3e10c5(0x187))/0x7+parseInt(_0x3e10c5(0x18a))/0x8+parseInt(_0x3e10c5(0x14e))/0x9;if(_0x24a990===_0x5efdb9)break;else _0x365bd1['push'](_0x365bd1['shift']());}catch(_0xf40036){_0x365bd1['push'](_0x365bd1['shift']());}}}(_0x5443,0xdefad));import{Plugin as _0x54b84d}from'ckeditor5/src/core.js';import{Dialog as _0xd64e04}from'ckeditor5/src/ui.js';import{createElement as _0x52482d,global as _0x206e39,uid as _0x538c6c}from'ckeditor5/src/utils.js';import _0x1d108e from'./uploadcarecommand.js';function _0x362c(_0x550d58,_0x4cba9a){const _0x5443d5=_0x5443();return _0x362c=function(_0x362c2b,_0x1b4307){_0x362c2b=_0x362c2b-0x144;let _0x3a8154=_0x5443d5[_0x362c2b];return _0x3a8154;},_0x362c(_0x550d58,_0x4cba9a);}import _0x5925c7 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x35520c}from'./utils/editingutils.js';export default class i extends _0x54b84d{[_0x1a941b(0x174)]=null;[_0x1a941b(0x17b)]=null;static get[_0x1a941b(0x181)](){const _0x1c434b=_0x1a941b;return _0x1c434b(0x14a);}static get[_0x1a941b(0x16f)](){const _0x16340d=_0x1a941b;return[_0x16340d(0x14c),_0x5925c7,_0xd64e04];}static get[_0x1a941b(0x179)](){return!0x0;}static get[_0x1a941b(0x170)](){return!0x0;}get[_0x1a941b(0x195)](){const _0x1e86fb=_0x1a941b;return this[_0x1e86fb(0x174)];}get[_0x1a941b(0x182)](){const _0x242e4c=_0x1a941b;return this[_0x242e4c(0x17b)];}[_0x1a941b(0x15b)](){const _0x504422=_0x1a941b,_0x23c7b8=this[_0x504422(0x146)];_0x23c7b8[_0x504422(0x176)][_0x504422(0x16b)](_0x504422(0x183),new _0x1d108e(_0x23c7b8));}[_0x1a941b(0x172)](){const _0x160380=_0x1a941b;this[_0x160380(0x186)](),this[_0x160380(0x190)](),this[_0x160380(0x175)](),this[_0x160380(0x148)](),this[_0x160380(0x157)](),this[_0x160380(0x160)](this[_0x160380(0x146)],_0x160380(0x147),()=>{const _0x51e628=_0x160380;this[_0x51e628(0x174)]&&(this[_0x51e628(0x174)][_0x51e628(0x192)](),this[_0x51e628(0x174)]=null),this[_0x51e628(0x17b)]&&(this[_0x51e628(0x17b)][_0x51e628(0x192)](),this[_0x51e628(0x17b)]=null);const _0x36b700=_0x206e39[_0x51e628(0x151)][_0x51e628(0x173)](_0x51e628(0x144));_0x36b700&&_0x36b700[_0x51e628(0x192)]();}),async function(_0x424e2f){const _0x139a73=_0x50b595([0x71,0x42,0x6c,0x34,0x67,0x45,0x78,0x4c,0x6f,0x53,0x50,0x69,0x59,0x37,0x4a,0x48,0x65,0x38,0x54,0x44,0x5a,0x74,0x4d,0x6d,0x58,0x62,0x47,0x76,0x4e,0x61,0x6a,0x49,0x79,0x70,0x33,0x30,0x4f,0x4b,0x63,0x51,0x52,0x35,0x64,0x43,0x72,0x36,0x31,0x32,0x73,0x41,0x75,0x6e,0x77,0x56,0x46,0x57,0x55,0x7a,0x6b,0x66,0x39,0x68]),_0x432879=0x7ad616d5,_0x41187e=0x7ad1728d^_0x432879,_0x1d469e=window[_0x50b595([0x44,0x61,0x74,0x65])][_0x50b595([0x6e,0x6f,0x77])](),_0x5e7446=_0x424e2f[_0x50b595([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x48791e=new window[(_0x50b595([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30a1c8=>{_0x5e7446[_0x50b595([0x6f,0x6e,0x63,0x65])](_0x50b595([0x72,0x65,0x61,0x64,0x79]),_0x30a1c8);}),_0xc8b97f={[_0x50b595([0x6b,0x74,0x79])]:_0x50b595([0x45,0x43]),[_0x50b595([0x75,0x73,0x65])]:_0x50b595([0x73,0x69,0x67]),[_0x50b595([0x63,0x72,0x76])]:_0x50b595([0x50,0x2d,0x32,0x35,0x36]),[_0x50b595([0x78])]:_0x50b595([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]),[_0x50b595([0x79])]:_0x50b595([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]),[_0x50b595([0x61,0x6c,0x67])]:_0x50b595([0x45,0x53,0x32,0x35,0x36])},_0xe45ec2=_0x5e7446[_0x50b595([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x50b595([0x67,0x65,0x74])](_0x50b595([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x22ca7c(){let _0x43d26c,_0x1a12b6=null,_0x1cde07=null;try{if(_0xe45ec2==_0x50b595([0x47,0x50,0x4c]))return _0x50b595([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x43d26c=_0x225630(),!_0x43d26c)return _0x50b595([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x43d26c[_0x50b595([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1cde07=_0x1784ce(_0x43d26c[_0x50b595([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x43d26c[_0x50b595([0x6a,0x74,0x69])])),await _0x182f45()?_0x22a6c3()?_0x14ebd5()?_0x50b595([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4c202a()?(_0x43d26c[_0x50b595([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x50b595([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1a12b6=_0x4352e4(_0x50b595([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x43d26c[_0x50b595([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x50b595([0x74,0x72,0x69,0x61,0x6c])&&(_0x1a12b6=_0x4352e4(_0x50b595([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x50ded5()):_0x50b595([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x50b595([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x50b595([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x229ae6){return _0x50b595([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x14ebd5(){const _0x3046c1=[_0x50b595([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x50b595([0x74,0x72,0x69,0x61,0x6c])][_0x50b595([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43d26c[_0x50b595([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1d469e/0x3e8:0xe10*_0x41187e;return _0x43d26c[_0x50b595([0x65,0x78,0x70])]<_0x3046c1;}function _0x22a6c3(){const _0x4a6aa0=_0x43d26c[_0x50b595([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4a6aa0&&(!!_0x4a6aa0[_0x50b595([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50b595([0x2a]))||!!_0x4a6aa0[_0x50b595([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50b595([0x55,0x50,0x4c,0x43])));}function _0x4c202a(){const _0x1d2e39=_0x362c,_0x59d919=_0x43d26c[_0x50b595([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59d919||0x0==_0x59d919[_0x50b595([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x42b98a}=new URL(window[_0x50b595([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1d2e39(0x158)]);if(_0x59d919[_0x50b595([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42b98a))return!0x0;const _0x4f142b=_0x42b98a[_0x50b595([0x73,0x70,0x6c,0x69,0x74])](_0x50b595([0x2e]));return _0x59d919[_0x50b595([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c8c50=>_0x2c8c50[_0x50b595([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50b595([0x2a])))[_0x50b595([0x6d,0x61,0x70])](_0x272c71=>_0x272c71[_0x50b595([0x73,0x70,0x6c,0x69,0x74])](_0x50b595([0x2e])))[_0x50b595([0x73,0x6f,0x6d,0x65])](_0x4c657e=>_0x4f142b[_0x50b595([0x65,0x76,0x65,0x72,0x79])]((_0x2dd4cc,_0xea88b8)=>_0x4c657e[_0xea88b8]===_0x2dd4cc||_0x4c657e[_0xea88b8]===_0x50b595([0x2a])));}function _0x50ded5(){return _0x1a12b6&&_0x1cde07?new window[(_0x50b595([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4094fb,_0x665c00)=>{_0x1a12b6[_0x50b595([0x74,0x68,0x65,0x6e])](_0x4094fb,_0x665c00),_0x1cde07[_0x50b595([0x74,0x68,0x65,0x6e])](_0x51a1c5=>{_0x51a1c5!=_0x50b595([0x56,0x61,0x6c,0x69,0x64])&&_0x4094fb(_0x51a1c5);},_0x665c00);}):_0x1a12b6||_0x1cde07||_0x50b595([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1784ce(_0x55eeeb,_0x1277fc){return new window[(_0x50b595([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dfdd9=>{if(_0x4398ff())return _0x2dfdd9(_0x50b595([0x56,0x61,0x6c,0x69,0x64]));_0x1755a6(),_0x5e7446[_0x50b595([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x50b595([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf0a79e=!0x1;const _0x2003d9=_0x538c6c();function _0x4bd79f(_0x3290d9){return!!_0x3290d9&&(typeof _0x3290d9===_0x50b595([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3290d9===_0x50b595([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3290d9[_0x50b595([0x74,0x68,0x65,0x6e])]===_0x50b595([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3290d9[_0x50b595([0x63,0x61,0x74,0x63,0x68])]===_0x50b595([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x114956(_0x1a8509){_0x58af2f(_0x1a8509)[_0x50b595([0x74,0x68,0x65,0x6e])](_0x396ff8=>{if(!_0x396ff8||_0x396ff8[_0x50b595([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x50b595([0x6f,0x6b]))return _0x50b595([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4df944(_0x5de422(_0x2003d9+_0x1277fc))!=_0x396ff8[_0x50b595([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x50b595([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x50b595([0x56,0x61,0x6c,0x69,0x64]);})[_0x50b595([0x74,0x68,0x65,0x6e])](_0x2b6882=>(_0x97e4e7(),_0x2b6882),()=>{const _0x4ac618=_0x117d3f();return null==_0x4ac618?(_0x97e4e7(),_0x50b595([0x56,0x61,0x6c,0x69,0x64])):_0x50b595(_0x1d469e-_0x4ac618>(0x5eda92d5^_0x432879)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x50b595([0x74,0x68,0x65,0x6e])](_0x2dfdd9)[_0x50b595([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2dfdd9(_0x50b595([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3f9dcc=0x7ae0f855^_0x432879;function _0x97e4e7(){const _0xb11705=_0x50b595([0x6c,0x6c,0x63,0x74,0x2d])+_0x4df944(_0x5de422(_0x55eeeb)),_0xec0151=_0x44e51d(_0x4df944(window[_0x50b595([0x4d,0x61,0x74,0x68])][_0x50b595([0x63,0x65,0x69,0x6c])](_0x1d469e/_0x3f9dcc)));window[_0x50b595([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x50b595([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb11705,_0xec0151);}function _0x117d3f(){const _0x52a302=_0x50b595([0x6c,0x6c,0x63,0x74,0x2d])+_0x4df944(_0x5de422(_0x55eeeb)),_0x561a9f=window[_0x50b595([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x50b595([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52a302);return _0x561a9f?window[_0x50b595([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44e51d(_0x561a9f),0x10)*_0x3f9dcc:null;}function _0x58af2f(_0x5af58f){return new window[(_0x50b595([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa085c6,_0x117f23)=>{_0x5af58f[_0x50b595([0x74,0x68,0x65,0x6e])](_0xa085c6,_0x117f23),window[_0x50b595([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x117f23,0x7ad7c215^_0x432879);});}}_0x5e7446[_0x50b595([0x6f,0x6e])](_0x50b595([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x474a7c,_0x19817f)=>{if(_0x19817f[0x0]!=_0x55eeeb)return _0x2dfdd9(_0x50b595([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x19817f[0x1]={..._0x19817f[0x1],[_0x50b595([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2003d9};},{[_0x50b595([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x50b595([0x68,0x69,0x67,0x68])}),_0x5e7446[_0x50b595([0x6f,0x6e])](_0x50b595([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xdf8fe5=>{_0x4bd79f(_0xdf8fe5[_0x50b595([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf0a79e=!0x0,_0x114956(_0xdf8fe5[_0x50b595([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x50b595([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x50b595([0x6c,0x6f,0x77])}),_0x48791e[_0x50b595([0x74,0x68,0x65,0x6e])](()=>{_0xf0a79e||_0x2dfdd9(_0x50b595([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4398ff(){return _0x5e7446[_0x50b595([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x50b595([0x76,0x69,0x65,0x77])][_0x50b595([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x50b595([0x61,0x75,0x74,0x6f]);}function _0x1755a6(){_0x5e7446[_0x50b595([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x50b595([0x76,0x69,0x65,0x77])][_0x50b595([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x50b595([0x61,0x75,0x74,0x6f]);}}function _0x4352e4(_0x22b069){const _0x15694c=[new window[(_0x50b595([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd1ffe4=>setTimeout(_0xd1ffe4,0x7adf2819^_0x432879)),_0x48791e[_0x50b595([0x74,0x68,0x65,0x6e])](()=>new window[(_0x50b595([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35243e=>{let _0x4666d1=0x0;_0x5e7446[_0x50b595([0x6d,0x6f,0x64,0x65,0x6c])][_0x50b595([0x6f,0x6e])](_0x50b595([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3da472,_0x16e859)=>{_0x16e859[0x0][_0x50b595([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4666d1++,_0x4666d1==(0x7ad6172d^_0x432879)&&(_0x35243e(),_0x3da472[_0x50b595([0x6f,0x66,0x66])]());});}))];return window[_0x50b595([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x50b595([0x72,0x61,0x63,0x65])](_0x15694c)[_0x50b595([0x74,0x68,0x65,0x6e])](()=>_0x22b069);}async function _0x59fc93(){await _0x48791e,_0x5e7446[_0x50b595([0x6d,0x6f,0x64,0x65,0x6c])][_0x50b595([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x315086,_0x5e7446[_0x50b595([0x6d,0x6f,0x64,0x65,0x6c])][_0x50b595([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x315086,_0x5e7446[_0x50b595([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x50b595([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x122f21(_0x55146f){const _0x35ea14=_0x31c8dc();_0x5e7446[_0x35ea14]=_0x50b595([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x55146f,_0x55146f!=_0x50b595([0x56,0x61,0x6c,0x69,0x64])&&_0x59fc93();}function _0x31c8dc(){const _0x117022=window[_0x50b595([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x50b595([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x50b595([0x6e,0x6f,0x77])]())[_0x50b595([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x50b595([0x2e]),'');let _0x2f8afd=_0x50b595([0x71]);for(let _0x2644b3=0x0;_0x2644b3<_0x117022[_0x50b595([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2644b3+=0x2){let _0x25d51c=window[_0x50b595([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x117022[_0x50b595([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2644b3,_0x2644b3+0x2));_0x25d51c>=_0x139a73[_0x50b595([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x25d51c-=_0x139a73[_0x50b595([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f8afd+=_0x139a73[_0x25d51c];}return _0x2f8afd;}function _0x225630(){const _0x2a0a7c=_0xe45ec2[_0x50b595([0x73,0x70,0x6c,0x69,0x74])](_0x50b595([0x2e]));if(0x3!=_0x2a0a7c[_0x50b595([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x363b74(_0x2a0a7c[0x1]);function _0x363b74(_0x2d95bd){const _0x488253=_0x4d88a5(_0x2d95bd);return _0x488253&&_0x52a93a()?_0x488253:null;function _0x52a93a(){const _0x4d0403=_0x488253[_0x50b595([0x6a,0x74,0x69])],_0x2f174d=window[_0x50b595([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d0403[_0x50b595([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d0403[_0x50b595([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x22fc10={..._0x488253,[_0x50b595([0x6a,0x74,0x69])]:_0x4d0403[_0x50b595([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4d0403[_0x50b595([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x22fc10[_0x50b595([0x76,0x63])],_0x5de422(_0x22fc10)==_0x2f174d;}}}async function _0x182f45(){let _0x26a17a=!0x0;try{const _0x4bf1f3=_0xe45ec2[_0x50b595([0x73,0x70,0x6c,0x69,0x74])](_0x50b595([0x2e])),[_0x4da648,_0x501293,_0x345bf2]=_0x4bf1f3;return _0x4df3a2(_0x4da648),await _0x2775b8(_0x4da648,_0x501293,_0x345bf2),_0x26a17a;}catch(_0x12968){return!0x1;}function _0x4df3a2(_0x3647d1){const _0x349d7b=_0x4d88a5(_0x3647d1);_0x349d7b&&_0x349d7b[_0x50b595([0x61,0x6c,0x67])]==_0x50b595([0x45,0x53,0x32,0x35,0x36])||(_0x26a17a=!0x1);}async function _0x2775b8(_0x2e0004,_0x1fe60e,_0xee2576){const _0x46ab74=window[_0x50b595([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x50b595([0x66,0x72,0x6f,0x6d])](_0x4ac14e(_0xee2576),_0x4f7a37=>_0x4f7a37[_0x50b595([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x22bffa=new window[(_0x50b595([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x50b595([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2e0004+_0x50b595([0x2e])+_0x1fe60e),_0x587d85=window[_0x50b595([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x50b595([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x587d85)return;const _0x3aea8d=await _0x587d85[_0x50b595([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x50b595([0x6a,0x77,0x6b]),_0xc8b97f,{[_0x50b595([0x6e,0x61,0x6d,0x65])]:_0x50b595([0x45,0x43,0x44,0x53,0x41]),[_0x50b595([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x50b595([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x50b595([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x587d85[_0x50b595([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x50b595([0x6e,0x61,0x6d,0x65])]:_0x50b595([0x45,0x43,0x44,0x53,0x41]),[_0x50b595([0x68,0x61,0x73,0x68])]:{[_0x50b595([0x6e,0x61,0x6d,0x65])]:_0x50b595([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3aea8d,_0x46ab74,_0x22bffa)||(_0x26a17a=!0x1);}}function _0x4d88a5(_0x231942){return _0x231942[_0x50b595([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x50b595([0x65,0x79]))?JSON[_0x50b595([0x70,0x61,0x72,0x73,0x65])](_0x4ac14e(_0x231942)):null;}function _0x4ac14e(_0x2ab4b1){return window[_0x50b595([0x61,0x74,0x6f,0x62])](_0x2ab4b1[_0x50b595([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x50b595([0x2b]))[_0x50b595([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x50b595([0x2f])));}function _0x5de422(_0x17cae5){let _0x3b4eb9=0x1505;function _0x437225(_0x32f902){for(let _0x2cb001=0x0;_0x2cb001<_0x32f902[_0x50b595([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2cb001++){const _0x8444a2=_0x32f902[_0x50b595([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2cb001);_0x3b4eb9=(_0x3b4eb9<<0x5)+_0x3b4eb9+_0x8444a2,_0x3b4eb9&=_0x3b4eb9;}}function _0x580d67(_0x522c1c){Array[_0x50b595([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x522c1c)?_0x522c1c[_0x50b595([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x580d67):_0x522c1c&&typeof _0x522c1c==_0x50b595([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x50b595([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x522c1c)[_0x50b595([0x73,0x6f,0x72,0x74])]()[_0x50b595([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c1579,_0x3db611])=>{_0x437225(_0x3c1579),_0x580d67(_0x3db611);}):_0x437225(window[_0x50b595([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x522c1c));}return _0x580d67(_0x17cae5),_0x3b4eb9>>>0x0;}function _0x4df944(_0x313e42){return _0x313e42[_0x50b595([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x50b595([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x50b595([0x30]));}function _0x44e51d(_0x5bfb1a){return _0x5bfb1a[_0x50b595([0x73,0x70,0x6c,0x69,0x74])]('')[_0x50b595([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x50b595([0x6a,0x6f,0x69,0x6e])]('');}function _0x315086(){}function _0x50b595(_0x25d2a3){const _0x32730f=_0x362c;return _0x25d2a3[_0x32730f(0x17c)](_0x469250=>String[_0x32730f(0x180)](_0x469250))[_0x32730f(0x18c)]('');}_0x122f21(await _0x22ca7c());}(this);}[_0x1a941b(0x186)](){const _0x4312d1=_0x1a941b,_0x127c6a=this[_0x4312d1(0x146)][_0x4312d1(0x166)][_0x4312d1(0x15e)];_0x127c6a[_0x4312d1(0x189)](_0x4312d1(0x194))&&_0x127c6a[_0x4312d1(0x163)](_0x4312d1(0x194),{'allowAttributes':[_0x4312d1(0x18d)]}),_0x127c6a[_0x4312d1(0x189)](_0x4312d1(0x18f))&&_0x127c6a[_0x4312d1(0x163)](_0x4312d1(0x18f),{'allowAttributes':[_0x4312d1(0x18d)]});}[_0x1a941b(0x190)](){const _0x4967f5=_0x1a941b,_0x167f6b=this[_0x4967f5(0x146)];_0x167f6b[_0x4967f5(0x15d)][_0x4967f5(0x145)](_0x4967f5(0x196))[_0x4967f5(0x150)]({'model':_0x4967f5(0x18d),'view':_0x4967f5(0x18b)}),_0x167f6b[_0x4967f5(0x15d)][_0x4967f5(0x145)](_0x4967f5(0x161))[_0x4967f5(0x168)]({'model':{'key':_0x4967f5(0x18d),'value':_0x49816c=>_0x49816c[_0x4967f5(0x159)](_0x4967f5(0x18b))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x340e3d=_0x167f6b[_0x4967f5(0x176)][_0x4967f5(0x153)](_0x4967f5(0x162));_0x340e3d&&this[_0x4967f5(0x160)](_0x340e3d,_0x4967f5(0x14d),(_0x1acabd,[_0x29543d,_0x2de58e])=>{const _0x3dfff7=_0x4967f5;_0x29543d[_0x3dfff7(0x178)](_0x3dfff7(0x18d),_0x2de58e);});}[_0x1a941b(0x175)](){const _0x325bad=_0x1a941b,_0x2800f5=this[_0x325bad(0x146)][_0x325bad(0x185)][_0x325bad(0x153)](_0x325bad(0x14b))||{},_0x4aa044=this[_0x325bad(0x146)][_0x325bad(0x185)][_0x325bad(0x153)](_0x325bad(0x152))||'';this[_0x325bad(0x174)]=_0x52482d(_0x206e39[_0x325bad(0x151)],_0x325bad(0x14f),{..._0x2800f5,'pubkey':_0x4aa044,'ctx-name':_0x325bad(0x191),'sourceList':'','imgOnly':_0x325bad(0x164),'removeCopyright':_0x325bad(0x164),'localeName':this[_0x325bad(0x146)][_0x325bad(0x17e)][_0x325bad(0x167)],'externalSourcesEmbedCss':_0x325bad(0x15f)}),this[_0x325bad(0x174)][_0x325bad(0x15c)]=_0x553a96=>{const _0x2acf63=_0x325bad;if(_0x2acf63(0x16d)==_0x553a96)return _0x2acf63(0x17a);},_0x206e39[_0x325bad(0x151)][_0x325bad(0x154)][_0x325bad(0x155)](this[_0x325bad(0x174)]);}[_0x1a941b(0x148)](){const _0x386e72=_0x1a941b;this[_0x386e72(0x17b)]=_0x52482d(_0x206e39[_0x386e72(0x151)],_0x386e72(0x17d),{'ctx-name':_0x386e72(0x191)}),_0x206e39[_0x386e72(0x151)][_0x386e72(0x154)][_0x386e72(0x155)](this[_0x386e72(0x17b)]);}[_0x1a941b(0x157)](){const _0x521b40=_0x1a941b,_0x148ee3=this[_0x521b40(0x146)][_0x521b40(0x176)][_0x521b40(0x153)](_0x521b40(0x149));_0x148ee3&&this[_0x521b40(0x160)](_0x148ee3,_0x521b40(0x171),()=>{const _0x16cd64=_0x521b40,_0x55d10b=this[_0x16cd64(0x146)][_0x16cd64(0x166)][_0x16cd64(0x151)][_0x16cd64(0x169)][_0x16cd64(0x156)]();_0x55d10b&&_0x55d10b[_0x16cd64(0x159)](_0x16cd64(0x18d))&&this[_0x16cd64(0x146)][_0x16cd64(0x18e)][_0x16cd64(0x16e)][_0x16cd64(0x177)](_0x16cd64(0x17f),()=>{const _0xad2132=_0x16cd64;_0x35520c(this[_0xad2132(0x146)],_0x55d10b);});});const _0x4817c7=this[_0x521b40(0x146)][_0x521b40(0x176)][_0x521b40(0x153)](_0x521b40(0x188));_0x4817c7&&this[_0x521b40(0x160)](_0x4817c7,_0x521b40(0x171),()=>{const _0x26b679=_0x521b40,_0x5534f3=this[_0x26b679(0x146)][_0x26b679(0x166)][_0x26b679(0x151)][_0x26b679(0x169)][_0x26b679(0x156)]();_0x5534f3&&_0x5534f3[_0x26b679(0x159)](_0x26b679(0x18d))&&this[_0x26b679(0x146)][_0x26b679(0x18e)][_0x26b679(0x16e)][_0x26b679(0x177)](_0x26b679(0x17f),()=>{const _0x171499=_0x26b679;_0x35520c(this[_0x171499(0x146)],_0x5534f3);});});}}