@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251207.0 → 0.0.0-nightly-20251208.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x39c3ad,Command as _0x4328ce}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x41dbab,IconGooglePhotos as _0x3ff0aa,IconGoogleDrive as _0x562ff3,IconFacebook as _0x5d1048,IconDropbox as _0x1851b4,IconUploadcareLink as _0x29be8c,IconUploadcareImageUpload as _0x257715,IconError as _0x351b85,IconUploadcareImageEdit as _0x582bbb}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x227c2b,MenuBarMenuListItemButtonView as _0x1785e8,View as _0x2f8857,FocusCycler as _0x133e0c,Dialog as _0x4b691a,DialogViewPosition as _0x2de70e,SpinnerView as _0xfb01be,IconView as _0x433aea,Notification as _0x57c716}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x382794,DomEmitterMixin as _0x543665,global as _0x29fec2,getAncestors as _0x368260,ObservableMixin as _0x54438c,uid as _0x3fd7a2,createElement as _0x79bcbc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x12c1b0}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3e7095,info as _0xe608f}from'@uploadcare/upload-client';import*as _0x1f4bb4 from'@uploadcare/file-uploader';var i=function(_0x5e8031){return _0x5e8031['Local']='local',_0x5e8031['URL']='url',_0x5e8031['Dropbox']='dropbox',_0x5e8031['GDrive']='gdrive',_0x5e8031['Facebook']='facebook',_0x5e8031['GPhotos']='gphotos',_0x5e8031['OneDrive']='onedrive',_0x5e8031;}({});function _(_0x218cf3,_0x124326,_0x2b836b){const t=_0x218cf3['t'],_0x42fba8=_0x218cf3['t'];switch(_0x124326){case i['Local']:return{'text':_0x42fba8('Insert'===_0x2b836b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x42fba8('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x2b836b?_0x42fba8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x42fba8('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x2b836b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x2b836b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x2b836b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x2b836b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x2b836b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x124326;}}class e extends _0x39c3ad{['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 _0x31c13e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x13de8c;for(const _0x35dc8f in _0x31c13e){const _0x194f74=_0x35dc8f,_0x2711d3=_0x31c13e[_0x194f74];if('uploadcareLicenseKeyValid'==_0x2711d3||'uploadcareLicenseKeyInvalid'==_0x2711d3||'uploadcareLicenseKeyExpired'==_0x2711d3||'uploadcareLicenseKeyDomainLimit'==_0x2711d3||'uploadcareLicenseKeyNotAllowed'==_0x2711d3||'uploadcareLicenseKeyEvaluationLimit'==_0x2711d3||'uploadcareLicenseKeyTrialLimit'==_0x2711d3||'uploadcareLicenseKeyUsageLimit'==_0x2711d3){delete _0x31c13e[_0x194f74],_0x13de8c=_0x2711d3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x13de8c&&_0x31c13e['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x13de8c&&_0x31c13e['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x13de8c&&_0x31c13e['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x13de8c&&_0x31c13e['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x13de8c&&_0x31c13e['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x13de8c&&_0x31c13e['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x13de8c&&_0x31c13e['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1ef9a2}=this,_0x546e4f=_0x1ef9a2['commands']['get']('uploadcare');if(!_0x546e4f)return;const _0x33c3f1=this['_normalizeConfigSourceList'](_0x1ef9a2['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x451063,_0x56ab7c)=>{const _0x47ff60=this['_getIntegrationKey'](_0x56ab7c['type']);return _0x451063[_0x47ff60]||(_0x451063[_0x47ff60]=[]),_0x451063[_0x47ff60]['push'](_0x56ab7c),_0x451063;},{});_0x1ef9a2['plugins']['has']('ImageInsertUI')&&_0x1ef9a2['commands']['get']('uploadcare')&&Object['entries'](_0x33c3f1)['forEach'](([_0x12658a,_0x52a8c5])=>{_0x1ef9a2['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x12658a,'observable':()=>_0x546e4f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x52a8c5),'formViewCreator':()=>this['_createDropdownButtons'](_0x52a8c5),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x52a8c5),'override':'assetManager'!==_0x12658a});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x58f158){const {locale:_0x26b1a1}=this['editor'];return _0x58f158['map'](_0x5b35b6=>{const _0x8235a8=_(_0x26b1a1,_0x5b35b6,'Insert');switch(_0x5b35b6){case i['Local']:return{'icon':_0x257715,'type':i['Local'],..._0x8235a8};case i['URL']:return{'icon':_0x29be8c,'type':i['URL'],..._0x8235a8};case i['Dropbox']:return{'icon':_0x1851b4,'type':i['Dropbox'],..._0x8235a8};case i['Facebook']:return{'icon':_0x5d1048,'type':i['Facebook'],..._0x8235a8};case i['GDrive']:return{'icon':_0x562ff3,'type':i['GDrive'],..._0x8235a8};case i['GPhotos']:return{'icon':_0x3ff0aa,'type':i['GPhotos'],..._0x8235a8};case i['OneDrive']:return{'icon':_0x41dbab,'type':i['OneDrive'],..._0x8235a8};}});}['_getIntegrationKey'](_0x1556ec){switch(_0x1556ec){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2cee83,_0x4fa3d1){const _0x3267ea=this['editor'],_0x148c02=new _0x2cee83(_0x3267ea['locale']),_0x4158ec=_0x3267ea['commands']['get']('uploadcare');return _0x148c02['bind']('isEnabled')['to'](_0x4158ec),_0x148c02['on']('execute',()=>{_0x4158ec['execute'](_0x4fa3d1);}),_0x148c02;}['_createToolbarButton'](_0x288b9e){const {locale:_0x1da80e}=this['editor'],_0x1fe396=this['editor']['plugins']['get']('ImageInsertUI'),_0x3f0a53=_0x288b9e[0x0],_0x5e6505=this['_createButton'](_0x227c2b,_0x3f0a53['type']);return _0x5e6505['icon']=_0x3f0a53['icon'],_0x5e6505['bind']('label')['to'](_0x1fe396,'isImageSelected',_0x36046f=>_(_0x1da80e,_0x3f0a53['type'],_0x36046f?'Replace':'Insert')['text']),_0x5e6505['tooltip']=!0x0,_0x5e6505;}['_createDropdownButtons'](_0x34ffa0){const {locale:_0xd6661}=this['editor'],_0x251fa5=this['editor']['plugins']['get']('ImageInsertUI');return _0x34ffa0['map'](_0x199102=>{const _0x5639da=this['_createButton'](_0x227c2b,_0x199102['type']);return _0x5639da['withText']=!0x0,_0x5639da['icon']=_0x199102['icon'],_0x5639da['bind']('label')['to'](_0x251fa5,'isImageSelected',_0xdefcb8=>_(_0xd6661,_0x199102['type'],_0xdefcb8?'Replace':'Insert')['text']),_0x5639da;});}['_createMenuBarButtons'](_0x50dc93){return _0x50dc93['map'](_0x1446d4=>{const _0x4cd9a6=this['_createButton'](_0x1785e8,_0x1446d4['type']);return _0x4cd9a6['icon']=_0x1446d4['icon'],_0x4cd9a6['label']=_0x1446d4['shortText'],_0x4cd9a6;});}}class F extends _0x2f8857{['focusTracker'];['focusCycler'];constructor(_0x1d9e16){super(_0x1d9e16),this['focusTracker']=new _0x382794(),this['focusCycler']=new _0x133e0c({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x18eb16,_0x1c3266){super(_0x18eb16),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-'+_0x1c3266}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x4ca2a1,_0x34e6e9){const _0x2f826d=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3936f6=>_0x3936f6<=_0x34e6e9)['map'](_0x1ffe80=>_0x4ca2a1['replace'](/\/$/,'')+'/-/resize/'+_0x1ffe80+'x/\x20'+_0x1ffe80+'w');return{'imageFallbackUrl':_0x4ca2a1,'imageSources':[{'srcset':_0x2f826d['join'](',\x20'),'sizes':'(max-width:\x20'+_0x34e6e9+'px)\x20100vw,\x20'+_0x34e6e9+'px','type':'image/webp'}]};}function S(_0x4e84a9,_0x161836,_0x25a3b8){const _0x353aa0=_0x4e84a9['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x353aa0?parseInt(_0x353aa0[0x1],0xa):_0x161836,'height':_0x353aa0?parseInt(_0x353aa0[0x2],0xa):_0x25a3b8};}function p(_0x521d49,_0x5256c2){const _0x167ff6=new(_0x543665())(),_0x54c6ce=_0x521d49['plugins']['get']('ImageUtils'),_0x1867ea=_0x521d49['editing']['mapper']['toViewElement'](_0x5256c2),_0x42ec65=_0x54c6ce['findViewImgElement'](_0x1867ea),_0x413d52=_0x521d49['editing']['view']['domConverter']['viewToDom'](_0x42ec65),_0x36ff99=_0x5256c2['getAttribute']('width'),_0x2d688a=_0x5256c2['getAttribute']('height'),_0x295019='image-processing';_0x521d49['editing']['view']['change'](_0x330a9b=>{_0x330a9b['addClass'](_0x295019,_0x1867ea),_0x330a9b['setStyle']('aspect-ratio',_0x36ff99+'/'+_0x2d688a,_0x42ec65);}),_0x167ff6['listenTo'](_0x413d52,'load',()=>{_0x167ff6['stopListening'](_0x413d52,'load'),_0x521d49['editing']['view']['change'](_0x29efa7=>{_0x29efa7['removeClass'](_0x295019,_0x1867ea),_0x29efa7['removeStyle']('aspect-ratio',_0x42ec65);});});}function z(_0x198b39){if(Array['isArray'](_0x198b39)){const _0x358399=_0x198b39['map'](z);return _0x18439e=>_0x358399['some'](_0x1668e0=>_0x1668e0(_0x18439e));}if('origin'==_0x198b39){const _0x49b40b=_0x29fec2['window']['location']['origin'];return _0x3e68f5=>new URL(_0x3e68f5,_0x29fec2['document']['baseURI'])['origin']==_0x49b40b;}return'function'==typeof _0x198b39?_0x198b39:_0x198b39 instanceof RegExp?_0x1f8c36=>!(!_0x1f8c36['match'](_0x198b39)&&!_0x1f8c36['replace'](/^https?:\/\//,'')['match'](_0x198b39)):()=>!0x1;}function A(_0x36bf93,_0x14a8a5){return _0x368260(_0x36bf93['target'])['includes'](_0x14a8a5);}class n extends/* #__PURE__ -- @preserve */
24
- _0x54438c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x169db0,_0x398497,_0x5641d5){super(),this['_editor']=_0x169db0,this['_editing']=_0x398497,this['_dialog']=_0x169db0['plugins']['get'](_0x4b691a),this['_api']=_0x398497['ctxElement']['getAPI'](),this['_type']=_0x5641d5,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:_0x533aa1,model:_0x560bda}=this['_editor'],_0x125a18=_0x560bda['document']['selection']['getSelectedElement'](),_0x3bc4ce=_0x125a18&&(_0x125a18['is']('element','imageBlock')||_0x125a18['is']('element','imageInline'));this['_formView']=new x(_0x533aa1,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x257715,'title':_(_0x533aa1,this['_type'],_0x3bc4ce?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2de70e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x335698=>!A(_0x335698,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x33dc3e}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x67060b=>{const _0x379a10=_0x33dc3e['length'];for(const _0xc03732 of _0x33dc3e){const _0x5b5107=_0xc03732===_0x33dc3e[_0x379a10-0x1],{cdnUrl:_0x27e5b7,fileInfo:_0x4878e0}=_0xc03732;if(!_0x27e5b7||!_0x4878e0)continue;const {width:_0x3eb1fa,height:_0x5fe7d3}=_0x4878e0['imageInfo'],_0x175919=S(_0x27e5b7,_0x3eb1fa,_0x5fe7d3),_0x2218e5=C(_0x27e5b7,_0x175919['width']),_0xb4bd7b={'id':_0x4878e0['uuid'],'type':'image','attributes':{'imageDimension':_0x175919,..._0x2218e5}};this['_insertAsset'](_0xb4bd7b,_0x5b5107,_0x67060b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1a0ca3=>{'idle'===_0x1a0ca3['detail']['status']&&!_0x1a0ca3['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3762e9,_0x47754e,_0x3b8b5e){const _0x484dfe=this['_editor']['model']['document']['selection'],_0x3733b6=_0x484dfe['getSelectedElement'](),_0x12c25f=!(!_0x3733b6||!_0x3733b6['is']('element','imageInline'));_0x3b8b5e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3762e9,_0x12c25f),_0x47754e||_0x3b8b5e['setSelection'](_0x484dfe['getLastPosition']());}['_insertImage'](_0x208ca2,_0x4cc0bb){const _0x36ce11=this['_editor'],{imageDimension:_0x218d43,imageFallbackUrl:_0x38e59d,imageSources:_0x4fa385}=_0x208ca2['attributes'];_0x36ce11['execute']('insertImage',{'imageType':_0x4cc0bb?'imageInline':null,'source':{'uploadcareImageId':_0x208ca2['id'],'src':_0x38e59d,'sources':_0x4fa385,..._0x218d43}});}}class w extends _0x4328ce{['_editing'];['_controller']=null;static get['requires'](){return[_0x4b691a,o];}constructor(_0x1d4d17){super(_0x1d4d17),this['_editing']=_0x1d4d17['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xb46156){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xb46156);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x57eb58,..._0x250b57}){return _0x3e7095(_0x57eb58,_0x250b57);}static['getInfo'](_0x184439,_0x168847){return _0xe608f(_0x184439,_0x168847);}}class f extends _0x39c3ad{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x12c1b0,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x46ba7e=this['editor'];if(!!!_0x46ba7e['config']['get']('uploadcare'))return;_0x46ba7e['plugins']['get'](_0x12c1b0)['createUploadAdapter']=_0x52da9a=>new k(_0x52da9a,_0x46ba7e),_0x46ba7e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x41ba73,{imageElement:_0x14cc47,data:_0x1f01c1})=>{_0x46ba7e['model']['change'](_0x286218=>{_0x286218['setAttribute']('uploadcareImageId',_0x1f01c1['uploadcareImageId'],_0x14cc47);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xbdffe7,_0x2f65af){this['loader']=_0xbdffe7,this['editor']=_0x2f65af,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3b4b4e=await this['loader']['file'];return j['upload']({'file':_0x3b4b4e,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x34772d=>{_0x34772d&&_0x34772d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x34772d['value']);}})['then'](async _0x13c754=>{const {imageFallbackUrl:_0x1a5961,imageSources:_0x560586}=C(_0x13c754['cdnUrl'],_0x13c754['imageInfo']['width']);return{'uploadcareImageId':_0x13c754['uuid'],'default':_0x1a5961,'sources':_0x560586};})['catch'](()=>{const _0x7c3794=t('Cannot\x20upload\x20file:')+('\x20'+_0x3b4b4e['name']+'.');return Promise['reject'](_0x7c3794);});}['abort'](){this['controller']['abort']();}}class o extends _0x39c3ad{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4b691a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xdde774){super(_0xdde774),this['ucContextId']=_0x3fd7a2();}['init'](){const _0x47e79c=this['editor'];_0x47e79c['commands']['add']('uploadcare',new w(_0x47e79c));}['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 _0x3899c9=_0x29fec2['document']['querySelector']('input[uploadcare-file-input]');_0x3899c9&&_0x3899c9['remove']();}),async function(_0x31e455){const _0x427554=_0x2618ce([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4c83bd=0x535f8c3a,_0xdd1095=0x5358f702^_0x4c83bd,_0x5d2e29=window[_0x2618ce([0x44,0x61,0x74,0x65])][_0x2618ce([0x6e,0x6f,0x77])](),_0x42d750=_0x31e455[_0x2618ce([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xbea417=new window[(_0x2618ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f9417=>{_0x42d750[_0x2618ce([0x6f,0x6e,0x63,0x65])](_0x2618ce([0x72,0x65,0x61,0x64,0x79]),_0x4f9417);}),_0x4e1808={[_0x2618ce([0x6b,0x74,0x79])]:_0x2618ce([0x45,0x43]),[_0x2618ce([0x75,0x73,0x65])]:_0x2618ce([0x73,0x69,0x67]),[_0x2618ce([0x63,0x72,0x76])]:_0x2618ce([0x50,0x2d,0x32,0x35,0x36]),[_0x2618ce([0x78])]:_0x2618ce([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]),[_0x2618ce([0x79])]:_0x2618ce([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]),[_0x2618ce([0x61,0x6c,0x67])]:_0x2618ce([0x45,0x53,0x32,0x35,0x36])},_0x29b97a=_0x42d750[_0x2618ce([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2618ce([0x67,0x65,0x74])](_0x2618ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x575f05(){let _0x3517fd,_0x5edecf=null,_0x3e7818=null;try{if(_0x29b97a==_0x2618ce([0x47,0x50,0x4c]))return _0x2618ce([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3517fd=_0x1249c5(),!_0x3517fd)return _0x2618ce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3517fd[_0x2618ce([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e7818=_0x300373(_0x3517fd[_0x2618ce([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3517fd[_0x2618ce([0x6a,0x74,0x69])])),await _0x2262d6()?_0x6c019f()?_0x1a0b01()?_0x2618ce([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1340b8()?(_0x3517fd[_0x2618ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2618ce([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5edecf=_0x1b195d(_0x2618ce([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3517fd[_0x2618ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2618ce([0x74,0x72,0x69,0x61,0x6c])&&(_0x5edecf=_0x1b195d(_0x2618ce([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x46e23e()):_0x2618ce([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2618ce([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2618ce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2618ce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1a0b01(){const _0x5ed336=[_0x2618ce([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2618ce([0x74,0x72,0x69,0x61,0x6c])][_0x2618ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3517fd[_0x2618ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5d2e29/0x3e8:0xe10*_0xdd1095;return _0x3517fd[_0x2618ce([0x65,0x78,0x70])]<_0x5ed336;}function _0x6c019f(){const _0x3c38c9=_0x3517fd[_0x2618ce([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3c38c9&&(!!_0x3c38c9[_0x2618ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2618ce([0x2a]))||!!_0x3c38c9[_0x2618ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2618ce([0x55,0x50,0x4c,0x43])));}function _0x1340b8(){const _0x13802b=_0x3517fd[_0x2618ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x13802b||0x0==_0x13802b[_0x2618ce([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x180318}=new URL(window[_0x2618ce([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x13802b[_0x2618ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x180318))return!0x0;const _0x7ce263=_0x180318[_0x2618ce([0x73,0x70,0x6c,0x69,0x74])](_0x2618ce([0x2e]));return _0x13802b[_0x2618ce([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3233d3=>_0x3233d3[_0x2618ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2618ce([0x2a])))[_0x2618ce([0x6d,0x61,0x70])](_0x38884e=>_0x38884e[_0x2618ce([0x73,0x70,0x6c,0x69,0x74])](_0x2618ce([0x2e])))[_0x2618ce([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ffc34=>_0x4ffc34[_0x2618ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x7ce263[_0x2618ce([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2618ce([0x6d,0x61,0x70])](_0x17dbf3=>Array(_0x7ce263[_0x2618ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x17dbf3[_0x2618ce([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2618ce([0x66,0x69,0x6c,0x6c])](_0x17dbf3[0x0]===_0x2618ce([0x2a])?_0x2618ce([0x2a]):'')[_0x2618ce([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x17dbf3))[_0x2618ce([0x73,0x6f,0x6d,0x65])](_0x2fff8e=>_0x7ce263[_0x2618ce([0x65,0x76,0x65,0x72,0x79])]((_0x4183d4,_0x4d3a09)=>_0x2fff8e[_0x4d3a09]===_0x4183d4||_0x2fff8e[_0x4d3a09]===_0x2618ce([0x2a])));}function _0x46e23e(){return _0x5edecf&&_0x3e7818?new window[(_0x2618ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d075d,_0x397450)=>{_0x5edecf[_0x2618ce([0x74,0x68,0x65,0x6e])](_0x5d075d,_0x397450),_0x3e7818[_0x2618ce([0x74,0x68,0x65,0x6e])](_0x4d6846=>{_0x4d6846!=_0x2618ce([0x56,0x61,0x6c,0x69,0x64])&&_0x5d075d(_0x4d6846);},_0x397450);}):_0x5edecf||_0x3e7818||_0x2618ce([0x56,0x61,0x6c,0x69,0x64]);}}function _0x300373(_0x425c14,_0x241595){return new window[(_0x2618ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d7fa1=>{if(_0x543e1d())return _0x2d7fa1(_0x2618ce([0x56,0x61,0x6c,0x69,0x64]));_0x1f5e03(),_0x42d750[_0x2618ce([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2618ce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x396f96=!0x1;const _0xe24b10=_0x3fd7a2();function _0x1e0ab9(_0xad05a6){return!!_0xad05a6&&(typeof _0xad05a6===_0x2618ce([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xad05a6===_0x2618ce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xad05a6[_0x2618ce([0x74,0x68,0x65,0x6e])]===_0x2618ce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xad05a6[_0x2618ce([0x63,0x61,0x74,0x63,0x68])]===_0x2618ce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3bd11e(_0x4a2dab){_0x35e9d0(_0x4a2dab)[_0x2618ce([0x74,0x68,0x65,0x6e])](_0x127908=>{if(!_0x127908||_0x127908[_0x2618ce([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2618ce([0x6f,0x6b]))return _0x2618ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2f612b(_0x445ae6(_0xe24b10+_0x241595))!=_0x127908[_0x2618ce([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2618ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2618ce([0x56,0x61,0x6c,0x69,0x64]);})[_0x2618ce([0x74,0x68,0x65,0x6e])](_0x240692=>(_0x4a2441(),_0x240692),()=>{const _0x48a426=_0x2f7b78();return null==_0x48a426?(_0x4a2441(),_0x2618ce([0x56,0x61,0x6c,0x69,0x64])):_0x2618ce(_0x5d2e29-_0x48a426>(0x7753083a^_0x4c83bd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2618ce([0x74,0x68,0x65,0x6e])](_0x2d7fa1)[_0x2618ce([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2d7fa1(_0x2618ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x343e36=0x536962ba^_0x4c83bd;function _0x4a2441(){const _0x253377=_0x2618ce([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f612b(_0x445ae6(_0x425c14)),_0x5ddc1c=_0x1e228b(_0x2f612b(window[_0x2618ce([0x4d,0x61,0x74,0x68])][_0x2618ce([0x63,0x65,0x69,0x6c])](_0x5d2e29/_0x343e36)));window[_0x2618ce([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2618ce([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x253377,_0x5ddc1c);}function _0x2f7b78(){const _0x9dc42c=_0x2618ce([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f612b(_0x445ae6(_0x425c14)),_0x216b2d=window[_0x2618ce([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2618ce([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x9dc42c);return _0x216b2d?window[_0x2618ce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e228b(_0x216b2d),0x10)*_0x343e36:null;}function _0x35e9d0(_0x129b96){return new window[(_0x2618ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50efdc,_0x408865)=>{_0x129b96[_0x2618ce([0x74,0x68,0x65,0x6e])](_0x50efdc,_0x408865),window[_0x2618ce([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x408865,0x535e58fa^_0x4c83bd);});}}_0x42d750[_0x2618ce([0x6f,0x6e])](_0x2618ce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x10a644,_0xb65277)=>{if(_0xb65277[0x0]!=_0x425c14)return _0x2d7fa1(_0x2618ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb65277[0x1]={..._0xb65277[0x1],[_0x2618ce([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xe24b10};},{[_0x2618ce([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2618ce([0x68,0x69,0x67,0x68])}),_0x42d750[_0x2618ce([0x6f,0x6e])](_0x2618ce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x42e0ca=>{_0x1e0ab9(_0x42e0ca[_0x2618ce([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x396f96=!0x0,_0x3bd11e(_0x42e0ca[_0x2618ce([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2618ce([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2618ce([0x6c,0x6f,0x77])}),_0xbea417[_0x2618ce([0x74,0x68,0x65,0x6e])](()=>{_0x396f96||_0x2d7fa1(_0x2618ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x543e1d(){return _0x42d750[_0x2618ce([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2618ce([0x76,0x69,0x65,0x77])][_0x2618ce([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2618ce([0x61,0x75,0x74,0x6f]);}function _0x1f5e03(){_0x42d750[_0x2618ce([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2618ce([0x76,0x69,0x65,0x77])][_0x2618ce([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2618ce([0x61,0x75,0x74,0x6f]);}}function _0x1b195d(_0xb11ee2){const _0x5173c6=[new window[(_0x2618ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1dec8a=>setTimeout(_0x1dec8a,0x5356b2f6^_0x4c83bd)),_0xbea417[_0x2618ce([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2618ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x68ef2a=>{let _0x4a745d=0x0;_0x42d750[_0x2618ce([0x6d,0x6f,0x64,0x65,0x6c])][_0x2618ce([0x6f,0x6e])](_0x2618ce([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x57e32b,_0x48d650)=>{_0x48d650[0x0][_0x2618ce([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a745d++,_0x4a745d==(0x535f8dc2^_0x4c83bd)&&(_0x68ef2a(),_0x57e32b[_0x2618ce([0x6f,0x66,0x66])]());});}))];return window[_0x2618ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2618ce([0x72,0x61,0x63,0x65])](_0x5173c6)[_0x2618ce([0x74,0x68,0x65,0x6e])](()=>_0xb11ee2);}async function _0x2a6519(){await _0xbea417,_0x42d750[_0x2618ce([0x6d,0x6f,0x64,0x65,0x6c])][_0x2618ce([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x59de3d,_0x42d750[_0x2618ce([0x6d,0x6f,0x64,0x65,0x6c])][_0x2618ce([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x59de3d,_0x42d750[_0x2618ce([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2618ce([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x38bae3(_0x257039){const _0x10b9cc=_0x44471e();_0x42d750[_0x10b9cc]=_0x2618ce([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x257039,_0x257039!=_0x2618ce([0x56,0x61,0x6c,0x69,0x64])&&_0x2a6519();}function _0x44471e(){const _0x56cb87=window[_0x2618ce([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2618ce([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2618ce([0x6e,0x6f,0x77])]())[_0x2618ce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2618ce([0x2e]),'');let _0x2edc8c=_0x2618ce([0x68]);for(let _0x43e3a0=0x0;_0x43e3a0<_0x56cb87[_0x2618ce([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43e3a0+=0x2){let _0x2e1ed5=window[_0x2618ce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56cb87[_0x2618ce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43e3a0,_0x43e3a0+0x2));_0x2e1ed5>=_0x427554[_0x2618ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2e1ed5-=_0x427554[_0x2618ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2edc8c+=_0x427554[_0x2e1ed5];}return _0x2edc8c;}function _0x1249c5(){const _0x14e9ba=_0x29b97a[_0x2618ce([0x73,0x70,0x6c,0x69,0x74])](_0x2618ce([0x2e]));if(0x3!=_0x14e9ba[_0x2618ce([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4362fc(_0x14e9ba[0x1]);function _0x4362fc(_0x56a6a0){const _0x4fb04d=_0x2b7066(_0x56a6a0);return _0x4fb04d&&_0x49768d()?_0x4fb04d:null;function _0x49768d(){const _0x221537=_0x4fb04d[_0x2618ce([0x6a,0x74,0x69])],_0x48c6f9=window[_0x2618ce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x221537[_0x2618ce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x221537[_0x2618ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x22f2fc={..._0x4fb04d,[_0x2618ce([0x6a,0x74,0x69])]:_0x221537[_0x2618ce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x221537[_0x2618ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x22f2fc[_0x2618ce([0x76,0x63])],_0x445ae6(_0x22f2fc)==_0x48c6f9;}}}async function _0x2262d6(){let _0x4f873d=!0x0;try{const _0x482d50=_0x29b97a[_0x2618ce([0x73,0x70,0x6c,0x69,0x74])](_0x2618ce([0x2e])),[_0x42262a,_0x4d24e7,_0x5ed370]=_0x482d50;return _0x497be3(_0x42262a),await _0x6a46ce(_0x42262a,_0x4d24e7,_0x5ed370),_0x4f873d;}catch{return!0x1;}function _0x497be3(_0x1c57b6){const _0xd2695b=_0x2b7066(_0x1c57b6);_0xd2695b&&_0xd2695b[_0x2618ce([0x61,0x6c,0x67])]==_0x2618ce([0x45,0x53,0x32,0x35,0x36])||(_0x4f873d=!0x1);}async function _0x6a46ce(_0xcaa774,_0x2a8c44,_0x232a5f){const _0x3ce34d=window[_0x2618ce([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2618ce([0x66,0x72,0x6f,0x6d])](_0x152cb2(_0x232a5f),_0x521c91=>_0x521c91[_0x2618ce([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x13697e=new window[(_0x2618ce([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2618ce([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xcaa774+_0x2618ce([0x2e])+_0x2a8c44),_0x218589=window[_0x2618ce([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2618ce([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x218589)return;const _0x22d039=await _0x218589[_0x2618ce([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2618ce([0x6a,0x77,0x6b]),_0x4e1808,{[_0x2618ce([0x6e,0x61,0x6d,0x65])]:_0x2618ce([0x45,0x43,0x44,0x53,0x41]),[_0x2618ce([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2618ce([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2618ce([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x218589[_0x2618ce([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2618ce([0x6e,0x61,0x6d,0x65])]:_0x2618ce([0x45,0x43,0x44,0x53,0x41]),[_0x2618ce([0x68,0x61,0x73,0x68])]:{[_0x2618ce([0x6e,0x61,0x6d,0x65])]:_0x2618ce([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x22d039,_0x3ce34d,_0x13697e)||(_0x4f873d=!0x1);}}function _0x2b7066(_0x3aa03c){return _0x3aa03c[_0x2618ce([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2618ce([0x65,0x79]))?JSON[_0x2618ce([0x70,0x61,0x72,0x73,0x65])](_0x152cb2(_0x3aa03c)):null;}function _0x152cb2(_0xd1debf){return window[_0x2618ce([0x61,0x74,0x6f,0x62])](_0xd1debf[_0x2618ce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2618ce([0x2b]))[_0x2618ce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2618ce([0x2f])));}function _0x445ae6(_0x5c92c5){let _0x4e2226=0x1505;function _0x5d26e0(_0x41e5c3){for(let _0x3168ac=0x0;_0x3168ac<_0x41e5c3[_0x2618ce([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3168ac++){const _0x5974b4=_0x41e5c3[_0x2618ce([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3168ac);_0x4e2226=(_0x4e2226<<0x5)+_0x4e2226+_0x5974b4,_0x4e2226&=_0x4e2226;}}function _0x2ec155(_0x3139df){Array[_0x2618ce([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3139df)?_0x3139df[_0x2618ce([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ec155):_0x3139df&&typeof _0x3139df==_0x2618ce([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2618ce([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3139df)[_0x2618ce([0x73,0x6f,0x72,0x74])]()[_0x2618ce([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2208b0,_0x54d65d])=>{_0x5d26e0(_0x2208b0),_0x2ec155(_0x54d65d);}):_0x5d26e0(window[_0x2618ce([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3139df));}return _0x2ec155(_0x5c92c5),_0x4e2226>>>0x0;}function _0x2f612b(_0x428eba){return _0x428eba[_0x2618ce([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2618ce([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2618ce([0x30]));}function _0x1e228b(_0xcf2aaa){return _0xcf2aaa[_0x2618ce([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2618ce([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2618ce([0x6a,0x6f,0x69,0x6e])]('');}function _0x59de3d(){}function _0x2618ce(_0x3d0cce){return _0x3d0cce['map'](_0x301904=>String['fromCharCode'](_0x301904))['join']('');}_0x38bae3(await _0x575f05());}(this);}['_initSchema'](){const _0xf0dff5=this['editor']['model']['schema'];_0xf0dff5['isRegistered']('imageBlock')&&_0xf0dff5['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xf0dff5['isRegistered']('imageInline')&&_0xf0dff5['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x42659b=this['editor'];_0x42659b['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x42659b['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xb6719a=>_0xb6719a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1bb56c=_0x42659b['commands']['get']('replaceImageSource');_0x1bb56c&&this['listenTo'](_0x1bb56c,'cleanupImage',(_0x5643e2,[_0x18f100,_0x5e44cc])=>{_0x18f100['removeAttribute']('uploadcareImageId',_0x5e44cc);});}['_initConfig'](){const _0x45efd2=this['editor']['config']['get']('uploadcare.uploader')||{},_0x296d84=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x79bcbc(_0x29fec2['document'],'uc-config',{..._0x45efd2,'pubkey':_0x296d84,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x2bd867=>{if('closeMax'==_0x2bd867)return'#uc-icon-arrow-down';},_0x29fec2['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x79bcbc(_0x29fec2['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x29fec2['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x27dd0f=this['editor']['commands']['get']('insertImage');_0x27dd0f&&this['listenTo'](_0x27dd0f,'execute',()=>{const _0x467ae3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x467ae3&&_0x467ae3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x467ae3);});});const _0x5dbf92=this['editor']['commands']['get']('uploadcareImageReplace');_0x5dbf92&&this['listenTo'](_0x5dbf92,'execute',()=>{const _0x3fc45d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3fc45d&&_0x3fc45d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3fc45d);});});}}class tt extends _0x39c3ad{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x21d5f7){super(_0x21d5f7),_0x21d5f7['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x1f4bb4['defineComponents'](_0x1f4bb4),this['_defineLocale']();}['_defineLocale'](){const _0x20d98f=this['editor']['config']['get']('uploadcare.locale'),_0x100f78=this['editor']['locale']['contentLanguage'];_0x20d98f&&_0x1f4bb4['defineLocale'](_0x100f78,_0x20d98f);}}class ii extends _0x2f8857{constructor(_0x30c2bc){super(_0x30c2bc);const t=_0x30c2bc['t'],_0x532172=this['bindTemplate'],_0x2f2c2c=new _0xfb01be();_0x2f2c2c['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':[_0x2f2c2c,{'text':_0x532172['to']('imageUploadProgress',_0x4eacf0=>t('Loading\x20image...')+'\x20('+(_0x4eacf0||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x2f8857{constructor(_0x28028d){super(_0x28028d);const t=_0x28028d['t'];this['set']('errorType',null);const _0x805181=new _0x227c2b(_0x28028d);_0x805181['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x805181['withText']=!0x0,_0x805181['class']='ck-button-action',_0x805181['on']('execute',()=>{this['fire']('retry');}),_0x805181['bind']('isVisible')['to'](this,'errorType',_0x226bc9=>'NotFound'!==_0x226bc9);const _0x3e45f7=new _0x433aea();_0x3e45f7['content']=_0x351b85,_0x3e45f7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x462f89=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':[_0x3e45f7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x462f89['to']('errorType',_0x1f84cc=>t('NotFound'!==_0x1f84cc?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x805181]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x2f8857{constructor(_0xe3b06d,_0xa75867){super(_0xe3b06d);const _0x49ee84=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xa75867,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x49ee84['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2c4fae,_0x391435,_0x20502e){super(_0x2c4fae),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2c4fae),this['_errorView']=new ti(_0x2c4fae),this['_editingView']=new ei(_0x2c4fae,_0x20502e),this['_focusableView']=new _0x2f8857(_0x2c4fae),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x391435),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'],_0x3a749c=>{this['_addUploadcareImageEditorListeners'](_0x3a749c);});}),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'](_0x2f56d2,_0x5984c3){const _0x53acd5='uc-cloud-image-editor',_0x2bef98=_0x2f56d2['querySelector'](_0x53acd5);if(_0x2bef98)return _0x5984c3(_0x2bef98);const _0x328431=new MutationObserver(_0x202161=>{const _0x3e2c4b=_0x202161['filter'](_0x2d11e3=>_0x2d11e3['target']===_0x2f56d2&&_0x2d11e3['addedNodes']['length']>0x0&&_0x2d11e3['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x53acd5);_0x3e2c4b['length']&&(_0x328431['disconnect'](),_0x5984c3(_0x3e2c4b[0x0]['addedNodes'][0x0]));});_0x328431['observe'](_0x2f56d2,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1e017d){_0x1e017d['addEventListener']('apply',_0x4ec46c=>{this['fire']('apply',{'imageSrc':_0x4ec46c['detail']['cdnUrl']});}),_0x1e017d['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
25
- _0x54438c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x354c86,_0x438b23,_0x325df1){super(),this['_editor']=_0x354c86,this['_dialog']=_0x438b23,this['_imageElement']=_0x325df1,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 _0x4ae4be=this['_imageElement'],_0x2eb76b=_0x4ae4be['getAttribute']('uploadcareImageId'),_0x20d4c1=_0x4ae4be['getAttribute']('src');if(_0x2eb76b)await this['_loadImageInfo'](_0x2eb76b,_0x20d4c1);else{if(this['_imageCache']['has'](_0x20d4c1)){const _0x225313=this['_imageCache']['get'](_0x20d4c1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x225313['url'],this['imageDimension']=_0x225313['dimension'],this['imageId']=_0x225313['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4e1754}=this['_editor'],t=_0x4e1754['t'],_0x303878=new X(_0x4e1754,this['imageStatus'],this['_attributes']);_0x303878['bind']('status')['to'](this,'imageStatus'),_0x303878['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x303878['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x303878['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x303878,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x582bbb,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x303878,'position':_0x2de70e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x303878['focus']();},'onHide':()=>{_0x303878['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x38b756=>!A(_0x38b756,_0x303878['element'])}});}['_loadImageInfo'](_0x5df3a3,_0x2c892e){return j['getInfo'](_0x5df3a3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5bb4bb=>{const {width:_0x44101a,height:_0x38092f}=_0x5bb4bb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2c892e,this['imageDimension']={'width':_0x44101a,'height':_0x38092f},this['imageId']=_0x5df3a3;})['catch'](_0x4deaf9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4deaf9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1ae875,_0x279a2d){return this['_getImageAsFile'](_0x1ae875)['then'](_0x47e0dd=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x279a2d['signal'],'file':_0x47e0dd,'onProgress':_0x30fdd8=>{_0x30fdd8&&_0x30fdd8['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x30fdd8['value']));}}))['then'](_0x314654=>{const {width:_0x1d757f,height:_0x2cf206}=_0x314654['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x314654['cdnUrl'],this['imageDimension']={'width':_0x1d757f,'height':_0x2cf206},this['imageId']=_0x314654['uuid'],this['imageUploadProgress']=null;const _0x34a302=_0x1ae875['getAttribute']('src');this['_imageCache']['set'](_0x34a302,{'id':_0x314654['uuid'],'url':_0x314654['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x120cf6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x120cf6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x441430,_0x1bcd82){_0x441430['on']('apply',(_0x1bfefd,_0x5d8815)=>{this['_replaceImage'](_0x1bcd82,_0x5d8815['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x441430['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x441430['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1b73e1,_0xfacc77,_0x4be377){const _0x532202=this['_editor'],{width:_0x3c1c12,height:_0x3153d4}=S(_0xfacc77,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1c3aef,imageSources:_0x32242c}=C(_0xfacc77,_0x3c1c12);_0x532202['model']['change'](_0x23bf17=>{if('$graveyard'===_0x1b73e1['root']['rootName']){_0x532202['execute']('insertImage',{'imageType':_0x1b73e1['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1b73e1['getAttributes']()),'uploadcareImageId':_0x4be377,'src':_0x1c3aef,'sources':_0x32242c,'width':_0x3c1c12,'height':_0x3153d4}});const _0x153d81=_0x1b73e1['getChildren']();_0x1b73e1=_0x532202['model']['document']['selection']['getSelectedElement']();for(const _0x5cab45 of _0x153d81)_0x23bf17['append'](_0x23bf17['cloneElement'](_0x5cab45),_0x1b73e1);}else _0x23bf17['setSelection'](_0x1b73e1,'on'),_0x532202['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1b73e1['getAttributes']()),'uploadcareImageId':_0x4be377,'src':_0x1c3aef,'sources':_0x32242c,'width':_0x3c1c12,'height':_0x3153d4},_0x1b73e1);_0x23bf17['setSelection'](_0x1b73e1,'on');});}async['_getImageAsFile'](_0x42925b){const _0x1aa9c7=_0x29fec2['window'],_0x513dd4=_0x29fec2['document']['location']['href'],_0x582575=new _0x1aa9c7['URL'](_0x42925b['getAttribute']('src'),_0x513dd4);if('data:'===_0x582575['protocol']){const _0x2adc5c=_0x582575['href']['split'](','),_0x528139=_0x2adc5c[0x0]['match'](/:(.*?);/)[0x1],_0x3c288f=_0x528139['split']('/')[0x1],_0x2fadf4=_0x1aa9c7['atob'](_0x2adc5c[_0x2adc5c['length']-0x1]);let _0x1104b6=_0x2fadf4['length'];const _0x52eb6d=new _0x1aa9c7['Uint8Array'](_0x1104b6);for(;_0x1104b6--;)_0x52eb6d[_0x1104b6]=_0x2fadf4['charCodeAt'](_0x1104b6);return new _0x1aa9c7['File']([_0x52eb6d],'image.'+_0x3c288f,{'type':_0x528139});}const _0xd32ba9=_0x582575['href']['split']('/'),_0x30453b=_0xd32ba9[_0xd32ba9['length']-0x1],_0x56c597=_0x30453b['split']('.')[0x1];return _0x1aa9c7['fetch'](_0x582575['href'])['then'](_0x565a9b=>_0x565a9b['clone']()['blob']())['then'](_0x6596f=>new _0x1aa9c7['File']([_0x6596f],_0x30453b,{'type':'image/'+_0x56c597}));}}class Q extends _0x4328ce{['imageEditController'];static get['requires'](){return[_0x4b691a];}['_isEditable'];constructor(_0x404327){super(_0x404327),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x502beb){const _0x5b78df=z(_0x502beb);return _0x2245cd=>!(!_0x2245cd||!_0x2245cd['is']('element','imageBlock')&&!_0x2245cd['is']('element','imageInline'))&&(!!_0x2245cd['hasAttribute']('uploadcareImageId')||!!_0x2245cd['hasAttribute']('src')&&_0x5b78df(_0x2245cd['getAttribute']('src')));}(_0x404327['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1ce52e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1ce52e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xf8e8ef=this['editor']['model']['document']['selection']['getSelectedElement']();_0xf8e8ef&&(_0xf8e8ef['is']('element','imageBlock')||_0xf8e8ef['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x4b691a),_0xf8e8ef),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x4328ce{['refresh'](){const _0x293ebc=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x293ebc&&(_0x293ebc['is']('element','imageBlock')||_0x293ebc['is']('element','imageInline')));}['execute'](_0x24187c){const _0x46b175=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x46e988=>{_0x46e988['setAttributes'](_0x24187c,_0x46b175),_0x46e988['removeAttribute']('srcset',_0x46b175),_0x46e988['removeAttribute']('sizes',_0x46b175);});}}class m extends _0x39c3ad{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x57c716,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x589b76}=this;_0x589b76['commands']['add']('uploadcareImageEdit',new Q(_0x589b76)),_0x589b76['commands']['add']('uploadcareImageReplace',new V(_0x589b76));}}class g extends _0x39c3ad{['_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 _0x2076f5=this['editor'];_0x2076f5['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2c827d=>{const _0x22879c=_0x2076f5['commands']['get']('uploadcareImageEdit'),_0x206a8e=new _0x227c2b(_0x2c827d),t=_0x2c827d['t'];return _0x206a8e['set']({'icon':_0x582bbb,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x206a8e['bind']('isEnabled')['to'](_0x22879c),_0x206a8e['bind']('isOn')['to'](_0x22879c,'isActive'),this['listenTo'](_0x206a8e,'execute',()=>{_0x2076f5['execute']('uploadcareImageEdit'),_0x2076f5['editing']['view']['focus']();}),_0x206a8e;}),this['_initConfig']();}['_initConfig'](){const _0x4c48ac=_0x79bcbc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4c48ac),this['listenTo'](this['editor'],'destroy',()=>{_0x4c48ac['remove']();});}}class et extends _0x39c3ad{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0x932a7a,Command as _0x185ba3}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x24ac3f,IconGooglePhotos as _0x107759,IconGoogleDrive as _0x29b67d,IconFacebook as _0x5f08d0,IconDropbox as _0x2445b0,IconUploadcareLink as _0x1d51fe,IconUploadcareImageUpload as _0x559a88,IconError as _0x3b4bf7,IconUploadcareImageEdit as _0x45e45a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x37d1f3,MenuBarMenuListItemButtonView as _0x18f50f,View as _0x5362f3,FocusCycler as _0xd661cf,Dialog as _0x2d59da,DialogViewPosition as _0x3c7aeb,SpinnerView as _0x1a6f73,IconView as _0x138e2d,Notification as _0x17e9f3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x33f422,DomEmitterMixin as _0x4263c9,global as _0x1fbd6c,getAncestors as _0xe6ee1f,ObservableMixin as _0x583d83,uid as _0x41a347,createElement as _0x356aa6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1550cb}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x445187,info as _0x2822be}from'@uploadcare/upload-client';import*as _0x3fe783 from'@uploadcare/file-uploader';var i=function(_0x3846af){return _0x3846af['Local']='local',_0x3846af['URL']='url',_0x3846af['Dropbox']='dropbox',_0x3846af['GDrive']='gdrive',_0x3846af['Facebook']='facebook',_0x3846af['GPhotos']='gphotos',_0x3846af['OneDrive']='onedrive',_0x3846af;}({});function _(_0xe76582,_0x4a67bf,_0x264f85){const t=_0xe76582['t'],_0x2ad2f6=_0xe76582['t'];switch(_0x4a67bf){case i['Local']:return{'text':_0x2ad2f6('Insert'===_0x264f85?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2ad2f6('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x264f85?_0x2ad2f6('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2ad2f6('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x264f85?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x264f85?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x264f85?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x264f85?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x264f85?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4a67bf;}}class e extends _0x932a7a{['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 _0x13e579=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x26ed84;for(const _0x352494 in _0x13e579){const _0x47d027=_0x352494,_0x486095=_0x13e579[_0x47d027];if('uploadcareLicenseKeyValid'==_0x486095||'uploadcareLicenseKeyInvalid'==_0x486095||'uploadcareLicenseKeyExpired'==_0x486095||'uploadcareLicenseKeyDomainLimit'==_0x486095||'uploadcareLicenseKeyNotAllowed'==_0x486095||'uploadcareLicenseKeyEvaluationLimit'==_0x486095||'uploadcareLicenseKeyTrialLimit'==_0x486095||'uploadcareLicenseKeyUsageLimit'==_0x486095){delete _0x13e579[_0x47d027],_0x26ed84=_0x486095,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x26ed84&&_0x13e579['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x26ed84&&_0x13e579['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x26ed84&&_0x13e579['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x26ed84&&_0x13e579['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x26ed84&&_0x13e579['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x26ed84&&_0x13e579['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x26ed84&&_0x13e579['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4ee7e3}=this,_0x49cca4=_0x4ee7e3['commands']['get']('uploadcare');if(!_0x49cca4)return;const _0xff82ab=this['_normalizeConfigSourceList'](_0x4ee7e3['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x43b67b,_0x24b749)=>{const _0x57a867=this['_getIntegrationKey'](_0x24b749['type']);return _0x43b67b[_0x57a867]||(_0x43b67b[_0x57a867]=[]),_0x43b67b[_0x57a867]['push'](_0x24b749),_0x43b67b;},{});_0x4ee7e3['plugins']['has']('ImageInsertUI')&&_0x4ee7e3['commands']['get']('uploadcare')&&Object['entries'](_0xff82ab)['forEach'](([_0x4656d9,_0x38c977])=>{_0x4ee7e3['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4656d9,'observable':()=>_0x49cca4,'buttonViewCreator':()=>this['_createToolbarButton'](_0x38c977),'formViewCreator':()=>this['_createDropdownButtons'](_0x38c977),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x38c977),'override':'assetManager'!==_0x4656d9});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x36bdde){const {locale:_0xc2b25a}=this['editor'];return _0x36bdde['map'](_0xc74738=>{const _0x1a25b6=_(_0xc2b25a,_0xc74738,'Insert');switch(_0xc74738){case i['Local']:return{'icon':_0x559a88,'type':i['Local'],..._0x1a25b6};case i['URL']:return{'icon':_0x1d51fe,'type':i['URL'],..._0x1a25b6};case i['Dropbox']:return{'icon':_0x2445b0,'type':i['Dropbox'],..._0x1a25b6};case i['Facebook']:return{'icon':_0x5f08d0,'type':i['Facebook'],..._0x1a25b6};case i['GDrive']:return{'icon':_0x29b67d,'type':i['GDrive'],..._0x1a25b6};case i['GPhotos']:return{'icon':_0x107759,'type':i['GPhotos'],..._0x1a25b6};case i['OneDrive']:return{'icon':_0x24ac3f,'type':i['OneDrive'],..._0x1a25b6};}});}['_getIntegrationKey'](_0x1db5f3){switch(_0x1db5f3){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5f13cd,_0x2fdcdb){const _0x5d873d=this['editor'],_0x185cfc=new _0x5f13cd(_0x5d873d['locale']),_0xb4fde5=_0x5d873d['commands']['get']('uploadcare');return _0x185cfc['bind']('isEnabled')['to'](_0xb4fde5),_0x185cfc['on']('execute',()=>{_0xb4fde5['execute'](_0x2fdcdb);}),_0x185cfc;}['_createToolbarButton'](_0x284267){const {locale:_0x22278e}=this['editor'],_0x25298e=this['editor']['plugins']['get']('ImageInsertUI'),_0x1fa8ef=_0x284267[0x0],_0x29014a=this['_createButton'](_0x37d1f3,_0x1fa8ef['type']);return _0x29014a['icon']=_0x1fa8ef['icon'],_0x29014a['bind']('label')['to'](_0x25298e,'isImageSelected',_0x4b9c6a=>_(_0x22278e,_0x1fa8ef['type'],_0x4b9c6a?'Replace':'Insert')['text']),_0x29014a['tooltip']=!0x0,_0x29014a;}['_createDropdownButtons'](_0x540d24){const {locale:_0x508173}=this['editor'],_0x250df5=this['editor']['plugins']['get']('ImageInsertUI');return _0x540d24['map'](_0x507f51=>{const _0x40ab87=this['_createButton'](_0x37d1f3,_0x507f51['type']);return _0x40ab87['withText']=!0x0,_0x40ab87['icon']=_0x507f51['icon'],_0x40ab87['bind']('label')['to'](_0x250df5,'isImageSelected',_0x4ec290=>_(_0x508173,_0x507f51['type'],_0x4ec290?'Replace':'Insert')['text']),_0x40ab87;});}['_createMenuBarButtons'](_0x3c0d1b){return _0x3c0d1b['map'](_0x23d5b9=>{const _0x4cccd8=this['_createButton'](_0x18f50f,_0x23d5b9['type']);return _0x4cccd8['icon']=_0x23d5b9['icon'],_0x4cccd8['label']=_0x23d5b9['shortText'],_0x4cccd8;});}}class F extends _0x5362f3{['focusTracker'];['focusCycler'];constructor(_0x2b60f1){super(_0x2b60f1),this['focusTracker']=new _0x33f422(),this['focusCycler']=new _0xd661cf({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x45f85c,_0x45acbb){super(_0x45f85c),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-'+_0x45acbb}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x5b4bd1,_0x4b4da9){const _0x475418=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2babe5=>_0x2babe5<=_0x4b4da9)['map'](_0x3a58a4=>_0x5b4bd1['replace'](/\/$/,'')+'/-/resize/'+_0x3a58a4+'x/\x20'+_0x3a58a4+'w');return{'imageFallbackUrl':_0x5b4bd1,'imageSources':[{'srcset':_0x475418['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4b4da9+'px)\x20100vw,\x20'+_0x4b4da9+'px','type':'image/webp'}]};}function S(_0x5e23fb,_0x421a11,_0x644a79){const _0x4e44e8=_0x5e23fb['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4e44e8?parseInt(_0x4e44e8[0x1],0xa):_0x421a11,'height':_0x4e44e8?parseInt(_0x4e44e8[0x2],0xa):_0x644a79};}function p(_0x47fdb9,_0x128e5a){const _0x5298ac=new(_0x4263c9())(),_0x4f9fbd=_0x47fdb9['plugins']['get']('ImageUtils'),_0x53cc4d=_0x47fdb9['editing']['mapper']['toViewElement'](_0x128e5a),_0x65e6d1=_0x4f9fbd['findViewImgElement'](_0x53cc4d),_0x3accad=_0x47fdb9['editing']['view']['domConverter']['viewToDom'](_0x65e6d1),_0x3883a2=_0x128e5a['getAttribute']('width'),_0x3180e2=_0x128e5a['getAttribute']('height'),_0x5df365='image-processing';_0x47fdb9['editing']['view']['change'](_0x55aa93=>{_0x55aa93['addClass'](_0x5df365,_0x53cc4d),_0x55aa93['setStyle']('aspect-ratio',_0x3883a2+'/'+_0x3180e2,_0x65e6d1);}),_0x5298ac['listenTo'](_0x3accad,'load',()=>{_0x5298ac['stopListening'](_0x3accad,'load'),_0x47fdb9['editing']['view']['change'](_0x4507a1=>{_0x4507a1['removeClass'](_0x5df365,_0x53cc4d),_0x4507a1['removeStyle']('aspect-ratio',_0x65e6d1);});});}function z(_0x4e94ea){if(Array['isArray'](_0x4e94ea)){const _0x19d403=_0x4e94ea['map'](z);return _0x45e643=>_0x19d403['some'](_0x3e4194=>_0x3e4194(_0x45e643));}if('origin'==_0x4e94ea){const _0x54f3e9=_0x1fbd6c['window']['location']['origin'];return _0x5a82a0=>new URL(_0x5a82a0,_0x1fbd6c['document']['baseURI'])['origin']==_0x54f3e9;}return'function'==typeof _0x4e94ea?_0x4e94ea:_0x4e94ea instanceof RegExp?_0x2b474c=>!(!_0x2b474c['match'](_0x4e94ea)&&!_0x2b474c['replace'](/^https?:\/\//,'')['match'](_0x4e94ea)):()=>!0x1;}function A(_0x8f24fc,_0x2688b6){return _0xe6ee1f(_0x8f24fc['target'])['includes'](_0x2688b6);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x583d83(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x596419,_0x51350f,_0x1df649){super(),this['_editor']=_0x596419,this['_editing']=_0x51350f,this['_dialog']=_0x596419['plugins']['get'](_0x2d59da),this['_api']=_0x51350f['ctxElement']['getAPI'](),this['_type']=_0x1df649,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:_0x3a7025,model:_0x1d3b5d}=this['_editor'],_0x56ebd1=_0x1d3b5d['document']['selection']['getSelectedElement'](),_0x16ce94=_0x56ebd1&&(_0x56ebd1['is']('element','imageBlock')||_0x56ebd1['is']('element','imageInline'));this['_formView']=new x(_0x3a7025,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x559a88,'title':_(_0x3a7025,this['_type'],_0x16ce94?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3c7aeb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2f3452=>!A(_0x2f3452,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5b4b47}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x38f3e2=>{const _0x3e8899=_0x5b4b47['length'];for(const _0x6f0d29 of _0x5b4b47){const _0x316871=_0x6f0d29===_0x5b4b47[_0x3e8899-0x1],{cdnUrl:_0x22ea78,fileInfo:_0x3dc70d}=_0x6f0d29;if(!_0x22ea78||!_0x3dc70d)continue;const {width:_0x21ab4b,height:_0x55ff07}=_0x3dc70d['imageInfo'],_0x2e3d79=S(_0x22ea78,_0x21ab4b,_0x55ff07),_0x3f0c5b=C(_0x22ea78,_0x2e3d79['width']),_0x3fba79={'id':_0x3dc70d['uuid'],'type':'image','attributes':{'imageDimension':_0x2e3d79,..._0x3f0c5b}};this['_insertAsset'](_0x3fba79,_0x316871,_0x38f3e2);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2fffb2=>{'idle'===_0x2fffb2['detail']['status']&&!_0x2fffb2['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x8dfc78,_0x87a888,_0x3b006b){const _0x5e7e74=this['_editor']['model']['document']['selection'],_0x267a44=_0x5e7e74['getSelectedElement'](),_0x2995cb=!(!_0x267a44||!_0x267a44['is']('element','imageInline'));_0x3b006b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x8dfc78,_0x2995cb),_0x87a888||_0x3b006b['setSelection'](_0x5e7e74['getLastPosition']());}['_insertImage'](_0x535b59,_0x313781){const _0x49ca55=this['_editor'],{imageDimension:_0x168105,imageFallbackUrl:_0x5e4752,imageSources:_0x5bd638}=_0x535b59['attributes'];_0x49ca55['execute']('insertImage',{'imageType':_0x313781?'imageInline':null,'source':{'uploadcareImageId':_0x535b59['id'],'src':_0x5e4752,'sources':_0x5bd638,..._0x168105}});}}class w extends _0x185ba3{['_editing'];['_controller']=null;static get['requires'](){return[_0x2d59da,o];}constructor(_0xa5b5c6){super(_0xa5b5c6),this['_editing']=_0xa5b5c6['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xd62c12){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xd62c12);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x52e067,..._0x1928ce}){return _0x445187(_0x52e067,_0x1928ce);}static['getInfo'](_0x3b162d,_0xf7ce7b){return _0x2822be(_0x3b162d,_0xf7ce7b);}}class f extends _0x932a7a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1550cb,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3b03c6=this['editor'];if(!!!_0x3b03c6['config']['get']('uploadcare'))return;_0x3b03c6['plugins']['get'](_0x1550cb)['createUploadAdapter']=_0x4b2dc3=>new k(_0x4b2dc3,_0x3b03c6),_0x3b03c6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x396973,{imageElement:_0xfae679,data:_0x13f63b})=>{_0x3b03c6['model']['change'](_0x28d51a=>{_0x28d51a['setAttribute']('uploadcareImageId',_0x13f63b['uploadcareImageId'],_0xfae679);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1da339,_0x5aeac9){this['loader']=_0x1da339,this['editor']=_0x5aeac9,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x10f3a3=await this['loader']['file'];return j['upload']({'file':_0x10f3a3,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x364c78=>{_0x364c78&&_0x364c78['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x364c78['value']);}})['then'](async _0x4d2b9b=>{const {imageFallbackUrl:_0x334cda,imageSources:_0xf9fc1a}=C(_0x4d2b9b['cdnUrl'],_0x4d2b9b['imageInfo']['width']);return{'uploadcareImageId':_0x4d2b9b['uuid'],'default':_0x334cda,'sources':_0xf9fc1a};})['catch'](()=>{const _0x1667e9=t('Cannot\x20upload\x20file:')+('\x20'+_0x10f3a3['name']+'.');return Promise['reject'](_0x1667e9);});}['abort'](){this['controller']['abort']();}}class o extends _0x932a7a{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2d59da];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2f6c17){super(_0x2f6c17),this['ucContextId']=_0x41a347();}['init'](){const _0x5d0008=this['editor'];_0x5d0008['commands']['add']('uploadcare',new w(_0x5d0008));}['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 _0x2b2e62=_0x1fbd6c['document']['querySelector']('input[uploadcare-file-input]');_0x2b2e62&&_0x2b2e62['remove']();}),async function(_0x1e11ad){const _0x150d68=_0x1d7a5e([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x64561f=0x535f8c3a,_0x4db19f=0x5358f76a^_0x64561f,_0x7312cb=window[_0x1d7a5e([0x44,0x61,0x74,0x65])][_0x1d7a5e([0x6e,0x6f,0x77])](),_0x220ec3=_0x1e11ad[_0x1d7a5e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c0a6d=new window[(_0x1d7a5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37d625=>{_0x220ec3[_0x1d7a5e([0x6f,0x6e,0x63,0x65])](_0x1d7a5e([0x72,0x65,0x61,0x64,0x79]),_0x37d625);}),_0x9cd8e={[_0x1d7a5e([0x6b,0x74,0x79])]:_0x1d7a5e([0x45,0x43]),[_0x1d7a5e([0x75,0x73,0x65])]:_0x1d7a5e([0x73,0x69,0x67]),[_0x1d7a5e([0x63,0x72,0x76])]:_0x1d7a5e([0x50,0x2d,0x32,0x35,0x36]),[_0x1d7a5e([0x78])]:_0x1d7a5e([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]),[_0x1d7a5e([0x79])]:_0x1d7a5e([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]),[_0x1d7a5e([0x61,0x6c,0x67])]:_0x1d7a5e([0x45,0x53,0x32,0x35,0x36])},_0x3200d4=_0x220ec3[_0x1d7a5e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1d7a5e([0x67,0x65,0x74])](_0x1d7a5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a4d36(){let _0x38e95e,_0x46137d=null,_0x45d136=null;try{if(_0x3200d4==_0x1d7a5e([0x47,0x50,0x4c]))return _0x1d7a5e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x38e95e=_0x8bceb8(),!_0x38e95e)return _0x1d7a5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x38e95e[_0x1d7a5e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x45d136=_0xc2f908(_0x38e95e[_0x1d7a5e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x38e95e[_0x1d7a5e([0x6a,0x74,0x69])])),await _0x5de715()?_0xa88f59()?_0x41351b()?_0x1d7a5e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xd4c71d()?(_0x38e95e[_0x1d7a5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d7a5e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x46137d=_0x400fc5(_0x1d7a5e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x38e95e[_0x1d7a5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d7a5e([0x74,0x72,0x69,0x61,0x6c])&&(_0x46137d=_0x400fc5(_0x1d7a5e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4afd74()):_0x1d7a5e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1d7a5e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1d7a5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1d7a5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x41351b(){const _0x2a8f2c=[_0x1d7a5e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1d7a5e([0x74,0x72,0x69,0x61,0x6c])][_0x1d7a5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38e95e[_0x1d7a5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7312cb/0x3e8:0xe10*_0x4db19f;return _0x38e95e[_0x1d7a5e([0x65,0x78,0x70])]<_0x2a8f2c;}function _0xa88f59(){const _0xa90c5b=_0x38e95e[_0x1d7a5e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xa90c5b&&(!!_0xa90c5b[_0x1d7a5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d7a5e([0x2a]))||!!_0xa90c5b[_0x1d7a5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d7a5e([0x55,0x50,0x4c,0x43])));}function _0xd4c71d(){const _0x1db7c1=_0x38e95e[_0x1d7a5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1db7c1||0x0==_0x1db7c1[_0x1d7a5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xeee953}=new URL(window[_0x1d7a5e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1db7c1[_0x1d7a5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xeee953))return!0x0;const _0x3361e5=_0xeee953[_0x1d7a5e([0x73,0x70,0x6c,0x69,0x74])](_0x1d7a5e([0x2e]));return _0x1db7c1[_0x1d7a5e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c53cd=>_0x4c53cd[_0x1d7a5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d7a5e([0x2a])))[_0x1d7a5e([0x6d,0x61,0x70])](_0x255dae=>_0x255dae[_0x1d7a5e([0x73,0x70,0x6c,0x69,0x74])](_0x1d7a5e([0x2e])))[_0x1d7a5e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5eb0b4=>_0x5eb0b4[_0x1d7a5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3361e5[_0x1d7a5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d7a5e([0x6d,0x61,0x70])](_0xd3844e=>Array(_0x3361e5[_0x1d7a5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xd3844e[_0x1d7a5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d7a5e([0x66,0x69,0x6c,0x6c])](_0xd3844e[0x0]===_0x1d7a5e([0x2a])?_0x1d7a5e([0x2a]):'')[_0x1d7a5e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xd3844e))[_0x1d7a5e([0x73,0x6f,0x6d,0x65])](_0x4cdb6c=>_0x3361e5[_0x1d7a5e([0x65,0x76,0x65,0x72,0x79])]((_0x427873,_0x518f05)=>_0x4cdb6c[_0x518f05]===_0x427873||_0x4cdb6c[_0x518f05]===_0x1d7a5e([0x2a])));}function _0x4afd74(){return _0x46137d&&_0x45d136?new window[(_0x1d7a5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d7878,_0x1a8561)=>{_0x46137d[_0x1d7a5e([0x74,0x68,0x65,0x6e])](_0x2d7878,_0x1a8561),_0x45d136[_0x1d7a5e([0x74,0x68,0x65,0x6e])](_0x344add=>{_0x344add!=_0x1d7a5e([0x56,0x61,0x6c,0x69,0x64])&&_0x2d7878(_0x344add);},_0x1a8561);}):_0x46137d||_0x45d136||_0x1d7a5e([0x56,0x61,0x6c,0x69,0x64]);}}function _0xc2f908(_0x2821ee,_0x4d78fa){return new window[(_0x1d7a5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x150d14=>{if(_0x1e7a40())return _0x150d14(_0x1d7a5e([0x56,0x61,0x6c,0x69,0x64]));_0x21bfcc(),_0x220ec3[_0x1d7a5e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1d7a5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c0d1b=!0x1;const _0x40c613=_0x41a347();function _0x49961b(_0x4e4ef6){return!!_0x4e4ef6&&(typeof _0x4e4ef6===_0x1d7a5e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4e4ef6===_0x1d7a5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4e4ef6[_0x1d7a5e([0x74,0x68,0x65,0x6e])]===_0x1d7a5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4e4ef6[_0x1d7a5e([0x63,0x61,0x74,0x63,0x68])]===_0x1d7a5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x114db6(_0x36543f){_0x385e1f(_0x36543f)[_0x1d7a5e([0x74,0x68,0x65,0x6e])](_0x34be7b=>{if(!_0x34be7b||_0x34be7b[_0x1d7a5e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1d7a5e([0x6f,0x6b]))return _0x1d7a5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x196810(_0x5172a7(_0x40c613+_0x4d78fa))!=_0x34be7b[_0x1d7a5e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1d7a5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1d7a5e([0x56,0x61,0x6c,0x69,0x64]);})[_0x1d7a5e([0x74,0x68,0x65,0x6e])](_0x11e51e=>(_0x44915d(),_0x11e51e),()=>{const _0x39492e=_0x361cb();return null==_0x39492e?(_0x44915d(),_0x1d7a5e([0x56,0x61,0x6c,0x69,0x64])):_0x1d7a5e(_0x7312cb-_0x39492e>(0x7753083a^_0x64561f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1d7a5e([0x74,0x68,0x65,0x6e])](_0x150d14)[_0x1d7a5e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x150d14(_0x1d7a5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x567a12=0x536962ba^_0x64561f;function _0x44915d(){const _0x504279=_0x1d7a5e([0x6c,0x6c,0x63,0x74,0x2d])+_0x196810(_0x5172a7(_0x2821ee)),_0x4a231b=_0x1c10cc(_0x196810(window[_0x1d7a5e([0x4d,0x61,0x74,0x68])][_0x1d7a5e([0x63,0x65,0x69,0x6c])](_0x7312cb/_0x567a12)));window[_0x1d7a5e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d7a5e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x504279,_0x4a231b);}function _0x361cb(){const _0x31ceaa=_0x1d7a5e([0x6c,0x6c,0x63,0x74,0x2d])+_0x196810(_0x5172a7(_0x2821ee)),_0x347212=window[_0x1d7a5e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d7a5e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31ceaa);return _0x347212?window[_0x1d7a5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c10cc(_0x347212),0x10)*_0x567a12:null;}function _0x385e1f(_0x26d0ac){return new window[(_0x1d7a5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x558ede,_0x24627a)=>{_0x26d0ac[_0x1d7a5e([0x74,0x68,0x65,0x6e])](_0x558ede,_0x24627a),window[_0x1d7a5e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24627a,0x535e58fa^_0x64561f);});}}_0x220ec3[_0x1d7a5e([0x6f,0x6e])](_0x1d7a5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x502c0b,_0x1e4bc7)=>{if(_0x1e4bc7[0x0]!=_0x2821ee)return _0x150d14(_0x1d7a5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1e4bc7[0x1]={..._0x1e4bc7[0x1],[_0x1d7a5e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x40c613};},{[_0x1d7a5e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d7a5e([0x68,0x69,0x67,0x68])}),_0x220ec3[_0x1d7a5e([0x6f,0x6e])](_0x1d7a5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5d8992=>{_0x49961b(_0x5d8992[_0x1d7a5e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c0d1b=!0x0,_0x114db6(_0x5d8992[_0x1d7a5e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1d7a5e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d7a5e([0x6c,0x6f,0x77])}),_0x5c0a6d[_0x1d7a5e([0x74,0x68,0x65,0x6e])](()=>{_0x2c0d1b||_0x150d14(_0x1d7a5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e7a40(){return _0x220ec3[_0x1d7a5e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d7a5e([0x76,0x69,0x65,0x77])][_0x1d7a5e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1d7a5e([0x61,0x75,0x74,0x6f]);}function _0x21bfcc(){_0x220ec3[_0x1d7a5e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d7a5e([0x76,0x69,0x65,0x77])][_0x1d7a5e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d7a5e([0x61,0x75,0x74,0x6f]);}}function _0x400fc5(_0x131e3f){const _0x33e9bf=[new window[(_0x1d7a5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32d51e=>setTimeout(_0x32d51e,0x5356b2f6^_0x64561f)),_0x5c0a6d[_0x1d7a5e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1d7a5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x227108=>{let _0x926a58=0x0;_0x220ec3[_0x1d7a5e([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d7a5e([0x6f,0x6e])](_0x1d7a5e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5b25d5,_0x1b1ab1)=>{_0x1b1ab1[0x0][_0x1d7a5e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x926a58++,_0x926a58==(0x535f8dc2^_0x64561f)&&(_0x227108(),_0x5b25d5[_0x1d7a5e([0x6f,0x66,0x66])]());});}))];return window[_0x1d7a5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d7a5e([0x72,0x61,0x63,0x65])](_0x33e9bf)[_0x1d7a5e([0x74,0x68,0x65,0x6e])](()=>_0x131e3f);}async function _0x24d660(){await _0x5c0a6d,_0x220ec3[_0x1d7a5e([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d7a5e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x24c23e,_0x220ec3[_0x1d7a5e([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d7a5e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x24c23e,_0x220ec3[_0x1d7a5e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1d7a5e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4873f4(_0x147752){const _0x331e6f=_0xf8330f();_0x220ec3[_0x331e6f]=_0x1d7a5e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x147752,_0x147752!=_0x1d7a5e([0x56,0x61,0x6c,0x69,0x64])&&_0x24d660();}function _0xf8330f(){const _0x9d7e96=window[_0x1d7a5e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1d7a5e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1d7a5e([0x6e,0x6f,0x77])]())[_0x1d7a5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1d7a5e([0x2e]),'');let _0x476c5d=_0x1d7a5e([0x68]);for(let _0x26da97=0x0;_0x26da97<_0x9d7e96[_0x1d7a5e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26da97+=0x2){let _0x28c0c6=window[_0x1d7a5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9d7e96[_0x1d7a5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26da97,_0x26da97+0x2));_0x28c0c6>=_0x150d68[_0x1d7a5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x28c0c6-=_0x150d68[_0x1d7a5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x476c5d+=_0x150d68[_0x28c0c6];}return _0x476c5d;}function _0x8bceb8(){const _0x381d9c=_0x3200d4[_0x1d7a5e([0x73,0x70,0x6c,0x69,0x74])](_0x1d7a5e([0x2e]));if(0x3!=_0x381d9c[_0x1d7a5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1216a6(_0x381d9c[0x1]);function _0x1216a6(_0x3f4f15){const _0x568d23=_0x5477d9(_0x3f4f15);return _0x568d23&&_0x263268()?_0x568d23:null;function _0x263268(){const _0xbb9e5b=_0x568d23[_0x1d7a5e([0x6a,0x74,0x69])],_0x1941d9=window[_0x1d7a5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbb9e5b[_0x1d7a5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbb9e5b[_0x1d7a5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1f5269={..._0x568d23,[_0x1d7a5e([0x6a,0x74,0x69])]:_0xbb9e5b[_0x1d7a5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xbb9e5b[_0x1d7a5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1f5269[_0x1d7a5e([0x76,0x63])],_0x5172a7(_0x1f5269)==_0x1941d9;}}}async function _0x5de715(){let _0x39f257=!0x0;try{const _0x4d036c=_0x3200d4[_0x1d7a5e([0x73,0x70,0x6c,0x69,0x74])](_0x1d7a5e([0x2e])),[_0x4192a7,_0x4cdcb3,_0x251812]=_0x4d036c;return _0x2f8e1e(_0x4192a7),await _0x113159(_0x4192a7,_0x4cdcb3,_0x251812),_0x39f257;}catch{return!0x1;}function _0x2f8e1e(_0x1bccd0){const _0xb3481f=_0x5477d9(_0x1bccd0);_0xb3481f&&_0xb3481f[_0x1d7a5e([0x61,0x6c,0x67])]==_0x1d7a5e([0x45,0x53,0x32,0x35,0x36])||(_0x39f257=!0x1);}async function _0x113159(_0xecc273,_0x5db3e7,_0x156eea){const _0x574098=window[_0x1d7a5e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1d7a5e([0x66,0x72,0x6f,0x6d])](_0x138835(_0x156eea),_0x7bcc7a=>_0x7bcc7a[_0x1d7a5e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x34a2df=new window[(_0x1d7a5e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1d7a5e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xecc273+_0x1d7a5e([0x2e])+_0x5db3e7),_0x3e089f=window[_0x1d7a5e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1d7a5e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3e089f)return;const _0x103916=await _0x3e089f[_0x1d7a5e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1d7a5e([0x6a,0x77,0x6b]),_0x9cd8e,{[_0x1d7a5e([0x6e,0x61,0x6d,0x65])]:_0x1d7a5e([0x45,0x43,0x44,0x53,0x41]),[_0x1d7a5e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1d7a5e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1d7a5e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3e089f[_0x1d7a5e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1d7a5e([0x6e,0x61,0x6d,0x65])]:_0x1d7a5e([0x45,0x43,0x44,0x53,0x41]),[_0x1d7a5e([0x68,0x61,0x73,0x68])]:{[_0x1d7a5e([0x6e,0x61,0x6d,0x65])]:_0x1d7a5e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x103916,_0x574098,_0x34a2df)||(_0x39f257=!0x1);}}function _0x5477d9(_0xdc3545){return _0xdc3545[_0x1d7a5e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1d7a5e([0x65,0x79]))?JSON[_0x1d7a5e([0x70,0x61,0x72,0x73,0x65])](_0x138835(_0xdc3545)):null;}function _0x138835(_0x58d98f){return window[_0x1d7a5e([0x61,0x74,0x6f,0x62])](_0x58d98f[_0x1d7a5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1d7a5e([0x2b]))[_0x1d7a5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1d7a5e([0x2f])));}function _0x5172a7(_0xb24d66){let _0x11ff31=0x1505;function _0x2e0222(_0x2e07b9){for(let _0x2796f8=0x0;_0x2796f8<_0x2e07b9[_0x1d7a5e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2796f8++){const _0x478fad=_0x2e07b9[_0x1d7a5e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2796f8);_0x11ff31=(_0x11ff31<<0x5)+_0x11ff31+_0x478fad,_0x11ff31&=_0x11ff31;}}function _0x1584ad(_0x1ba6c1){Array[_0x1d7a5e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1ba6c1)?_0x1ba6c1[_0x1d7a5e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1584ad):_0x1ba6c1&&typeof _0x1ba6c1==_0x1d7a5e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1d7a5e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1ba6c1)[_0x1d7a5e([0x73,0x6f,0x72,0x74])]()[_0x1d7a5e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4d7e81,_0x1b51ef])=>{_0x2e0222(_0x4d7e81),_0x1584ad(_0x1b51ef);}):_0x2e0222(window[_0x1d7a5e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1ba6c1));}return _0x1584ad(_0xb24d66),_0x11ff31>>>0x0;}function _0x196810(_0x25e04f){return _0x25e04f[_0x1d7a5e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1d7a5e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1d7a5e([0x30]));}function _0x1c10cc(_0x46f28f){return _0x46f28f[_0x1d7a5e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1d7a5e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1d7a5e([0x6a,0x6f,0x69,0x6e])]('');}function _0x24c23e(){}function _0x1d7a5e(_0x5366df){return _0x5366df['map'](_0x2fd32c=>String['fromCharCode'](_0x2fd32c))['join']('');}_0x4873f4(await _0x4a4d36());}(this);}['_initSchema'](){const _0x3fcc7c=this['editor']['model']['schema'];_0x3fcc7c['isRegistered']('imageBlock')&&_0x3fcc7c['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3fcc7c['isRegistered']('imageInline')&&_0x3fcc7c['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x335d72=this['editor'];_0x335d72['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x335d72['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xf54a41=>_0xf54a41['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x55261e=_0x335d72['commands']['get']('replaceImageSource');_0x55261e&&this['listenTo'](_0x55261e,'cleanupImage',(_0x3afa9f,[_0x19bbac,_0x478986])=>{_0x19bbac['removeAttribute']('uploadcareImageId',_0x478986);});}['_initConfig'](){const _0x3af2de=this['editor']['config']['get']('uploadcare.uploader')||{},_0x49b2a6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x356aa6(_0x1fbd6c['document'],'uc-config',{..._0x3af2de,'pubkey':_0x49b2a6,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x5ba432=>{if('closeMax'==_0x5ba432)return'#uc-icon-arrow-down';},_0x1fbd6c['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x356aa6(_0x1fbd6c['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1fbd6c['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1ea4e8=this['editor']['commands']['get']('insertImage');_0x1ea4e8&&this['listenTo'](_0x1ea4e8,'execute',()=>{const _0x22fbb0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x22fbb0&&_0x22fbb0['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x22fbb0);});});const _0x116e12=this['editor']['commands']['get']('uploadcareImageReplace');_0x116e12&&this['listenTo'](_0x116e12,'execute',()=>{const _0x192b2a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x192b2a&&_0x192b2a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x192b2a);});});}}class tt extends _0x932a7a{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3391b6){super(_0x3391b6),_0x3391b6['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3fe783['defineComponents'](_0x3fe783),this['_defineLocale']();}['_defineLocale'](){const _0xd207b1=this['editor']['config']['get']('uploadcare.locale'),_0x2bdb0a=this['editor']['locale']['contentLanguage'];_0xd207b1&&_0x3fe783['defineLocale'](_0x2bdb0a,_0xd207b1);}}class ii extends _0x5362f3{constructor(_0x4a3085){super(_0x4a3085);const t=_0x4a3085['t'],_0x1fce3a=this['bindTemplate'],_0x512572=new _0x1a6f73();_0x512572['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':[_0x512572,{'text':_0x1fce3a['to']('imageUploadProgress',_0x500200=>t('Loading\x20image...')+'\x20('+(_0x500200||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x5362f3{constructor(_0x361af6){super(_0x361af6);const t=_0x361af6['t'];this['set']('errorType',null);const _0x6d7ebb=new _0x37d1f3(_0x361af6);_0x6d7ebb['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x6d7ebb['withText']=!0x0,_0x6d7ebb['class']='ck-button-action',_0x6d7ebb['on']('execute',()=>{this['fire']('retry');}),_0x6d7ebb['bind']('isVisible')['to'](this,'errorType',_0x44af9b=>'NotFound'!==_0x44af9b);const _0x53505d=new _0x138e2d();_0x53505d['content']=_0x3b4bf7,_0x53505d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5acb3c=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':[_0x53505d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5acb3c['to']('errorType',_0x4efc26=>t('NotFound'!==_0x4efc26?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x6d7ebb]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x5362f3{constructor(_0x58ffc5,_0x1bd0ea){super(_0x58ffc5);const _0x26e6fb=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1bd0ea,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x26e6fb['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x19f55f,_0x38d39e,_0x55ef4a){super(_0x19f55f),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x19f55f),this['_errorView']=new ti(_0x19f55f),this['_editingView']=new ei(_0x19f55f,_0x55ef4a),this['_focusableView']=new _0x5362f3(_0x19f55f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x38d39e),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'],_0x49ab87=>{this['_addUploadcareImageEditorListeners'](_0x49ab87);});}),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'](_0x5181a2,_0x2a97a8){const _0x5df3fc='uc-cloud-image-editor',_0x5eeadc=_0x5181a2['querySelector'](_0x5df3fc);if(_0x5eeadc)return _0x2a97a8(_0x5eeadc);const _0x4c09c8=new MutationObserver(_0x260c6b=>{const _0x492592=_0x260c6b['filter'](_0x3b041b=>_0x3b041b['target']===_0x5181a2&&_0x3b041b['addedNodes']['length']>0x0&&_0x3b041b['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5df3fc);_0x492592['length']&&(_0x4c09c8['disconnect'](),_0x2a97a8(_0x492592[0x0]['addedNodes'][0x0]));});_0x4c09c8['observe'](_0x5181a2,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x9359b5){_0x9359b5['addEventListener']('apply',_0x412c7c=>{this['fire']('apply',{'imageSrc':_0x412c7c['detail']['cdnUrl']});}),_0x9359b5['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
25
+ _0x583d83(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5e874d,_0x44f274,_0x1c8846){super(),this['_editor']=_0x5e874d,this['_dialog']=_0x44f274,this['_imageElement']=_0x1c8846,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 _0x13a202=this['_imageElement'],_0x54ebba=_0x13a202['getAttribute']('uploadcareImageId'),_0x5c8bf1=_0x13a202['getAttribute']('src');if(_0x54ebba)await this['_loadImageInfo'](_0x54ebba,_0x5c8bf1);else{if(this['_imageCache']['has'](_0x5c8bf1)){const _0xfa3a0a=this['_imageCache']['get'](_0x5c8bf1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xfa3a0a['url'],this['imageDimension']=_0xfa3a0a['dimension'],this['imageId']=_0xfa3a0a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x10f0f0}=this['_editor'],t=_0x10f0f0['t'],_0x5130c1=new X(_0x10f0f0,this['imageStatus'],this['_attributes']);_0x5130c1['bind']('status')['to'](this,'imageStatus'),_0x5130c1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5130c1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5130c1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5130c1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x45e45a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5130c1,'position':_0x3c7aeb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5130c1['focus']();},'onHide':()=>{_0x5130c1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2286d9=>!A(_0x2286d9,_0x5130c1['element'])}});}['_loadImageInfo'](_0x2f3589,_0x97f14e){return j['getInfo'](_0x2f3589,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x32d2b0=>{const {width:_0x2346dc,height:_0x277c83}=_0x32d2b0['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x97f14e,this['imageDimension']={'width':_0x2346dc,'height':_0x277c83},this['imageId']=_0x2f3589;})['catch'](_0x866e5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x866e5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5669f6,_0x25131d){return this['_getImageAsFile'](_0x5669f6)['then'](_0x1d193f=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x25131d['signal'],'file':_0x1d193f,'onProgress':_0x257c9e=>{_0x257c9e&&_0x257c9e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x257c9e['value']));}}))['then'](_0x33067e=>{const {width:_0x31a15b,height:_0x3d9209}=_0x33067e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x33067e['cdnUrl'],this['imageDimension']={'width':_0x31a15b,'height':_0x3d9209},this['imageId']=_0x33067e['uuid'],this['imageUploadProgress']=null;const _0x128d47=_0x5669f6['getAttribute']('src');this['_imageCache']['set'](_0x128d47,{'id':_0x33067e['uuid'],'url':_0x33067e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x52a2ec=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x52a2ec['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2fa2b3,_0x61ec73){_0x2fa2b3['on']('apply',(_0x5d4eee,_0x448b93)=>{this['_replaceImage'](_0x61ec73,_0x448b93['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2fa2b3['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2fa2b3['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2c29e1,_0x3c0fb4,_0x4a217b){const _0xb5d35a=this['_editor'],{width:_0x338f70,height:_0x1836c2}=S(_0x3c0fb4,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2b9d4f,imageSources:_0x205510}=C(_0x3c0fb4,_0x338f70);_0xb5d35a['model']['change'](_0x5a345f=>{if('$graveyard'===_0x2c29e1['root']['rootName']){_0xb5d35a['execute']('insertImage',{'imageType':_0x2c29e1['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2c29e1['getAttributes']()),'uploadcareImageId':_0x4a217b,'src':_0x2b9d4f,'sources':_0x205510,'width':_0x338f70,'height':_0x1836c2}});const _0xc894a0=_0x2c29e1['getChildren']();_0x2c29e1=_0xb5d35a['model']['document']['selection']['getSelectedElement']();for(const _0x33d678 of _0xc894a0)_0x5a345f['append'](_0x5a345f['cloneElement'](_0x33d678),_0x2c29e1);}else _0x5a345f['setSelection'](_0x2c29e1,'on'),_0xb5d35a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2c29e1['getAttributes']()),'uploadcareImageId':_0x4a217b,'src':_0x2b9d4f,'sources':_0x205510,'width':_0x338f70,'height':_0x1836c2},_0x2c29e1);_0x5a345f['setSelection'](_0x2c29e1,'on');});}async['_getImageAsFile'](_0x3c3e2f){const _0x27c57a=_0x1fbd6c['window'],_0xea9ea=_0x1fbd6c['document']['location']['href'],_0x18df4b=new _0x27c57a['URL'](_0x3c3e2f['getAttribute']('src'),_0xea9ea);if('data:'===_0x18df4b['protocol']){const _0x2d3b29=_0x18df4b['href']['split'](','),_0x14ae5f=_0x2d3b29[0x0]['match'](/:(.*?);/)[0x1],_0x2043dd=_0x14ae5f['split']('/')[0x1],_0xf20a80=_0x27c57a['atob'](_0x2d3b29[_0x2d3b29['length']-0x1]);let _0x173621=_0xf20a80['length'];const _0x42635e=new _0x27c57a['Uint8Array'](_0x173621);for(;_0x173621--;)_0x42635e[_0x173621]=_0xf20a80['charCodeAt'](_0x173621);return new _0x27c57a['File']([_0x42635e],'image.'+_0x2043dd,{'type':_0x14ae5f});}const _0x5a84ba=_0x18df4b['href']['split']('/'),_0x4a4afb=_0x5a84ba[_0x5a84ba['length']-0x1],_0x1ee0e1=_0x4a4afb['split']('.')[0x1];return _0x27c57a['fetch'](_0x18df4b['href'])['then'](_0x1d5dc7=>_0x1d5dc7['clone']()['blob']())['then'](_0x1970bc=>new _0x27c57a['File']([_0x1970bc],_0x4a4afb,{'type':'image/'+_0x1ee0e1}));}}class Q extends _0x185ba3{['imageEditController'];static get['requires'](){return[_0x2d59da];}['_isEditable'];constructor(_0x2c6a04){super(_0x2c6a04),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4d171a){const _0x20fcd7=z(_0x4d171a);return _0x5f1cfc=>!(!_0x5f1cfc||!_0x5f1cfc['is']('element','imageBlock')&&!_0x5f1cfc['is']('element','imageInline'))&&(!!_0x5f1cfc['hasAttribute']('uploadcareImageId')||!!_0x5f1cfc['hasAttribute']('src')&&_0x20fcd7(_0x5f1cfc['getAttribute']('src')));}(_0x2c6a04['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x519f6d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x519f6d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2127ea=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2127ea&&(_0x2127ea['is']('element','imageBlock')||_0x2127ea['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x2d59da),_0x2127ea),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x185ba3{['refresh'](){const _0x39c44f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x39c44f&&(_0x39c44f['is']('element','imageBlock')||_0x39c44f['is']('element','imageInline')));}['execute'](_0x3a6d8e){const _0x42b764=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3cef82=>{_0x3cef82['setAttributes'](_0x3a6d8e,_0x42b764),_0x3cef82['removeAttribute']('srcset',_0x42b764),_0x3cef82['removeAttribute']('sizes',_0x42b764);});}}class m extends _0x932a7a{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x17e9f3,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5e7505}=this;_0x5e7505['commands']['add']('uploadcareImageEdit',new Q(_0x5e7505)),_0x5e7505['commands']['add']('uploadcareImageReplace',new V(_0x5e7505));}}class g extends _0x932a7a{['_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 _0x5eb8e4=this['editor'];_0x5eb8e4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5d460d=>{const _0x2ed175=_0x5eb8e4['commands']['get']('uploadcareImageEdit'),_0x434774=new _0x37d1f3(_0x5d460d),t=_0x5d460d['t'];return _0x434774['set']({'icon':_0x45e45a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x434774['bind']('isEnabled')['to'](_0x2ed175),_0x434774['bind']('isOn')['to'](_0x2ed175,'isActive'),this['listenTo'](_0x434774,'execute',()=>{_0x5eb8e4['execute']('uploadcareImageEdit'),_0x5eb8e4['editing']['view']['focus']();}),_0x434774;}),this['_initConfig']();}['_initConfig'](){const _0x2f28f5=_0x356aa6(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2f28f5),this['listenTo'](this['editor'],'destroy',()=>{_0x2f28f5['remove']();});}}class et extends _0x932a7a{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20251207.0",
3
+ "version": "0.0.0-nightly-20251208.0",
4
4
  "description": "Uploadcare feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,14 +23,14 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251207.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251207.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251207.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251207.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251207.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251207.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251207.0",
33
- "ckeditor5": "0.0.0-nightly-20251207.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251208.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251208.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251208.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251208.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251208.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251208.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251208.0",
33
+ "ckeditor5": "0.0.0-nightly-20251208.0",
34
34
  "@uploadcare/file-uploader": "1.19.4",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x430e61=_0x108d;(function(_0x23be2b,_0x3800b3){const _0x3ba0d3=_0x108d,_0xb8868d=_0x23be2b();while(!![]){try{const _0x5223db=-parseInt(_0x3ba0d3(0x227))/0x1*(parseInt(_0x3ba0d3(0x233))/0x2)+parseInt(_0x3ba0d3(0x204))/0x3+parseInt(_0x3ba0d3(0x1fc))/0x4*(parseInt(_0x3ba0d3(0x1fd))/0x5)+-parseInt(_0x3ba0d3(0x1ef))/0x6+parseInt(_0x3ba0d3(0x1e9))/0x7+parseInt(_0x3ba0d3(0x209))/0x8*(-parseInt(_0x3ba0d3(0x223))/0x9)+-parseInt(_0x3ba0d3(0x21b))/0xa*(-parseInt(_0x3ba0d3(0x224))/0xb);if(_0x5223db===_0x3800b3)break;else _0xb8868d['push'](_0xb8868d['shift']());}catch(_0x599e76){_0xb8868d['push'](_0xb8868d['shift']());}}}(_0x5ec0,0x9fd5d));function _0x108d(_0x37adda,_0x11b75d){const _0x5ec001=_0x5ec0();return _0x108d=function(_0x108de4,_0x85eb77){_0x108de4=_0x108de4-0x1df;let _0x720a2a=_0x5ec001[_0x108de4];return _0x720a2a;},_0x108d(_0x37adda,_0x11b75d);}import{Plugin as _0x55e3fa}from'ckeditor5/src/core.js';import{Dialog as _0x3b80eb}from'ckeditor5/src/ui.js';import{createElement as _0x3a2a41,global as _0xb748f1,uid as _0x49e8bc}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x169ac1}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5db7a4}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x27a714}from'./utils/editingutils.js';export class UploadcareEditing extends _0x55e3fa{[_0x430e61(0x21c)]=null;[_0x430e61(0x22e)]=null;static get[_0x430e61(0x1f2)](){const _0x1645dd=_0x430e61;return _0x1645dd(0x1f4);}static get[_0x430e61(0x211)](){const _0x5a01d=_0x430e61;return[_0x5a01d(0x231),_0x5db7a4,_0x3b80eb];}static get[_0x430e61(0x20a)](){return!0x0;}static get[_0x430e61(0x21f)](){return!0x0;}[_0x430e61(0x213)];get[_0x430e61(0x21a)](){const _0x1e93db=_0x430e61;return this[_0x1e93db(0x21c)];}get[_0x430e61(0x228)](){const _0x21995b=_0x430e61;return this[_0x21995b(0x22e)];}constructor(_0x1e1970){const _0x4483c0=_0x430e61;super(_0x1e1970),this[_0x4483c0(0x213)]=_0x49e8bc();}[_0x430e61(0x1ff)](){const _0x3e6bc2=_0x430e61,_0x2fc2f7=this[_0x3e6bc2(0x20e)];_0x2fc2f7[_0x3e6bc2(0x222)][_0x3e6bc2(0x1df)](_0x3e6bc2(0x22b),new _0x169ac1(_0x2fc2f7));}[_0x430e61(0x202)](){const _0x11cbcf=_0x430e61;this[_0x11cbcf(0x232)](),this[_0x11cbcf(0x1f7)](),this[_0x11cbcf(0x20b)](),this[_0x11cbcf(0x200)](),this[_0x11cbcf(0x1f3)](),this[_0x11cbcf(0x1e2)](this[_0x11cbcf(0x20e)],_0x11cbcf(0x1ec),()=>{const _0x561505=_0x11cbcf;this[_0x561505(0x21c)]&&(this[_0x561505(0x21c)][_0x561505(0x22c)](),this[_0x561505(0x21c)]=null),this[_0x561505(0x22e)]&&(this[_0x561505(0x22e)][_0x561505(0x22c)](),this[_0x561505(0x22e)]=null);const _0x31be14=_0xb748f1[_0x561505(0x225)][_0x561505(0x1f5)](_0x561505(0x220));_0x31be14&&_0x31be14[_0x561505(0x22c)]();}),async function(_0x5db3b3){const _0x4363e8=_0x3c2306([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x7c3f56=0x535f8c3a,_0x571b62=0x5358f702^_0x7c3f56,_0x928307=window[_0x3c2306([0x44,0x61,0x74,0x65])][_0x3c2306([0x6e,0x6f,0x77])](),_0x1ae8b2=_0x5db3b3[_0x3c2306([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3d92f7=new window[(_0x3c2306([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x304d3b=>{_0x1ae8b2[_0x3c2306([0x6f,0x6e,0x63,0x65])](_0x3c2306([0x72,0x65,0x61,0x64,0x79]),_0x304d3b);}),_0x4659b0={[_0x3c2306([0x6b,0x74,0x79])]:_0x3c2306([0x45,0x43]),[_0x3c2306([0x75,0x73,0x65])]:_0x3c2306([0x73,0x69,0x67]),[_0x3c2306([0x63,0x72,0x76])]:_0x3c2306([0x50,0x2d,0x32,0x35,0x36]),[_0x3c2306([0x78])]:_0x3c2306([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]),[_0x3c2306([0x79])]:_0x3c2306([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]),[_0x3c2306([0x61,0x6c,0x67])]:_0x3c2306([0x45,0x53,0x32,0x35,0x36])},_0xb40c57=_0x1ae8b2[_0x3c2306([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3c2306([0x67,0x65,0x74])](_0x3c2306([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x27f4e1(){let _0x5435f1,_0x32b2ab=null,_0x1e4431=null;try{if(_0xb40c57==_0x3c2306([0x47,0x50,0x4c]))return _0x3c2306([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5435f1=_0x5ea070(),!_0x5435f1)return _0x3c2306([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5435f1[_0x3c2306([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e4431=_0x4c716c(_0x5435f1[_0x3c2306([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5435f1[_0x3c2306([0x6a,0x74,0x69])])),await _0x9f30e0()?_0x18d5c3()?_0x5c0146()?_0x3c2306([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x422a94()?(_0x5435f1[_0x3c2306([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c2306([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x32b2ab=_0x2698ee(_0x3c2306([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5435f1[_0x3c2306([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c2306([0x74,0x72,0x69,0x61,0x6c])&&(_0x32b2ab=_0x2698ee(_0x3c2306([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3a2666()):_0x3c2306([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3c2306([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3c2306([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3c2306([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5c0146(){const _0x2f346d=[_0x3c2306([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3c2306([0x74,0x72,0x69,0x61,0x6c])][_0x3c2306([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5435f1[_0x3c2306([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x928307/0x3e8:0xe10*_0x571b62;return _0x5435f1[_0x3c2306([0x65,0x78,0x70])]<_0x2f346d;}function _0x18d5c3(){const _0x20d606=_0x5435f1[_0x3c2306([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x20d606&&(!!_0x20d606[_0x3c2306([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c2306([0x2a]))||!!_0x20d606[_0x3c2306([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c2306([0x55,0x50,0x4c,0x43])));}function _0x422a94(){const _0x4a2f9e=_0x108d,_0x280622=_0x5435f1[_0x3c2306([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x280622||0x0==_0x280622[_0x3c2306([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x354d75}=new URL(window[_0x3c2306([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4a2f9e(0x1e5)]);if(_0x280622[_0x3c2306([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x354d75))return!0x0;const _0x471b7b=_0x354d75[_0x3c2306([0x73,0x70,0x6c,0x69,0x74])](_0x3c2306([0x2e]));return _0x280622[_0x3c2306([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38ff24=>_0x38ff24[_0x3c2306([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c2306([0x2a])))[_0x3c2306([0x6d,0x61,0x70])](_0x2220b3=>_0x2220b3[_0x3c2306([0x73,0x70,0x6c,0x69,0x74])](_0x3c2306([0x2e])))[_0x3c2306([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c8cfc=>_0x3c8cfc[_0x3c2306([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x471b7b[_0x3c2306([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c2306([0x6d,0x61,0x70])](_0x48ac92=>Array(_0x471b7b[_0x3c2306([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x48ac92[_0x3c2306([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c2306([0x66,0x69,0x6c,0x6c])](_0x48ac92[0x0]===_0x3c2306([0x2a])?_0x3c2306([0x2a]):'')[_0x3c2306([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x48ac92))[_0x3c2306([0x73,0x6f,0x6d,0x65])](_0x73f8cf=>_0x471b7b[_0x3c2306([0x65,0x76,0x65,0x72,0x79])]((_0x2e5337,_0x11502b)=>_0x73f8cf[_0x11502b]===_0x2e5337||_0x73f8cf[_0x11502b]===_0x3c2306([0x2a])));}function _0x3a2666(){return _0x32b2ab&&_0x1e4431?new window[(_0x3c2306([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11ef19,_0x100a8f)=>{_0x32b2ab[_0x3c2306([0x74,0x68,0x65,0x6e])](_0x11ef19,_0x100a8f),_0x1e4431[_0x3c2306([0x74,0x68,0x65,0x6e])](_0x3c1ba8=>{_0x3c1ba8!=_0x3c2306([0x56,0x61,0x6c,0x69,0x64])&&_0x11ef19(_0x3c1ba8);},_0x100a8f);}):_0x32b2ab||_0x1e4431||_0x3c2306([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c716c(_0x8dd816,_0x2835db){return new window[(_0x3c2306([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cce24=>{if(_0x3bdb6e())return _0x2cce24(_0x3c2306([0x56,0x61,0x6c,0x69,0x64]));_0x3c4f09(),_0x1ae8b2[_0x3c2306([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3c2306([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x385569=!0x1;const _0x9fe790=_0x49e8bc();function _0x24c1d4(_0x3e2e72){return!!_0x3e2e72&&(typeof _0x3e2e72===_0x3c2306([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3e2e72===_0x3c2306([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3e2e72[_0x3c2306([0x74,0x68,0x65,0x6e])]===_0x3c2306([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3e2e72[_0x3c2306([0x63,0x61,0x74,0x63,0x68])]===_0x3c2306([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x51eb65(_0x1ba04f){_0x4e7b90(_0x1ba04f)[_0x3c2306([0x74,0x68,0x65,0x6e])](_0x3af236=>{if(!_0x3af236||_0x3af236[_0x3c2306([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3c2306([0x6f,0x6b]))return _0x3c2306([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3afb5(_0xd4afa5(_0x9fe790+_0x2835db))!=_0x3af236[_0x3c2306([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3c2306([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3c2306([0x56,0x61,0x6c,0x69,0x64]);})[_0x3c2306([0x74,0x68,0x65,0x6e])](_0x49be60=>(_0x1c3244(),_0x49be60),()=>{const _0x51c3be=_0x2c217d();return null==_0x51c3be?(_0x1c3244(),_0x3c2306([0x56,0x61,0x6c,0x69,0x64])):_0x3c2306(_0x928307-_0x51c3be>(0x7753083a^_0x7c3f56)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3c2306([0x74,0x68,0x65,0x6e])](_0x2cce24)[_0x3c2306([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2cce24(_0x3c2306([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3cc531=0x536962ba^_0x7c3f56;function _0x1c3244(){const _0x624768=_0x3c2306([0x6c,0x6c,0x63,0x74,0x2d])+_0x3afb5(_0xd4afa5(_0x8dd816)),_0x4e8f67=_0x180265(_0x3afb5(window[_0x3c2306([0x4d,0x61,0x74,0x68])][_0x3c2306([0x63,0x65,0x69,0x6c])](_0x928307/_0x3cc531)));window[_0x3c2306([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c2306([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x624768,_0x4e8f67);}function _0x2c217d(){const _0x2055d6=_0x3c2306([0x6c,0x6c,0x63,0x74,0x2d])+_0x3afb5(_0xd4afa5(_0x8dd816)),_0x4a9d9d=window[_0x3c2306([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c2306([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2055d6);return _0x4a9d9d?window[_0x3c2306([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x180265(_0x4a9d9d),0x10)*_0x3cc531:null;}function _0x4e7b90(_0x5d729b){return new window[(_0x3c2306([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8414f0,_0xa73845)=>{_0x5d729b[_0x3c2306([0x74,0x68,0x65,0x6e])](_0x8414f0,_0xa73845),window[_0x3c2306([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xa73845,0x535e58fa^_0x7c3f56);});}}_0x1ae8b2[_0x3c2306([0x6f,0x6e])](_0x3c2306([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb693ac,_0x2ccbdf)=>{if(_0x2ccbdf[0x0]!=_0x8dd816)return _0x2cce24(_0x3c2306([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2ccbdf[0x1]={..._0x2ccbdf[0x1],[_0x3c2306([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x9fe790};},{[_0x3c2306([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c2306([0x68,0x69,0x67,0x68])}),_0x1ae8b2[_0x3c2306([0x6f,0x6e])](_0x3c2306([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x277df4=>{_0x24c1d4(_0x277df4[_0x3c2306([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x385569=!0x0,_0x51eb65(_0x277df4[_0x3c2306([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3c2306([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c2306([0x6c,0x6f,0x77])}),_0x3d92f7[_0x3c2306([0x74,0x68,0x65,0x6e])](()=>{_0x385569||_0x2cce24(_0x3c2306([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3bdb6e(){return _0x1ae8b2[_0x3c2306([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c2306([0x76,0x69,0x65,0x77])][_0x3c2306([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3c2306([0x61,0x75,0x74,0x6f]);}function _0x3c4f09(){_0x1ae8b2[_0x3c2306([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c2306([0x76,0x69,0x65,0x77])][_0x3c2306([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c2306([0x61,0x75,0x74,0x6f]);}}function _0x2698ee(_0x191919){const _0x4cc39d=[new window[(_0x3c2306([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f415b=>setTimeout(_0x2f415b,0x5356b2f6^_0x7c3f56)),_0x3d92f7[_0x3c2306([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3c2306([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20a2a9=>{let _0x54ae85=0x0;_0x1ae8b2[_0x3c2306([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c2306([0x6f,0x6e])](_0x3c2306([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x196133,_0x3bf52f)=>{_0x3bf52f[0x0][_0x3c2306([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x54ae85++,_0x54ae85==(0x535f8dc2^_0x7c3f56)&&(_0x20a2a9(),_0x196133[_0x3c2306([0x6f,0x66,0x66])]());});}))];return window[_0x3c2306([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c2306([0x72,0x61,0x63,0x65])](_0x4cc39d)[_0x3c2306([0x74,0x68,0x65,0x6e])](()=>_0x191919);}async function _0x53c374(){await _0x3d92f7,_0x1ae8b2[_0x3c2306([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c2306([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xbda4e,_0x1ae8b2[_0x3c2306([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c2306([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xbda4e,_0x1ae8b2[_0x3c2306([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3c2306([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25a3da(_0x481d1a){const _0x1af0c0=_0x4f3de8();_0x1ae8b2[_0x1af0c0]=_0x3c2306([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x481d1a,_0x481d1a!=_0x3c2306([0x56,0x61,0x6c,0x69,0x64])&&_0x53c374();}function _0x4f3de8(){const _0x11ed2d=window[_0x3c2306([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3c2306([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3c2306([0x6e,0x6f,0x77])]())[_0x3c2306([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3c2306([0x2e]),'');let _0x389fe8=_0x3c2306([0x68]);for(let _0x40fb63=0x0;_0x40fb63<_0x11ed2d[_0x3c2306([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40fb63+=0x2){let _0x5cb9fc=window[_0x3c2306([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11ed2d[_0x3c2306([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40fb63,_0x40fb63+0x2));_0x5cb9fc>=_0x4363e8[_0x3c2306([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5cb9fc-=_0x4363e8[_0x3c2306([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x389fe8+=_0x4363e8[_0x5cb9fc];}return _0x389fe8;}function _0x5ea070(){const _0x2137ef=_0xb40c57[_0x3c2306([0x73,0x70,0x6c,0x69,0x74])](_0x3c2306([0x2e]));if(0x3!=_0x2137ef[_0x3c2306([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1f8d75(_0x2137ef[0x1]);function _0x1f8d75(_0x11b92b){const _0x3293c3=_0x40c5c8(_0x11b92b);return _0x3293c3&&_0x39c30c()?_0x3293c3:null;function _0x39c30c(){const _0x5782a8=_0x3293c3[_0x3c2306([0x6a,0x74,0x69])],_0x326648=window[_0x3c2306([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5782a8[_0x3c2306([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5782a8[_0x3c2306([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4dcd45={..._0x3293c3,[_0x3c2306([0x6a,0x74,0x69])]:_0x5782a8[_0x3c2306([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5782a8[_0x3c2306([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4dcd45[_0x3c2306([0x76,0x63])],_0xd4afa5(_0x4dcd45)==_0x326648;}}}async function _0x9f30e0(){let _0x4862b6=!0x0;try{const _0x2c213e=_0xb40c57[_0x3c2306([0x73,0x70,0x6c,0x69,0x74])](_0x3c2306([0x2e])),[_0x5746bf,_0x2c0c85,_0x1e0780]=_0x2c213e;return _0x418135(_0x5746bf),await _0xeed285(_0x5746bf,_0x2c0c85,_0x1e0780),_0x4862b6;}catch{return!0x1;}function _0x418135(_0x268d39){const _0x36f1c9=_0x40c5c8(_0x268d39);_0x36f1c9&&_0x36f1c9[_0x3c2306([0x61,0x6c,0x67])]==_0x3c2306([0x45,0x53,0x32,0x35,0x36])||(_0x4862b6=!0x1);}async function _0xeed285(_0x1d0d99,_0x55b6fe,_0x1ad486){const _0x32a1a3=window[_0x3c2306([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3c2306([0x66,0x72,0x6f,0x6d])](_0xfe21f2(_0x1ad486),_0x4236f1=>_0x4236f1[_0x3c2306([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x591d70=new window[(_0x3c2306([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3c2306([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d0d99+_0x3c2306([0x2e])+_0x55b6fe),_0x3b5a3e=window[_0x3c2306([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3c2306([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3b5a3e)return;const _0x58b041=await _0x3b5a3e[_0x3c2306([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3c2306([0x6a,0x77,0x6b]),_0x4659b0,{[_0x3c2306([0x6e,0x61,0x6d,0x65])]:_0x3c2306([0x45,0x43,0x44,0x53,0x41]),[_0x3c2306([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3c2306([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3c2306([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3b5a3e[_0x3c2306([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3c2306([0x6e,0x61,0x6d,0x65])]:_0x3c2306([0x45,0x43,0x44,0x53,0x41]),[_0x3c2306([0x68,0x61,0x73,0x68])]:{[_0x3c2306([0x6e,0x61,0x6d,0x65])]:_0x3c2306([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x58b041,_0x32a1a3,_0x591d70)||(_0x4862b6=!0x1);}}function _0x40c5c8(_0x352514){return _0x352514[_0x3c2306([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3c2306([0x65,0x79]))?JSON[_0x3c2306([0x70,0x61,0x72,0x73,0x65])](_0xfe21f2(_0x352514)):null;}function _0xfe21f2(_0x9ccfc1){return window[_0x3c2306([0x61,0x74,0x6f,0x62])](_0x9ccfc1[_0x3c2306([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3c2306([0x2b]))[_0x3c2306([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3c2306([0x2f])));}function _0xd4afa5(_0x47cde1){let _0xe85713=0x1505;function _0x9c790a(_0x49fe49){for(let _0x516cf6=0x0;_0x516cf6<_0x49fe49[_0x3c2306([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x516cf6++){const _0x1b1bc6=_0x49fe49[_0x3c2306([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x516cf6);_0xe85713=(_0xe85713<<0x5)+_0xe85713+_0x1b1bc6,_0xe85713&=_0xe85713;}}function _0x3694bf(_0x2fafa5){Array[_0x3c2306([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2fafa5)?_0x2fafa5[_0x3c2306([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3694bf):_0x2fafa5&&typeof _0x2fafa5==_0x3c2306([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3c2306([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2fafa5)[_0x3c2306([0x73,0x6f,0x72,0x74])]()[_0x3c2306([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x164e88,_0xee8775])=>{_0x9c790a(_0x164e88),_0x3694bf(_0xee8775);}):_0x9c790a(window[_0x3c2306([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2fafa5));}return _0x3694bf(_0x47cde1),_0xe85713>>>0x0;}function _0x3afb5(_0xb47fbf){return _0xb47fbf[_0x3c2306([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3c2306([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3c2306([0x30]));}function _0x180265(_0x1392a6){return _0x1392a6[_0x3c2306([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3c2306([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3c2306([0x6a,0x6f,0x69,0x6e])]('');}function _0xbda4e(){}function _0x3c2306(_0x3a21a3){const _0x224ba9=_0x108d;return _0x3a21a3[_0x224ba9(0x201)](_0x17faf5=>String[_0x224ba9(0x1f1)](_0x17faf5))[_0x224ba9(0x217)]('');}_0x25a3da(await _0x27f4e1());}(this);}[_0x430e61(0x232)](){const _0x4ec3ca=_0x430e61,_0x1b1ce0=this[_0x4ec3ca(0x20e)][_0x4ec3ca(0x208)][_0x4ec3ca(0x1f0)];_0x1b1ce0[_0x4ec3ca(0x219)](_0x4ec3ca(0x1fa))&&_0x1b1ce0[_0x4ec3ca(0x1e8)](_0x4ec3ca(0x1fa),{'allowAttributes':[_0x4ec3ca(0x234)]}),_0x1b1ce0[_0x4ec3ca(0x219)](_0x4ec3ca(0x207))&&_0x1b1ce0[_0x4ec3ca(0x1e8)](_0x4ec3ca(0x207),{'allowAttributes':[_0x4ec3ca(0x234)]});}[_0x430e61(0x1f7)](){const _0x196cbb=_0x430e61,_0x1670d1=this[_0x196cbb(0x20e)];_0x1670d1[_0x196cbb(0x1ed)][_0x196cbb(0x1fb)](_0x196cbb(0x212))[_0x196cbb(0x206)]({'model':_0x196cbb(0x234),'view':_0x196cbb(0x1e0)}),_0x1670d1[_0x196cbb(0x1ed)][_0x196cbb(0x1fb)](_0x196cbb(0x216))[_0x196cbb(0x20f)]({'model':{'key':_0x196cbb(0x234),'value':_0x24376c=>_0x24376c[_0x196cbb(0x203)](_0x196cbb(0x1e0))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1a73ba=_0x1670d1[_0x196cbb(0x222)][_0x196cbb(0x1e7)](_0x196cbb(0x22d));_0x1a73ba&&this[_0x196cbb(0x1e2)](_0x1a73ba,_0x196cbb(0x226),(_0x4422ad,[_0x4ac441,_0x4402e2])=>{const _0x36baf8=_0x196cbb;_0x4ac441[_0x36baf8(0x1ee)](_0x36baf8(0x234),_0x4402e2);});}[_0x430e61(0x20b)](){const _0x26013e=_0x430e61,_0x190abc=this[_0x26013e(0x20e)][_0x26013e(0x205)][_0x26013e(0x1e7)](_0x26013e(0x1e4))||{},_0x5bdbf1=this[_0x26013e(0x20e)][_0x26013e(0x205)][_0x26013e(0x1e7)](_0x26013e(0x221))||'';this[_0x26013e(0x21c)]=_0x3a2a41(_0xb748f1[_0x26013e(0x225)],_0x26013e(0x22f),{..._0x190abc,'pubkey':_0x5bdbf1,'ctx-name':_0x26013e(0x1eb)+this[_0x26013e(0x213)],'sourceList':'','imgOnly':_0x26013e(0x20c),'removeCopyright':_0x26013e(0x20c),'localeName':this[_0x26013e(0x20e)][_0x26013e(0x21d)][_0x26013e(0x230)],'externalSourcesEmbedCss':_0x26013e(0x210)}),this[_0x26013e(0x21c)][_0x26013e(0x21e)]=_0x5abe41=>{const _0xa7d0c4=_0x26013e;if(_0xa7d0c4(0x1f9)==_0x5abe41)return _0xa7d0c4(0x1e6);},_0xb748f1[_0x26013e(0x225)][_0x26013e(0x229)][_0x26013e(0x1e3)](this[_0x26013e(0x21c)]);}[_0x430e61(0x200)](){const _0x4fbc85=_0x430e61;this[_0x4fbc85(0x22e)]=_0x3a2a41(_0xb748f1[_0x4fbc85(0x225)],_0x4fbc85(0x1fe),{'ctx-name':_0x4fbc85(0x1eb)+this[_0x4fbc85(0x213)]}),_0xb748f1[_0x4fbc85(0x225)][_0x4fbc85(0x229)][_0x4fbc85(0x1e3)](this[_0x4fbc85(0x22e)]);}[_0x430e61(0x1f3)](){const _0x48bb37=_0x430e61,_0x30e2eb=this[_0x48bb37(0x20e)][_0x48bb37(0x222)][_0x48bb37(0x1e7)](_0x48bb37(0x1f8));_0x30e2eb&&this[_0x48bb37(0x1e2)](_0x30e2eb,_0x48bb37(0x214),()=>{const _0x372ba9=_0x48bb37,_0x23e666=this[_0x372ba9(0x20e)][_0x372ba9(0x208)][_0x372ba9(0x225)][_0x372ba9(0x1e1)][_0x372ba9(0x215)]();_0x23e666&&_0x23e666[_0x372ba9(0x203)](_0x372ba9(0x234))&&this[_0x372ba9(0x20e)][_0x372ba9(0x1f6)][_0x372ba9(0x218)][_0x372ba9(0x1ea)](_0x372ba9(0x20d),()=>{const _0x178425=_0x372ba9;_0x27a714(this[_0x178425(0x20e)],_0x23e666);});});const _0x4c4ed4=this[_0x48bb37(0x20e)][_0x48bb37(0x222)][_0x48bb37(0x1e7)](_0x48bb37(0x22a));_0x4c4ed4&&this[_0x48bb37(0x1e2)](_0x4c4ed4,_0x48bb37(0x214),()=>{const _0x3602f5=_0x48bb37,_0x1449ed=this[_0x3602f5(0x20e)][_0x3602f5(0x208)][_0x3602f5(0x225)][_0x3602f5(0x1e1)][_0x3602f5(0x215)]();_0x1449ed&&_0x1449ed[_0x3602f5(0x203)](_0x3602f5(0x234))&&this[_0x3602f5(0x20e)][_0x3602f5(0x1f6)][_0x3602f5(0x218)][_0x3602f5(0x1ea)](_0x3602f5(0x20d),()=>{const _0xc216dd=_0x3602f5;_0x27a714(this[_0xc216dd(0x20e)],_0x1449ed);});});}}function _0x5ec0(){const _0x5ea05=['data-uc-image-id','selection','listenTo','appendChild','uploadcare.uploader','href','#uc-icon-arrow-down','get','extend','3503871yGFGmT','once','uploader-','destroy','conversion','removeAttribute','3017352pvJvef','schema','fromCharCode','pluginName','_initImageProcessingIndicator','UploadcareEditing','querySelector','editing','_initConversion','insertImage','closeMax','imageBlock','for','1776916lihIrZ','5CHLJCr','uc-upload-ctx-provider','init','_initCtx','map','afterInit','getAttribute','268908zmkxLY','config','attributeToAttribute','imageInline','model','10552QNuYzH','isOfficialPlugin','_initConfig','true','render','editor','elementToAttribute','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','requires','downcast','ucContextId','execute','getSelectedElement','upcast','join','view','isRegistered','configElement','754030ebIDTh','_configElement','locale','iconHrefResolver','isPremiumPlugin','input[uploadcare-file-input]','uploadcare.pubkey','commands','2205fSpwiW','187STtcbB','document','cleanupImage','1qVuhgp','ctxElement','body','uploadcareImageReplace','uploadcare','remove','replaceImageSource','_ctxElement','uc-config','contentLanguage','PictureEditing','_initSchema','1671074EelQQA','uploadcareImageId','add'];_0x5ec0=function(){return _0x5ea05;};return _0x5ec0();}
23
+ const _0x137ee7=_0x4af5;(function(_0x17137c,_0x43109b){const _0x484446=_0x4af5,_0x5977c5=_0x17137c();while(!![]){try{const _0x1c2efd=parseInt(_0x484446(0xc8))/0x1*(-parseInt(_0x484446(0xab))/0x2)+-parseInt(_0x484446(0xb7))/0x3+parseInt(_0x484446(0xbb))/0x4*(parseInt(_0x484446(0xc0))/0x5)+parseInt(_0x484446(0x8c))/0x6*(-parseInt(_0x484446(0xbd))/0x7)+parseInt(_0x484446(0xb0))/0x8*(parseInt(_0x484446(0xca))/0x9)+-parseInt(_0x484446(0xac))/0xa+parseInt(_0x484446(0xd6))/0xb*(parseInt(_0x484446(0xc2))/0xc);if(_0x1c2efd===_0x43109b)break;else _0x5977c5['push'](_0x5977c5['shift']());}catch(_0xdc1c0a){_0x5977c5['push'](_0x5977c5['shift']());}}}(_0x3422,0xb8f45));function _0x4af5(_0x1f23d1,_0x38153a){const _0x3422a3=_0x3422();return _0x4af5=function(_0x4af57c,_0x30cd8c){_0x4af57c=_0x4af57c-0x84;let _0xb670ea=_0x3422a3[_0x4af57c];return _0xb670ea;},_0x4af5(_0x1f23d1,_0x38153a);}function _0x3422(){const _0x4c3752=['execute','uploadcareImageReplace','model','3UqUtoO','uc-upload-ctx-provider','9hzZlLE','_initConversion','data-uc-image-id','imageBlock','destroy','join','closeMax','uploadcare.pubkey','iconHrefResolver','_initCtx','conversion','once','33297ItTDED','removeAttribute','render','for','ucContextId','add','_initSchema','_configElement','querySelector','config','_ctxElement','upcast','extend','6dUHcSV','uploader-','get','uc-config','selection','locale','editing','body','schema','isRegistered','remove','\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','init','afterInit','isPremiumPlugin','href','attributeToAttribute','editor','uploadcareImageId','elementToAttribute','true','listenTo','imageInline','pluginName','downcast','#uc-icon-arrow-down','input[uploadcare-file-input]','appendChild','isOfficialPlugin','getAttribute','document','638946tWMNtm','6611640JGAtHG','map','configElement','replaceImageSource','9168360TwgAHI','uploadcare.uploader','PictureEditing','view','uploadcare','_initImageProcessingIndicator','commands','917013NJaLPD','UploadcareEditing','insertImage','requires','4cLYQSe','contentLanguage','10289699szFudR','fromCharCode','cleanupImage','4045685MLEqkI','ctxElement','8712cZsMxq','getSelectedElement','_initConfig'];_0x3422=function(){return _0x4c3752;};return _0x3422();}import{Plugin as _0x33d70f}from'ckeditor5/src/core.js';import{Dialog as _0x1cab83}from'ckeditor5/src/ui.js';import{createElement as _0x57d8fb,global as _0x272902,uid as _0x316133}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x2e0385}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0xc9a91}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xbcbcd3}from'./utils/editingutils.js';export class UploadcareEditing extends _0x33d70f{[_0x137ee7(0x86)]=null;[_0x137ee7(0x89)]=null;static get[_0x137ee7(0xa3)](){const _0x34d96a=_0x137ee7;return _0x34d96a(0xb8);}static get[_0x137ee7(0xba)](){const _0x1dc323=_0x137ee7;return[_0x1dc323(0xb2),_0xc9a91,_0x1cab83];}static get[_0x137ee7(0xa8)](){return!0x0;}static get[_0x137ee7(0x9a)](){return!0x0;}[_0x137ee7(0xda)];get[_0x137ee7(0xae)](){const _0x52b26b=_0x137ee7;return this[_0x52b26b(0x86)];}get[_0x137ee7(0xc1)](){const _0x2c7857=_0x137ee7;return this[_0x2c7857(0x89)];}constructor(_0x1bb7e0){const _0x5a59b2=_0x137ee7;super(_0x1bb7e0),this[_0x5a59b2(0xda)]=_0x316133();}[_0x137ee7(0x98)](){const _0x1b5921=_0x137ee7,_0x68f622=this[_0x1b5921(0x9d)];_0x68f622[_0x1b5921(0xb6)][_0x1b5921(0x84)](_0x1b5921(0xb4),new _0x2e0385(_0x68f622));}[_0x137ee7(0x99)](){const _0x35afde=_0x137ee7;this[_0x35afde(0x85)](),this[_0x35afde(0xcb)](),this[_0x35afde(0xc4)](),this[_0x35afde(0xd3)](),this[_0x35afde(0xb5)](),this[_0x35afde(0xa1)](this[_0x35afde(0x9d)],_0x35afde(0xce),()=>{const _0x548c0f=_0x35afde;this[_0x548c0f(0x86)]&&(this[_0x548c0f(0x86)][_0x548c0f(0x96)](),this[_0x548c0f(0x86)]=null),this[_0x548c0f(0x89)]&&(this[_0x548c0f(0x89)][_0x548c0f(0x96)](),this[_0x548c0f(0x89)]=null);const _0x22d41e=_0x272902[_0x548c0f(0xaa)][_0x548c0f(0x87)](_0x548c0f(0xa6));_0x22d41e&&_0x22d41e[_0x548c0f(0x96)]();}),async function(_0x56f96e){const _0x115cc5=_0x4163a3([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4be6dd=0x535f8c3a,_0x50b54b=0x5358f76a^_0x4be6dd,_0x424207=window[_0x4163a3([0x44,0x61,0x74,0x65])][_0x4163a3([0x6e,0x6f,0x77])](),_0x57b225=_0x56f96e[_0x4163a3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x20be01=new window[(_0x4163a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48648f=>{_0x57b225[_0x4163a3([0x6f,0x6e,0x63,0x65])](_0x4163a3([0x72,0x65,0x61,0x64,0x79]),_0x48648f);}),_0xd61cf5={[_0x4163a3([0x6b,0x74,0x79])]:_0x4163a3([0x45,0x43]),[_0x4163a3([0x75,0x73,0x65])]:_0x4163a3([0x73,0x69,0x67]),[_0x4163a3([0x63,0x72,0x76])]:_0x4163a3([0x50,0x2d,0x32,0x35,0x36]),[_0x4163a3([0x78])]:_0x4163a3([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]),[_0x4163a3([0x79])]:_0x4163a3([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]),[_0x4163a3([0x61,0x6c,0x67])]:_0x4163a3([0x45,0x53,0x32,0x35,0x36])},_0x63b28f=_0x57b225[_0x4163a3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4163a3([0x67,0x65,0x74])](_0x4163a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x29b9cc(){let _0x1d51a6,_0x575e1f=null,_0x506dec=null;try{if(_0x63b28f==_0x4163a3([0x47,0x50,0x4c]))return _0x4163a3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d51a6=_0x50bf9b(),!_0x1d51a6)return _0x4163a3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d51a6[_0x4163a3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x506dec=_0x2f08c5(_0x1d51a6[_0x4163a3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d51a6[_0x4163a3([0x6a,0x74,0x69])])),await _0x1093c3()?_0x239a8d()?_0x33619a()?_0x4163a3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1afc6f()?(_0x1d51a6[_0x4163a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4163a3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x575e1f=_0x3040ae(_0x4163a3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1d51a6[_0x4163a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4163a3([0x74,0x72,0x69,0x61,0x6c])&&(_0x575e1f=_0x3040ae(_0x4163a3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x29b5ce()):_0x4163a3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4163a3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4163a3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4163a3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x33619a(){const _0x1b7490=[_0x4163a3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4163a3([0x74,0x72,0x69,0x61,0x6c])][_0x4163a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d51a6[_0x4163a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x424207/0x3e8:0xe10*_0x50b54b;return _0x1d51a6[_0x4163a3([0x65,0x78,0x70])]<_0x1b7490;}function _0x239a8d(){const _0x1ca8f1=_0x1d51a6[_0x4163a3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1ca8f1&&(!!_0x1ca8f1[_0x4163a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4163a3([0x2a]))||!!_0x1ca8f1[_0x4163a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4163a3([0x55,0x50,0x4c,0x43])));}function _0x1afc6f(){const _0x4b5b61=_0x4af5,_0x404031=_0x1d51a6[_0x4163a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x404031||0x0==_0x404031[_0x4163a3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x30bfba}=new URL(window[_0x4163a3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4b5b61(0x9b)]);if(_0x404031[_0x4163a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30bfba))return!0x0;const _0xbae48f=_0x30bfba[_0x4163a3([0x73,0x70,0x6c,0x69,0x74])](_0x4163a3([0x2e]));return _0x404031[_0x4163a3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f6ecd=>_0x1f6ecd[_0x4163a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4163a3([0x2a])))[_0x4163a3([0x6d,0x61,0x70])](_0x367efe=>_0x367efe[_0x4163a3([0x73,0x70,0x6c,0x69,0x74])](_0x4163a3([0x2e])))[_0x4163a3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4eacc0=>_0x4eacc0[_0x4163a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xbae48f[_0x4163a3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4163a3([0x6d,0x61,0x70])](_0x5bc6a5=>Array(_0xbae48f[_0x4163a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5bc6a5[_0x4163a3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4163a3([0x66,0x69,0x6c,0x6c])](_0x5bc6a5[0x0]===_0x4163a3([0x2a])?_0x4163a3([0x2a]):'')[_0x4163a3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5bc6a5))[_0x4163a3([0x73,0x6f,0x6d,0x65])](_0x38a0f6=>_0xbae48f[_0x4163a3([0x65,0x76,0x65,0x72,0x79])]((_0x3c4ffd,_0x4a3e0d)=>_0x38a0f6[_0x4a3e0d]===_0x3c4ffd||_0x38a0f6[_0x4a3e0d]===_0x4163a3([0x2a])));}function _0x29b5ce(){return _0x575e1f&&_0x506dec?new window[(_0x4163a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x193500,_0x3f71a0)=>{_0x575e1f[_0x4163a3([0x74,0x68,0x65,0x6e])](_0x193500,_0x3f71a0),_0x506dec[_0x4163a3([0x74,0x68,0x65,0x6e])](_0x2a7dc2=>{_0x2a7dc2!=_0x4163a3([0x56,0x61,0x6c,0x69,0x64])&&_0x193500(_0x2a7dc2);},_0x3f71a0);}):_0x575e1f||_0x506dec||_0x4163a3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f08c5(_0x2ce608,_0x2e5320){return new window[(_0x4163a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48c6a=>{if(_0x41a8f8())return _0x48c6a(_0x4163a3([0x56,0x61,0x6c,0x69,0x64]));_0x753693(),_0x57b225[_0x4163a3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4163a3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4e9f94=!0x1;const _0x291ea1=_0x316133();function _0x516eb8(_0x16dd62){return!!_0x16dd62&&(typeof _0x16dd62===_0x4163a3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x16dd62===_0x4163a3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x16dd62[_0x4163a3([0x74,0x68,0x65,0x6e])]===_0x4163a3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x16dd62[_0x4163a3([0x63,0x61,0x74,0x63,0x68])]===_0x4163a3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2abf75(_0x45ff53){_0x278226(_0x45ff53)[_0x4163a3([0x74,0x68,0x65,0x6e])](_0x22843a=>{if(!_0x22843a||_0x22843a[_0x4163a3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4163a3([0x6f,0x6b]))return _0x4163a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xd2b5d8(_0x2a9c04(_0x291ea1+_0x2e5320))!=_0x22843a[_0x4163a3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4163a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4163a3([0x56,0x61,0x6c,0x69,0x64]);})[_0x4163a3([0x74,0x68,0x65,0x6e])](_0x33e044=>(_0x45767e(),_0x33e044),()=>{const _0x3f78c9=_0x14b323();return null==_0x3f78c9?(_0x45767e(),_0x4163a3([0x56,0x61,0x6c,0x69,0x64])):_0x4163a3(_0x424207-_0x3f78c9>(0x7753083a^_0x4be6dd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4163a3([0x74,0x68,0x65,0x6e])](_0x48c6a)[_0x4163a3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x48c6a(_0x4163a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3145d0=0x536962ba^_0x4be6dd;function _0x45767e(){const _0x3ffbab=_0x4163a3([0x6c,0x6c,0x63,0x74,0x2d])+_0xd2b5d8(_0x2a9c04(_0x2ce608)),_0x4aabc9=_0x2fc3ca(_0xd2b5d8(window[_0x4163a3([0x4d,0x61,0x74,0x68])][_0x4163a3([0x63,0x65,0x69,0x6c])](_0x424207/_0x3145d0)));window[_0x4163a3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4163a3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ffbab,_0x4aabc9);}function _0x14b323(){const _0x5bec14=_0x4163a3([0x6c,0x6c,0x63,0x74,0x2d])+_0xd2b5d8(_0x2a9c04(_0x2ce608)),_0x2cab66=window[_0x4163a3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4163a3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5bec14);return _0x2cab66?window[_0x4163a3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fc3ca(_0x2cab66),0x10)*_0x3145d0:null;}function _0x278226(_0x1102b1){return new window[(_0x4163a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ca18b,_0xe28569)=>{_0x1102b1[_0x4163a3([0x74,0x68,0x65,0x6e])](_0x5ca18b,_0xe28569),window[_0x4163a3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe28569,0x535e58fa^_0x4be6dd);});}}_0x57b225[_0x4163a3([0x6f,0x6e])](_0x4163a3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x550e45,_0x453cab)=>{if(_0x453cab[0x0]!=_0x2ce608)return _0x48c6a(_0x4163a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x453cab[0x1]={..._0x453cab[0x1],[_0x4163a3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x291ea1};},{[_0x4163a3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4163a3([0x68,0x69,0x67,0x68])}),_0x57b225[_0x4163a3([0x6f,0x6e])](_0x4163a3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1f33ef=>{_0x516eb8(_0x1f33ef[_0x4163a3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4e9f94=!0x0,_0x2abf75(_0x1f33ef[_0x4163a3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4163a3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4163a3([0x6c,0x6f,0x77])}),_0x20be01[_0x4163a3([0x74,0x68,0x65,0x6e])](()=>{_0x4e9f94||_0x48c6a(_0x4163a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x41a8f8(){return _0x57b225[_0x4163a3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4163a3([0x76,0x69,0x65,0x77])][_0x4163a3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4163a3([0x61,0x75,0x74,0x6f]);}function _0x753693(){_0x57b225[_0x4163a3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4163a3([0x76,0x69,0x65,0x77])][_0x4163a3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4163a3([0x61,0x75,0x74,0x6f]);}}function _0x3040ae(_0x55a476){const _0x4d1876=[new window[(_0x4163a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b9bb7=>setTimeout(_0x4b9bb7,0x5356b2f6^_0x4be6dd)),_0x20be01[_0x4163a3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4163a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb6fde2=>{let _0x105b29=0x0;_0x57b225[_0x4163a3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4163a3([0x6f,0x6e])](_0x4163a3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3f68dd,_0x427e28)=>{_0x427e28[0x0][_0x4163a3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x105b29++,_0x105b29==(0x535f8dc2^_0x4be6dd)&&(_0xb6fde2(),_0x3f68dd[_0x4163a3([0x6f,0x66,0x66])]());});}))];return window[_0x4163a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4163a3([0x72,0x61,0x63,0x65])](_0x4d1876)[_0x4163a3([0x74,0x68,0x65,0x6e])](()=>_0x55a476);}async function _0x16b23d(){await _0x20be01,_0x57b225[_0x4163a3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4163a3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x56c765,_0x57b225[_0x4163a3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4163a3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x56c765,_0x57b225[_0x4163a3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4163a3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x32f916(_0x2d4292){const _0x1c3894=_0xb76477();_0x57b225[_0x1c3894]=_0x4163a3([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2d4292,_0x2d4292!=_0x4163a3([0x56,0x61,0x6c,0x69,0x64])&&_0x16b23d();}function _0xb76477(){const _0x2c8a2e=window[_0x4163a3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4163a3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4163a3([0x6e,0x6f,0x77])]())[_0x4163a3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4163a3([0x2e]),'');let _0x392969=_0x4163a3([0x68]);for(let _0x185234=0x0;_0x185234<_0x2c8a2e[_0x4163a3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x185234+=0x2){let _0x19c198=window[_0x4163a3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c8a2e[_0x4163a3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x185234,_0x185234+0x2));_0x19c198>=_0x115cc5[_0x4163a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x19c198-=_0x115cc5[_0x4163a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x392969+=_0x115cc5[_0x19c198];}return _0x392969;}function _0x50bf9b(){const _0x180f59=_0x63b28f[_0x4163a3([0x73,0x70,0x6c,0x69,0x74])](_0x4163a3([0x2e]));if(0x3!=_0x180f59[_0x4163a3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5c9d0f(_0x180f59[0x1]);function _0x5c9d0f(_0x4fd862){const _0x1490b0=_0x1520c5(_0x4fd862);return _0x1490b0&&_0x3393c2()?_0x1490b0:null;function _0x3393c2(){const _0x4e12a6=_0x1490b0[_0x4163a3([0x6a,0x74,0x69])],_0x52e658=window[_0x4163a3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e12a6[_0x4163a3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e12a6[_0x4163a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x39540d={..._0x1490b0,[_0x4163a3([0x6a,0x74,0x69])]:_0x4e12a6[_0x4163a3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4e12a6[_0x4163a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x39540d[_0x4163a3([0x76,0x63])],_0x2a9c04(_0x39540d)==_0x52e658;}}}async function _0x1093c3(){let _0x5ca4cd=!0x0;try{const _0x54a078=_0x63b28f[_0x4163a3([0x73,0x70,0x6c,0x69,0x74])](_0x4163a3([0x2e])),[_0x173289,_0x340b93,_0x4b2f03]=_0x54a078;return _0x48f056(_0x173289),await _0x5191b7(_0x173289,_0x340b93,_0x4b2f03),_0x5ca4cd;}catch{return!0x1;}function _0x48f056(_0x2ebbf0){const _0x194e1d=_0x1520c5(_0x2ebbf0);_0x194e1d&&_0x194e1d[_0x4163a3([0x61,0x6c,0x67])]==_0x4163a3([0x45,0x53,0x32,0x35,0x36])||(_0x5ca4cd=!0x1);}async function _0x5191b7(_0x2ed95b,_0x16db02,_0x27216f){const _0x595d2e=window[_0x4163a3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4163a3([0x66,0x72,0x6f,0x6d])](_0x5b96ec(_0x27216f),_0x231d80=>_0x231d80[_0x4163a3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x582693=new window[(_0x4163a3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4163a3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2ed95b+_0x4163a3([0x2e])+_0x16db02),_0x4aba30=window[_0x4163a3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4163a3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4aba30)return;const _0x5222de=await _0x4aba30[_0x4163a3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4163a3([0x6a,0x77,0x6b]),_0xd61cf5,{[_0x4163a3([0x6e,0x61,0x6d,0x65])]:_0x4163a3([0x45,0x43,0x44,0x53,0x41]),[_0x4163a3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4163a3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4163a3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4aba30[_0x4163a3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4163a3([0x6e,0x61,0x6d,0x65])]:_0x4163a3([0x45,0x43,0x44,0x53,0x41]),[_0x4163a3([0x68,0x61,0x73,0x68])]:{[_0x4163a3([0x6e,0x61,0x6d,0x65])]:_0x4163a3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5222de,_0x595d2e,_0x582693)||(_0x5ca4cd=!0x1);}}function _0x1520c5(_0x39947d){return _0x39947d[_0x4163a3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4163a3([0x65,0x79]))?JSON[_0x4163a3([0x70,0x61,0x72,0x73,0x65])](_0x5b96ec(_0x39947d)):null;}function _0x5b96ec(_0x573c82){return window[_0x4163a3([0x61,0x74,0x6f,0x62])](_0x573c82[_0x4163a3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4163a3([0x2b]))[_0x4163a3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4163a3([0x2f])));}function _0x2a9c04(_0x5ec303){let _0x1ba1ae=0x1505;function _0x2cd99d(_0x2cea73){for(let _0x1e8d2c=0x0;_0x1e8d2c<_0x2cea73[_0x4163a3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e8d2c++){const _0x29c098=_0x2cea73[_0x4163a3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e8d2c);_0x1ba1ae=(_0x1ba1ae<<0x5)+_0x1ba1ae+_0x29c098,_0x1ba1ae&=_0x1ba1ae;}}function _0x11d23e(_0x55491b){Array[_0x4163a3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x55491b)?_0x55491b[_0x4163a3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x11d23e):_0x55491b&&typeof _0x55491b==_0x4163a3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4163a3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x55491b)[_0x4163a3([0x73,0x6f,0x72,0x74])]()[_0x4163a3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3683bc,_0x1ce14d])=>{_0x2cd99d(_0x3683bc),_0x11d23e(_0x1ce14d);}):_0x2cd99d(window[_0x4163a3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x55491b));}return _0x11d23e(_0x5ec303),_0x1ba1ae>>>0x0;}function _0xd2b5d8(_0x3e585c){return _0x3e585c[_0x4163a3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4163a3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4163a3([0x30]));}function _0x2fc3ca(_0x314b01){return _0x314b01[_0x4163a3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4163a3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4163a3([0x6a,0x6f,0x69,0x6e])]('');}function _0x56c765(){}function _0x4163a3(_0x9c8ea1){const _0x3d18c2=_0x4af5;return _0x9c8ea1[_0x3d18c2(0xad)](_0x502b4e=>String[_0x3d18c2(0xbe)](_0x502b4e))[_0x3d18c2(0xcf)]('');}_0x32f916(await _0x29b9cc());}(this);}[_0x137ee7(0x85)](){const _0x127565=_0x137ee7,_0x3903e8=this[_0x127565(0x9d)][_0x127565(0xc7)][_0x127565(0x94)];_0x3903e8[_0x127565(0x95)](_0x127565(0xcd))&&_0x3903e8[_0x127565(0x8b)](_0x127565(0xcd),{'allowAttributes':[_0x127565(0x9e)]}),_0x3903e8[_0x127565(0x95)](_0x127565(0xa2))&&_0x3903e8[_0x127565(0x8b)](_0x127565(0xa2),{'allowAttributes':[_0x127565(0x9e)]});}[_0x137ee7(0xcb)](){const _0x2cf1c4=_0x137ee7,_0x4d95e0=this[_0x2cf1c4(0x9d)];_0x4d95e0[_0x2cf1c4(0xd4)][_0x2cf1c4(0xd9)](_0x2cf1c4(0xa4))[_0x2cf1c4(0x9c)]({'model':_0x2cf1c4(0x9e),'view':_0x2cf1c4(0xcc)}),_0x4d95e0[_0x2cf1c4(0xd4)][_0x2cf1c4(0xd9)](_0x2cf1c4(0x8a))[_0x2cf1c4(0x9f)]({'model':{'key':_0x2cf1c4(0x9e),'value':_0x4077a4=>_0x4077a4[_0x2cf1c4(0xa9)](_0x2cf1c4(0xcc))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x13fdc3=_0x4d95e0[_0x2cf1c4(0xb6)][_0x2cf1c4(0x8e)](_0x2cf1c4(0xaf));_0x13fdc3&&this[_0x2cf1c4(0xa1)](_0x13fdc3,_0x2cf1c4(0xbf),(_0x3fe31a,[_0x7cc26b,_0x4226e7])=>{const _0x295ebb=_0x2cf1c4;_0x7cc26b[_0x295ebb(0xd7)](_0x295ebb(0x9e),_0x4226e7);});}[_0x137ee7(0xc4)](){const _0x12aa93=_0x137ee7,_0x234b56=this[_0x12aa93(0x9d)][_0x12aa93(0x88)][_0x12aa93(0x8e)](_0x12aa93(0xb1))||{},_0x43e6ec=this[_0x12aa93(0x9d)][_0x12aa93(0x88)][_0x12aa93(0x8e)](_0x12aa93(0xd1))||'';this[_0x12aa93(0x86)]=_0x57d8fb(_0x272902[_0x12aa93(0xaa)],_0x12aa93(0x8f),{..._0x234b56,'pubkey':_0x43e6ec,'ctx-name':_0x12aa93(0x8d)+this[_0x12aa93(0xda)],'sourceList':'','imgOnly':_0x12aa93(0xa0),'removeCopyright':_0x12aa93(0xa0),'localeName':this[_0x12aa93(0x9d)][_0x12aa93(0x91)][_0x12aa93(0xbc)],'externalSourcesEmbedCss':_0x12aa93(0x97)}),this[_0x12aa93(0x86)][_0x12aa93(0xd2)]=_0x76c2c8=>{const _0x2c6e9e=_0x12aa93;if(_0x2c6e9e(0xd0)==_0x76c2c8)return _0x2c6e9e(0xa5);},_0x272902[_0x12aa93(0xaa)][_0x12aa93(0x93)][_0x12aa93(0xa7)](this[_0x12aa93(0x86)]);}[_0x137ee7(0xd3)](){const _0x146dda=_0x137ee7;this[_0x146dda(0x89)]=_0x57d8fb(_0x272902[_0x146dda(0xaa)],_0x146dda(0xc9),{'ctx-name':_0x146dda(0x8d)+this[_0x146dda(0xda)]}),_0x272902[_0x146dda(0xaa)][_0x146dda(0x93)][_0x146dda(0xa7)](this[_0x146dda(0x89)]);}[_0x137ee7(0xb5)](){const _0x27ba53=_0x137ee7,_0x3cc3e8=this[_0x27ba53(0x9d)][_0x27ba53(0xb6)][_0x27ba53(0x8e)](_0x27ba53(0xb9));_0x3cc3e8&&this[_0x27ba53(0xa1)](_0x3cc3e8,_0x27ba53(0xc5),()=>{const _0x583435=_0x27ba53,_0x1868be=this[_0x583435(0x9d)][_0x583435(0xc7)][_0x583435(0xaa)][_0x583435(0x90)][_0x583435(0xc3)]();_0x1868be&&_0x1868be[_0x583435(0xa9)](_0x583435(0x9e))&&this[_0x583435(0x9d)][_0x583435(0x92)][_0x583435(0xb3)][_0x583435(0xd5)](_0x583435(0xd8),()=>{const _0x5159a=_0x583435;_0xbcbcd3(this[_0x5159a(0x9d)],_0x1868be);});});const _0x4378cd=this[_0x27ba53(0x9d)][_0x27ba53(0xb6)][_0x27ba53(0x8e)](_0x27ba53(0xc6));_0x4378cd&&this[_0x27ba53(0xa1)](_0x4378cd,_0x27ba53(0xc5),()=>{const _0x48e523=_0x27ba53,_0x3666b9=this[_0x48e523(0x9d)][_0x48e523(0xc7)][_0x48e523(0xaa)][_0x48e523(0x90)][_0x48e523(0xc3)]();_0x3666b9&&_0x3666b9[_0x48e523(0xa9)](_0x48e523(0x9e))&&this[_0x48e523(0x9d)][_0x48e523(0x92)][_0x48e523(0xb3)][_0x48e523(0xd5)](_0x48e523(0xd8),()=>{const _0x5ed3ad=_0x48e523;_0xbcbcd3(this[_0x5ed3ad(0x9d)],_0x3666b9);});});}}