@ckeditor/ckeditor5-uploadcare 45.2.1-alpha.6 → 45.2.1-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x51d2c2,Command as _0x53a992}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x34bda8,IconGooglePhotos as _0xb28644,IconGoogleDrive as _0x5ccc89,IconFacebook as _0x1ce038,IconDropbox as _0x4b808f,IconUploadcareLink as _0x55ebaf,IconUploadcareImageUpload as _0x503133,IconError as et,IconUploadcareImageEdit as _0x5168cc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xb353b7,MenuBarMenuListItemButtonView as _0x426d7b,View as _0xc7085c,FocusCycler as _0x4ca061,Dialog as _0x54803f,DialogViewPosition as _0x1727e4,SpinnerView as _0x26790e,IconView as at,Notification as _0x16cbba}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xa8411e,DomEmitterMixin as _0x35653e,global as _0x229b46,getAncestors as _0x478211,ObservableMixin as _0x4207ba,createElement as _0x57394b,uid as _0x31aef3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x309f36}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xf405ce,info as _0x34960e}from'@uploadcare/upload-client';import*as _0x121411 from'@uploadcare/file-uploader';var o=function(_0x4c1d16){return _0x4c1d16['Local']='local',_0x4c1d16['URL']='url',_0x4c1d16['Dropbox']='dropbox',_0x4c1d16['GDrive']='gdrive',_0x4c1d16['Facebook']='facebook',_0x4c1d16['GPhotos']='gphotos',_0x4c1d16['OneDrive']='onedrive',_0x4c1d16;}({});function _(_0x55aebb,_0x5c0368,_0x498de5){const t=_0x55aebb['t'],_0x26a1a1=_0x55aebb['t'];switch(_0x5c0368){case o['Local']:return{'text':_0x26a1a1('Insert'===_0x498de5?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x26a1a1('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x498de5?_0x26a1a1('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x26a1a1('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x498de5?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x498de5?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x498de5?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x498de5?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x498de5?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5c0368;}}class e extends _0x51d2c2{['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 _0x4204c5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x389b2e;for(const _0x5e8ffd in _0x4204c5){const _0x3e18d2=_0x5e8ffd,_0x30865d=_0x4204c5[_0x3e18d2];if('uploadcareLicenseKeyValid'==_0x30865d||'uploadcareLicenseKeyInvalid'==_0x30865d||'uploadcareLicenseKeyExpired'==_0x30865d||'uploadcareLicenseKeyDomainLimit'==_0x30865d||'uploadcareLicenseKeyNotAllowed'==_0x30865d||'uploadcareLicenseKeyEvaluationLimit'==_0x30865d||'uploadcareLicenseKeyTrialLimit'==_0x30865d||'uploadcareLicenseKeyUsageLimit'==_0x30865d){delete _0x4204c5[_0x3e18d2],_0x389b2e=_0x30865d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x389b2e&&_0x4204c5['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x389b2e&&_0x4204c5['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x389b2e&&_0x4204c5['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x389b2e&&_0x4204c5['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x389b2e&&_0x4204c5['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x389b2e&&_0x4204c5['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x389b2e&&_0x4204c5['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x462ac9}=this,_0x374ed6=_0x462ac9['commands']['get']('uploadcare');if(!_0x374ed6)return;const _0x51979d=this['_normalizeConfigSourceList'](_0x462ac9['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3dd520,_0x1a1b53)=>{const _0x3eb8e3=this['_getIntegrationKey'](_0x1a1b53['type']);return _0x3dd520[_0x3eb8e3]||(_0x3dd520[_0x3eb8e3]=[]),_0x3dd520[_0x3eb8e3]['push'](_0x1a1b53),_0x3dd520;},{});_0x462ac9['plugins']['has']('ImageInsertUI')&&_0x462ac9['commands']['get']('uploadcare')&&Object['entries'](_0x51979d)['forEach'](([_0xaa2a4d,_0x30d07d])=>{_0x462ac9['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xaa2a4d,'observable':()=>_0x374ed6,'buttonViewCreator':()=>this['_createToolbarButton'](_0x30d07d),'formViewCreator':()=>this['_createDropdownButtons'](_0x30d07d),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x30d07d),'override':'assetManager'!==_0xaa2a4d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x271da4){const {locale:_0xce9c71}=this['editor'];return _0x271da4['map'](_0x1ff064=>{const _0x15dfa3=_(_0xce9c71,_0x1ff064,'Insert');switch(_0x1ff064){case o['Local']:return{'icon':_0x503133,'type':o['Local'],..._0x15dfa3};case o['URL']:return{'icon':_0x55ebaf,'type':o['URL'],..._0x15dfa3};case o['Dropbox']:return{'icon':_0x4b808f,'type':o['Dropbox'],..._0x15dfa3};case o['Facebook']:return{'icon':_0x1ce038,'type':o['Facebook'],..._0x15dfa3};case o['GDrive']:return{'icon':_0x5ccc89,'type':o['GDrive'],..._0x15dfa3};case o['GPhotos']:return{'icon':_0xb28644,'type':o['GPhotos'],..._0x15dfa3};case o['OneDrive']:return{'icon':_0x34bda8,'type':o['OneDrive'],..._0x15dfa3};}});}['_getIntegrationKey'](_0x5e5369){switch(_0x5e5369){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x359da5,_0x43be3c){const _0x643d60=this['editor'],_0x3d469b=new _0x359da5(_0x643d60['locale']),_0x581b5b=_0x643d60['commands']['get']('uploadcare');return _0x3d469b['bind']('isEnabled')['to'](_0x581b5b),_0x3d469b['on']('execute',()=>{_0x581b5b['execute'](_0x43be3c);}),_0x3d469b;}['_createToolbarButton'](_0x4ae028){const {locale:_0x2caae7}=this['editor'],_0x1eb80d=this['editor']['plugins']['get']('ImageInsertUI'),_0x240452=_0x4ae028[0x0],_0x10f72f=this['_createButton'](_0xb353b7,_0x240452['type']);return _0x10f72f['icon']=_0x240452['icon'],_0x10f72f['bind']('label')['to'](_0x1eb80d,'isImageSelected',_0xe86278=>_(_0x2caae7,_0x240452['type'],_0xe86278?'Replace':'Insert')['text']),_0x10f72f['tooltip']=!0x0,_0x10f72f;}['_createDropdownButtons'](_0x57d312){const {locale:_0x2613d0}=this['editor'],_0x44bed2=this['editor']['plugins']['get']('ImageInsertUI');return _0x57d312['map'](_0x49ecc3=>{const _0x513126=this['_createButton'](_0xb353b7,_0x49ecc3['type']);return _0x513126['withText']=!0x0,_0x513126['icon']=_0x49ecc3['icon'],_0x513126['bind']('label')['to'](_0x44bed2,'isImageSelected',_0x84ffcd=>_(_0x2613d0,_0x49ecc3['type'],_0x84ffcd?'Replace':'Insert')['text']),_0x513126;});}['_createMenuBarButtons'](_0x59f196){return _0x59f196['map'](_0x56a00f=>{const _0x461a8c=this['_createButton'](_0x426d7b,_0x56a00f['type']);return _0x461a8c['icon']=_0x56a00f['icon'],_0x461a8c['label']=_0x56a00f['shortText'],_0x461a8c;});}}class q extends _0xc7085c{['focusTracker'];['focusCycler'];constructor(_0x121c0d){super(_0x121c0d),this['focusTracker']=new _0xa8411e(),this['focusCycler']=new _0x4ca061({'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(_0x32f840){super(_0x32f840),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(_0x5267ca,_0x55d8dd){const _0x276ffb=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x153d48=>_0x153d48<=_0x55d8dd)['map'](_0x196ffb=>_0x5267ca['replace'](/\/$/,'')+'/-/resize/'+_0x196ffb+'x/\x20'+_0x196ffb+'w');return{'imageFallbackUrl':_0x5267ca,'imageSources':[{'srcset':_0x276ffb['join'](',\x20'),'sizes':'(max-width:\x20'+_0x55d8dd+'px)\x20100vw,\x20'+_0x55d8dd+'px','type':'image/webp'}]};}function A(_0x43e7d5,_0x5a3b1c,_0x509f83){const _0x95ea3e=_0x43e7d5['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x95ea3e?parseInt(_0x95ea3e[0x1],0xa):_0x5a3b1c,'height':_0x95ea3e?parseInt(_0x95ea3e[0x2],0xa):_0x509f83};}function m(_0x1894a8,_0x25eecf){const _0xa6701e=Object['create'](_0x35653e),_0x24c930=_0x1894a8['plugins']['get']('ImageUtils'),_0x1f5e92=_0x1894a8['editing']['mapper']['toViewElement'](_0x25eecf),_0x26e174=_0x24c930['findViewImgElement'](_0x1f5e92),_0x48806b=_0x1894a8['editing']['view']['domConverter']['viewToDom'](_0x26e174),_0x3e5046=_0x25eecf['getAttribute']('width'),_0x1b5b3f=_0x25eecf['getAttribute']('height'),_0x2dfb89='image-processing';_0x1894a8['editing']['view']['change'](_0x410c57=>{_0x410c57['addClass'](_0x2dfb89,_0x1f5e92),_0x410c57['setStyle']('aspect-ratio',_0x3e5046+'/'+_0x1b5b3f,_0x26e174);}),_0xa6701e['listenTo'](_0x48806b,'load',()=>{_0xa6701e['stopListening'](_0x48806b,'load'),_0x1894a8['editing']['view']['change'](_0x492e23=>{_0x492e23['removeClass'](_0x2dfb89,_0x1f5e92),_0x492e23['removeStyle']('aspect-ratio',_0x26e174);});});}function V(_0xc207a2){if(Array['isArray'](_0xc207a2)){const _0x32cf6b=_0xc207a2['map'](V);return _0x2ce710=>_0x32cf6b['some'](_0x746a82=>_0x746a82(_0x2ce710));}if('origin'==_0xc207a2){const _0xab7101=_0x229b46['window']['location']['origin'];return _0x244f3f=>new URL(_0x244f3f,_0x229b46['document']['baseURI'])['origin']==_0xab7101;}return'function'==typeof _0xc207a2?_0xc207a2:_0xc207a2 instanceof RegExp?_0x53b86a=>!(!_0x53b86a['match'](_0xc207a2)&&!_0x53b86a['replace'](/^https?:\/\//,'')['match'](_0xc207a2)):()=>!0x1;}function F(_0x5307de,_0x6e8436){return _0x478211(_0x5307de['target'])['includes'](_0x6e8436);}class l extends/* #__PURE__ -- @preserve */
24
- _0x4207ba(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x110353,_0x5ac942,_0x5d5dba){super(),this['_editor']=_0x110353,this['_editing']=_0x5ac942,this['_dialog']=_0x110353['plugins']['get'](_0x54803f),this['_api']=_0x5ac942['ctxElement']['getAPI'](),this['_type']=_0x5d5dba,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:_0x3bba9d,model:_0x16016b}=this['_editor'],_0x1edec9=_0x16016b['document']['selection']['getSelectedElement'](),_0x2074b8=_0x1edec9&&(_0x1edec9['is']('element','imageBlock')||_0x1edec9['is']('element','imageInline'));this['_formView']=new S(_0x3bba9d),this['_dialog']['show']({'id':'uploadCare','icon':_0x503133,'title':_(_0x3bba9d,this['_type'],_0x2074b8?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1727e4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x29f501=>!F(_0x29f501,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x56871b}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5f3b1c=>{const _0x36109f=_0x56871b['length'];for(const _0x14f4dd of _0x56871b){const _0x3a6a28=_0x14f4dd===_0x56871b[_0x36109f-0x1],{cdnUrl:_0x27b171,fileInfo:_0x5e63c5}=_0x14f4dd;if(!_0x27b171||!_0x5e63c5)continue;const {width:_0x4af2eb,height:_0x464720}=_0x5e63c5['imageInfo'],_0x458292=A(_0x27b171,_0x4af2eb,_0x464720),_0x2511b4=E(_0x27b171,_0x458292['width']),_0x116591={'id':_0x5e63c5['uuid'],'type':'image','attributes':{'imageDimension':_0x458292,..._0x2511b4}};this['_insertAsset'](_0x116591,_0x3a6a28,_0x5f3b1c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3a4e1f=>{'idle'===_0x3a4e1f['detail']['status']&&!_0x3a4e1f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x163c15,_0x2c06d0,_0x30fb2c){const _0x20216d=this['_editor']['model']['document']['selection'],_0x2a0371=_0x20216d['getSelectedElement'](),_0x87dfba=!(!_0x2a0371||!_0x2a0371['is']('element','imageInline'));_0x30fb2c['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x163c15,_0x87dfba),_0x2c06d0||_0x30fb2c['setSelection'](_0x20216d['getLastPosition']());}['_insertImage'](_0x1a8c33,_0x236f19){const _0x25d17e=this['_editor'],{imageDimension:_0x49476a,imageFallbackUrl:_0x1a8d8e,imageSources:_0x4a870b}=_0x1a8c33['attributes'];_0x25d17e['execute']('insertImage',{'imageType':_0x236f19?'imageInline':null,'source':{'uploadcareImageId':_0x1a8c33['id'],'src':_0x1a8d8e,'sources':_0x4a870b,..._0x49476a}});}}class n extends _0x53a992{['_editing'];['_controller']=null;static get['requires'](){return[_0x54803f,i];}constructor(_0x27ac9f){super(_0x27ac9f),this['_editing']=_0x27ac9f['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2917f7){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x2917f7);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x11c4d6,publicKey:_0x4ed533,signal:_0x30465e,onProgress:_0x2d8273}){return _0xf405ce(_0x11c4d6,{'publicKey':_0x4ed533,'store':'auto','signal':_0x30465e,'onProgress':_0x2d8273});}static['getInfo'](_0x30a776,_0x503620){return _0x34960e(_0x30a776,_0x503620);}}class p extends _0x51d2c2{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x309f36,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1fcefc=this['editor'];if(!!!_0x1fcefc['config']['get']('uploadcare'))return;_0x1fcefc['plugins']['get'](_0x309f36)['createUploadAdapter']=_0x2d0060=>new x(_0x2d0060,_0x1fcefc),_0x1fcefc['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x37de26,{imageElement:_0x4848dd,data:_0x333940})=>{_0x1fcefc['model']['change'](_0x740a1f=>{_0x740a1f['setAttribute']('uploadcareImageId',_0x333940['uploadcareImageId'],_0x4848dd);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x15a711,_0x28c22d){this['loader']=_0x15a711,this['editor']=_0x28c22d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x37559b=this['editor']['config']['get']('uploadcare.pubkey'),_0x56805d=await this['loader']['file'];return C['upload']({'file':_0x56805d,'publicKey':_0x37559b,'signal':this['controller']['signal'],'onProgress':_0x372a89=>{_0x372a89&&_0x372a89['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x372a89['value']);}})['then'](async _0x6dd62b=>{const {imageFallbackUrl:_0x28c232,imageSources:_0x5748e7}=E(_0x6dd62b['cdnUrl'],_0x6dd62b['imageInfo']['width']);return{'uploadcareImageId':_0x6dd62b['uuid'],'default':_0x28c232,'sources':_0x5748e7};})['catch'](()=>{const _0x201c81=t('Cannot\x20upload\x20file:')+('\x20'+_0x56805d['name']+'.');return Promise['reject'](_0x201c81);});}['abort'](){this['controller']['abort']();}}class i extends _0x51d2c2{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x54803f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x191f9e=this['editor'];_0x191f9e['commands']['add']('uploadcare',new n(_0x191f9e));}['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 _0x1c7088=_0x229b46['document']['querySelector']('input[uploadcare-file-input]');_0x1c7088&&_0x1c7088['remove']();}),async function(_0x5aa2b4){const _0x49d51f=_0x168fb4([0x6a,0x55,0x33,0x38,0x65,0x4a,0x5a,0x71,0x36,0x56,0x74,0x59,0x6f,0x35,0x4c,0x63,0x75,0x72,0x50,0x78,0x76,0x7a,0x49,0x30,0x47,0x68,0x32,0x6c,0x4d,0x43,0x62,0x46,0x79,0x45,0x41,0x39,0x57,0x61,0x53,0x51,0x6d,0x58,0x31,0x69,0x4b,0x66,0x6b,0x34,0x77,0x42,0x73,0x64,0x54,0x44,0x6e,0x37,0x52,0x70,0x4e,0x48,0x4f,0x67]),_0x280df6=0x7ad1b780,_0x1afe14=0x7ad6dcc8^_0x280df6,_0x28605e=window[_0x168fb4([0x44,0x61,0x74,0x65])][_0x168fb4([0x6e,0x6f,0x77])](),_0x3a5429=_0x5aa2b4[_0x168fb4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x349785=new window[(_0x168fb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29db8a=>{_0x3a5429[_0x168fb4([0x6f,0x6e,0x63,0x65])](_0x168fb4([0x72,0x65,0x61,0x64,0x79]),_0x29db8a);}),_0x5a6abc={[_0x168fb4([0x6b,0x74,0x79])]:_0x168fb4([0x45,0x43]),[_0x168fb4([0x75,0x73,0x65])]:_0x168fb4([0x73,0x69,0x67]),[_0x168fb4([0x63,0x72,0x76])]:_0x168fb4([0x50,0x2d,0x32,0x35,0x36]),[_0x168fb4([0x78])]:_0x168fb4([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]),[_0x168fb4([0x79])]:_0x168fb4([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]),[_0x168fb4([0x61,0x6c,0x67])]:_0x168fb4([0x45,0x53,0x32,0x35,0x36])},_0x50c232=_0x3a5429[_0x168fb4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x168fb4([0x67,0x65,0x74])](_0x168fb4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4c5285(){let _0x8950dc,_0x1c289b=null,_0x10a74e=null;try{if(_0x50c232==_0x168fb4([0x47,0x50,0x4c]))return _0x168fb4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x8950dc=_0x1010d2(),!_0x8950dc)return _0x168fb4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x8950dc[_0x168fb4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x10a74e=_0x1222e3(_0x8950dc[_0x168fb4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x8950dc[_0x168fb4([0x6a,0x74,0x69])])),await _0x4fb8c9()?_0x5e3f5e()?_0x5ef6b4()?_0x168fb4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1c6e93()?(_0x8950dc[_0x168fb4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x168fb4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1c289b=_0x1bb0ce(_0x168fb4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x8950dc[_0x168fb4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x168fb4([0x74,0x72,0x69,0x61,0x6c])&&(_0x1c289b=_0x1bb0ce(_0x168fb4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1eb8b7()):_0x168fb4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x168fb4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x168fb4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x168fb4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5ef6b4(){const _0x2bb7a5=[_0x168fb4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x168fb4([0x74,0x72,0x69,0x61,0x6c])][_0x168fb4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8950dc[_0x168fb4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x28605e/0x3e8:0xe10*_0x1afe14;return _0x8950dc[_0x168fb4([0x65,0x78,0x70])]<_0x2bb7a5;}function _0x5e3f5e(){const _0x3cdfd0=_0x8950dc[_0x168fb4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3cdfd0&&(!!_0x3cdfd0[_0x168fb4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x168fb4([0x2a]))||!!_0x3cdfd0[_0x168fb4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x168fb4([0x55,0x50,0x4c,0x43])));}function _0x1c6e93(){const _0x2ab8ad=_0x8950dc[_0x168fb4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ab8ad||0x0==_0x2ab8ad[_0x168fb4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d4100}=new URL(window[_0x168fb4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2ab8ad[_0x168fb4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d4100))return!0x0;const _0x1a1772=_0x3d4100[_0x168fb4([0x73,0x70,0x6c,0x69,0x74])](_0x168fb4([0x2e]));return _0x2ab8ad[_0x168fb4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45955b=>_0x45955b[_0x168fb4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x168fb4([0x2a])))[_0x168fb4([0x6d,0x61,0x70])](_0x566745=>_0x566745[_0x168fb4([0x73,0x70,0x6c,0x69,0x74])](_0x168fb4([0x2e])))[_0x168fb4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5ad6d8=>_0x5ad6d8[_0x168fb4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1a1772[_0x168fb4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x168fb4([0x6d,0x61,0x70])](_0x16ceb8=>Array(_0x1a1772[_0x168fb4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x16ceb8[_0x168fb4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x168fb4([0x66,0x69,0x6c,0x6c])](_0x16ceb8[0x0]===_0x168fb4([0x2a])?_0x168fb4([0x2a]):'')[_0x168fb4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x16ceb8))[_0x168fb4([0x73,0x6f,0x6d,0x65])](_0x28734a=>_0x1a1772[_0x168fb4([0x65,0x76,0x65,0x72,0x79])]((_0x280fed,_0x59bf93)=>_0x28734a[_0x59bf93]===_0x280fed||_0x28734a[_0x59bf93]===_0x168fb4([0x2a])));}function _0x1eb8b7(){return _0x1c289b&&_0x10a74e?new window[(_0x168fb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x334b1a,_0x149777)=>{_0x1c289b[_0x168fb4([0x74,0x68,0x65,0x6e])](_0x334b1a,_0x149777),_0x10a74e[_0x168fb4([0x74,0x68,0x65,0x6e])](_0x12362a=>{_0x12362a!=_0x168fb4([0x56,0x61,0x6c,0x69,0x64])&&_0x334b1a(_0x12362a);},_0x149777);}):_0x1c289b||_0x10a74e||_0x168fb4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1222e3(_0x189b69,_0x425efd){return new window[(_0x168fb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56b522=>{if(_0x435116())return _0x56b522(_0x168fb4([0x56,0x61,0x6c,0x69,0x64]));_0x12543e(),_0x3a5429[_0x168fb4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x168fb4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x8713fb=!0x1;const _0x56a9d5=_0x31aef3();function _0x136389(_0x4f17de){return!!_0x4f17de&&(typeof _0x4f17de===_0x168fb4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4f17de===_0x168fb4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4f17de[_0x168fb4([0x74,0x68,0x65,0x6e])]===_0x168fb4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4f17de[_0x168fb4([0x63,0x61,0x74,0x63,0x68])]===_0x168fb4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x57ecd6(_0x3de8da){_0x58ad2d(_0x3de8da)[_0x168fb4([0x74,0x68,0x65,0x6e])](_0x3f8116=>{if(!_0x3f8116||_0x3f8116[_0x168fb4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x168fb4([0x6f,0x6b]))return _0x168fb4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5e6239(_0x446097(_0x56a9d5+_0x425efd))!=_0x3f8116[_0x168fb4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x168fb4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x168fb4([0x56,0x61,0x6c,0x69,0x64]);})[_0x168fb4([0x74,0x68,0x65,0x6e])](_0x20896e=>(_0x5e8701(),_0x20896e),()=>{const _0x206d18=_0x252fb3();return null==_0x206d18?(_0x5e8701(),_0x168fb4([0x56,0x61,0x6c,0x69,0x64])):_0x168fb4(_0x28605e-_0x206d18>(0x5edd3380^_0x280df6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x168fb4([0x74,0x68,0x65,0x6e])](_0x56b522)[_0x168fb4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x56b522(_0x168fb4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x325d67=0x7ae75900^_0x280df6;function _0x5e8701(){const _0x4d42be=_0x168fb4([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e6239(_0x446097(_0x189b69)),_0x3f5cfc=_0x5d7868(_0x5e6239(window[_0x168fb4([0x4d,0x61,0x74,0x68])][_0x168fb4([0x63,0x65,0x69,0x6c])](_0x28605e/_0x325d67)));window[_0x168fb4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x168fb4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d42be,_0x3f5cfc);}function _0x252fb3(){const _0x4dd2ea=_0x168fb4([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e6239(_0x446097(_0x189b69)),_0x433903=window[_0x168fb4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x168fb4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4dd2ea);return _0x433903?window[_0x168fb4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d7868(_0x433903),0x10)*_0x325d67:null;}function _0x58ad2d(_0x55a448){return new window[(_0x168fb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xdb6fca,_0x2584ab)=>{_0x55a448[_0x168fb4([0x74,0x68,0x65,0x6e])](_0xdb6fca,_0x2584ab),window[_0x168fb4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2584ab,0x7ad06340^_0x280df6);});}}_0x3a5429[_0x168fb4([0x6f,0x6e])](_0x168fb4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ca33a,_0x2bd692)=>{if(_0x2bd692[0x0]!=_0x189b69)return _0x56b522(_0x168fb4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2bd692[0x1]={..._0x2bd692[0x1],[_0x168fb4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x56a9d5};},{[_0x168fb4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x168fb4([0x68,0x69,0x67,0x68])}),_0x3a5429[_0x168fb4([0x6f,0x6e])](_0x168fb4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x23c34c=>{_0x136389(_0x23c34c[_0x168fb4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x8713fb=!0x0,_0x57ecd6(_0x23c34c[_0x168fb4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x168fb4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x168fb4([0x6c,0x6f,0x77])}),_0x349785[_0x168fb4([0x74,0x68,0x65,0x6e])](()=>{_0x8713fb||_0x56b522(_0x168fb4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x435116(){return _0x3a5429[_0x168fb4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x168fb4([0x76,0x69,0x65,0x77])][_0x168fb4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x168fb4([0x61,0x75,0x74,0x6f]);}function _0x12543e(){_0x3a5429[_0x168fb4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x168fb4([0x76,0x69,0x65,0x77])][_0x168fb4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x168fb4([0x61,0x75,0x74,0x6f]);}}function _0x1bb0ce(_0x4413b4){const _0x319281=[new window[(_0x168fb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4de790=>setTimeout(_0x4de790,0x7ad8894c^_0x280df6)),_0x349785[_0x168fb4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x168fb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54bee8=>{let _0x1cd5c3=0x0;_0x3a5429[_0x168fb4([0x6d,0x6f,0x64,0x65,0x6c])][_0x168fb4([0x6f,0x6e])](_0x168fb4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4cea8c,_0x2be2b3)=>{_0x2be2b3[0x0][_0x168fb4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1cd5c3++,_0x1cd5c3==(0x7ad1b678^_0x280df6)&&(_0x54bee8(),_0x4cea8c[_0x168fb4([0x6f,0x66,0x66])]());});}))];return window[_0x168fb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x168fb4([0x72,0x61,0x63,0x65])](_0x319281)[_0x168fb4([0x74,0x68,0x65,0x6e])](()=>_0x4413b4);}async function _0x2fc465(){await _0x349785,_0x3a5429[_0x168fb4([0x6d,0x6f,0x64,0x65,0x6c])][_0x168fb4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x452615,_0x3a5429[_0x168fb4([0x6d,0x6f,0x64,0x65,0x6c])][_0x168fb4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x452615,_0x3a5429[_0x168fb4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x168fb4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x228be5(_0x134734){const _0x38ff27=_0x933f48();_0x3a5429[_0x38ff27]=_0x168fb4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x134734,_0x134734!=_0x168fb4([0x56,0x61,0x6c,0x69,0x64])&&_0x2fc465();}function _0x933f48(){const _0x10f020=window[_0x168fb4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x168fb4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x168fb4([0x6e,0x6f,0x77])]())[_0x168fb4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x168fb4([0x2e]),'');let _0x3b3ec9=_0x168fb4([0x6a]);for(let _0x4ec164=0x0;_0x4ec164<_0x10f020[_0x168fb4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ec164+=0x2){let _0x4120a9=window[_0x168fb4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10f020[_0x168fb4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ec164,_0x4ec164+0x2));_0x4120a9>=_0x49d51f[_0x168fb4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4120a9-=_0x49d51f[_0x168fb4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3b3ec9+=_0x49d51f[_0x4120a9];}return _0x3b3ec9;}function _0x1010d2(){const _0x4783a0=_0x50c232[_0x168fb4([0x73,0x70,0x6c,0x69,0x74])](_0x168fb4([0x2e]));if(0x3!=_0x4783a0[_0x168fb4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3195bd(_0x4783a0[0x1]);function _0x3195bd(_0x2d1efc){const _0xb85e90=_0x405474(_0x2d1efc);return _0xb85e90&&_0x458558()?_0xb85e90:null;function _0x458558(){const _0x557266=_0xb85e90[_0x168fb4([0x6a,0x74,0x69])],_0x33ebfd=window[_0x168fb4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x557266[_0x168fb4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x557266[_0x168fb4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3a3da6={..._0xb85e90,[_0x168fb4([0x6a,0x74,0x69])]:_0x557266[_0x168fb4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x557266[_0x168fb4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3a3da6[_0x168fb4([0x76,0x63])],_0x446097(_0x3a3da6)==_0x33ebfd;}}}async function _0x4fb8c9(){let _0x1be8b6=!0x0;try{const _0x8b5f47=_0x50c232[_0x168fb4([0x73,0x70,0x6c,0x69,0x74])](_0x168fb4([0x2e])),[_0x5cdfd5,_0x3dfc5d,_0x3280cd]=_0x8b5f47;return _0x335579(_0x5cdfd5),await _0x45357e(_0x5cdfd5,_0x3dfc5d,_0x3280cd),_0x1be8b6;}catch{return!0x1;}function _0x335579(_0x5afdf9){const _0x279c87=_0x405474(_0x5afdf9);_0x279c87&&_0x279c87[_0x168fb4([0x61,0x6c,0x67])]==_0x168fb4([0x45,0x53,0x32,0x35,0x36])||(_0x1be8b6=!0x1);}async function _0x45357e(_0x4a6482,_0x503802,_0x570273){const _0x56145b=window[_0x168fb4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x168fb4([0x66,0x72,0x6f,0x6d])](_0xdb8569(_0x570273),_0x42383b=>_0x42383b[_0x168fb4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x37033f=new window[(_0x168fb4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x168fb4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4a6482+_0x168fb4([0x2e])+_0x503802),_0x2e7b2e=window[_0x168fb4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x168fb4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e7b2e)return;const _0x166ab8=await _0x2e7b2e[_0x168fb4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x168fb4([0x6a,0x77,0x6b]),_0x5a6abc,{[_0x168fb4([0x6e,0x61,0x6d,0x65])]:_0x168fb4([0x45,0x43,0x44,0x53,0x41]),[_0x168fb4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x168fb4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x168fb4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e7b2e[_0x168fb4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x168fb4([0x6e,0x61,0x6d,0x65])]:_0x168fb4([0x45,0x43,0x44,0x53,0x41]),[_0x168fb4([0x68,0x61,0x73,0x68])]:{[_0x168fb4([0x6e,0x61,0x6d,0x65])]:_0x168fb4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x166ab8,_0x56145b,_0x37033f)||(_0x1be8b6=!0x1);}}function _0x405474(_0x386db7){return _0x386db7[_0x168fb4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x168fb4([0x65,0x79]))?JSON[_0x168fb4([0x70,0x61,0x72,0x73,0x65])](_0xdb8569(_0x386db7)):null;}function _0xdb8569(_0x25000a){return window[_0x168fb4([0x61,0x74,0x6f,0x62])](_0x25000a[_0x168fb4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x168fb4([0x2b]))[_0x168fb4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x168fb4([0x2f])));}function _0x446097(_0x22bdc5){let _0x37733d=0x1505;function _0x53ee6a(_0x4c5ace){for(let _0x302e2e=0x0;_0x302e2e<_0x4c5ace[_0x168fb4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x302e2e++){const _0x108164=_0x4c5ace[_0x168fb4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x302e2e);_0x37733d=(_0x37733d<<0x5)+_0x37733d+_0x108164,_0x37733d&=_0x37733d;}}function _0x389f8a(_0x4e844c){Array[_0x168fb4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4e844c)?_0x4e844c[_0x168fb4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x389f8a):_0x4e844c&&typeof _0x4e844c==_0x168fb4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x168fb4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4e844c)[_0x168fb4([0x73,0x6f,0x72,0x74])]()[_0x168fb4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x37e907,_0x1028fb])=>{_0x53ee6a(_0x37e907),_0x389f8a(_0x1028fb);}):_0x53ee6a(window[_0x168fb4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4e844c));}return _0x389f8a(_0x22bdc5),_0x37733d>>>0x0;}function _0x5e6239(_0x577aac){return _0x577aac[_0x168fb4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x168fb4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x168fb4([0x30]));}function _0x5d7868(_0x1cf66b){return _0x1cf66b[_0x168fb4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x168fb4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x168fb4([0x6a,0x6f,0x69,0x6e])]('');}function _0x452615(){}function _0x168fb4(_0x30d1ba){return _0x30d1ba['map'](_0x42b851=>String['fromCharCode'](_0x42b851))['join']('');}_0x228be5(await _0x4c5285());}(this);}['_initSchema'](){const _0xb96ddb=this['editor']['model']['schema'];_0xb96ddb['isRegistered']('imageBlock')&&_0xb96ddb['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xb96ddb['isRegistered']('imageInline')&&_0xb96ddb['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x28fee6=this['editor'];_0x28fee6['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x28fee6['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4130e1=>_0x4130e1['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x414715=_0x28fee6['commands']['get']('replaceImageSource');_0x414715&&this['listenTo'](_0x414715,'cleanupImage',(_0x5c739f,[_0x24f4e0,_0x4153b4])=>{_0x24f4e0['removeAttribute']('uploadcareImageId',_0x4153b4);});}['_initConfig'](){const _0x3d8ef2=this['editor']['config']['get']('uploadcare.uploader')||{},_0x413f31=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x57394b(_0x229b46['document'],'uc-config',{..._0x3d8ef2,'pubkey':_0x413f31,'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']=_0x5c7c9e=>{if('closeMax'==_0x5c7c9e)return'#uc-icon-arrow-down';},_0x229b46['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x57394b(_0x229b46['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x229b46['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5d1217=this['editor']['commands']['get']('insertImage');_0x5d1217&&this['listenTo'](_0x5d1217,'execute',()=>{const _0x3fda6e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3fda6e&&_0x3fda6e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3fda6e);});});const _0x473bf2=this['editor']['commands']['get']('uploadcareImageReplace');_0x473bf2&&this['listenTo'](_0x473bf2,'execute',()=>{const _0x1c3ce8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1c3ce8&&_0x1c3ce8['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1c3ce8);});});}}class u extends _0x51d2c2{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x375c7c){super(_0x375c7c),_0x375c7c['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x121411['defineComponents'](_0x121411);}}class ta extends _0xc7085c{constructor(_0x15c9ff){super(_0x15c9ff);const t=_0x15c9ff['t'],_0x2b5429=this['bindTemplate'],_0x3f7644=new _0x26790e();_0x3f7644['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':[_0x3f7644,{'text':_0x2b5429['to']('imageUploadProgress',_0x78bbf7=>t('Loading\x20image...')+'\x20('+(_0x78bbf7||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 _0xc7085c{constructor(_0x41d031){super(_0x41d031);const t=_0x41d031['t'];this['set']('errorType',null);const _0x38cf11=new _0xb353b7(_0x41d031);_0x38cf11['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x38cf11['withText']=!0x0,_0x38cf11['class']='ck-button-action',_0x38cf11['on']('execute',()=>{this['fire']('retry');}),_0x38cf11['bind']('isVisible')['to'](this,'errorType',_0x169dc2=>'NotFound'!==_0x169dc2);const _0x4f1853=new at();_0x4f1853['content']=et,_0x4f1853['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x12b3cd=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':[_0x4f1853,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x12b3cd['to']('errorType',_0x245bd2=>t('NotFound'!==_0x245bd2?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x38cf11]},{'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 _0xc7085c{constructor(_0x231c2a,_0xe7577f){super(_0x231c2a);const _0x38b013=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xe7577f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x38b013['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x277343,_0x39ee0f,_0x42c098){super(_0x277343),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x277343),this['_errorView']=new rt(_0x277343),this['_editingView']=new tt(_0x277343,_0x42c098),this['_focusableView']=new _0xc7085c(_0x277343),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x39ee0f),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'],_0x4ec642=>{this['_addUploadcareImageEditorListeners'](_0x4ec642);});}),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'](_0x31e0fb,_0x74080a){const _0x3da75d='uc-cloud-image-editor',_0x3a991c=_0x31e0fb['querySelector'](_0x3da75d);if(_0x3a991c)return _0x74080a(_0x3a991c);const _0x55cd21=new MutationObserver(_0xa823cd=>{const _0xfaf558=_0xa823cd['filter'](_0x9acd36=>_0x9acd36['target']===_0x31e0fb&&_0x9acd36['addedNodes']['length']>0x0&&_0x9acd36['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3da75d);_0xfaf558['length']&&(_0x55cd21['disconnect'](),_0x74080a(_0xfaf558[0x0]['addedNodes'][0x0]));});_0x55cd21['observe'](_0x31e0fb,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3daf68){_0x3daf68['addEventListener']('apply',_0x5aa314=>{this['fire']('apply',{'imageSrc':_0x5aa314['detail']['cdnUrl']});}),_0x3daf68['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x4207ba(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3bd34c,_0x1d9cb9,_0x8fd551){super(),this['_editor']=_0x3bd34c,this['_dialog']=_0x1d9cb9,this['_imageElement']=_0x8fd551,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 _0x3711da=this['_imageElement'],_0x1ba996=_0x3711da['getAttribute']('uploadcareImageId'),_0x329ef7=_0x3711da['getAttribute']('src');if(_0x1ba996)await this['_loadImageInfo'](_0x1ba996,_0x329ef7);else{if(this['_imageCache']['has'](_0x329ef7)){const _0x349667=this['_imageCache']['get'](_0x329ef7);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x349667['url'],this['imageDimension']=_0x349667['dimension'],this['imageId']=_0x349667['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3d41b8}=this['_editor'],t=_0x3d41b8['t'],_0x34c5b1=new Z(_0x3d41b8,this['imageStatus'],this['_attributes']);_0x34c5b1['bind']('status')['to'](this,'imageStatus'),_0x34c5b1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x34c5b1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x34c5b1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x34c5b1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5168cc,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x34c5b1,'position':_0x1727e4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x34c5b1['focus']();},'onHide':()=>{_0x34c5b1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x24bd9d=>!F(_0x24bd9d,_0x34c5b1['element'])}});}['_loadImageInfo'](_0x270e28,_0x3cf27d){return C['getInfo'](_0x270e28,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4ea365=>{const {width:_0x278879,height:_0xb7d160}=_0x4ea365['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3cf27d,this['imageDimension']={'width':_0x278879,'height':_0xb7d160},this['imageId']=_0x270e28;})['catch'](_0x2ce9a0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2ce9a0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5bd98e,_0x1ca668){return this['_getImageAsFile'](_0x5bd98e)['then'](_0x30e4b2=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1ca668['signal'],'file':_0x30e4b2,'onProgress':_0x439d43=>{_0x439d43&&_0x439d43['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x439d43['value']));}}))['then'](_0x36c192=>{const {width:_0x3a6dac,height:_0x1f12d9}=_0x36c192['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x36c192['cdnUrl'],this['imageDimension']={'width':_0x3a6dac,'height':_0x1f12d9},this['imageId']=_0x36c192['uuid'],this['imageUploadProgress']=null;const _0x57b325=_0x5bd98e['getAttribute']('src');this['_imageCache']['set'](_0x57b325,{'id':_0x36c192['uuid'],'url':_0x36c192['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x26c362=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x26c362['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x111acf,_0x20a377){_0x111acf['on']('apply',(_0x1a281c,_0x32e2de)=>{this['_replaceImage'](_0x20a377,_0x32e2de['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x111acf['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x111acf['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3d8db2,_0x3e5a2c,_0x31a69d){const _0x18aa99=this['_editor'],{width:_0x2eab8a,height:_0x2833e7}=A(_0x3e5a2c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2c38c5,imageSources:_0xb2651e}=E(_0x3e5a2c,_0x2eab8a);_0x18aa99['model']['change'](_0x3e4654=>{if('$graveyard'===_0x3d8db2['root']['rootName']){_0x18aa99['execute']('insertImage',{'imageType':_0x3d8db2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3d8db2['getAttributes']()),'uploadcareImageId':_0x31a69d,'src':_0x2c38c5,'sources':_0xb2651e,'width':_0x2eab8a,'height':_0x2833e7}});const _0x99dbf7=_0x3d8db2['getChildren']();_0x3d8db2=_0x18aa99['model']['document']['selection']['getSelectedElement']();for(const _0x37753c of _0x99dbf7)_0x3e4654['append'](_0x3e4654['cloneElement'](_0x37753c),_0x3d8db2);}else _0x3e4654['setSelection'](_0x3d8db2,'on'),_0x18aa99['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3d8db2['getAttributes']()),'uploadcareImageId':_0x31a69d,'src':_0x2c38c5,'sources':_0xb2651e,'width':_0x2eab8a,'height':_0x2833e7},_0x3d8db2);_0x3e4654['setSelection'](_0x3d8db2,'on');});}async['_getImageAsFile'](_0x3e28af){const _0x2a715e=_0x229b46['window'],_0x325186=_0x229b46['document']['location']['href'],_0x31ef80=new _0x2a715e['URL'](_0x3e28af['getAttribute']('src'),_0x325186);if('data:'===_0x31ef80['protocol']){const _0x3f8342=_0x31ef80['href']['split'](','),_0xce3cc9=_0x3f8342[0x0]['match'](/:(.*?);/)[0x1],_0x1afe0a=_0xce3cc9['split']('/')[0x1],_0x42685f=_0x2a715e['atob'](_0x3f8342[_0x3f8342['length']-0x1]);let _0x14857b=_0x42685f['length'];const _0x170f61=new _0x2a715e['Uint8Array'](_0x14857b);for(;_0x14857b--;)_0x170f61[_0x14857b]=_0x42685f['charCodeAt'](_0x14857b);return new _0x2a715e['File']([_0x170f61],'image.'+_0x1afe0a,{'type':_0xce3cc9});}const _0x217887=_0x31ef80['href']['split']('/'),_0x246ea1=_0x217887[_0x217887['length']-0x1],_0x2155e1=_0x246ea1['split']('.')[0x1];return _0x2a715e['fetch'](_0x31ef80['href'])['then'](_0x50cb97=>_0x50cb97['clone']()['blob']())['then'](_0x2385c7=>new _0x2a715e['File']([_0x2385c7],_0x246ea1,{'type':'image/'+_0x2155e1}));}}class J extends _0x53a992{['imageEditController'];static get['requires'](){return[_0x54803f];}['_isEditable'];constructor(_0x5456bc){super(_0x5456bc),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5e1ce8){const _0x171eeb=V(_0x5e1ce8);return _0x315b75=>!(!_0x315b75||!_0x315b75['is']('element','imageBlock')&&!_0x315b75['is']('element','imageInline'))&&(!!_0x315b75['hasAttribute']('uploadcareImageId')||!!_0x315b75['hasAttribute']('src')&&_0x171eeb(_0x315b75['getAttribute']('src')));}(_0x5456bc['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1a2b70=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1a2b70);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x766096=this['editor']['model']['document']['selection']['getSelectedElement']();_0x766096&&(_0x766096['is']('element','imageBlock')||_0x766096['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x54803f),_0x766096),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x53a992{['refresh'](){const _0x595c2e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x595c2e&&(_0x595c2e['is']('element','imageBlock')||_0x595c2e['is']('element','imageInline')));}['execute'](_0x3e103c){const _0x26f79a=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3c4d4b=>{_0x3c4d4b['setAttributes'](_0x3e103c,_0x26f79a),_0x3c4d4b['removeAttribute']('srcset',_0x26f79a),_0x3c4d4b['removeAttribute']('sizes',_0x26f79a);});}}class g extends _0x51d2c2{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x16cbba,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4b11be}=this;_0x4b11be['commands']['add']('uploadcareImageEdit',new J(_0x4b11be)),_0x4b11be['commands']['add']('uploadcareImageReplace',new O(_0x4b11be));}}class j extends _0x51d2c2{['_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 _0x3b158b=this['editor'];_0x3b158b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3a83ba=>{const _0x33ef21=_0x3b158b['commands']['get']('uploadcareImageEdit'),_0x47aa1d=new _0xb353b7(_0x3a83ba),t=_0x3a83ba['t'];return _0x47aa1d['set']({'icon':_0x5168cc,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x47aa1d['bind']('isEnabled')['to'](_0x33ef21),_0x47aa1d['bind']('isOn')['to'](_0x33ef21,'isActive'),this['listenTo'](_0x47aa1d,'execute',()=>{_0x3b158b['execute']('uploadcareImageEdit'),_0x3b158b['editing']['view']['focus']();}),_0x47aa1d;}),this['_initConfig']();}['_initConfig'](){const _0x2908ae=_0x57394b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2908ae),this['listenTo'](this['editor'],'destroy',()=>{_0x2908ae['remove']();});}}class P extends _0x51d2c2{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 _0x4f6993,Command as _0x37bbf6}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4c3592,IconGooglePhotos as _0x9b1d9c,IconGoogleDrive as _0x3e1601,IconFacebook as _0x16ed0c,IconDropbox as _0x20639f,IconUploadcareLink as _0x1420fe,IconUploadcareImageUpload as _0x10951f,IconError as et,IconUploadcareImageEdit as _0x45765f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x508ac2,MenuBarMenuListItemButtonView as _0x31a188,View as _0x5989b2,FocusCycler as _0xa692c5,Dialog as _0x10ece7,DialogViewPosition as _0x2bcdf7,SpinnerView as _0x2546aa,IconView as at,Notification as _0x216ef8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2acb0f,DomEmitterMixin as _0x4a19e6,global as _0x4b0700,getAncestors as _0x5e9fad,ObservableMixin as _0x3ec337,createElement as _0x29643c,uid as _0x16e34d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2f81f9}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3a4a03,info as _0x2d9e4c}from'@uploadcare/upload-client';import*as _0x7c3878 from'@uploadcare/file-uploader';var o=function(_0x5de9f9){return _0x5de9f9['Local']='local',_0x5de9f9['URL']='url',_0x5de9f9['Dropbox']='dropbox',_0x5de9f9['GDrive']='gdrive',_0x5de9f9['Facebook']='facebook',_0x5de9f9['GPhotos']='gphotos',_0x5de9f9['OneDrive']='onedrive',_0x5de9f9;}({});function _(_0x45c1b5,_0x34867d,_0xb42b2b){const t=_0x45c1b5['t'],_0x60ed18=_0x45c1b5['t'];switch(_0x34867d){case o['Local']:return{'text':_0x60ed18('Insert'===_0xb42b2b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x60ed18('From\x20computer')};case o['URL']:return{'text':'Insert'===_0xb42b2b?_0x60ed18('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x60ed18('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0xb42b2b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0xb42b2b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0xb42b2b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0xb42b2b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0xb42b2b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x34867d;}}class e extends _0x4f6993{['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 _0x530975=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4e651f;for(const _0x2f449d in _0x530975){const _0x5d58c1=_0x2f449d,_0x580fc6=_0x530975[_0x5d58c1];if('uploadcareLicenseKeyValid'==_0x580fc6||'uploadcareLicenseKeyInvalid'==_0x580fc6||'uploadcareLicenseKeyExpired'==_0x580fc6||'uploadcareLicenseKeyDomainLimit'==_0x580fc6||'uploadcareLicenseKeyNotAllowed'==_0x580fc6||'uploadcareLicenseKeyEvaluationLimit'==_0x580fc6||'uploadcareLicenseKeyTrialLimit'==_0x580fc6||'uploadcareLicenseKeyUsageLimit'==_0x580fc6){delete _0x530975[_0x5d58c1],_0x4e651f=_0x580fc6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4e651f&&_0x530975['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4e651f&&_0x530975['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4e651f&&_0x530975['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4e651f&&_0x530975['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4e651f&&_0x530975['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4e651f&&_0x530975['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4e651f&&_0x530975['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x50732f}=this,_0x513f58=_0x50732f['commands']['get']('uploadcare');if(!_0x513f58)return;const _0x2f4f4f=this['_normalizeConfigSourceList'](_0x50732f['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1cc8e8,_0x16d6c8)=>{const _0x478d09=this['_getIntegrationKey'](_0x16d6c8['type']);return _0x1cc8e8[_0x478d09]||(_0x1cc8e8[_0x478d09]=[]),_0x1cc8e8[_0x478d09]['push'](_0x16d6c8),_0x1cc8e8;},{});_0x50732f['plugins']['has']('ImageInsertUI')&&_0x50732f['commands']['get']('uploadcare')&&Object['entries'](_0x2f4f4f)['forEach'](([_0x11f8fd,_0x367e52])=>{_0x50732f['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x11f8fd,'observable':()=>_0x513f58,'buttonViewCreator':()=>this['_createToolbarButton'](_0x367e52),'formViewCreator':()=>this['_createDropdownButtons'](_0x367e52),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x367e52),'override':'assetManager'!==_0x11f8fd});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x365274){const {locale:_0x11822d}=this['editor'];return _0x365274['map'](_0x3e21fd=>{const _0x4a5ea8=_(_0x11822d,_0x3e21fd,'Insert');switch(_0x3e21fd){case o['Local']:return{'icon':_0x10951f,'type':o['Local'],..._0x4a5ea8};case o['URL']:return{'icon':_0x1420fe,'type':o['URL'],..._0x4a5ea8};case o['Dropbox']:return{'icon':_0x20639f,'type':o['Dropbox'],..._0x4a5ea8};case o['Facebook']:return{'icon':_0x16ed0c,'type':o['Facebook'],..._0x4a5ea8};case o['GDrive']:return{'icon':_0x3e1601,'type':o['GDrive'],..._0x4a5ea8};case o['GPhotos']:return{'icon':_0x9b1d9c,'type':o['GPhotos'],..._0x4a5ea8};case o['OneDrive']:return{'icon':_0x4c3592,'type':o['OneDrive'],..._0x4a5ea8};}});}['_getIntegrationKey'](_0x57c02b){switch(_0x57c02b){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x195dc3,_0x21c794){const _0x3a0e6a=this['editor'],_0x1f206d=new _0x195dc3(_0x3a0e6a['locale']),_0x43500a=_0x3a0e6a['commands']['get']('uploadcare');return _0x1f206d['bind']('isEnabled')['to'](_0x43500a),_0x1f206d['on']('execute',()=>{_0x43500a['execute'](_0x21c794);}),_0x1f206d;}['_createToolbarButton'](_0x599d78){const {locale:_0x2ab4ac}=this['editor'],_0x1843d1=this['editor']['plugins']['get']('ImageInsertUI'),_0x55e953=_0x599d78[0x0],_0x5fccb2=this['_createButton'](_0x508ac2,_0x55e953['type']);return _0x5fccb2['icon']=_0x55e953['icon'],_0x5fccb2['bind']('label')['to'](_0x1843d1,'isImageSelected',_0x52672d=>_(_0x2ab4ac,_0x55e953['type'],_0x52672d?'Replace':'Insert')['text']),_0x5fccb2['tooltip']=!0x0,_0x5fccb2;}['_createDropdownButtons'](_0x12bc8a){const {locale:_0x583265}=this['editor'],_0x282a9e=this['editor']['plugins']['get']('ImageInsertUI');return _0x12bc8a['map'](_0x19e01d=>{const _0x4b6ba4=this['_createButton'](_0x508ac2,_0x19e01d['type']);return _0x4b6ba4['withText']=!0x0,_0x4b6ba4['icon']=_0x19e01d['icon'],_0x4b6ba4['bind']('label')['to'](_0x282a9e,'isImageSelected',_0x54e23c=>_(_0x583265,_0x19e01d['type'],_0x54e23c?'Replace':'Insert')['text']),_0x4b6ba4;});}['_createMenuBarButtons'](_0x12166d){return _0x12166d['map'](_0x5b0958=>{const _0x4fec69=this['_createButton'](_0x31a188,_0x5b0958['type']);return _0x4fec69['icon']=_0x5b0958['icon'],_0x4fec69['label']=_0x5b0958['shortText'],_0x4fec69;});}}class q extends _0x5989b2{['focusTracker'];['focusCycler'];constructor(_0x1f33c9){super(_0x1f33c9),this['focusTracker']=new _0x2acb0f(),this['focusCycler']=new _0xa692c5({'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(_0x5e479f){super(_0x5e479f),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(_0x44ed19,_0x11ce55){const _0x336803=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x35ea04=>_0x35ea04<=_0x11ce55)['map'](_0x5a7ec6=>_0x44ed19['replace'](/\/$/,'')+'/-/resize/'+_0x5a7ec6+'x/\x20'+_0x5a7ec6+'w');return{'imageFallbackUrl':_0x44ed19,'imageSources':[{'srcset':_0x336803['join'](',\x20'),'sizes':'(max-width:\x20'+_0x11ce55+'px)\x20100vw,\x20'+_0x11ce55+'px','type':'image/webp'}]};}function A(_0x566f06,_0x28c874,_0x36c5bf){const _0x2e0b39=_0x566f06['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2e0b39?parseInt(_0x2e0b39[0x1],0xa):_0x28c874,'height':_0x2e0b39?parseInt(_0x2e0b39[0x2],0xa):_0x36c5bf};}function m(_0x240c16,_0x23d314){const _0x8a0171=Object['create'](_0x4a19e6),_0x35529c=_0x240c16['plugins']['get']('ImageUtils'),_0x4644a7=_0x240c16['editing']['mapper']['toViewElement'](_0x23d314),_0xba3ee9=_0x35529c['findViewImgElement'](_0x4644a7),_0x22d3e1=_0x240c16['editing']['view']['domConverter']['viewToDom'](_0xba3ee9),_0x1a30bd=_0x23d314['getAttribute']('width'),_0x5c7dc5=_0x23d314['getAttribute']('height'),_0x444c5e='image-processing';_0x240c16['editing']['view']['change'](_0xdd4f18=>{_0xdd4f18['addClass'](_0x444c5e,_0x4644a7),_0xdd4f18['setStyle']('aspect-ratio',_0x1a30bd+'/'+_0x5c7dc5,_0xba3ee9);}),_0x8a0171['listenTo'](_0x22d3e1,'load',()=>{_0x8a0171['stopListening'](_0x22d3e1,'load'),_0x240c16['editing']['view']['change'](_0xdce53f=>{_0xdce53f['removeClass'](_0x444c5e,_0x4644a7),_0xdce53f['removeStyle']('aspect-ratio',_0xba3ee9);});});}function V(_0x12ec78){if(Array['isArray'](_0x12ec78)){const _0x23feb9=_0x12ec78['map'](V);return _0x5e3121=>_0x23feb9['some'](_0x1d2bb4=>_0x1d2bb4(_0x5e3121));}if('origin'==_0x12ec78){const _0x41c9f9=_0x4b0700['window']['location']['origin'];return _0x5d1ec3=>new URL(_0x5d1ec3,_0x4b0700['document']['baseURI'])['origin']==_0x41c9f9;}return'function'==typeof _0x12ec78?_0x12ec78:_0x12ec78 instanceof RegExp?_0xa40cf=>!(!_0xa40cf['match'](_0x12ec78)&&!_0xa40cf['replace'](/^https?:\/\//,'')['match'](_0x12ec78)):()=>!0x1;}function F(_0x2cc6cd,_0x1d09e9){return _0x5e9fad(_0x2cc6cd['target'])['includes'](_0x1d09e9);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x3ec337(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2daeaa,_0x809970,_0x194999){super(),this['_editor']=_0x2daeaa,this['_editing']=_0x809970,this['_dialog']=_0x2daeaa['plugins']['get'](_0x10ece7),this['_api']=_0x809970['ctxElement']['getAPI'](),this['_type']=_0x194999,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:_0x21fdb5,model:_0x55e3d0}=this['_editor'],_0x88ffe7=_0x55e3d0['document']['selection']['getSelectedElement'](),_0x375c34=_0x88ffe7&&(_0x88ffe7['is']('element','imageBlock')||_0x88ffe7['is']('element','imageInline'));this['_formView']=new S(_0x21fdb5),this['_dialog']['show']({'id':'uploadCare','icon':_0x10951f,'title':_(_0x21fdb5,this['_type'],_0x375c34?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2bcdf7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x31fd06=>!F(_0x31fd06,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1885c1}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x423729=>{const _0xb24a8b=_0x1885c1['length'];for(const _0x15d63a of _0x1885c1){const _0x27e313=_0x15d63a===_0x1885c1[_0xb24a8b-0x1],{cdnUrl:_0x38bab5,fileInfo:_0x367555}=_0x15d63a;if(!_0x38bab5||!_0x367555)continue;const {width:_0x5afe09,height:_0x5ba4af}=_0x367555['imageInfo'],_0x23b145=A(_0x38bab5,_0x5afe09,_0x5ba4af),_0x2dbfaf=E(_0x38bab5,_0x23b145['width']),_0x11ef02={'id':_0x367555['uuid'],'type':'image','attributes':{'imageDimension':_0x23b145,..._0x2dbfaf}};this['_insertAsset'](_0x11ef02,_0x27e313,_0x423729);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xa78bdd=>{'idle'===_0xa78bdd['detail']['status']&&!_0xa78bdd['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x47fb79,_0x3171cc,_0x3b46f2){const _0x5a275a=this['_editor']['model']['document']['selection'],_0x440148=_0x5a275a['getSelectedElement'](),_0x55ed55=!(!_0x440148||!_0x440148['is']('element','imageInline'));_0x3b46f2['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x47fb79,_0x55ed55),_0x3171cc||_0x3b46f2['setSelection'](_0x5a275a['getLastPosition']());}['_insertImage'](_0x31e7d8,_0x403e29){const _0x24ffe5=this['_editor'],{imageDimension:_0x502f38,imageFallbackUrl:_0x552e88,imageSources:_0x4d3295}=_0x31e7d8['attributes'];_0x24ffe5['execute']('insertImage',{'imageType':_0x403e29?'imageInline':null,'source':{'uploadcareImageId':_0x31e7d8['id'],'src':_0x552e88,'sources':_0x4d3295,..._0x502f38}});}}class n extends _0x37bbf6{['_editing'];['_controller']=null;static get['requires'](){return[_0x10ece7,i];}constructor(_0x59f7c3){super(_0x59f7c3),this['_editing']=_0x59f7c3['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x406a54){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x406a54);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x4516b2,publicKey:_0x20d59c,signal:_0x445238,onProgress:_0x2b6500}){return _0x3a4a03(_0x4516b2,{'publicKey':_0x20d59c,'store':'auto','signal':_0x445238,'onProgress':_0x2b6500});}static['getInfo'](_0x4d3cfe,_0x4e7979){return _0x2d9e4c(_0x4d3cfe,_0x4e7979);}}class p extends _0x4f6993{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2f81f9,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x54b97d=this['editor'];if(!!!_0x54b97d['config']['get']('uploadcare'))return;_0x54b97d['plugins']['get'](_0x2f81f9)['createUploadAdapter']=_0x10a020=>new x(_0x10a020,_0x54b97d),_0x54b97d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xa3609f,{imageElement:_0x30b4a3,data:_0x20a8de})=>{_0x54b97d['model']['change'](_0x2e47ad=>{_0x2e47ad['setAttribute']('uploadcareImageId',_0x20a8de['uploadcareImageId'],_0x30b4a3);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x1e8f0c,_0x284a10){this['loader']=_0x1e8f0c,this['editor']=_0x284a10,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3b1688=this['editor']['config']['get']('uploadcare.pubkey'),_0x447af1=await this['loader']['file'];return C['upload']({'file':_0x447af1,'publicKey':_0x3b1688,'signal':this['controller']['signal'],'onProgress':_0x226fa7=>{_0x226fa7&&_0x226fa7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x226fa7['value']);}})['then'](async _0x373d4f=>{const {imageFallbackUrl:_0x4ca86f,imageSources:_0x2d1d68}=E(_0x373d4f['cdnUrl'],_0x373d4f['imageInfo']['width']);return{'uploadcareImageId':_0x373d4f['uuid'],'default':_0x4ca86f,'sources':_0x2d1d68};})['catch'](()=>{const _0x21b68c=t('Cannot\x20upload\x20file:')+('\x20'+_0x447af1['name']+'.');return Promise['reject'](_0x21b68c);});}['abort'](){this['controller']['abort']();}}class i extends _0x4f6993{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x10ece7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x301926=this['editor'];_0x301926['commands']['add']('uploadcare',new n(_0x301926));}['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 _0x395118=_0x4b0700['document']['querySelector']('input[uploadcare-file-input]');_0x395118&&_0x395118['remove']();}),async function(_0x58fb6c){const _0x571283=_0x2e5f4f([0x73,0x79,0x31,0x75,0x74,0x76,0x30,0x6f,0x47,0x54,0x34,0x4e,0x51,0x4d,0x7a,0x37,0x69,0x67,0x70,0x53,0x42,0x6c,0x6a,0x50,0x77,0x43,0x6b,0x46,0x72,0x6e,0x5a,0x66,0x71,0x45,0x48,0x4b,0x56,0x62,0x44,0x41,0x4c,0x32,0x61,0x78,0x33,0x57,0x58,0x65,0x68,0x6d,0x4a,0x4f,0x38,0x55,0x35,0x36,0x49,0x63,0x59,0x39,0x52,0x64]),_0x4e7dac=0x4925373c,_0x2daa34=0x49225c44^_0x4e7dac,_0x4f5161=window[_0x2e5f4f([0x44,0x61,0x74,0x65])][_0x2e5f4f([0x6e,0x6f,0x77])](),_0x143905=_0x58fb6c[_0x2e5f4f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x39f534=new window[(_0x2e5f4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4789d5=>{_0x143905[_0x2e5f4f([0x6f,0x6e,0x63,0x65])](_0x2e5f4f([0x72,0x65,0x61,0x64,0x79]),_0x4789d5);}),_0x36c5af={[_0x2e5f4f([0x6b,0x74,0x79])]:_0x2e5f4f([0x45,0x43]),[_0x2e5f4f([0x75,0x73,0x65])]:_0x2e5f4f([0x73,0x69,0x67]),[_0x2e5f4f([0x63,0x72,0x76])]:_0x2e5f4f([0x50,0x2d,0x32,0x35,0x36]),[_0x2e5f4f([0x78])]:_0x2e5f4f([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]),[_0x2e5f4f([0x79])]:_0x2e5f4f([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]),[_0x2e5f4f([0x61,0x6c,0x67])]:_0x2e5f4f([0x45,0x53,0x32,0x35,0x36])},_0x5e95a8=_0x143905[_0x2e5f4f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2e5f4f([0x67,0x65,0x74])](_0x2e5f4f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x84eace(){let _0x27e1fc,_0x39d914=null,_0x650ff6=null;try{if(_0x5e95a8==_0x2e5f4f([0x47,0x50,0x4c]))return _0x2e5f4f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x27e1fc=_0x353486(),!_0x27e1fc)return _0x2e5f4f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x27e1fc[_0x2e5f4f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x650ff6=_0x4c0467(_0x27e1fc[_0x2e5f4f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x27e1fc[_0x2e5f4f([0x6a,0x74,0x69])])),await _0x387b25()?_0x307ec()?_0x2d6f0c()?_0x2e5f4f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2f5fa9()?(_0x27e1fc[_0x2e5f4f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e5f4f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x39d914=_0x1bc043(_0x2e5f4f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x27e1fc[_0x2e5f4f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e5f4f([0x74,0x72,0x69,0x61,0x6c])&&(_0x39d914=_0x1bc043(_0x2e5f4f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2d89fa()):_0x2e5f4f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2e5f4f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2e5f4f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2e5f4f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d6f0c(){const _0x5e058e=[_0x2e5f4f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2e5f4f([0x74,0x72,0x69,0x61,0x6c])][_0x2e5f4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27e1fc[_0x2e5f4f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4f5161/0x3e8:0xe10*_0x2daa34;return _0x27e1fc[_0x2e5f4f([0x65,0x78,0x70])]<_0x5e058e;}function _0x307ec(){const _0x4f8888=_0x27e1fc[_0x2e5f4f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4f8888&&(!!_0x4f8888[_0x2e5f4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e5f4f([0x2a]))||!!_0x4f8888[_0x2e5f4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e5f4f([0x55,0x50,0x4c,0x43])));}function _0x2f5fa9(){const _0x1c3a7f=_0x27e1fc[_0x2e5f4f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c3a7f||0x0==_0x1c3a7f[_0x2e5f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xda8462}=new URL(window[_0x2e5f4f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1c3a7f[_0x2e5f4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xda8462))return!0x0;const _0x4c0dee=_0xda8462[_0x2e5f4f([0x73,0x70,0x6c,0x69,0x74])](_0x2e5f4f([0x2e]));return _0x1c3a7f[_0x2e5f4f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3bb144=>_0x3bb144[_0x2e5f4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e5f4f([0x2a])))[_0x2e5f4f([0x6d,0x61,0x70])](_0x63af3a=>_0x63af3a[_0x2e5f4f([0x73,0x70,0x6c,0x69,0x74])](_0x2e5f4f([0x2e])))[_0x2e5f4f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x112b6d=>_0x112b6d[_0x2e5f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4c0dee[_0x2e5f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2e5f4f([0x6d,0x61,0x70])](_0x2725ee=>Array(_0x4c0dee[_0x2e5f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2725ee[_0x2e5f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2e5f4f([0x66,0x69,0x6c,0x6c])](_0x2725ee[0x0]===_0x2e5f4f([0x2a])?_0x2e5f4f([0x2a]):'')[_0x2e5f4f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2725ee))[_0x2e5f4f([0x73,0x6f,0x6d,0x65])](_0x3cdfe2=>_0x4c0dee[_0x2e5f4f([0x65,0x76,0x65,0x72,0x79])]((_0x182bad,_0x47a1e9)=>_0x3cdfe2[_0x47a1e9]===_0x182bad||_0x3cdfe2[_0x47a1e9]===_0x2e5f4f([0x2a])));}function _0x2d89fa(){return _0x39d914&&_0x650ff6?new window[(_0x2e5f4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x292af1,_0x457154)=>{_0x39d914[_0x2e5f4f([0x74,0x68,0x65,0x6e])](_0x292af1,_0x457154),_0x650ff6[_0x2e5f4f([0x74,0x68,0x65,0x6e])](_0x26053d=>{_0x26053d!=_0x2e5f4f([0x56,0x61,0x6c,0x69,0x64])&&_0x292af1(_0x26053d);},_0x457154);}):_0x39d914||_0x650ff6||_0x2e5f4f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c0467(_0x36e670,_0x5888e8){return new window[(_0x2e5f4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3531f0=>{if(_0x705828())return _0x3531f0(_0x2e5f4f([0x56,0x61,0x6c,0x69,0x64]));_0x2fb50a(),_0x143905[_0x2e5f4f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2e5f4f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1aadae=!0x1;const _0x52154f=_0x16e34d();function _0x2dc620(_0x3c16e5){return!!_0x3c16e5&&(typeof _0x3c16e5===_0x2e5f4f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c16e5===_0x2e5f4f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c16e5[_0x2e5f4f([0x74,0x68,0x65,0x6e])]===_0x2e5f4f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c16e5[_0x2e5f4f([0x63,0x61,0x74,0x63,0x68])]===_0x2e5f4f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2215f2(_0x39481b){_0x55ff2a(_0x39481b)[_0x2e5f4f([0x74,0x68,0x65,0x6e])](_0xb9422a=>{if(!_0xb9422a||_0xb9422a[_0x2e5f4f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2e5f4f([0x6f,0x6b]))return _0x2e5f4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x32d8c8(_0x2341db(_0x52154f+_0x5888e8))!=_0xb9422a[_0x2e5f4f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2e5f4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2e5f4f([0x56,0x61,0x6c,0x69,0x64]);})[_0x2e5f4f([0x74,0x68,0x65,0x6e])](_0x4c73e4=>(_0x1c665d(),_0x4c73e4),()=>{const _0x36d0b5=_0x5c5e24();return null==_0x36d0b5?(_0x1c665d(),_0x2e5f4f([0x56,0x61,0x6c,0x69,0x64])):_0x2e5f4f(_0x4f5161-_0x36d0b5>(0x6d29b33c^_0x4e7dac)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2e5f4f([0x74,0x68,0x65,0x6e])](_0x3531f0)[_0x2e5f4f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3531f0(_0x2e5f4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3bb032=0x4913d9bc^_0x4e7dac;function _0x1c665d(){const _0x3d982e=_0x2e5f4f([0x6c,0x6c,0x63,0x74,0x2d])+_0x32d8c8(_0x2341db(_0x36e670)),_0x4fe29a=_0x1a8db0(_0x32d8c8(window[_0x2e5f4f([0x4d,0x61,0x74,0x68])][_0x2e5f4f([0x63,0x65,0x69,0x6c])](_0x4f5161/_0x3bb032)));window[_0x2e5f4f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e5f4f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d982e,_0x4fe29a);}function _0x5c5e24(){const _0x1257f1=_0x2e5f4f([0x6c,0x6c,0x63,0x74,0x2d])+_0x32d8c8(_0x2341db(_0x36e670)),_0x147091=window[_0x2e5f4f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e5f4f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1257f1);return _0x147091?window[_0x2e5f4f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a8db0(_0x147091),0x10)*_0x3bb032:null;}function _0x55ff2a(_0x20e508){return new window[(_0x2e5f4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd49fbf,_0x5b4ed9)=>{_0x20e508[_0x2e5f4f([0x74,0x68,0x65,0x6e])](_0xd49fbf,_0x5b4ed9),window[_0x2e5f4f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5b4ed9,0x4924e3fc^_0x4e7dac);});}}_0x143905[_0x2e5f4f([0x6f,0x6e])](_0x2e5f4f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x127a7b,_0x4e8bbe)=>{if(_0x4e8bbe[0x0]!=_0x36e670)return _0x3531f0(_0x2e5f4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e8bbe[0x1]={..._0x4e8bbe[0x1],[_0x2e5f4f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x52154f};},{[_0x2e5f4f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e5f4f([0x68,0x69,0x67,0x68])}),_0x143905[_0x2e5f4f([0x6f,0x6e])](_0x2e5f4f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x411d2b=>{_0x2dc620(_0x411d2b[_0x2e5f4f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1aadae=!0x0,_0x2215f2(_0x411d2b[_0x2e5f4f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2e5f4f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e5f4f([0x6c,0x6f,0x77])}),_0x39f534[_0x2e5f4f([0x74,0x68,0x65,0x6e])](()=>{_0x1aadae||_0x3531f0(_0x2e5f4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x705828(){return _0x143905[_0x2e5f4f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e5f4f([0x76,0x69,0x65,0x77])][_0x2e5f4f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2e5f4f([0x61,0x75,0x74,0x6f]);}function _0x2fb50a(){_0x143905[_0x2e5f4f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e5f4f([0x76,0x69,0x65,0x77])][_0x2e5f4f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2e5f4f([0x61,0x75,0x74,0x6f]);}}function _0x1bc043(_0x19d406){const _0x489765=[new window[(_0x2e5f4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ce850=>setTimeout(_0x1ce850,0x492c09f0^_0x4e7dac)),_0x39f534[_0x2e5f4f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2e5f4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5968db=>{let _0x3cfa12=0x0;_0x143905[_0x2e5f4f([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e5f4f([0x6f,0x6e])](_0x2e5f4f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4795ea,_0xc175f0)=>{_0xc175f0[0x0][_0x2e5f4f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3cfa12++,_0x3cfa12==(0x492536c4^_0x4e7dac)&&(_0x5968db(),_0x4795ea[_0x2e5f4f([0x6f,0x66,0x66])]());});}))];return window[_0x2e5f4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2e5f4f([0x72,0x61,0x63,0x65])](_0x489765)[_0x2e5f4f([0x74,0x68,0x65,0x6e])](()=>_0x19d406);}async function _0x42f6dc(){await _0x39f534,_0x143905[_0x2e5f4f([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e5f4f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x48a63f,_0x143905[_0x2e5f4f([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e5f4f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x48a63f,_0x143905[_0x2e5f4f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2e5f4f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4f41d9(_0x2d5477){const _0x4b640f=_0x1daf3f();_0x143905[_0x4b640f]=_0x2e5f4f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2d5477,_0x2d5477!=_0x2e5f4f([0x56,0x61,0x6c,0x69,0x64])&&_0x42f6dc();}function _0x1daf3f(){const _0x2c3466=window[_0x2e5f4f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2e5f4f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2e5f4f([0x6e,0x6f,0x77])]())[_0x2e5f4f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2e5f4f([0x2e]),'');let _0x22b558=_0x2e5f4f([0x73]);for(let _0x50d943=0x0;_0x50d943<_0x2c3466[_0x2e5f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50d943+=0x2){let _0x360946=window[_0x2e5f4f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c3466[_0x2e5f4f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50d943,_0x50d943+0x2));_0x360946>=_0x571283[_0x2e5f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x360946-=_0x571283[_0x2e5f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x22b558+=_0x571283[_0x360946];}return _0x22b558;}function _0x353486(){const _0x378e28=_0x5e95a8[_0x2e5f4f([0x73,0x70,0x6c,0x69,0x74])](_0x2e5f4f([0x2e]));if(0x3!=_0x378e28[_0x2e5f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x487cb3(_0x378e28[0x1]);function _0x487cb3(_0x21898d){const _0x4843fd=_0x485ec5(_0x21898d);return _0x4843fd&&_0x5a58ba()?_0x4843fd:null;function _0x5a58ba(){const _0x493205=_0x4843fd[_0x2e5f4f([0x6a,0x74,0x69])],_0x4bbba6=window[_0x2e5f4f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x493205[_0x2e5f4f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x493205[_0x2e5f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5ce6d7={..._0x4843fd,[_0x2e5f4f([0x6a,0x74,0x69])]:_0x493205[_0x2e5f4f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x493205[_0x2e5f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5ce6d7[_0x2e5f4f([0x76,0x63])],_0x2341db(_0x5ce6d7)==_0x4bbba6;}}}async function _0x387b25(){let _0xf8f36d=!0x0;try{const _0x9cf1cf=_0x5e95a8[_0x2e5f4f([0x73,0x70,0x6c,0x69,0x74])](_0x2e5f4f([0x2e])),[_0x1cf14f,_0x49bd23,_0x297acf]=_0x9cf1cf;return _0x1ec12a(_0x1cf14f),await _0x3bfa64(_0x1cf14f,_0x49bd23,_0x297acf),_0xf8f36d;}catch{return!0x1;}function _0x1ec12a(_0x5233fe){const _0xb25852=_0x485ec5(_0x5233fe);_0xb25852&&_0xb25852[_0x2e5f4f([0x61,0x6c,0x67])]==_0x2e5f4f([0x45,0x53,0x32,0x35,0x36])||(_0xf8f36d=!0x1);}async function _0x3bfa64(_0x2033b6,_0x2484d4,_0x9305d1){const _0x3f8f18=window[_0x2e5f4f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2e5f4f([0x66,0x72,0x6f,0x6d])](_0x23fb3c(_0x9305d1),_0x56dcf5=>_0x56dcf5[_0x2e5f4f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x407065=new window[(_0x2e5f4f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2e5f4f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2033b6+_0x2e5f4f([0x2e])+_0x2484d4),_0x35a5f4=window[_0x2e5f4f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2e5f4f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x35a5f4)return;const _0x5d6fc1=await _0x35a5f4[_0x2e5f4f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2e5f4f([0x6a,0x77,0x6b]),_0x36c5af,{[_0x2e5f4f([0x6e,0x61,0x6d,0x65])]:_0x2e5f4f([0x45,0x43,0x44,0x53,0x41]),[_0x2e5f4f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2e5f4f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2e5f4f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x35a5f4[_0x2e5f4f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2e5f4f([0x6e,0x61,0x6d,0x65])]:_0x2e5f4f([0x45,0x43,0x44,0x53,0x41]),[_0x2e5f4f([0x68,0x61,0x73,0x68])]:{[_0x2e5f4f([0x6e,0x61,0x6d,0x65])]:_0x2e5f4f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d6fc1,_0x3f8f18,_0x407065)||(_0xf8f36d=!0x1);}}function _0x485ec5(_0x5b639f){return _0x5b639f[_0x2e5f4f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2e5f4f([0x65,0x79]))?JSON[_0x2e5f4f([0x70,0x61,0x72,0x73,0x65])](_0x23fb3c(_0x5b639f)):null;}function _0x23fb3c(_0x291d8c){return window[_0x2e5f4f([0x61,0x74,0x6f,0x62])](_0x291d8c[_0x2e5f4f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2e5f4f([0x2b]))[_0x2e5f4f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2e5f4f([0x2f])));}function _0x2341db(_0x17af85){let _0x29cdc2=0x1505;function _0x50b625(_0x52e505){for(let _0x1a067a=0x0;_0x1a067a<_0x52e505[_0x2e5f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a067a++){const _0x1e3797=_0x52e505[_0x2e5f4f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1a067a);_0x29cdc2=(_0x29cdc2<<0x5)+_0x29cdc2+_0x1e3797,_0x29cdc2&=_0x29cdc2;}}function _0x2eef75(_0x4a722c){Array[_0x2e5f4f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a722c)?_0x4a722c[_0x2e5f4f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2eef75):_0x4a722c&&typeof _0x4a722c==_0x2e5f4f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2e5f4f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a722c)[_0x2e5f4f([0x73,0x6f,0x72,0x74])]()[_0x2e5f4f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x480a5b,_0xa277eb])=>{_0x50b625(_0x480a5b),_0x2eef75(_0xa277eb);}):_0x50b625(window[_0x2e5f4f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a722c));}return _0x2eef75(_0x17af85),_0x29cdc2>>>0x0;}function _0x32d8c8(_0x526dc9){return _0x526dc9[_0x2e5f4f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2e5f4f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2e5f4f([0x30]));}function _0x1a8db0(_0x35fc2b){return _0x35fc2b[_0x2e5f4f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2e5f4f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2e5f4f([0x6a,0x6f,0x69,0x6e])]('');}function _0x48a63f(){}function _0x2e5f4f(_0x2f5c61){return _0x2f5c61['map'](_0x47d31f=>String['fromCharCode'](_0x47d31f))['join']('');}_0x4f41d9(await _0x84eace());}(this);}['_initSchema'](){const _0x4392eb=this['editor']['model']['schema'];_0x4392eb['isRegistered']('imageBlock')&&_0x4392eb['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4392eb['isRegistered']('imageInline')&&_0x4392eb['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2ff7b2=this['editor'];_0x2ff7b2['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2ff7b2['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x21325b=>_0x21325b['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xb80186=_0x2ff7b2['commands']['get']('replaceImageSource');_0xb80186&&this['listenTo'](_0xb80186,'cleanupImage',(_0x486b47,[_0x493a89,_0x579e58])=>{_0x493a89['removeAttribute']('uploadcareImageId',_0x579e58);});}['_initConfig'](){const _0x3bf6ec=this['editor']['config']['get']('uploadcare.uploader')||{},_0x34fbb8=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x29643c(_0x4b0700['document'],'uc-config',{..._0x3bf6ec,'pubkey':_0x34fbb8,'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']=_0x1fd7d8=>{if('closeMax'==_0x1fd7d8)return'#uc-icon-arrow-down';},_0x4b0700['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x29643c(_0x4b0700['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x4b0700['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3b9827=this['editor']['commands']['get']('insertImage');_0x3b9827&&this['listenTo'](_0x3b9827,'execute',()=>{const _0x273d50=this['editor']['model']['document']['selection']['getSelectedElement']();_0x273d50&&_0x273d50['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x273d50);});});const _0x4588ae=this['editor']['commands']['get']('uploadcareImageReplace');_0x4588ae&&this['listenTo'](_0x4588ae,'execute',()=>{const _0x240eaf=this['editor']['model']['document']['selection']['getSelectedElement']();_0x240eaf&&_0x240eaf['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x240eaf);});});}}class u extends _0x4f6993{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x488d6d){super(_0x488d6d),_0x488d6d['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x7c3878['defineComponents'](_0x7c3878);}}class ta extends _0x5989b2{constructor(_0x5be0c2){super(_0x5be0c2);const t=_0x5be0c2['t'],_0x59f844=this['bindTemplate'],_0xd9c165=new _0x2546aa();_0xd9c165['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':[_0xd9c165,{'text':_0x59f844['to']('imageUploadProgress',_0x4b2997=>t('Loading\x20image...')+'\x20('+(_0x4b2997||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 _0x5989b2{constructor(_0x33342b){super(_0x33342b);const t=_0x33342b['t'];this['set']('errorType',null);const _0x46997b=new _0x508ac2(_0x33342b);_0x46997b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x46997b['withText']=!0x0,_0x46997b['class']='ck-button-action',_0x46997b['on']('execute',()=>{this['fire']('retry');}),_0x46997b['bind']('isVisible')['to'](this,'errorType',_0x1878ae=>'NotFound'!==_0x1878ae);const _0x2a98f4=new at();_0x2a98f4['content']=et,_0x2a98f4['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x56d061=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':[_0x2a98f4,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x56d061['to']('errorType',_0x22fd04=>t('NotFound'!==_0x22fd04?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x46997b]},{'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 _0x5989b2{constructor(_0x36f9d2,_0x440481){super(_0x36f9d2);const _0x316832=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x440481,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x316832['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x40896c,_0x5108e4,_0x394e65){super(_0x40896c),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x40896c),this['_errorView']=new rt(_0x40896c),this['_editingView']=new tt(_0x40896c,_0x394e65),this['_focusableView']=new _0x5989b2(_0x40896c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5108e4),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'],_0x64fd83=>{this['_addUploadcareImageEditorListeners'](_0x64fd83);});}),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'](_0x1938b1,_0x53b93d){const _0xdfb224='uc-cloud-image-editor',_0x2c0df1=_0x1938b1['querySelector'](_0xdfb224);if(_0x2c0df1)return _0x53b93d(_0x2c0df1);const _0x535de5=new MutationObserver(_0x2be550=>{const _0x39ac8b=_0x2be550['filter'](_0x3f2a2d=>_0x3f2a2d['target']===_0x1938b1&&_0x3f2a2d['addedNodes']['length']>0x0&&_0x3f2a2d['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xdfb224);_0x39ac8b['length']&&(_0x535de5['disconnect'](),_0x53b93d(_0x39ac8b[0x0]['addedNodes'][0x0]));});_0x535de5['observe'](_0x1938b1,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2cea4c){_0x2cea4c['addEventListener']('apply',_0x389382=>{this['fire']('apply',{'imageSrc':_0x389382['detail']['cdnUrl']});}),_0x2cea4c['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x3ec337(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x485188,_0x13bc9c,_0x38e35e){super(),this['_editor']=_0x485188,this['_dialog']=_0x13bc9c,this['_imageElement']=_0x38e35e,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 _0x485e6f=this['_imageElement'],_0x1f3ad8=_0x485e6f['getAttribute']('uploadcareImageId'),_0xc6ed30=_0x485e6f['getAttribute']('src');if(_0x1f3ad8)await this['_loadImageInfo'](_0x1f3ad8,_0xc6ed30);else{if(this['_imageCache']['has'](_0xc6ed30)){const _0x4f3673=this['_imageCache']['get'](_0xc6ed30);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4f3673['url'],this['imageDimension']=_0x4f3673['dimension'],this['imageId']=_0x4f3673['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4cd50e}=this['_editor'],t=_0x4cd50e['t'],_0x4a944f=new Z(_0x4cd50e,this['imageStatus'],this['_attributes']);_0x4a944f['bind']('status')['to'](this,'imageStatus'),_0x4a944f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4a944f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4a944f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4a944f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x45765f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4a944f,'position':_0x2bcdf7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4a944f['focus']();},'onHide':()=>{_0x4a944f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x232da1=>!F(_0x232da1,_0x4a944f['element'])}});}['_loadImageInfo'](_0x4752fa,_0x659ca6){return C['getInfo'](_0x4752fa,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x11c7bf=>{const {width:_0x48df72,height:_0xf864a5}=_0x11c7bf['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x659ca6,this['imageDimension']={'width':_0x48df72,'height':_0xf864a5},this['imageId']=_0x4752fa;})['catch'](_0x21e9ae=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x21e9ae['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x570122,_0x26821f){return this['_getImageAsFile'](_0x570122)['then'](_0x56829a=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x26821f['signal'],'file':_0x56829a,'onProgress':_0x3c6736=>{_0x3c6736&&_0x3c6736['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3c6736['value']));}}))['then'](_0xe94883=>{const {width:_0x1a7b42,height:_0x378dae}=_0xe94883['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xe94883['cdnUrl'],this['imageDimension']={'width':_0x1a7b42,'height':_0x378dae},this['imageId']=_0xe94883['uuid'],this['imageUploadProgress']=null;const _0x5934a1=_0x570122['getAttribute']('src');this['_imageCache']['set'](_0x5934a1,{'id':_0xe94883['uuid'],'url':_0xe94883['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x449ece=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x449ece['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xe52ed2,_0x48b5e0){_0xe52ed2['on']('apply',(_0x1d6854,_0x27fc42)=>{this['_replaceImage'](_0x48b5e0,_0x27fc42['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xe52ed2['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xe52ed2['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x10f22e,_0x436bb0,_0xc73e1a){const _0x4203ca=this['_editor'],{width:_0x18ec4f,height:_0x3900a7}=A(_0x436bb0,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5a56ff,imageSources:_0x3948b9}=E(_0x436bb0,_0x18ec4f);_0x4203ca['model']['change'](_0x481395=>{if('$graveyard'===_0x10f22e['root']['rootName']){_0x4203ca['execute']('insertImage',{'imageType':_0x10f22e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x10f22e['getAttributes']()),'uploadcareImageId':_0xc73e1a,'src':_0x5a56ff,'sources':_0x3948b9,'width':_0x18ec4f,'height':_0x3900a7}});const _0x426a62=_0x10f22e['getChildren']();_0x10f22e=_0x4203ca['model']['document']['selection']['getSelectedElement']();for(const _0x4d64b2 of _0x426a62)_0x481395['append'](_0x481395['cloneElement'](_0x4d64b2),_0x10f22e);}else _0x481395['setSelection'](_0x10f22e,'on'),_0x4203ca['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x10f22e['getAttributes']()),'uploadcareImageId':_0xc73e1a,'src':_0x5a56ff,'sources':_0x3948b9,'width':_0x18ec4f,'height':_0x3900a7},_0x10f22e);_0x481395['setSelection'](_0x10f22e,'on');});}async['_getImageAsFile'](_0x1b635c){const _0x1c6ced=_0x4b0700['window'],_0x3295a9=_0x4b0700['document']['location']['href'],_0x45de61=new _0x1c6ced['URL'](_0x1b635c['getAttribute']('src'),_0x3295a9);if('data:'===_0x45de61['protocol']){const _0x1f881b=_0x45de61['href']['split'](','),_0x4e62bc=_0x1f881b[0x0]['match'](/:(.*?);/)[0x1],_0x361e3f=_0x4e62bc['split']('/')[0x1],_0x129f1b=_0x1c6ced['atob'](_0x1f881b[_0x1f881b['length']-0x1]);let _0x7eeb1c=_0x129f1b['length'];const _0x181f4=new _0x1c6ced['Uint8Array'](_0x7eeb1c);for(;_0x7eeb1c--;)_0x181f4[_0x7eeb1c]=_0x129f1b['charCodeAt'](_0x7eeb1c);return new _0x1c6ced['File']([_0x181f4],'image.'+_0x361e3f,{'type':_0x4e62bc});}const _0x7c7b04=_0x45de61['href']['split']('/'),_0x1dbcde=_0x7c7b04[_0x7c7b04['length']-0x1],_0x49cbdb=_0x1dbcde['split']('.')[0x1];return _0x1c6ced['fetch'](_0x45de61['href'])['then'](_0x1753b3=>_0x1753b3['clone']()['blob']())['then'](_0x422893=>new _0x1c6ced['File']([_0x422893],_0x1dbcde,{'type':'image/'+_0x49cbdb}));}}class J extends _0x37bbf6{['imageEditController'];static get['requires'](){return[_0x10ece7];}['_isEditable'];constructor(_0x766ea8){super(_0x766ea8),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1ebc3c){const _0x31b89f=V(_0x1ebc3c);return _0x3b5ff1=>!(!_0x3b5ff1||!_0x3b5ff1['is']('element','imageBlock')&&!_0x3b5ff1['is']('element','imageInline'))&&(!!_0x3b5ff1['hasAttribute']('uploadcareImageId')||!!_0x3b5ff1['hasAttribute']('src')&&_0x31b89f(_0x3b5ff1['getAttribute']('src')));}(_0x766ea8['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3add08=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3add08);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1954f9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1954f9&&(_0x1954f9['is']('element','imageBlock')||_0x1954f9['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x10ece7),_0x1954f9),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x37bbf6{['refresh'](){const _0x3eeaf5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3eeaf5&&(_0x3eeaf5['is']('element','imageBlock')||_0x3eeaf5['is']('element','imageInline')));}['execute'](_0x30ecd1){const _0x15293e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5d3aaf=>{_0x5d3aaf['setAttributes'](_0x30ecd1,_0x15293e),_0x5d3aaf['removeAttribute']('srcset',_0x15293e),_0x5d3aaf['removeAttribute']('sizes',_0x15293e);});}}class g extends _0x4f6993{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x216ef8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5625b0}=this;_0x5625b0['commands']['add']('uploadcareImageEdit',new J(_0x5625b0)),_0x5625b0['commands']['add']('uploadcareImageReplace',new O(_0x5625b0));}}class j extends _0x4f6993{['_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 _0x1dc883=this['editor'];_0x1dc883['ui']['componentFactory']['add']('uploadcareImageEdit',_0x496462=>{const _0x218100=_0x1dc883['commands']['get']('uploadcareImageEdit'),_0x307c98=new _0x508ac2(_0x496462),t=_0x496462['t'];return _0x307c98['set']({'icon':_0x45765f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x307c98['bind']('isEnabled')['to'](_0x218100),_0x307c98['bind']('isOn')['to'](_0x218100,'isActive'),this['listenTo'](_0x307c98,'execute',()=>{_0x1dc883['execute']('uploadcareImageEdit'),_0x1dc883['editing']['view']['focus']();}),_0x307c98;}),this['_initConfig']();}['_initConfig'](){const _0x4ae668=_0x29643c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4ae668),this['listenTo'](this['editor'],'destroy',()=>{_0x4ae668['remove']();});}}class P extends _0x4f6993{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.1-alpha.6",
3
+ "version": "45.2.1-alpha.8",
4
4
  "description": "Uploadcare feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,14 +23,14 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "45.2.1-alpha.6",
27
- "@ckeditor/ckeditor5-icons": "45.2.1-alpha.6",
28
- "@ckeditor/ckeditor5-image": "45.2.1-alpha.6",
29
- "@ckeditor/ckeditor5-theme-lark": "45.2.1-alpha.6",
30
- "@ckeditor/ckeditor5-ui": "45.2.1-alpha.6",
31
- "@ckeditor/ckeditor5-upload": "45.2.1-alpha.6",
32
- "@ckeditor/ckeditor5-utils": "45.2.1-alpha.6",
33
- "ckeditor5": "45.2.1-alpha.6",
26
+ "@ckeditor/ckeditor5-core": "45.2.1-alpha.8",
27
+ "@ckeditor/ckeditor5-icons": "45.2.1-alpha.8",
28
+ "@ckeditor/ckeditor5-image": "45.2.1-alpha.8",
29
+ "@ckeditor/ckeditor5-theme-lark": "45.2.1-alpha.8",
30
+ "@ckeditor/ckeditor5-ui": "45.2.1-alpha.8",
31
+ "@ckeditor/ckeditor5-upload": "45.2.1-alpha.8",
32
+ "@ckeditor/ckeditor5-utils": "45.2.1-alpha.8",
33
+ "ckeditor5": "45.2.1-alpha.8",
34
34
  "@uploadcare/file-uploader": "1.12.0",
35
35
  "@uploadcare/upload-client": "6.14.1"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1f27(_0x354dd3,_0x1a2613){const _0x2bae7f=_0x2bae();return _0x1f27=function(_0x1f27b3,_0x300e59){_0x1f27b3=_0x1f27b3-0xaa;let _0x4b38c2=_0x2bae7f[_0x1f27b3];return _0x4b38c2;},_0x1f27(_0x354dd3,_0x1a2613);}const _0x2f6e4d=_0x1f27;(function(_0xf460c4,_0x4e2f7e){const _0x5c908c=_0x1f27,_0x1c5d98=_0xf460c4();while(!![]){try{const _0x126b5e=-parseInt(_0x5c908c(0xee))/0x1*(parseInt(_0x5c908c(0xe2))/0x2)+-parseInt(_0x5c908c(0xd3))/0x3+parseInt(_0x5c908c(0xbf))/0x4+parseInt(_0x5c908c(0xfe))/0x5*(-parseInt(_0x5c908c(0xd1))/0x6)+parseInt(_0x5c908c(0xc2))/0x7*(-parseInt(_0x5c908c(0xb1))/0x8)+parseInt(_0x5c908c(0xe8))/0x9*(-parseInt(_0x5c908c(0xd4))/0xa)+parseInt(_0x5c908c(0xba))/0xb;if(_0x126b5e===_0x4e2f7e)break;else _0x1c5d98['push'](_0x1c5d98['shift']());}catch(_0x1e49e7){_0x1c5d98['push'](_0x1c5d98['shift']());}}}(_0x2bae,0x28064));import{Plugin as _0x4d9ed9}from'ckeditor5/src/core.js';import{Dialog as _0x3a3cc6}from'ckeditor5/src/ui.js';import{createElement as _0xb2bbb2,global as _0x3e022c,uid as _0x675505}from'ckeditor5/src/utils.js';import _0x303e81 from'./uploadcarecommand.js';import _0x5a503c from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x26b8d8}from'./utils/editingutils.js';function _0x2bae(){const _0x331d22=['cleanupImage','_ctxElement','requires','add','354rwYMwG','pluginName','619479shCfss','740fLQHYv','config','data-uc-image-id','map','elementToAttribute','uploadcare','_initImageProcessingIndicator','uploadcare.uploader','afterInit','getSelectedElement','model','UploadcareEditing','true','isOfficialPlugin','300332DoqIAB','_configElement','#uc-icon-arrow-down','attributeToAttribute','imageBlock','downcast','38052GbslOn','PictureEditing','selection','querySelector','uc-upload-ctx-provider','uploader','1cmBAyd','upcast','uploadcare.pubkey','extend','iconHrefResolver','init','configElement','fromCharCode','for','href','input[uploadcare-file-input]','_initCtx','appendChild','isPremiumPlugin','conversion','getAttribute','14435ydiUOE','isRegistered','uc-config','closeMax','body','\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','editing','commands','40rzmQur','once','execute','get','contentLanguage','render','removeAttribute','document','editor','9373804koYMcg','destroy','_initConversion','uploadcareImageReplace','join','674640OUqUAS','_initConfig','imageInline','23828ymIHGf','uploadcareImageId','view','schema','ctxElement','remove','_initSchema','listenTo','insertImage','locale','replaceImageSource'];_0x2bae=function(){return _0x331d22;};return _0x2bae();}export default class i extends _0x4d9ed9{[_0x2f6e4d(0xe3)]=null;[_0x2f6e4d(0xce)]=null;static get[_0x2f6e4d(0xd2)](){const _0x13d17a=_0x2f6e4d;return _0x13d17a(0xdf);}static get[_0x2f6e4d(0xcf)](){const _0x2528ef=_0x2f6e4d;return[_0x2528ef(0xe9),_0x5a503c,_0x3a3cc6];}static get[_0x2f6e4d(0xe1)](){return!0x0;}static get[_0x2f6e4d(0xfb)](){return!0x0;}get[_0x2f6e4d(0xf4)](){const _0x3e0bec=_0x2f6e4d;return this[_0x3e0bec(0xe3)];}get[_0x2f6e4d(0xc6)](){const _0x4ff0b9=_0x2f6e4d;return this[_0x4ff0b9(0xce)];}[_0x2f6e4d(0xf3)](){const _0x58cc9d=_0x2f6e4d,_0x6f4694=this[_0x58cc9d(0xb9)];_0x6f4694[_0x58cc9d(0xb0)][_0x58cc9d(0xd0)](_0x58cc9d(0xd9),new _0x303e81(_0x6f4694));}[_0x2f6e4d(0xdc)](){const _0x5df8ca=_0x2f6e4d;this[_0x5df8ca(0xc8)](),this[_0x5df8ca(0xbc)](),this[_0x5df8ca(0xc0)](),this[_0x5df8ca(0xf9)](),this[_0x5df8ca(0xda)](),this[_0x5df8ca(0xc9)](this[_0x5df8ca(0xb9)],_0x5df8ca(0xbb),()=>{const _0x30e376=_0x5df8ca;this[_0x30e376(0xe3)]&&(this[_0x30e376(0xe3)][_0x30e376(0xc7)](),this[_0x30e376(0xe3)]=null),this[_0x30e376(0xce)]&&(this[_0x30e376(0xce)][_0x30e376(0xc7)](),this[_0x30e376(0xce)]=null);const _0x1d4bb8=_0x3e022c[_0x30e376(0xb8)][_0x30e376(0xeb)](_0x30e376(0xf8));_0x1d4bb8&&_0x1d4bb8[_0x30e376(0xc7)]();}),async function(_0xa380c){const _0x1b17b8=_0x5e9123([0x6a,0x55,0x33,0x38,0x65,0x4a,0x5a,0x71,0x36,0x56,0x74,0x59,0x6f,0x35,0x4c,0x63,0x75,0x72,0x50,0x78,0x76,0x7a,0x49,0x30,0x47,0x68,0x32,0x6c,0x4d,0x43,0x62,0x46,0x79,0x45,0x41,0x39,0x57,0x61,0x53,0x51,0x6d,0x58,0x31,0x69,0x4b,0x66,0x6b,0x34,0x77,0x42,0x73,0x64,0x54,0x44,0x6e,0x37,0x52,0x70,0x4e,0x48,0x4f,0x67]),_0x91f569=0x7ad1b780,_0x304e85=0x7ad6dcc8^_0x91f569,_0x4a622e=window[_0x5e9123([0x44,0x61,0x74,0x65])][_0x5e9123([0x6e,0x6f,0x77])](),_0x40344e=_0xa380c[_0x5e9123([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x441a0e=new window[(_0x5e9123([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x575c80=>{_0x40344e[_0x5e9123([0x6f,0x6e,0x63,0x65])](_0x5e9123([0x72,0x65,0x61,0x64,0x79]),_0x575c80);}),_0x4185be={[_0x5e9123([0x6b,0x74,0x79])]:_0x5e9123([0x45,0x43]),[_0x5e9123([0x75,0x73,0x65])]:_0x5e9123([0x73,0x69,0x67]),[_0x5e9123([0x63,0x72,0x76])]:_0x5e9123([0x50,0x2d,0x32,0x35,0x36]),[_0x5e9123([0x78])]:_0x5e9123([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]),[_0x5e9123([0x79])]:_0x5e9123([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]),[_0x5e9123([0x61,0x6c,0x67])]:_0x5e9123([0x45,0x53,0x32,0x35,0x36])},_0xbf616e=_0x40344e[_0x5e9123([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5e9123([0x67,0x65,0x74])](_0x5e9123([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x451157(){let _0x7af330,_0x36d14a=null,_0x2f24cb=null;try{if(_0xbf616e==_0x5e9123([0x47,0x50,0x4c]))return _0x5e9123([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x7af330=_0x629d1e(),!_0x7af330)return _0x5e9123([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x7af330[_0x5e9123([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f24cb=_0x4929af(_0x7af330[_0x5e9123([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x7af330[_0x5e9123([0x6a,0x74,0x69])])),await _0x5d5b76()?_0x3aa9e0()?_0x1d5db()?_0x5e9123([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3b741c()?(_0x7af330[_0x5e9123([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e9123([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x36d14a=_0x4094ee(_0x5e9123([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x7af330[_0x5e9123([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e9123([0x74,0x72,0x69,0x61,0x6c])&&(_0x36d14a=_0x4094ee(_0x5e9123([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4f8c9c()):_0x5e9123([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5e9123([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5e9123([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5e9123([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d5db(){const _0x4a5cff=[_0x5e9123([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5e9123([0x74,0x72,0x69,0x61,0x6c])][_0x5e9123([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7af330[_0x5e9123([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a622e/0x3e8:0xe10*_0x304e85;return _0x7af330[_0x5e9123([0x65,0x78,0x70])]<_0x4a5cff;}function _0x3aa9e0(){const _0x579fd9=_0x7af330[_0x5e9123([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x579fd9&&(!!_0x579fd9[_0x5e9123([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e9123([0x2a]))||!!_0x579fd9[_0x5e9123([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e9123([0x55,0x50,0x4c,0x43])));}function _0x3b741c(){const _0x219360=_0x1f27,_0x321caf=_0x7af330[_0x5e9123([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x321caf||0x0==_0x321caf[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x495e6b}=new URL(window[_0x5e9123([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x219360(0xf7)]);if(_0x321caf[_0x5e9123([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x495e6b))return!0x0;const _0x24dc63=_0x495e6b[_0x5e9123([0x73,0x70,0x6c,0x69,0x74])](_0x5e9123([0x2e]));return _0x321caf[_0x5e9123([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x256cd2=>_0x256cd2[_0x5e9123([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e9123([0x2a])))[_0x5e9123([0x6d,0x61,0x70])](_0x926214=>_0x926214[_0x5e9123([0x73,0x70,0x6c,0x69,0x74])](_0x5e9123([0x2e])))[_0x5e9123([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x208807=>_0x208807[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x24dc63[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e9123([0x6d,0x61,0x70])](_0x555939=>Array(_0x24dc63[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x555939[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e9123([0x66,0x69,0x6c,0x6c])](_0x555939[0x0]===_0x5e9123([0x2a])?_0x5e9123([0x2a]):'')[_0x5e9123([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x555939))[_0x5e9123([0x73,0x6f,0x6d,0x65])](_0x59efc0=>_0x24dc63[_0x5e9123([0x65,0x76,0x65,0x72,0x79])]((_0x134187,_0x2d3ca5)=>_0x59efc0[_0x2d3ca5]===_0x134187||_0x59efc0[_0x2d3ca5]===_0x5e9123([0x2a])));}function _0x4f8c9c(){return _0x36d14a&&_0x2f24cb?new window[(_0x5e9123([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x424959,_0x485bfd)=>{_0x36d14a[_0x5e9123([0x74,0x68,0x65,0x6e])](_0x424959,_0x485bfd),_0x2f24cb[_0x5e9123([0x74,0x68,0x65,0x6e])](_0x326d76=>{_0x326d76!=_0x5e9123([0x56,0x61,0x6c,0x69,0x64])&&_0x424959(_0x326d76);},_0x485bfd);}):_0x36d14a||_0x2f24cb||_0x5e9123([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4929af(_0x56e841,_0x329757){return new window[(_0x5e9123([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dfbad=>{if(_0x15fd63())return _0x2dfbad(_0x5e9123([0x56,0x61,0x6c,0x69,0x64]));_0xbd893d(),_0x40344e[_0x5e9123([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5e9123([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x291cbb=!0x1;const _0x565ae0=_0x675505();function _0x51089f(_0x220f91){return!!_0x220f91&&(typeof _0x220f91===_0x5e9123([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x220f91===_0x5e9123([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x220f91[_0x5e9123([0x74,0x68,0x65,0x6e])]===_0x5e9123([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x220f91[_0x5e9123([0x63,0x61,0x74,0x63,0x68])]===_0x5e9123([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1d7356(_0x2ae55b){_0x25786c(_0x2ae55b)[_0x5e9123([0x74,0x68,0x65,0x6e])](_0x5982c1=>{if(!_0x5982c1||_0x5982c1[_0x5e9123([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5e9123([0x6f,0x6b]))return _0x5e9123([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x43f39c(_0x33aa0e(_0x565ae0+_0x329757))!=_0x5982c1[_0x5e9123([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5e9123([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5e9123([0x56,0x61,0x6c,0x69,0x64]);})[_0x5e9123([0x74,0x68,0x65,0x6e])](_0x57d9c8=>(_0x85901a(),_0x57d9c8),()=>{const _0x3d7e96=_0x55c242();return null==_0x3d7e96?(_0x85901a(),_0x5e9123([0x56,0x61,0x6c,0x69,0x64])):_0x5e9123(_0x4a622e-_0x3d7e96>(0x5edd3380^_0x91f569)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5e9123([0x74,0x68,0x65,0x6e])](_0x2dfbad)[_0x5e9123([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2dfbad(_0x5e9123([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x42e59e=0x7ae75900^_0x91f569;function _0x85901a(){const _0x46a48c=_0x5e9123([0x6c,0x6c,0x63,0x74,0x2d])+_0x43f39c(_0x33aa0e(_0x56e841)),_0x1253e1=_0x478388(_0x43f39c(window[_0x5e9123([0x4d,0x61,0x74,0x68])][_0x5e9123([0x63,0x65,0x69,0x6c])](_0x4a622e/_0x42e59e)));window[_0x5e9123([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e9123([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46a48c,_0x1253e1);}function _0x55c242(){const _0x11cc94=_0x5e9123([0x6c,0x6c,0x63,0x74,0x2d])+_0x43f39c(_0x33aa0e(_0x56e841)),_0x33af46=window[_0x5e9123([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e9123([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11cc94);return _0x33af46?window[_0x5e9123([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x478388(_0x33af46),0x10)*_0x42e59e:null;}function _0x25786c(_0x197000){return new window[(_0x5e9123([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14af0b,_0x84a0cc)=>{_0x197000[_0x5e9123([0x74,0x68,0x65,0x6e])](_0x14af0b,_0x84a0cc),window[_0x5e9123([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x84a0cc,0x7ad06340^_0x91f569);});}}_0x40344e[_0x5e9123([0x6f,0x6e])](_0x5e9123([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x191e80,_0x46d650)=>{if(_0x46d650[0x0]!=_0x56e841)return _0x2dfbad(_0x5e9123([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x46d650[0x1]={..._0x46d650[0x1],[_0x5e9123([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x565ae0};},{[_0x5e9123([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e9123([0x68,0x69,0x67,0x68])}),_0x40344e[_0x5e9123([0x6f,0x6e])](_0x5e9123([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x56dfd2=>{_0x51089f(_0x56dfd2[_0x5e9123([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x291cbb=!0x0,_0x1d7356(_0x56dfd2[_0x5e9123([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5e9123([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e9123([0x6c,0x6f,0x77])}),_0x441a0e[_0x5e9123([0x74,0x68,0x65,0x6e])](()=>{_0x291cbb||_0x2dfbad(_0x5e9123([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x15fd63(){return _0x40344e[_0x5e9123([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e9123([0x76,0x69,0x65,0x77])][_0x5e9123([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5e9123([0x61,0x75,0x74,0x6f]);}function _0xbd893d(){_0x40344e[_0x5e9123([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e9123([0x76,0x69,0x65,0x77])][_0x5e9123([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e9123([0x61,0x75,0x74,0x6f]);}}function _0x4094ee(_0x5d88b3){const _0x446321=[new window[(_0x5e9123([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8767d0=>setTimeout(_0x8767d0,0x7ad8894c^_0x91f569)),_0x441a0e[_0x5e9123([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5e9123([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x458bc2=>{let _0x19b269=0x0;_0x40344e[_0x5e9123([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e9123([0x6f,0x6e])](_0x5e9123([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x38c06d,_0x66ca50)=>{_0x66ca50[0x0][_0x5e9123([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x19b269++,_0x19b269==(0x7ad1b678^_0x91f569)&&(_0x458bc2(),_0x38c06d[_0x5e9123([0x6f,0x66,0x66])]());});}))];return window[_0x5e9123([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e9123([0x72,0x61,0x63,0x65])](_0x446321)[_0x5e9123([0x74,0x68,0x65,0x6e])](()=>_0x5d88b3);}async function _0xde403c(){await _0x441a0e,_0x40344e[_0x5e9123([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e9123([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4367e5,_0x40344e[_0x5e9123([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e9123([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4367e5,_0x40344e[_0x5e9123([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5e9123([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c6f21(_0xb501c4){const _0x20b4b9=_0x7c183a();_0x40344e[_0x20b4b9]=_0x5e9123([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xb501c4,_0xb501c4!=_0x5e9123([0x56,0x61,0x6c,0x69,0x64])&&_0xde403c();}function _0x7c183a(){const _0x588928=window[_0x5e9123([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5e9123([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5e9123([0x6e,0x6f,0x77])]())[_0x5e9123([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5e9123([0x2e]),'');let _0xf0a9ce=_0x5e9123([0x6a]);for(let _0x42fa01=0x0;_0x42fa01<_0x588928[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42fa01+=0x2){let _0x5411e9=window[_0x5e9123([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x588928[_0x5e9123([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42fa01,_0x42fa01+0x2));_0x5411e9>=_0x1b17b8[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5411e9-=_0x1b17b8[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf0a9ce+=_0x1b17b8[_0x5411e9];}return _0xf0a9ce;}function _0x629d1e(){const _0x295733=_0xbf616e[_0x5e9123([0x73,0x70,0x6c,0x69,0x74])](_0x5e9123([0x2e]));if(0x3!=_0x295733[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x337059(_0x295733[0x1]);function _0x337059(_0x58982d){const _0x2a4c56=_0x512e87(_0x58982d);return _0x2a4c56&&_0x735e92()?_0x2a4c56:null;function _0x735e92(){const _0x53c44d=_0x2a4c56[_0x5e9123([0x6a,0x74,0x69])],_0x3484cf=window[_0x5e9123([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53c44d[_0x5e9123([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53c44d[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x22e8fd={..._0x2a4c56,[_0x5e9123([0x6a,0x74,0x69])]:_0x53c44d[_0x5e9123([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53c44d[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x22e8fd[_0x5e9123([0x76,0x63])],_0x33aa0e(_0x22e8fd)==_0x3484cf;}}}async function _0x5d5b76(){let _0x17b8f9=!0x0;try{const _0x48749f=_0xbf616e[_0x5e9123([0x73,0x70,0x6c,0x69,0x74])](_0x5e9123([0x2e])),[_0x4fa5c7,_0x5c4c0,_0x21e2fc]=_0x48749f;return _0x29b594(_0x4fa5c7),await _0x1612bf(_0x4fa5c7,_0x5c4c0,_0x21e2fc),_0x17b8f9;}catch{return!0x1;}function _0x29b594(_0x1fa31b){const _0x4d7d0e=_0x512e87(_0x1fa31b);_0x4d7d0e&&_0x4d7d0e[_0x5e9123([0x61,0x6c,0x67])]==_0x5e9123([0x45,0x53,0x32,0x35,0x36])||(_0x17b8f9=!0x1);}async function _0x1612bf(_0x2bbfc2,_0x1d8504,_0xafd721){const _0x43f37d=window[_0x5e9123([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5e9123([0x66,0x72,0x6f,0x6d])](_0x2094a8(_0xafd721),_0x3f8b51=>_0x3f8b51[_0x5e9123([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1975fe=new window[(_0x5e9123([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5e9123([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2bbfc2+_0x5e9123([0x2e])+_0x1d8504),_0x445a7d=window[_0x5e9123([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5e9123([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x445a7d)return;const _0x1d9d3a=await _0x445a7d[_0x5e9123([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5e9123([0x6a,0x77,0x6b]),_0x4185be,{[_0x5e9123([0x6e,0x61,0x6d,0x65])]:_0x5e9123([0x45,0x43,0x44,0x53,0x41]),[_0x5e9123([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5e9123([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5e9123([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x445a7d[_0x5e9123([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5e9123([0x6e,0x61,0x6d,0x65])]:_0x5e9123([0x45,0x43,0x44,0x53,0x41]),[_0x5e9123([0x68,0x61,0x73,0x68])]:{[_0x5e9123([0x6e,0x61,0x6d,0x65])]:_0x5e9123([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d9d3a,_0x43f37d,_0x1975fe)||(_0x17b8f9=!0x1);}}function _0x512e87(_0xe303cc){return _0xe303cc[_0x5e9123([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5e9123([0x65,0x79]))?JSON[_0x5e9123([0x70,0x61,0x72,0x73,0x65])](_0x2094a8(_0xe303cc)):null;}function _0x2094a8(_0xfc00b3){return window[_0x5e9123([0x61,0x74,0x6f,0x62])](_0xfc00b3[_0x5e9123([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5e9123([0x2b]))[_0x5e9123([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5e9123([0x2f])));}function _0x33aa0e(_0x3dc10f){let _0x421fe0=0x1505;function _0x13be70(_0x3f9d0f){for(let _0x4ff5a6=0x0;_0x4ff5a6<_0x3f9d0f[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ff5a6++){const _0xf648ec=_0x3f9d0f[_0x5e9123([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ff5a6);_0x421fe0=(_0x421fe0<<0x5)+_0x421fe0+_0xf648ec,_0x421fe0&=_0x421fe0;}}function _0x486590(_0x31b681){Array[_0x5e9123([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x31b681)?_0x31b681[_0x5e9123([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x486590):_0x31b681&&typeof _0x31b681==_0x5e9123([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5e9123([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x31b681)[_0x5e9123([0x73,0x6f,0x72,0x74])]()[_0x5e9123([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5c9606,_0x3d8ff9])=>{_0x13be70(_0x5c9606),_0x486590(_0x3d8ff9);}):_0x13be70(window[_0x5e9123([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x31b681));}return _0x486590(_0x3dc10f),_0x421fe0>>>0x0;}function _0x43f39c(_0xc8dfa4){return _0xc8dfa4[_0x5e9123([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5e9123([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5e9123([0x30]));}function _0x478388(_0x146b3f){return _0x146b3f[_0x5e9123([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5e9123([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5e9123([0x6a,0x6f,0x69,0x6e])]('');}function _0x4367e5(){}function _0x5e9123(_0x136023){const _0x37a218=_0x1f27;return _0x136023[_0x37a218(0xd7)](_0x36743d=>String[_0x37a218(0xf5)](_0x36743d))[_0x37a218(0xbe)]('');}_0x3c6f21(await _0x451157());}(this);}[_0x2f6e4d(0xc8)](){const _0x2ac653=_0x2f6e4d,_0x345a64=this[_0x2ac653(0xb9)][_0x2ac653(0xde)][_0x2ac653(0xc5)];_0x345a64[_0x2ac653(0xaa)](_0x2ac653(0xe6))&&_0x345a64[_0x2ac653(0xf1)](_0x2ac653(0xe6),{'allowAttributes':[_0x2ac653(0xc3)]}),_0x345a64[_0x2ac653(0xaa)](_0x2ac653(0xc1))&&_0x345a64[_0x2ac653(0xf1)](_0x2ac653(0xc1),{'allowAttributes':[_0x2ac653(0xc3)]});}[_0x2f6e4d(0xbc)](){const _0x1a852d=_0x2f6e4d,_0x1ad3ba=this[_0x1a852d(0xb9)];_0x1ad3ba[_0x1a852d(0xfc)][_0x1a852d(0xf6)](_0x1a852d(0xe7))[_0x1a852d(0xe5)]({'model':_0x1a852d(0xc3),'view':_0x1a852d(0xd6)}),_0x1ad3ba[_0x1a852d(0xfc)][_0x1a852d(0xf6)](_0x1a852d(0xef))[_0x1a852d(0xd8)]({'model':{'key':_0x1a852d(0xc3),'value':_0x1aed6c=>_0x1aed6c[_0x1a852d(0xfd)](_0x1a852d(0xd6))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x140271=_0x1ad3ba[_0x1a852d(0xb0)][_0x1a852d(0xb4)](_0x1a852d(0xcc));_0x140271&&this[_0x1a852d(0xc9)](_0x140271,_0x1a852d(0xcd),(_0x87ca19,[_0x47b82b,_0x4b27c1])=>{const _0x5b0f53=_0x1a852d;_0x47b82b[_0x5b0f53(0xb7)](_0x5b0f53(0xc3),_0x4b27c1);});}[_0x2f6e4d(0xc0)](){const _0x272b59=_0x2f6e4d,_0x5b86bb=this[_0x272b59(0xb9)][_0x272b59(0xd5)][_0x272b59(0xb4)](_0x272b59(0xdb))||{},_0x24bdf8=this[_0x272b59(0xb9)][_0x272b59(0xd5)][_0x272b59(0xb4)](_0x272b59(0xf0))||'';this[_0x272b59(0xe3)]=_0xb2bbb2(_0x3e022c[_0x272b59(0xb8)],_0x272b59(0xab),{..._0x5b86bb,'pubkey':_0x24bdf8,'ctx-name':_0x272b59(0xed),'sourceList':'','imgOnly':_0x272b59(0xe0),'removeCopyright':_0x272b59(0xe0),'localeName':this[_0x272b59(0xb9)][_0x272b59(0xcb)][_0x272b59(0xb5)],'externalSourcesEmbedCss':_0x272b59(0xae)}),this[_0x272b59(0xe3)][_0x272b59(0xf2)]=_0x1f27bb=>{const _0x29ac8f=_0x272b59;if(_0x29ac8f(0xac)==_0x1f27bb)return _0x29ac8f(0xe4);},_0x3e022c[_0x272b59(0xb8)][_0x272b59(0xad)][_0x272b59(0xfa)](this[_0x272b59(0xe3)]);}[_0x2f6e4d(0xf9)](){const _0x33af14=_0x2f6e4d;this[_0x33af14(0xce)]=_0xb2bbb2(_0x3e022c[_0x33af14(0xb8)],_0x33af14(0xec),{'ctx-name':_0x33af14(0xed)}),_0x3e022c[_0x33af14(0xb8)][_0x33af14(0xad)][_0x33af14(0xfa)](this[_0x33af14(0xce)]);}[_0x2f6e4d(0xda)](){const _0x1f1a55=_0x2f6e4d,_0x53a45d=this[_0x1f1a55(0xb9)][_0x1f1a55(0xb0)][_0x1f1a55(0xb4)](_0x1f1a55(0xca));_0x53a45d&&this[_0x1f1a55(0xc9)](_0x53a45d,_0x1f1a55(0xb3),()=>{const _0x486d12=_0x1f1a55,_0x4d9bc3=this[_0x486d12(0xb9)][_0x486d12(0xde)][_0x486d12(0xb8)][_0x486d12(0xea)][_0x486d12(0xdd)]();_0x4d9bc3&&_0x4d9bc3[_0x486d12(0xfd)](_0x486d12(0xc3))&&this[_0x486d12(0xb9)][_0x486d12(0xaf)][_0x486d12(0xc4)][_0x486d12(0xb2)](_0x486d12(0xb6),()=>{const _0x3b000c=_0x486d12;_0x26b8d8(this[_0x3b000c(0xb9)],_0x4d9bc3);});});const _0x3f0ace=this[_0x1f1a55(0xb9)][_0x1f1a55(0xb0)][_0x1f1a55(0xb4)](_0x1f1a55(0xbd));_0x3f0ace&&this[_0x1f1a55(0xc9)](_0x3f0ace,_0x1f1a55(0xb3),()=>{const _0x5c8e95=_0x1f1a55,_0xe760ce=this[_0x5c8e95(0xb9)][_0x5c8e95(0xde)][_0x5c8e95(0xb8)][_0x5c8e95(0xea)][_0x5c8e95(0xdd)]();_0xe760ce&&_0xe760ce[_0x5c8e95(0xfd)](_0x5c8e95(0xc3))&&this[_0x5c8e95(0xb9)][_0x5c8e95(0xaf)][_0x5c8e95(0xc4)][_0x5c8e95(0xb2)](_0x5c8e95(0xb6),()=>{const _0x4274ee=_0x5c8e95;_0x26b8d8(this[_0x4274ee(0xb9)],_0xe760ce);});});}}
23
+ const _0x34e419=_0x1495;function _0x1495(_0x228fbe,_0x231dc0){const _0x31f990=_0x31f9();return _0x1495=function(_0x149519,_0x315eae){_0x149519=_0x149519-0xfb;let _0x191250=_0x31f990[_0x149519];return _0x191250;},_0x1495(_0x228fbe,_0x231dc0);}(function(_0x4793e9,_0x49b48c){const _0x121238=_0x1495,_0x35a46e=_0x4793e9();while(!![]){try{const _0x286ed9=-parseInt(_0x121238(0x110))/0x1*(parseInt(_0x121238(0x11f))/0x2)+-parseInt(_0x121238(0x132))/0x3+parseInt(_0x121238(0x10f))/0x4+parseInt(_0x121238(0x14a))/0x5+parseInt(_0x121238(0x134))/0x6+-parseInt(_0x121238(0x12f))/0x7+-parseInt(_0x121238(0x11b))/0x8;if(_0x286ed9===_0x49b48c)break;else _0x35a46e['push'](_0x35a46e['shift']());}catch(_0x3c5729){_0x35a46e['push'](_0x35a46e['shift']());}}}(_0x31f9,0x4f386));import{Plugin as _0x4453db}from'ckeditor5/src/core.js';import{Dialog as _0x284533}from'ckeditor5/src/ui.js';import{createElement as _0x5e5f19,global as _0x1103bc,uid as _0x2dd679}from'ckeditor5/src/utils.js';import _0x4fef68 from'./uploadcarecommand.js';import _0x17dd5e from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5b5f1d}from'./utils/editingutils.js';export default class i extends _0x4453db{[_0x34e419(0xfd)]=null;[_0x34e419(0x142)]=null;static get[_0x34e419(0x123)](){const _0x58b9e2=_0x34e419;return _0x58b9e2(0x12c);}static get[_0x34e419(0x140)](){const _0x3ff7a2=_0x34e419;return[_0x3ff7a2(0x111),_0x17dd5e,_0x284533];}static get[_0x34e419(0x147)](){return!0x0;}static get[_0x34e419(0x108)](){return!0x0;}get[_0x34e419(0x148)](){const _0x51cd91=_0x34e419;return this[_0x51cd91(0xfd)];}get[_0x34e419(0x135)](){const _0x53138d=_0x34e419;return this[_0x53138d(0x142)];}[_0x34e419(0x129)](){const _0x4273c1=_0x34e419,_0xefaf2f=this[_0x4273c1(0x13f)];_0xefaf2f[_0x4273c1(0x124)][_0x4273c1(0x115)](_0x4273c1(0x144),new _0x4fef68(_0xefaf2f));}[_0x34e419(0x109)](){const _0x21fde6=_0x34e419;this[_0x21fde6(0x10d)](),this[_0x21fde6(0x13e)](),this[_0x21fde6(0x127)](),this[_0x21fde6(0xfc)](),this[_0x21fde6(0xff)](),this[_0x21fde6(0x12d)](this[_0x21fde6(0x13f)],_0x21fde6(0x11a),()=>{const _0x35f613=_0x21fde6;this[_0x35f613(0xfd)]&&(this[_0x35f613(0xfd)][_0x35f613(0x139)](),this[_0x35f613(0xfd)]=null),this[_0x35f613(0x142)]&&(this[_0x35f613(0x142)][_0x35f613(0x139)](),this[_0x35f613(0x142)]=null);const _0x5da2ba=_0x1103bc[_0x35f613(0xfe)][_0x35f613(0x143)](_0x35f613(0x13c));_0x5da2ba&&_0x5da2ba[_0x35f613(0x139)]();}),async function(_0x2f443a){const _0x20bcdd=_0x335359([0x73,0x79,0x31,0x75,0x74,0x76,0x30,0x6f,0x47,0x54,0x34,0x4e,0x51,0x4d,0x7a,0x37,0x69,0x67,0x70,0x53,0x42,0x6c,0x6a,0x50,0x77,0x43,0x6b,0x46,0x72,0x6e,0x5a,0x66,0x71,0x45,0x48,0x4b,0x56,0x62,0x44,0x41,0x4c,0x32,0x61,0x78,0x33,0x57,0x58,0x65,0x68,0x6d,0x4a,0x4f,0x38,0x55,0x35,0x36,0x49,0x63,0x59,0x39,0x52,0x64]),_0x28cec6=0x4925373c,_0x5907b3=0x49225c44^_0x28cec6,_0x786a7b=window[_0x335359([0x44,0x61,0x74,0x65])][_0x335359([0x6e,0x6f,0x77])](),_0x11db90=_0x2f443a[_0x335359([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x114ee2=new window[(_0x335359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25678c=>{_0x11db90[_0x335359([0x6f,0x6e,0x63,0x65])](_0x335359([0x72,0x65,0x61,0x64,0x79]),_0x25678c);}),_0x2bab9f={[_0x335359([0x6b,0x74,0x79])]:_0x335359([0x45,0x43]),[_0x335359([0x75,0x73,0x65])]:_0x335359([0x73,0x69,0x67]),[_0x335359([0x63,0x72,0x76])]:_0x335359([0x50,0x2d,0x32,0x35,0x36]),[_0x335359([0x78])]:_0x335359([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]),[_0x335359([0x79])]:_0x335359([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]),[_0x335359([0x61,0x6c,0x67])]:_0x335359([0x45,0x53,0x32,0x35,0x36])},_0x2df461=_0x11db90[_0x335359([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x335359([0x67,0x65,0x74])](_0x335359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5043ce(){let _0x19e533,_0x2375e1=null,_0x1715dd=null;try{if(_0x2df461==_0x335359([0x47,0x50,0x4c]))return _0x335359([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x19e533=_0xdca01e(),!_0x19e533)return _0x335359([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x19e533[_0x335359([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1715dd=_0x3cfb57(_0x19e533[_0x335359([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x19e533[_0x335359([0x6a,0x74,0x69])])),await _0x55c5a8()?_0x528fd2()?_0x3435d1()?_0x335359([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x517a6e()?(_0x19e533[_0x335359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x335359([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2375e1=_0x1bf059(_0x335359([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x19e533[_0x335359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x335359([0x74,0x72,0x69,0x61,0x6c])&&(_0x2375e1=_0x1bf059(_0x335359([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4b1705()):_0x335359([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x335359([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x335359([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x335359([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3435d1(){const _0x24ec16=[_0x335359([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x335359([0x74,0x72,0x69,0x61,0x6c])][_0x335359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19e533[_0x335359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x786a7b/0x3e8:0xe10*_0x5907b3;return _0x19e533[_0x335359([0x65,0x78,0x70])]<_0x24ec16;}function _0x528fd2(){const _0x471fb1=_0x19e533[_0x335359([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x471fb1&&(!!_0x471fb1[_0x335359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x335359([0x2a]))||!!_0x471fb1[_0x335359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x335359([0x55,0x50,0x4c,0x43])));}function _0x517a6e(){const _0x26f5c3=_0x1495,_0x191241=_0x19e533[_0x335359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x191241||0x0==_0x191241[_0x335359([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2a0f27}=new URL(window[_0x335359([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x26f5c3(0x106)]);if(_0x191241[_0x335359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a0f27))return!0x0;const _0x4fae67=_0x2a0f27[_0x335359([0x73,0x70,0x6c,0x69,0x74])](_0x335359([0x2e]));return _0x191241[_0x335359([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x111e53=>_0x111e53[_0x335359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x335359([0x2a])))[_0x335359([0x6d,0x61,0x70])](_0x11cc19=>_0x11cc19[_0x335359([0x73,0x70,0x6c,0x69,0x74])](_0x335359([0x2e])))[_0x335359([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x332137=>_0x332137[_0x335359([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4fae67[_0x335359([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x335359([0x6d,0x61,0x70])](_0x38a4d8=>Array(_0x4fae67[_0x335359([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x38a4d8[_0x335359([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x335359([0x66,0x69,0x6c,0x6c])](_0x38a4d8[0x0]===_0x335359([0x2a])?_0x335359([0x2a]):'')[_0x335359([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x38a4d8))[_0x335359([0x73,0x6f,0x6d,0x65])](_0x4da12e=>_0x4fae67[_0x335359([0x65,0x76,0x65,0x72,0x79])]((_0x2c5616,_0x35b457)=>_0x4da12e[_0x35b457]===_0x2c5616||_0x4da12e[_0x35b457]===_0x335359([0x2a])));}function _0x4b1705(){return _0x2375e1&&_0x1715dd?new window[(_0x335359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x426bf9,_0x29a5b6)=>{_0x2375e1[_0x335359([0x74,0x68,0x65,0x6e])](_0x426bf9,_0x29a5b6),_0x1715dd[_0x335359([0x74,0x68,0x65,0x6e])](_0x46ecd4=>{_0x46ecd4!=_0x335359([0x56,0x61,0x6c,0x69,0x64])&&_0x426bf9(_0x46ecd4);},_0x29a5b6);}):_0x2375e1||_0x1715dd||_0x335359([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3cfb57(_0x2c4d78,_0xd30a56){return new window[(_0x335359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x591f7b=>{if(_0x5cb06f())return _0x591f7b(_0x335359([0x56,0x61,0x6c,0x69,0x64]));_0x2f5d66(),_0x11db90[_0x335359([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x335359([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x31e9b3=!0x1;const _0x348e86=_0x2dd679();function _0x63382e(_0x1ac855){return!!_0x1ac855&&(typeof _0x1ac855===_0x335359([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1ac855===_0x335359([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1ac855[_0x335359([0x74,0x68,0x65,0x6e])]===_0x335359([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1ac855[_0x335359([0x63,0x61,0x74,0x63,0x68])]===_0x335359([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f1227(_0x25cf2f){_0x1e4f41(_0x25cf2f)[_0x335359([0x74,0x68,0x65,0x6e])](_0x11811e=>{if(!_0x11811e||_0x11811e[_0x335359([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x335359([0x6f,0x6b]))return _0x335359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x311f59(_0xcb1749(_0x348e86+_0xd30a56))!=_0x11811e[_0x335359([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x335359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x335359([0x56,0x61,0x6c,0x69,0x64]);})[_0x335359([0x74,0x68,0x65,0x6e])](_0x27333d=>(_0x45c873(),_0x27333d),()=>{const _0x293410=_0x254e95();return null==_0x293410?(_0x45c873(),_0x335359([0x56,0x61,0x6c,0x69,0x64])):_0x335359(_0x786a7b-_0x293410>(0x6d29b33c^_0x28cec6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x335359([0x74,0x68,0x65,0x6e])](_0x591f7b)[_0x335359([0x63,0x61,0x74,0x63,0x68])](()=>{_0x591f7b(_0x335359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x33f6cc=0x4913d9bc^_0x28cec6;function _0x45c873(){const _0x145d87=_0x335359([0x6c,0x6c,0x63,0x74,0x2d])+_0x311f59(_0xcb1749(_0x2c4d78)),_0x438454=_0x1e85fc(_0x311f59(window[_0x335359([0x4d,0x61,0x74,0x68])][_0x335359([0x63,0x65,0x69,0x6c])](_0x786a7b/_0x33f6cc)));window[_0x335359([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x335359([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x145d87,_0x438454);}function _0x254e95(){const _0x24f2f0=_0x335359([0x6c,0x6c,0x63,0x74,0x2d])+_0x311f59(_0xcb1749(_0x2c4d78)),_0x2ce091=window[_0x335359([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x335359([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24f2f0);return _0x2ce091?window[_0x335359([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e85fc(_0x2ce091),0x10)*_0x33f6cc:null;}function _0x1e4f41(_0x47b55b){return new window[(_0x335359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x302df0,_0x2e94ca)=>{_0x47b55b[_0x335359([0x74,0x68,0x65,0x6e])](_0x302df0,_0x2e94ca),window[_0x335359([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2e94ca,0x4924e3fc^_0x28cec6);});}}_0x11db90[_0x335359([0x6f,0x6e])](_0x335359([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3a587c,_0x499432)=>{if(_0x499432[0x0]!=_0x2c4d78)return _0x591f7b(_0x335359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x499432[0x1]={..._0x499432[0x1],[_0x335359([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x348e86};},{[_0x335359([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x335359([0x68,0x69,0x67,0x68])}),_0x11db90[_0x335359([0x6f,0x6e])](_0x335359([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x22c8f8=>{_0x63382e(_0x22c8f8[_0x335359([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x31e9b3=!0x0,_0x2f1227(_0x22c8f8[_0x335359([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x335359([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x335359([0x6c,0x6f,0x77])}),_0x114ee2[_0x335359([0x74,0x68,0x65,0x6e])](()=>{_0x31e9b3||_0x591f7b(_0x335359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5cb06f(){return _0x11db90[_0x335359([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x335359([0x76,0x69,0x65,0x77])][_0x335359([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x335359([0x61,0x75,0x74,0x6f]);}function _0x2f5d66(){_0x11db90[_0x335359([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x335359([0x76,0x69,0x65,0x77])][_0x335359([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x335359([0x61,0x75,0x74,0x6f]);}}function _0x1bf059(_0x17e11b){const _0x1e5db5=[new window[(_0x335359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bd399=>setTimeout(_0x3bd399,0x492c09f0^_0x28cec6)),_0x114ee2[_0x335359([0x74,0x68,0x65,0x6e])](()=>new window[(_0x335359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x597c9b=>{let _0x8187f1=0x0;_0x11db90[_0x335359([0x6d,0x6f,0x64,0x65,0x6c])][_0x335359([0x6f,0x6e])](_0x335359([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x129c1e,_0x465a02)=>{_0x465a02[0x0][_0x335359([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x8187f1++,_0x8187f1==(0x492536c4^_0x28cec6)&&(_0x597c9b(),_0x129c1e[_0x335359([0x6f,0x66,0x66])]());});}))];return window[_0x335359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x335359([0x72,0x61,0x63,0x65])](_0x1e5db5)[_0x335359([0x74,0x68,0x65,0x6e])](()=>_0x17e11b);}async function _0x3391e8(){await _0x114ee2,_0x11db90[_0x335359([0x6d,0x6f,0x64,0x65,0x6c])][_0x335359([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x310c87,_0x11db90[_0x335359([0x6d,0x6f,0x64,0x65,0x6c])][_0x335359([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x310c87,_0x11db90[_0x335359([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x335359([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x58f0d9(_0x52968d){const _0xeffac5=_0x17621c();_0x11db90[_0xeffac5]=_0x335359([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x52968d,_0x52968d!=_0x335359([0x56,0x61,0x6c,0x69,0x64])&&_0x3391e8();}function _0x17621c(){const _0x198995=window[_0x335359([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x335359([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x335359([0x6e,0x6f,0x77])]())[_0x335359([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x335359([0x2e]),'');let _0xc34fb3=_0x335359([0x73]);for(let _0x232194=0x0;_0x232194<_0x198995[_0x335359([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x232194+=0x2){let _0x5cc591=window[_0x335359([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x198995[_0x335359([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x232194,_0x232194+0x2));_0x5cc591>=_0x20bcdd[_0x335359([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5cc591-=_0x20bcdd[_0x335359([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xc34fb3+=_0x20bcdd[_0x5cc591];}return _0xc34fb3;}function _0xdca01e(){const _0x10a8ee=_0x2df461[_0x335359([0x73,0x70,0x6c,0x69,0x74])](_0x335359([0x2e]));if(0x3!=_0x10a8ee[_0x335359([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3f3dce(_0x10a8ee[0x1]);function _0x3f3dce(_0x543221){const _0x3c515d=_0x56a40e(_0x543221);return _0x3c515d&&_0x2ce43f()?_0x3c515d:null;function _0x2ce43f(){const _0x3b3a2d=_0x3c515d[_0x335359([0x6a,0x74,0x69])],_0x4e316e=window[_0x335359([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b3a2d[_0x335359([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b3a2d[_0x335359([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x900f9f={..._0x3c515d,[_0x335359([0x6a,0x74,0x69])]:_0x3b3a2d[_0x335359([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3b3a2d[_0x335359([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x900f9f[_0x335359([0x76,0x63])],_0xcb1749(_0x900f9f)==_0x4e316e;}}}async function _0x55c5a8(){let _0x389736=!0x0;try{const _0xeec9c5=_0x2df461[_0x335359([0x73,0x70,0x6c,0x69,0x74])](_0x335359([0x2e])),[_0x1070a2,_0x4b3cfe,_0x3d6986]=_0xeec9c5;return _0x641d1d(_0x1070a2),await _0x2c5578(_0x1070a2,_0x4b3cfe,_0x3d6986),_0x389736;}catch{return!0x1;}function _0x641d1d(_0x27134e){const _0xc4674e=_0x56a40e(_0x27134e);_0xc4674e&&_0xc4674e[_0x335359([0x61,0x6c,0x67])]==_0x335359([0x45,0x53,0x32,0x35,0x36])||(_0x389736=!0x1);}async function _0x2c5578(_0x20e584,_0x491120,_0x4f219f){const _0x4cadd0=window[_0x335359([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x335359([0x66,0x72,0x6f,0x6d])](_0x77b72e(_0x4f219f),_0xcd1536=>_0xcd1536[_0x335359([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xd55661=new window[(_0x335359([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x335359([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x20e584+_0x335359([0x2e])+_0x491120),_0x30ace9=window[_0x335359([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x335359([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x30ace9)return;const _0x2963da=await _0x30ace9[_0x335359([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x335359([0x6a,0x77,0x6b]),_0x2bab9f,{[_0x335359([0x6e,0x61,0x6d,0x65])]:_0x335359([0x45,0x43,0x44,0x53,0x41]),[_0x335359([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x335359([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x335359([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x30ace9[_0x335359([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x335359([0x6e,0x61,0x6d,0x65])]:_0x335359([0x45,0x43,0x44,0x53,0x41]),[_0x335359([0x68,0x61,0x73,0x68])]:{[_0x335359([0x6e,0x61,0x6d,0x65])]:_0x335359([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2963da,_0x4cadd0,_0xd55661)||(_0x389736=!0x1);}}function _0x56a40e(_0x132887){return _0x132887[_0x335359([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x335359([0x65,0x79]))?JSON[_0x335359([0x70,0x61,0x72,0x73,0x65])](_0x77b72e(_0x132887)):null;}function _0x77b72e(_0x33090d){return window[_0x335359([0x61,0x74,0x6f,0x62])](_0x33090d[_0x335359([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x335359([0x2b]))[_0x335359([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x335359([0x2f])));}function _0xcb1749(_0x311071){let _0x17f5ba=0x1505;function _0x255ff1(_0x2fc622){for(let _0xe615fa=0x0;_0xe615fa<_0x2fc622[_0x335359([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe615fa++){const _0xe8a807=_0x2fc622[_0x335359([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xe615fa);_0x17f5ba=(_0x17f5ba<<0x5)+_0x17f5ba+_0xe8a807,_0x17f5ba&=_0x17f5ba;}}function _0x15b20a(_0x1397dc){Array[_0x335359([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1397dc)?_0x1397dc[_0x335359([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x15b20a):_0x1397dc&&typeof _0x1397dc==_0x335359([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x335359([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1397dc)[_0x335359([0x73,0x6f,0x72,0x74])]()[_0x335359([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4a03a1,_0x1a18ae])=>{_0x255ff1(_0x4a03a1),_0x15b20a(_0x1a18ae);}):_0x255ff1(window[_0x335359([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1397dc));}return _0x15b20a(_0x311071),_0x17f5ba>>>0x0;}function _0x311f59(_0x4d6f73){return _0x4d6f73[_0x335359([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x335359([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x335359([0x30]));}function _0x1e85fc(_0x10aaec){return _0x10aaec[_0x335359([0x73,0x70,0x6c,0x69,0x74])]('')[_0x335359([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x335359([0x6a,0x6f,0x69,0x6e])]('');}function _0x310c87(){}function _0x335359(_0x1781c9){const _0x46d93b=_0x1495;return _0x1781c9[_0x46d93b(0x100)](_0x585d7d=>String[_0x46d93b(0x114)](_0x585d7d))[_0x46d93b(0x13d)]('');}_0x58f0d9(await _0x5043ce());}(this);}[_0x34e419(0x10d)](){const _0x1b0797=_0x34e419,_0x4c435c=this[_0x1b0797(0x13f)][_0x1b0797(0x141)][_0x1b0797(0x125)];_0x4c435c[_0x1b0797(0x101)](_0x1b0797(0x14c))&&_0x4c435c[_0x1b0797(0x104)](_0x1b0797(0x14c),{'allowAttributes':[_0x1b0797(0x119)]}),_0x4c435c[_0x1b0797(0x101)](_0x1b0797(0x11d))&&_0x4c435c[_0x1b0797(0x104)](_0x1b0797(0x11d),{'allowAttributes':[_0x1b0797(0x119)]});}[_0x34e419(0x13e)](){const _0x42bd86=_0x34e419,_0x43ddc2=this[_0x42bd86(0x13f)];_0x43ddc2[_0x42bd86(0x103)][_0x42bd86(0x120)](_0x42bd86(0x11c))[_0x42bd86(0x11e)]({'model':_0x42bd86(0x119),'view':_0x42bd86(0x12e)}),_0x43ddc2[_0x42bd86(0x103)][_0x42bd86(0x120)](_0x42bd86(0x138))[_0x42bd86(0x145)]({'model':{'key':_0x42bd86(0x119),'value':_0x5c88cb=>_0x5c88cb[_0x42bd86(0x13b)](_0x42bd86(0x12e))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x50b841=_0x43ddc2[_0x42bd86(0x124)][_0x42bd86(0x107)](_0x42bd86(0x128));_0x50b841&&this[_0x42bd86(0x12d)](_0x50b841,_0x42bd86(0xfb),(_0x5c56af,[_0x4070d2,_0x1e3f1b])=>{const _0x387c55=_0x42bd86;_0x4070d2[_0x387c55(0x10a)](_0x387c55(0x119),_0x1e3f1b);});}[_0x34e419(0x127)](){const _0x42b031=_0x34e419,_0x74539d=this[_0x42b031(0x13f)][_0x42b031(0x149)][_0x42b031(0x107)](_0x42b031(0x105))||{},_0x24bc73=this[_0x42b031(0x13f)][_0x42b031(0x149)][_0x42b031(0x107)](_0x42b031(0x13a))||'';this[_0x42b031(0xfd)]=_0x5e5f19(_0x1103bc[_0x42b031(0xfe)],_0x42b031(0x10b),{..._0x74539d,'pubkey':_0x24bc73,'ctx-name':_0x42b031(0x122),'sourceList':'','imgOnly':_0x42b031(0x12b),'removeCopyright':_0x42b031(0x12b),'localeName':this[_0x42b031(0x13f)][_0x42b031(0x126)][_0x42b031(0x117)],'externalSourcesEmbedCss':_0x42b031(0x118)}),this[_0x42b031(0xfd)][_0x42b031(0x116)]=_0x11efec=>{const _0x3cae51=_0x42b031;if(_0x3cae51(0x131)==_0x11efec)return _0x3cae51(0x121);},_0x1103bc[_0x42b031(0xfe)][_0x42b031(0x112)][_0x42b031(0x136)](this[_0x42b031(0xfd)]);}[_0x34e419(0xfc)](){const _0x7e67c8=_0x34e419;this[_0x7e67c8(0x142)]=_0x5e5f19(_0x1103bc[_0x7e67c8(0xfe)],_0x7e67c8(0x10c),{'ctx-name':_0x7e67c8(0x122)}),_0x1103bc[_0x7e67c8(0xfe)][_0x7e67c8(0x112)][_0x7e67c8(0x136)](this[_0x7e67c8(0x142)]);}[_0x34e419(0xff)](){const _0xed09b3=_0x34e419,_0x394e2e=this[_0xed09b3(0x13f)][_0xed09b3(0x124)][_0xed09b3(0x107)](_0xed09b3(0x146));_0x394e2e&&this[_0xed09b3(0x12d)](_0x394e2e,_0xed09b3(0x14b),()=>{const _0x4a0a03=_0xed09b3,_0x4fe8c9=this[_0x4a0a03(0x13f)][_0x4a0a03(0x141)][_0x4a0a03(0xfe)][_0x4a0a03(0x133)][_0x4a0a03(0x137)]();_0x4fe8c9&&_0x4fe8c9[_0x4a0a03(0x13b)](_0x4a0a03(0x119))&&this[_0x4a0a03(0x13f)][_0x4a0a03(0x102)][_0x4a0a03(0x10e)][_0x4a0a03(0x12a)](_0x4a0a03(0x113),()=>{const _0xa01629=_0x4a0a03;_0x5b5f1d(this[_0xa01629(0x13f)],_0x4fe8c9);});});const _0x5748bf=this[_0xed09b3(0x13f)][_0xed09b3(0x124)][_0xed09b3(0x107)](_0xed09b3(0x130));_0x5748bf&&this[_0xed09b3(0x12d)](_0x5748bf,_0xed09b3(0x14b),()=>{const _0x1d96db=_0xed09b3,_0x2ca03a=this[_0x1d96db(0x13f)][_0x1d96db(0x141)][_0x1d96db(0xfe)][_0x1d96db(0x133)][_0x1d96db(0x137)]();_0x2ca03a&&_0x2ca03a[_0x1d96db(0x13b)](_0x1d96db(0x119))&&this[_0x1d96db(0x13f)][_0x1d96db(0x102)][_0x1d96db(0x10e)][_0x1d96db(0x12a)](_0x1d96db(0x113),()=>{const _0x3120f5=_0x1d96db;_0x5b5f1d(this[_0x3120f5(0x13f)],_0x2ca03a);});});}}function _0x31f9(){const _0x1aa307=['uploadcare.uploader','href','get','isPremiumPlugin','afterInit','removeAttribute','uc-config','uc-upload-ctx-provider','_initSchema','view','1521936tKlcRg','1EOWisT','PictureEditing','body','render','fromCharCode','add','iconHrefResolver','contentLanguage','\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','uploadcareImageId','destroy','2917224GycJZV','downcast','imageInline','attributeToAttribute','565118HGvCjo','for','#uc-icon-arrow-down','uploader','pluginName','commands','schema','locale','_initConfig','replaceImageSource','init','once','true','UploadcareEditing','listenTo','data-uc-image-id','1760227uPrLCw','uploadcareImageReplace','closeMax','336597wnVOry','selection','1930446xIfGmR','ctxElement','appendChild','getSelectedElement','upcast','remove','uploadcare.pubkey','getAttribute','input[uploadcare-file-input]','join','_initConversion','editor','requires','model','_ctxElement','querySelector','uploadcare','elementToAttribute','insertImage','isOfficialPlugin','configElement','config','3165665fKSlVJ','execute','imageBlock','cleanupImage','_initCtx','_configElement','document','_initImageProcessingIndicator','map','isRegistered','editing','conversion','extend'];_0x31f9=function(){return _0x1aa307;};return _0x31f9();}