@ckeditor/ckeditor5-uploadcare 45.2.0-alpha.4 → 45.2.0-alpha.5
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/uploadcareediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0xcb9d14,Command as _0x1e4602}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4ee6bb,IconGooglePhotos as _0x4b014f,IconGoogleDrive as _0xddcec5,IconFacebook as _0x2b2029,IconDropbox as _0x213e84,IconUploadcareLink as _0x40845c,IconUploadcareImageUpload as _0x3164c4,IconError as et,IconUploadcareImageEdit as _0x3f34de}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5ca660,MenuBarMenuListItemButtonView as _0x41cef8,View as _0x1aab29,FocusCycler as _0x41f463,Dialog as _0x407f0d,DialogViewPosition as _0x105c70,SpinnerView as _0x3a25e1,IconView as at,Notification as _0x50b074}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x584df0,DomEmitterMixin as _0x4af7f7,global as _0x5240e5,getAncestors as _0x122771,ObservableMixin as _0x3edde9,createElement as _0xf95310,uid as _0x4c6891}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x305ac9}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5d27b2,info as _0x1d4f09}from'@uploadcare/upload-client';import*as _0x114465 from'@uploadcare/file-uploader';var o=function(_0x318744){return _0x318744['Local']='local',_0x318744['URL']='url',_0x318744['Dropbox']='dropbox',_0x318744['GDrive']='gdrive',_0x318744['Facebook']='facebook',_0x318744['GPhotos']='gphotos',_0x318744['OneDrive']='onedrive',_0x318744;}({});function _(_0x4d5944,_0xfddf9a,_0x5a24e3){const t=_0x4d5944['t'],_0x52d2c0=_0x4d5944['t'];switch(_0xfddf9a){case o['Local']:return{'text':_0x52d2c0('Insert'===_0x5a24e3?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x52d2c0('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x5a24e3?_0x52d2c0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x52d2c0('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x5a24e3?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x5a24e3?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x5a24e3?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x5a24e3?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x5a24e3?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xfddf9a;}}class e extends _0xcb9d14{['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 _0x4ecc01=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3f0cbd;for(const _0xff6aa4 in _0x4ecc01){const _0x108a7e=_0xff6aa4,_0x48981f=_0x4ecc01[_0x108a7e];if('uploadcareLicenseKeyValid'==_0x48981f||'uploadcareLicenseKeyInvalid'==_0x48981f||'uploadcareLicenseKeyExpired'==_0x48981f||'uploadcareLicenseKeyDomainLimit'==_0x48981f||'uploadcareLicenseKeyNotAllowed'==_0x48981f||'uploadcareLicenseKeyEvaluationLimit'==_0x48981f||'uploadcareLicenseKeyTrialLimit'==_0x48981f||'uploadcareLicenseKeyUsageLimit'==_0x48981f){delete _0x4ecc01[_0x108a7e],_0x3f0cbd=_0x48981f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3f0cbd&&_0x4ecc01['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3f0cbd&&_0x4ecc01['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3f0cbd&&_0x4ecc01['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3f0cbd&&_0x4ecc01['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3f0cbd&&_0x4ecc01['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3f0cbd&&_0x4ecc01['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3f0cbd&&_0x4ecc01['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x76766d}=this,_0x12c45e=_0x76766d['commands']['get']('uploadcare');if(!_0x12c45e)return;const _0x5429b5=this['_normalizeConfigSourceList'](_0x76766d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1ec6a9,_0x274a2d)=>{const _0x13b32c=this['_getIntegrationKey'](_0x274a2d['type']);return _0x1ec6a9[_0x13b32c]||(_0x1ec6a9[_0x13b32c]=[]),_0x1ec6a9[_0x13b32c]['push'](_0x274a2d),_0x1ec6a9;},{});_0x76766d['plugins']['has']('ImageInsertUI')&&_0x76766d['commands']['get']('uploadcare')&&Object['entries'](_0x5429b5)['forEach'](([_0x4bd72f,_0x1af335])=>{_0x76766d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4bd72f,'observable':()=>_0x12c45e,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1af335),'formViewCreator':()=>this['_createDropdownButtons'](_0x1af335),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1af335),'override':'assetManager'!==_0x4bd72f});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1c1ed8){const {locale:_0x4f4a41}=this['editor'];return _0x1c1ed8['map'](_0x4a1150=>{const _0x39e150=_(_0x4f4a41,_0x4a1150,'Insert');switch(_0x4a1150){case o['Local']:return{'icon':_0x3164c4,'type':o['Local'],..._0x39e150};case o['URL']:return{'icon':_0x40845c,'type':o['URL'],..._0x39e150};case o['Dropbox']:return{'icon':_0x213e84,'type':o['Dropbox'],..._0x39e150};case o['Facebook']:return{'icon':_0x2b2029,'type':o['Facebook'],..._0x39e150};case o['GDrive']:return{'icon':_0xddcec5,'type':o['GDrive'],..._0x39e150};case o['GPhotos']:return{'icon':_0x4b014f,'type':o['GPhotos'],..._0x39e150};case o['OneDrive']:return{'icon':_0x4ee6bb,'type':o['OneDrive'],..._0x39e150};}});}['_getIntegrationKey'](_0x19caf9){switch(_0x19caf9){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5cd321,_0x481501){const _0x4767a1=this['editor'],_0x325dc7=new _0x5cd321(_0x4767a1['locale']),_0x1da28e=_0x4767a1['commands']['get']('uploadcare');return _0x325dc7['bind']('isEnabled')['to'](_0x1da28e),_0x325dc7['on']('execute',()=>{_0x1da28e['execute'](_0x481501);}),_0x325dc7;}['_createToolbarButton'](_0x404d23){const {locale:_0x17bbea}=this['editor'],_0x1387f4=this['editor']['plugins']['get']('ImageInsertUI'),_0x585236=_0x404d23[0x0],_0x423aa7=this['_createButton'](_0x5ca660,_0x585236['type']);return _0x423aa7['icon']=_0x585236['icon'],_0x423aa7['bind']('label')['to'](_0x1387f4,'isImageSelected',_0x5d7b6c=>_(_0x17bbea,_0x585236['type'],_0x5d7b6c?'Replace':'Insert')['text']),_0x423aa7['tooltip']=!0x0,_0x423aa7;}['_createDropdownButtons'](_0x411bbb){const {locale:_0x549ee}=this['editor'],_0x33a96f=this['editor']['plugins']['get']('ImageInsertUI');return _0x411bbb['map'](_0x27d77b=>{const _0x8b8990=this['_createButton'](_0x5ca660,_0x27d77b['type']);return _0x8b8990['withText']=!0x0,_0x8b8990['icon']=_0x27d77b['icon'],_0x8b8990['bind']('label')['to'](_0x33a96f,'isImageSelected',_0x312f30=>_(_0x549ee,_0x27d77b['type'],_0x312f30?'Replace':'Insert')['text']),_0x8b8990;});}['_createMenuBarButtons'](_0x549868){return _0x549868['map'](_0x3cb5c2=>{const _0x461084=this['_createButton'](_0x41cef8,_0x3cb5c2['type']);return _0x461084['icon']=_0x3cb5c2['icon'],_0x461084['label']=_0x3cb5c2['shortText'],_0x461084;});}}class q extends _0x1aab29{['focusTracker'];['focusCycler'];constructor(_0x2d90b2){super(_0x2d90b2),this['focusTracker']=new _0x584df0(),this['focusCycler']=new _0x41f463({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x13e17f){super(_0x13e17f),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0xe34213,_0xf2944f){const _0x348c65=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xfcdf9f=>_0xfcdf9f<=_0xf2944f)['map'](_0x552c08=>_0xe34213['replace'](/\/$/,'')+'/-/resize/'+_0x552c08+'x/\x20'+_0x552c08+'w');return{'imageFallbackUrl':_0xe34213,'imageSources':[{'srcset':_0x348c65['join'](',\x20'),'sizes':'(max-width:\x20'+_0xf2944f+'px)\x20100vw,\x20'+_0xf2944f+'px','type':'image/webp'}]};}function A(_0x17555e,_0x4179a8,_0xdc6100){const _0x4be127=_0x17555e['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4be127?parseInt(_0x4be127[0x1],0xa):_0x4179a8,'height':_0x4be127?parseInt(_0x4be127[0x2],0xa):_0xdc6100};}function m(_0x248250,_0x253109){const _0x4f6b1f=Object['create'](_0x4af7f7),_0x114632=_0x248250['plugins']['get']('ImageUtils'),_0x7d2311=_0x248250['editing']['mapper']['toViewElement'](_0x253109),_0x522324=_0x114632['findViewImgElement'](_0x7d2311),_0x4faa50=_0x248250['editing']['view']['domConverter']['viewToDom'](_0x522324),_0x2fd74e=_0x253109['getAttribute']('width'),_0x3f7ac2=_0x253109['getAttribute']('height'),_0x4876a5='image-processing';_0x248250['editing']['view']['change'](_0x50d36d=>{_0x50d36d['addClass'](_0x4876a5,_0x7d2311),_0x50d36d['setStyle']('aspect-ratio',_0x2fd74e+'/'+_0x3f7ac2,_0x522324);}),_0x4f6b1f['listenTo'](_0x4faa50,'load',()=>{_0x4f6b1f['stopListening'](_0x4faa50,'load'),_0x248250['editing']['view']['change'](_0x1d1d6a=>{_0x1d1d6a['removeClass'](_0x4876a5,_0x7d2311),_0x1d1d6a['removeStyle']('aspect-ratio',_0x522324);});});}function V(_0x5a2a89){if(Array['isArray'](_0x5a2a89)){const _0x56ee84=_0x5a2a89['map'](V);return _0x412e3a=>_0x56ee84['some'](_0x4ef21f=>_0x4ef21f(_0x412e3a));}if('origin'==_0x5a2a89){const _0x6d5c29=_0x5240e5['window']['location']['origin'];return _0x4bca7b=>new URL(_0x4bca7b,_0x5240e5['document']['baseURI'])['origin']==_0x6d5c29;}return'function'==typeof _0x5a2a89?_0x5a2a89:_0x5a2a89 instanceof RegExp?_0x11924e=>!(!_0x11924e['match'](_0x5a2a89)&&!_0x11924e['replace'](/^https?:\/\//,'')['match'](_0x5a2a89)):()=>!0x1;}function F(_0x113fe6,_0x707d9d){return _0x122771(_0x113fe6['target'])['includes'](_0x707d9d);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x3edde9(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5c2897,_0x1515da,_0x50877e){super(),this['_editor']=_0x5c2897,this['_editing']=_0x1515da,this['_dialog']=_0x5c2897['plugins']['get'](_0x407f0d),this['_api']=_0x1515da['ctxElement']['getAPI'](),this['_type']=_0x50877e,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:_0x471f61,model:_0x53ec9d}=this['_editor'],_0x444d86=_0x53ec9d['document']['selection']['getSelectedElement'](),_0xc4c3da=_0x444d86&&(_0x444d86['is']('element','imageBlock')||_0x444d86['is']('element','imageInline'));this['_formView']=new S(_0x471f61),this['_dialog']['show']({'id':'uploadCare','icon':_0x3164c4,'title':_(_0x471f61,this['_type'],_0xc4c3da?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x105c70['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2816b5=>!F(_0x2816b5,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5821cb}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4ca393=>{const _0x39b4ed=_0x5821cb['length'];for(const _0xfa9451 of _0x5821cb){const _0xa46e84=_0xfa9451===_0x5821cb[_0x39b4ed-0x1],{cdnUrl:_0x43d8df,fileInfo:_0x40a300}=_0xfa9451;if(!_0x43d8df||!_0x40a300)continue;const {width:_0x4936bf,height:_0x3bd038}=_0x40a300['imageInfo'],_0x1b92e3=A(_0x43d8df,_0x4936bf,_0x3bd038),_0x55f599=E(_0x43d8df,_0x1b92e3['width']),_0x45f73a={'id':_0x40a300['uuid'],'type':'image','attributes':{'imageDimension':_0x1b92e3,..._0x55f599}};this['_insertAsset'](_0x45f73a,_0xa46e84,_0x4ca393);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2ba4e8=>{'idle'===_0x2ba4e8['detail']['status']&&!_0x2ba4e8['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xa582fb,_0x1a8bb7,_0x19c0b7){const _0x3ab5e7=this['_editor']['model']['document']['selection'],_0xc712a=_0x3ab5e7['getSelectedElement'](),_0x18d226=!(!_0xc712a||!_0xc712a['is']('element','imageInline'));_0x19c0b7['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xa582fb,_0x18d226),_0x1a8bb7||_0x19c0b7['setSelection'](_0x3ab5e7['getLastPosition']());}['_insertImage'](_0x5d2d30,_0x3a4277){const _0xa395cb=this['_editor'],{imageDimension:_0x32871d,imageFallbackUrl:_0x1d2a3d,imageSources:_0x11408f}=_0x5d2d30['attributes'];_0xa395cb['execute']('insertImage',{'imageType':_0x3a4277?'imageInline':null,'source':{'uploadcareImageId':_0x5d2d30['id'],'src':_0x1d2a3d,'sources':_0x11408f,..._0x32871d}});}}class n extends _0x1e4602{['_editing'];['_controller']=null;static get['requires'](){return[_0x407f0d,i];}constructor(_0x32f9ed){super(_0x32f9ed),this['_editing']=_0x32f9ed['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xaac7a4){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0xaac7a4);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x28aee2,publicKey:_0xaa1d7b,signal:_0xa9d80a,onProgress:_0x37b134}){return _0x5d27b2(_0x28aee2,{'publicKey':_0xaa1d7b,'store':'auto','signal':_0xa9d80a,'onProgress':_0x37b134});}static['getInfo'](_0x1e96b9,_0x3c83bd){return _0x1d4f09(_0x1e96b9,_0x3c83bd);}}class p extends _0xcb9d14{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x305ac9,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x144979=this['editor'];if(!!!_0x144979['config']['get']('uploadcare'))return;_0x144979['plugins']['get'](_0x305ac9)['createUploadAdapter']=_0x5d2407=>new x(_0x5d2407,_0x144979),_0x144979['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x41876b,{imageElement:_0x4c0174,data:_0x1dfe0b})=>{_0x144979['model']['change'](_0xd6d35e=>{_0xd6d35e['setAttribute']('uploadcareImageId',_0x1dfe0b['uploadcareImageId'],_0x4c0174);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x4ad175,_0xbb9a67){this['loader']=_0x4ad175,this['editor']=_0xbb9a67,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x526260=this['editor']['config']['get']('uploadcare.pubkey'),_0x19fcfd=await this['loader']['file'];return C['upload']({'file':_0x19fcfd,'publicKey':_0x526260,'signal':this['controller']['signal'],'onProgress':_0x4db400=>{_0x4db400&&_0x4db400['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4db400['value']);}})['then'](async _0x5500bf=>{const {imageFallbackUrl:_0x5207d1,imageSources:_0x153eb6}=E(_0x5500bf['cdnUrl'],_0x5500bf['imageInfo']['width']);return{'uploadcareImageId':_0x5500bf['uuid'],'default':_0x5207d1,'sources':_0x153eb6};})['catch'](()=>{const _0x553c28=t('Cannot\x20upload\x20file:')+('\x20'+_0x19fcfd['name']+'.');return Promise['reject'](_0x553c28);});}['abort'](){this['controller']['abort']();}}class i extends _0xcb9d14{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x407f0d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x47c4f2=this['editor'];_0x47c4f2['commands']['add']('uploadcare',new n(_0x47c4f2));}['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 _0x1f8bc8=_0x5240e5['document']['querySelector']('input[uploadcare-file-input]');_0x1f8bc8&&_0x1f8bc8['remove']();}),async function(_0x54c879){const _0x279fe0=_0xa0aa54([0x4a,0x49,0x52,0x45,0x44,0x59,0x68,0x42,0x36,0x41,0x63,0x77,0x4d,0x4e,0x62,0x33,0x64,0x65,0x39,0x30,0x6b,0x72,0x78,0x71,0x5a,0x56,0x73,0x47,0x57,0x53,0x4f,0x6d,0x50,0x6c,0x4b,0x6e,0x51,0x6f,0x54,0x74,0x35,0x38,0x76,0x67,0x61,0x4c,0x32,0x69,0x34,0x7a,0x43,0x55,0x66,0x58,0x6a,0x79,0x48,0x75,0x37,0x70,0x46,0x31]),_0x755f22=0x677e1ad,_0x285aa8=0x670882d^_0x755f22,_0xb297ba=window[_0xa0aa54([0x44,0x61,0x74,0x65])][_0xa0aa54([0x6e,0x6f,0x77])](),_0x1db8ed=_0x54c879[_0xa0aa54([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x364bad=new window[(_0xa0aa54([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x454997=>{_0x1db8ed[_0xa0aa54([0x6f,0x6e,0x63,0x65])](_0xa0aa54([0x72,0x65,0x61,0x64,0x79]),_0x454997);}),_0xb2a400={[_0xa0aa54([0x6b,0x74,0x79])]:_0xa0aa54([0x45,0x43]),[_0xa0aa54([0x75,0x73,0x65])]:_0xa0aa54([0x73,0x69,0x67]),[_0xa0aa54([0x63,0x72,0x76])]:_0xa0aa54([0x50,0x2d,0x32,0x35,0x36]),[_0xa0aa54([0x78])]:_0xa0aa54([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]),[_0xa0aa54([0x79])]:_0xa0aa54([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]),[_0xa0aa54([0x61,0x6c,0x67])]:_0xa0aa54([0x45,0x53,0x32,0x35,0x36])},_0x1ba93b=_0x1db8ed[_0xa0aa54([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa0aa54([0x67,0x65,0x74])](_0xa0aa54([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2d77a4(){let _0x235ece,_0x1ca95e=null,_0x2c0df2=null;try{if(_0x1ba93b==_0xa0aa54([0x47,0x50,0x4c]))return _0xa0aa54([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x235ece=_0x92383a(),!_0x235ece)return _0xa0aa54([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x235ece[_0xa0aa54([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2c0df2=_0x20add6(_0x235ece[_0xa0aa54([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x235ece[_0xa0aa54([0x6a,0x74,0x69])])),await _0xa05501()?_0x80675e()?_0x406722()?_0xa0aa54([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x448b29()?(_0x235ece[_0xa0aa54([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa0aa54([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1ca95e=_0x258512(_0xa0aa54([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x235ece[_0xa0aa54([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa0aa54([0x74,0x72,0x69,0x61,0x6c])&&(_0x1ca95e=_0x258512(_0xa0aa54([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xa6cb78()):_0xa0aa54([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa0aa54([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa0aa54([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xa0aa54([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x406722(){const _0x1240f2=[_0xa0aa54([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa0aa54([0x74,0x72,0x69,0x61,0x6c])][_0xa0aa54([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x235ece[_0xa0aa54([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xb297ba/0x3e8:0xe10*_0x285aa8;return _0x235ece[_0xa0aa54([0x65,0x78,0x70])]<_0x1240f2;}function _0x80675e(){const _0x33a3e8=_0x235ece[_0xa0aa54([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x33a3e8&&(!!_0x33a3e8[_0xa0aa54([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa0aa54([0x2a]))||!!_0x33a3e8[_0xa0aa54([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa0aa54([0x55,0x50,0x4c,0x43])));}function _0x448b29(){const _0x5b1a44=_0x235ece[_0xa0aa54([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b1a44||0x0==_0x5b1a44[_0xa0aa54([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4b8a58}=new URL(window[_0xa0aa54([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5b1a44[_0xa0aa54([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b8a58))return!0x0;const _0x12b03a=_0x4b8a58[_0xa0aa54([0x73,0x70,0x6c,0x69,0x74])](_0xa0aa54([0x2e]));return _0x5b1a44[_0xa0aa54([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd7136d=>_0xd7136d[_0xa0aa54([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa0aa54([0x2a])))[_0xa0aa54([0x6d,0x61,0x70])](_0x102ada=>_0x102ada[_0xa0aa54([0x73,0x70,0x6c,0x69,0x74])](_0xa0aa54([0x2e])))[_0xa0aa54([0x73,0x6f,0x6d,0x65])](_0x1d8d39=>_0x12b03a[_0xa0aa54([0x65,0x76,0x65,0x72,0x79])]((_0x3a94a2,_0x2ca98c)=>_0x1d8d39[_0x2ca98c]===_0x3a94a2||_0x1d8d39[_0x2ca98c]===_0xa0aa54([0x2a])));}function _0xa6cb78(){return _0x1ca95e&&_0x2c0df2?new window[(_0xa0aa54([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6e4321,_0x490c44)=>{_0x1ca95e[_0xa0aa54([0x74,0x68,0x65,0x6e])](_0x6e4321,_0x490c44),_0x2c0df2[_0xa0aa54([0x74,0x68,0x65,0x6e])](_0x51bbdb=>{_0x51bbdb!=_0xa0aa54([0x56,0x61,0x6c,0x69,0x64])&&_0x6e4321(_0x51bbdb);},_0x490c44);}):_0x1ca95e||_0x2c0df2||_0xa0aa54([0x56,0x61,0x6c,0x69,0x64]);}}function _0x20add6(_0x60bcc2,_0x13db35){return new window[(_0xa0aa54([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x402c3c=>{if(_0xfa8aa0())return _0x402c3c(_0xa0aa54([0x56,0x61,0x6c,0x69,0x64]));_0x3828c9(),_0x1db8ed[_0xa0aa54([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa0aa54([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d5fdf=!0x1;const _0x3951dc=_0x4c6891();function _0x2814c2(_0x555f51){return!!_0x555f51&&(typeof _0x555f51===_0xa0aa54([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x555f51===_0xa0aa54([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x555f51[_0xa0aa54([0x74,0x68,0x65,0x6e])]===_0xa0aa54([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x555f51[_0xa0aa54([0x63,0x61,0x74,0x63,0x68])]===_0xa0aa54([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4f1135(_0x54035a){_0x1bd68f(_0x54035a)[_0xa0aa54([0x74,0x68,0x65,0x6e])](_0x1605a3=>{if(!_0x1605a3||_0x1605a3[_0xa0aa54([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa0aa54([0x6f,0x6b]))return _0xa0aa54([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x255489(_0x2be0de(_0x3951dc+_0x13db35))!=_0x1605a3[_0xa0aa54([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa0aa54([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa0aa54([0x56,0x61,0x6c,0x69,0x64]);})[_0xa0aa54([0x74,0x68,0x65,0x6e])](_0x1dfa8a=>(_0x43bc3a(),_0x1dfa8a),()=>{const _0x1b2baa=_0x3dcd03();return null==_0x1b2baa?(_0x43bc3a(),_0xa0aa54([0x56,0x61,0x6c,0x69,0x64])):_0xa0aa54(_0xb297ba-_0x1b2baa>(0x227b65ad^_0x755f22)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa0aa54([0x74,0x68,0x65,0x6e])](_0x402c3c)[_0xa0aa54([0x63,0x61,0x74,0x63,0x68])](()=>{_0x402c3c(_0xa0aa54([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x54a9f6=0x6410f2d^_0x755f22;function _0x43bc3a(){const _0x419f2f=_0xa0aa54([0x6c,0x6c,0x63,0x74,0x2d])+_0x255489(_0x2be0de(_0x60bcc2)),_0x446746=_0x511456(_0x255489(window[_0xa0aa54([0x4d,0x61,0x74,0x68])][_0xa0aa54([0x63,0x65,0x69,0x6c])](_0xb297ba/_0x54a9f6)));window[_0xa0aa54([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa0aa54([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x419f2f,_0x446746);}function _0x3dcd03(){const _0xb2cf0f=_0xa0aa54([0x6c,0x6c,0x63,0x74,0x2d])+_0x255489(_0x2be0de(_0x60bcc2)),_0x17ce69=window[_0xa0aa54([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa0aa54([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb2cf0f);return _0x17ce69?window[_0xa0aa54([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x511456(_0x17ce69),0x10)*_0x54a9f6:null;}function _0x1bd68f(_0x4f5abe){return new window[(_0xa0aa54([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x330511,_0x20aad6)=>{_0x4f5abe[_0xa0aa54([0x74,0x68,0x65,0x6e])](_0x330511,_0x20aad6),window[_0xa0aa54([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x20aad6,0x676356d^_0x755f22);});}}_0x1db8ed[_0xa0aa54([0x6f,0x6e])](_0xa0aa54([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x33d8b4,_0x1aa91a)=>{if(_0x1aa91a[0x0]!=_0x60bcc2)return _0x402c3c(_0xa0aa54([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1aa91a[0x1]={..._0x1aa91a[0x1],[_0xa0aa54([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3951dc};},{[_0xa0aa54([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa0aa54([0x68,0x69,0x67,0x68])}),_0x1db8ed[_0xa0aa54([0x6f,0x6e])](_0xa0aa54([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x124cc7=>{_0x2814c2(_0x124cc7[_0xa0aa54([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d5fdf=!0x0,_0x4f1135(_0x124cc7[_0xa0aa54([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa0aa54([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa0aa54([0x6c,0x6f,0x77])}),_0x364bad[_0xa0aa54([0x74,0x68,0x65,0x6e])](()=>{_0x3d5fdf||_0x402c3c(_0xa0aa54([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xfa8aa0(){return _0x1db8ed[_0xa0aa54([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa0aa54([0x76,0x69,0x65,0x77])][_0xa0aa54([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa0aa54([0x61,0x75,0x74,0x6f]);}function _0x3828c9(){_0x1db8ed[_0xa0aa54([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa0aa54([0x76,0x69,0x65,0x77])][_0xa0aa54([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa0aa54([0x61,0x75,0x74,0x6f]);}}function _0x258512(_0xa800af){const _0x55351d=[new window[(_0xa0aa54([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53a180=>setTimeout(_0x53a180,0x67edf61^_0x755f22)),_0x364bad[_0xa0aa54([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa0aa54([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27e39b=>{let _0x3da40c=0x0;_0x1db8ed[_0xa0aa54([0x6d,0x6f,0x64,0x65,0x6c])][_0xa0aa54([0x6f,0x6e])](_0xa0aa54([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x312e12,_0x3ab4c6)=>{_0x3ab4c6[0x0][_0xa0aa54([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3da40c++,_0x3da40c==(0x677e055^_0x755f22)&&(_0x27e39b(),_0x312e12[_0xa0aa54([0x6f,0x66,0x66])]());});}))];return window[_0xa0aa54([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa0aa54([0x72,0x61,0x63,0x65])](_0x55351d)[_0xa0aa54([0x74,0x68,0x65,0x6e])](()=>_0xa800af);}async function _0x258f7a(){await _0x364bad,_0x1db8ed[_0xa0aa54([0x6d,0x6f,0x64,0x65,0x6c])][_0xa0aa54([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x73f1da,_0x1db8ed[_0xa0aa54([0x6d,0x6f,0x64,0x65,0x6c])][_0xa0aa54([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x73f1da,_0x1db8ed[_0xa0aa54([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa0aa54([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x8c9b23(_0x26b131){const _0x17268c=_0x3025a9();_0x1db8ed[_0x17268c]=_0xa0aa54([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x26b131,_0x26b131!=_0xa0aa54([0x56,0x61,0x6c,0x69,0x64])&&_0x258f7a();}function _0x3025a9(){const _0x4d11f4=window[_0xa0aa54([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa0aa54([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa0aa54([0x6e,0x6f,0x77])]())[_0xa0aa54([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa0aa54([0x2e]),'');let _0x3f4a7a=_0xa0aa54([0x4a]);for(let _0x459c32=0x0;_0x459c32<_0x4d11f4[_0xa0aa54([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x459c32+=0x2){let _0x14bbfd=window[_0xa0aa54([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d11f4[_0xa0aa54([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x459c32,_0x459c32+0x2));_0x14bbfd>=_0x279fe0[_0xa0aa54([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x14bbfd-=_0x279fe0[_0xa0aa54([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3f4a7a+=_0x279fe0[_0x14bbfd];}return _0x3f4a7a;}function _0x92383a(){const _0x136c9b=_0x1ba93b[_0xa0aa54([0x73,0x70,0x6c,0x69,0x74])](_0xa0aa54([0x2e]));if(0x3!=_0x136c9b[_0xa0aa54([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1a847e(_0x136c9b[0x1]);function _0x1a847e(_0x30b1f4){const _0x4f7636=_0x308722(_0x30b1f4);return _0x4f7636&&_0x50d078()?_0x4f7636:null;function _0x50d078(){const _0x4a7575=_0x4f7636[_0xa0aa54([0x6a,0x74,0x69])],_0x308144=window[_0xa0aa54([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a7575[_0xa0aa54([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a7575[_0xa0aa54([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x11fca4={..._0x4f7636,[_0xa0aa54([0x6a,0x74,0x69])]:_0x4a7575[_0xa0aa54([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a7575[_0xa0aa54([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x11fca4[_0xa0aa54([0x76,0x63])],_0x2be0de(_0x11fca4)==_0x308144;}}}async function _0xa05501(){let _0x50fb8f=!0x0;try{const _0x5e891d=_0x1ba93b[_0xa0aa54([0x73,0x70,0x6c,0x69,0x74])](_0xa0aa54([0x2e])),[_0x49e38c,_0x535c8f,_0x2430cc]=_0x5e891d;return _0x7fae83(_0x49e38c),await _0x12dea0(_0x49e38c,_0x535c8f,_0x2430cc),_0x50fb8f;}catch{return!0x1;}function _0x7fae83(_0x13f981){const _0x5bb334=_0x308722(_0x13f981);_0x5bb334&&_0x5bb334[_0xa0aa54([0x61,0x6c,0x67])]==_0xa0aa54([0x45,0x53,0x32,0x35,0x36])||(_0x50fb8f=!0x1);}async function _0x12dea0(_0x2c1bc9,_0x5b4aa4,_0x4e97cf){const _0x268277=window[_0xa0aa54([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa0aa54([0x66,0x72,0x6f,0x6d])](_0x348224(_0x4e97cf),_0x303fd3=>_0x303fd3[_0xa0aa54([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x38ac65=new window[(_0xa0aa54([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa0aa54([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2c1bc9+_0xa0aa54([0x2e])+_0x5b4aa4),_0x5b5fee=window[_0xa0aa54([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa0aa54([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5b5fee)return;const _0x166988=await _0x5b5fee[_0xa0aa54([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa0aa54([0x6a,0x77,0x6b]),_0xb2a400,{[_0xa0aa54([0x6e,0x61,0x6d,0x65])]:_0xa0aa54([0x45,0x43,0x44,0x53,0x41]),[_0xa0aa54([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa0aa54([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa0aa54([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5b5fee[_0xa0aa54([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa0aa54([0x6e,0x61,0x6d,0x65])]:_0xa0aa54([0x45,0x43,0x44,0x53,0x41]),[_0xa0aa54([0x68,0x61,0x73,0x68])]:{[_0xa0aa54([0x6e,0x61,0x6d,0x65])]:_0xa0aa54([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x166988,_0x268277,_0x38ac65)||(_0x50fb8f=!0x1);}}function _0x308722(_0x418fb8){return _0x418fb8[_0xa0aa54([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa0aa54([0x65,0x79]))?JSON[_0xa0aa54([0x70,0x61,0x72,0x73,0x65])](_0x348224(_0x418fb8)):null;}function _0x348224(_0x163326){return window[_0xa0aa54([0x61,0x74,0x6f,0x62])](_0x163326[_0xa0aa54([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa0aa54([0x2b]))[_0xa0aa54([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa0aa54([0x2f])));}function _0x2be0de(_0x5cd2ff){let _0x1f4304=0x1505;function _0x13572e(_0x3aa3c1){for(let _0x34bfb4=0x0;_0x34bfb4<_0x3aa3c1[_0xa0aa54([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34bfb4++){const _0x49e9d8=_0x3aa3c1[_0xa0aa54([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x34bfb4);_0x1f4304=(_0x1f4304<<0x5)+_0x1f4304+_0x49e9d8,_0x1f4304&=_0x1f4304;}}function _0x1f564b(_0x2d0bfc){Array[_0xa0aa54([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d0bfc)?_0x2d0bfc[_0xa0aa54([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1f564b):_0x2d0bfc&&typeof _0x2d0bfc==_0xa0aa54([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa0aa54([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d0bfc)[_0xa0aa54([0x73,0x6f,0x72,0x74])]()[_0xa0aa54([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x14c354,_0x57341f])=>{_0x13572e(_0x14c354),_0x1f564b(_0x57341f);}):_0x13572e(window[_0xa0aa54([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d0bfc));}return _0x1f564b(_0x5cd2ff),_0x1f4304>>>0x0;}function _0x255489(_0x116e7c){return _0x116e7c[_0xa0aa54([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa0aa54([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa0aa54([0x30]));}function _0x511456(_0x5d737b){return _0x5d737b[_0xa0aa54([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa0aa54([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa0aa54([0x6a,0x6f,0x69,0x6e])]('');}function _0x73f1da(){}function _0xa0aa54(_0x114275){return _0x114275['map'](_0x541974=>String['fromCharCode'](_0x541974))['join']('');}_0x8c9b23(await _0x2d77a4());}(this);}['_initSchema'](){const _0xcc852a=this['editor']['model']['schema'];_0xcc852a['isRegistered']('imageBlock')&&_0xcc852a['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xcc852a['isRegistered']('imageInline')&&_0xcc852a['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5c7661=this['editor'];_0x5c7661['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5c7661['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2597c2=>_0x2597c2['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x21780e=_0x5c7661['commands']['get']('replaceImageSource');_0x21780e&&this['listenTo'](_0x21780e,'cleanupImage',(_0xeb3753,[_0xa1cc38,_0x5c0e1a])=>{_0xa1cc38['removeAttribute']('uploadcareImageId',_0x5c0e1a);});}['_initConfig'](){const _0x1c828=this['editor']['config']['get']('uploadcare.uploader')||{},_0x120ecb=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xf95310(_0x5240e5['document'],'uc-config',{..._0x1c828,'pubkey':_0x120ecb,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0xe1972c=>{if('closeMax'==_0xe1972c)return'#uc-icon-arrow-down';},_0x5240e5['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xf95310(_0x5240e5['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x5240e5['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4b3f75=this['editor']['commands']['get']('insertImage');_0x4b3f75&&this['listenTo'](_0x4b3f75,'execute',()=>{const _0x3fd990=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3fd990&&_0x3fd990['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3fd990);});});const _0x34c7f2=this['editor']['commands']['get']('uploadcareImageReplace');_0x34c7f2&&this['listenTo'](_0x34c7f2,'execute',()=>{const _0x1e6417=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1e6417&&_0x1e6417['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1e6417);});});}}class u extends _0xcb9d14{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59ad74){super(_0x59ad74),_0x59ad74['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x114465['defineComponents'](_0x114465);}}class ta extends _0x1aab29{constructor(_0x30fc20){super(_0x30fc20);const t=_0x30fc20['t'],_0x462e8f=this['bindTemplate'],_0x295d24=new _0x3a25e1();_0x295d24['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':[_0x295d24,{'text':_0x462e8f['to']('imageUploadProgress',_0x5787e8=>t('Loading\x20image...')+'\x20('+(_0x5787e8||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x1aab29{constructor(_0x4b147c){super(_0x4b147c);const t=_0x4b147c['t'];this['set']('errorType',null);const _0x35281e=new _0x5ca660(_0x4b147c);_0x35281e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x35281e['withText']=!0x0,_0x35281e['class']='ck-button-action',_0x35281e['on']('execute',()=>{this['fire']('retry');}),_0x35281e['bind']('isVisible')['to'](this,'errorType',_0x44923b=>'NotFound'!==_0x44923b);const _0xbe61b5=new at();_0xbe61b5['content']=et,_0xbe61b5['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x47c9ca=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':[_0xbe61b5,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x47c9ca['to']('errorType',_0x594bf5=>t('NotFound'!==_0x594bf5?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x35281e]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x1aab29{constructor(_0x3a8f85,_0x9fdb95){super(_0x3a8f85);const _0x3f13c2=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x9fdb95,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3f13c2['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x189004,_0xd85adf,_0x33591){super(_0x189004),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x189004),this['_errorView']=new rt(_0x189004),this['_editingView']=new tt(_0x189004,_0x33591),this['_focusableView']=new _0x1aab29(_0x189004),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xd85adf),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'],_0x47e28b=>{this['_addUploadcareImageEditorListeners'](_0x47e28b);});}),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'](_0x10ab91,_0x1e994c){const _0x335ca4='uc-cloud-image-editor',_0x268792=_0x10ab91['querySelector'](_0x335ca4);if(_0x268792)return _0x1e994c(_0x268792);const _0x4457d8=new MutationObserver(_0x4a882a=>{const _0x164608=_0x4a882a['filter'](_0x44257d=>_0x44257d['target']===_0x10ab91&&_0x44257d['addedNodes']['length']>0x0&&_0x44257d['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x335ca4);_0x164608['length']&&(_0x4457d8['disconnect'](),_0x1e994c(_0x164608[0x0]['addedNodes'][0x0]));});_0x4457d8['observe'](_0x10ab91,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x120abf){_0x120abf['addEventListener']('apply',_0xc40bb8=>{this['fire']('apply',{'imageSrc':_0xc40bb8['detail']['cdnUrl']});}),_0x120abf['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3edde9(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4aaf7d,_0x2f5350,_0x327c89){super(),this['_editor']=_0x4aaf7d,this['_dialog']=_0x2f5350,this['_imageElement']=_0x327c89,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 _0x225352=this['_imageElement'],_0x204539=_0x225352['getAttribute']('uploadcareImageId'),_0xc17d=_0x225352['getAttribute']('src');if(_0x204539)await this['_loadImageInfo'](_0x204539,_0xc17d);else{if(this['_imageCache']['has'](_0xc17d)){const _0x1fad0f=this['_imageCache']['get'](_0xc17d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1fad0f['url'],this['imageDimension']=_0x1fad0f['dimension'],this['imageId']=_0x1fad0f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xc9b897}=this['_editor'],t=_0xc9b897['t'],_0x348164=new Z(_0xc9b897,this['imageStatus'],this['_attributes']);_0x348164['bind']('status')['to'](this,'imageStatus'),_0x348164['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x348164['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x348164['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x348164,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3f34de,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x348164,'position':_0x105c70['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x348164['focus']();},'onHide':()=>{_0x348164['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x463c72=>!F(_0x463c72,_0x348164['element'])}});}['_loadImageInfo'](_0x35595e,_0xedab9){return C['getInfo'](_0x35595e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x441968=>{const {width:_0xb36f95,height:_0x4aa6ed}=_0x441968['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xedab9,this['imageDimension']={'width':_0xb36f95,'height':_0x4aa6ed},this['imageId']=_0x35595e;})['catch'](_0x236461=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x236461['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1d733f,_0x47db9f){return this['_getImageAsFile'](_0x1d733f)['then'](_0x3b20f5=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x47db9f['signal'],'file':_0x3b20f5,'onProgress':_0x4148a1=>{_0x4148a1&&_0x4148a1['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4148a1['value']));}}))['then'](_0x103418=>{const {width:_0x465e3b,height:_0x273b0c}=_0x103418['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x103418['cdnUrl'],this['imageDimension']={'width':_0x465e3b,'height':_0x273b0c},this['imageId']=_0x103418['uuid'],this['imageUploadProgress']=null;const _0x2977b1=_0x1d733f['getAttribute']('src');this['_imageCache']['set'](_0x2977b1,{'id':_0x103418['uuid'],'url':_0x103418['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5a4f2c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5a4f2c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x42bf2f,_0x44a651){_0x42bf2f['on']('apply',(_0x37a772,_0x2d0c52)=>{this['_replaceImage'](_0x44a651,_0x2d0c52['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x42bf2f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x42bf2f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3ee5bb,_0x1b5d40,_0x2d1055){const _0x2bae35=this['_editor'],{width:_0x553375,height:_0x4094fc}=A(_0x1b5d40,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x255aee,imageSources:_0x187951}=E(_0x1b5d40,_0x553375);_0x2bae35['model']['change'](_0x45dfde=>{if('$graveyard'===_0x3ee5bb['root']['rootName']){_0x2bae35['execute']('insertImage',{'imageType':_0x3ee5bb['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3ee5bb['getAttributes']()),'uploadcareImageId':_0x2d1055,'src':_0x255aee,'sources':_0x187951,'width':_0x553375,'height':_0x4094fc}});const _0x4b66f3=_0x3ee5bb['getChildren']();_0x3ee5bb=_0x2bae35['model']['document']['selection']['getSelectedElement']();for(const _0x11afcd of _0x4b66f3)_0x45dfde['append'](_0x45dfde['cloneElement'](_0x11afcd),_0x3ee5bb);}else _0x45dfde['setSelection'](_0x3ee5bb,'on'),_0x2bae35['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3ee5bb['getAttributes']()),'uploadcareImageId':_0x2d1055,'src':_0x255aee,'sources':_0x187951,'width':_0x553375,'height':_0x4094fc},_0x3ee5bb);_0x45dfde['setSelection'](_0x3ee5bb,'on');});}async['_getImageAsFile'](_0x1d872c){const _0x2a1904=_0x5240e5['window'],_0x2b1677=_0x5240e5['document']['location']['href'],_0x3253f6=new _0x2a1904['URL'](_0x1d872c['getAttribute']('src'),_0x2b1677);if('data:'===_0x3253f6['protocol']){const _0x39ee40=_0x3253f6['href']['split'](','),_0x2027f5=_0x39ee40[0x0]['match'](/:(.*?);/)[0x1],_0x3c6612=_0x2027f5['split']('/')[0x1],_0x58a9df=_0x2a1904['atob'](_0x39ee40[_0x39ee40['length']-0x1]);let _0x1c8c86=_0x58a9df['length'];const _0x518474=new _0x2a1904['Uint8Array'](_0x1c8c86);for(;_0x1c8c86--;)_0x518474[_0x1c8c86]=_0x58a9df['charCodeAt'](_0x1c8c86);return new _0x2a1904['File']([_0x518474],'image.'+_0x3c6612,{'type':_0x2027f5});}const _0x58b6d3=_0x3253f6['href']['split']('/'),_0x1a1128=_0x58b6d3[_0x58b6d3['length']-0x1],_0x468203=_0x1a1128['split']('.')[0x1];return _0x2a1904['fetch'](_0x3253f6['href'])['then'](_0xf47cd1=>_0xf47cd1['clone']()['blob']())['then'](_0x624f3e=>new _0x2a1904['File']([_0x624f3e],_0x1a1128,{'type':'image/'+_0x468203}));}}class J extends _0x1e4602{['imageEditController'];static get['requires'](){return[_0x407f0d];}['_isEditable'];constructor(_0x3f5c8f){super(_0x3f5c8f),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xde4aa8){const _0x4feefc=V(_0xde4aa8);return _0x2f39ad=>!(!_0x2f39ad||!_0x2f39ad['is']('element','imageBlock')&&!_0x2f39ad['is']('element','imageInline'))&&(!!_0x2f39ad['hasAttribute']('uploadcareImageId')||!!_0x2f39ad['hasAttribute']('src')&&_0x4feefc(_0x2f39ad['getAttribute']('src')));}(_0x3f5c8f['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2689f0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2689f0);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x438377=this['editor']['model']['document']['selection']['getSelectedElement']();_0x438377&&(_0x438377['is']('element','imageBlock')||_0x438377['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x407f0d),_0x438377),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x1e4602{['refresh'](){const _0x255d59=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x255d59&&(_0x255d59['is']('element','imageBlock')||_0x255d59['is']('element','imageInline')));}['execute'](_0x9307c){const _0x748434=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1decce=>{_0x1decce['setAttributes'](_0x9307c,_0x748434),_0x1decce['removeAttribute']('srcset',_0x748434),_0x1decce['removeAttribute']('sizes',_0x748434);});}}class g extends _0xcb9d14{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x50b074,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4cacee}=this;_0x4cacee['commands']['add']('uploadcareImageEdit',new J(_0x4cacee)),_0x4cacee['commands']['add']('uploadcareImageReplace',new O(_0x4cacee));}}class j extends _0xcb9d14{['_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 _0x184804=this['editor'];_0x184804['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2d97fd=>{const _0x4f18a0=_0x184804['commands']['get']('uploadcareImageEdit'),_0x40e6ed=new _0x5ca660(_0x2d97fd),t=_0x2d97fd['t'];return _0x40e6ed['set']({'icon':_0x3f34de,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x40e6ed['bind']('isEnabled')['to'](_0x4f18a0),_0x40e6ed['bind']('isOn')['to'](_0x4f18a0,'isActive'),this['listenTo'](_0x40e6ed,'execute',()=>{_0x184804['execute']('uploadcareImageEdit'),_0x184804['editing']['view']['focus']();}),_0x40e6ed;}),this['_initConfig']();}['_initConfig'](){const _0x51cf20=_0xf95310(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x51cf20),this['listenTo'](this['editor'],'destroy',()=>{_0x51cf20['remove']();});}}class P extends _0xcb9d14{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0xaee466,Command as _0x1ce9f7}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1ea4da,IconGooglePhotos as _0x271547,IconGoogleDrive as _0x1b1369,IconFacebook as _0x3f4fce,IconDropbox as _0x255bd0,IconUploadcareLink as _0x38bff4,IconUploadcareImageUpload as _0x331337,IconError as et,IconUploadcareImageEdit as _0x3dc6aa}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1a466a,MenuBarMenuListItemButtonView as _0x2a654b,View as _0x36f080,FocusCycler as _0x23eccb,Dialog as _0x323ccf,DialogViewPosition as _0xc240f6,SpinnerView as _0x235497,IconView as at,Notification as _0x540370}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5f2be3,DomEmitterMixin as _0x2bddcf,global as _0x2ccc18,getAncestors as _0x495a99,ObservableMixin as _0x1e3c8d,createElement as _0x216e8c,uid as _0x5b04ff}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3dbf47}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1d9fa1,info as _0x3c0947}from'@uploadcare/upload-client';import*as _0x39e4a3 from'@uploadcare/file-uploader';var o=function(_0x36e5ee){return _0x36e5ee['Local']='local',_0x36e5ee['URL']='url',_0x36e5ee['Dropbox']='dropbox',_0x36e5ee['GDrive']='gdrive',_0x36e5ee['Facebook']='facebook',_0x36e5ee['GPhotos']='gphotos',_0x36e5ee['OneDrive']='onedrive',_0x36e5ee;}({});function _(_0x341c54,_0x5b360d,_0x599e5){const t=_0x341c54['t'],_0x3a3204=_0x341c54['t'];switch(_0x5b360d){case o['Local']:return{'text':_0x3a3204('Insert'===_0x599e5?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3a3204('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x599e5?_0x3a3204('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3a3204('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x599e5?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x599e5?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x599e5?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x599e5?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x599e5?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5b360d;}}class e extends _0xaee466{['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 _0x29ed67=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x451896;for(const _0x5d9863 in _0x29ed67){const _0x2a68c0=_0x5d9863,_0xe824ad=_0x29ed67[_0x2a68c0];if('uploadcareLicenseKeyValid'==_0xe824ad||'uploadcareLicenseKeyInvalid'==_0xe824ad||'uploadcareLicenseKeyExpired'==_0xe824ad||'uploadcareLicenseKeyDomainLimit'==_0xe824ad||'uploadcareLicenseKeyNotAllowed'==_0xe824ad||'uploadcareLicenseKeyEvaluationLimit'==_0xe824ad||'uploadcareLicenseKeyTrialLimit'==_0xe824ad||'uploadcareLicenseKeyUsageLimit'==_0xe824ad){delete _0x29ed67[_0x2a68c0],_0x451896=_0xe824ad,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x451896&&_0x29ed67['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x451896&&_0x29ed67['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x451896&&_0x29ed67['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x451896&&_0x29ed67['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x451896&&_0x29ed67['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x451896&&_0x29ed67['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x451896&&_0x29ed67['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x581196}=this,_0x311935=_0x581196['commands']['get']('uploadcare');if(!_0x311935)return;const _0x1126af=this['_normalizeConfigSourceList'](_0x581196['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x45ef80,_0x3f8244)=>{const _0x5b16d6=this['_getIntegrationKey'](_0x3f8244['type']);return _0x45ef80[_0x5b16d6]||(_0x45ef80[_0x5b16d6]=[]),_0x45ef80[_0x5b16d6]['push'](_0x3f8244),_0x45ef80;},{});_0x581196['plugins']['has']('ImageInsertUI')&&_0x581196['commands']['get']('uploadcare')&&Object['entries'](_0x1126af)['forEach'](([_0x3730d2,_0x5d2497])=>{_0x581196['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3730d2,'observable':()=>_0x311935,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5d2497),'formViewCreator':()=>this['_createDropdownButtons'](_0x5d2497),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5d2497),'override':'assetManager'!==_0x3730d2});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x36c515){const {locale:_0x193d15}=this['editor'];return _0x36c515['map'](_0x15f08f=>{const _0x157501=_(_0x193d15,_0x15f08f,'Insert');switch(_0x15f08f){case o['Local']:return{'icon':_0x331337,'type':o['Local'],..._0x157501};case o['URL']:return{'icon':_0x38bff4,'type':o['URL'],..._0x157501};case o['Dropbox']:return{'icon':_0x255bd0,'type':o['Dropbox'],..._0x157501};case o['Facebook']:return{'icon':_0x3f4fce,'type':o['Facebook'],..._0x157501};case o['GDrive']:return{'icon':_0x1b1369,'type':o['GDrive'],..._0x157501};case o['GPhotos']:return{'icon':_0x271547,'type':o['GPhotos'],..._0x157501};case o['OneDrive']:return{'icon':_0x1ea4da,'type':o['OneDrive'],..._0x157501};}});}['_getIntegrationKey'](_0x509155){switch(_0x509155){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x882a07,_0x332f74){const _0x58fe81=this['editor'],_0x11e3b8=new _0x882a07(_0x58fe81['locale']),_0x5dbe3d=_0x58fe81['commands']['get']('uploadcare');return _0x11e3b8['bind']('isEnabled')['to'](_0x5dbe3d),_0x11e3b8['on']('execute',()=>{_0x5dbe3d['execute'](_0x332f74);}),_0x11e3b8;}['_createToolbarButton'](_0x31c24f){const {locale:_0x422e85}=this['editor'],_0x41b394=this['editor']['plugins']['get']('ImageInsertUI'),_0x513a53=_0x31c24f[0x0],_0xadf026=this['_createButton'](_0x1a466a,_0x513a53['type']);return _0xadf026['icon']=_0x513a53['icon'],_0xadf026['bind']('label')['to'](_0x41b394,'isImageSelected',_0x14f91d=>_(_0x422e85,_0x513a53['type'],_0x14f91d?'Replace':'Insert')['text']),_0xadf026['tooltip']=!0x0,_0xadf026;}['_createDropdownButtons'](_0x2c3c69){const {locale:_0x2ffe91}=this['editor'],_0x27541f=this['editor']['plugins']['get']('ImageInsertUI');return _0x2c3c69['map'](_0x57cbcd=>{const _0x18b963=this['_createButton'](_0x1a466a,_0x57cbcd['type']);return _0x18b963['withText']=!0x0,_0x18b963['icon']=_0x57cbcd['icon'],_0x18b963['bind']('label')['to'](_0x27541f,'isImageSelected',_0x3bd5e4=>_(_0x2ffe91,_0x57cbcd['type'],_0x3bd5e4?'Replace':'Insert')['text']),_0x18b963;});}['_createMenuBarButtons'](_0x584531){return _0x584531['map'](_0x50e4fb=>{const _0x3094ba=this['_createButton'](_0x2a654b,_0x50e4fb['type']);return _0x3094ba['icon']=_0x50e4fb['icon'],_0x3094ba['label']=_0x50e4fb['shortText'],_0x3094ba;});}}class q extends _0x36f080{['focusTracker'];['focusCycler'];constructor(_0x1038fb){super(_0x1038fb),this['focusTracker']=new _0x5f2be3(),this['focusCycler']=new _0x23eccb({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x2232d0){super(_0x2232d0),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x121951,_0xaf0caa){const _0x5d7145=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xcac567=>_0xcac567<=_0xaf0caa)['map'](_0x4ca38b=>_0x121951['replace'](/\/$/,'')+'/-/resize/'+_0x4ca38b+'x/\x20'+_0x4ca38b+'w');return{'imageFallbackUrl':_0x121951,'imageSources':[{'srcset':_0x5d7145['join'](',\x20'),'sizes':'(max-width:\x20'+_0xaf0caa+'px)\x20100vw,\x20'+_0xaf0caa+'px','type':'image/webp'}]};}function A(_0x175194,_0x24de19,_0xbcf7b3){const _0x197bf5=_0x175194['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x197bf5?parseInt(_0x197bf5[0x1],0xa):_0x24de19,'height':_0x197bf5?parseInt(_0x197bf5[0x2],0xa):_0xbcf7b3};}function m(_0x179007,_0x2deaa3){const _0x5723ff=Object['create'](_0x2bddcf),_0x10fdbe=_0x179007['plugins']['get']('ImageUtils'),_0x496adf=_0x179007['editing']['mapper']['toViewElement'](_0x2deaa3),_0x5aeb50=_0x10fdbe['findViewImgElement'](_0x496adf),_0x68d7b1=_0x179007['editing']['view']['domConverter']['viewToDom'](_0x5aeb50),_0x190485=_0x2deaa3['getAttribute']('width'),_0x525f88=_0x2deaa3['getAttribute']('height'),_0x1ec766='image-processing';_0x179007['editing']['view']['change'](_0x700e03=>{_0x700e03['addClass'](_0x1ec766,_0x496adf),_0x700e03['setStyle']('aspect-ratio',_0x190485+'/'+_0x525f88,_0x5aeb50);}),_0x5723ff['listenTo'](_0x68d7b1,'load',()=>{_0x5723ff['stopListening'](_0x68d7b1,'load'),_0x179007['editing']['view']['change'](_0x21096b=>{_0x21096b['removeClass'](_0x1ec766,_0x496adf),_0x21096b['removeStyle']('aspect-ratio',_0x5aeb50);});});}function V(_0x349122){if(Array['isArray'](_0x349122)){const _0x419f54=_0x349122['map'](V);return _0x5d2633=>_0x419f54['some'](_0x4d05c1=>_0x4d05c1(_0x5d2633));}if('origin'==_0x349122){const _0x5175eb=_0x2ccc18['window']['location']['origin'];return _0x39938d=>new URL(_0x39938d,_0x2ccc18['document']['baseURI'])['origin']==_0x5175eb;}return'function'==typeof _0x349122?_0x349122:_0x349122 instanceof RegExp?_0x4f4eca=>!(!_0x4f4eca['match'](_0x349122)&&!_0x4f4eca['replace'](/^https?:\/\//,'')['match'](_0x349122)):()=>!0x1;}function F(_0x320bf8,_0x43d7fa){return _0x495a99(_0x320bf8['target'])['includes'](_0x43d7fa);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1e3c8d(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x17f74a,_0x524027,_0x537173){super(),this['_editor']=_0x17f74a,this['_editing']=_0x524027,this['_dialog']=_0x17f74a['plugins']['get'](_0x323ccf),this['_api']=_0x524027['ctxElement']['getAPI'](),this['_type']=_0x537173,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:_0x7296af,model:_0x50a9c2}=this['_editor'],_0x5523d0=_0x50a9c2['document']['selection']['getSelectedElement'](),_0x41c3a7=_0x5523d0&&(_0x5523d0['is']('element','imageBlock')||_0x5523d0['is']('element','imageInline'));this['_formView']=new S(_0x7296af),this['_dialog']['show']({'id':'uploadCare','icon':_0x331337,'title':_(_0x7296af,this['_type'],_0x41c3a7?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xc240f6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x172e16=>!F(_0x172e16,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x438a19}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x11ca62=>{const _0x29dcbc=_0x438a19['length'];for(const _0x49ee1d of _0x438a19){const _0x23cbd1=_0x49ee1d===_0x438a19[_0x29dcbc-0x1],{cdnUrl:_0x2f2a32,fileInfo:_0x2108a3}=_0x49ee1d;if(!_0x2f2a32||!_0x2108a3)continue;const {width:_0x5dfbaf,height:_0xf4bb9c}=_0x2108a3['imageInfo'],_0x258565=A(_0x2f2a32,_0x5dfbaf,_0xf4bb9c),_0xdbb9b1=E(_0x2f2a32,_0x258565['width']),_0x489514={'id':_0x2108a3['uuid'],'type':'image','attributes':{'imageDimension':_0x258565,..._0xdbb9b1}};this['_insertAsset'](_0x489514,_0x23cbd1,_0x11ca62);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3e2838=>{'idle'===_0x3e2838['detail']['status']&&!_0x3e2838['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4dc2f2,_0x56d879,_0x2306d5){const _0x377e48=this['_editor']['model']['document']['selection'],_0x122696=_0x377e48['getSelectedElement'](),_0x479a71=!(!_0x122696||!_0x122696['is']('element','imageInline'));_0x2306d5['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4dc2f2,_0x479a71),_0x56d879||_0x2306d5['setSelection'](_0x377e48['getLastPosition']());}['_insertImage'](_0x19fa85,_0x295ae0){const _0x785f11=this['_editor'],{imageDimension:_0x156f90,imageFallbackUrl:_0x326512,imageSources:_0x56daca}=_0x19fa85['attributes'];_0x785f11['execute']('insertImage',{'imageType':_0x295ae0?'imageInline':null,'source':{'uploadcareImageId':_0x19fa85['id'],'src':_0x326512,'sources':_0x56daca,..._0x156f90}});}}class n extends _0x1ce9f7{['_editing'];['_controller']=null;static get['requires'](){return[_0x323ccf,i];}constructor(_0xa812f9){super(_0xa812f9),this['_editing']=_0xa812f9['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x50cb71){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x50cb71);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x26df81,publicKey:_0x460148,signal:_0x302726,onProgress:_0x44698a}){return _0x1d9fa1(_0x26df81,{'publicKey':_0x460148,'store':'auto','signal':_0x302726,'onProgress':_0x44698a});}static['getInfo'](_0x55b52e,_0x3dd502){return _0x3c0947(_0x55b52e,_0x3dd502);}}class p extends _0xaee466{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3dbf47,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x57177b=this['editor'];if(!!!_0x57177b['config']['get']('uploadcare'))return;_0x57177b['plugins']['get'](_0x3dbf47)['createUploadAdapter']=_0x25aa24=>new x(_0x25aa24,_0x57177b),_0x57177b['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3ae5bf,{imageElement:_0x340578,data:_0x1c9a25})=>{_0x57177b['model']['change'](_0x273821=>{_0x273821['setAttribute']('uploadcareImageId',_0x1c9a25['uploadcareImageId'],_0x340578);});});}}class x{['loader'];['editor'];['controller'];constructor(_0xa1e4ba,_0xbcc434){this['loader']=_0xa1e4ba,this['editor']=_0xbcc434,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1f6b74=this['editor']['config']['get']('uploadcare.pubkey'),_0x3cf5a3=await this['loader']['file'];return C['upload']({'file':_0x3cf5a3,'publicKey':_0x1f6b74,'signal':this['controller']['signal'],'onProgress':_0xa94f48=>{_0xa94f48&&_0xa94f48['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xa94f48['value']);}})['then'](async _0xc54efa=>{const {imageFallbackUrl:_0x593cbf,imageSources:_0x10b876}=E(_0xc54efa['cdnUrl'],_0xc54efa['imageInfo']['width']);return{'uploadcareImageId':_0xc54efa['uuid'],'default':_0x593cbf,'sources':_0x10b876};})['catch'](()=>{const _0x2086c8=t('Cannot\x20upload\x20file:')+('\x20'+_0x3cf5a3['name']+'.');return Promise['reject'](_0x2086c8);});}['abort'](){this['controller']['abort']();}}class i extends _0xaee466{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x323ccf];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x5cba23=this['editor'];_0x5cba23['commands']['add']('uploadcare',new n(_0x5cba23));}['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 _0x577cb3=_0x2ccc18['document']['querySelector']('input[uploadcare-file-input]');_0x577cb3&&_0x577cb3['remove']();}),async function(_0x1c3ca0){const _0x184e5a=_0x4eea26([0x4f,0x35,0x68,0x43,0x45,0x41,0x46,0x6f,0x63,0x67,0x4c,0x79,0x69,0x4d,0x6b,0x6d,0x73,0x74,0x65,0x72,0x31,0x49,0x61,0x58,0x48,0x4b,0x4a,0x44,0x6c,0x6e,0x38,0x39,0x78,0x36,0x75,0x77,0x56,0x30,0x32,0x53,0x64,0x50,0x5a,0x71,0x51,0x33,0x34,0x6a,0x57,0x76,0x66,0x47,0x7a,0x54,0x59,0x4e,0x70,0x37,0x62,0x55,0x42,0x52]),_0x47158e=0x39d6071c,_0x3debce=0x39d16e84^_0x47158e,_0x3d9295=window[_0x4eea26([0x44,0x61,0x74,0x65])][_0x4eea26([0x6e,0x6f,0x77])](),_0x3e7914=_0x1c3ca0[_0x4eea26([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b48e4=new window[(_0x4eea26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1845cd=>{_0x3e7914[_0x4eea26([0x6f,0x6e,0x63,0x65])](_0x4eea26([0x72,0x65,0x61,0x64,0x79]),_0x1845cd);}),_0x34674d={[_0x4eea26([0x6b,0x74,0x79])]:_0x4eea26([0x45,0x43]),[_0x4eea26([0x75,0x73,0x65])]:_0x4eea26([0x73,0x69,0x67]),[_0x4eea26([0x63,0x72,0x76])]:_0x4eea26([0x50,0x2d,0x32,0x35,0x36]),[_0x4eea26([0x78])]:_0x4eea26([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]),[_0x4eea26([0x79])]:_0x4eea26([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]),[_0x4eea26([0x61,0x6c,0x67])]:_0x4eea26([0x45,0x53,0x32,0x35,0x36])},_0x24c3f6=_0x3e7914[_0x4eea26([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4eea26([0x67,0x65,0x74])](_0x4eea26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c49c3(){let _0x5659a9,_0x3ccefe=null,_0x97fda8=null;try{if(_0x24c3f6==_0x4eea26([0x47,0x50,0x4c]))return _0x4eea26([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5659a9=_0x45d462(),!_0x5659a9)return _0x4eea26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5659a9[_0x4eea26([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x97fda8=_0x1c2186(_0x5659a9[_0x4eea26([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5659a9[_0x4eea26([0x6a,0x74,0x69])])),await _0x3e2619()?_0xffbc66()?_0x513719()?_0x4eea26([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x42a35d()?(_0x5659a9[_0x4eea26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4eea26([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3ccefe=_0x1149f9(_0x4eea26([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5659a9[_0x4eea26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4eea26([0x74,0x72,0x69,0x61,0x6c])&&(_0x3ccefe=_0x1149f9(_0x4eea26([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e27d8()):_0x4eea26([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4eea26([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4eea26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4eea26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x513719(){const _0x45d513=[_0x4eea26([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4eea26([0x74,0x72,0x69,0x61,0x6c])][_0x4eea26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5659a9[_0x4eea26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3d9295/0x3e8:0xe10*_0x3debce;return _0x5659a9[_0x4eea26([0x65,0x78,0x70])]<_0x45d513;}function _0xffbc66(){const _0x2a77c9=_0x5659a9[_0x4eea26([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a77c9&&(!!_0x2a77c9[_0x4eea26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4eea26([0x2a]))||!!_0x2a77c9[_0x4eea26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4eea26([0x55,0x50,0x4c,0x43])));}function _0x42a35d(){const _0x453144=_0x5659a9[_0x4eea26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x453144||0x0==_0x453144[_0x4eea26([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xde29cc}=new URL(window[_0x4eea26([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x453144[_0x4eea26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xde29cc))return!0x0;const _0x2882f5=_0xde29cc[_0x4eea26([0x73,0x70,0x6c,0x69,0x74])](_0x4eea26([0x2e]));return _0x453144[_0x4eea26([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x47e815=>_0x47e815[_0x4eea26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4eea26([0x2a])))[_0x4eea26([0x6d,0x61,0x70])](_0x105eb6=>_0x105eb6[_0x4eea26([0x73,0x70,0x6c,0x69,0x74])](_0x4eea26([0x2e])))[_0x4eea26([0x73,0x6f,0x6d,0x65])](_0xf4e4b4=>_0x2882f5[_0x4eea26([0x65,0x76,0x65,0x72,0x79])]((_0x30a40c,_0x412566)=>_0xf4e4b4[_0x412566]===_0x30a40c||_0xf4e4b4[_0x412566]===_0x4eea26([0x2a])));}function _0x5e27d8(){return _0x3ccefe&&_0x97fda8?new window[(_0x4eea26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf24ae3,_0x2d6528)=>{_0x3ccefe[_0x4eea26([0x74,0x68,0x65,0x6e])](_0xf24ae3,_0x2d6528),_0x97fda8[_0x4eea26([0x74,0x68,0x65,0x6e])](_0x405c6d=>{_0x405c6d!=_0x4eea26([0x56,0x61,0x6c,0x69,0x64])&&_0xf24ae3(_0x405c6d);},_0x2d6528);}):_0x3ccefe||_0x97fda8||_0x4eea26([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c2186(_0xce929d,_0x1895cd){return new window[(_0x4eea26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18e6cc=>{if(_0x57427b())return _0x18e6cc(_0x4eea26([0x56,0x61,0x6c,0x69,0x64]));_0x3a140a(),_0x3e7914[_0x4eea26([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4eea26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5cdb36=!0x1;const _0x2fe6a0=_0x5b04ff();function _0x11ac6f(_0x103077){return!!_0x103077&&(typeof _0x103077===_0x4eea26([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x103077===_0x4eea26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x103077[_0x4eea26([0x74,0x68,0x65,0x6e])]===_0x4eea26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x103077[_0x4eea26([0x63,0x61,0x74,0x63,0x68])]===_0x4eea26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5c9fac(_0x1f709e){_0x31b8c2(_0x1f709e)[_0x4eea26([0x74,0x68,0x65,0x6e])](_0x3b473f=>{if(!_0x3b473f||_0x3b473f[_0x4eea26([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4eea26([0x6f,0x6b]))return _0x4eea26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a2bbe(_0x5d716c(_0x2fe6a0+_0x1895cd))!=_0x3b473f[_0x4eea26([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4eea26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4eea26([0x56,0x61,0x6c,0x69,0x64]);})[_0x4eea26([0x74,0x68,0x65,0x6e])](_0x5b2d29=>(_0x2a7ab1(),_0x5b2d29),()=>{const _0xa38f7b=_0x379e5d();return null==_0xa38f7b?(_0x2a7ab1(),_0x4eea26([0x56,0x61,0x6c,0x69,0x64])):_0x4eea26(_0x3d9295-_0xa38f7b>(0x1dda831c^_0x47158e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4eea26([0x74,0x68,0x65,0x6e])](_0x18e6cc)[_0x4eea26([0x63,0x61,0x74,0x63,0x68])](()=>{_0x18e6cc(_0x4eea26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1a38bd=0x39e0e99c^_0x47158e;function _0x2a7ab1(){const _0x1186df=_0x4eea26([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a2bbe(_0x5d716c(_0xce929d)),_0x2fdcc1=_0x5f0b4a(_0x2a2bbe(window[_0x4eea26([0x4d,0x61,0x74,0x68])][_0x4eea26([0x63,0x65,0x69,0x6c])](_0x3d9295/_0x1a38bd)));window[_0x4eea26([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4eea26([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1186df,_0x2fdcc1);}function _0x379e5d(){const _0x5eb4ba=_0x4eea26([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a2bbe(_0x5d716c(_0xce929d)),_0x2803d0=window[_0x4eea26([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4eea26([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5eb4ba);return _0x2803d0?window[_0x4eea26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f0b4a(_0x2803d0),0x10)*_0x1a38bd:null;}function _0x31b8c2(_0x514141){return new window[(_0x4eea26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42e42d,_0x5efa8c)=>{_0x514141[_0x4eea26([0x74,0x68,0x65,0x6e])](_0x42e42d,_0x5efa8c),window[_0x4eea26([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5efa8c,0x39d7d3dc^_0x47158e);});}}_0x3e7914[_0x4eea26([0x6f,0x6e])](_0x4eea26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xdf013e,_0x7afc0d)=>{if(_0x7afc0d[0x0]!=_0xce929d)return _0x18e6cc(_0x4eea26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x7afc0d[0x1]={..._0x7afc0d[0x1],[_0x4eea26([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2fe6a0};},{[_0x4eea26([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4eea26([0x68,0x69,0x67,0x68])}),_0x3e7914[_0x4eea26([0x6f,0x6e])](_0x4eea26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x8726c6=>{_0x11ac6f(_0x8726c6[_0x4eea26([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5cdb36=!0x0,_0x5c9fac(_0x8726c6[_0x4eea26([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4eea26([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4eea26([0x6c,0x6f,0x77])}),_0x5b48e4[_0x4eea26([0x74,0x68,0x65,0x6e])](()=>{_0x5cdb36||_0x18e6cc(_0x4eea26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x57427b(){return _0x3e7914[_0x4eea26([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4eea26([0x76,0x69,0x65,0x77])][_0x4eea26([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4eea26([0x61,0x75,0x74,0x6f]);}function _0x3a140a(){_0x3e7914[_0x4eea26([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4eea26([0x76,0x69,0x65,0x77])][_0x4eea26([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4eea26([0x61,0x75,0x74,0x6f]);}}function _0x1149f9(_0x2c9958){const _0x1f55b8=[new window[(_0x4eea26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2066be=>setTimeout(_0x2066be,0x39df39d0^_0x47158e)),_0x5b48e4[_0x4eea26([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4eea26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b9352=>{let _0x3a3bf2=0x0;_0x3e7914[_0x4eea26([0x6d,0x6f,0x64,0x65,0x6c])][_0x4eea26([0x6f,0x6e])](_0x4eea26([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2824b6,_0x5cbd04)=>{_0x5cbd04[0x0][_0x4eea26([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a3bf2++,_0x3a3bf2==(0x39d606e4^_0x47158e)&&(_0x5b9352(),_0x2824b6[_0x4eea26([0x6f,0x66,0x66])]());});}))];return window[_0x4eea26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4eea26([0x72,0x61,0x63,0x65])](_0x1f55b8)[_0x4eea26([0x74,0x68,0x65,0x6e])](()=>_0x2c9958);}async function _0x39117d(){await _0x5b48e4,_0x3e7914[_0x4eea26([0x6d,0x6f,0x64,0x65,0x6c])][_0x4eea26([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c361d,_0x3e7914[_0x4eea26([0x6d,0x6f,0x64,0x65,0x6c])][_0x4eea26([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c361d,_0x3e7914[_0x4eea26([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4eea26([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4cbb14(_0x142c69){const _0x48861e=_0x5bf4df();_0x3e7914[_0x48861e]=_0x4eea26([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x142c69,_0x142c69!=_0x4eea26([0x56,0x61,0x6c,0x69,0x64])&&_0x39117d();}function _0x5bf4df(){const _0x4fe33f=window[_0x4eea26([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4eea26([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4eea26([0x6e,0x6f,0x77])]())[_0x4eea26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4eea26([0x2e]),'');let _0x4e96df=_0x4eea26([0x4f]);for(let _0x248e5c=0x0;_0x248e5c<_0x4fe33f[_0x4eea26([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x248e5c+=0x2){let _0x21057d=window[_0x4eea26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fe33f[_0x4eea26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x248e5c,_0x248e5c+0x2));_0x21057d>=_0x184e5a[_0x4eea26([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x21057d-=_0x184e5a[_0x4eea26([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4e96df+=_0x184e5a[_0x21057d];}return _0x4e96df;}function _0x45d462(){const _0x5266c9=_0x24c3f6[_0x4eea26([0x73,0x70,0x6c,0x69,0x74])](_0x4eea26([0x2e]));if(0x3!=_0x5266c9[_0x4eea26([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5c1a8f(_0x5266c9[0x1]);function _0x5c1a8f(_0x20e8d8){const _0x159140=_0x535bfe(_0x20e8d8);return _0x159140&&_0x5908df()?_0x159140:null;function _0x5908df(){const _0x2b9095=_0x159140[_0x4eea26([0x6a,0x74,0x69])],_0x4daa0d=window[_0x4eea26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b9095[_0x4eea26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b9095[_0x4eea26([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x248397={..._0x159140,[_0x4eea26([0x6a,0x74,0x69])]:_0x2b9095[_0x4eea26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b9095[_0x4eea26([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x248397[_0x4eea26([0x76,0x63])],_0x5d716c(_0x248397)==_0x4daa0d;}}}async function _0x3e2619(){let _0x433263=!0x0;try{const _0x24a38a=_0x24c3f6[_0x4eea26([0x73,0x70,0x6c,0x69,0x74])](_0x4eea26([0x2e])),[_0xc86840,_0x330133,_0x1ad820]=_0x24a38a;return _0x376825(_0xc86840),await _0x1717bb(_0xc86840,_0x330133,_0x1ad820),_0x433263;}catch{return!0x1;}function _0x376825(_0x4adbcd){const _0x23d859=_0x535bfe(_0x4adbcd);_0x23d859&&_0x23d859[_0x4eea26([0x61,0x6c,0x67])]==_0x4eea26([0x45,0x53,0x32,0x35,0x36])||(_0x433263=!0x1);}async function _0x1717bb(_0x192d34,_0x55e521,_0x527b06){const _0x294308=window[_0x4eea26([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4eea26([0x66,0x72,0x6f,0x6d])](_0x22b1a5(_0x527b06),_0x210f3d=>_0x210f3d[_0x4eea26([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x45f6b8=new window[(_0x4eea26([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4eea26([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x192d34+_0x4eea26([0x2e])+_0x55e521),_0x50b141=window[_0x4eea26([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4eea26([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x50b141)return;const _0x2647ff=await _0x50b141[_0x4eea26([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4eea26([0x6a,0x77,0x6b]),_0x34674d,{[_0x4eea26([0x6e,0x61,0x6d,0x65])]:_0x4eea26([0x45,0x43,0x44,0x53,0x41]),[_0x4eea26([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4eea26([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4eea26([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x50b141[_0x4eea26([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4eea26([0x6e,0x61,0x6d,0x65])]:_0x4eea26([0x45,0x43,0x44,0x53,0x41]),[_0x4eea26([0x68,0x61,0x73,0x68])]:{[_0x4eea26([0x6e,0x61,0x6d,0x65])]:_0x4eea26([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2647ff,_0x294308,_0x45f6b8)||(_0x433263=!0x1);}}function _0x535bfe(_0x4ba9f9){return _0x4ba9f9[_0x4eea26([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4eea26([0x65,0x79]))?JSON[_0x4eea26([0x70,0x61,0x72,0x73,0x65])](_0x22b1a5(_0x4ba9f9)):null;}function _0x22b1a5(_0x519969){return window[_0x4eea26([0x61,0x74,0x6f,0x62])](_0x519969[_0x4eea26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4eea26([0x2b]))[_0x4eea26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4eea26([0x2f])));}function _0x5d716c(_0xb2cbd2){let _0x4d108f=0x1505;function _0x207293(_0x1ef775){for(let _0x483b95=0x0;_0x483b95<_0x1ef775[_0x4eea26([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x483b95++){const _0x545565=_0x1ef775[_0x4eea26([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x483b95);_0x4d108f=(_0x4d108f<<0x5)+_0x4d108f+_0x545565,_0x4d108f&=_0x4d108f;}}function _0x291cf4(_0x509489){Array[_0x4eea26([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x509489)?_0x509489[_0x4eea26([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x291cf4):_0x509489&&typeof _0x509489==_0x4eea26([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4eea26([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x509489)[_0x4eea26([0x73,0x6f,0x72,0x74])]()[_0x4eea26([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x43eb35,_0xe8f529])=>{_0x207293(_0x43eb35),_0x291cf4(_0xe8f529);}):_0x207293(window[_0x4eea26([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x509489));}return _0x291cf4(_0xb2cbd2),_0x4d108f>>>0x0;}function _0x2a2bbe(_0x3c9329){return _0x3c9329[_0x4eea26([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4eea26([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4eea26([0x30]));}function _0x5f0b4a(_0x4be32b){return _0x4be32b[_0x4eea26([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4eea26([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4eea26([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c361d(){}function _0x4eea26(_0x424a72){return _0x424a72['map'](_0x5cc032=>String['fromCharCode'](_0x5cc032))['join']('');}_0x4cbb14(await _0x1c49c3());}(this);}['_initSchema'](){const _0x13acab=this['editor']['model']['schema'];_0x13acab['isRegistered']('imageBlock')&&_0x13acab['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x13acab['isRegistered']('imageInline')&&_0x13acab['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2facf5=this['editor'];_0x2facf5['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2facf5['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1cf2ef=>_0x1cf2ef['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x14aad6=_0x2facf5['commands']['get']('replaceImageSource');_0x14aad6&&this['listenTo'](_0x14aad6,'cleanupImage',(_0x25799b,[_0x5838b2,_0x22f518])=>{_0x5838b2['removeAttribute']('uploadcareImageId',_0x22f518);});}['_initConfig'](){const _0x5ece4a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x478a16=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x216e8c(_0x2ccc18['document'],'uc-config',{..._0x5ece4a,'pubkey':_0x478a16,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0xba29e8=>{if('closeMax'==_0xba29e8)return'#uc-icon-arrow-down';},_0x2ccc18['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x216e8c(_0x2ccc18['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x2ccc18['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5ae4e7=this['editor']['commands']['get']('insertImage');_0x5ae4e7&&this['listenTo'](_0x5ae4e7,'execute',()=>{const _0x512a00=this['editor']['model']['document']['selection']['getSelectedElement']();_0x512a00&&_0x512a00['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x512a00);});});const _0x31136a=this['editor']['commands']['get']('uploadcareImageReplace');_0x31136a&&this['listenTo'](_0x31136a,'execute',()=>{const _0x1d104c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1d104c&&_0x1d104c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1d104c);});});}}class u extends _0xaee466{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f595e){super(_0x3f595e),_0x3f595e['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x39e4a3['defineComponents'](_0x39e4a3);}}class ta extends _0x36f080{constructor(_0x46bb6c){super(_0x46bb6c);const t=_0x46bb6c['t'],_0x700145=this['bindTemplate'],_0x4b0618=new _0x235497();_0x4b0618['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':[_0x4b0618,{'text':_0x700145['to']('imageUploadProgress',_0x19e83e=>t('Loading\x20image...')+'\x20('+(_0x19e83e||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x36f080{constructor(_0x32ad52){super(_0x32ad52);const t=_0x32ad52['t'];this['set']('errorType',null);const _0x2c678b=new _0x1a466a(_0x32ad52);_0x2c678b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2c678b['withText']=!0x0,_0x2c678b['class']='ck-button-action',_0x2c678b['on']('execute',()=>{this['fire']('retry');}),_0x2c678b['bind']('isVisible')['to'](this,'errorType',_0x167381=>'NotFound'!==_0x167381);const _0x129305=new at();_0x129305['content']=et,_0x129305['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5a25c2=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':[_0x129305,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5a25c2['to']('errorType',_0x127815=>t('NotFound'!==_0x127815?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2c678b]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x36f080{constructor(_0x2a1dcb,_0x5e1384){super(_0x2a1dcb);const _0x3340b4=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5e1384,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3340b4['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x489552,_0x1c472d,_0x2fe5f8){super(_0x489552),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x489552),this['_errorView']=new rt(_0x489552),this['_editingView']=new tt(_0x489552,_0x2fe5f8),this['_focusableView']=new _0x36f080(_0x489552),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1c472d),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'],_0x1a6a7f=>{this['_addUploadcareImageEditorListeners'](_0x1a6a7f);});}),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'](_0x5646cc,_0x552287){const _0x4aef98='uc-cloud-image-editor',_0x4d9021=_0x5646cc['querySelector'](_0x4aef98);if(_0x4d9021)return _0x552287(_0x4d9021);const _0x41eccb=new MutationObserver(_0x4b12a2=>{const _0x462fb2=_0x4b12a2['filter'](_0x231357=>_0x231357['target']===_0x5646cc&&_0x231357['addedNodes']['length']>0x0&&_0x231357['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4aef98);_0x462fb2['length']&&(_0x41eccb['disconnect'](),_0x552287(_0x462fb2[0x0]['addedNodes'][0x0]));});_0x41eccb['observe'](_0x5646cc,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1b9b04){_0x1b9b04['addEventListener']('apply',_0x2146ae=>{this['fire']('apply',{'imageSrc':_0x2146ae['detail']['cdnUrl']});}),_0x1b9b04['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1e3c8d(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3706d1,_0x5db736,_0x8e5a81){super(),this['_editor']=_0x3706d1,this['_dialog']=_0x5db736,this['_imageElement']=_0x8e5a81,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 _0x6dd25=this['_imageElement'],_0x4ffb42=_0x6dd25['getAttribute']('uploadcareImageId'),_0x32c236=_0x6dd25['getAttribute']('src');if(_0x4ffb42)await this['_loadImageInfo'](_0x4ffb42,_0x32c236);else{if(this['_imageCache']['has'](_0x32c236)){const _0x2558d0=this['_imageCache']['get'](_0x32c236);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2558d0['url'],this['imageDimension']=_0x2558d0['dimension'],this['imageId']=_0x2558d0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x17ade3}=this['_editor'],t=_0x17ade3['t'],_0x236c2a=new Z(_0x17ade3,this['imageStatus'],this['_attributes']);_0x236c2a['bind']('status')['to'](this,'imageStatus'),_0x236c2a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x236c2a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x236c2a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x236c2a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3dc6aa,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x236c2a,'position':_0xc240f6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x236c2a['focus']();},'onHide':()=>{_0x236c2a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3dc00d=>!F(_0x3dc00d,_0x236c2a['element'])}});}['_loadImageInfo'](_0x1181f0,_0xdc053a){return C['getInfo'](_0x1181f0,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x528aa0=>{const {width:_0x54d830,height:_0xc6cb78}=_0x528aa0['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xdc053a,this['imageDimension']={'width':_0x54d830,'height':_0xc6cb78},this['imageId']=_0x1181f0;})['catch'](_0x4929ff=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4929ff['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x175b4a,_0x285fec){return this['_getImageAsFile'](_0x175b4a)['then'](_0x567d06=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x285fec['signal'],'file':_0x567d06,'onProgress':_0x2d7f48=>{_0x2d7f48&&_0x2d7f48['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2d7f48['value']));}}))['then'](_0x3b5187=>{const {width:_0x72fc82,height:_0x3db8f9}=_0x3b5187['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3b5187['cdnUrl'],this['imageDimension']={'width':_0x72fc82,'height':_0x3db8f9},this['imageId']=_0x3b5187['uuid'],this['imageUploadProgress']=null;const _0x5d2672=_0x175b4a['getAttribute']('src');this['_imageCache']['set'](_0x5d2672,{'id':_0x3b5187['uuid'],'url':_0x3b5187['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2e229b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2e229b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x83e0e9,_0x127aa8){_0x83e0e9['on']('apply',(_0x4237d7,_0x4d6b83)=>{this['_replaceImage'](_0x127aa8,_0x4d6b83['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x83e0e9['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x83e0e9['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x30bec9,_0x5a1cc2,_0x4324f7){const _0x4f787c=this['_editor'],{width:_0x356012,height:_0x17df41}=A(_0x5a1cc2,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3edbd4,imageSources:_0x1565ac}=E(_0x5a1cc2,_0x356012);_0x4f787c['model']['change'](_0x83399b=>{if('$graveyard'===_0x30bec9['root']['rootName']){_0x4f787c['execute']('insertImage',{'imageType':_0x30bec9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x30bec9['getAttributes']()),'uploadcareImageId':_0x4324f7,'src':_0x3edbd4,'sources':_0x1565ac,'width':_0x356012,'height':_0x17df41}});const _0x4d0bda=_0x30bec9['getChildren']();_0x30bec9=_0x4f787c['model']['document']['selection']['getSelectedElement']();for(const _0x54d94b of _0x4d0bda)_0x83399b['append'](_0x83399b['cloneElement'](_0x54d94b),_0x30bec9);}else _0x83399b['setSelection'](_0x30bec9,'on'),_0x4f787c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x30bec9['getAttributes']()),'uploadcareImageId':_0x4324f7,'src':_0x3edbd4,'sources':_0x1565ac,'width':_0x356012,'height':_0x17df41},_0x30bec9);_0x83399b['setSelection'](_0x30bec9,'on');});}async['_getImageAsFile'](_0xbb4bb5){const _0x433c5c=_0x2ccc18['window'],_0x3a2bda=_0x2ccc18['document']['location']['href'],_0x366838=new _0x433c5c['URL'](_0xbb4bb5['getAttribute']('src'),_0x3a2bda);if('data:'===_0x366838['protocol']){const _0x130f30=_0x366838['href']['split'](','),_0xa17e48=_0x130f30[0x0]['match'](/:(.*?);/)[0x1],_0x280fb0=_0xa17e48['split']('/')[0x1],_0x96fd93=_0x433c5c['atob'](_0x130f30[_0x130f30['length']-0x1]);let _0x1cb55e=_0x96fd93['length'];const _0x344424=new _0x433c5c['Uint8Array'](_0x1cb55e);for(;_0x1cb55e--;)_0x344424[_0x1cb55e]=_0x96fd93['charCodeAt'](_0x1cb55e);return new _0x433c5c['File']([_0x344424],'image.'+_0x280fb0,{'type':_0xa17e48});}const _0x1d1069=_0x366838['href']['split']('/'),_0xd91c1d=_0x1d1069[_0x1d1069['length']-0x1],_0x387cab=_0xd91c1d['split']('.')[0x1];return _0x433c5c['fetch'](_0x366838['href'])['then'](_0x185723=>_0x185723['clone']()['blob']())['then'](_0x22f996=>new _0x433c5c['File']([_0x22f996],_0xd91c1d,{'type':'image/'+_0x387cab}));}}class J extends _0x1ce9f7{['imageEditController'];static get['requires'](){return[_0x323ccf];}['_isEditable'];constructor(_0x5819ad){super(_0x5819ad),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x343cf3){const _0x13eba4=V(_0x343cf3);return _0x586b97=>!(!_0x586b97||!_0x586b97['is']('element','imageBlock')&&!_0x586b97['is']('element','imageInline'))&&(!!_0x586b97['hasAttribute']('uploadcareImageId')||!!_0x586b97['hasAttribute']('src')&&_0x13eba4(_0x586b97['getAttribute']('src')));}(_0x5819ad['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5f4ce2=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5f4ce2);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5f2f8a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5f2f8a&&(_0x5f2f8a['is']('element','imageBlock')||_0x5f2f8a['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x323ccf),_0x5f2f8a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x1ce9f7{['refresh'](){const _0x9e211a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x9e211a&&(_0x9e211a['is']('element','imageBlock')||_0x9e211a['is']('element','imageInline')));}['execute'](_0x4d29e7){const _0x193781=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x52aee3=>{_0x52aee3['setAttributes'](_0x4d29e7,_0x193781),_0x52aee3['removeAttribute']('srcset',_0x193781),_0x52aee3['removeAttribute']('sizes',_0x193781);});}}class g extends _0xaee466{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x540370,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2eda2a}=this;_0x2eda2a['commands']['add']('uploadcareImageEdit',new J(_0x2eda2a)),_0x2eda2a['commands']['add']('uploadcareImageReplace',new O(_0x2eda2a));}}class j extends _0xaee466{['_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 _0x99e39a=this['editor'];_0x99e39a['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5b5ad3=>{const _0x139585=_0x99e39a['commands']['get']('uploadcareImageEdit'),_0xcd063c=new _0x1a466a(_0x5b5ad3),t=_0x5b5ad3['t'];return _0xcd063c['set']({'icon':_0x3dc6aa,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xcd063c['bind']('isEnabled')['to'](_0x139585),_0xcd063c['bind']('isOn')['to'](_0x139585,'isActive'),this['listenTo'](_0xcd063c,'execute',()=>{_0x99e39a['execute']('uploadcareImageEdit'),_0x99e39a['editing']['view']['focus']();}),_0xcd063c;}),this['_initConfig']();}['_initConfig'](){const _0x13be19=_0x216e8c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x13be19),this['listenTo'](this['editor'],'destroy',()=>{_0x13be19['remove']();});}}class P extends _0xaee466{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "45.2.0-alpha.
|
|
3
|
+
"version": "45.2.0-alpha.5",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "45.2.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "45.2.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-image": "45.2.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "45.2.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "45.2.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "45.2.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "45.2.0-alpha.
|
|
33
|
-
"ckeditor5": "45.2.0-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "45.2.0-alpha.5",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "45.2.0-alpha.5",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "45.2.0-alpha.5",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "45.2.0-alpha.5",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "45.2.0-alpha.5",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "45.2.0-alpha.5",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "45.2.0-alpha.5",
|
|
33
|
+
"ckeditor5": "45.2.0-alpha.5",
|
|
34
34
|
"@uploadcare/file-uploader": "1.12.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.1"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x16b6(_0x2f3542,_0xfd426a){const _0x32433f=_0x3243();return _0x16b6=function(_0x16b6bb,_0x2fed9a){_0x16b6bb=_0x16b6bb-0x95;let _0x10a539=_0x32433f[_0x16b6bb];return _0x10a539;},_0x16b6(_0x2f3542,_0xfd426a);}const _0x156348=_0x16b6;(function(_0x2aa690,_0x49c617){const _0x95bc2b=_0x16b6,_0x137a94=_0x2aa690();while(!![]){try{const _0x41d8f2=-parseInt(_0x95bc2b(0x99))/0x1*(parseInt(_0x95bc2b(0xc5))/0x2)+-parseInt(_0x95bc2b(0xe0))/0x3*(parseInt(_0x95bc2b(0xd2))/0x4)+parseInt(_0x95bc2b(0xdb))/0x5+parseInt(_0x95bc2b(0x9e))/0x6+-parseInt(_0x95bc2b(0xc8))/0x7*(parseInt(_0x95bc2b(0xc9))/0x8)+-parseInt(_0x95bc2b(0x9d))/0x9*(-parseInt(_0x95bc2b(0xd1))/0xa)+parseInt(_0x95bc2b(0xb7))/0xb;if(_0x41d8f2===_0x49c617)break;else _0x137a94['push'](_0x137a94['shift']());}catch(_0x25edb9){_0x137a94['push'](_0x137a94['shift']());}}}(_0x3243,0xee706));import{Plugin as _0x685dfc}from'ckeditor5/src/core.js';import{Dialog as _0x4a6940}from'ckeditor5/src/ui.js';import{createElement as _0xa2b7d0,global as _0x21e8b1,uid as _0x375503}from'ckeditor5/src/utils.js';import _0x5b5b8b from'./uploadcarecommand.js';import _0x5d5ce1 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5e640a}from'./utils/editingutils.js';export default class i extends _0x685dfc{[_0x156348(0xd0)]=null;[_0x156348(0xa2)]=null;static get[_0x156348(0xcf)](){const _0x46895f=_0x156348;return _0x46895f(0xca);}static get[_0x156348(0xbb)](){const _0x652d93=_0x156348;return[_0x652d93(0xdc),_0x5d5ce1,_0x4a6940];}static get[_0x156348(0x95)](){return!0x0;}static get[_0x156348(0xa4)](){return!0x0;}get[_0x156348(0xc7)](){const _0x468c6b=_0x156348;return this[_0x468c6b(0xd0)];}get[_0x156348(0xcc)](){const _0x1e61a1=_0x156348;return this[_0x1e61a1(0xa2)];}[_0x156348(0xbc)](){const _0x52ceb0=_0x156348,_0x5e6835=this[_0x52ceb0(0xa7)];_0x5e6835[_0x52ceb0(0xe1)][_0x52ceb0(0xc6)](_0x52ceb0(0xd6),new _0x5b5b8b(_0x5e6835));}[_0x156348(0x9b)](){const _0x3c46c3=_0x156348;this[_0x3c46c3(0xde)](),this[_0x3c46c3(0xc1)](),this[_0x3c46c3(0xbe)](),this[_0x3c46c3(0x98)](),this[_0x3c46c3(0xe2)](),this[_0x3c46c3(0xb9)](this[_0x3c46c3(0xa7)],_0x3c46c3(0xb4),()=>{const _0x5f5a21=_0x3c46c3;this[_0x5f5a21(0xd0)]&&(this[_0x5f5a21(0xd0)][_0x5f5a21(0xe3)](),this[_0x5f5a21(0xd0)]=null),this[_0x5f5a21(0xa2)]&&(this[_0x5f5a21(0xa2)][_0x5f5a21(0xe3)](),this[_0x5f5a21(0xa2)]=null);const _0x31f5af=_0x21e8b1[_0x5f5a21(0xc3)][_0x5f5a21(0xb2)](_0x5f5a21(0xad));_0x31f5af&&_0x31f5af[_0x5f5a21(0xe3)]();}),async function(_0x1a625d){const _0x25fe10=_0x3bfa4b([0x4a,0x49,0x52,0x45,0x44,0x59,0x68,0x42,0x36,0x41,0x63,0x77,0x4d,0x4e,0x62,0x33,0x64,0x65,0x39,0x30,0x6b,0x72,0x78,0x71,0x5a,0x56,0x73,0x47,0x57,0x53,0x4f,0x6d,0x50,0x6c,0x4b,0x6e,0x51,0x6f,0x54,0x74,0x35,0x38,0x76,0x67,0x61,0x4c,0x32,0x69,0x34,0x7a,0x43,0x55,0x66,0x58,0x6a,0x79,0x48,0x75,0x37,0x70,0x46,0x31]),_0x325c8a=0x677e1ad,_0x5fdbb5=0x670882d^_0x325c8a,_0x25ec03=window[_0x3bfa4b([0x44,0x61,0x74,0x65])][_0x3bfa4b([0x6e,0x6f,0x77])](),_0x31002b=_0x1a625d[_0x3bfa4b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b2f28=new window[(_0x3bfa4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34fff0=>{_0x31002b[_0x3bfa4b([0x6f,0x6e,0x63,0x65])](_0x3bfa4b([0x72,0x65,0x61,0x64,0x79]),_0x34fff0);}),_0x11afc0={[_0x3bfa4b([0x6b,0x74,0x79])]:_0x3bfa4b([0x45,0x43]),[_0x3bfa4b([0x75,0x73,0x65])]:_0x3bfa4b([0x73,0x69,0x67]),[_0x3bfa4b([0x63,0x72,0x76])]:_0x3bfa4b([0x50,0x2d,0x32,0x35,0x36]),[_0x3bfa4b([0x78])]:_0x3bfa4b([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]),[_0x3bfa4b([0x79])]:_0x3bfa4b([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]),[_0x3bfa4b([0x61,0x6c,0x67])]:_0x3bfa4b([0x45,0x53,0x32,0x35,0x36])},_0x403b6f=_0x31002b[_0x3bfa4b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3bfa4b([0x67,0x65,0x74])](_0x3bfa4b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x31e785(){let _0x31209b,_0x1d0541=null,_0x512fda=null;try{if(_0x403b6f==_0x3bfa4b([0x47,0x50,0x4c]))return _0x3bfa4b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x31209b=_0x379436(),!_0x31209b)return _0x3bfa4b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x31209b[_0x3bfa4b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x512fda=_0x13c6a0(_0x31209b[_0x3bfa4b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x31209b[_0x3bfa4b([0x6a,0x74,0x69])])),await _0x3d89fe()?_0x3e53cd()?_0x5938ea()?_0x3bfa4b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2e7f1e()?(_0x31209b[_0x3bfa4b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3bfa4b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1d0541=_0x238414(_0x3bfa4b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x31209b[_0x3bfa4b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3bfa4b([0x74,0x72,0x69,0x61,0x6c])&&(_0x1d0541=_0x238414(_0x3bfa4b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xec8ad0()):_0x3bfa4b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3bfa4b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3bfa4b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3bfa4b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5938ea(){const _0x302ef4=[_0x3bfa4b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3bfa4b([0x74,0x72,0x69,0x61,0x6c])][_0x3bfa4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31209b[_0x3bfa4b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x25ec03/0x3e8:0xe10*_0x5fdbb5;return _0x31209b[_0x3bfa4b([0x65,0x78,0x70])]<_0x302ef4;}function _0x3e53cd(){const _0x39ff23=_0x31209b[_0x3bfa4b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x39ff23&&(!!_0x39ff23[_0x3bfa4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bfa4b([0x2a]))||!!_0x39ff23[_0x3bfa4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bfa4b([0x55,0x50,0x4c,0x43])));}function _0x2e7f1e(){const _0x13d25f=_0x16b6,_0x4245cf=_0x31209b[_0x3bfa4b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4245cf||0x0==_0x4245cf[_0x3bfa4b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1c8bd0}=new URL(window[_0x3bfa4b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x13d25f(0xce)]);if(_0x4245cf[_0x3bfa4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c8bd0))return!0x0;const _0x5ca1d3=_0x1c8bd0[_0x3bfa4b([0x73,0x70,0x6c,0x69,0x74])](_0x3bfa4b([0x2e]));return _0x4245cf[_0x3bfa4b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f3925=>_0x1f3925[_0x3bfa4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bfa4b([0x2a])))[_0x3bfa4b([0x6d,0x61,0x70])](_0x25e9a4=>_0x25e9a4[_0x3bfa4b([0x73,0x70,0x6c,0x69,0x74])](_0x3bfa4b([0x2e])))[_0x3bfa4b([0x73,0x6f,0x6d,0x65])](_0x34c305=>_0x5ca1d3[_0x3bfa4b([0x65,0x76,0x65,0x72,0x79])]((_0x595a83,_0x19c859)=>_0x34c305[_0x19c859]===_0x595a83||_0x34c305[_0x19c859]===_0x3bfa4b([0x2a])));}function _0xec8ad0(){return _0x1d0541&&_0x512fda?new window[(_0x3bfa4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5539e6,_0x364088)=>{_0x1d0541[_0x3bfa4b([0x74,0x68,0x65,0x6e])](_0x5539e6,_0x364088),_0x512fda[_0x3bfa4b([0x74,0x68,0x65,0x6e])](_0x4f623b=>{_0x4f623b!=_0x3bfa4b([0x56,0x61,0x6c,0x69,0x64])&&_0x5539e6(_0x4f623b);},_0x364088);}):_0x1d0541||_0x512fda||_0x3bfa4b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x13c6a0(_0x9c50e3,_0x487f3c){return new window[(_0x3bfa4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ec5e8=>{if(_0x2da1fd())return _0x1ec5e8(_0x3bfa4b([0x56,0x61,0x6c,0x69,0x64]));_0x2e4f9f(),_0x31002b[_0x3bfa4b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3bfa4b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x314d54=!0x1;const _0xd09fbc=_0x375503();function _0x59fb21(_0xdcdff8){return!!_0xdcdff8&&(typeof _0xdcdff8===_0x3bfa4b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xdcdff8===_0x3bfa4b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xdcdff8[_0x3bfa4b([0x74,0x68,0x65,0x6e])]===_0x3bfa4b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xdcdff8[_0x3bfa4b([0x63,0x61,0x74,0x63,0x68])]===_0x3bfa4b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4dcad1(_0x25c112){_0x361cb0(_0x25c112)[_0x3bfa4b([0x74,0x68,0x65,0x6e])](_0x529936=>{if(!_0x529936||_0x529936[_0x3bfa4b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3bfa4b([0x6f,0x6b]))return _0x3bfa4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2e276b(_0x5e8228(_0xd09fbc+_0x487f3c))!=_0x529936[_0x3bfa4b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3bfa4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3bfa4b([0x56,0x61,0x6c,0x69,0x64]);})[_0x3bfa4b([0x74,0x68,0x65,0x6e])](_0x418374=>(_0x46e95d(),_0x418374),()=>{const _0xc5e8bf=_0x12df45();return null==_0xc5e8bf?(_0x46e95d(),_0x3bfa4b([0x56,0x61,0x6c,0x69,0x64])):_0x3bfa4b(_0x25ec03-_0xc5e8bf>(0x227b65ad^_0x325c8a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3bfa4b([0x74,0x68,0x65,0x6e])](_0x1ec5e8)[_0x3bfa4b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1ec5e8(_0x3bfa4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5002b1=0x6410f2d^_0x325c8a;function _0x46e95d(){const _0x14b477=_0x3bfa4b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2e276b(_0x5e8228(_0x9c50e3)),_0x1d0412=_0x40c922(_0x2e276b(window[_0x3bfa4b([0x4d,0x61,0x74,0x68])][_0x3bfa4b([0x63,0x65,0x69,0x6c])](_0x25ec03/_0x5002b1)));window[_0x3bfa4b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bfa4b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14b477,_0x1d0412);}function _0x12df45(){const _0x35e95e=_0x3bfa4b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2e276b(_0x5e8228(_0x9c50e3)),_0x173a3d=window[_0x3bfa4b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bfa4b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35e95e);return _0x173a3d?window[_0x3bfa4b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40c922(_0x173a3d),0x10)*_0x5002b1:null;}function _0x361cb0(_0x5cd7db){return new window[(_0x3bfa4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5270cd,_0x397071)=>{_0x5cd7db[_0x3bfa4b([0x74,0x68,0x65,0x6e])](_0x5270cd,_0x397071),window[_0x3bfa4b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x397071,0x676356d^_0x325c8a);});}}_0x31002b[_0x3bfa4b([0x6f,0x6e])](_0x3bfa4b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd0ec41,_0x156beb)=>{if(_0x156beb[0x0]!=_0x9c50e3)return _0x1ec5e8(_0x3bfa4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x156beb[0x1]={..._0x156beb[0x1],[_0x3bfa4b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xd09fbc};},{[_0x3bfa4b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bfa4b([0x68,0x69,0x67,0x68])}),_0x31002b[_0x3bfa4b([0x6f,0x6e])](_0x3bfa4b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f43e3=>{_0x59fb21(_0x4f43e3[_0x3bfa4b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x314d54=!0x0,_0x4dcad1(_0x4f43e3[_0x3bfa4b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3bfa4b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bfa4b([0x6c,0x6f,0x77])}),_0x4b2f28[_0x3bfa4b([0x74,0x68,0x65,0x6e])](()=>{_0x314d54||_0x1ec5e8(_0x3bfa4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2da1fd(){return _0x31002b[_0x3bfa4b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bfa4b([0x76,0x69,0x65,0x77])][_0x3bfa4b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3bfa4b([0x61,0x75,0x74,0x6f]);}function _0x2e4f9f(){_0x31002b[_0x3bfa4b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bfa4b([0x76,0x69,0x65,0x77])][_0x3bfa4b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3bfa4b([0x61,0x75,0x74,0x6f]);}}function _0x238414(_0x142c1c){const _0x5dde0b=[new window[(_0x3bfa4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x257d5e=>setTimeout(_0x257d5e,0x67edf61^_0x325c8a)),_0x4b2f28[_0x3bfa4b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3bfa4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1740ca=>{let _0x151fda=0x0;_0x31002b[_0x3bfa4b([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bfa4b([0x6f,0x6e])](_0x3bfa4b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x18baa0,_0xa286d0)=>{_0xa286d0[0x0][_0x3bfa4b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x151fda++,_0x151fda==(0x677e055^_0x325c8a)&&(_0x1740ca(),_0x18baa0[_0x3bfa4b([0x6f,0x66,0x66])]());});}))];return window[_0x3bfa4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3bfa4b([0x72,0x61,0x63,0x65])](_0x5dde0b)[_0x3bfa4b([0x74,0x68,0x65,0x6e])](()=>_0x142c1c);}async function _0x8ec869(){await _0x4b2f28,_0x31002b[_0x3bfa4b([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bfa4b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c1525,_0x31002b[_0x3bfa4b([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bfa4b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c1525,_0x31002b[_0x3bfa4b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3bfa4b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x34c2c3(_0x18a457){const _0x50a58a=_0x4b3a3f();_0x31002b[_0x50a58a]=_0x3bfa4b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x18a457,_0x18a457!=_0x3bfa4b([0x56,0x61,0x6c,0x69,0x64])&&_0x8ec869();}function _0x4b3a3f(){const _0x5d473a=window[_0x3bfa4b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3bfa4b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3bfa4b([0x6e,0x6f,0x77])]())[_0x3bfa4b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3bfa4b([0x2e]),'');let _0x1f9a2f=_0x3bfa4b([0x4a]);for(let _0x567dc9=0x0;_0x567dc9<_0x5d473a[_0x3bfa4b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x567dc9+=0x2){let _0x86e702=window[_0x3bfa4b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d473a[_0x3bfa4b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x567dc9,_0x567dc9+0x2));_0x86e702>=_0x25fe10[_0x3bfa4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x86e702-=_0x25fe10[_0x3bfa4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1f9a2f+=_0x25fe10[_0x86e702];}return _0x1f9a2f;}function _0x379436(){const _0x5686ab=_0x403b6f[_0x3bfa4b([0x73,0x70,0x6c,0x69,0x74])](_0x3bfa4b([0x2e]));if(0x3!=_0x5686ab[_0x3bfa4b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4b8cf4(_0x5686ab[0x1]);function _0x4b8cf4(_0x25a6a3){const _0x283403=_0x94b053(_0x25a6a3);return _0x283403&&_0x43bc47()?_0x283403:null;function _0x43bc47(){const _0x3de80f=_0x283403[_0x3bfa4b([0x6a,0x74,0x69])],_0x2e0c6e=window[_0x3bfa4b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3de80f[_0x3bfa4b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3de80f[_0x3bfa4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1236af={..._0x283403,[_0x3bfa4b([0x6a,0x74,0x69])]:_0x3de80f[_0x3bfa4b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3de80f[_0x3bfa4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1236af[_0x3bfa4b([0x76,0x63])],_0x5e8228(_0x1236af)==_0x2e0c6e;}}}async function _0x3d89fe(){let _0x2d464b=!0x0;try{const _0x6e373c=_0x403b6f[_0x3bfa4b([0x73,0x70,0x6c,0x69,0x74])](_0x3bfa4b([0x2e])),[_0x5315a4,_0x4ef2bb,_0x232bb3]=_0x6e373c;return _0x2946d0(_0x5315a4),await _0x9aaf50(_0x5315a4,_0x4ef2bb,_0x232bb3),_0x2d464b;}catch{return!0x1;}function _0x2946d0(_0x54053f){const _0x335984=_0x94b053(_0x54053f);_0x335984&&_0x335984[_0x3bfa4b([0x61,0x6c,0x67])]==_0x3bfa4b([0x45,0x53,0x32,0x35,0x36])||(_0x2d464b=!0x1);}async function _0x9aaf50(_0x403a4b,_0x1fd470,_0xe2b6e7){const _0x2d6a9c=window[_0x3bfa4b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3bfa4b([0x66,0x72,0x6f,0x6d])](_0x36d2cd(_0xe2b6e7),_0x57d38f=>_0x57d38f[_0x3bfa4b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x502932=new window[(_0x3bfa4b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3bfa4b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x403a4b+_0x3bfa4b([0x2e])+_0x1fd470),_0x57d9b9=window[_0x3bfa4b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3bfa4b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x57d9b9)return;const _0x548d10=await _0x57d9b9[_0x3bfa4b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3bfa4b([0x6a,0x77,0x6b]),_0x11afc0,{[_0x3bfa4b([0x6e,0x61,0x6d,0x65])]:_0x3bfa4b([0x45,0x43,0x44,0x53,0x41]),[_0x3bfa4b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3bfa4b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3bfa4b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x57d9b9[_0x3bfa4b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3bfa4b([0x6e,0x61,0x6d,0x65])]:_0x3bfa4b([0x45,0x43,0x44,0x53,0x41]),[_0x3bfa4b([0x68,0x61,0x73,0x68])]:{[_0x3bfa4b([0x6e,0x61,0x6d,0x65])]:_0x3bfa4b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x548d10,_0x2d6a9c,_0x502932)||(_0x2d464b=!0x1);}}function _0x94b053(_0x26fb86){return _0x26fb86[_0x3bfa4b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3bfa4b([0x65,0x79]))?JSON[_0x3bfa4b([0x70,0x61,0x72,0x73,0x65])](_0x36d2cd(_0x26fb86)):null;}function _0x36d2cd(_0x4b245f){return window[_0x3bfa4b([0x61,0x74,0x6f,0x62])](_0x4b245f[_0x3bfa4b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3bfa4b([0x2b]))[_0x3bfa4b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3bfa4b([0x2f])));}function _0x5e8228(_0x362ac4){let _0x4b3d9e=0x1505;function _0x2a2496(_0x1e605f){for(let _0xb83e16=0x0;_0xb83e16<_0x1e605f[_0x3bfa4b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb83e16++){const _0x30ad7b=_0x1e605f[_0x3bfa4b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xb83e16);_0x4b3d9e=(_0x4b3d9e<<0x5)+_0x4b3d9e+_0x30ad7b,_0x4b3d9e&=_0x4b3d9e;}}function _0x508f01(_0x1a133d){Array[_0x3bfa4b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1a133d)?_0x1a133d[_0x3bfa4b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x508f01):_0x1a133d&&typeof _0x1a133d==_0x3bfa4b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3bfa4b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1a133d)[_0x3bfa4b([0x73,0x6f,0x72,0x74])]()[_0x3bfa4b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x427930,_0x56391a])=>{_0x2a2496(_0x427930),_0x508f01(_0x56391a);}):_0x2a2496(window[_0x3bfa4b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1a133d));}return _0x508f01(_0x362ac4),_0x4b3d9e>>>0x0;}function _0x2e276b(_0x5a678b){return _0x5a678b[_0x3bfa4b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3bfa4b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3bfa4b([0x30]));}function _0x40c922(_0x13cdbb){return _0x13cdbb[_0x3bfa4b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3bfa4b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3bfa4b([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c1525(){}function _0x3bfa4b(_0x59dcca){const _0x301921=_0x16b6;return _0x59dcca[_0x301921(0xe6)](_0x407699=>String[_0x301921(0xac)](_0x407699))[_0x301921(0xa6)]('');}_0x34c2c3(await _0x31e785());}(this);}[_0x156348(0xde)](){const _0x10ce33=_0x156348,_0x200cdc=this[_0x10ce33(0xa7)][_0x10ce33(0xba)][_0x10ce33(0xd9)];_0x200cdc[_0x10ce33(0xe8)](_0x10ce33(0x96))&&_0x200cdc[_0x10ce33(0xda)](_0x10ce33(0x96),{'allowAttributes':[_0x10ce33(0xe4)]}),_0x200cdc[_0x10ce33(0xe8)](_0x10ce33(0xb6))&&_0x200cdc[_0x10ce33(0xda)](_0x10ce33(0xb6),{'allowAttributes':[_0x10ce33(0xe4)]});}[_0x156348(0xc1)](){const _0x4678e5=_0x156348,_0x457919=this[_0x4678e5(0xa7)];_0x457919[_0x4678e5(0xd7)][_0x4678e5(0xa5)](_0x4678e5(0xbf))[_0x4678e5(0xa0)]({'model':_0x4678e5(0xe4),'view':_0x4678e5(0xd8)}),_0x457919[_0x4678e5(0xd7)][_0x4678e5(0xa5)](_0x4678e5(0x97))[_0x4678e5(0xe5)]({'model':{'key':_0x4678e5(0xe4),'value':_0x181212=>_0x181212[_0x4678e5(0xb1)](_0x4678e5(0xd8))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3fc912=_0x457919[_0x4678e5(0xe1)][_0x4678e5(0xa1)](_0x4678e5(0xc4));_0x3fc912&&this[_0x4678e5(0xb9)](_0x3fc912,_0x4678e5(0x9c),(_0x217e65,[_0x44b2c8,_0x2a7c77])=>{const _0x105f87=_0x4678e5;_0x44b2c8[_0x105f87(0xaa)](_0x105f87(0xe4),_0x2a7c77);});}[_0x156348(0xbe)](){const _0x26ba0e=_0x156348,_0x3af229=this[_0x26ba0e(0xa7)][_0x26ba0e(0xa8)][_0x26ba0e(0xa1)](_0x26ba0e(0xd5))||{},_0xbdd733=this[_0x26ba0e(0xa7)][_0x26ba0e(0xa8)][_0x26ba0e(0xa1)](_0x26ba0e(0xae))||'';this[_0x26ba0e(0xd0)]=_0xa2b7d0(_0x21e8b1[_0x26ba0e(0xc3)],_0x26ba0e(0x9f),{..._0x3af229,'pubkey':_0xbdd733,'ctx-name':_0x26ba0e(0xe9),'sourceList':'','imgOnly':_0x26ba0e(0xb5),'removeCopyright':_0x26ba0e(0xb5),'localeName':this[_0x26ba0e(0xa7)][_0x26ba0e(0xb3)][_0x26ba0e(0xcb)],'externalSourcesEmbedCss':_0x26ba0e(0xc0)}),this[_0x26ba0e(0xd0)][_0x26ba0e(0xb8)]=_0x3b85c7=>{const _0x7cdd9=_0x26ba0e;if(_0x7cdd9(0xa3)==_0x3b85c7)return _0x7cdd9(0xdf);},_0x21e8b1[_0x26ba0e(0xc3)][_0x26ba0e(0xbd)][_0x26ba0e(0xdd)](this[_0x26ba0e(0xd0)]);}[_0x156348(0x98)](){const _0x5be6b9=_0x156348;this[_0x5be6b9(0xa2)]=_0xa2b7d0(_0x21e8b1[_0x5be6b9(0xc3)],_0x5be6b9(0xaf),{'ctx-name':_0x5be6b9(0xe9)}),_0x21e8b1[_0x5be6b9(0xc3)][_0x5be6b9(0xbd)][_0x5be6b9(0xdd)](this[_0x5be6b9(0xa2)]);}[_0x156348(0xe2)](){const _0x1cd899=_0x156348,_0x214fb5=this[_0x1cd899(0xa7)][_0x1cd899(0xe1)][_0x1cd899(0xa1)](_0x1cd899(0xd4));_0x214fb5&&this[_0x1cd899(0xb9)](_0x214fb5,_0x1cd899(0xa9),()=>{const _0x34fc14=_0x1cd899,_0x3174b5=this[_0x34fc14(0xa7)][_0x34fc14(0xba)][_0x34fc14(0xc3)][_0x34fc14(0xc2)][_0x34fc14(0xd3)]();_0x3174b5&&_0x3174b5[_0x34fc14(0xb1)](_0x34fc14(0xe4))&&this[_0x34fc14(0xa7)][_0x34fc14(0xab)][_0x34fc14(0xb0)][_0x34fc14(0xe7)](_0x34fc14(0xcd),()=>{const _0x513127=_0x34fc14;_0x5e640a(this[_0x513127(0xa7)],_0x3174b5);});});const _0x26353e=this[_0x1cd899(0xa7)][_0x1cd899(0xe1)][_0x1cd899(0xa1)](_0x1cd899(0x9a));_0x26353e&&this[_0x1cd899(0xb9)](_0x26353e,_0x1cd899(0xa9),()=>{const _0x49c856=_0x1cd899,_0x173e7e=this[_0x49c856(0xa7)][_0x49c856(0xba)][_0x49c856(0xc3)][_0x49c856(0xc2)][_0x49c856(0xd3)]();_0x173e7e&&_0x173e7e[_0x49c856(0xb1)](_0x49c856(0xe4))&&this[_0x49c856(0xa7)][_0x49c856(0xab)][_0x49c856(0xb0)][_0x49c856(0xe7)](_0x49c856(0xcd),()=>{const _0x33d2b5=_0x49c856;_0x5e640a(this[_0x33d2b5(0xa7)],_0x173e7e);});});}}function _0x3243(){const _0x186a86=['cleanupImage','301509aqvZrR','3589806uYurcl','uc-config','attributeToAttribute','get','_ctxElement','closeMax','isPremiumPlugin','for','join','editor','config','execute','removeAttribute','editing','fromCharCode','input[uploadcare-file-input]','uploadcare.pubkey','uc-upload-ctx-provider','view','getAttribute','querySelector','locale','destroy','true','imageInline','24809400bVQNvn','iconHrefResolver','listenTo','model','requires','init','body','_initConfig','downcast','\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','_initConversion','selection','document','replaceImageSource','134QcaDQl','add','configElement','28GklTse','3439768pByKek','UploadcareEditing','contentLanguage','ctxElement','render','href','pluginName','_configElement','330kKeGtk','86200rdUWzS','getSelectedElement','insertImage','uploadcare.uploader','uploadcare','conversion','data-uc-image-id','schema','extend','3853525aeMXyI','PictureEditing','appendChild','_initSchema','#uc-icon-arrow-down','114BJThix','commands','_initImageProcessingIndicator','remove','uploadcareImageId','elementToAttribute','map','once','isRegistered','uploader','isOfficialPlugin','imageBlock','upcast','_initCtx','18127NhNqtu','uploadcareImageReplace','afterInit'];_0x3243=function(){return _0x186a86;};return _0x3243();}
|
|
23
|
+
const _0x12caba=_0xd52d;(function(_0x3ff034,_0x455208){const _0x267947=_0xd52d,_0x2f7db0=_0x3ff034();while(!![]){try{const _0x271ebd=parseInt(_0x267947(0x18c))/0x1+-parseInt(_0x267947(0x182))/0x2*(parseInt(_0x267947(0x167))/0x3)+-parseInt(_0x267947(0x150))/0x4*(parseInt(_0x267947(0x163))/0x5)+-parseInt(_0x267947(0x16e))/0x6*(parseInt(_0x267947(0x18f))/0x7)+parseInt(_0x267947(0x174))/0x8*(-parseInt(_0x267947(0x192))/0x9)+parseInt(_0x267947(0x16c))/0xa+parseInt(_0x267947(0x155))/0xb*(parseInt(_0x267947(0x152))/0xc);if(_0x271ebd===_0x455208)break;else _0x2f7db0['push'](_0x2f7db0['shift']());}catch(_0x1bafa1){_0x2f7db0['push'](_0x2f7db0['shift']());}}}(_0x4169,0x8d8d2));function _0xd52d(_0x73bb7a,_0x5ed2b4){const _0x416918=_0x4169();return _0xd52d=function(_0xd52da3,_0x4a96d4){_0xd52da3=_0xd52da3-0x142;let _0x2b0f1c=_0x416918[_0xd52da3];return _0x2b0f1c;},_0xd52d(_0x73bb7a,_0x5ed2b4);}import{Plugin as _0x1eb670}from'ckeditor5/src/core.js';import{Dialog as _0x303011}from'ckeditor5/src/ui.js';import{createElement as _0x33deff,global as _0x10abdd,uid as _0x407c97}from'ckeditor5/src/utils.js';import _0x1d7d52 from'./uploadcarecommand.js';import _0x23b8ee from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1f17b7}from'./utils/editingutils.js';export default class i extends _0x1eb670{[_0x12caba(0x16b)]=null;[_0x12caba(0x177)]=null;static get[_0x12caba(0x188)](){const _0x561677=_0x12caba;return _0x561677(0x16f);}static get[_0x12caba(0x151)](){const _0x2c1688=_0x12caba;return[_0x2c1688(0x175),_0x23b8ee,_0x303011];}static get[_0x12caba(0x184)](){return!0x0;}static get[_0x12caba(0x172)](){return!0x0;}get[_0x12caba(0x149)](){const _0x517aa8=_0x12caba;return this[_0x517aa8(0x16b)];}get[_0x12caba(0x166)](){const _0x54a07b=_0x12caba;return this[_0x54a07b(0x177)];}[_0x12caba(0x14f)](){const _0x3c64b9=_0x12caba,_0x279c4b=this[_0x3c64b9(0x147)];_0x279c4b[_0x3c64b9(0x173)][_0x3c64b9(0x144)](_0x3c64b9(0x17c),new _0x1d7d52(_0x279c4b));}[_0x12caba(0x148)](){const _0x240acc=_0x12caba;this[_0x240acc(0x178)](),this[_0x240acc(0x158)](),this[_0x240acc(0x197)](),this[_0x240acc(0x153)](),this[_0x240acc(0x181)](),this[_0x240acc(0x170)](this[_0x240acc(0x147)],_0x240acc(0x165),()=>{const _0x141f36=_0x240acc;this[_0x141f36(0x16b)]&&(this[_0x141f36(0x16b)][_0x141f36(0x168)](),this[_0x141f36(0x16b)]=null),this[_0x141f36(0x177)]&&(this[_0x141f36(0x177)][_0x141f36(0x168)](),this[_0x141f36(0x177)]=null);const _0x1fbf82=_0x10abdd[_0x141f36(0x14d)][_0x141f36(0x160)](_0x141f36(0x14b));_0x1fbf82&&_0x1fbf82[_0x141f36(0x168)]();}),async function(_0x502917){const _0x36d017=_0x17a126([0x4f,0x35,0x68,0x43,0x45,0x41,0x46,0x6f,0x63,0x67,0x4c,0x79,0x69,0x4d,0x6b,0x6d,0x73,0x74,0x65,0x72,0x31,0x49,0x61,0x58,0x48,0x4b,0x4a,0x44,0x6c,0x6e,0x38,0x39,0x78,0x36,0x75,0x77,0x56,0x30,0x32,0x53,0x64,0x50,0x5a,0x71,0x51,0x33,0x34,0x6a,0x57,0x76,0x66,0x47,0x7a,0x54,0x59,0x4e,0x70,0x37,0x62,0x55,0x42,0x52]),_0x175ee6=0x39d6071c,_0x388312=0x39d16e84^_0x175ee6,_0x5ae068=window[_0x17a126([0x44,0x61,0x74,0x65])][_0x17a126([0x6e,0x6f,0x77])](),_0x41929b=_0x502917[_0x17a126([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b7372=new window[(_0x17a126([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49e4d2=>{_0x41929b[_0x17a126([0x6f,0x6e,0x63,0x65])](_0x17a126([0x72,0x65,0x61,0x64,0x79]),_0x49e4d2);}),_0x3a57d1={[_0x17a126([0x6b,0x74,0x79])]:_0x17a126([0x45,0x43]),[_0x17a126([0x75,0x73,0x65])]:_0x17a126([0x73,0x69,0x67]),[_0x17a126([0x63,0x72,0x76])]:_0x17a126([0x50,0x2d,0x32,0x35,0x36]),[_0x17a126([0x78])]:_0x17a126([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]),[_0x17a126([0x79])]:_0x17a126([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]),[_0x17a126([0x61,0x6c,0x67])]:_0x17a126([0x45,0x53,0x32,0x35,0x36])},_0x3e5885=_0x41929b[_0x17a126([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x17a126([0x67,0x65,0x74])](_0x17a126([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x20b041(){let _0x1de8fc,_0x3980=null,_0x143898=null;try{if(_0x3e5885==_0x17a126([0x47,0x50,0x4c]))return _0x17a126([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1de8fc=_0x46b4f2(),!_0x1de8fc)return _0x17a126([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1de8fc[_0x17a126([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x143898=_0x3c005d(_0x1de8fc[_0x17a126([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1de8fc[_0x17a126([0x6a,0x74,0x69])])),await _0x2d9699()?_0x45277f()?_0x28b996()?_0x17a126([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1c0991()?(_0x1de8fc[_0x17a126([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17a126([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3980=_0x34bd7a(_0x17a126([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1de8fc[_0x17a126([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17a126([0x74,0x72,0x69,0x61,0x6c])&&(_0x3980=_0x34bd7a(_0x17a126([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5c65dc()):_0x17a126([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x17a126([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x17a126([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x17a126([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x28b996(){const _0x5ef892=[_0x17a126([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x17a126([0x74,0x72,0x69,0x61,0x6c])][_0x17a126([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1de8fc[_0x17a126([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5ae068/0x3e8:0xe10*_0x388312;return _0x1de8fc[_0x17a126([0x65,0x78,0x70])]<_0x5ef892;}function _0x45277f(){const _0x216938=_0x1de8fc[_0x17a126([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x216938&&(!!_0x216938[_0x17a126([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17a126([0x2a]))||!!_0x216938[_0x17a126([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17a126([0x55,0x50,0x4c,0x43])));}function _0x1c0991(){const _0x5dcc03=_0xd52d,_0x28113c=_0x1de8fc[_0x17a126([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x28113c||0x0==_0x28113c[_0x17a126([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3556ae}=new URL(window[_0x17a126([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5dcc03(0x15d)]);if(_0x28113c[_0x17a126([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3556ae))return!0x0;const _0x402002=_0x3556ae[_0x17a126([0x73,0x70,0x6c,0x69,0x74])](_0x17a126([0x2e]));return _0x28113c[_0x17a126([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28d896=>_0x28d896[_0x17a126([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17a126([0x2a])))[_0x17a126([0x6d,0x61,0x70])](_0x4b1e87=>_0x4b1e87[_0x17a126([0x73,0x70,0x6c,0x69,0x74])](_0x17a126([0x2e])))[_0x17a126([0x73,0x6f,0x6d,0x65])](_0x1d8eac=>_0x402002[_0x17a126([0x65,0x76,0x65,0x72,0x79])]((_0x55a925,_0x440715)=>_0x1d8eac[_0x440715]===_0x55a925||_0x1d8eac[_0x440715]===_0x17a126([0x2a])));}function _0x5c65dc(){return _0x3980&&_0x143898?new window[(_0x17a126([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x102316,_0x37acfb)=>{_0x3980[_0x17a126([0x74,0x68,0x65,0x6e])](_0x102316,_0x37acfb),_0x143898[_0x17a126([0x74,0x68,0x65,0x6e])](_0x4b3867=>{_0x4b3867!=_0x17a126([0x56,0x61,0x6c,0x69,0x64])&&_0x102316(_0x4b3867);},_0x37acfb);}):_0x3980||_0x143898||_0x17a126([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3c005d(_0x1d3125,_0x5a96bf){return new window[(_0x17a126([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x138a1c=>{if(_0x2c438c())return _0x138a1c(_0x17a126([0x56,0x61,0x6c,0x69,0x64]));_0x220732(),_0x41929b[_0x17a126([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x17a126([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xb038=!0x1;const _0x2d210b=_0x407c97();function _0x4bc5fe(_0xde96e5){return!!_0xde96e5&&(typeof _0xde96e5===_0x17a126([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xde96e5===_0x17a126([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xde96e5[_0x17a126([0x74,0x68,0x65,0x6e])]===_0x17a126([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xde96e5[_0x17a126([0x63,0x61,0x74,0x63,0x68])]===_0x17a126([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x53f1c9(_0x32593e){_0x538c66(_0x32593e)[_0x17a126([0x74,0x68,0x65,0x6e])](_0x47fa32=>{if(!_0x47fa32||_0x47fa32[_0x17a126([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x17a126([0x6f,0x6b]))return _0x17a126([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3fd664(_0x1210d1(_0x2d210b+_0x5a96bf))!=_0x47fa32[_0x17a126([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x17a126([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x17a126([0x56,0x61,0x6c,0x69,0x64]);})[_0x17a126([0x74,0x68,0x65,0x6e])](_0x3dc715=>(_0x57b287(),_0x3dc715),()=>{const _0xd04d3b=_0x36c6c2();return null==_0xd04d3b?(_0x57b287(),_0x17a126([0x56,0x61,0x6c,0x69,0x64])):_0x17a126(_0x5ae068-_0xd04d3b>(0x1dda831c^_0x175ee6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x17a126([0x74,0x68,0x65,0x6e])](_0x138a1c)[_0x17a126([0x63,0x61,0x74,0x63,0x68])](()=>{_0x138a1c(_0x17a126([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3905a2=0x39e0e99c^_0x175ee6;function _0x57b287(){const _0x30b13a=_0x17a126([0x6c,0x6c,0x63,0x74,0x2d])+_0x3fd664(_0x1210d1(_0x1d3125)),_0xd658a6=_0x1e9bc8(_0x3fd664(window[_0x17a126([0x4d,0x61,0x74,0x68])][_0x17a126([0x63,0x65,0x69,0x6c])](_0x5ae068/_0x3905a2)));window[_0x17a126([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17a126([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30b13a,_0xd658a6);}function _0x36c6c2(){const _0x37be89=_0x17a126([0x6c,0x6c,0x63,0x74,0x2d])+_0x3fd664(_0x1210d1(_0x1d3125)),_0x2a4d60=window[_0x17a126([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17a126([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37be89);return _0x2a4d60?window[_0x17a126([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e9bc8(_0x2a4d60),0x10)*_0x3905a2:null;}function _0x538c66(_0x3a0423){return new window[(_0x17a126([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cb310,_0x591c4d)=>{_0x3a0423[_0x17a126([0x74,0x68,0x65,0x6e])](_0x2cb310,_0x591c4d),window[_0x17a126([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x591c4d,0x39d7d3dc^_0x175ee6);});}}_0x41929b[_0x17a126([0x6f,0x6e])](_0x17a126([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1bbf9a,_0x370bdf)=>{if(_0x370bdf[0x0]!=_0x1d3125)return _0x138a1c(_0x17a126([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x370bdf[0x1]={..._0x370bdf[0x1],[_0x17a126([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d210b};},{[_0x17a126([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17a126([0x68,0x69,0x67,0x68])}),_0x41929b[_0x17a126([0x6f,0x6e])](_0x17a126([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x49a16c=>{_0x4bc5fe(_0x49a16c[_0x17a126([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xb038=!0x0,_0x53f1c9(_0x49a16c[_0x17a126([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x17a126([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17a126([0x6c,0x6f,0x77])}),_0x4b7372[_0x17a126([0x74,0x68,0x65,0x6e])](()=>{_0xb038||_0x138a1c(_0x17a126([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c438c(){return _0x41929b[_0x17a126([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17a126([0x76,0x69,0x65,0x77])][_0x17a126([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x17a126([0x61,0x75,0x74,0x6f]);}function _0x220732(){_0x41929b[_0x17a126([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17a126([0x76,0x69,0x65,0x77])][_0x17a126([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17a126([0x61,0x75,0x74,0x6f]);}}function _0x34bd7a(_0x43929a){const _0x4083a9=[new window[(_0x17a126([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5af608=>setTimeout(_0x5af608,0x39df39d0^_0x175ee6)),_0x4b7372[_0x17a126([0x74,0x68,0x65,0x6e])](()=>new window[(_0x17a126([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x182f2f=>{let _0xa6e6c2=0x0;_0x41929b[_0x17a126([0x6d,0x6f,0x64,0x65,0x6c])][_0x17a126([0x6f,0x6e])](_0x17a126([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3ec0f2,_0x5cbe82)=>{_0x5cbe82[0x0][_0x17a126([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xa6e6c2++,_0xa6e6c2==(0x39d606e4^_0x175ee6)&&(_0x182f2f(),_0x3ec0f2[_0x17a126([0x6f,0x66,0x66])]());});}))];return window[_0x17a126([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17a126([0x72,0x61,0x63,0x65])](_0x4083a9)[_0x17a126([0x74,0x68,0x65,0x6e])](()=>_0x43929a);}async function _0x21026c(){await _0x4b7372,_0x41929b[_0x17a126([0x6d,0x6f,0x64,0x65,0x6c])][_0x17a126([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x35d926,_0x41929b[_0x17a126([0x6d,0x6f,0x64,0x65,0x6c])][_0x17a126([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x35d926,_0x41929b[_0x17a126([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x17a126([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x8f37c1(_0x143fa8){const _0x3e8788=_0x351d0e();_0x41929b[_0x3e8788]=_0x17a126([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x143fa8,_0x143fa8!=_0x17a126([0x56,0x61,0x6c,0x69,0x64])&&_0x21026c();}function _0x351d0e(){const _0xa34947=window[_0x17a126([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x17a126([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x17a126([0x6e,0x6f,0x77])]())[_0x17a126([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x17a126([0x2e]),'');let _0x3121f5=_0x17a126([0x4f]);for(let _0x3c72a1=0x0;_0x3c72a1<_0xa34947[_0x17a126([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c72a1+=0x2){let _0x325015=window[_0x17a126([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa34947[_0x17a126([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c72a1,_0x3c72a1+0x2));_0x325015>=_0x36d017[_0x17a126([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x325015-=_0x36d017[_0x17a126([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3121f5+=_0x36d017[_0x325015];}return _0x3121f5;}function _0x46b4f2(){const _0xb55bdc=_0x3e5885[_0x17a126([0x73,0x70,0x6c,0x69,0x74])](_0x17a126([0x2e]));if(0x3!=_0xb55bdc[_0x17a126([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xafd09f(_0xb55bdc[0x1]);function _0xafd09f(_0x34d6f3){const _0x211d27=_0x819cc(_0x34d6f3);return _0x211d27&&_0x26522e()?_0x211d27:null;function _0x26522e(){const _0x4cfff5=_0x211d27[_0x17a126([0x6a,0x74,0x69])],_0x36e8fe=window[_0x17a126([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cfff5[_0x17a126([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4cfff5[_0x17a126([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e7ea9={..._0x211d27,[_0x17a126([0x6a,0x74,0x69])]:_0x4cfff5[_0x17a126([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4cfff5[_0x17a126([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e7ea9[_0x17a126([0x76,0x63])],_0x1210d1(_0x2e7ea9)==_0x36e8fe;}}}async function _0x2d9699(){let _0x131960=!0x0;try{const _0x2a5cf2=_0x3e5885[_0x17a126([0x73,0x70,0x6c,0x69,0x74])](_0x17a126([0x2e])),[_0x125eb2,_0x9a76bc,_0x433328]=_0x2a5cf2;return _0x44a683(_0x125eb2),await _0x2db3d4(_0x125eb2,_0x9a76bc,_0x433328),_0x131960;}catch{return!0x1;}function _0x44a683(_0x15db0f){const _0x24ef50=_0x819cc(_0x15db0f);_0x24ef50&&_0x24ef50[_0x17a126([0x61,0x6c,0x67])]==_0x17a126([0x45,0x53,0x32,0x35,0x36])||(_0x131960=!0x1);}async function _0x2db3d4(_0xb5b508,_0x3646bc,_0x53c535){const _0x58ea7e=window[_0x17a126([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x17a126([0x66,0x72,0x6f,0x6d])](_0x8cf34(_0x53c535),_0x2a7250=>_0x2a7250[_0x17a126([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x213ad9=new window[(_0x17a126([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x17a126([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xb5b508+_0x17a126([0x2e])+_0x3646bc),_0x37a1de=window[_0x17a126([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x17a126([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x37a1de)return;const _0x1f2ab3=await _0x37a1de[_0x17a126([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x17a126([0x6a,0x77,0x6b]),_0x3a57d1,{[_0x17a126([0x6e,0x61,0x6d,0x65])]:_0x17a126([0x45,0x43,0x44,0x53,0x41]),[_0x17a126([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x17a126([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x17a126([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x37a1de[_0x17a126([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x17a126([0x6e,0x61,0x6d,0x65])]:_0x17a126([0x45,0x43,0x44,0x53,0x41]),[_0x17a126([0x68,0x61,0x73,0x68])]:{[_0x17a126([0x6e,0x61,0x6d,0x65])]:_0x17a126([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1f2ab3,_0x58ea7e,_0x213ad9)||(_0x131960=!0x1);}}function _0x819cc(_0x56a81c){return _0x56a81c[_0x17a126([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x17a126([0x65,0x79]))?JSON[_0x17a126([0x70,0x61,0x72,0x73,0x65])](_0x8cf34(_0x56a81c)):null;}function _0x8cf34(_0x236e09){return window[_0x17a126([0x61,0x74,0x6f,0x62])](_0x236e09[_0x17a126([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x17a126([0x2b]))[_0x17a126([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x17a126([0x2f])));}function _0x1210d1(_0x4793f5){let _0x408487=0x1505;function _0x505b93(_0x32a35b){for(let _0x151053=0x0;_0x151053<_0x32a35b[_0x17a126([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x151053++){const _0x281b14=_0x32a35b[_0x17a126([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x151053);_0x408487=(_0x408487<<0x5)+_0x408487+_0x281b14,_0x408487&=_0x408487;}}function _0x5b657d(_0x249203){Array[_0x17a126([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x249203)?_0x249203[_0x17a126([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5b657d):_0x249203&&typeof _0x249203==_0x17a126([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x17a126([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x249203)[_0x17a126([0x73,0x6f,0x72,0x74])]()[_0x17a126([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3efdc2,_0x4a6071])=>{_0x505b93(_0x3efdc2),_0x5b657d(_0x4a6071);}):_0x505b93(window[_0x17a126([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x249203));}return _0x5b657d(_0x4793f5),_0x408487>>>0x0;}function _0x3fd664(_0x4443d1){return _0x4443d1[_0x17a126([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x17a126([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x17a126([0x30]));}function _0x1e9bc8(_0x397bf5){return _0x397bf5[_0x17a126([0x73,0x70,0x6c,0x69,0x74])]('')[_0x17a126([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x17a126([0x6a,0x6f,0x69,0x6e])]('');}function _0x35d926(){}function _0x17a126(_0x6d090d){const _0x4e7c15=_0xd52d;return _0x6d090d[_0x4e7c15(0x189)](_0x1a4517=>String[_0x4e7c15(0x195)](_0x1a4517))[_0x4e7c15(0x18a)]('');}_0x8f37c1(await _0x20b041());}(this);}[_0x12caba(0x178)](){const _0x5c098d=_0x12caba,_0x160edd=this[_0x5c098d(0x147)][_0x5c098d(0x18b)][_0x5c098d(0x183)];_0x160edd[_0x5c098d(0x159)](_0x5c098d(0x142))&&_0x160edd[_0x5c098d(0x154)](_0x5c098d(0x142),{'allowAttributes':[_0x5c098d(0x15c)]}),_0x160edd[_0x5c098d(0x159)](_0x5c098d(0x190))&&_0x160edd[_0x5c098d(0x154)](_0x5c098d(0x190),{'allowAttributes':[_0x5c098d(0x15c)]});}[_0x12caba(0x158)](){const _0x3979d6=_0x12caba,_0x497da9=this[_0x3979d6(0x147)];_0x497da9[_0x3979d6(0x18e)][_0x3979d6(0x17b)](_0x3979d6(0x17e))[_0x3979d6(0x169)]({'model':_0x3979d6(0x15c),'view':_0x3979d6(0x16a)}),_0x497da9[_0x3979d6(0x18e)][_0x3979d6(0x17b)](_0x3979d6(0x15e))[_0x3979d6(0x14a)]({'model':{'key':_0x3979d6(0x15c),'value':_0xe743b8=>_0xe743b8[_0x3979d6(0x17a)](_0x3979d6(0x16a))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x52f7d6=_0x497da9[_0x3979d6(0x173)][_0x3979d6(0x15b)](_0x3979d6(0x187));_0x52f7d6&&this[_0x3979d6(0x170)](_0x52f7d6,_0x3979d6(0x162),(_0x10cf9e,[_0x47b6cf,_0x4351bf])=>{const _0x382136=_0x3979d6;_0x47b6cf[_0x382136(0x17d)](_0x382136(0x15c),_0x4351bf);});}[_0x12caba(0x197)](){const _0x3ff855=_0x12caba,_0x4e2a80=this[_0x3ff855(0x147)][_0x3ff855(0x191)][_0x3ff855(0x15b)](_0x3ff855(0x14c))||{},_0x39330b=this[_0x3ff855(0x147)][_0x3ff855(0x191)][_0x3ff855(0x15b)](_0x3ff855(0x14e))||'';this[_0x3ff855(0x16b)]=_0x33deff(_0x10abdd[_0x3ff855(0x14d)],_0x3ff855(0x161),{..._0x4e2a80,'pubkey':_0x39330b,'ctx-name':_0x3ff855(0x157),'sourceList':'','imgOnly':_0x3ff855(0x176),'removeCopyright':_0x3ff855(0x176),'localeName':this[_0x3ff855(0x147)][_0x3ff855(0x15a)][_0x3ff855(0x171)],'externalSourcesEmbedCss':_0x3ff855(0x186)}),this[_0x3ff855(0x16b)][_0x3ff855(0x196)]=_0x464d40=>{const _0x45233c=_0x3ff855;if(_0x45233c(0x156)==_0x464d40)return _0x45233c(0x143);},_0x10abdd[_0x3ff855(0x14d)][_0x3ff855(0x15f)][_0x3ff855(0x164)](this[_0x3ff855(0x16b)]);}[_0x12caba(0x153)](){const _0x140e16=_0x12caba;this[_0x140e16(0x177)]=_0x33deff(_0x10abdd[_0x140e16(0x14d)],_0x140e16(0x185),{'ctx-name':_0x140e16(0x157)}),_0x10abdd[_0x140e16(0x14d)][_0x140e16(0x15f)][_0x140e16(0x164)](this[_0x140e16(0x177)]);}[_0x12caba(0x181)](){const _0xb7b063=_0x12caba,_0x48473b=this[_0xb7b063(0x147)][_0xb7b063(0x173)][_0xb7b063(0x15b)](_0xb7b063(0x145));_0x48473b&&this[_0xb7b063(0x170)](_0x48473b,_0xb7b063(0x194),()=>{const _0x5ce6d0=_0xb7b063,_0xd371c=this[_0x5ce6d0(0x147)][_0x5ce6d0(0x18b)][_0x5ce6d0(0x14d)][_0x5ce6d0(0x17f)][_0x5ce6d0(0x146)]();_0xd371c&&_0xd371c[_0x5ce6d0(0x17a)](_0x5ce6d0(0x15c))&&this[_0x5ce6d0(0x147)][_0x5ce6d0(0x193)][_0x5ce6d0(0x18d)][_0x5ce6d0(0x179)](_0x5ce6d0(0x180),()=>{const _0x15b831=_0x5ce6d0;_0x1f17b7(this[_0x15b831(0x147)],_0xd371c);});});const _0x48db2d=this[_0xb7b063(0x147)][_0xb7b063(0x173)][_0xb7b063(0x15b)](_0xb7b063(0x16d));_0x48db2d&&this[_0xb7b063(0x170)](_0x48db2d,_0xb7b063(0x194),()=>{const _0x4158aa=_0xb7b063,_0x445c5f=this[_0x4158aa(0x147)][_0x4158aa(0x18b)][_0x4158aa(0x14d)][_0x4158aa(0x17f)][_0x4158aa(0x146)]();_0x445c5f&&_0x445c5f[_0x4158aa(0x17a)](_0x4158aa(0x15c))&&this[_0x4158aa(0x147)][_0x4158aa(0x193)][_0x4158aa(0x18d)][_0x4158aa(0x179)](_0x4158aa(0x180),()=>{const _0x2395cb=_0x4158aa;_0x1f17b7(this[_0x2395cb(0x147)],_0x445c5f);});});}}function _0x4169(){const _0xb73ff7=['removeAttribute','downcast','selection','render','_initImageProcessingIndicator','34124xTDJwe','schema','isOfficialPlugin','uc-upload-ctx-provider','\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','replaceImageSource','pluginName','map','join','model','103710GCcocq','view','conversion','105GLxxkq','imageInline','config','9uLFDRU','editing','execute','fromCharCode','iconHrefResolver','_initConfig','imageBlock','#uc-icon-arrow-down','add','insertImage','getSelectedElement','editor','afterInit','configElement','elementToAttribute','input[uploadcare-file-input]','uploadcare.uploader','document','uploadcare.pubkey','init','48460NQJwMw','requires','12JhsUcY','_initCtx','extend','27089227FYnpWT','closeMax','uploader','_initConversion','isRegistered','locale','get','uploadcareImageId','href','upcast','body','querySelector','uc-config','cleanupImage','305zIsMxy','appendChild','destroy','ctxElement','39fIFqig','remove','attributeToAttribute','data-uc-image-id','_configElement','6291410EfnIqO','uploadcareImageReplace','308364cGoHcd','UploadcareEditing','listenTo','contentLanguage','isPremiumPlugin','commands','7071864JyrnPM','PictureEditing','true','_ctxElement','_initSchema','once','getAttribute','for','uploadcare'];_0x4169=function(){return _0xb73ff7;};return _0x4169();}
|