@ckeditor/ckeditor5-uploadcare 46.0.0-alpha.7 → 46.0.0-alpha.8
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/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0xa02c31,Command as _0x40a540}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2b3cc3,IconGooglePhotos as _0x3328c1,IconGoogleDrive as _0x3e1eb4,IconFacebook as _0xbe19f2,IconDropbox as _0x4ff699,IconUploadcareLink as _0xaca2fc,IconUploadcareImageUpload as _0x4f860e,IconError as _0x3086a9,IconUploadcareImageEdit as _0x4a9654}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x586669,MenuBarMenuListItemButtonView as _0x19fafd,View as _0xf574a8,FocusCycler as _0x4753cf,Dialog as _0x3bdf3c,DialogViewPosition as _0x6f9f03,SpinnerView as _0x170b6f,IconView as _0x9bf704,Notification as _0x246ad2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x412e62,DomEmitterMixin as _0x48397f,global as _0x5980d3,getAncestors as _0x53fd38,ObservableMixin as _0x4180c3,uid as _0x3c7735,createElement as _0x9cca2d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5060d0}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4f0e4f,info as _0x57aac6}from'@uploadcare/upload-client';import*as _0xb0ea0d from'@uploadcare/file-uploader';var i=function(_0x3e3e6a){return _0x3e3e6a['Local']='local',_0x3e3e6a['URL']='url',_0x3e3e6a['Dropbox']='dropbox',_0x3e3e6a['GDrive']='gdrive',_0x3e3e6a['Facebook']='facebook',_0x3e3e6a['GPhotos']='gphotos',_0x3e3e6a['OneDrive']='onedrive',_0x3e3e6a;}({});function _(_0x4acf8b,_0x366bdd,_0x1441a6){const t=_0x4acf8b['t'],_0x35912a=_0x4acf8b['t'];switch(_0x366bdd){case i['Local']:return{'text':_0x35912a('Insert'===_0x1441a6?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x35912a('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x1441a6?_0x35912a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x35912a('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x1441a6?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x1441a6?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x1441a6?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x1441a6?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x1441a6?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x366bdd;}}class e extends _0xa02c31{['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 _0x22dadd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x399a40;for(const _0x5a08c3 in _0x22dadd){const _0x46b1b6=_0x5a08c3,_0x18b5f5=_0x22dadd[_0x46b1b6];if('uploadcareLicenseKeyValid'==_0x18b5f5||'uploadcareLicenseKeyInvalid'==_0x18b5f5||'uploadcareLicenseKeyExpired'==_0x18b5f5||'uploadcareLicenseKeyDomainLimit'==_0x18b5f5||'uploadcareLicenseKeyNotAllowed'==_0x18b5f5||'uploadcareLicenseKeyEvaluationLimit'==_0x18b5f5||'uploadcareLicenseKeyTrialLimit'==_0x18b5f5||'uploadcareLicenseKeyUsageLimit'==_0x18b5f5){delete _0x22dadd[_0x46b1b6],_0x399a40=_0x18b5f5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x399a40&&_0x22dadd['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x399a40&&_0x22dadd['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x399a40&&_0x22dadd['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x399a40&&_0x22dadd['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x399a40&&_0x22dadd['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x399a40&&_0x22dadd['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x399a40&&_0x22dadd['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4993ba}=this,_0x3f6695=_0x4993ba['commands']['get']('uploadcare');if(!_0x3f6695)return;const _0x3274ff=this['_normalizeConfigSourceList'](_0x4993ba['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1d3d1b,_0x212da9)=>{const _0x309fb9=this['_getIntegrationKey'](_0x212da9['type']);return _0x1d3d1b[_0x309fb9]||(_0x1d3d1b[_0x309fb9]=[]),_0x1d3d1b[_0x309fb9]['push'](_0x212da9),_0x1d3d1b;},{});_0x4993ba['plugins']['has']('ImageInsertUI')&&_0x4993ba['commands']['get']('uploadcare')&&Object['entries'](_0x3274ff)['forEach'](([_0x346bdd,_0x457e08])=>{_0x4993ba['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x346bdd,'observable':()=>_0x3f6695,'buttonViewCreator':()=>this['_createToolbarButton'](_0x457e08),'formViewCreator':()=>this['_createDropdownButtons'](_0x457e08),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x457e08),'override':'assetManager'!==_0x346bdd});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x358c7f){const {locale:_0x49b412}=this['editor'];return _0x358c7f['map'](_0x2d24ad=>{const _0x565ed2=_(_0x49b412,_0x2d24ad,'Insert');switch(_0x2d24ad){case i['Local']:return{'icon':_0x4f860e,'type':i['Local'],..._0x565ed2};case i['URL']:return{'icon':_0xaca2fc,'type':i['URL'],..._0x565ed2};case i['Dropbox']:return{'icon':_0x4ff699,'type':i['Dropbox'],..._0x565ed2};case i['Facebook']:return{'icon':_0xbe19f2,'type':i['Facebook'],..._0x565ed2};case i['GDrive']:return{'icon':_0x3e1eb4,'type':i['GDrive'],..._0x565ed2};case i['GPhotos']:return{'icon':_0x3328c1,'type':i['GPhotos'],..._0x565ed2};case i['OneDrive']:return{'icon':_0x2b3cc3,'type':i['OneDrive'],..._0x565ed2};}});}['_getIntegrationKey'](_0x616385){switch(_0x616385){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5d1877,_0x2788c5){const _0x495fd9=this['editor'],_0x59f4a5=new _0x5d1877(_0x495fd9['locale']),_0x159b61=_0x495fd9['commands']['get']('uploadcare');return _0x59f4a5['bind']('isEnabled')['to'](_0x159b61),_0x59f4a5['on']('execute',()=>{_0x159b61['execute'](_0x2788c5);}),_0x59f4a5;}['_createToolbarButton'](_0x341390){const {locale:_0x3d418e}=this['editor'],_0x439674=this['editor']['plugins']['get']('ImageInsertUI'),_0x29832a=_0x341390[0x0],_0x391ad6=this['_createButton'](_0x586669,_0x29832a['type']);return _0x391ad6['icon']=_0x29832a['icon'],_0x391ad6['bind']('label')['to'](_0x439674,'isImageSelected',_0x4501ed=>_(_0x3d418e,_0x29832a['type'],_0x4501ed?'Replace':'Insert')['text']),_0x391ad6['tooltip']=!0x0,_0x391ad6;}['_createDropdownButtons'](_0x4da4ab){const {locale:_0x14bbd9}=this['editor'],_0xc9d673=this['editor']['plugins']['get']('ImageInsertUI');return _0x4da4ab['map'](_0x40cc24=>{const _0x59529d=this['_createButton'](_0x586669,_0x40cc24['type']);return _0x59529d['withText']=!0x0,_0x59529d['icon']=_0x40cc24['icon'],_0x59529d['bind']('label')['to'](_0xc9d673,'isImageSelected',_0x594f5a=>_(_0x14bbd9,_0x40cc24['type'],_0x594f5a?'Replace':'Insert')['text']),_0x59529d;});}['_createMenuBarButtons'](_0x11d7ba){return _0x11d7ba['map'](_0x2689f9=>{const _0x2a7598=this['_createButton'](_0x19fafd,_0x2689f9['type']);return _0x2a7598['icon']=_0x2689f9['icon'],_0x2a7598['label']=_0x2689f9['shortText'],_0x2a7598;});}}class F extends _0xf574a8{['focusTracker'];['focusCycler'];constructor(_0x5acd77){super(_0x5acd77),this['focusTracker']=new _0x412e62(),this['focusCycler']=new _0x4753cf({'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(_0x6a5aa0,_0x30fde0){super(_0x6a5aa0),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-'+_0x30fde0}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x4b3ed5,_0x50dd95){const _0x30e2b0=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x30ca2a=>_0x30ca2a<=_0x50dd95)['map'](_0x3757b9=>_0x4b3ed5['replace'](/\/$/,'')+'/-/resize/'+_0x3757b9+'x/\x20'+_0x3757b9+'w');return{'imageFallbackUrl':_0x4b3ed5,'imageSources':[{'srcset':_0x30e2b0['join'](',\x20'),'sizes':'(max-width:\x20'+_0x50dd95+'px)\x20100vw,\x20'+_0x50dd95+'px','type':'image/webp'}]};}function C(_0x174b99,_0x4cd57e,_0x188105){const _0x3829ac=_0x174b99['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3829ac?parseInt(_0x3829ac[0x1],0xa):_0x4cd57e,'height':_0x3829ac?parseInt(_0x3829ac[0x2],0xa):_0x188105};}function p(_0x2150a4,_0x855e7d){const _0x59f47f=new(_0x48397f())(),_0x15d4ef=_0x2150a4['plugins']['get']('ImageUtils'),_0x38b088=_0x2150a4['editing']['mapper']['toViewElement'](_0x855e7d),_0x2e2c90=_0x15d4ef['findViewImgElement'](_0x38b088),_0x49dab2=_0x2150a4['editing']['view']['domConverter']['viewToDom'](_0x2e2c90),_0x5ad501=_0x855e7d['getAttribute']('width'),_0x5a622c=_0x855e7d['getAttribute']('height'),_0x4500bc='image-processing';_0x2150a4['editing']['view']['change'](_0x193a5a=>{_0x193a5a['addClass'](_0x4500bc,_0x38b088),_0x193a5a['setStyle']('aspect-ratio',_0x5ad501+'/'+_0x5a622c,_0x2e2c90);}),_0x59f47f['listenTo'](_0x49dab2,'load',()=>{_0x59f47f['stopListening'](_0x49dab2,'load'),_0x2150a4['editing']['view']['change'](_0x2c1c68=>{_0x2c1c68['removeClass'](_0x4500bc,_0x38b088),_0x2c1c68['removeStyle']('aspect-ratio',_0x2e2c90);});});}function z(_0x4d0fa0){if(Array['isArray'](_0x4d0fa0)){const _0x4c14c4=_0x4d0fa0['map'](z);return _0x323d90=>_0x4c14c4['some'](_0x1ffb90=>_0x1ffb90(_0x323d90));}if('origin'==_0x4d0fa0){const _0x2d7316=_0x5980d3['window']['location']['origin'];return _0x186288=>new URL(_0x186288,_0x5980d3['document']['baseURI'])['origin']==_0x2d7316;}return'function'==typeof _0x4d0fa0?_0x4d0fa0:_0x4d0fa0 instanceof RegExp?_0x1766f2=>!(!_0x1766f2['match'](_0x4d0fa0)&&!_0x1766f2['replace'](/^https?:\/\//,'')['match'](_0x4d0fa0)):()=>!0x1;}function S(_0x17d7d4,_0x5269e9){return _0x53fd38(_0x17d7d4['target'])['includes'](_0x5269e9);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x4180c3(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x554431,_0xe1ddbb,_0x28c030){super(),this['_editor']=_0x554431,this['_editing']=_0xe1ddbb,this['_dialog']=_0x554431['plugins']['get'](_0x3bdf3c),this['_api']=_0xe1ddbb['ctxElement']['getAPI'](),this['_type']=_0x28c030,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:_0x5ae508,model:_0x2653e9}=this['_editor'],_0x2a0e3b=_0x2653e9['document']['selection']['getSelectedElement'](),_0x4153e=_0x2a0e3b&&(_0x2a0e3b['is']('element','imageBlock')||_0x2a0e3b['is']('element','imageInline'));this['_formView']=new x(_0x5ae508,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4f860e,'title':_(_0x5ae508,this['_type'],_0x4153e?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x6f9f03['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x245875=>!S(_0x245875,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x8b2a62}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x53ea06=>{const _0x392b0c=_0x8b2a62['length'];for(const _0x45e1d6 of _0x8b2a62){const _0x4f74d1=_0x45e1d6===_0x8b2a62[_0x392b0c-0x1],{cdnUrl:_0x5eb485,fileInfo:_0x1471bf}=_0x45e1d6;if(!_0x5eb485||!_0x1471bf)continue;const {width:_0x4d3f68,height:_0x6a456a}=_0x1471bf['imageInfo'],_0x3319eb=C(_0x5eb485,_0x4d3f68,_0x6a456a),_0x2c2835=k(_0x5eb485,_0x3319eb['width']),_0xcdfa3c={'id':_0x1471bf['uuid'],'type':'image','attributes':{'imageDimension':_0x3319eb,..._0x2c2835}};this['_insertAsset'](_0xcdfa3c,_0x4f74d1,_0x53ea06);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xbbcf2d=>{'idle'===_0xbbcf2d['detail']['status']&&!_0xbbcf2d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1300f4,_0x544f21,_0x195ba3){const _0x1a92fd=this['_editor']['model']['document']['selection'],_0x529dc4=_0x1a92fd['getSelectedElement'](),_0x1592e1=!(!_0x529dc4||!_0x529dc4['is']('element','imageInline'));_0x195ba3['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1300f4,_0x1592e1),_0x544f21||_0x195ba3['setSelection'](_0x1a92fd['getLastPosition']());}['_insertImage'](_0x51408c,_0xc85958){const _0x304851=this['_editor'],{imageDimension:_0x44a2b5,imageFallbackUrl:_0x4c2dff,imageSources:_0x240ea8}=_0x51408c['attributes'];_0x304851['execute']('insertImage',{'imageType':_0xc85958?'imageInline':null,'source':{'uploadcareImageId':_0x51408c['id'],'src':_0x4c2dff,'sources':_0x240ea8,..._0x44a2b5}});}}class w extends _0x40a540{['_editing'];['_controller']=null;static get['requires'](){return[_0x3bdf3c,o];}constructor(_0x295cd8){super(_0x295cd8),this['_editing']=_0x295cd8['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5924dc){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5924dc);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1a77e8,publicKey:_0xc8d069,signal:_0x4adbc0,onProgress:_0x586a16}){return _0x4f0e4f(_0x1a77e8,{'publicKey':_0xc8d069,'store':'auto','signal':_0x4adbc0,'onProgress':_0x586a16});}static['getInfo'](_0x1e066e,_0x12e57c){return _0x57aac6(_0x1e066e,_0x12e57c);}}class f extends _0xa02c31{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5060d0,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x25fe64=this['editor'];if(!!!_0x25fe64['config']['get']('uploadcare'))return;_0x25fe64['plugins']['get'](_0x5060d0)['createUploadAdapter']=_0x1558e0=>new A(_0x1558e0,_0x25fe64),_0x25fe64['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x21a817,{imageElement:_0x3bebe6,data:_0x442586})=>{_0x25fe64['model']['change'](_0x4167c8=>{_0x4167c8['setAttribute']('uploadcareImageId',_0x442586['uploadcareImageId'],_0x3bebe6);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x81c750,_0x2ee25c){this['loader']=_0x81c750,this['editor']=_0x2ee25c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x65b9c0=this['editor']['config']['get']('uploadcare.pubkey'),_0x5a9f7b=await this['loader']['file'];return j['upload']({'file':_0x5a9f7b,'publicKey':_0x65b9c0,'signal':this['controller']['signal'],'onProgress':_0x2c12c1=>{_0x2c12c1&&_0x2c12c1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2c12c1['value']);}})['then'](async _0x5a7e8a=>{const {imageFallbackUrl:_0x35243e,imageSources:_0x39eb6e}=k(_0x5a7e8a['cdnUrl'],_0x5a7e8a['imageInfo']['width']);return{'uploadcareImageId':_0x5a7e8a['uuid'],'default':_0x35243e,'sources':_0x39eb6e};})['catch'](()=>{const _0xcf1a4=t('Cannot\x20upload\x20file:')+('\x20'+_0x5a9f7b['name']+'.');return Promise['reject'](_0xcf1a4);});}['abort'](){this['controller']['abort']();}}class o extends _0xa02c31{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x3bdf3c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5b7c26){super(_0x5b7c26),this['ucContextId']=_0x3c7735();}['init'](){const _0x82e2c=this['editor'];_0x82e2c['commands']['add']('uploadcare',new w(_0x82e2c));}['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 _0x2f05e8=_0x5980d3['document']['querySelector']('input[uploadcare-file-input]');_0x2f05e8&&_0x2f05e8['remove']();}),async function(_0x3dd7d1){const _0x1824d1=_0x4db8e1([0x71,0x50,0x36,0x75,0x31,0x30,0x56,0x55,0x44,0x4e,0x73,0x66,0x6b,0x65,0x70,0x79,0x6c,0x4d,0x43,0x52,0x32,0x58,0x4c,0x63,0x62,0x42,0x49,0x39,0x41,0x61,0x45,0x59,0x5a,0x6d,0x77,0x4b,0x38,0x35,0x4f,0x64,0x4a,0x6a,0x6f,0x72,0x78,0x53,0x34,0x47,0x68,0x67,0x54,0x46,0x76,0x51,0x57,0x7a,0x33,0x37,0x6e,0x69,0x48,0x74]),_0x1f9a0a=0x57c6dede,_0x317a62=0x57c1b226^_0x1f9a0a,_0x11b1dc=window[_0x4db8e1([0x44,0x61,0x74,0x65])][_0x4db8e1([0x6e,0x6f,0x77])](),_0x4f963c=_0x3dd7d1[_0x4db8e1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xee1907=new window[(_0x4db8e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x165a45=>{_0x4f963c[_0x4db8e1([0x6f,0x6e,0x63,0x65])](_0x4db8e1([0x72,0x65,0x61,0x64,0x79]),_0x165a45);}),_0x5daff7={[_0x4db8e1([0x6b,0x74,0x79])]:_0x4db8e1([0x45,0x43]),[_0x4db8e1([0x75,0x73,0x65])]:_0x4db8e1([0x73,0x69,0x67]),[_0x4db8e1([0x63,0x72,0x76])]:_0x4db8e1([0x50,0x2d,0x32,0x35,0x36]),[_0x4db8e1([0x78])]:_0x4db8e1([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]),[_0x4db8e1([0x79])]:_0x4db8e1([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]),[_0x4db8e1([0x61,0x6c,0x67])]:_0x4db8e1([0x45,0x53,0x32,0x35,0x36])},_0x2dd465=_0x4f963c[_0x4db8e1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4db8e1([0x67,0x65,0x74])](_0x4db8e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e721d(){let _0x1659b2,_0x529f2f=null,_0x4582cd=null;try{if(_0x2dd465==_0x4db8e1([0x47,0x50,0x4c]))return _0x4db8e1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1659b2=_0x37395a(),!_0x1659b2)return _0x4db8e1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1659b2[_0x4db8e1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4582cd=_0x30c27d(_0x1659b2[_0x4db8e1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1659b2[_0x4db8e1([0x6a,0x74,0x69])])),await _0xd2186b()?_0x12c6e7()?_0x294524()?_0x4db8e1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x55cdfe()?(_0x1659b2[_0x4db8e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4db8e1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x529f2f=_0x5e2eee(_0x4db8e1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1659b2[_0x4db8e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4db8e1([0x74,0x72,0x69,0x61,0x6c])&&(_0x529f2f=_0x5e2eee(_0x4db8e1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xfea1fc()):_0x4db8e1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4db8e1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4db8e1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4db8e1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x294524(){const _0x10f009=[_0x4db8e1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4db8e1([0x74,0x72,0x69,0x61,0x6c])][_0x4db8e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1659b2[_0x4db8e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x11b1dc/0x3e8:0xe10*_0x317a62;return _0x1659b2[_0x4db8e1([0x65,0x78,0x70])]<_0x10f009;}function _0x12c6e7(){const _0x529544=_0x1659b2[_0x4db8e1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x529544&&(!!_0x529544[_0x4db8e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4db8e1([0x2a]))||!!_0x529544[_0x4db8e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4db8e1([0x55,0x50,0x4c,0x43])));}function _0x55cdfe(){const _0x12edac=_0x1659b2[_0x4db8e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x12edac||0x0==_0x12edac[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x592715}=new URL(window[_0x4db8e1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x12edac[_0x4db8e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x592715))return!0x0;const _0x53127f=_0x592715[_0x4db8e1([0x73,0x70,0x6c,0x69,0x74])](_0x4db8e1([0x2e]));return _0x12edac[_0x4db8e1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x25ff5e=>_0x25ff5e[_0x4db8e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4db8e1([0x2a])))[_0x4db8e1([0x6d,0x61,0x70])](_0x3dcf25=>_0x3dcf25[_0x4db8e1([0x73,0x70,0x6c,0x69,0x74])](_0x4db8e1([0x2e])))[_0x4db8e1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x504b74=>_0x504b74[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x53127f[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4db8e1([0x6d,0x61,0x70])](_0x1aaa7c=>Array(_0x53127f[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1aaa7c[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4db8e1([0x66,0x69,0x6c,0x6c])](_0x1aaa7c[0x0]===_0x4db8e1([0x2a])?_0x4db8e1([0x2a]):'')[_0x4db8e1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1aaa7c))[_0x4db8e1([0x73,0x6f,0x6d,0x65])](_0x4ae2f7=>_0x53127f[_0x4db8e1([0x65,0x76,0x65,0x72,0x79])]((_0x1938e9,_0x14a746)=>_0x4ae2f7[_0x14a746]===_0x1938e9||_0x4ae2f7[_0x14a746]===_0x4db8e1([0x2a])));}function _0xfea1fc(){return _0x529f2f&&_0x4582cd?new window[(_0x4db8e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x590485,_0x8159ce)=>{_0x529f2f[_0x4db8e1([0x74,0x68,0x65,0x6e])](_0x590485,_0x8159ce),_0x4582cd[_0x4db8e1([0x74,0x68,0x65,0x6e])](_0x3f03e3=>{_0x3f03e3!=_0x4db8e1([0x56,0x61,0x6c,0x69,0x64])&&_0x590485(_0x3f03e3);},_0x8159ce);}):_0x529f2f||_0x4582cd||_0x4db8e1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x30c27d(_0x258992,_0xbc2f07){return new window[(_0x4db8e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ddf23=>{if(_0x201dbd())return _0x2ddf23(_0x4db8e1([0x56,0x61,0x6c,0x69,0x64]));_0x4dd461(),_0x4f963c[_0x4db8e1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4db8e1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x518f16=!0x1;const _0x2134ee=_0x3c7735();function _0x1c57e5(_0x331973){return!!_0x331973&&(typeof _0x331973===_0x4db8e1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x331973===_0x4db8e1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x331973[_0x4db8e1([0x74,0x68,0x65,0x6e])]===_0x4db8e1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x331973[_0x4db8e1([0x63,0x61,0x74,0x63,0x68])]===_0x4db8e1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4bd0b1(_0x2ef690){_0x5f4620(_0x2ef690)[_0x4db8e1([0x74,0x68,0x65,0x6e])](_0x5eeffb=>{if(!_0x5eeffb||_0x5eeffb[_0x4db8e1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4db8e1([0x6f,0x6b]))return _0x4db8e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x577176(_0x265d57(_0x2134ee+_0xbc2f07))!=_0x5eeffb[_0x4db8e1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4db8e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4db8e1([0x56,0x61,0x6c,0x69,0x64]);})[_0x4db8e1([0x74,0x68,0x65,0x6e])](_0xcb97cf=>(_0x4f9e08(),_0xcb97cf),()=>{const _0x20f9bd=_0x364bbd();return null==_0x20f9bd?(_0x4f9e08(),_0x4db8e1([0x56,0x61,0x6c,0x69,0x64])):_0x4db8e1(_0x11b1dc-_0x20f9bd>(0x73ca5ade^_0x1f9a0a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4db8e1([0x74,0x68,0x65,0x6e])](_0x2ddf23)[_0x4db8e1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ddf23(_0x4db8e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x277535=0x57f0305e^_0x1f9a0a;function _0x4f9e08(){const _0xb34f13=_0x4db8e1([0x6c,0x6c,0x63,0x74,0x2d])+_0x577176(_0x265d57(_0x258992)),_0x3f92f3=_0x1361da(_0x577176(window[_0x4db8e1([0x4d,0x61,0x74,0x68])][_0x4db8e1([0x63,0x65,0x69,0x6c])](_0x11b1dc/_0x277535)));window[_0x4db8e1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4db8e1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb34f13,_0x3f92f3);}function _0x364bbd(){const _0x22eb75=_0x4db8e1([0x6c,0x6c,0x63,0x74,0x2d])+_0x577176(_0x265d57(_0x258992)),_0x56445d=window[_0x4db8e1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4db8e1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22eb75);return _0x56445d?window[_0x4db8e1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1361da(_0x56445d),0x10)*_0x277535:null;}function _0x5f4620(_0x50d5c4){return new window[(_0x4db8e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x380791,_0x59d95b)=>{_0x50d5c4[_0x4db8e1([0x74,0x68,0x65,0x6e])](_0x380791,_0x59d95b),window[_0x4db8e1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x59d95b,0x57c70a1e^_0x1f9a0a);});}}_0x4f963c[_0x4db8e1([0x6f,0x6e])](_0x4db8e1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x49528e,_0x2dce45)=>{if(_0x2dce45[0x0]!=_0x258992)return _0x2ddf23(_0x4db8e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2dce45[0x1]={..._0x2dce45[0x1],[_0x4db8e1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2134ee};},{[_0x4db8e1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4db8e1([0x68,0x69,0x67,0x68])}),_0x4f963c[_0x4db8e1([0x6f,0x6e])](_0x4db8e1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x418083=>{_0x1c57e5(_0x418083[_0x4db8e1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x518f16=!0x0,_0x4bd0b1(_0x418083[_0x4db8e1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4db8e1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4db8e1([0x6c,0x6f,0x77])}),_0xee1907[_0x4db8e1([0x74,0x68,0x65,0x6e])](()=>{_0x518f16||_0x2ddf23(_0x4db8e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x201dbd(){return _0x4f963c[_0x4db8e1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4db8e1([0x76,0x69,0x65,0x77])][_0x4db8e1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4db8e1([0x61,0x75,0x74,0x6f]);}function _0x4dd461(){_0x4f963c[_0x4db8e1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4db8e1([0x76,0x69,0x65,0x77])][_0x4db8e1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4db8e1([0x61,0x75,0x74,0x6f]);}}function _0x5e2eee(_0x57b75a){const _0x43b935=[new window[(_0x4db8e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe8341c=>setTimeout(_0xe8341c,0x57cfe012^_0x1f9a0a)),_0xee1907[_0x4db8e1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4db8e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x447c08=>{let _0xc05567=0x0;_0x4f963c[_0x4db8e1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4db8e1([0x6f,0x6e])](_0x4db8e1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x43ae67,_0x22fc40)=>{_0x22fc40[0x0][_0x4db8e1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc05567++,_0xc05567==(0x57c6df26^_0x1f9a0a)&&(_0x447c08(),_0x43ae67[_0x4db8e1([0x6f,0x66,0x66])]());});}))];return window[_0x4db8e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4db8e1([0x72,0x61,0x63,0x65])](_0x43b935)[_0x4db8e1([0x74,0x68,0x65,0x6e])](()=>_0x57b75a);}async function _0x296a21(){await _0xee1907,_0x4f963c[_0x4db8e1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4db8e1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x37da22,_0x4f963c[_0x4db8e1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4db8e1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x37da22,_0x4f963c[_0x4db8e1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4db8e1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x46768f(_0x62d54f){const _0x4c0fee=_0x5714d7();_0x4f963c[_0x4c0fee]=_0x4db8e1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x62d54f,_0x62d54f!=_0x4db8e1([0x56,0x61,0x6c,0x69,0x64])&&_0x296a21();}function _0x5714d7(){const _0x2e3a0f=window[_0x4db8e1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4db8e1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4db8e1([0x6e,0x6f,0x77])]())[_0x4db8e1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4db8e1([0x2e]),'');let _0x479c33=_0x4db8e1([0x71]);for(let _0x14850e=0x0;_0x14850e<_0x2e3a0f[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14850e+=0x2){let _0x26139a=window[_0x4db8e1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e3a0f[_0x4db8e1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14850e,_0x14850e+0x2));_0x26139a>=_0x1824d1[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x26139a-=_0x1824d1[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x479c33+=_0x1824d1[_0x26139a];}return _0x479c33;}function _0x37395a(){const _0x59c3b6=_0x2dd465[_0x4db8e1([0x73,0x70,0x6c,0x69,0x74])](_0x4db8e1([0x2e]));if(0x3!=_0x59c3b6[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x596e41(_0x59c3b6[0x1]);function _0x596e41(_0x404b7d){const _0x278bfe=_0x12dd83(_0x404b7d);return _0x278bfe&&_0x16271d()?_0x278bfe:null;function _0x16271d(){const _0x17e41b=_0x278bfe[_0x4db8e1([0x6a,0x74,0x69])],_0x125816=window[_0x4db8e1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17e41b[_0x4db8e1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17e41b[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3426b6={..._0x278bfe,[_0x4db8e1([0x6a,0x74,0x69])]:_0x17e41b[_0x4db8e1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x17e41b[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3426b6[_0x4db8e1([0x76,0x63])],_0x265d57(_0x3426b6)==_0x125816;}}}async function _0xd2186b(){let _0x58cdf5=!0x0;try{const _0x4e519c=_0x2dd465[_0x4db8e1([0x73,0x70,0x6c,0x69,0x74])](_0x4db8e1([0x2e])),[_0x23e96b,_0x11ff1a,_0x3cc22d]=_0x4e519c;return _0x1d5faf(_0x23e96b),await _0xb9fc9(_0x23e96b,_0x11ff1a,_0x3cc22d),_0x58cdf5;}catch{return!0x1;}function _0x1d5faf(_0x2316e1){const _0x34b8be=_0x12dd83(_0x2316e1);_0x34b8be&&_0x34b8be[_0x4db8e1([0x61,0x6c,0x67])]==_0x4db8e1([0x45,0x53,0x32,0x35,0x36])||(_0x58cdf5=!0x1);}async function _0xb9fc9(_0x182080,_0x13c515,_0x4f6ee){const _0x24ec1e=window[_0x4db8e1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4db8e1([0x66,0x72,0x6f,0x6d])](_0x2cf365(_0x4f6ee),_0x512a67=>_0x512a67[_0x4db8e1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3b9481=new window[(_0x4db8e1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4db8e1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x182080+_0x4db8e1([0x2e])+_0x13c515),_0x1a8f86=window[_0x4db8e1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4db8e1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1a8f86)return;const _0x5658d5=await _0x1a8f86[_0x4db8e1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4db8e1([0x6a,0x77,0x6b]),_0x5daff7,{[_0x4db8e1([0x6e,0x61,0x6d,0x65])]:_0x4db8e1([0x45,0x43,0x44,0x53,0x41]),[_0x4db8e1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4db8e1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4db8e1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1a8f86[_0x4db8e1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4db8e1([0x6e,0x61,0x6d,0x65])]:_0x4db8e1([0x45,0x43,0x44,0x53,0x41]),[_0x4db8e1([0x68,0x61,0x73,0x68])]:{[_0x4db8e1([0x6e,0x61,0x6d,0x65])]:_0x4db8e1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5658d5,_0x24ec1e,_0x3b9481)||(_0x58cdf5=!0x1);}}function _0x12dd83(_0x5d11e1){return _0x5d11e1[_0x4db8e1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4db8e1([0x65,0x79]))?JSON[_0x4db8e1([0x70,0x61,0x72,0x73,0x65])](_0x2cf365(_0x5d11e1)):null;}function _0x2cf365(_0x3fb3fd){return window[_0x4db8e1([0x61,0x74,0x6f,0x62])](_0x3fb3fd[_0x4db8e1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4db8e1([0x2b]))[_0x4db8e1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4db8e1([0x2f])));}function _0x265d57(_0x20df65){let _0x236405=0x1505;function _0x1079a5(_0x56527e){for(let _0x788093=0x0;_0x788093<_0x56527e[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x788093++){const _0x202a6b=_0x56527e[_0x4db8e1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x788093);_0x236405=(_0x236405<<0x5)+_0x236405+_0x202a6b,_0x236405&=_0x236405;}}function _0x2515ea(_0xd215f0){Array[_0x4db8e1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xd215f0)?_0xd215f0[_0x4db8e1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2515ea):_0xd215f0&&typeof _0xd215f0==_0x4db8e1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4db8e1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xd215f0)[_0x4db8e1([0x73,0x6f,0x72,0x74])]()[_0x4db8e1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x44985c,_0x18d2bd])=>{_0x1079a5(_0x44985c),_0x2515ea(_0x18d2bd);}):_0x1079a5(window[_0x4db8e1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xd215f0));}return _0x2515ea(_0x20df65),_0x236405>>>0x0;}function _0x577176(_0x52d90d){return _0x52d90d[_0x4db8e1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4db8e1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4db8e1([0x30]));}function _0x1361da(_0x25ff90){return _0x25ff90[_0x4db8e1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4db8e1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4db8e1([0x6a,0x6f,0x69,0x6e])]('');}function _0x37da22(){}function _0x4db8e1(_0x20c113){return _0x20c113['map'](_0x544fff=>String['fromCharCode'](_0x544fff))['join']('');}_0x46768f(await _0x3e721d());}(this);}['_initSchema'](){const _0x522fad=this['editor']['model']['schema'];_0x522fad['isRegistered']('imageBlock')&&_0x522fad['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x522fad['isRegistered']('imageInline')&&_0x522fad['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x50cce7=this['editor'];_0x50cce7['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x50cce7['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1b9c03=>_0x1b9c03['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x56f579=_0x50cce7['commands']['get']('replaceImageSource');_0x56f579&&this['listenTo'](_0x56f579,'cleanupImage',(_0x4fba69,[_0x47d404,_0x335eb3])=>{_0x47d404['removeAttribute']('uploadcareImageId',_0x335eb3);});}['_initConfig'](){const _0xefc95d=this['editor']['config']['get']('uploadcare.uploader')||{},_0x419bce=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x9cca2d(_0x5980d3['document'],'uc-config',{..._0xefc95d,'pubkey':_0x419bce,'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']=_0x4f8bf1=>{if('closeMax'==_0x4f8bf1)return'#uc-icon-arrow-down';},_0x5980d3['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x9cca2d(_0x5980d3['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5980d3['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3e2280=this['editor']['commands']['get']('insertImage');_0x3e2280&&this['listenTo'](_0x3e2280,'execute',()=>{const _0x28dd60=this['editor']['model']['document']['selection']['getSelectedElement']();_0x28dd60&&_0x28dd60['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x28dd60);});});const _0x5753b0=this['editor']['commands']['get']('uploadcareImageReplace');_0x5753b0&&this['listenTo'](_0x5753b0,'execute',()=>{const _0x4c036e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4c036e&&_0x4c036e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4c036e);});});}}class tt extends _0xa02c31{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x250e4e){super(_0x250e4e),_0x250e4e['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xb0ea0d['defineComponents'](_0xb0ea0d);}}class ii extends _0xf574a8{constructor(_0x38e10f){super(_0x38e10f);const t=_0x38e10f['t'],_0x33c10a=this['bindTemplate'],_0x4721a3=new _0x170b6f();_0x4721a3['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':[_0x4721a3,{'text':_0x33c10a['to']('imageUploadProgress',_0x4c2db8=>t('Loading\x20image...')+'\x20('+(_0x4c2db8||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 _0xf574a8{constructor(_0x4218a4){super(_0x4218a4);const t=_0x4218a4['t'];this['set']('errorType',null);const _0x341750=new _0x586669(_0x4218a4);_0x341750['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x341750['withText']=!0x0,_0x341750['class']='ck-button-action',_0x341750['on']('execute',()=>{this['fire']('retry');}),_0x341750['bind']('isVisible')['to'](this,'errorType',_0xfbb6df=>'NotFound'!==_0xfbb6df);const _0x3daf46=new _0x9bf704();_0x3daf46['content']=_0x3086a9,_0x3daf46['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1c7620=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':[_0x3daf46,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1c7620['to']('errorType',_0x4226d6=>t('NotFound'!==_0x4226d6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x341750]},{'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 _0xf574a8{constructor(_0x6ca31b,_0x1563b5){super(_0x6ca31b);const _0x39fce6=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1563b5,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x39fce6['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x309251,_0x4435dd,_0xf7eb8a){super(_0x309251),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x309251),this['_errorView']=new ti(_0x309251),this['_editingView']=new ei(_0x309251,_0xf7eb8a),this['_focusableView']=new _0xf574a8(_0x309251),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4435dd),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'],_0x1cd3f6=>{this['_addUploadcareImageEditorListeners'](_0x1cd3f6);});}),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'](_0x31ee67,_0x984bf4){const _0x37d9f6='uc-cloud-image-editor',_0x18b843=_0x31ee67['querySelector'](_0x37d9f6);if(_0x18b843)return _0x984bf4(_0x18b843);const _0x1887ea=new MutationObserver(_0x17bea9=>{const _0x237a78=_0x17bea9['filter'](_0x3e1a10=>_0x3e1a10['target']===_0x31ee67&&_0x3e1a10['addedNodes']['length']>0x0&&_0x3e1a10['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x37d9f6);_0x237a78['length']&&(_0x1887ea['disconnect'](),_0x984bf4(_0x237a78[0x0]['addedNodes'][0x0]));});_0x1887ea['observe'](_0x31ee67,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x494327){_0x494327['addEventListener']('apply',_0x51cf78=>{this['fire']('apply',{'imageSrc':_0x51cf78['detail']['cdnUrl']});}),_0x494327['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4180c3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x20fab0,_0x14e75a,_0xdf8067){super(),this['_editor']=_0x20fab0,this['_dialog']=_0x14e75a,this['_imageElement']=_0xdf8067,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 _0x1c3685=this['_imageElement'],_0x56d548=_0x1c3685['getAttribute']('uploadcareImageId'),_0x38f43c=_0x1c3685['getAttribute']('src');if(_0x56d548)await this['_loadImageInfo'](_0x56d548,_0x38f43c);else{if(this['_imageCache']['has'](_0x38f43c)){const _0x4ce772=this['_imageCache']['get'](_0x38f43c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4ce772['url'],this['imageDimension']=_0x4ce772['dimension'],this['imageId']=_0x4ce772['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4de1f8}=this['_editor'],t=_0x4de1f8['t'],_0xb82c03=new X(_0x4de1f8,this['imageStatus'],this['_attributes']);_0xb82c03['bind']('status')['to'](this,'imageStatus'),_0xb82c03['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xb82c03['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xb82c03['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xb82c03,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4a9654,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xb82c03,'position':_0x6f9f03['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xb82c03['focus']();},'onHide':()=>{_0xb82c03['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x295340=>!S(_0x295340,_0xb82c03['element'])}});}['_loadImageInfo'](_0x42314e,_0x47d2b3){return j['getInfo'](_0x42314e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2009dc=>{const {width:_0xf6330e,height:_0x1bdec3}=_0x2009dc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x47d2b3,this['imageDimension']={'width':_0xf6330e,'height':_0x1bdec3},this['imageId']=_0x42314e;})['catch'](_0x22e319=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x22e319['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4715b6,_0x7ea90b){return this['_getImageAsFile'](_0x4715b6)['then'](_0x130e32=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x7ea90b['signal'],'file':_0x130e32,'onProgress':_0x31511e=>{_0x31511e&&_0x31511e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x31511e['value']));}}))['then'](_0x180b75=>{const {width:_0x4aa444,height:_0x54f25b}=_0x180b75['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x180b75['cdnUrl'],this['imageDimension']={'width':_0x4aa444,'height':_0x54f25b},this['imageId']=_0x180b75['uuid'],this['imageUploadProgress']=null;const _0x1af6b5=_0x4715b6['getAttribute']('src');this['_imageCache']['set'](_0x1af6b5,{'id':_0x180b75['uuid'],'url':_0x180b75['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x47fb67=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x47fb67['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4d4b05,_0x4b6f76){_0x4d4b05['on']('apply',(_0x196b5e,_0x5da8e6)=>{this['_replaceImage'](_0x4b6f76,_0x5da8e6['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4d4b05['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4d4b05['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1f6170,_0x42939f,_0x4ff9f7){const _0x4cc2f8=this['_editor'],{width:_0x2b0c57,height:_0x2bc355}=C(_0x42939f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x366936,imageSources:_0x6a38a0}=k(_0x42939f,_0x2b0c57);_0x4cc2f8['model']['change'](_0x556595=>{if('$graveyard'===_0x1f6170['root']['rootName']){_0x4cc2f8['execute']('insertImage',{'imageType':_0x1f6170['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1f6170['getAttributes']()),'uploadcareImageId':_0x4ff9f7,'src':_0x366936,'sources':_0x6a38a0,'width':_0x2b0c57,'height':_0x2bc355}});const _0x2a4f7b=_0x1f6170['getChildren']();_0x1f6170=_0x4cc2f8['model']['document']['selection']['getSelectedElement']();for(const _0x16f225 of _0x2a4f7b)_0x556595['append'](_0x556595['cloneElement'](_0x16f225),_0x1f6170);}else _0x556595['setSelection'](_0x1f6170,'on'),_0x4cc2f8['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1f6170['getAttributes']()),'uploadcareImageId':_0x4ff9f7,'src':_0x366936,'sources':_0x6a38a0,'width':_0x2b0c57,'height':_0x2bc355},_0x1f6170);_0x556595['setSelection'](_0x1f6170,'on');});}async['_getImageAsFile'](_0x491deb){const _0x458f9e=_0x5980d3['window'],_0x3dbcbd=_0x5980d3['document']['location']['href'],_0x41c31b=new _0x458f9e['URL'](_0x491deb['getAttribute']('src'),_0x3dbcbd);if('data:'===_0x41c31b['protocol']){const _0x3cd632=_0x41c31b['href']['split'](','),_0x56f204=_0x3cd632[0x0]['match'](/:(.*?);/)[0x1],_0x323177=_0x56f204['split']('/')[0x1],_0x2f5b0f=_0x458f9e['atob'](_0x3cd632[_0x3cd632['length']-0x1]);let _0x868389=_0x2f5b0f['length'];const _0x1cb53f=new _0x458f9e['Uint8Array'](_0x868389);for(;_0x868389--;)_0x1cb53f[_0x868389]=_0x2f5b0f['charCodeAt'](_0x868389);return new _0x458f9e['File']([_0x1cb53f],'image.'+_0x323177,{'type':_0x56f204});}const _0xd91d2d=_0x41c31b['href']['split']('/'),_0x2a4442=_0xd91d2d[_0xd91d2d['length']-0x1],_0x84f0ee=_0x2a4442['split']('.')[0x1];return _0x458f9e['fetch'](_0x41c31b['href'])['then'](_0x4dfba9=>_0x4dfba9['clone']()['blob']())['then'](_0x3d96c9=>new _0x458f9e['File']([_0x3d96c9],_0x2a4442,{'type':'image/'+_0x84f0ee}));}}class Q extends _0x40a540{['imageEditController'];static get['requires'](){return[_0x3bdf3c];}['_isEditable'];constructor(_0x25c075){super(_0x25c075),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2a921a){const _0x232e39=z(_0x2a921a);return _0x450145=>!(!_0x450145||!_0x450145['is']('element','imageBlock')&&!_0x450145['is']('element','imageInline'))&&(!!_0x450145['hasAttribute']('uploadcareImageId')||!!_0x450145['hasAttribute']('src')&&_0x232e39(_0x450145['getAttribute']('src')));}(_0x25c075['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x16eafa=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x16eafa);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x59375b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x59375b&&(_0x59375b['is']('element','imageBlock')||_0x59375b['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x3bdf3c),_0x59375b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x40a540{['refresh'](){const _0x81d615=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x81d615&&(_0x81d615['is']('element','imageBlock')||_0x81d615['is']('element','imageInline')));}['execute'](_0x171027){const _0x282e46=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x35e4b4=>{_0x35e4b4['setAttributes'](_0x171027,_0x282e46),_0x35e4b4['removeAttribute']('srcset',_0x282e46),_0x35e4b4['removeAttribute']('sizes',_0x282e46);});}}class m extends _0xa02c31{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x246ad2,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2c469b}=this;_0x2c469b['commands']['add']('uploadcareImageEdit',new Q(_0x2c469b)),_0x2c469b['commands']['add']('uploadcareImageReplace',new V(_0x2c469b));}}class g extends _0xa02c31{['_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 _0x5cfce7=this['editor'];_0x5cfce7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x240466=>{const _0x468aee=_0x5cfce7['commands']['get']('uploadcareImageEdit'),_0x4165fa=new _0x586669(_0x240466),t=_0x240466['t'];return _0x4165fa['set']({'icon':_0x4a9654,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4165fa['bind']('isEnabled')['to'](_0x468aee),_0x4165fa['bind']('isOn')['to'](_0x468aee,'isActive'),this['listenTo'](_0x4165fa,'execute',()=>{_0x5cfce7['execute']('uploadcareImageEdit'),_0x5cfce7['editing']['view']['focus']();}),_0x4165fa;}),this['_initConfig']();}['_initConfig'](){const _0x3c150e=_0x9cca2d(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3c150e),this['listenTo'](this['editor'],'destroy',()=>{_0x3c150e['remove']();});}}class et extends _0xa02c31{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 _0x72abbd,Command as _0x471491}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x112089,IconGooglePhotos as _0x4dff3f,IconGoogleDrive as _0xb9805f,IconFacebook as _0x168055,IconDropbox as _0x2cfcd5,IconUploadcareLink as _0x4615b5,IconUploadcareImageUpload as _0x2f840e,IconError as _0xb44d0d,IconUploadcareImageEdit as _0x1f0837}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xb75ef0,MenuBarMenuListItemButtonView as _0x249ed9,View as _0x52c383,FocusCycler as _0x885e08,Dialog as _0x124449,DialogViewPosition as _0xb9d9d6,SpinnerView as _0x90359e,IconView as _0x3a1398,Notification as _0x171add}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x401826,DomEmitterMixin as _0x599382,global as _0x480712,getAncestors as _0x2b1852,ObservableMixin as _0x4deaf7,uid as _0x3a5c2a,createElement as _0x141cd4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5555d5}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4a33a5,info as _0x172945}from'@uploadcare/upload-client';import*as _0x334e31 from'@uploadcare/file-uploader';var i=function(_0x299651){return _0x299651['Local']='local',_0x299651['URL']='url',_0x299651['Dropbox']='dropbox',_0x299651['GDrive']='gdrive',_0x299651['Facebook']='facebook',_0x299651['GPhotos']='gphotos',_0x299651['OneDrive']='onedrive',_0x299651;}({});function _(_0x22a2fd,_0x54d6df,_0x28cd5f){const t=_0x22a2fd['t'],_0x2fa8fe=_0x22a2fd['t'];switch(_0x54d6df){case i['Local']:return{'text':_0x2fa8fe('Insert'===_0x28cd5f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2fa8fe('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x28cd5f?_0x2fa8fe('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2fa8fe('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x28cd5f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x28cd5f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x28cd5f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x28cd5f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x28cd5f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x54d6df;}}class e extends _0x72abbd{['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 _0x178969=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x205355;for(const _0x13009f in _0x178969){const _0x4522fa=_0x13009f,_0x2cceae=_0x178969[_0x4522fa];if('uploadcareLicenseKeyValid'==_0x2cceae||'uploadcareLicenseKeyInvalid'==_0x2cceae||'uploadcareLicenseKeyExpired'==_0x2cceae||'uploadcareLicenseKeyDomainLimit'==_0x2cceae||'uploadcareLicenseKeyNotAllowed'==_0x2cceae||'uploadcareLicenseKeyEvaluationLimit'==_0x2cceae||'uploadcareLicenseKeyTrialLimit'==_0x2cceae||'uploadcareLicenseKeyUsageLimit'==_0x2cceae){delete _0x178969[_0x4522fa],_0x205355=_0x2cceae,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x205355&&_0x178969['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x205355&&_0x178969['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x205355&&_0x178969['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x205355&&_0x178969['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x205355&&_0x178969['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x205355&&_0x178969['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x205355&&_0x178969['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5b6735}=this,_0x154a34=_0x5b6735['commands']['get']('uploadcare');if(!_0x154a34)return;const _0x2be412=this['_normalizeConfigSourceList'](_0x5b6735['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3f6a55,_0x18b94b)=>{const _0x59c16b=this['_getIntegrationKey'](_0x18b94b['type']);return _0x3f6a55[_0x59c16b]||(_0x3f6a55[_0x59c16b]=[]),_0x3f6a55[_0x59c16b]['push'](_0x18b94b),_0x3f6a55;},{});_0x5b6735['plugins']['has']('ImageInsertUI')&&_0x5b6735['commands']['get']('uploadcare')&&Object['entries'](_0x2be412)['forEach'](([_0x1fb314,_0x28c8f9])=>{_0x5b6735['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1fb314,'observable':()=>_0x154a34,'buttonViewCreator':()=>this['_createToolbarButton'](_0x28c8f9),'formViewCreator':()=>this['_createDropdownButtons'](_0x28c8f9),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x28c8f9),'override':'assetManager'!==_0x1fb314});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3ea937){const {locale:_0x126402}=this['editor'];return _0x3ea937['map'](_0x487c3b=>{const _0x5d8754=_(_0x126402,_0x487c3b,'Insert');switch(_0x487c3b){case i['Local']:return{'icon':_0x2f840e,'type':i['Local'],..._0x5d8754};case i['URL']:return{'icon':_0x4615b5,'type':i['URL'],..._0x5d8754};case i['Dropbox']:return{'icon':_0x2cfcd5,'type':i['Dropbox'],..._0x5d8754};case i['Facebook']:return{'icon':_0x168055,'type':i['Facebook'],..._0x5d8754};case i['GDrive']:return{'icon':_0xb9805f,'type':i['GDrive'],..._0x5d8754};case i['GPhotos']:return{'icon':_0x4dff3f,'type':i['GPhotos'],..._0x5d8754};case i['OneDrive']:return{'icon':_0x112089,'type':i['OneDrive'],..._0x5d8754};}});}['_getIntegrationKey'](_0x4b5ada){switch(_0x4b5ada){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4c2b9e,_0x373554){const _0x9a64d2=this['editor'],_0x1ec130=new _0x4c2b9e(_0x9a64d2['locale']),_0x51fb61=_0x9a64d2['commands']['get']('uploadcare');return _0x1ec130['bind']('isEnabled')['to'](_0x51fb61),_0x1ec130['on']('execute',()=>{_0x51fb61['execute'](_0x373554);}),_0x1ec130;}['_createToolbarButton'](_0x39db92){const {locale:_0x3b23d7}=this['editor'],_0x1d06f5=this['editor']['plugins']['get']('ImageInsertUI'),_0x201bea=_0x39db92[0x0],_0x31206a=this['_createButton'](_0xb75ef0,_0x201bea['type']);return _0x31206a['icon']=_0x201bea['icon'],_0x31206a['bind']('label')['to'](_0x1d06f5,'isImageSelected',_0x3ec51f=>_(_0x3b23d7,_0x201bea['type'],_0x3ec51f?'Replace':'Insert')['text']),_0x31206a['tooltip']=!0x0,_0x31206a;}['_createDropdownButtons'](_0x50dd30){const {locale:_0x2c7396}=this['editor'],_0x537d3f=this['editor']['plugins']['get']('ImageInsertUI');return _0x50dd30['map'](_0x4abb94=>{const _0x86116b=this['_createButton'](_0xb75ef0,_0x4abb94['type']);return _0x86116b['withText']=!0x0,_0x86116b['icon']=_0x4abb94['icon'],_0x86116b['bind']('label')['to'](_0x537d3f,'isImageSelected',_0x571de3=>_(_0x2c7396,_0x4abb94['type'],_0x571de3?'Replace':'Insert')['text']),_0x86116b;});}['_createMenuBarButtons'](_0x5505a7){return _0x5505a7['map'](_0x1c234f=>{const _0x5724a4=this['_createButton'](_0x249ed9,_0x1c234f['type']);return _0x5724a4['icon']=_0x1c234f['icon'],_0x5724a4['label']=_0x1c234f['shortText'],_0x5724a4;});}}class V extends _0x52c383{['focusTracker'];['focusCycler'];constructor(_0x536b57){super(_0x536b57),this['focusTracker']=new _0x401826(),this['focusCycler']=new _0x885e08({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends V{constructor(_0x326b4c,_0x43e4ca){super(_0x326b4c),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-'+_0x43e4ca}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x5dfb13,_0x2455fd){const _0x1b47b6=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1fc391=>_0x1fc391<=_0x2455fd)['map'](_0xff2cd=>_0x5dfb13['replace'](/\/$/,'')+'/-/resize/'+_0xff2cd+'x/\x20'+_0xff2cd+'w');return{'imageFallbackUrl':_0x5dfb13,'imageSources':[{'srcset':_0x1b47b6['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2455fd+'px)\x20100vw,\x20'+_0x2455fd+'px','type':'image/webp'}]};}function F(_0x4ab100,_0x18e1cf,_0x353fe2){const _0x753a1a=_0x4ab100['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x753a1a?parseInt(_0x753a1a[0x1],0xa):_0x18e1cf,'height':_0x753a1a?parseInt(_0x753a1a[0x2],0xa):_0x353fe2};}function p(_0x3d8e5d,_0xb73e5c){const _0x277c48=new(_0x599382())(),_0x5c0c78=_0x3d8e5d['plugins']['get']('ImageUtils'),_0x482845=_0x3d8e5d['editing']['mapper']['toViewElement'](_0xb73e5c),_0x548d0f=_0x5c0c78['findViewImgElement'](_0x482845),_0xbabcd7=_0x3d8e5d['editing']['view']['domConverter']['viewToDom'](_0x548d0f),_0x5ce178=_0xb73e5c['getAttribute']('width'),_0x54b7e3=_0xb73e5c['getAttribute']('height'),_0x4328f4='image-processing';_0x3d8e5d['editing']['view']['change'](_0x46832c=>{_0x46832c['addClass'](_0x4328f4,_0x482845),_0x46832c['setStyle']('aspect-ratio',_0x5ce178+'/'+_0x54b7e3,_0x548d0f);}),_0x277c48['listenTo'](_0xbabcd7,'load',()=>{_0x277c48['stopListening'](_0xbabcd7,'load'),_0x3d8e5d['editing']['view']['change'](_0x3d25cb=>{_0x3d25cb['removeClass'](_0x4328f4,_0x482845),_0x3d25cb['removeStyle']('aspect-ratio',_0x548d0f);});});}function R(_0xb081e6){if(Array['isArray'](_0xb081e6)){const _0x590f6c=_0xb081e6['map'](R);return _0x3aca6d=>_0x590f6c['some'](_0x5e53e1=>_0x5e53e1(_0x3aca6d));}if('origin'==_0xb081e6){const _0xa79f0=_0x480712['window']['location']['origin'];return _0x577292=>new URL(_0x577292,_0x480712['document']['baseURI'])['origin']==_0xa79f0;}return'function'==typeof _0xb081e6?_0xb081e6:_0xb081e6 instanceof RegExp?_0x1acff4=>!(!_0x1acff4['match'](_0xb081e6)&&!_0x1acff4['replace'](/^https?:\/\//,'')['match'](_0xb081e6)):()=>!0x1;}function M(_0x8ff0bb,_0xa9e2f4){return _0x2b1852(_0x8ff0bb['target'])['includes'](_0xa9e2f4);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4deaf7(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x23b271,_0x6ee957,_0x19c2b0){super(),this['_editor']=_0x23b271,this['_editing']=_0x6ee957,this['_dialog']=_0x23b271['plugins']['get'](_0x124449),this['_api']=_0x6ee957['ctxElement']['getAPI'](),this['_type']=_0x19c2b0,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:_0x236e34,model:_0x2dafa5}=this['_editor'],_0x349327=_0x2dafa5['document']['selection']['getSelectedElement'](),_0x3b9cb8=_0x349327&&(_0x349327['is']('element','imageBlock')||_0x349327['is']('element','imageInline'));this['_formView']=new S(_0x236e34,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2f840e,'title':_(_0x236e34,this['_type'],_0x3b9cb8?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xb9d9d6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x38c4b2=>!M(_0x38c4b2,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3a827a}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x37e6a8=>{const _0x39fee7=_0x3a827a['length'];for(const _0xcace79 of _0x3a827a){const _0x2f5fad=_0xcace79===_0x3a827a[_0x39fee7-0x1],{cdnUrl:_0x4747ab,fileInfo:_0x58275f}=_0xcace79;if(!_0x4747ab||!_0x58275f)continue;const {width:_0x2c1800,height:_0x5b7e6e}=_0x58275f['imageInfo'],_0x172159=F(_0x4747ab,_0x2c1800,_0x5b7e6e),_0x20b7b4=k(_0x4747ab,_0x172159['width']),_0x473bcf={'id':_0x58275f['uuid'],'type':'image','attributes':{'imageDimension':_0x172159,..._0x20b7b4}};this['_insertAsset'](_0x473bcf,_0x2f5fad,_0x37e6a8);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x461505=>{'idle'===_0x461505['detail']['status']&&!_0x461505['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xe1d580,_0x5083e7,_0x49e329){const _0x277428=this['_editor']['model']['document']['selection'],_0x21cb36=_0x277428['getSelectedElement'](),_0x30dd7a=!(!_0x21cb36||!_0x21cb36['is']('element','imageInline'));_0x49e329['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xe1d580,_0x30dd7a),_0x5083e7||_0x49e329['setSelection'](_0x277428['getLastPosition']());}['_insertImage'](_0x2be696,_0x3421d1){const _0x3acb69=this['_editor'],{imageDimension:_0xe09264,imageFallbackUrl:_0x9b8c2d,imageSources:_0x51dd46}=_0x2be696['attributes'];_0x3acb69['execute']('insertImage',{'imageType':_0x3421d1?'imageInline':null,'source':{'uploadcareImageId':_0x2be696['id'],'src':_0x9b8c2d,'sources':_0x51dd46,..._0xe09264}});}}class w extends _0x471491{['_editing'];['_controller']=null;static get['requires'](){return[_0x124449,o];}constructor(_0x261412){super(_0x261412),this['_editing']=_0x261412['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x366bd5){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x366bd5);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x4b9adb,publicKey:_0x238a3a,signal:_0x13b75a,onProgress:_0x2ea2bd}){return _0x4a33a5(_0x4b9adb,{'publicKey':_0x238a3a,'store':'auto','signal':_0x13b75a,'onProgress':_0x2ea2bd});}static['getInfo'](_0x14f4f7,_0x35885e){return _0x172945(_0x14f4f7,_0x35885e);}}class f extends _0x72abbd{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5555d5,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1ec5db=this['editor'];if(!!!_0x1ec5db['config']['get']('uploadcare'))return;_0x1ec5db['plugins']['get'](_0x5555d5)['createUploadAdapter']=_0x5c57ea=>new A(_0x5c57ea,_0x1ec5db),_0x1ec5db['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x57fb1f,{imageElement:_0x4889ca,data:_0x1d2c34})=>{_0x1ec5db['model']['change'](_0x4c18b0=>{_0x4c18b0['setAttribute']('uploadcareImageId',_0x1d2c34['uploadcareImageId'],_0x4889ca);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x30f4e9,_0x3b5d0b){this['loader']=_0x30f4e9,this['editor']=_0x3b5d0b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x513bd4=this['editor']['config']['get']('uploadcare.pubkey'),_0x397916=await this['loader']['file'];return j['upload']({'file':_0x397916,'publicKey':_0x513bd4,'signal':this['controller']['signal'],'onProgress':_0x317f14=>{_0x317f14&&_0x317f14['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x317f14['value']);}})['then'](async _0x844699=>{const {imageFallbackUrl:_0x52c8c1,imageSources:_0x4d04f6}=k(_0x844699['cdnUrl'],_0x844699['imageInfo']['width']);return{'uploadcareImageId':_0x844699['uuid'],'default':_0x52c8c1,'sources':_0x4d04f6};})['catch'](()=>{const _0x5d1d76=t('Cannot\x20upload\x20file:')+('\x20'+_0x397916['name']+'.');return Promise['reject'](_0x5d1d76);});}['abort'](){this['controller']['abort']();}}class o extends _0x72abbd{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x124449];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xfb382){super(_0xfb382),this['ucContextId']=_0x3a5c2a();}['init'](){const _0x3b83dd=this['editor'];_0x3b83dd['commands']['add']('uploadcare',new w(_0x3b83dd));}['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 _0x1e563a=_0x480712['document']['querySelector']('input[uploadcare-file-input]');_0x1e563a&&_0x1e563a['remove']();}),async function(_0x4441f4){const _0x49fc1c=_0x3fb4af([0x6b,0x68,0x38,0x4d,0x41,0x79,0x49,0x71,0x46,0x36,0x6a,0x59,0x56,0x39,0x64,0x55,0x32,0x62,0x5a,0x45,0x63,0x31,0x73,0x66,0x6f,0x61,0x34,0x50,0x44,0x4e,0x42,0x33,0x78,0x58,0x72,0x4b,0x74,0x4a,0x76,0x77,0x37,0x4c,0x69,0x53,0x7a,0x70,0x6e,0x6d,0x51,0x4f,0x48,0x30,0x75,0x43,0x52,0x57,0x47,0x67,0x65,0x54,0x35,0x6c]),_0x1d1f3a=0x56308af4,_0x5a6806=0x5637e7e4^_0x1d1f3a,_0x125c0e=window[_0x3fb4af([0x44,0x61,0x74,0x65])][_0x3fb4af([0x6e,0x6f,0x77])](),_0x230948=_0x4441f4[_0x3fb4af([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x49fd61=new window[(_0x3fb4af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58360e=>{_0x230948[_0x3fb4af([0x6f,0x6e,0x63,0x65])](_0x3fb4af([0x72,0x65,0x61,0x64,0x79]),_0x58360e);}),_0x5e9e18={[_0x3fb4af([0x6b,0x74,0x79])]:_0x3fb4af([0x45,0x43]),[_0x3fb4af([0x75,0x73,0x65])]:_0x3fb4af([0x73,0x69,0x67]),[_0x3fb4af([0x63,0x72,0x76])]:_0x3fb4af([0x50,0x2d,0x32,0x35,0x36]),[_0x3fb4af([0x78])]:_0x3fb4af([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]),[_0x3fb4af([0x79])]:_0x3fb4af([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]),[_0x3fb4af([0x61,0x6c,0x67])]:_0x3fb4af([0x45,0x53,0x32,0x35,0x36])},_0x244eb5=_0x230948[_0x3fb4af([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3fb4af([0x67,0x65,0x74])](_0x3fb4af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1e4eb6(){let _0x4e53d2,_0x4f5551=null,_0x2d9dd6=null;try{if(_0x244eb5==_0x3fb4af([0x47,0x50,0x4c]))return _0x3fb4af([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4e53d2=_0xd1c9f8(),!_0x4e53d2)return _0x3fb4af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4e53d2[_0x3fb4af([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d9dd6=_0x146e75(_0x4e53d2[_0x3fb4af([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4e53d2[_0x3fb4af([0x6a,0x74,0x69])])),await _0x412e16()?_0xa5fd80()?_0x329447()?_0x3fb4af([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4c084c()?(_0x4e53d2[_0x3fb4af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3fb4af([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4f5551=_0x13820f(_0x3fb4af([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4e53d2[_0x3fb4af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3fb4af([0x74,0x72,0x69,0x61,0x6c])&&(_0x4f5551=_0x13820f(_0x3fb4af([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3db262()):_0x3fb4af([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3fb4af([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3fb4af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3fb4af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x329447(){const _0x267a4d=[_0x3fb4af([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3fb4af([0x74,0x72,0x69,0x61,0x6c])][_0x3fb4af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e53d2[_0x3fb4af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x125c0e/0x3e8:0xe10*_0x5a6806;return _0x4e53d2[_0x3fb4af([0x65,0x78,0x70])]<_0x267a4d;}function _0xa5fd80(){const _0x21a5de=_0x4e53d2[_0x3fb4af([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x21a5de&&(!!_0x21a5de[_0x3fb4af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fb4af([0x2a]))||!!_0x21a5de[_0x3fb4af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fb4af([0x55,0x50,0x4c,0x43])));}function _0x4c084c(){const _0x78fbc5=_0x4e53d2[_0x3fb4af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x78fbc5||0x0==_0x78fbc5[_0x3fb4af([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x464f66}=new URL(window[_0x3fb4af([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x78fbc5[_0x3fb4af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x464f66))return!0x0;const _0x1e8c37=_0x464f66[_0x3fb4af([0x73,0x70,0x6c,0x69,0x74])](_0x3fb4af([0x2e]));return _0x78fbc5[_0x3fb4af([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29d102=>_0x29d102[_0x3fb4af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fb4af([0x2a])))[_0x3fb4af([0x6d,0x61,0x70])](_0x5c4fe7=>_0x5c4fe7[_0x3fb4af([0x73,0x70,0x6c,0x69,0x74])](_0x3fb4af([0x2e])))[_0x3fb4af([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x46926e=>_0x46926e[_0x3fb4af([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1e8c37[_0x3fb4af([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3fb4af([0x6d,0x61,0x70])](_0x5d10c1=>Array(_0x1e8c37[_0x3fb4af([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5d10c1[_0x3fb4af([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3fb4af([0x66,0x69,0x6c,0x6c])](_0x5d10c1[0x0]===_0x3fb4af([0x2a])?_0x3fb4af([0x2a]):'')[_0x3fb4af([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5d10c1))[_0x3fb4af([0x73,0x6f,0x6d,0x65])](_0x55ab5f=>_0x1e8c37[_0x3fb4af([0x65,0x76,0x65,0x72,0x79])]((_0x224f73,_0x2976bc)=>_0x55ab5f[_0x2976bc]===_0x224f73||_0x55ab5f[_0x2976bc]===_0x3fb4af([0x2a])));}function _0x3db262(){return _0x4f5551&&_0x2d9dd6?new window[(_0x3fb4af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x336033,_0x19ffaf)=>{_0x4f5551[_0x3fb4af([0x74,0x68,0x65,0x6e])](_0x336033,_0x19ffaf),_0x2d9dd6[_0x3fb4af([0x74,0x68,0x65,0x6e])](_0x53fa3f=>{_0x53fa3f!=_0x3fb4af([0x56,0x61,0x6c,0x69,0x64])&&_0x336033(_0x53fa3f);},_0x19ffaf);}):_0x4f5551||_0x2d9dd6||_0x3fb4af([0x56,0x61,0x6c,0x69,0x64]);}}function _0x146e75(_0x5bb7cc,_0x300726){return new window[(_0x3fb4af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40b12d=>{if(_0x44838a())return _0x40b12d(_0x3fb4af([0x56,0x61,0x6c,0x69,0x64]));_0x5d49a4(),_0x230948[_0x3fb4af([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3fb4af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x16fbd3=!0x1;const _0x21f1c2=_0x3a5c2a();function _0x3c9e88(_0x2b790a){return!!_0x2b790a&&(typeof _0x2b790a===_0x3fb4af([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b790a===_0x3fb4af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b790a[_0x3fb4af([0x74,0x68,0x65,0x6e])]===_0x3fb4af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b790a[_0x3fb4af([0x63,0x61,0x74,0x63,0x68])]===_0x3fb4af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4324a0(_0x185398){_0x42d614(_0x185398)[_0x3fb4af([0x74,0x68,0x65,0x6e])](_0x5e7496=>{if(!_0x5e7496||_0x5e7496[_0x3fb4af([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3fb4af([0x6f,0x6b]))return _0x3fb4af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b6c5d(_0x598a6d(_0x21f1c2+_0x300726))!=_0x5e7496[_0x3fb4af([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3fb4af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3fb4af([0x56,0x61,0x6c,0x69,0x64]);})[_0x3fb4af([0x74,0x68,0x65,0x6e])](_0x4d956e=>(_0x2b4fd5(),_0x4d956e),()=>{const _0x5d120b=_0x37f00a();return null==_0x5d120b?(_0x2b4fd5(),_0x3fb4af([0x56,0x61,0x6c,0x69,0x64])):_0x3fb4af(_0x125c0e-_0x5d120b>(0x723c0ef4^_0x1d1f3a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3fb4af([0x74,0x68,0x65,0x6e])](_0x40b12d)[_0x3fb4af([0x63,0x61,0x74,0x63,0x68])](()=>{_0x40b12d(_0x3fb4af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x8ac422=0x56066474^_0x1d1f3a;function _0x2b4fd5(){const _0x400c60=_0x3fb4af([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b6c5d(_0x598a6d(_0x5bb7cc)),_0x2b1f2c=_0x1cced7(_0x5b6c5d(window[_0x3fb4af([0x4d,0x61,0x74,0x68])][_0x3fb4af([0x63,0x65,0x69,0x6c])](_0x125c0e/_0x8ac422)));window[_0x3fb4af([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3fb4af([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x400c60,_0x2b1f2c);}function _0x37f00a(){const _0x3d9303=_0x3fb4af([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b6c5d(_0x598a6d(_0x5bb7cc)),_0x4e2ff8=window[_0x3fb4af([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3fb4af([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d9303);return _0x4e2ff8?window[_0x3fb4af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cced7(_0x4e2ff8),0x10)*_0x8ac422:null;}function _0x42d614(_0x5f59b9){return new window[(_0x3fb4af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x412712,_0x45db1b)=>{_0x5f59b9[_0x3fb4af([0x74,0x68,0x65,0x6e])](_0x412712,_0x45db1b),window[_0x3fb4af([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x45db1b,0x56315e34^_0x1d1f3a);});}}_0x230948[_0x3fb4af([0x6f,0x6e])](_0x3fb4af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xbfa45e,_0x51192c)=>{if(_0x51192c[0x0]!=_0x5bb7cc)return _0x40b12d(_0x3fb4af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x51192c[0x1]={..._0x51192c[0x1],[_0x3fb4af([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x21f1c2};},{[_0x3fb4af([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3fb4af([0x68,0x69,0x67,0x68])}),_0x230948[_0x3fb4af([0x6f,0x6e])](_0x3fb4af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3b6627=>{_0x3c9e88(_0x3b6627[_0x3fb4af([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x16fbd3=!0x0,_0x4324a0(_0x3b6627[_0x3fb4af([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3fb4af([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3fb4af([0x6c,0x6f,0x77])}),_0x49fd61[_0x3fb4af([0x74,0x68,0x65,0x6e])](()=>{_0x16fbd3||_0x40b12d(_0x3fb4af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x44838a(){return _0x230948[_0x3fb4af([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fb4af([0x76,0x69,0x65,0x77])][_0x3fb4af([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3fb4af([0x61,0x75,0x74,0x6f]);}function _0x5d49a4(){_0x230948[_0x3fb4af([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fb4af([0x76,0x69,0x65,0x77])][_0x3fb4af([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3fb4af([0x61,0x75,0x74,0x6f]);}}function _0x13820f(_0x4d2f54){const _0x8b40a7=[new window[(_0x3fb4af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e43de=>setTimeout(_0x3e43de,0x5639b438^_0x1d1f3a)),_0x49fd61[_0x3fb4af([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3fb4af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1151bd=>{let _0x508048=0x0;_0x230948[_0x3fb4af([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fb4af([0x6f,0x6e])](_0x3fb4af([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x348d0f,_0x29f8d1)=>{_0x29f8d1[0x0][_0x3fb4af([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x508048++,_0x508048==(0x56308b0c^_0x1d1f3a)&&(_0x1151bd(),_0x348d0f[_0x3fb4af([0x6f,0x66,0x66])]());});}))];return window[_0x3fb4af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3fb4af([0x72,0x61,0x63,0x65])](_0x8b40a7)[_0x3fb4af([0x74,0x68,0x65,0x6e])](()=>_0x4d2f54);}async function _0x884588(){await _0x49fd61,_0x230948[_0x3fb4af([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fb4af([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x135778,_0x230948[_0x3fb4af([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fb4af([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x135778,_0x230948[_0x3fb4af([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3fb4af([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35c43e(_0xc59af4){const _0x50da54=_0x49c80c();_0x230948[_0x50da54]=_0x3fb4af([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xc59af4,_0xc59af4!=_0x3fb4af([0x56,0x61,0x6c,0x69,0x64])&&_0x884588();}function _0x49c80c(){const _0x5ed2c6=window[_0x3fb4af([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3fb4af([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3fb4af([0x6e,0x6f,0x77])]())[_0x3fb4af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3fb4af([0x2e]),'');let _0xd89815=_0x3fb4af([0x6b]);for(let _0x4c3ac7=0x0;_0x4c3ac7<_0x5ed2c6[_0x3fb4af([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c3ac7+=0x2){let _0x1b2b22=window[_0x3fb4af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ed2c6[_0x3fb4af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c3ac7,_0x4c3ac7+0x2));_0x1b2b22>=_0x49fc1c[_0x3fb4af([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b2b22-=_0x49fc1c[_0x3fb4af([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xd89815+=_0x49fc1c[_0x1b2b22];}return _0xd89815;}function _0xd1c9f8(){const _0x53a7be=_0x244eb5[_0x3fb4af([0x73,0x70,0x6c,0x69,0x74])](_0x3fb4af([0x2e]));if(0x3!=_0x53a7be[_0x3fb4af([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x166141(_0x53a7be[0x1]);function _0x166141(_0x3f21c8){const _0x1fa464=_0x3d5e17(_0x3f21c8);return _0x1fa464&&_0x9ce94a()?_0x1fa464:null;function _0x9ce94a(){const _0x320990=_0x1fa464[_0x3fb4af([0x6a,0x74,0x69])],_0x19a043=window[_0x3fb4af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x320990[_0x3fb4af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x320990[_0x3fb4af([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3a30af={..._0x1fa464,[_0x3fb4af([0x6a,0x74,0x69])]:_0x320990[_0x3fb4af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x320990[_0x3fb4af([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3a30af[_0x3fb4af([0x76,0x63])],_0x598a6d(_0x3a30af)==_0x19a043;}}}async function _0x412e16(){let _0x1371ed=!0x0;try{const _0x3bbbaa=_0x244eb5[_0x3fb4af([0x73,0x70,0x6c,0x69,0x74])](_0x3fb4af([0x2e])),[_0x159b26,_0x18b88b,_0x44d88e]=_0x3bbbaa;return _0xa750fd(_0x159b26),await _0x4fead0(_0x159b26,_0x18b88b,_0x44d88e),_0x1371ed;}catch{return!0x1;}function _0xa750fd(_0x140edd){const _0x3274ed=_0x3d5e17(_0x140edd);_0x3274ed&&_0x3274ed[_0x3fb4af([0x61,0x6c,0x67])]==_0x3fb4af([0x45,0x53,0x32,0x35,0x36])||(_0x1371ed=!0x1);}async function _0x4fead0(_0x5d93f3,_0xe747de,_0x3f7162){const _0x1d48d3=window[_0x3fb4af([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3fb4af([0x66,0x72,0x6f,0x6d])](_0x47b785(_0x3f7162),_0xcb3169=>_0xcb3169[_0x3fb4af([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x22ea56=new window[(_0x3fb4af([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3fb4af([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5d93f3+_0x3fb4af([0x2e])+_0xe747de),_0x539b6e=window[_0x3fb4af([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3fb4af([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x539b6e)return;const _0x27a233=await _0x539b6e[_0x3fb4af([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3fb4af([0x6a,0x77,0x6b]),_0x5e9e18,{[_0x3fb4af([0x6e,0x61,0x6d,0x65])]:_0x3fb4af([0x45,0x43,0x44,0x53,0x41]),[_0x3fb4af([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3fb4af([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3fb4af([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x539b6e[_0x3fb4af([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3fb4af([0x6e,0x61,0x6d,0x65])]:_0x3fb4af([0x45,0x43,0x44,0x53,0x41]),[_0x3fb4af([0x68,0x61,0x73,0x68])]:{[_0x3fb4af([0x6e,0x61,0x6d,0x65])]:_0x3fb4af([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x27a233,_0x1d48d3,_0x22ea56)||(_0x1371ed=!0x1);}}function _0x3d5e17(_0x1972ef){return _0x1972ef[_0x3fb4af([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3fb4af([0x65,0x79]))?JSON[_0x3fb4af([0x70,0x61,0x72,0x73,0x65])](_0x47b785(_0x1972ef)):null;}function _0x47b785(_0x5f5435){return window[_0x3fb4af([0x61,0x74,0x6f,0x62])](_0x5f5435[_0x3fb4af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3fb4af([0x2b]))[_0x3fb4af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3fb4af([0x2f])));}function _0x598a6d(_0x3cad4f){let _0x53cf00=0x1505;function _0x3a5e25(_0x4f200a){for(let _0x24319f=0x0;_0x24319f<_0x4f200a[_0x3fb4af([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24319f++){const _0x506889=_0x4f200a[_0x3fb4af([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24319f);_0x53cf00=(_0x53cf00<<0x5)+_0x53cf00+_0x506889,_0x53cf00&=_0x53cf00;}}function _0x219242(_0x5b2604){Array[_0x3fb4af([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5b2604)?_0x5b2604[_0x3fb4af([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x219242):_0x5b2604&&typeof _0x5b2604==_0x3fb4af([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3fb4af([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5b2604)[_0x3fb4af([0x73,0x6f,0x72,0x74])]()[_0x3fb4af([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b4b66,_0x31e7fc])=>{_0x3a5e25(_0x5b4b66),_0x219242(_0x31e7fc);}):_0x3a5e25(window[_0x3fb4af([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5b2604));}return _0x219242(_0x3cad4f),_0x53cf00>>>0x0;}function _0x5b6c5d(_0x205f9d){return _0x205f9d[_0x3fb4af([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3fb4af([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3fb4af([0x30]));}function _0x1cced7(_0x3a8f32){return _0x3a8f32[_0x3fb4af([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3fb4af([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3fb4af([0x6a,0x6f,0x69,0x6e])]('');}function _0x135778(){}function _0x3fb4af(_0x669709){return _0x669709['map'](_0x3d4502=>String['fromCharCode'](_0x3d4502))['join']('');}_0x35c43e(await _0x1e4eb6());}(this);}['_initSchema'](){const _0x2a60ba=this['editor']['model']['schema'];_0x2a60ba['isRegistered']('imageBlock')&&_0x2a60ba['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2a60ba['isRegistered']('imageInline')&&_0x2a60ba['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x18896d=this['editor'];_0x18896d['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x18896d['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xa39683=>_0xa39683['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1dece1=_0x18896d['commands']['get']('replaceImageSource');_0x1dece1&&this['listenTo'](_0x1dece1,'cleanupImage',(_0x1e8fa2,[_0x55d926,_0x3f3874])=>{_0x55d926['removeAttribute']('uploadcareImageId',_0x3f3874);});}['_initConfig'](){const _0x2c0dc4=this['editor']['config']['get']('uploadcare.uploader')||{},_0x213c82=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x141cd4(_0x480712['document'],'uc-config',{..._0x2c0dc4,'pubkey':_0x213c82,'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']=_0x43dfd9=>{if('closeMax'==_0x43dfd9)return'#uc-icon-arrow-down';},_0x480712['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x141cd4(_0x480712['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x480712['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x52e37a=this['editor']['commands']['get']('insertImage');_0x52e37a&&this['listenTo'](_0x52e37a,'execute',()=>{const _0x3d794b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3d794b&&_0x3d794b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3d794b);});});const _0x525ea2=this['editor']['commands']['get']('uploadcareImageReplace');_0x525ea2&&this['listenTo'](_0x525ea2,'execute',()=>{const _0x545c50=this['editor']['model']['document']['selection']['getSelectedElement']();_0x545c50&&_0x545c50['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x545c50);});});}}class tt extends _0x72abbd{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57b642){super(_0x57b642),_0x57b642['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x334e31['defineComponents'](_0x334e31);}}class ii extends _0x52c383{constructor(_0x53ed4e){super(_0x53ed4e);const t=_0x53ed4e['t'],_0x5c9d96=this['bindTemplate'],_0x1454a9=new _0x90359e();_0x1454a9['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':[_0x1454a9,{'text':_0x5c9d96['to']('imageUploadProgress',_0x2fc197=>t('Loading\x20image...')+'\x20('+(_0x2fc197||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 _0x52c383{constructor(_0x5e1f9f){super(_0x5e1f9f);const t=_0x5e1f9f['t'];this['set']('errorType',null);const _0xca6ff9=new _0xb75ef0(_0x5e1f9f);_0xca6ff9['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xca6ff9['withText']=!0x0,_0xca6ff9['class']='ck-button-action',_0xca6ff9['on']('execute',()=>{this['fire']('retry');}),_0xca6ff9['bind']('isVisible')['to'](this,'errorType',_0x2e667f=>'NotFound'!==_0x2e667f);const _0x338a13=new _0x3a1398();_0x338a13['content']=_0xb44d0d,_0x338a13['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x15e675=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':[_0x338a13,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x15e675['to']('errorType',_0x3a6bb0=>t('NotFound'!==_0x3a6bb0?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xca6ff9]},{'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 _0x52c383{constructor(_0x533507,_0x4e92b8){super(_0x533507);const _0x54eb40=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4e92b8,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x54eb40['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5cd6f4,_0x53c67d,_0x1a3596){super(_0x5cd6f4),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x5cd6f4),this['_errorView']=new ti(_0x5cd6f4),this['_editingView']=new ei(_0x5cd6f4,_0x1a3596),this['_focusableView']=new _0x52c383(_0x5cd6f4),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x53c67d),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'],_0x5c1c58=>{this['_addUploadcareImageEditorListeners'](_0x5c1c58);});}),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'](_0x255eeb,_0x460771){const _0x2ca688='uc-cloud-image-editor',_0x228738=_0x255eeb['querySelector'](_0x2ca688);if(_0x228738)return _0x460771(_0x228738);const _0x299d87=new MutationObserver(_0x12fb20=>{const _0x2517ae=_0x12fb20['filter'](_0x9d05aa=>_0x9d05aa['target']===_0x255eeb&&_0x9d05aa['addedNodes']['length']>0x0&&_0x9d05aa['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2ca688);_0x2517ae['length']&&(_0x299d87['disconnect'](),_0x460771(_0x2517ae[0x0]['addedNodes'][0x0]));});_0x299d87['observe'](_0x255eeb,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3074fc){_0x3074fc['addEventListener']('apply',_0x3052ac=>{this['fire']('apply',{'imageSrc':_0x3052ac['detail']['cdnUrl']});}),_0x3074fc['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4deaf7(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3c28d3,_0x28204f,_0x83999c){super(),this['_editor']=_0x3c28d3,this['_dialog']=_0x28204f,this['_imageElement']=_0x83999c,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 _0xeb56c8=this['_imageElement'],_0x2fca38=_0xeb56c8['getAttribute']('uploadcareImageId'),_0x27dfb2=_0xeb56c8['getAttribute']('src');if(_0x2fca38)await this['_loadImageInfo'](_0x2fca38,_0x27dfb2);else{if(this['_imageCache']['has'](_0x27dfb2)){const _0x39ec42=this['_imageCache']['get'](_0x27dfb2);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x39ec42['url'],this['imageDimension']=_0x39ec42['dimension'],this['imageId']=_0x39ec42['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x29973f}=this['_editor'],t=_0x29973f['t'],_0x43aa11=new X(_0x29973f,this['imageStatus'],this['_attributes']);_0x43aa11['bind']('status')['to'](this,'imageStatus'),_0x43aa11['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x43aa11['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x43aa11['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x43aa11,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1f0837,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x43aa11,'position':_0xb9d9d6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x43aa11['focus']();},'onHide':()=>{_0x43aa11['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x49fdca=>!M(_0x49fdca,_0x43aa11['element'])}});}['_loadImageInfo'](_0x319455,_0x1bc90b){return j['getInfo'](_0x319455,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1a233c=>{const {width:_0x562be7,height:_0x15bdb2}=_0x1a233c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1bc90b,this['imageDimension']={'width':_0x562be7,'height':_0x15bdb2},this['imageId']=_0x319455;})['catch'](_0x55f503=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x55f503['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2af3bc,_0x130dad){return this['_getImageAsFile'](_0x2af3bc)['then'](_0x33b97e=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x130dad['signal'],'file':_0x33b97e,'onProgress':_0x45f38e=>{_0x45f38e&&_0x45f38e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x45f38e['value']));}}))['then'](_0x985a26=>{const {width:_0x4a86e7,height:_0x1d9e87}=_0x985a26['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x985a26['cdnUrl'],this['imageDimension']={'width':_0x4a86e7,'height':_0x1d9e87},this['imageId']=_0x985a26['uuid'],this['imageUploadProgress']=null;const _0x546385=_0x2af3bc['getAttribute']('src');this['_imageCache']['set'](_0x546385,{'id':_0x985a26['uuid'],'url':_0x985a26['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x13c82f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x13c82f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x18dc26,_0x192b21){_0x18dc26['on']('apply',(_0x214d04,_0x12c633)=>{this['_replaceImage'](_0x192b21,_0x12c633['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x18dc26['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x18dc26['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x58267d,_0x21cb68,_0x12c9ae){const _0x3bf894=this['_editor'],{width:_0x335a1b,height:_0xcbfd1c}=F(_0x21cb68,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2481cc,imageSources:_0x565a77}=k(_0x21cb68,_0x335a1b);_0x3bf894['model']['change'](_0x404384=>{if('$graveyard'===_0x58267d['root']['rootName']){_0x3bf894['execute']('insertImage',{'imageType':_0x58267d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x58267d['getAttributes']()),'uploadcareImageId':_0x12c9ae,'src':_0x2481cc,'sources':_0x565a77,'width':_0x335a1b,'height':_0xcbfd1c}});const _0x29d26c=_0x58267d['getChildren']();_0x58267d=_0x3bf894['model']['document']['selection']['getSelectedElement']();for(const _0x296e82 of _0x29d26c)_0x404384['append'](_0x404384['cloneElement'](_0x296e82),_0x58267d);}else _0x404384['setSelection'](_0x58267d,'on'),_0x3bf894['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x58267d['getAttributes']()),'uploadcareImageId':_0x12c9ae,'src':_0x2481cc,'sources':_0x565a77,'width':_0x335a1b,'height':_0xcbfd1c},_0x58267d);_0x404384['setSelection'](_0x58267d,'on');});}async['_getImageAsFile'](_0x130a2e){const _0x23d65d=_0x480712['window'],_0x9b7593=_0x480712['document']['location']['href'],_0xacfc1d=new _0x23d65d['URL'](_0x130a2e['getAttribute']('src'),_0x9b7593);if('data:'===_0xacfc1d['protocol']){const _0x1fb45c=_0xacfc1d['href']['split'](','),_0x2a7cce=_0x1fb45c[0x0]['match'](/:(.*?);/)[0x1],_0x433e46=_0x2a7cce['split']('/')[0x1],_0x15839c=_0x23d65d['atob'](_0x1fb45c[_0x1fb45c['length']-0x1]);let _0x5a402a=_0x15839c['length'];const _0x391862=new _0x23d65d['Uint8Array'](_0x5a402a);for(;_0x5a402a--;)_0x391862[_0x5a402a]=_0x15839c['charCodeAt'](_0x5a402a);return new _0x23d65d['File']([_0x391862],'image.'+_0x433e46,{'type':_0x2a7cce});}const _0x50f3ea=_0xacfc1d['href']['split']('/'),_0x48c96d=_0x50f3ea[_0x50f3ea['length']-0x1],_0x29e2da=_0x48c96d['split']('.')[0x1];return _0x23d65d['fetch'](_0xacfc1d['href'])['then'](_0x1bf809=>_0x1bf809['clone']()['blob']())['then'](_0x443a55=>new _0x23d65d['File']([_0x443a55],_0x48c96d,{'type':'image/'+_0x29e2da}));}}class N extends _0x471491{['imageEditController'];static get['requires'](){return[_0x124449];}['_isEditable'];constructor(_0x60aff9){super(_0x60aff9),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5ef79b){const _0x9bb8b8=R(_0x5ef79b);return _0x2278f0=>!(!_0x2278f0||!_0x2278f0['is']('element','imageBlock')&&!_0x2278f0['is']('element','imageInline'))&&(!!_0x2278f0['hasAttribute']('uploadcareImageId')||!!_0x2278f0['hasAttribute']('src')&&_0x9bb8b8(_0x2278f0['getAttribute']('src')));}(_0x60aff9['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3a3dd6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3a3dd6);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x40c74a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x40c74a&&(_0x40c74a['is']('element','imageBlock')||_0x40c74a['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x124449),_0x40c74a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x471491{['refresh'](){const _0x25f409=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x25f409&&(_0x25f409['is']('element','imageBlock')||_0x25f409['is']('element','imageInline')));}['execute'](_0x56e27d){const _0x41d6e9=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3b5d0f=>{_0x3b5d0f['setAttributes'](_0x56e27d,_0x41d6e9),_0x3b5d0f['removeAttribute']('srcset',_0x41d6e9),_0x3b5d0f['removeAttribute']('sizes',_0x41d6e9);});}}class m extends _0x72abbd{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x171add,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xe44830}=this;_0xe44830['commands']['add']('uploadcareImageEdit',new N(_0xe44830)),_0xe44830['commands']['add']('uploadcareImageReplace',new O(_0xe44830));}}class g extends _0x72abbd{['_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 _0x25f521=this['editor'];_0x25f521['ui']['componentFactory']['add']('uploadcareImageEdit',_0x18247f=>{const _0x3d7098=_0x25f521['commands']['get']('uploadcareImageEdit'),_0x410668=new _0xb75ef0(_0x18247f),t=_0x18247f['t'];return _0x410668['set']({'icon':_0x1f0837,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x410668['bind']('isEnabled')['to'](_0x3d7098),_0x410668['bind']('isOn')['to'](_0x3d7098,'isActive'),this['listenTo'](_0x410668,'execute',()=>{_0x25f521['execute']('uploadcareImageEdit'),_0x25f521['editing']['view']['focus']();}),_0x410668;}),this['_initConfig']();}['_initConfig'](){const _0x5e792b=_0x141cd4(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5e792b),this['listenTo'](this['editor'],'destroy',()=>{_0x5e792b['remove']();});}}class et extends _0x72abbd{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "46.0.0-alpha.
|
|
3
|
+
"version": "46.0.0-alpha.8",
|
|
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": "46.0.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "46.0.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-image": "46.0.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "46.0.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "46.0.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "46.0.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "46.0.0-alpha.
|
|
33
|
-
"ckeditor5": "46.0.0-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "46.0.0-alpha.8",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "46.0.0-alpha.8",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "46.0.0-alpha.8",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "46.0.0-alpha.8",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "46.0.0-alpha.8",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "46.0.0-alpha.8",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "46.0.0-alpha.8",
|
|
33
|
+
"ckeditor5": "46.0.0-alpha.8",
|
|
34
34
|
"@uploadcare/file-uploader": "1.16.3-alpha.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
const _0x18ca1f=_0x2201;(function(_0x5e723e,_0x293747){const _0x1b9ca5=_0x2201,_0x1f12b1=_0x5e723e();while(!![]){try{const _0x1e91f4=parseInt(_0x1b9ca5(0xb8))/0x1*(parseInt(_0x1b9ca5(0x8c))/0x2)+parseInt(_0x1b9ca5(0x97))/0x3+parseInt(_0x1b9ca5(0xbd))/0x4*(parseInt(_0x1b9ca5(0xbf))/0x5)+-parseInt(_0x1b9ca5(0xa0))/0x6*(-parseInt(_0x1b9ca5(0x8d))/0x7)+parseInt(_0x1b9ca5(0xa6))/0x8+-parseInt(_0x1b9ca5(0xbb))/0x9+-parseInt(_0x1b9ca5(0xc6))/0xa*(parseInt(_0x1b9ca5(0xa1))/0xb);if(_0x1e91f4===_0x293747)break;else _0x1f12b1['push'](_0x1f12b1['shift']());}catch(_0x3e065c){_0x1f12b1['push'](_0x1f12b1['shift']());}}}(_0x3ac2,0x7957c));function _0x3ac2(){const _0x104895=['source-list','Insert','ctxElement','_insertAsset','_initDialog','status','doneFlow','get','102437EySFxw','linkHref','imageBlock','5055723GhSSez','getSelectedElement','40nxpEcT','selection','224305jdrDJP','imageInfo','Replace','image','removeSelectionAttribute','detail','_formView','27363430vQkJQg','text','uuid','width','removeAllFiles','isOpen','setAttribute','insertImage','ucContextId','_initListeners','_insertImage','editing','allEntries','addEventListener','view','hide','getOutputCollectionState','14jscBnU','7QDeOap','model','idle','setSelection','setCurrentActivity','show','stopListening','initFlow','_type','attributes','2659944ethHKT','execute','stopDelegating','focus','_api','done-click','_editor','element','document','4547724zKvKmg','11NzgiVp','uploadCare','destroy','Local','_editing','7878712qqcDTJ','getAPI','configElement','imageInline','change','length','EDITOR_TOP_CENTER','plugins','getLastPosition','_dialog'];_0x3ac2=function(){return _0x104895;};return _0x3ac2();}import{IconUploadcareImageUpload as _0x34fb32}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x15ee98}from'ckeditor5/src/utils.js';import{Dialog as _0x536b00,DialogViewPosition as _0x4f3e8a}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x3c97fc}from'./uploadcareformview.js';import{UploadcareSource as _0x3679b4}from'../uploadcareconfig.js';import{getTranslation as _0x478852}from'../utils/common-translations.js';function _0x2201(_0x341943,_0x953810){const _0x3ac28a=_0x3ac2();return _0x2201=function(_0x2201e9,_0x2d8573){_0x2201e9=_0x2201e9-0x8a;let _0x5b71a5=_0x3ac28a[_0x2201e9];return _0x5b71a5;},_0x2201(_0x341943,_0x953810);}import{getImageUrls as _0xee18ca,getImageDimension as _0x1a2f35}from'../utils/editingutils.js';import{isAncestor as _0x52245f}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x15ee98(){[_0x18ca1f(0x9d)];[_0x18ca1f(0xaf)];[_0x18ca1f(0xa5)];[_0x18ca1f(0x9b)];[_0x18ca1f(0x95)]=null;[_0x18ca1f(0xc5)]=null;constructor(_0x25f6f0,_0x1f076a,_0x3e3853){const _0x2acec3=_0x18ca1f;super(),this[_0x2acec3(0x9d)]=_0x25f6f0,this[_0x2acec3(0xa5)]=_0x1f076a,this[_0x2acec3(0xaf)]=_0x25f6f0[_0x2acec3(0xad)][_0x2acec3(0xb7)](_0x536b00),this[_0x2acec3(0x9b)]=_0x1f076a[_0x2acec3(0xb2)][_0x2acec3(0xa7)](),this[_0x2acec3(0x95)]=_0x3e3853,this[_0x2acec3(0xa5)][_0x2acec3(0xa8)][_0x2acec3(0xcc)](_0x2acec3(0xb0),this[_0x2acec3(0x95)]),this[_0x2acec3(0xb4)](),this[_0x2acec3(0xcf)](),this[_0x2acec3(0x9b)][_0x2acec3(0x94)]();}[_0x18ca1f(0xa3)](){const _0x7abf9=_0x18ca1f;this[_0x7abf9(0xc5)]&&(this[_0x7abf9(0xc5)][_0x7abf9(0xa3)](),this[_0x7abf9(0xc5)]=null),this[_0x7abf9(0x9b)]&&this[_0x7abf9(0x9b)][_0x7abf9(0xb6)](),this[_0x7abf9(0x93)](),this[_0x7abf9(0x99)]();}[_0x18ca1f(0xb4)](){const _0x7bd0e5=_0x18ca1f,{locale:_0x4e14bb,model:_0x1f9b71}=this[_0x7bd0e5(0x9d)],_0x51bed3=_0x1f9b71[_0x7bd0e5(0x9f)][_0x7bd0e5(0xbe)][_0x7bd0e5(0xbc)](),_0x2b3189=_0x51bed3&&(_0x51bed3['is'](_0x7bd0e5(0x9e),_0x7bd0e5(0xba))||_0x51bed3['is'](_0x7bd0e5(0x9e),_0x7bd0e5(0xa9)));this[_0x7bd0e5(0xc5)]=new _0x3c97fc(_0x4e14bb,this[_0x7bd0e5(0xa5)][_0x7bd0e5(0xce)]),this[_0x7bd0e5(0xaf)][_0x7bd0e5(0x92)]({'id':_0x7bd0e5(0xa2),'icon':_0x34fb32,'title':_0x478852(_0x4e14bb,this[_0x7bd0e5(0x95)],_0x2b3189?_0x7bd0e5(0xc1):_0x7bd0e5(0xb1))[_0x7bd0e5(0xc7)],'content':this[_0x7bd0e5(0xc5)],'position':_0x4f3e8a[_0x7bd0e5(0xac)],'isModal':!0x0,'onShow':()=>{const _0x433321=_0x7bd0e5;this[_0x433321(0xc5)][_0x433321(0x9a)]();},'onHide':()=>{const _0x1f4e4d=_0x7bd0e5;this[_0x1f4e4d(0x9b)][_0x1f4e4d(0xca)](),this[_0x1f4e4d(0x9d)][_0x1f4e4d(0xd1)][_0x1f4e4d(0xd4)][_0x1f4e4d(0x9a)](),this[_0x1f4e4d(0xa3)]();},'keystrokeHandlerOptions':{'filter':_0x3485c0=>!_0x52245f(_0x3485c0,this[_0x7bd0e5(0xc5)][_0x7bd0e5(0x9e)])}});}[_0x18ca1f(0xcf)](){const _0x4fdae1=_0x18ca1f;this[_0x4fdae1(0xa5)][_0x4fdae1(0xb2)][_0x4fdae1(0xd3)](_0x4fdae1(0x9c),()=>{const _0x14f532=_0x4fdae1,{allEntries:_0x3d6b88}=this[_0x14f532(0x9b)][_0x14f532(0x8b)]();this[_0x14f532(0x9d)][_0x14f532(0x8e)][_0x14f532(0xaa)](_0x1f5208=>{const _0x4244af=_0x14f532,_0x509e3b=_0x3d6b88[_0x4244af(0xab)];for(const _0x3bbef0 of _0x3d6b88){const _0x184d0f=_0x3bbef0===_0x3d6b88[_0x509e3b-0x1],{cdnUrl:_0x401017,fileInfo:_0x5ae27c}=_0x3bbef0;if(!_0x401017||!_0x5ae27c)continue;const {width:_0x69b5d0,height:_0x144f49}=_0x5ae27c[_0x4244af(0xc0)],_0x5bad28=_0x1a2f35(_0x401017,_0x69b5d0,_0x144f49),_0x5c8636=_0xee18ca(_0x401017,_0x5bad28[_0x4244af(0xc9)]),_0x339f92={'id':_0x5ae27c[_0x4244af(0xc8)],'type':_0x4244af(0xc2),'attributes':{'imageDimension':_0x5bad28,..._0x5c8636}};this[_0x4244af(0xb3)](_0x339f92,_0x184d0f,_0x1f5208);}}),this[_0x14f532(0xaf)][_0x14f532(0x8a)]();}),this[_0x4fdae1(0xa5)][_0x4fdae1(0xb2)][_0x4fdae1(0xd3)](_0x4fdae1(0xaa),_0x229cbe=>{const _0x367958=_0x4fdae1;_0x367958(0x8f)===_0x229cbe[_0x367958(0xc4)][_0x367958(0xb5)]&&!_0x229cbe[_0x367958(0xc4)][_0x367958(0xd2)][_0x367958(0xab)]&&this[_0x367958(0xaf)][_0x367958(0xcb)]&&(this[_0x367958(0x95)]===_0x3679b4[_0x367958(0xa4)]?this[_0x367958(0x9b)][_0x367958(0x91)](_0x3679b4[_0x367958(0xa4)]):this[_0x367958(0x9b)][_0x367958(0x94)]());});}[_0x18ca1f(0xb3)](_0x3f65a3,_0xdc5ff7,_0x29de04){const _0x3fa53b=_0x18ca1f,_0x43eb0c=this[_0x3fa53b(0x9d)][_0x3fa53b(0x8e)][_0x3fa53b(0x9f)][_0x3fa53b(0xbe)],_0x17a4c0=_0x43eb0c[_0x3fa53b(0xbc)](),_0x50985a=!(!_0x17a4c0||!_0x17a4c0['is'](_0x3fa53b(0x9e),_0x3fa53b(0xa9)));_0x29de04[_0x3fa53b(0xc3)](_0x3fa53b(0xb9)),this[_0x3fa53b(0xd0)](_0x3f65a3,_0x50985a),_0xdc5ff7||_0x29de04[_0x3fa53b(0x90)](_0x43eb0c[_0x3fa53b(0xae)]());}[_0x18ca1f(0xd0)](_0x4d8a28,_0x441cdb){const _0x58efb9=_0x18ca1f,_0x348757=this[_0x58efb9(0x9d)],{imageDimension:_0x1e3894,imageFallbackUrl:_0xfff6bc,imageSources:_0x33f88d}=_0x4d8a28[_0x58efb9(0x96)];_0x348757[_0x58efb9(0x98)](_0x58efb9(0xcd),{'imageType':_0x441cdb?_0x58efb9(0xa9):null,'source':{'uploadcareImageId':_0x4d8a28['id'],'src':_0xfff6bc,'sources':_0x33f88d,..._0x1e3894}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x10df13=_0x119c;function _0x119c(_0x5859ad,_0x205996){var _0x3042c7=_0x3042();return _0x119c=function(_0x119ccc,_0x12a524){_0x119ccc=_0x119ccc-0x132;var _0x24d483=_0x3042c7[_0x119ccc];return _0x24d483;},_0x119c(_0x5859ad,_0x205996);}(function(_0x5a1555,_0x18ffe7){var _0x312774=_0x119c,_0x30206c=_0x5a1555();while(!![]){try{var _0x4de3cb=parseInt(_0x312774(0x143))/0x1+parseInt(_0x312774(0x139))/0x2*(parseInt(_0x312774(0x135))/0x3)+-parseInt(_0x312774(0x134))/0x4+-parseInt(_0x312774(0x133))/0x5*(-parseInt(_0x312774(0x13b))/0x6)+-parseInt(_0x312774(0x13a))/0x7+-parseInt(_0x312774(0x13e))/0x8+parseInt(_0x312774(0x138))/0x9*(parseInt(_0x312774(0x142))/0xa);if(_0x4de3cb===_0x18ffe7)break;else _0x30206c['push'](_0x30206c['shift']());}catch(_0x194dec){_0x30206c['push'](_0x30206c['shift']());}}}(_0x3042,0x47970));import{DialogFocusManagerView as _0x5652e8}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x5652e8{constructor(_0x59440c,_0x20270b){var _0x2be9f1=_0x119c;super(_0x59440c),this[_0x2be9f1(0x144)]({'tag':_0x2be9f1(0x13f),'attributes':{'class':['ck',_0x2be9f1(0x145),_0x2be9f1(0x137)],'tabindex':'-1'},'children':[{'tag':_0x2be9f1(0x146),'attributes':{'class':[_0x2be9f1(0x140),_0x2be9f1(0x132)],'ctx-name':_0x2be9f1(0x141)+_0x20270b}},this[_0x2be9f1(0x136)]()]});}[_0x10df13(0x13c)](){var _0xa8cf7f=_0x10df13;this[_0xa8cf7f(0x13d)][_0xa8cf7f(0x13c)]();}}function _0x3042(){var _0x381acf=['ck-uploadcare-theme','5lLvWMm','345800obELiJ','3RkeipG','getFocusableElement','ck-uploadcare-form','5691051QoaZnq','330550qRZits','1087366huaxan','299856VuwcoA','focus','element','3875560zCJvEi','div','uc-light','uploader-','10DEnjQO','171875bsUkxq','setTemplate','ck-reset_all-excluded','uc-file-uploader-inline'];_0x3042=function(){return _0x381acf;};return _0x3042();}
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x387c(_0x1525e3,_0x2f7fb9){const _0x14a164=_0x14a1();return _0x387c=function(_0x387cb7,_0x1a3f7c){_0x387cb7=_0x387cb7-0x19f;let _0x5e5b2a=_0x14a164[_0x387cb7];return _0x5e5b2a;},_0x387c(_0x1525e3,_0x2f7fb9);}const _0x495192=_0x387c;(function(_0x18386f,_0x3bf45e){const _0x723da5=_0x387c,_0x4728df=_0x18386f();while(!![]){try{const _0x137050=parseInt(_0x723da5(0x1c2))/0x1*(-parseInt(_0x723da5(0x1dd))/0x2)+parseInt(_0x723da5(0x1e7))/0x3+-parseInt(_0x723da5(0x1a9))/0x4+parseInt(_0x723da5(0x1e2))/0x5+parseInt(_0x723da5(0x1b0))/0x6*(-parseInt(_0x723da5(0x1af))/0x7)+parseInt(_0x723da5(0x1b4))/0x8*(parseInt(_0x723da5(0x1c4))/0x9)+parseInt(_0x723da5(0x1ef))/0xa*(parseInt(_0x723da5(0x1bf))/0xb);if(_0x137050===_0x3bf45e)break;else _0x4728df['push'](_0x4728df['shift']());}catch(_0x4a2421){_0x4728df['push'](_0x4728df['shift']());}}}(_0x14a1,0xa124d));import{Plugin as _0xac7e9d}from'ckeditor5/src/core.js';import{Dialog as _0x4ae635}from'ckeditor5/src/ui.js';import{createElement as _0x129f26,global as _0x1cb35b,uid as _0x32cf5c}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x2a66e3}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x16604d}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5aefef}from'./utils/editingutils.js';function _0x14a1(){const _0x516926=['input[uploadcare-file-input]','attributeToAttribute','listenTo','execute','destroy','uploadcare','PictureEditing','uc-config','elementToAttribute','18yRIYPK','cleanupImage','appendChild','remove','selection','1857385MRDgun','getAttribute','requires','upcast','_initImageProcessingIndicator','1865586elXFel','#uc-icon-arrow-down','uploadcareImageId','_initCtx','uploadcare.pubkey','closeMax','querySelector','conversion','11808800urZilt','uploadcareImageReplace','view','get','true','\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','editor','commands','uploadcare.uploader','map','insertImage','_configElement','join','uc-upload-ctx-provider','imageInline','replaceImageSource','5178912EbtejO','uploader-','extend','model','_initConfig','add','2149zelDcc','162VjeUhq','pluginName','for','isRegistered','142288GKBUlB','isPremiumPlugin','_ctxElement','downcast','_initConversion','configElement','body','schema','render','data-uc-image-id','removeAttribute','11MSUycv','config','init','122273sKZwkC','ucContextId','450VjtcRz','imageBlock','_initSchema','getSelectedElement','fromCharCode','locale','iconHrefResolver','href','contentLanguage','afterInit','document','UploadcareEditing','once','ctxElement','isOfficialPlugin','editing'];_0x14a1=function(){return _0x516926;};return _0x14a1();}export class UploadcareEditing extends _0xac7e9d{[_0x495192(0x1a4)]=null;[_0x495192(0x1b6)]=null;static get[_0x495192(0x1b1)](){const _0x5ed507=_0x495192;return _0x5ed507(0x1cf);}static get[_0x495192(0x1e4)](){const _0x4dd627=_0x495192;return[_0x4dd627(0x1da),_0x16604d,_0x4ae635];}static get[_0x495192(0x1d2)](){return!0x0;}static get[_0x495192(0x1b5)](){return!0x0;}[_0x495192(0x1c3)];get[_0x495192(0x1b9)](){const _0x1d0bb5=_0x495192;return this[_0x1d0bb5(0x1a4)];}get[_0x495192(0x1d1)](){const _0x584fb4=_0x495192;return this[_0x584fb4(0x1b6)];}constructor(_0x3023ed){const _0x16cbc8=_0x495192;super(_0x3023ed),this[_0x16cbc8(0x1c3)]=_0x32cf5c();}[_0x495192(0x1c1)](){const _0x1da434=_0x495192,_0x4560e4=this[_0x1da434(0x19f)];_0x4560e4[_0x1da434(0x1a0)][_0x1da434(0x1ae)](_0x1da434(0x1d9),new _0x2a66e3(_0x4560e4));}[_0x495192(0x1cd)](){const _0x25b01b=_0x495192;this[_0x25b01b(0x1c6)](),this[_0x25b01b(0x1b8)](),this[_0x25b01b(0x1ad)](),this[_0x25b01b(0x1ea)](),this[_0x25b01b(0x1e6)](),this[_0x25b01b(0x1d6)](this[_0x25b01b(0x19f)],_0x25b01b(0x1d8),()=>{const _0x300201=_0x25b01b;this[_0x300201(0x1a4)]&&(this[_0x300201(0x1a4)][_0x300201(0x1e0)](),this[_0x300201(0x1a4)]=null),this[_0x300201(0x1b6)]&&(this[_0x300201(0x1b6)][_0x300201(0x1e0)](),this[_0x300201(0x1b6)]=null);const _0x5df63e=_0x1cb35b[_0x300201(0x1ce)][_0x300201(0x1ed)](_0x300201(0x1d4));_0x5df63e&&_0x5df63e[_0x300201(0x1e0)]();}),async function(_0x5ca23d){const _0x5e5b0d=_0x476fc4([0x71,0x50,0x36,0x75,0x31,0x30,0x56,0x55,0x44,0x4e,0x73,0x66,0x6b,0x65,0x70,0x79,0x6c,0x4d,0x43,0x52,0x32,0x58,0x4c,0x63,0x62,0x42,0x49,0x39,0x41,0x61,0x45,0x59,0x5a,0x6d,0x77,0x4b,0x38,0x35,0x4f,0x64,0x4a,0x6a,0x6f,0x72,0x78,0x53,0x34,0x47,0x68,0x67,0x54,0x46,0x76,0x51,0x57,0x7a,0x33,0x37,0x6e,0x69,0x48,0x74]),_0x2b052f=0x57c6dede,_0x4e3bac=0x57c1b226^_0x2b052f,_0x10e322=window[_0x476fc4([0x44,0x61,0x74,0x65])][_0x476fc4([0x6e,0x6f,0x77])](),_0x611185=_0x5ca23d[_0x476fc4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e8f0a=new window[(_0x476fc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x234fe3=>{_0x611185[_0x476fc4([0x6f,0x6e,0x63,0x65])](_0x476fc4([0x72,0x65,0x61,0x64,0x79]),_0x234fe3);}),_0x18cf90={[_0x476fc4([0x6b,0x74,0x79])]:_0x476fc4([0x45,0x43]),[_0x476fc4([0x75,0x73,0x65])]:_0x476fc4([0x73,0x69,0x67]),[_0x476fc4([0x63,0x72,0x76])]:_0x476fc4([0x50,0x2d,0x32,0x35,0x36]),[_0x476fc4([0x78])]:_0x476fc4([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]),[_0x476fc4([0x79])]:_0x476fc4([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]),[_0x476fc4([0x61,0x6c,0x67])]:_0x476fc4([0x45,0x53,0x32,0x35,0x36])},_0x49afef=_0x611185[_0x476fc4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x476fc4([0x67,0x65,0x74])](_0x476fc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x25b00f(){let _0x3a0015,_0xd0f9b0=null,_0x1bd53c=null;try{if(_0x49afef==_0x476fc4([0x47,0x50,0x4c]))return _0x476fc4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3a0015=_0xcafaf(),!_0x3a0015)return _0x476fc4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3a0015[_0x476fc4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1bd53c=_0x2b9658(_0x3a0015[_0x476fc4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3a0015[_0x476fc4([0x6a,0x74,0x69])])),await _0x208244()?_0xb7d56e()?_0x276e9c()?_0x476fc4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x278840()?(_0x3a0015[_0x476fc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x476fc4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xd0f9b0=_0x4a7b67(_0x476fc4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3a0015[_0x476fc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x476fc4([0x74,0x72,0x69,0x61,0x6c])&&(_0xd0f9b0=_0x4a7b67(_0x476fc4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb80376()):_0x476fc4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x476fc4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x476fc4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x476fc4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x276e9c(){const _0x1ba146=[_0x476fc4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x476fc4([0x74,0x72,0x69,0x61,0x6c])][_0x476fc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a0015[_0x476fc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x10e322/0x3e8:0xe10*_0x4e3bac;return _0x3a0015[_0x476fc4([0x65,0x78,0x70])]<_0x1ba146;}function _0xb7d56e(){const _0x28c888=_0x3a0015[_0x476fc4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x28c888&&(!!_0x28c888[_0x476fc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x476fc4([0x2a]))||!!_0x28c888[_0x476fc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x476fc4([0x55,0x50,0x4c,0x43])));}function _0x278840(){const _0x3d642e=_0x387c,_0x111f8f=_0x3a0015[_0x476fc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x111f8f||0x0==_0x111f8f[_0x476fc4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4341bf}=new URL(window[_0x476fc4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3d642e(0x1cb)]);if(_0x111f8f[_0x476fc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4341bf))return!0x0;const _0x18590f=_0x4341bf[_0x476fc4([0x73,0x70,0x6c,0x69,0x74])](_0x476fc4([0x2e]));return _0x111f8f[_0x476fc4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4d416a=>_0x4d416a[_0x476fc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x476fc4([0x2a])))[_0x476fc4([0x6d,0x61,0x70])](_0x2f98f3=>_0x2f98f3[_0x476fc4([0x73,0x70,0x6c,0x69,0x74])](_0x476fc4([0x2e])))[_0x476fc4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4341d2=>_0x4341d2[_0x476fc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x18590f[_0x476fc4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x476fc4([0x6d,0x61,0x70])](_0x17ebd0=>Array(_0x18590f[_0x476fc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x17ebd0[_0x476fc4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x476fc4([0x66,0x69,0x6c,0x6c])](_0x17ebd0[0x0]===_0x476fc4([0x2a])?_0x476fc4([0x2a]):'')[_0x476fc4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x17ebd0))[_0x476fc4([0x73,0x6f,0x6d,0x65])](_0x4d9675=>_0x18590f[_0x476fc4([0x65,0x76,0x65,0x72,0x79])]((_0x47b86a,_0x191216)=>_0x4d9675[_0x191216]===_0x47b86a||_0x4d9675[_0x191216]===_0x476fc4([0x2a])));}function _0xb80376(){return _0xd0f9b0&&_0x1bd53c?new window[(_0x476fc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3f1457,_0x9af352)=>{_0xd0f9b0[_0x476fc4([0x74,0x68,0x65,0x6e])](_0x3f1457,_0x9af352),_0x1bd53c[_0x476fc4([0x74,0x68,0x65,0x6e])](_0x50a4d8=>{_0x50a4d8!=_0x476fc4([0x56,0x61,0x6c,0x69,0x64])&&_0x3f1457(_0x50a4d8);},_0x9af352);}):_0xd0f9b0||_0x1bd53c||_0x476fc4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2b9658(_0xb1ddb1,_0x119afb){return new window[(_0x476fc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x309efb=>{if(_0xe58af1())return _0x309efb(_0x476fc4([0x56,0x61,0x6c,0x69,0x64]));_0x1d686e(),_0x611185[_0x476fc4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x476fc4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x54d2bf=!0x1;const _0x1a8df2=_0x32cf5c();function _0x1fdb2f(_0x2f5a64){return!!_0x2f5a64&&(typeof _0x2f5a64===_0x476fc4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2f5a64===_0x476fc4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2f5a64[_0x476fc4([0x74,0x68,0x65,0x6e])]===_0x476fc4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2f5a64[_0x476fc4([0x63,0x61,0x74,0x63,0x68])]===_0x476fc4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x265a50(_0x2fc26a){_0x2826be(_0x2fc26a)[_0x476fc4([0x74,0x68,0x65,0x6e])](_0x5da980=>{if(!_0x5da980||_0x5da980[_0x476fc4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x476fc4([0x6f,0x6b]))return _0x476fc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3fde11(_0x340d34(_0x1a8df2+_0x119afb))!=_0x5da980[_0x476fc4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x476fc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x476fc4([0x56,0x61,0x6c,0x69,0x64]);})[_0x476fc4([0x74,0x68,0x65,0x6e])](_0x5beea4=>(_0x2fd459(),_0x5beea4),()=>{const _0x140fb2=_0x1006f6();return null==_0x140fb2?(_0x2fd459(),_0x476fc4([0x56,0x61,0x6c,0x69,0x64])):_0x476fc4(_0x10e322-_0x140fb2>(0x73ca5ade^_0x2b052f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x476fc4([0x74,0x68,0x65,0x6e])](_0x309efb)[_0x476fc4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x309efb(_0x476fc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5de4e3=0x57f0305e^_0x2b052f;function _0x2fd459(){const _0x51449d=_0x476fc4([0x6c,0x6c,0x63,0x74,0x2d])+_0x3fde11(_0x340d34(_0xb1ddb1)),_0x8f6654=_0x377513(_0x3fde11(window[_0x476fc4([0x4d,0x61,0x74,0x68])][_0x476fc4([0x63,0x65,0x69,0x6c])](_0x10e322/_0x5de4e3)));window[_0x476fc4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x476fc4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51449d,_0x8f6654);}function _0x1006f6(){const _0x3ce999=_0x476fc4([0x6c,0x6c,0x63,0x74,0x2d])+_0x3fde11(_0x340d34(_0xb1ddb1)),_0x351c1a=window[_0x476fc4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x476fc4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ce999);return _0x351c1a?window[_0x476fc4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x377513(_0x351c1a),0x10)*_0x5de4e3:null;}function _0x2826be(_0x4a27db){return new window[(_0x476fc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x322807,_0x1c7776)=>{_0x4a27db[_0x476fc4([0x74,0x68,0x65,0x6e])](_0x322807,_0x1c7776),window[_0x476fc4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c7776,0x57c70a1e^_0x2b052f);});}}_0x611185[_0x476fc4([0x6f,0x6e])](_0x476fc4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd12ab2,_0x486678)=>{if(_0x486678[0x0]!=_0xb1ddb1)return _0x309efb(_0x476fc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x486678[0x1]={..._0x486678[0x1],[_0x476fc4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1a8df2};},{[_0x476fc4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x476fc4([0x68,0x69,0x67,0x68])}),_0x611185[_0x476fc4([0x6f,0x6e])](_0x476fc4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2bb6a7=>{_0x1fdb2f(_0x2bb6a7[_0x476fc4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x54d2bf=!0x0,_0x265a50(_0x2bb6a7[_0x476fc4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x476fc4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x476fc4([0x6c,0x6f,0x77])}),_0x3e8f0a[_0x476fc4([0x74,0x68,0x65,0x6e])](()=>{_0x54d2bf||_0x309efb(_0x476fc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xe58af1(){return _0x611185[_0x476fc4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x476fc4([0x76,0x69,0x65,0x77])][_0x476fc4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x476fc4([0x61,0x75,0x74,0x6f]);}function _0x1d686e(){_0x611185[_0x476fc4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x476fc4([0x76,0x69,0x65,0x77])][_0x476fc4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x476fc4([0x61,0x75,0x74,0x6f]);}}function _0x4a7b67(_0x2ad36f){const _0x50c75c=[new window[(_0x476fc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c340b=>setTimeout(_0x3c340b,0x57cfe012^_0x2b052f)),_0x3e8f0a[_0x476fc4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x476fc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x486a84=>{let _0x3edbda=0x0;_0x611185[_0x476fc4([0x6d,0x6f,0x64,0x65,0x6c])][_0x476fc4([0x6f,0x6e])](_0x476fc4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x21cf97,_0x42869c)=>{_0x42869c[0x0][_0x476fc4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3edbda++,_0x3edbda==(0x57c6df26^_0x2b052f)&&(_0x486a84(),_0x21cf97[_0x476fc4([0x6f,0x66,0x66])]());});}))];return window[_0x476fc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x476fc4([0x72,0x61,0x63,0x65])](_0x50c75c)[_0x476fc4([0x74,0x68,0x65,0x6e])](()=>_0x2ad36f);}async function _0x4e51f5(){await _0x3e8f0a,_0x611185[_0x476fc4([0x6d,0x6f,0x64,0x65,0x6c])][_0x476fc4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x23f6c1,_0x611185[_0x476fc4([0x6d,0x6f,0x64,0x65,0x6c])][_0x476fc4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x23f6c1,_0x611185[_0x476fc4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x476fc4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2faf4c(_0x8fb73d){const _0x1ba8d8=_0x296aed();_0x611185[_0x1ba8d8]=_0x476fc4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x8fb73d,_0x8fb73d!=_0x476fc4([0x56,0x61,0x6c,0x69,0x64])&&_0x4e51f5();}function _0x296aed(){const _0x1ad6c2=window[_0x476fc4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x476fc4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x476fc4([0x6e,0x6f,0x77])]())[_0x476fc4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x476fc4([0x2e]),'');let _0x392d11=_0x476fc4([0x71]);for(let _0x2e10bf=0x0;_0x2e10bf<_0x1ad6c2[_0x476fc4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e10bf+=0x2){let _0x32e4e2=window[_0x476fc4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ad6c2[_0x476fc4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e10bf,_0x2e10bf+0x2));_0x32e4e2>=_0x5e5b0d[_0x476fc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x32e4e2-=_0x5e5b0d[_0x476fc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x392d11+=_0x5e5b0d[_0x32e4e2];}return _0x392d11;}function _0xcafaf(){const _0x2eddeb=_0x49afef[_0x476fc4([0x73,0x70,0x6c,0x69,0x74])](_0x476fc4([0x2e]));if(0x3!=_0x2eddeb[_0x476fc4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4dc74e(_0x2eddeb[0x1]);function _0x4dc74e(_0x1421c0){const _0x5597ce=_0x56509f(_0x1421c0);return _0x5597ce&&_0x23d8bb()?_0x5597ce:null;function _0x23d8bb(){const _0x17a75a=_0x5597ce[_0x476fc4([0x6a,0x74,0x69])],_0x40bdcb=window[_0x476fc4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17a75a[_0x476fc4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17a75a[_0x476fc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x349035={..._0x5597ce,[_0x476fc4([0x6a,0x74,0x69])]:_0x17a75a[_0x476fc4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x17a75a[_0x476fc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x349035[_0x476fc4([0x76,0x63])],_0x340d34(_0x349035)==_0x40bdcb;}}}async function _0x208244(){let _0x9543bf=!0x0;try{const _0x502cc3=_0x49afef[_0x476fc4([0x73,0x70,0x6c,0x69,0x74])](_0x476fc4([0x2e])),[_0x319244,_0x485af0,_0xb36c65]=_0x502cc3;return _0x5c5f9e(_0x319244),await _0x41673c(_0x319244,_0x485af0,_0xb36c65),_0x9543bf;}catch{return!0x1;}function _0x5c5f9e(_0x4b383d){const _0x26ff34=_0x56509f(_0x4b383d);_0x26ff34&&_0x26ff34[_0x476fc4([0x61,0x6c,0x67])]==_0x476fc4([0x45,0x53,0x32,0x35,0x36])||(_0x9543bf=!0x1);}async function _0x41673c(_0x5acce4,_0x54e9bd,_0x53d76b){const _0x4158ca=window[_0x476fc4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x476fc4([0x66,0x72,0x6f,0x6d])](_0x5afdf8(_0x53d76b),_0x70c616=>_0x70c616[_0x476fc4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3af6c3=new window[(_0x476fc4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x476fc4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5acce4+_0x476fc4([0x2e])+_0x54e9bd),_0x272daf=window[_0x476fc4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x476fc4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x272daf)return;const _0x2e5e24=await _0x272daf[_0x476fc4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x476fc4([0x6a,0x77,0x6b]),_0x18cf90,{[_0x476fc4([0x6e,0x61,0x6d,0x65])]:_0x476fc4([0x45,0x43,0x44,0x53,0x41]),[_0x476fc4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x476fc4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x476fc4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x272daf[_0x476fc4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x476fc4([0x6e,0x61,0x6d,0x65])]:_0x476fc4([0x45,0x43,0x44,0x53,0x41]),[_0x476fc4([0x68,0x61,0x73,0x68])]:{[_0x476fc4([0x6e,0x61,0x6d,0x65])]:_0x476fc4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2e5e24,_0x4158ca,_0x3af6c3)||(_0x9543bf=!0x1);}}function _0x56509f(_0x492614){return _0x492614[_0x476fc4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x476fc4([0x65,0x79]))?JSON[_0x476fc4([0x70,0x61,0x72,0x73,0x65])](_0x5afdf8(_0x492614)):null;}function _0x5afdf8(_0x4a2c60){return window[_0x476fc4([0x61,0x74,0x6f,0x62])](_0x4a2c60[_0x476fc4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x476fc4([0x2b]))[_0x476fc4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x476fc4([0x2f])));}function _0x340d34(_0x456c95){let _0xfba65c=0x1505;function _0x52b639(_0xb862e7){for(let _0x10fadd=0x0;_0x10fadd<_0xb862e7[_0x476fc4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10fadd++){const _0x332ee2=_0xb862e7[_0x476fc4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x10fadd);_0xfba65c=(_0xfba65c<<0x5)+_0xfba65c+_0x332ee2,_0xfba65c&=_0xfba65c;}}function _0x1bf597(_0xc478c5){Array[_0x476fc4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xc478c5)?_0xc478c5[_0x476fc4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1bf597):_0xc478c5&&typeof _0xc478c5==_0x476fc4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x476fc4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xc478c5)[_0x476fc4([0x73,0x6f,0x72,0x74])]()[_0x476fc4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x14ba7d,_0x23baa4])=>{_0x52b639(_0x14ba7d),_0x1bf597(_0x23baa4);}):_0x52b639(window[_0x476fc4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xc478c5));}return _0x1bf597(_0x456c95),_0xfba65c>>>0x0;}function _0x3fde11(_0x13c79c){return _0x13c79c[_0x476fc4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x476fc4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x476fc4([0x30]));}function _0x377513(_0x3c07f3){return _0x3c07f3[_0x476fc4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x476fc4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x476fc4([0x6a,0x6f,0x69,0x6e])]('');}function _0x23f6c1(){}function _0x476fc4(_0x3342f6){const _0x3c88a4=_0x387c;return _0x3342f6[_0x3c88a4(0x1a2)](_0xcd7323=>String[_0x3c88a4(0x1c8)](_0xcd7323))[_0x3c88a4(0x1a5)]('');}_0x2faf4c(await _0x25b00f());}(this);}[_0x495192(0x1c6)](){const _0x424510=_0x495192,_0x1f9b6d=this[_0x424510(0x19f)][_0x424510(0x1ac)][_0x424510(0x1bb)];_0x1f9b6d[_0x424510(0x1b3)](_0x424510(0x1c5))&&_0x1f9b6d[_0x424510(0x1ab)](_0x424510(0x1c5),{'allowAttributes':[_0x424510(0x1e9)]}),_0x1f9b6d[_0x424510(0x1b3)](_0x424510(0x1a7))&&_0x1f9b6d[_0x424510(0x1ab)](_0x424510(0x1a7),{'allowAttributes':[_0x424510(0x1e9)]});}[_0x495192(0x1b8)](){const _0x1209e0=_0x495192,_0x108970=this[_0x1209e0(0x19f)];_0x108970[_0x1209e0(0x1ee)][_0x1209e0(0x1b2)](_0x1209e0(0x1b7))[_0x1209e0(0x1d5)]({'model':_0x1209e0(0x1e9),'view':_0x1209e0(0x1bd)}),_0x108970[_0x1209e0(0x1ee)][_0x1209e0(0x1b2)](_0x1209e0(0x1e5))[_0x1209e0(0x1dc)]({'model':{'key':_0x1209e0(0x1e9),'value':_0x2dba70=>_0x2dba70[_0x1209e0(0x1e3)](_0x1209e0(0x1bd))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x49ce89=_0x108970[_0x1209e0(0x1a0)][_0x1209e0(0x1f2)](_0x1209e0(0x1a8));_0x49ce89&&this[_0x1209e0(0x1d6)](_0x49ce89,_0x1209e0(0x1de),(_0x398ea6,[_0xab1298,_0x145161])=>{const _0x3bc031=_0x1209e0;_0xab1298[_0x3bc031(0x1be)](_0x3bc031(0x1e9),_0x145161);});}[_0x495192(0x1ad)](){const _0x5b02f6=_0x495192,_0x34f956=this[_0x5b02f6(0x19f)][_0x5b02f6(0x1c0)][_0x5b02f6(0x1f2)](_0x5b02f6(0x1a1))||{},_0x124f2b=this[_0x5b02f6(0x19f)][_0x5b02f6(0x1c0)][_0x5b02f6(0x1f2)](_0x5b02f6(0x1eb))||'';this[_0x5b02f6(0x1a4)]=_0x129f26(_0x1cb35b[_0x5b02f6(0x1ce)],_0x5b02f6(0x1db),{..._0x34f956,'pubkey':_0x124f2b,'ctx-name':_0x5b02f6(0x1aa)+this[_0x5b02f6(0x1c3)],'sourceList':'','imgOnly':_0x5b02f6(0x1f3),'removeCopyright':_0x5b02f6(0x1f3),'localeName':this[_0x5b02f6(0x19f)][_0x5b02f6(0x1c9)][_0x5b02f6(0x1cc)],'externalSourcesEmbedCss':_0x5b02f6(0x1f4)}),this[_0x5b02f6(0x1a4)][_0x5b02f6(0x1ca)]=_0x5141b0=>{const _0xb28163=_0x5b02f6;if(_0xb28163(0x1ec)==_0x5141b0)return _0xb28163(0x1e8);},_0x1cb35b[_0x5b02f6(0x1ce)][_0x5b02f6(0x1ba)][_0x5b02f6(0x1df)](this[_0x5b02f6(0x1a4)]);}[_0x495192(0x1ea)](){const _0xd336cb=_0x495192;this[_0xd336cb(0x1b6)]=_0x129f26(_0x1cb35b[_0xd336cb(0x1ce)],_0xd336cb(0x1a6),{'ctx-name':_0xd336cb(0x1aa)+this[_0xd336cb(0x1c3)]}),_0x1cb35b[_0xd336cb(0x1ce)][_0xd336cb(0x1ba)][_0xd336cb(0x1df)](this[_0xd336cb(0x1b6)]);}[_0x495192(0x1e6)](){const _0x12e564=_0x495192,_0x37cc4c=this[_0x12e564(0x19f)][_0x12e564(0x1a0)][_0x12e564(0x1f2)](_0x12e564(0x1a3));_0x37cc4c&&this[_0x12e564(0x1d6)](_0x37cc4c,_0x12e564(0x1d7),()=>{const _0x4ea147=_0x12e564,_0x420a11=this[_0x4ea147(0x19f)][_0x4ea147(0x1ac)][_0x4ea147(0x1ce)][_0x4ea147(0x1e1)][_0x4ea147(0x1c7)]();_0x420a11&&_0x420a11[_0x4ea147(0x1e3)](_0x4ea147(0x1e9))&&this[_0x4ea147(0x19f)][_0x4ea147(0x1d3)][_0x4ea147(0x1f1)][_0x4ea147(0x1d0)](_0x4ea147(0x1bc),()=>{const _0x449a5a=_0x4ea147;_0x5aefef(this[_0x449a5a(0x19f)],_0x420a11);});});const _0x2d744d=this[_0x12e564(0x19f)][_0x12e564(0x1a0)][_0x12e564(0x1f2)](_0x12e564(0x1f0));_0x2d744d&&this[_0x12e564(0x1d6)](_0x2d744d,_0x12e564(0x1d7),()=>{const _0x49523a=_0x12e564,_0x417c1b=this[_0x49523a(0x19f)][_0x49523a(0x1ac)][_0x49523a(0x1ce)][_0x49523a(0x1e1)][_0x49523a(0x1c7)]();_0x417c1b&&_0x417c1b[_0x49523a(0x1e3)](_0x49523a(0x1e9))&&this[_0x49523a(0x19f)][_0x49523a(0x1d3)][_0x49523a(0x1f1)][_0x49523a(0x1d0)](_0x49523a(0x1bc),()=>{const _0x3ba89b=_0x49523a;_0x5aefef(this[_0x3ba89b(0x19f)],_0x417c1b);});});}}
|
|
23
|
+
const _0x57a343=_0x53fc;(function(_0x19b2fb,_0x2fef5d){const _0x4054b2=_0x53fc,_0x55e979=_0x19b2fb();while(!![]){try{const _0x2211a9=parseInt(_0x4054b2(0x123))/0x1+parseInt(_0x4054b2(0x137))/0x2*(-parseInt(_0x4054b2(0x153))/0x3)+-parseInt(_0x4054b2(0x120))/0x4+parseInt(_0x4054b2(0x146))/0x5*(parseInt(_0x4054b2(0x148))/0x6)+-parseInt(_0x4054b2(0x13a))/0x7+-parseInt(_0x4054b2(0x155))/0x8+parseInt(_0x4054b2(0x11c))/0x9;if(_0x2211a9===_0x2fef5d)break;else _0x55e979['push'](_0x55e979['shift']());}catch(_0x3ce561){_0x55e979['push'](_0x55e979['shift']());}}}(_0x276e,0x868e3));function _0x276e(){const _0x193051=['downcast','closeMax','19978308FFwDwx','input[uploadcare-file-input]','_initConversion','editing','3085720Xtgfpb','#uc-icon-arrow-down','href','615542LLDIND','config','iconHrefResolver','isPremiumPlugin','cleanupImage','schema','_configElement','imageInline','listenTo','once','contentLanguage','locale','replaceImageSource','get','_initCtx','document','commands','_ctxElement','pluginName','map','586qrBRsM','remove','ctxElement','4805710IgHpcn','add','join','afterInit','requires','uc-upload-ctx-provider','uc-config','imageBlock','elementToAttribute','editor','ucContextId','destroy','40rijBHF','getSelectedElement','327792frBIpB','uploadcare.uploader','appendChild','render','data-uc-image-id','execute','UploadcareEditing','isRegistered','upcast','attributeToAttribute','init','7929FYKhdP','getAttribute','3911296DZqhAz','isOfficialPlugin','view','\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','uploadcare.pubkey','model','configElement','insertImage','fromCharCode','querySelector','_initSchema','body','true','PictureEditing','selection','_initImageProcessingIndicator','_initConfig','uploadcare','conversion','for','uploadcareImageReplace','uploader-','extend','removeAttribute','uploadcareImageId'];_0x276e=function(){return _0x193051;};return _0x276e();}import{Plugin as _0x48cd10}from'ckeditor5/src/core.js';function _0x53fc(_0x3ed7bf,_0x1e3742){const _0x276e62=_0x276e();return _0x53fc=function(_0x53fc41,_0x559ae8){_0x53fc41=_0x53fc41-0x107;let _0x15e6a7=_0x276e62[_0x53fc41];return _0x15e6a7;},_0x53fc(_0x3ed7bf,_0x1e3742);}import{Dialog as _0x2f3fc1}from'ckeditor5/src/ui.js';import{createElement as _0x11b705,global as _0x42fd79,uid as _0x3ca074}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3fb632}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x41b39e}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x52f5da}from'./utils/editingutils.js';export class UploadcareEditing extends _0x48cd10{[_0x57a343(0x129)]=null;[_0x57a343(0x134)]=null;static get[_0x57a343(0x135)](){const _0x27706b=_0x57a343;return _0x27706b(0x14e);}static get[_0x57a343(0x13e)](){const _0x126206=_0x57a343;return[_0x126206(0x10e),_0x41b39e,_0x2f3fc1];}static get[_0x57a343(0x156)](){return!0x0;}static get[_0x57a343(0x126)](){return!0x0;}[_0x57a343(0x144)];get[_0x57a343(0x107)](){const _0x3a5622=_0x57a343;return this[_0x3a5622(0x129)];}get[_0x57a343(0x139)](){const _0x5ee25d=_0x57a343;return this[_0x5ee25d(0x134)];}constructor(_0x2f733c){const _0xc5fdda=_0x57a343;super(_0x2f733c),this[_0xc5fdda(0x144)]=_0x3ca074();}[_0x57a343(0x152)](){const _0x1b51f3=_0x57a343,_0x2110a0=this[_0x1b51f3(0x143)];_0x2110a0[_0x1b51f3(0x133)][_0x1b51f3(0x13b)](_0x1b51f3(0x112),new _0x3fb632(_0x2110a0));}[_0x57a343(0x13d)](){const _0x45130a=_0x57a343;this[_0x45130a(0x10b)](),this[_0x45130a(0x11e)](),this[_0x45130a(0x111)](),this[_0x45130a(0x131)](),this[_0x45130a(0x110)](),this[_0x45130a(0x12b)](this[_0x45130a(0x143)],_0x45130a(0x145),()=>{const _0x4c8c42=_0x45130a;this[_0x4c8c42(0x129)]&&(this[_0x4c8c42(0x129)][_0x4c8c42(0x138)](),this[_0x4c8c42(0x129)]=null),this[_0x4c8c42(0x134)]&&(this[_0x4c8c42(0x134)][_0x4c8c42(0x138)](),this[_0x4c8c42(0x134)]=null);const _0x42216c=_0x42fd79[_0x4c8c42(0x132)][_0x4c8c42(0x10a)](_0x4c8c42(0x11d));_0x42216c&&_0x42216c[_0x4c8c42(0x138)]();}),async function(_0x57b271){const _0x4302fb=_0x294e35([0x6b,0x68,0x38,0x4d,0x41,0x79,0x49,0x71,0x46,0x36,0x6a,0x59,0x56,0x39,0x64,0x55,0x32,0x62,0x5a,0x45,0x63,0x31,0x73,0x66,0x6f,0x61,0x34,0x50,0x44,0x4e,0x42,0x33,0x78,0x58,0x72,0x4b,0x74,0x4a,0x76,0x77,0x37,0x4c,0x69,0x53,0x7a,0x70,0x6e,0x6d,0x51,0x4f,0x48,0x30,0x75,0x43,0x52,0x57,0x47,0x67,0x65,0x54,0x35,0x6c]),_0x1d6455=0x56308af4,_0x4d404d=0x5637e7e4^_0x1d6455,_0x50115f=window[_0x294e35([0x44,0x61,0x74,0x65])][_0x294e35([0x6e,0x6f,0x77])](),_0x3f2744=_0x57b271[_0x294e35([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2d670c=new window[(_0x294e35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5761b7=>{_0x3f2744[_0x294e35([0x6f,0x6e,0x63,0x65])](_0x294e35([0x72,0x65,0x61,0x64,0x79]),_0x5761b7);}),_0x10832f={[_0x294e35([0x6b,0x74,0x79])]:_0x294e35([0x45,0x43]),[_0x294e35([0x75,0x73,0x65])]:_0x294e35([0x73,0x69,0x67]),[_0x294e35([0x63,0x72,0x76])]:_0x294e35([0x50,0x2d,0x32,0x35,0x36]),[_0x294e35([0x78])]:_0x294e35([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]),[_0x294e35([0x79])]:_0x294e35([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]),[_0x294e35([0x61,0x6c,0x67])]:_0x294e35([0x45,0x53,0x32,0x35,0x36])},_0x1bc07f=_0x3f2744[_0x294e35([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x294e35([0x67,0x65,0x74])](_0x294e35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x55da3d(){let _0x55d55e,_0x2fdc9f=null,_0x48cbba=null;try{if(_0x1bc07f==_0x294e35([0x47,0x50,0x4c]))return _0x294e35([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x55d55e=_0x5d7034(),!_0x55d55e)return _0x294e35([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x55d55e[_0x294e35([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x48cbba=_0x54dfd5(_0x55d55e[_0x294e35([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x55d55e[_0x294e35([0x6a,0x74,0x69])])),await _0x594575()?_0xfc310()?_0x1b2e3c()?_0x294e35([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2f32ea()?(_0x55d55e[_0x294e35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x294e35([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2fdc9f=_0x1fdec1(_0x294e35([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x55d55e[_0x294e35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x294e35([0x74,0x72,0x69,0x61,0x6c])&&(_0x2fdc9f=_0x1fdec1(_0x294e35([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x56d71b()):_0x294e35([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x294e35([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x294e35([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x294e35([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1b2e3c(){const _0x53c736=[_0x294e35([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x294e35([0x74,0x72,0x69,0x61,0x6c])][_0x294e35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55d55e[_0x294e35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x50115f/0x3e8:0xe10*_0x4d404d;return _0x55d55e[_0x294e35([0x65,0x78,0x70])]<_0x53c736;}function _0xfc310(){const _0xf7181d=_0x55d55e[_0x294e35([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xf7181d&&(!!_0xf7181d[_0x294e35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x294e35([0x2a]))||!!_0xf7181d[_0x294e35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x294e35([0x55,0x50,0x4c,0x43])));}function _0x2f32ea(){const _0x26c8cc=_0x53fc,_0x284395=_0x55d55e[_0x294e35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x284395||0x0==_0x284395[_0x294e35([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3b5b4a}=new URL(window[_0x294e35([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x26c8cc(0x122)]);if(_0x284395[_0x294e35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b5b4a))return!0x0;const _0x464da6=_0x3b5b4a[_0x294e35([0x73,0x70,0x6c,0x69,0x74])](_0x294e35([0x2e]));return _0x284395[_0x294e35([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4332ed=>_0x4332ed[_0x294e35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x294e35([0x2a])))[_0x294e35([0x6d,0x61,0x70])](_0x1cb61d=>_0x1cb61d[_0x294e35([0x73,0x70,0x6c,0x69,0x74])](_0x294e35([0x2e])))[_0x294e35([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x55b01f=>_0x55b01f[_0x294e35([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x464da6[_0x294e35([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x294e35([0x6d,0x61,0x70])](_0x258bb2=>Array(_0x464da6[_0x294e35([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x258bb2[_0x294e35([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x294e35([0x66,0x69,0x6c,0x6c])](_0x258bb2[0x0]===_0x294e35([0x2a])?_0x294e35([0x2a]):'')[_0x294e35([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x258bb2))[_0x294e35([0x73,0x6f,0x6d,0x65])](_0x2a913d=>_0x464da6[_0x294e35([0x65,0x76,0x65,0x72,0x79])]((_0x3031fd,_0x5aefc5)=>_0x2a913d[_0x5aefc5]===_0x3031fd||_0x2a913d[_0x5aefc5]===_0x294e35([0x2a])));}function _0x56d71b(){return _0x2fdc9f&&_0x48cbba?new window[(_0x294e35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb4d656,_0x2a6523)=>{_0x2fdc9f[_0x294e35([0x74,0x68,0x65,0x6e])](_0xb4d656,_0x2a6523),_0x48cbba[_0x294e35([0x74,0x68,0x65,0x6e])](_0x231932=>{_0x231932!=_0x294e35([0x56,0x61,0x6c,0x69,0x64])&&_0xb4d656(_0x231932);},_0x2a6523);}):_0x2fdc9f||_0x48cbba||_0x294e35([0x56,0x61,0x6c,0x69,0x64]);}}function _0x54dfd5(_0x325d82,_0x1545b6){return new window[(_0x294e35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcef0e5=>{if(_0x327e88())return _0xcef0e5(_0x294e35([0x56,0x61,0x6c,0x69,0x64]));_0x2d65bd(),_0x3f2744[_0x294e35([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x294e35([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2bdf8c=!0x1;const _0x5f2d89=_0x3ca074();function _0x1639ab(_0xb0cb91){return!!_0xb0cb91&&(typeof _0xb0cb91===_0x294e35([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb0cb91===_0x294e35([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb0cb91[_0x294e35([0x74,0x68,0x65,0x6e])]===_0x294e35([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb0cb91[_0x294e35([0x63,0x61,0x74,0x63,0x68])]===_0x294e35([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1877c7(_0x30deb0){_0x4cba87(_0x30deb0)[_0x294e35([0x74,0x68,0x65,0x6e])](_0x48d6da=>{if(!_0x48d6da||_0x48d6da[_0x294e35([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x294e35([0x6f,0x6b]))return _0x294e35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1240c1(_0x533d46(_0x5f2d89+_0x1545b6))!=_0x48d6da[_0x294e35([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x294e35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x294e35([0x56,0x61,0x6c,0x69,0x64]);})[_0x294e35([0x74,0x68,0x65,0x6e])](_0x246a1a=>(_0x5df611(),_0x246a1a),()=>{const _0x4fd5f6=_0x1b09e2();return null==_0x4fd5f6?(_0x5df611(),_0x294e35([0x56,0x61,0x6c,0x69,0x64])):_0x294e35(_0x50115f-_0x4fd5f6>(0x723c0ef4^_0x1d6455)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x294e35([0x74,0x68,0x65,0x6e])](_0xcef0e5)[_0x294e35([0x63,0x61,0x74,0x63,0x68])](()=>{_0xcef0e5(_0x294e35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e673c=0x56066474^_0x1d6455;function _0x5df611(){const _0x3124c6=_0x294e35([0x6c,0x6c,0x63,0x74,0x2d])+_0x1240c1(_0x533d46(_0x325d82)),_0x17f88d=_0x271179(_0x1240c1(window[_0x294e35([0x4d,0x61,0x74,0x68])][_0x294e35([0x63,0x65,0x69,0x6c])](_0x50115f/_0x2e673c)));window[_0x294e35([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x294e35([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3124c6,_0x17f88d);}function _0x1b09e2(){const _0x2392a7=_0x294e35([0x6c,0x6c,0x63,0x74,0x2d])+_0x1240c1(_0x533d46(_0x325d82)),_0x3ddb7c=window[_0x294e35([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x294e35([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2392a7);return _0x3ddb7c?window[_0x294e35([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x271179(_0x3ddb7c),0x10)*_0x2e673c:null;}function _0x4cba87(_0x363080){return new window[(_0x294e35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19e882,_0x2bc264)=>{_0x363080[_0x294e35([0x74,0x68,0x65,0x6e])](_0x19e882,_0x2bc264),window[_0x294e35([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2bc264,0x56315e34^_0x1d6455);});}}_0x3f2744[_0x294e35([0x6f,0x6e])](_0x294e35([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xe692f,_0x265f09)=>{if(_0x265f09[0x0]!=_0x325d82)return _0xcef0e5(_0x294e35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x265f09[0x1]={..._0x265f09[0x1],[_0x294e35([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5f2d89};},{[_0x294e35([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x294e35([0x68,0x69,0x67,0x68])}),_0x3f2744[_0x294e35([0x6f,0x6e])](_0x294e35([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x578989=>{_0x1639ab(_0x578989[_0x294e35([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2bdf8c=!0x0,_0x1877c7(_0x578989[_0x294e35([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x294e35([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x294e35([0x6c,0x6f,0x77])}),_0x2d670c[_0x294e35([0x74,0x68,0x65,0x6e])](()=>{_0x2bdf8c||_0xcef0e5(_0x294e35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x327e88(){return _0x3f2744[_0x294e35([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x294e35([0x76,0x69,0x65,0x77])][_0x294e35([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x294e35([0x61,0x75,0x74,0x6f]);}function _0x2d65bd(){_0x3f2744[_0x294e35([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x294e35([0x76,0x69,0x65,0x77])][_0x294e35([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x294e35([0x61,0x75,0x74,0x6f]);}}function _0x1fdec1(_0x30b2e3){const _0x2a425b=[new window[(_0x294e35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4aa55c=>setTimeout(_0x4aa55c,0x5639b438^_0x1d6455)),_0x2d670c[_0x294e35([0x74,0x68,0x65,0x6e])](()=>new window[(_0x294e35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2eb2ee=>{let _0x3de96f=0x0;_0x3f2744[_0x294e35([0x6d,0x6f,0x64,0x65,0x6c])][_0x294e35([0x6f,0x6e])](_0x294e35([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x92565,_0x2c7fec)=>{_0x2c7fec[0x0][_0x294e35([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3de96f++,_0x3de96f==(0x56308b0c^_0x1d6455)&&(_0x2eb2ee(),_0x92565[_0x294e35([0x6f,0x66,0x66])]());});}))];return window[_0x294e35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x294e35([0x72,0x61,0x63,0x65])](_0x2a425b)[_0x294e35([0x74,0x68,0x65,0x6e])](()=>_0x30b2e3);}async function _0x2afc92(){await _0x2d670c,_0x3f2744[_0x294e35([0x6d,0x6f,0x64,0x65,0x6c])][_0x294e35([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x12d43d,_0x3f2744[_0x294e35([0x6d,0x6f,0x64,0x65,0x6c])][_0x294e35([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x12d43d,_0x3f2744[_0x294e35([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x294e35([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4bc089(_0x2ce2fe){const _0x303353=_0x378a75();_0x3f2744[_0x303353]=_0x294e35([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2ce2fe,_0x2ce2fe!=_0x294e35([0x56,0x61,0x6c,0x69,0x64])&&_0x2afc92();}function _0x378a75(){const _0x5ed243=window[_0x294e35([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x294e35([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x294e35([0x6e,0x6f,0x77])]())[_0x294e35([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x294e35([0x2e]),'');let _0x3a044e=_0x294e35([0x6b]);for(let _0x489c4f=0x0;_0x489c4f<_0x5ed243[_0x294e35([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x489c4f+=0x2){let _0x280717=window[_0x294e35([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ed243[_0x294e35([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x489c4f,_0x489c4f+0x2));_0x280717>=_0x4302fb[_0x294e35([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x280717-=_0x4302fb[_0x294e35([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3a044e+=_0x4302fb[_0x280717];}return _0x3a044e;}function _0x5d7034(){const _0x173587=_0x1bc07f[_0x294e35([0x73,0x70,0x6c,0x69,0x74])](_0x294e35([0x2e]));if(0x3!=_0x173587[_0x294e35([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x20ba55(_0x173587[0x1]);function _0x20ba55(_0x1f6e5a){const _0x30a8d8=_0x53065e(_0x1f6e5a);return _0x30a8d8&&_0x3cfc8f()?_0x30a8d8:null;function _0x3cfc8f(){const _0x421bd6=_0x30a8d8[_0x294e35([0x6a,0x74,0x69])],_0x4c8c2d=window[_0x294e35([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x421bd6[_0x294e35([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x421bd6[_0x294e35([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ec7c8={..._0x30a8d8,[_0x294e35([0x6a,0x74,0x69])]:_0x421bd6[_0x294e35([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x421bd6[_0x294e35([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ec7c8[_0x294e35([0x76,0x63])],_0x533d46(_0x2ec7c8)==_0x4c8c2d;}}}async function _0x594575(){let _0x6f0446=!0x0;try{const _0x1d9683=_0x1bc07f[_0x294e35([0x73,0x70,0x6c,0x69,0x74])](_0x294e35([0x2e])),[_0x4efcaa,_0xb72eb8,_0x1d2de2]=_0x1d9683;return _0x2ec070(_0x4efcaa),await _0x1c1e61(_0x4efcaa,_0xb72eb8,_0x1d2de2),_0x6f0446;}catch{return!0x1;}function _0x2ec070(_0x11ba46){const _0x39ef40=_0x53065e(_0x11ba46);_0x39ef40&&_0x39ef40[_0x294e35([0x61,0x6c,0x67])]==_0x294e35([0x45,0x53,0x32,0x35,0x36])||(_0x6f0446=!0x1);}async function _0x1c1e61(_0x1ce95a,_0x30a088,_0x22c67b){const _0x572e19=window[_0x294e35([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x294e35([0x66,0x72,0x6f,0x6d])](_0x18796e(_0x22c67b),_0x13a879=>_0x13a879[_0x294e35([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4551cd=new window[(_0x294e35([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x294e35([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1ce95a+_0x294e35([0x2e])+_0x30a088),_0x4917db=window[_0x294e35([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x294e35([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4917db)return;const _0x23be5e=await _0x4917db[_0x294e35([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x294e35([0x6a,0x77,0x6b]),_0x10832f,{[_0x294e35([0x6e,0x61,0x6d,0x65])]:_0x294e35([0x45,0x43,0x44,0x53,0x41]),[_0x294e35([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x294e35([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x294e35([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4917db[_0x294e35([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x294e35([0x6e,0x61,0x6d,0x65])]:_0x294e35([0x45,0x43,0x44,0x53,0x41]),[_0x294e35([0x68,0x61,0x73,0x68])]:{[_0x294e35([0x6e,0x61,0x6d,0x65])]:_0x294e35([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23be5e,_0x572e19,_0x4551cd)||(_0x6f0446=!0x1);}}function _0x53065e(_0x5a447b){return _0x5a447b[_0x294e35([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x294e35([0x65,0x79]))?JSON[_0x294e35([0x70,0x61,0x72,0x73,0x65])](_0x18796e(_0x5a447b)):null;}function _0x18796e(_0x1d4fab){return window[_0x294e35([0x61,0x74,0x6f,0x62])](_0x1d4fab[_0x294e35([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x294e35([0x2b]))[_0x294e35([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x294e35([0x2f])));}function _0x533d46(_0x1c079f){let _0x3befac=0x1505;function _0x524da0(_0x52b1ac){for(let _0x12bb9c=0x0;_0x12bb9c<_0x52b1ac[_0x294e35([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12bb9c++){const _0x2abfa3=_0x52b1ac[_0x294e35([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x12bb9c);_0x3befac=(_0x3befac<<0x5)+_0x3befac+_0x2abfa3,_0x3befac&=_0x3befac;}}function _0x47f8f1(_0x5bc6f3){Array[_0x294e35([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5bc6f3)?_0x5bc6f3[_0x294e35([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x47f8f1):_0x5bc6f3&&typeof _0x5bc6f3==_0x294e35([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x294e35([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5bc6f3)[_0x294e35([0x73,0x6f,0x72,0x74])]()[_0x294e35([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x610ad0,_0x19b483])=>{_0x524da0(_0x610ad0),_0x47f8f1(_0x19b483);}):_0x524da0(window[_0x294e35([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5bc6f3));}return _0x47f8f1(_0x1c079f),_0x3befac>>>0x0;}function _0x1240c1(_0x309b00){return _0x309b00[_0x294e35([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x294e35([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x294e35([0x30]));}function _0x271179(_0x64c357){return _0x64c357[_0x294e35([0x73,0x70,0x6c,0x69,0x74])]('')[_0x294e35([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x294e35([0x6a,0x6f,0x69,0x6e])]('');}function _0x12d43d(){}function _0x294e35(_0x4a0ade){const _0x2a33c7=_0x53fc;return _0x4a0ade[_0x2a33c7(0x136)](_0x21f284=>String[_0x2a33c7(0x109)](_0x21f284))[_0x2a33c7(0x13c)]('');}_0x4bc089(await _0x55da3d());}(this);}[_0x57a343(0x10b)](){const _0x19c849=_0x57a343,_0x1a7e74=this[_0x19c849(0x143)][_0x19c849(0x15a)][_0x19c849(0x128)];_0x1a7e74[_0x19c849(0x14f)](_0x19c849(0x141))&&_0x1a7e74[_0x19c849(0x117)](_0x19c849(0x141),{'allowAttributes':[_0x19c849(0x119)]}),_0x1a7e74[_0x19c849(0x14f)](_0x19c849(0x12a))&&_0x1a7e74[_0x19c849(0x117)](_0x19c849(0x12a),{'allowAttributes':[_0x19c849(0x119)]});}[_0x57a343(0x11e)](){const _0x1a2457=_0x57a343,_0x3ae847=this[_0x1a2457(0x143)];_0x3ae847[_0x1a2457(0x113)][_0x1a2457(0x114)](_0x1a2457(0x11a))[_0x1a2457(0x151)]({'model':_0x1a2457(0x119),'view':_0x1a2457(0x14c)}),_0x3ae847[_0x1a2457(0x113)][_0x1a2457(0x114)](_0x1a2457(0x150))[_0x1a2457(0x142)]({'model':{'key':_0x1a2457(0x119),'value':_0xb7dc1d=>_0xb7dc1d[_0x1a2457(0x154)](_0x1a2457(0x14c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x27049b=_0x3ae847[_0x1a2457(0x133)][_0x1a2457(0x130)](_0x1a2457(0x12f));_0x27049b&&this[_0x1a2457(0x12b)](_0x27049b,_0x1a2457(0x127),(_0x497d88,[_0x228073,_0x1b451a])=>{const _0x2a7322=_0x1a2457;_0x228073[_0x2a7322(0x118)](_0x2a7322(0x119),_0x1b451a);});}[_0x57a343(0x111)](){const _0x45c6cc=_0x57a343,_0x11164d=this[_0x45c6cc(0x143)][_0x45c6cc(0x124)][_0x45c6cc(0x130)](_0x45c6cc(0x149))||{},_0x558401=this[_0x45c6cc(0x143)][_0x45c6cc(0x124)][_0x45c6cc(0x130)](_0x45c6cc(0x159))||'';this[_0x45c6cc(0x129)]=_0x11b705(_0x42fd79[_0x45c6cc(0x132)],_0x45c6cc(0x140),{..._0x11164d,'pubkey':_0x558401,'ctx-name':_0x45c6cc(0x116)+this[_0x45c6cc(0x144)],'sourceList':'','imgOnly':_0x45c6cc(0x10d),'removeCopyright':_0x45c6cc(0x10d),'localeName':this[_0x45c6cc(0x143)][_0x45c6cc(0x12e)][_0x45c6cc(0x12d)],'externalSourcesEmbedCss':_0x45c6cc(0x158)}),this[_0x45c6cc(0x129)][_0x45c6cc(0x125)]=_0x2da4c3=>{const _0x48454e=_0x45c6cc;if(_0x48454e(0x11b)==_0x2da4c3)return _0x48454e(0x121);},_0x42fd79[_0x45c6cc(0x132)][_0x45c6cc(0x10c)][_0x45c6cc(0x14a)](this[_0x45c6cc(0x129)]);}[_0x57a343(0x131)](){const _0x49aff5=_0x57a343;this[_0x49aff5(0x134)]=_0x11b705(_0x42fd79[_0x49aff5(0x132)],_0x49aff5(0x13f),{'ctx-name':_0x49aff5(0x116)+this[_0x49aff5(0x144)]}),_0x42fd79[_0x49aff5(0x132)][_0x49aff5(0x10c)][_0x49aff5(0x14a)](this[_0x49aff5(0x134)]);}[_0x57a343(0x110)](){const _0x575669=_0x57a343,_0x473828=this[_0x575669(0x143)][_0x575669(0x133)][_0x575669(0x130)](_0x575669(0x108));_0x473828&&this[_0x575669(0x12b)](_0x473828,_0x575669(0x14d),()=>{const _0x1d0a4e=_0x575669,_0x4e8644=this[_0x1d0a4e(0x143)][_0x1d0a4e(0x15a)][_0x1d0a4e(0x132)][_0x1d0a4e(0x10f)][_0x1d0a4e(0x147)]();_0x4e8644&&_0x4e8644[_0x1d0a4e(0x154)](_0x1d0a4e(0x119))&&this[_0x1d0a4e(0x143)][_0x1d0a4e(0x11f)][_0x1d0a4e(0x157)][_0x1d0a4e(0x12c)](_0x1d0a4e(0x14b),()=>{const _0xf136f=_0x1d0a4e;_0x52f5da(this[_0xf136f(0x143)],_0x4e8644);});});const _0x7329f2=this[_0x575669(0x143)][_0x575669(0x133)][_0x575669(0x130)](_0x575669(0x115));_0x7329f2&&this[_0x575669(0x12b)](_0x7329f2,_0x575669(0x14d),()=>{const _0x41c1d9=_0x575669,_0x46ab46=this[_0x41c1d9(0x143)][_0x41c1d9(0x15a)][_0x41c1d9(0x132)][_0x41c1d9(0x10f)][_0x41c1d9(0x147)]();_0x46ab46&&_0x46ab46[_0x41c1d9(0x154)](_0x41c1d9(0x119))&&this[_0x41c1d9(0x143)][_0x41c1d9(0x11f)][_0x41c1d9(0x157)][_0x41c1d9(0x12c)](_0x41c1d9(0x14b),()=>{const _0x5092eb=_0x41c1d9;_0x52f5da(this[_0x5092eb(0x143)],_0x46ab46);});});}}
|