@ckeditor/ckeditor5-uploadcare 46.0.0-alpha.4 → 46.0.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x29c9bc,Command as _0x58d9ad}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4d3297,IconGooglePhotos as _0xfcdce,IconGoogleDrive as _0xd9c9c5,IconFacebook as _0x1f922d,IconDropbox as _0x20f2b1,IconUploadcareLink as _0x291f38,IconUploadcareImageUpload as _0x2828c4,IconError as _0x2b194e,IconUploadcareImageEdit as _0x38e2e4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x21bd89,MenuBarMenuListItemButtonView as _0x430130,View as _0x5ca833,FocusCycler as _0x39a4a9,Dialog as _0x3d6fc6,DialogViewPosition as _0x77b8fe,SpinnerView as _0x98b930,IconView as _0xb34602,Notification as _0x3487ed}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x22276f,DomEmitterMixin as _0x1ecac1,global as _0x22bc19,getAncestors as _0x1fa2ca,ObservableMixin as _0x29a49c,uid as _0x3786e0,createElement as _0x57ef81}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x4cb17a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x151fc1,info as _0x311b87}from'@uploadcare/upload-client';import*as _0x3b9158 from'@uploadcare/file-uploader';var i=function(_0x282586){return _0x282586['Local']='local',_0x282586['URL']='url',_0x282586['Dropbox']='dropbox',_0x282586['GDrive']='gdrive',_0x282586['Facebook']='facebook',_0x282586['GPhotos']='gphotos',_0x282586['OneDrive']='onedrive',_0x282586;}({});function _(_0xd3f93d,_0x1c4c82,_0xd45fb5){const t=_0xd3f93d['t'],_0x2d38ca=_0xd3f93d['t'];switch(_0x1c4c82){case i['Local']:return{'text':_0x2d38ca('Insert'===_0xd45fb5?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2d38ca('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xd45fb5?_0x2d38ca('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2d38ca('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xd45fb5?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xd45fb5?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xd45fb5?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xd45fb5?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xd45fb5?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1c4c82;}}class e extends _0x29c9bc{['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 _0x1bfb0a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5be0a3;for(const _0x1e448d in _0x1bfb0a){const _0x5fbfd2=_0x1e448d,_0x51b313=_0x1bfb0a[_0x5fbfd2];if('uploadcareLicenseKeyValid'==_0x51b313||'uploadcareLicenseKeyInvalid'==_0x51b313||'uploadcareLicenseKeyExpired'==_0x51b313||'uploadcareLicenseKeyDomainLimit'==_0x51b313||'uploadcareLicenseKeyNotAllowed'==_0x51b313||'uploadcareLicenseKeyEvaluationLimit'==_0x51b313||'uploadcareLicenseKeyTrialLimit'==_0x51b313||'uploadcareLicenseKeyUsageLimit'==_0x51b313){delete _0x1bfb0a[_0x5fbfd2],_0x5be0a3=_0x51b313,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5be0a3&&_0x1bfb0a['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5be0a3&&_0x1bfb0a['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5be0a3&&_0x1bfb0a['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5be0a3&&_0x1bfb0a['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5be0a3&&_0x1bfb0a['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5be0a3&&_0x1bfb0a['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5be0a3&&_0x1bfb0a['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x586108}=this,_0x3df45a=_0x586108['commands']['get']('uploadcare');if(!_0x3df45a)return;const _0x59299f=this['_normalizeConfigSourceList'](_0x586108['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1ed407,_0x4f3ba2)=>{const _0x60b89c=this['_getIntegrationKey'](_0x4f3ba2['type']);return _0x1ed407[_0x60b89c]||(_0x1ed407[_0x60b89c]=[]),_0x1ed407[_0x60b89c]['push'](_0x4f3ba2),_0x1ed407;},{});_0x586108['plugins']['has']('ImageInsertUI')&&_0x586108['commands']['get']('uploadcare')&&Object['entries'](_0x59299f)['forEach'](([_0x486832,_0x1b3cb5])=>{_0x586108['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x486832,'observable':()=>_0x3df45a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1b3cb5),'formViewCreator':()=>this['_createDropdownButtons'](_0x1b3cb5),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1b3cb5),'override':'assetManager'!==_0x486832});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x42c64c){const {locale:_0x2de692}=this['editor'];return _0x42c64c['map'](_0x3fe013=>{const _0x3fb711=_(_0x2de692,_0x3fe013,'Insert');switch(_0x3fe013){case i['Local']:return{'icon':_0x2828c4,'type':i['Local'],..._0x3fb711};case i['URL']:return{'icon':_0x291f38,'type':i['URL'],..._0x3fb711};case i['Dropbox']:return{'icon':_0x20f2b1,'type':i['Dropbox'],..._0x3fb711};case i['Facebook']:return{'icon':_0x1f922d,'type':i['Facebook'],..._0x3fb711};case i['GDrive']:return{'icon':_0xd9c9c5,'type':i['GDrive'],..._0x3fb711};case i['GPhotos']:return{'icon':_0xfcdce,'type':i['GPhotos'],..._0x3fb711};case i['OneDrive']:return{'icon':_0x4d3297,'type':i['OneDrive'],..._0x3fb711};}});}['_getIntegrationKey'](_0x2a87aa){switch(_0x2a87aa){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x335fb3,_0x106646){const _0x1513ab=this['editor'],_0x52276d=new _0x335fb3(_0x1513ab['locale']),_0x2579b1=_0x1513ab['commands']['get']('uploadcare');return _0x52276d['bind']('isEnabled')['to'](_0x2579b1),_0x52276d['on']('execute',()=>{_0x2579b1['execute'](_0x106646);}),_0x52276d;}['_createToolbarButton'](_0x29ddcf){const {locale:_0x591e55}=this['editor'],_0x543aa6=this['editor']['plugins']['get']('ImageInsertUI'),_0x58bd34=_0x29ddcf[0x0],_0x28dce3=this['_createButton'](_0x21bd89,_0x58bd34['type']);return _0x28dce3['icon']=_0x58bd34['icon'],_0x28dce3['bind']('label')['to'](_0x543aa6,'isImageSelected',_0x549c1e=>_(_0x591e55,_0x58bd34['type'],_0x549c1e?'Replace':'Insert')['text']),_0x28dce3['tooltip']=!0x0,_0x28dce3;}['_createDropdownButtons'](_0x5ddbcc){const {locale:_0x571fad}=this['editor'],_0x180918=this['editor']['plugins']['get']('ImageInsertUI');return _0x5ddbcc['map'](_0x574f1a=>{const _0xa2a48d=this['_createButton'](_0x21bd89,_0x574f1a['type']);return _0xa2a48d['withText']=!0x0,_0xa2a48d['icon']=_0x574f1a['icon'],_0xa2a48d['bind']('label')['to'](_0x180918,'isImageSelected',_0x220dc7=>_(_0x571fad,_0x574f1a['type'],_0x220dc7?'Replace':'Insert')['text']),_0xa2a48d;});}['_createMenuBarButtons'](_0x44685b){return _0x44685b['map'](_0x5e39dd=>{const _0x4229e9=this['_createButton'](_0x430130,_0x5e39dd['type']);return _0x4229e9['icon']=_0x5e39dd['icon'],_0x4229e9['label']=_0x5e39dd['shortText'],_0x4229e9;});}}class V extends _0x5ca833{['focusTracker'];['focusCycler'];constructor(_0x2f4cf6){super(_0x2f4cf6),this['focusTracker']=new _0x22276f(),this['focusCycler']=new _0x39a4a9({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends V{constructor(_0x2dc5bd,_0xa47baf){super(_0x2dc5bd),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-'+_0xa47baf}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x174926,_0xea78a6){const _0x5038f2=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x918532=>_0x918532<=_0xea78a6)['map'](_0x394e93=>_0x174926['replace'](/\/$/,'')+'/-/resize/'+_0x394e93+'x/\x20'+_0x394e93+'w');return{'imageFallbackUrl':_0x174926,'imageSources':[{'srcset':_0x5038f2['join'](',\x20'),'sizes':'(max-width:\x20'+_0xea78a6+'px)\x20100vw,\x20'+_0xea78a6+'px','type':'image/webp'}]};}function F(_0x2b57b9,_0x27a1cc,_0x1cc084){const _0x357585=_0x2b57b9['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x357585?parseInt(_0x357585[0x1],0xa):_0x27a1cc,'height':_0x357585?parseInt(_0x357585[0x2],0xa):_0x1cc084};}function p(_0x3367aa,_0x1c772f){const _0x39dab8=new(_0x1ecac1())(),_0x2d6ff7=_0x3367aa['plugins']['get']('ImageUtils'),_0x1a120e=_0x3367aa['editing']['mapper']['toViewElement'](_0x1c772f),_0x546b09=_0x2d6ff7['findViewImgElement'](_0x1a120e),_0xb70b33=_0x3367aa['editing']['view']['domConverter']['viewToDom'](_0x546b09),_0x57136a=_0x1c772f['getAttribute']('width'),_0x1435bf=_0x1c772f['getAttribute']('height'),_0x5a4740='image-processing';_0x3367aa['editing']['view']['change'](_0x17e445=>{_0x17e445['addClass'](_0x5a4740,_0x1a120e),_0x17e445['setStyle']('aspect-ratio',_0x57136a+'/'+_0x1435bf,_0x546b09);}),_0x39dab8['listenTo'](_0xb70b33,'load',()=>{_0x39dab8['stopListening'](_0xb70b33,'load'),_0x3367aa['editing']['view']['change'](_0x1b96b9=>{_0x1b96b9['removeClass'](_0x5a4740,_0x1a120e),_0x1b96b9['removeStyle']('aspect-ratio',_0x546b09);});});}function R(_0x1f1ffe){if(Array['isArray'](_0x1f1ffe)){const _0x1cf6b9=_0x1f1ffe['map'](R);return _0x3bca7f=>_0x1cf6b9['some'](_0x5682a9=>_0x5682a9(_0x3bca7f));}if('origin'==_0x1f1ffe){const _0x259e23=_0x22bc19['window']['location']['origin'];return _0x1bcc6e=>new URL(_0x1bcc6e,_0x22bc19['document']['baseURI'])['origin']==_0x259e23;}return'function'==typeof _0x1f1ffe?_0x1f1ffe:_0x1f1ffe instanceof RegExp?_0x527e40=>!(!_0x527e40['match'](_0x1f1ffe)&&!_0x527e40['replace'](/^https?:\/\//,'')['match'](_0x1f1ffe)):()=>!0x1;}function M(_0x499254,_0x47d5d9){return _0x1fa2ca(_0x499254['target'])['includes'](_0x47d5d9);}class n extends/* #__PURE__ -- @preserve */
24
- _0x29a49c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4c5334,_0x17f17e,_0x43be0f){super(),this['_editor']=_0x4c5334,this['_editing']=_0x17f17e,this['_dialog']=_0x4c5334['plugins']['get'](_0x3d6fc6),this['_api']=_0x17f17e['ctxElement']['getAPI'](),this['_type']=_0x43be0f,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:_0x1e7d21,model:_0x9b8d7}=this['_editor'],_0xdce57d=_0x9b8d7['document']['selection']['getSelectedElement'](),_0x52e82a=_0xdce57d&&(_0xdce57d['is']('element','imageBlock')||_0xdce57d['is']('element','imageInline'));this['_formView']=new S(_0x1e7d21,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2828c4,'title':_(_0x1e7d21,this['_type'],_0x52e82a?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x77b8fe['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5d8f33=>!M(_0x5d8f33,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4516d5}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4931a7=>{const _0x2b3c25=_0x4516d5['length'];for(const _0xf3113e of _0x4516d5){const _0x150a10=_0xf3113e===_0x4516d5[_0x2b3c25-0x1],{cdnUrl:_0x186e6a,fileInfo:_0x2df813}=_0xf3113e;if(!_0x186e6a||!_0x2df813)continue;const {width:_0x2e9bf0,height:_0x52d1e0}=_0x2df813['imageInfo'],_0x3b7b67=F(_0x186e6a,_0x2e9bf0,_0x52d1e0),_0x347844=k(_0x186e6a,_0x3b7b67['width']),_0x95fe0c={'id':_0x2df813['uuid'],'type':'image','attributes':{'imageDimension':_0x3b7b67,..._0x347844}};this['_insertAsset'](_0x95fe0c,_0x150a10,_0x4931a7);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1c87bb=>{'idle'===_0x1c87bb['detail']['status']&&!_0x1c87bb['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x49b68c,_0x4c79ed,_0x3ba0c2){const _0x35f3f4=this['_editor']['model']['document']['selection'],_0x5263dc=_0x35f3f4['getSelectedElement'](),_0x3e33d6=!(!_0x5263dc||!_0x5263dc['is']('element','imageInline'));_0x3ba0c2['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x49b68c,_0x3e33d6),_0x4c79ed||_0x3ba0c2['setSelection'](_0x35f3f4['getLastPosition']());}['_insertImage'](_0x5ad3f3,_0x170212){const _0x35a6f0=this['_editor'],{imageDimension:_0x44b320,imageFallbackUrl:_0xa2f3b5,imageSources:_0x1a4f24}=_0x5ad3f3['attributes'];_0x35a6f0['execute']('insertImage',{'imageType':_0x170212?'imageInline':null,'source':{'uploadcareImageId':_0x5ad3f3['id'],'src':_0xa2f3b5,'sources':_0x1a4f24,..._0x44b320}});}}class w extends _0x58d9ad{['_editing'];['_controller']=null;static get['requires'](){return[_0x3d6fc6,o];}constructor(_0x209909){super(_0x209909),this['_editing']=_0x209909['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1ad029){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1ad029);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x18296c,publicKey:_0x4ada1b,signal:_0x26135f,onProgress:_0x33fc2d}){return _0x151fc1(_0x18296c,{'publicKey':_0x4ada1b,'store':'auto','signal':_0x26135f,'onProgress':_0x33fc2d});}static['getInfo'](_0x30941f,_0x47e6f6){return _0x311b87(_0x30941f,_0x47e6f6);}}class f extends _0x29c9bc{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4cb17a,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2470f0=this['editor'];if(!!!_0x2470f0['config']['get']('uploadcare'))return;_0x2470f0['plugins']['get'](_0x4cb17a)['createUploadAdapter']=_0x532959=>new A(_0x532959,_0x2470f0),_0x2470f0['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5ef5ff,{imageElement:_0x51d92e,data:_0x58e309})=>{_0x2470f0['model']['change'](_0x27d7fa=>{_0x27d7fa['setAttribute']('uploadcareImageId',_0x58e309['uploadcareImageId'],_0x51d92e);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x5b0574,_0x277a7c){this['loader']=_0x5b0574,this['editor']=_0x277a7c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5d4a3c=this['editor']['config']['get']('uploadcare.pubkey'),_0xd0e849=await this['loader']['file'];return j['upload']({'file':_0xd0e849,'publicKey':_0x5d4a3c,'signal':this['controller']['signal'],'onProgress':_0x5eb686=>{_0x5eb686&&_0x5eb686['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5eb686['value']);}})['then'](async _0x46950a=>{const {imageFallbackUrl:_0x52ba95,imageSources:_0x35987e}=k(_0x46950a['cdnUrl'],_0x46950a['imageInfo']['width']);return{'uploadcareImageId':_0x46950a['uuid'],'default':_0x52ba95,'sources':_0x35987e};})['catch'](()=>{const _0x296429=t('Cannot\x20upload\x20file:')+('\x20'+_0xd0e849['name']+'.');return Promise['reject'](_0x296429);});}['abort'](){this['controller']['abort']();}}class o extends _0x29c9bc{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x3d6fc6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1417bb){super(_0x1417bb),this['ucContextId']=_0x3786e0();}['init'](){const _0x2ba16a=this['editor'];_0x2ba16a['commands']['add']('uploadcare',new w(_0x2ba16a));}['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 _0x37be0f=_0x22bc19['document']['querySelector']('input[uploadcare-file-input]');_0x37be0f&&_0x37be0f['remove']();}),async function(_0x74cf43){const _0x2f0585=_0x3de925([0x56,0x4d,0x63,0x77,0x7a,0x42,0x79,0x6b,0x68,0x39,0x38,0x48,0x50,0x69,0x70,0x49,0x4a,0x36,0x72,0x71,0x31,0x57,0x67,0x33,0x65,0x76,0x78,0x41,0x37,0x59,0x6f,0x4c,0x74,0x75,0x58,0x34,0x4f,0x45,0x6d,0x4b,0x4e,0x47,0x30,0x64,0x53,0x54,0x6e,0x43,0x5a,0x66,0x73,0x35,0x52,0x6c,0x32,0x51,0x44,0x46,0x6a,0x55,0x61,0x62]),_0x40b297=0xc92130f,_0x24bcad=0xc957fbf^_0x40b297,_0x3c2224=window[_0x3de925([0x44,0x61,0x74,0x65])][_0x3de925([0x6e,0x6f,0x77])](),_0x23523a=_0x74cf43[_0x3de925([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a3b6d=new window[(_0x3de925([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7f32fa=>{_0x23523a[_0x3de925([0x6f,0x6e,0x63,0x65])](_0x3de925([0x72,0x65,0x61,0x64,0x79]),_0x7f32fa);}),_0x17cb38={[_0x3de925([0x6b,0x74,0x79])]:_0x3de925([0x45,0x43]),[_0x3de925([0x75,0x73,0x65])]:_0x3de925([0x73,0x69,0x67]),[_0x3de925([0x63,0x72,0x76])]:_0x3de925([0x50,0x2d,0x32,0x35,0x36]),[_0x3de925([0x78])]:_0x3de925([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]),[_0x3de925([0x79])]:_0x3de925([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]),[_0x3de925([0x61,0x6c,0x67])]:_0x3de925([0x45,0x53,0x32,0x35,0x36])},_0x357a13=_0x23523a[_0x3de925([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3de925([0x67,0x65,0x74])](_0x3de925([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x50ee50(){let _0x20d7e5,_0xd07dd9=null,_0x4ac0ca=null;try{if(_0x357a13==_0x3de925([0x47,0x50,0x4c]))return _0x3de925([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x20d7e5=_0x555fd6(),!_0x20d7e5)return _0x3de925([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x20d7e5[_0x3de925([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ac0ca=_0x1ef8b8(_0x20d7e5[_0x3de925([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x20d7e5[_0x3de925([0x6a,0x74,0x69])])),await _0x5bd6c2()?_0x30770c()?_0x127ebd()?_0x3de925([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x442b15()?(_0x20d7e5[_0x3de925([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3de925([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xd07dd9=_0x2f0988(_0x3de925([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x20d7e5[_0x3de925([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3de925([0x74,0x72,0x69,0x61,0x6c])&&(_0xd07dd9=_0x2f0988(_0x3de925([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x48a841()):_0x3de925([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3de925([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3de925([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3de925([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x127ebd(){const _0x1eb151=[_0x3de925([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3de925([0x74,0x72,0x69,0x61,0x6c])][_0x3de925([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20d7e5[_0x3de925([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c2224/0x3e8:0xe10*_0x24bcad;return _0x20d7e5[_0x3de925([0x65,0x78,0x70])]<_0x1eb151;}function _0x30770c(){const _0x3ca70=_0x20d7e5[_0x3de925([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3ca70&&(!!_0x3ca70[_0x3de925([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3de925([0x2a]))||!!_0x3ca70[_0x3de925([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3de925([0x55,0x50,0x4c,0x43])));}function _0x442b15(){const _0x774652=_0x20d7e5[_0x3de925([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x774652||0x0==_0x774652[_0x3de925([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5dc3d8}=new URL(window[_0x3de925([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x774652[_0x3de925([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dc3d8))return!0x0;const _0x437495=_0x5dc3d8[_0x3de925([0x73,0x70,0x6c,0x69,0x74])](_0x3de925([0x2e]));return _0x774652[_0x3de925([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x513785=>_0x513785[_0x3de925([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3de925([0x2a])))[_0x3de925([0x6d,0x61,0x70])](_0x429f17=>_0x429f17[_0x3de925([0x73,0x70,0x6c,0x69,0x74])](_0x3de925([0x2e])))[_0x3de925([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x154899=>_0x154899[_0x3de925([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x437495[_0x3de925([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3de925([0x6d,0x61,0x70])](_0x5ffec0=>Array(_0x437495[_0x3de925([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5ffec0[_0x3de925([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3de925([0x66,0x69,0x6c,0x6c])](_0x5ffec0[0x0]===_0x3de925([0x2a])?_0x3de925([0x2a]):'')[_0x3de925([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5ffec0))[_0x3de925([0x73,0x6f,0x6d,0x65])](_0xf01947=>_0x437495[_0x3de925([0x65,0x76,0x65,0x72,0x79])]((_0x469467,_0x5ec892)=>_0xf01947[_0x5ec892]===_0x469467||_0xf01947[_0x5ec892]===_0x3de925([0x2a])));}function _0x48a841(){return _0xd07dd9&&_0x4ac0ca?new window[(_0x3de925([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16051e,_0x344c16)=>{_0xd07dd9[_0x3de925([0x74,0x68,0x65,0x6e])](_0x16051e,_0x344c16),_0x4ac0ca[_0x3de925([0x74,0x68,0x65,0x6e])](_0x294c6c=>{_0x294c6c!=_0x3de925([0x56,0x61,0x6c,0x69,0x64])&&_0x16051e(_0x294c6c);},_0x344c16);}):_0xd07dd9||_0x4ac0ca||_0x3de925([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1ef8b8(_0x19455d,_0x3f20bb){return new window[(_0x3de925([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4877a0=>{if(_0x3abe2b())return _0x4877a0(_0x3de925([0x56,0x61,0x6c,0x69,0x64]));_0x13c4d3(),_0x23523a[_0x3de925([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3de925([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5f354a=!0x1;const _0x3dc418=_0x3786e0();function _0x77ca36(_0x20fbd6){return!!_0x20fbd6&&(typeof _0x20fbd6===_0x3de925([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x20fbd6===_0x3de925([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x20fbd6[_0x3de925([0x74,0x68,0x65,0x6e])]===_0x3de925([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x20fbd6[_0x3de925([0x63,0x61,0x74,0x63,0x68])]===_0x3de925([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3bb29c(_0x14d3d4){_0x33d440(_0x14d3d4)[_0x3de925([0x74,0x68,0x65,0x6e])](_0x403867=>{if(!_0x403867||_0x403867[_0x3de925([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3de925([0x6f,0x6b]))return _0x3de925([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2ff7fa(_0x1a2c73(_0x3dc418+_0x3f20bb))!=_0x403867[_0x3de925([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3de925([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3de925([0x56,0x61,0x6c,0x69,0x64]);})[_0x3de925([0x74,0x68,0x65,0x6e])](_0x35d2b3=>(_0x45f6c2(),_0x35d2b3),()=>{const _0x4ba13c=_0x4c7339();return null==_0x4ba13c?(_0x45f6c2(),_0x3de925([0x56,0x61,0x6c,0x69,0x64])):_0x3de925(_0x3c2224-_0x4ba13c>(0x289e970f^_0x40b297)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3de925([0x74,0x68,0x65,0x6e])](_0x4877a0)[_0x3de925([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4877a0(_0x3de925([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x11d947=0xca4fd8f^_0x40b297;function _0x45f6c2(){const _0x2dfea5=_0x3de925([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ff7fa(_0x1a2c73(_0x19455d)),_0x5eae30=_0x1b1e99(_0x2ff7fa(window[_0x3de925([0x4d,0x61,0x74,0x68])][_0x3de925([0x63,0x65,0x69,0x6c])](_0x3c2224/_0x11d947)));window[_0x3de925([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3de925([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2dfea5,_0x5eae30);}function _0x4c7339(){const _0x130cba=_0x3de925([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ff7fa(_0x1a2c73(_0x19455d)),_0x37fa5d=window[_0x3de925([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3de925([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x130cba);return _0x37fa5d?window[_0x3de925([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b1e99(_0x37fa5d),0x10)*_0x11d947:null;}function _0x33d440(_0x5aa521){return new window[(_0x3de925([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37b001,_0xfa31b3)=>{_0x5aa521[_0x3de925([0x74,0x68,0x65,0x6e])](_0x37b001,_0xfa31b3),window[_0x3de925([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xfa31b3,0xc93c7cf^_0x40b297);});}}_0x23523a[_0x3de925([0x6f,0x6e])](_0x3de925([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x500f79,_0xd4edf8)=>{if(_0xd4edf8[0x0]!=_0x19455d)return _0x4877a0(_0x3de925([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd4edf8[0x1]={..._0xd4edf8[0x1],[_0x3de925([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3dc418};},{[_0x3de925([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3de925([0x68,0x69,0x67,0x68])}),_0x23523a[_0x3de925([0x6f,0x6e])](_0x3de925([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5f2b27=>{_0x77ca36(_0x5f2b27[_0x3de925([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5f354a=!0x0,_0x3bb29c(_0x5f2b27[_0x3de925([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3de925([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3de925([0x6c,0x6f,0x77])}),_0x3a3b6d[_0x3de925([0x74,0x68,0x65,0x6e])](()=>{_0x5f354a||_0x4877a0(_0x3de925([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3abe2b(){return _0x23523a[_0x3de925([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3de925([0x76,0x69,0x65,0x77])][_0x3de925([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3de925([0x61,0x75,0x74,0x6f]);}function _0x13c4d3(){_0x23523a[_0x3de925([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3de925([0x76,0x69,0x65,0x77])][_0x3de925([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3de925([0x61,0x75,0x74,0x6f]);}}function _0x2f0988(_0x343a27){const _0x240b86=[new window[(_0x3de925([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55aa60=>setTimeout(_0x55aa60,0xc9b2dc3^_0x40b297)),_0x3a3b6d[_0x3de925([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3de925([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cdc59=>{let _0x4fb440=0x0;_0x23523a[_0x3de925([0x6d,0x6f,0x64,0x65,0x6c])][_0x3de925([0x6f,0x6e])](_0x3de925([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3934dd,_0x364d19)=>{_0x364d19[0x0][_0x3de925([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4fb440++,_0x4fb440==(0xc9212f7^_0x40b297)&&(_0x4cdc59(),_0x3934dd[_0x3de925([0x6f,0x66,0x66])]());});}))];return window[_0x3de925([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3de925([0x72,0x61,0x63,0x65])](_0x240b86)[_0x3de925([0x74,0x68,0x65,0x6e])](()=>_0x343a27);}async function _0x1bc91c(){await _0x3a3b6d,_0x23523a[_0x3de925([0x6d,0x6f,0x64,0x65,0x6c])][_0x3de925([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3f13f6,_0x23523a[_0x3de925([0x6d,0x6f,0x64,0x65,0x6c])][_0x3de925([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3f13f6,_0x23523a[_0x3de925([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3de925([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1c3e50(_0x1215b9){const _0x39cdda=_0x2127df();_0x23523a[_0x39cdda]=_0x3de925([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1215b9,_0x1215b9!=_0x3de925([0x56,0x61,0x6c,0x69,0x64])&&_0x1bc91c();}function _0x2127df(){const _0x3dc798=window[_0x3de925([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3de925([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3de925([0x6e,0x6f,0x77])]())[_0x3de925([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3de925([0x2e]),'');let _0x2a6518=_0x3de925([0x56]);for(let _0x505fc4=0x0;_0x505fc4<_0x3dc798[_0x3de925([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x505fc4+=0x2){let _0x43ba51=window[_0x3de925([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dc798[_0x3de925([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x505fc4,_0x505fc4+0x2));_0x43ba51>=_0x2f0585[_0x3de925([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x43ba51-=_0x2f0585[_0x3de925([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2a6518+=_0x2f0585[_0x43ba51];}return _0x2a6518;}function _0x555fd6(){const _0x2d28a9=_0x357a13[_0x3de925([0x73,0x70,0x6c,0x69,0x74])](_0x3de925([0x2e]));if(0x3!=_0x2d28a9[_0x3de925([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f850e(_0x2d28a9[0x1]);function _0x2f850e(_0x5f200a){const _0x3b78f0=_0x3495f8(_0x5f200a);return _0x3b78f0&&_0x479659()?_0x3b78f0:null;function _0x479659(){const _0x4c610f=_0x3b78f0[_0x3de925([0x6a,0x74,0x69])],_0x243918=window[_0x3de925([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c610f[_0x3de925([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c610f[_0x3de925([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x241b32={..._0x3b78f0,[_0x3de925([0x6a,0x74,0x69])]:_0x4c610f[_0x3de925([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c610f[_0x3de925([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x241b32[_0x3de925([0x76,0x63])],_0x1a2c73(_0x241b32)==_0x243918;}}}async function _0x5bd6c2(){let _0x51cd4c=!0x0;try{const _0x5d7b2b=_0x357a13[_0x3de925([0x73,0x70,0x6c,0x69,0x74])](_0x3de925([0x2e])),[_0x5b3b31,_0x5bb8e1,_0x52982e]=_0x5d7b2b;return _0x43168b(_0x5b3b31),await _0x17c188(_0x5b3b31,_0x5bb8e1,_0x52982e),_0x51cd4c;}catch{return!0x1;}function _0x43168b(_0x4680f5){const _0x2a5b41=_0x3495f8(_0x4680f5);_0x2a5b41&&_0x2a5b41[_0x3de925([0x61,0x6c,0x67])]==_0x3de925([0x45,0x53,0x32,0x35,0x36])||(_0x51cd4c=!0x1);}async function _0x17c188(_0x204b3f,_0x211978,_0x18ec62){const _0x508252=window[_0x3de925([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3de925([0x66,0x72,0x6f,0x6d])](_0x302b60(_0x18ec62),_0x3d5167=>_0x3d5167[_0x3de925([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x33c28f=new window[(_0x3de925([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3de925([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x204b3f+_0x3de925([0x2e])+_0x211978),_0x245fe7=window[_0x3de925([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3de925([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x245fe7)return;const _0x435a70=await _0x245fe7[_0x3de925([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3de925([0x6a,0x77,0x6b]),_0x17cb38,{[_0x3de925([0x6e,0x61,0x6d,0x65])]:_0x3de925([0x45,0x43,0x44,0x53,0x41]),[_0x3de925([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3de925([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3de925([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x245fe7[_0x3de925([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3de925([0x6e,0x61,0x6d,0x65])]:_0x3de925([0x45,0x43,0x44,0x53,0x41]),[_0x3de925([0x68,0x61,0x73,0x68])]:{[_0x3de925([0x6e,0x61,0x6d,0x65])]:_0x3de925([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x435a70,_0x508252,_0x33c28f)||(_0x51cd4c=!0x1);}}function _0x3495f8(_0x4a3589){return _0x4a3589[_0x3de925([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3de925([0x65,0x79]))?JSON[_0x3de925([0x70,0x61,0x72,0x73,0x65])](_0x302b60(_0x4a3589)):null;}function _0x302b60(_0x5436e8){return window[_0x3de925([0x61,0x74,0x6f,0x62])](_0x5436e8[_0x3de925([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3de925([0x2b]))[_0x3de925([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3de925([0x2f])));}function _0x1a2c73(_0x54a308){let _0x945f81=0x1505;function _0x5dadbd(_0x11e5f2){for(let _0x1da419=0x0;_0x1da419<_0x11e5f2[_0x3de925([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1da419++){const _0x342b90=_0x11e5f2[_0x3de925([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1da419);_0x945f81=(_0x945f81<<0x5)+_0x945f81+_0x342b90,_0x945f81&=_0x945f81;}}function _0x5c20f9(_0x33db93){Array[_0x3de925([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x33db93)?_0x33db93[_0x3de925([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c20f9):_0x33db93&&typeof _0x33db93==_0x3de925([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3de925([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x33db93)[_0x3de925([0x73,0x6f,0x72,0x74])]()[_0x3de925([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x43c4c4,_0x1b82c8])=>{_0x5dadbd(_0x43c4c4),_0x5c20f9(_0x1b82c8);}):_0x5dadbd(window[_0x3de925([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x33db93));}return _0x5c20f9(_0x54a308),_0x945f81>>>0x0;}function _0x2ff7fa(_0x37b8a3){return _0x37b8a3[_0x3de925([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3de925([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3de925([0x30]));}function _0x1b1e99(_0x2d15b6){return _0x2d15b6[_0x3de925([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3de925([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3de925([0x6a,0x6f,0x69,0x6e])]('');}function _0x3f13f6(){}function _0x3de925(_0x4356a3){return _0x4356a3['map'](_0x3de757=>String['fromCharCode'](_0x3de757))['join']('');}_0x1c3e50(await _0x50ee50());}(this);}['_initSchema'](){const _0x14c76d=this['editor']['model']['schema'];_0x14c76d['isRegistered']('imageBlock')&&_0x14c76d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x14c76d['isRegistered']('imageInline')&&_0x14c76d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4319fb=this['editor'];_0x4319fb['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4319fb['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x6b71be=>_0x6b71be['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2f2c08=_0x4319fb['commands']['get']('replaceImageSource');_0x2f2c08&&this['listenTo'](_0x2f2c08,'cleanupImage',(_0x5cb8ee,[_0x4aa932,_0x8da245])=>{_0x4aa932['removeAttribute']('uploadcareImageId',_0x8da245);});}['_initConfig'](){const _0x59b86b=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3ec9c4=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x57ef81(_0x22bc19['document'],'uc-config',{..._0x59b86b,'pubkey':_0x3ec9c4,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x469091=>{if('closeMax'==_0x469091)return'#uc-icon-arrow-down';},_0x22bc19['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x57ef81(_0x22bc19['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x22bc19['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x163856=this['editor']['commands']['get']('insertImage');_0x163856&&this['listenTo'](_0x163856,'execute',()=>{const _0xeae272=this['editor']['model']['document']['selection']['getSelectedElement']();_0xeae272&&_0xeae272['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xeae272);});});const _0x476e8c=this['editor']['commands']['get']('uploadcareImageReplace');_0x476e8c&&this['listenTo'](_0x476e8c,'execute',()=>{const _0x211674=this['editor']['model']['document']['selection']['getSelectedElement']();_0x211674&&_0x211674['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x211674);});});}}class tt extends _0x29c9bc{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42c9b6){super(_0x42c9b6),_0x42c9b6['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3b9158['defineComponents'](_0x3b9158);}}class ii extends _0x5ca833{constructor(_0x5a4a1f){super(_0x5a4a1f);const t=_0x5a4a1f['t'],_0x3510e3=this['bindTemplate'],_0x1119e3=new _0x98b930();_0x1119e3['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':[_0x1119e3,{'text':_0x3510e3['to']('imageUploadProgress',_0x18973a=>t('Loading\x20image...')+'\x20('+(_0x18973a||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x5ca833{constructor(_0x1ca81d){super(_0x1ca81d);const t=_0x1ca81d['t'];this['set']('errorType',null);const _0x25d797=new _0x21bd89(_0x1ca81d);_0x25d797['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x25d797['withText']=!0x0,_0x25d797['class']='ck-button-action',_0x25d797['on']('execute',()=>{this['fire']('retry');}),_0x25d797['bind']('isVisible')['to'](this,'errorType',_0x6404ae=>'NotFound'!==_0x6404ae);const _0x2b2648=new _0xb34602();_0x2b2648['content']=_0x2b194e,_0x2b2648['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4e60e8=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':[_0x2b2648,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4e60e8['to']('errorType',_0xc240b4=>t('NotFound'!==_0xc240b4?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x25d797]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x5ca833{constructor(_0x906297,_0xbbfe96){super(_0x906297);const _0x4f0647=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xbbfe96,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4f0647['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x18500a,_0x3aaba3,_0x262c60){super(_0x18500a),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x18500a),this['_errorView']=new ti(_0x18500a),this['_editingView']=new ei(_0x18500a,_0x262c60),this['_focusableView']=new _0x5ca833(_0x18500a),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3aaba3),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'],_0xdb11f0=>{this['_addUploadcareImageEditorListeners'](_0xdb11f0);});}),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'](_0x22c8c9,_0x4c5610){const _0x238edb='uc-cloud-image-editor',_0x41830b=_0x22c8c9['querySelector'](_0x238edb);if(_0x41830b)return _0x4c5610(_0x41830b);const _0x12885a=new MutationObserver(_0xc0a91d=>{const _0xde5c43=_0xc0a91d['filter'](_0x16e39c=>_0x16e39c['target']===_0x22c8c9&&_0x16e39c['addedNodes']['length']>0x0&&_0x16e39c['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x238edb);_0xde5c43['length']&&(_0x12885a['disconnect'](),_0x4c5610(_0xde5c43[0x0]['addedNodes'][0x0]));});_0x12885a['observe'](_0x22c8c9,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x9a2ff2){_0x9a2ff2['addEventListener']('apply',_0x1986a6=>{this['fire']('apply',{'imageSrc':_0x1986a6['detail']['cdnUrl']});}),_0x9a2ff2['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x29a49c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2294c7,_0x4d57f2,_0x18914e){super(),this['_editor']=_0x2294c7,this['_dialog']=_0x4d57f2,this['_imageElement']=_0x18914e,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 _0x159747=this['_imageElement'],_0x11dcbb=_0x159747['getAttribute']('uploadcareImageId'),_0x234d8f=_0x159747['getAttribute']('src');if(_0x11dcbb)await this['_loadImageInfo'](_0x11dcbb,_0x234d8f);else{if(this['_imageCache']['has'](_0x234d8f)){const _0x51511f=this['_imageCache']['get'](_0x234d8f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x51511f['url'],this['imageDimension']=_0x51511f['dimension'],this['imageId']=_0x51511f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3c1252}=this['_editor'],t=_0x3c1252['t'],_0x421eb7=new X(_0x3c1252,this['imageStatus'],this['_attributes']);_0x421eb7['bind']('status')['to'](this,'imageStatus'),_0x421eb7['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x421eb7['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x421eb7['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x421eb7,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x38e2e4,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x421eb7,'position':_0x77b8fe['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x421eb7['focus']();},'onHide':()=>{_0x421eb7['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x198d52=>!M(_0x198d52,_0x421eb7['element'])}});}['_loadImageInfo'](_0x2c9b76,_0x17efce){return j['getInfo'](_0x2c9b76,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4b4b51=>{const {width:_0x426867,height:_0x110641}=_0x4b4b51['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x17efce,this['imageDimension']={'width':_0x426867,'height':_0x110641},this['imageId']=_0x2c9b76;})['catch'](_0x223d85=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x223d85['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x426aa3,_0x163088){return this['_getImageAsFile'](_0x426aa3)['then'](_0x4aa180=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x163088['signal'],'file':_0x4aa180,'onProgress':_0x3724c3=>{_0x3724c3&&_0x3724c3['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3724c3['value']));}}))['then'](_0x93bb86=>{const {width:_0x47dcd6,height:_0x383da2}=_0x93bb86['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x93bb86['cdnUrl'],this['imageDimension']={'width':_0x47dcd6,'height':_0x383da2},this['imageId']=_0x93bb86['uuid'],this['imageUploadProgress']=null;const _0x57be9d=_0x426aa3['getAttribute']('src');this['_imageCache']['set'](_0x57be9d,{'id':_0x93bb86['uuid'],'url':_0x93bb86['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3eaeb0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3eaeb0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x419cbd,_0x48e79a){_0x419cbd['on']('apply',(_0x1b7cf1,_0x39a912)=>{this['_replaceImage'](_0x48e79a,_0x39a912['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x419cbd['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x419cbd['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x28ab7c,_0x58d7bc,_0x5c6e70){const _0x2d4a64=this['_editor'],{width:_0xac9e29,height:_0x1d86a6}=F(_0x58d7bc,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xb3d84d,imageSources:_0x32258b}=k(_0x58d7bc,_0xac9e29);_0x2d4a64['model']['change'](_0x44c83d=>{if('$graveyard'===_0x28ab7c['root']['rootName']){_0x2d4a64['execute']('insertImage',{'imageType':_0x28ab7c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x28ab7c['getAttributes']()),'uploadcareImageId':_0x5c6e70,'src':_0xb3d84d,'sources':_0x32258b,'width':_0xac9e29,'height':_0x1d86a6}});const _0x165c91=_0x28ab7c['getChildren']();_0x28ab7c=_0x2d4a64['model']['document']['selection']['getSelectedElement']();for(const _0x1c09a6 of _0x165c91)_0x44c83d['append'](_0x44c83d['cloneElement'](_0x1c09a6),_0x28ab7c);}else _0x44c83d['setSelection'](_0x28ab7c,'on'),_0x2d4a64['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x28ab7c['getAttributes']()),'uploadcareImageId':_0x5c6e70,'src':_0xb3d84d,'sources':_0x32258b,'width':_0xac9e29,'height':_0x1d86a6},_0x28ab7c);_0x44c83d['setSelection'](_0x28ab7c,'on');});}async['_getImageAsFile'](_0x1f940e){const _0x34a2d2=_0x22bc19['window'],_0x35ff90=_0x22bc19['document']['location']['href'],_0x39322b=new _0x34a2d2['URL'](_0x1f940e['getAttribute']('src'),_0x35ff90);if('data:'===_0x39322b['protocol']){const _0x470c46=_0x39322b['href']['split'](','),_0x328c70=_0x470c46[0x0]['match'](/:(.*?);/)[0x1],_0x2ef9a4=_0x328c70['split']('/')[0x1],_0x49a136=_0x34a2d2['atob'](_0x470c46[_0x470c46['length']-0x1]);let _0x5a8fc5=_0x49a136['length'];const _0x37136a=new _0x34a2d2['Uint8Array'](_0x5a8fc5);for(;_0x5a8fc5--;)_0x37136a[_0x5a8fc5]=_0x49a136['charCodeAt'](_0x5a8fc5);return new _0x34a2d2['File']([_0x37136a],'image.'+_0x2ef9a4,{'type':_0x328c70});}const _0x1d9601=_0x39322b['href']['split']('/'),_0xba4952=_0x1d9601[_0x1d9601['length']-0x1],_0x238606=_0xba4952['split']('.')[0x1];return _0x34a2d2['fetch'](_0x39322b['href'])['then'](_0x43d09d=>_0x43d09d['clone']()['blob']())['then'](_0x221a7c=>new _0x34a2d2['File']([_0x221a7c],_0xba4952,{'type':'image/'+_0x238606}));}}class N extends _0x58d9ad{['imageEditController'];static get['requires'](){return[_0x3d6fc6];}['_isEditable'];constructor(_0x19157d){super(_0x19157d),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1fc651){const _0x4f25f7=R(_0x1fc651);return _0x375215=>!(!_0x375215||!_0x375215['is']('element','imageBlock')&&!_0x375215['is']('element','imageInline'))&&(!!_0x375215['hasAttribute']('uploadcareImageId')||!!_0x375215['hasAttribute']('src')&&_0x4f25f7(_0x375215['getAttribute']('src')));}(_0x19157d['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1349f6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1349f6);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x427b3c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x427b3c&&(_0x427b3c['is']('element','imageBlock')||_0x427b3c['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x3d6fc6),_0x427b3c),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x58d9ad{['refresh'](){const _0x2769e2=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2769e2&&(_0x2769e2['is']('element','imageBlock')||_0x2769e2['is']('element','imageInline')));}['execute'](_0x38829a){const _0xe9fe4f=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x14293c=>{_0x14293c['setAttributes'](_0x38829a,_0xe9fe4f),_0x14293c['removeAttribute']('srcset',_0xe9fe4f),_0x14293c['removeAttribute']('sizes',_0xe9fe4f);});}}class m extends _0x29c9bc{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3487ed,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x109cb9}=this;_0x109cb9['commands']['add']('uploadcareImageEdit',new N(_0x109cb9)),_0x109cb9['commands']['add']('uploadcareImageReplace',new O(_0x109cb9));}}class g extends _0x29c9bc{['_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 _0x2ff4c9=this['editor'];_0x2ff4c9['ui']['componentFactory']['add']('uploadcareImageEdit',_0x53258f=>{const _0x529cfd=_0x2ff4c9['commands']['get']('uploadcareImageEdit'),_0x1bc9e6=new _0x21bd89(_0x53258f),t=_0x53258f['t'];return _0x1bc9e6['set']({'icon':_0x38e2e4,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1bc9e6['bind']('isEnabled')['to'](_0x529cfd),_0x1bc9e6['bind']('isOn')['to'](_0x529cfd,'isActive'),this['listenTo'](_0x1bc9e6,'execute',()=>{_0x2ff4c9['execute']('uploadcareImageEdit'),_0x2ff4c9['editing']['view']['focus']();}),_0x1bc9e6;}),this['_initConfig']();}['_initConfig'](){const _0x41ce7c=_0x57ef81(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x41ce7c),this['listenTo'](this['editor'],'destroy',()=>{_0x41ce7c['remove']();});}}class et extends _0x29c9bc{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0x2bd51e,Command as _0x261aa2}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x52534c,IconGooglePhotos as _0x528d33,IconGoogleDrive as _0x5526f1,IconFacebook as _0x573873,IconDropbox as _0x570c7d,IconUploadcareLink as _0xac6f53,IconUploadcareImageUpload as _0x564fdc,IconError as _0x44e746,IconUploadcareImageEdit as _0x2d805d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1c9ac3,MenuBarMenuListItemButtonView as _0x3a53b3,View as _0x300e8c,FocusCycler as _0x184e6b,Dialog as _0x1a6a7c,DialogViewPosition as _0x8457fb,SpinnerView as _0x26768c,IconView as _0x73c148,Notification as _0x4235c2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x47859d,DomEmitterMixin as _0x3087ba,global as _0xafe6eb,getAncestors as _0x594e2c,ObservableMixin as _0x5945cc,uid as _0x71db4a,createElement as _0x1fc752}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x444b96}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1f16e8,info as _0x565afe}from'@uploadcare/upload-client';import*as _0x2b26d1 from'@uploadcare/file-uploader';var i=function(_0x34f68d){return _0x34f68d['Local']='local',_0x34f68d['URL']='url',_0x34f68d['Dropbox']='dropbox',_0x34f68d['GDrive']='gdrive',_0x34f68d['Facebook']='facebook',_0x34f68d['GPhotos']='gphotos',_0x34f68d['OneDrive']='onedrive',_0x34f68d;}({});function _(_0x1d0885,_0x4a7e80,_0x3a5f37){const t=_0x1d0885['t'],_0x870577=_0x1d0885['t'];switch(_0x4a7e80){case i['Local']:return{'text':_0x870577('Insert'===_0x3a5f37?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x870577('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3a5f37?_0x870577('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x870577('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3a5f37?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3a5f37?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3a5f37?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3a5f37?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3a5f37?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4a7e80;}}class e extends _0x2bd51e{['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 _0x30b2ab=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x194b89;for(const _0x296192 in _0x30b2ab){const _0x1033b7=_0x296192,_0x5d71c7=_0x30b2ab[_0x1033b7];if('uploadcareLicenseKeyValid'==_0x5d71c7||'uploadcareLicenseKeyInvalid'==_0x5d71c7||'uploadcareLicenseKeyExpired'==_0x5d71c7||'uploadcareLicenseKeyDomainLimit'==_0x5d71c7||'uploadcareLicenseKeyNotAllowed'==_0x5d71c7||'uploadcareLicenseKeyEvaluationLimit'==_0x5d71c7||'uploadcareLicenseKeyTrialLimit'==_0x5d71c7||'uploadcareLicenseKeyUsageLimit'==_0x5d71c7){delete _0x30b2ab[_0x1033b7],_0x194b89=_0x5d71c7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x194b89&&_0x30b2ab['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x194b89&&_0x30b2ab['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x194b89&&_0x30b2ab['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x194b89&&_0x30b2ab['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x194b89&&_0x30b2ab['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x194b89&&_0x30b2ab['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x194b89&&_0x30b2ab['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x57f709}=this,_0xc1f757=_0x57f709['commands']['get']('uploadcare');if(!_0xc1f757)return;const _0x140558=this['_normalizeConfigSourceList'](_0x57f709['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5b3794,_0x4e9e0)=>{const _0x5c37e3=this['_getIntegrationKey'](_0x4e9e0['type']);return _0x5b3794[_0x5c37e3]||(_0x5b3794[_0x5c37e3]=[]),_0x5b3794[_0x5c37e3]['push'](_0x4e9e0),_0x5b3794;},{});_0x57f709['plugins']['has']('ImageInsertUI')&&_0x57f709['commands']['get']('uploadcare')&&Object['entries'](_0x140558)['forEach'](([_0x346fbc,_0xde674])=>{_0x57f709['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x346fbc,'observable':()=>_0xc1f757,'buttonViewCreator':()=>this['_createToolbarButton'](_0xde674),'formViewCreator':()=>this['_createDropdownButtons'](_0xde674),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xde674),'override':'assetManager'!==_0x346fbc});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x17d91e){const {locale:_0x131181}=this['editor'];return _0x17d91e['map'](_0x2c714=>{const _0x21834c=_(_0x131181,_0x2c714,'Insert');switch(_0x2c714){case i['Local']:return{'icon':_0x564fdc,'type':i['Local'],..._0x21834c};case i['URL']:return{'icon':_0xac6f53,'type':i['URL'],..._0x21834c};case i['Dropbox']:return{'icon':_0x570c7d,'type':i['Dropbox'],..._0x21834c};case i['Facebook']:return{'icon':_0x573873,'type':i['Facebook'],..._0x21834c};case i['GDrive']:return{'icon':_0x5526f1,'type':i['GDrive'],..._0x21834c};case i['GPhotos']:return{'icon':_0x528d33,'type':i['GPhotos'],..._0x21834c};case i['OneDrive']:return{'icon':_0x52534c,'type':i['OneDrive'],..._0x21834c};}});}['_getIntegrationKey'](_0x6f2a09){switch(_0x6f2a09){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x280abd,_0x30cbac){const _0x5cbb99=this['editor'],_0x1703a6=new _0x280abd(_0x5cbb99['locale']),_0x58b3d3=_0x5cbb99['commands']['get']('uploadcare');return _0x1703a6['bind']('isEnabled')['to'](_0x58b3d3),_0x1703a6['on']('execute',()=>{_0x58b3d3['execute'](_0x30cbac);}),_0x1703a6;}['_createToolbarButton'](_0x45180a){const {locale:_0x275406}=this['editor'],_0x44f6fc=this['editor']['plugins']['get']('ImageInsertUI'),_0x1828cf=_0x45180a[0x0],_0x111268=this['_createButton'](_0x1c9ac3,_0x1828cf['type']);return _0x111268['icon']=_0x1828cf['icon'],_0x111268['bind']('label')['to'](_0x44f6fc,'isImageSelected',_0x20920a=>_(_0x275406,_0x1828cf['type'],_0x20920a?'Replace':'Insert')['text']),_0x111268['tooltip']=!0x0,_0x111268;}['_createDropdownButtons'](_0x3e9a21){const {locale:_0x57a9b3}=this['editor'],_0x2f7aa7=this['editor']['plugins']['get']('ImageInsertUI');return _0x3e9a21['map'](_0x12c44c=>{const _0x3cf5a8=this['_createButton'](_0x1c9ac3,_0x12c44c['type']);return _0x3cf5a8['withText']=!0x0,_0x3cf5a8['icon']=_0x12c44c['icon'],_0x3cf5a8['bind']('label')['to'](_0x2f7aa7,'isImageSelected',_0x86bdc1=>_(_0x57a9b3,_0x12c44c['type'],_0x86bdc1?'Replace':'Insert')['text']),_0x3cf5a8;});}['_createMenuBarButtons'](_0x8deac9){return _0x8deac9['map'](_0x55d038=>{const _0x58e822=this['_createButton'](_0x3a53b3,_0x55d038['type']);return _0x58e822['icon']=_0x55d038['icon'],_0x58e822['label']=_0x55d038['shortText'],_0x58e822;});}}class F extends _0x300e8c{['focusTracker'];['focusCycler'];constructor(_0x4f6b48){super(_0x4f6b48),this['focusTracker']=new _0x47859d(),this['focusCycler']=new _0x184e6b({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x5938e0,_0x545d43){super(_0x5938e0),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-'+_0x545d43}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x42ca65,_0x3e6588){const _0x4e4553=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x10ac4d=>_0x10ac4d<=_0x3e6588)['map'](_0x3552f9=>_0x42ca65['replace'](/\/$/,'')+'/-/resize/'+_0x3552f9+'x/\x20'+_0x3552f9+'w');return{'imageFallbackUrl':_0x42ca65,'imageSources':[{'srcset':_0x4e4553['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3e6588+'px)\x20100vw,\x20'+_0x3e6588+'px','type':'image/webp'}]};}function C(_0x4d0abe,_0x534d2b,_0x227cac){const _0x5421f2=_0x4d0abe['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5421f2?parseInt(_0x5421f2[0x1],0xa):_0x534d2b,'height':_0x5421f2?parseInt(_0x5421f2[0x2],0xa):_0x227cac};}function p(_0x3dfbc9,_0x100ca8){const _0x5747ce=new(_0x3087ba())(),_0x25001c=_0x3dfbc9['plugins']['get']('ImageUtils'),_0x49dd50=_0x3dfbc9['editing']['mapper']['toViewElement'](_0x100ca8),_0x4c7e35=_0x25001c['findViewImgElement'](_0x49dd50),_0x5c5651=_0x3dfbc9['editing']['view']['domConverter']['viewToDom'](_0x4c7e35),_0x49897d=_0x100ca8['getAttribute']('width'),_0x38a95a=_0x100ca8['getAttribute']('height'),_0x4afbcc='image-processing';_0x3dfbc9['editing']['view']['change'](_0x6a42f=>{_0x6a42f['addClass'](_0x4afbcc,_0x49dd50),_0x6a42f['setStyle']('aspect-ratio',_0x49897d+'/'+_0x38a95a,_0x4c7e35);}),_0x5747ce['listenTo'](_0x5c5651,'load',()=>{_0x5747ce['stopListening'](_0x5c5651,'load'),_0x3dfbc9['editing']['view']['change'](_0x156067=>{_0x156067['removeClass'](_0x4afbcc,_0x49dd50),_0x156067['removeStyle']('aspect-ratio',_0x4c7e35);});});}function G(_0x169cdb){if(Array['isArray'](_0x169cdb)){const _0xeac480=_0x169cdb['map'](G);return _0x5b9fff=>_0xeac480['some'](_0x3d831b=>_0x3d831b(_0x5b9fff));}if('origin'==_0x169cdb){const _0x9f850b=_0xafe6eb['window']['location']['origin'];return _0x5a55dc=>new URL(_0x5a55dc,_0xafe6eb['document']['baseURI'])['origin']==_0x9f850b;}return'function'==typeof _0x169cdb?_0x169cdb:_0x169cdb instanceof RegExp?_0x2ccbd0=>!(!_0x2ccbd0['match'](_0x169cdb)&&!_0x2ccbd0['replace'](/^https?:\/\//,'')['match'](_0x169cdb)):()=>!0x1;}function S(_0x5c05ff,_0x35d2c7){return _0x594e2c(_0x5c05ff['target'])['includes'](_0x35d2c7);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x5945cc(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4b649d,_0x461a72,_0x564bec){super(),this['_editor']=_0x4b649d,this['_editing']=_0x461a72,this['_dialog']=_0x4b649d['plugins']['get'](_0x1a6a7c),this['_api']=_0x461a72['ctxElement']['getAPI'](),this['_type']=_0x564bec,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:_0x47dd4c,model:_0x49413d}=this['_editor'],_0x479b15=_0x49413d['document']['selection']['getSelectedElement'](),_0x4b3f23=_0x479b15&&(_0x479b15['is']('element','imageBlock')||_0x479b15['is']('element','imageInline'));this['_formView']=new x(_0x47dd4c,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x564fdc,'title':_(_0x47dd4c,this['_type'],_0x4b3f23?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x8457fb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x309971=>!S(_0x309971,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5ca278}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x46c356=>{const _0x10862c=_0x5ca278['length'];for(const _0x1275bc of _0x5ca278){const _0xf3c08c=_0x1275bc===_0x5ca278[_0x10862c-0x1],{cdnUrl:_0x17cbd6,fileInfo:_0x6e85a3}=_0x1275bc;if(!_0x17cbd6||!_0x6e85a3)continue;const {width:_0x45abf1,height:_0x3ea4ae}=_0x6e85a3['imageInfo'],_0x55a514=C(_0x17cbd6,_0x45abf1,_0x3ea4ae),_0x57a139=k(_0x17cbd6,_0x55a514['width']),_0x5a1a32={'id':_0x6e85a3['uuid'],'type':'image','attributes':{'imageDimension':_0x55a514,..._0x57a139}};this['_insertAsset'](_0x5a1a32,_0xf3c08c,_0x46c356);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xb63bde=>{'idle'===_0xb63bde['detail']['status']&&!_0xb63bde['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x28f1ae,_0x445be1,_0xb118dd){const _0x11023d=this['_editor']['model']['document']['selection'],_0x4ea137=_0x11023d['getSelectedElement'](),_0x5e9674=!(!_0x4ea137||!_0x4ea137['is']('element','imageInline'));_0xb118dd['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x28f1ae,_0x5e9674),_0x445be1||_0xb118dd['setSelection'](_0x11023d['getLastPosition']());}['_insertImage'](_0xa35375,_0x14f388){const _0x280ec3=this['_editor'],{imageDimension:_0x4c3fee,imageFallbackUrl:_0x548b1d,imageSources:_0x22ddbb}=_0xa35375['attributes'];_0x280ec3['execute']('insertImage',{'imageType':_0x14f388?'imageInline':null,'source':{'uploadcareImageId':_0xa35375['id'],'src':_0x548b1d,'sources':_0x22ddbb,..._0x4c3fee}});}}class w extends _0x261aa2{['_editing'];['_controller']=null;static get['requires'](){return[_0x1a6a7c,o];}constructor(_0x204d9f){super(_0x204d9f),this['_editing']=_0x204d9f['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3330a3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x3330a3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3e1a7f,publicKey:_0x40d599,signal:_0xa75271,onProgress:_0x1d17cf}){return _0x1f16e8(_0x3e1a7f,{'publicKey':_0x40d599,'store':'auto','signal':_0xa75271,'onProgress':_0x1d17cf});}static['getInfo'](_0xd446d4,_0xaae8d1){return _0x565afe(_0xd446d4,_0xaae8d1);}}class f extends _0x2bd51e{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x444b96,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x96f224=this['editor'];if(!!!_0x96f224['config']['get']('uploadcare'))return;_0x96f224['plugins']['get'](_0x444b96)['createUploadAdapter']=_0x5d576f=>new A(_0x5d576f,_0x96f224),_0x96f224['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x556c6b,{imageElement:_0x41b99b,data:_0x23ea1e})=>{_0x96f224['model']['change'](_0x3af393=>{_0x3af393['setAttribute']('uploadcareImageId',_0x23ea1e['uploadcareImageId'],_0x41b99b);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x9c69c1,_0x1ec1af){this['loader']=_0x9c69c1,this['editor']=_0x1ec1af,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1206e0=this['editor']['config']['get']('uploadcare.pubkey'),_0x1eb9a5=await this['loader']['file'];return j['upload']({'file':_0x1eb9a5,'publicKey':_0x1206e0,'signal':this['controller']['signal'],'onProgress':_0x246044=>{_0x246044&&_0x246044['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x246044['value']);}})['then'](async _0x204094=>{const {imageFallbackUrl:_0x27a576,imageSources:_0x308e1c}=k(_0x204094['cdnUrl'],_0x204094['imageInfo']['width']);return{'uploadcareImageId':_0x204094['uuid'],'default':_0x27a576,'sources':_0x308e1c};})['catch'](()=>{const _0x1a3d76=t('Cannot\x20upload\x20file:')+('\x20'+_0x1eb9a5['name']+'.');return Promise['reject'](_0x1a3d76);});}['abort'](){this['controller']['abort']();}}class o extends _0x2bd51e{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1a6a7c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x57619e){super(_0x57619e),this['ucContextId']=_0x71db4a();}['init'](){const _0x576615=this['editor'];_0x576615['commands']['add']('uploadcare',new w(_0x576615));}['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 _0xc87c7=_0xafe6eb['document']['querySelector']('input[uploadcare-file-input]');_0xc87c7&&_0xc87c7['remove']();}),async function(_0x362d8){const _0x2c98b9=_0x486248([0x75,0x45,0x4d,0x35,0x31,0x54,0x67,0x6f,0x70,0x51,0x7a,0x42,0x61,0x62,0x49,0x6c,0x38,0x53,0x73,0x63,0x36,0x6e,0x37,0x32,0x52,0x65,0x64,0x41,0x58,0x39,0x34,0x56,0x48,0x68,0x59,0x76,0x71,0x6a,0x4f,0x4b,0x66,0x74,0x72,0x5a,0x43,0x44,0x47,0x33,0x77,0x4c,0x69,0x4e,0x6b,0x6d,0x30,0x78,0x46,0x4a,0x57,0x79,0x55,0x50]),_0x48f79b=0x7746ce3b,_0x2df76c=0x7741a2f3^_0x48f79b,_0x376bb3=window[_0x486248([0x44,0x61,0x74,0x65])][_0x486248([0x6e,0x6f,0x77])](),_0x2d262c=_0x362d8[_0x486248([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x316225=new window[(_0x486248([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59e125=>{_0x2d262c[_0x486248([0x6f,0x6e,0x63,0x65])](_0x486248([0x72,0x65,0x61,0x64,0x79]),_0x59e125);}),_0x29479f={[_0x486248([0x6b,0x74,0x79])]:_0x486248([0x45,0x43]),[_0x486248([0x75,0x73,0x65])]:_0x486248([0x73,0x69,0x67]),[_0x486248([0x63,0x72,0x76])]:_0x486248([0x50,0x2d,0x32,0x35,0x36]),[_0x486248([0x78])]:_0x486248([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]),[_0x486248([0x79])]:_0x486248([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]),[_0x486248([0x61,0x6c,0x67])]:_0x486248([0x45,0x53,0x32,0x35,0x36])},_0x37a26b=_0x2d262c[_0x486248([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x486248([0x67,0x65,0x74])](_0x486248([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e99dd(){let _0x98b00a,_0xf82d99=null,_0x1d1bb6=null;try{if(_0x37a26b==_0x486248([0x47,0x50,0x4c]))return _0x486248([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x98b00a=_0x5b6057(),!_0x98b00a)return _0x486248([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x98b00a[_0x486248([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d1bb6=_0x1b26fb(_0x98b00a[_0x486248([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x98b00a[_0x486248([0x6a,0x74,0x69])])),await _0x175b2d()?_0x216f8e()?_0x18c23f()?_0x486248([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3c4c99()?(_0x98b00a[_0x486248([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x486248([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xf82d99=_0x2c1468(_0x486248([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x98b00a[_0x486248([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x486248([0x74,0x72,0x69,0x61,0x6c])&&(_0xf82d99=_0x2c1468(_0x486248([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x26d580()):_0x486248([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x486248([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x486248([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x486248([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x18c23f(){const _0x109856=[_0x486248([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x486248([0x74,0x72,0x69,0x61,0x6c])][_0x486248([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x98b00a[_0x486248([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x376bb3/0x3e8:0xe10*_0x2df76c;return _0x98b00a[_0x486248([0x65,0x78,0x70])]<_0x109856;}function _0x216f8e(){const _0x13890b=_0x98b00a[_0x486248([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x13890b&&(!!_0x13890b[_0x486248([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x486248([0x2a]))||!!_0x13890b[_0x486248([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x486248([0x55,0x50,0x4c,0x43])));}function _0x3c4c99(){const _0x1abaa3=_0x98b00a[_0x486248([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1abaa3||0x0==_0x1abaa3[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a8c63}=new URL(window[_0x486248([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1abaa3[_0x486248([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a8c63))return!0x0;const _0x4d5186=_0x4a8c63[_0x486248([0x73,0x70,0x6c,0x69,0x74])](_0x486248([0x2e]));return _0x1abaa3[_0x486248([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c41e5=>_0x3c41e5[_0x486248([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x486248([0x2a])))[_0x486248([0x6d,0x61,0x70])](_0x456b6c=>_0x456b6c[_0x486248([0x73,0x70,0x6c,0x69,0x74])](_0x486248([0x2e])))[_0x486248([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b96e9=>_0x3b96e9[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4d5186[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x486248([0x6d,0x61,0x70])](_0x168fbf=>Array(_0x4d5186[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x168fbf[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x486248([0x66,0x69,0x6c,0x6c])](_0x168fbf[0x0]===_0x486248([0x2a])?_0x486248([0x2a]):'')[_0x486248([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x168fbf))[_0x486248([0x73,0x6f,0x6d,0x65])](_0x5044ad=>_0x4d5186[_0x486248([0x65,0x76,0x65,0x72,0x79])]((_0xd03c19,_0x4cd60d)=>_0x5044ad[_0x4cd60d]===_0xd03c19||_0x5044ad[_0x4cd60d]===_0x486248([0x2a])));}function _0x26d580(){return _0xf82d99&&_0x1d1bb6?new window[(_0x486248([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x34c884,_0x40d553)=>{_0xf82d99[_0x486248([0x74,0x68,0x65,0x6e])](_0x34c884,_0x40d553),_0x1d1bb6[_0x486248([0x74,0x68,0x65,0x6e])](_0x2f6fc9=>{_0x2f6fc9!=_0x486248([0x56,0x61,0x6c,0x69,0x64])&&_0x34c884(_0x2f6fc9);},_0x40d553);}):_0xf82d99||_0x1d1bb6||_0x486248([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b26fb(_0x59aaca,_0x103929){return new window[(_0x486248([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53f00e=>{if(_0x181747())return _0x53f00e(_0x486248([0x56,0x61,0x6c,0x69,0x64]));_0x5040c1(),_0x2d262c[_0x486248([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x486248([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c3800=!0x1;const _0x3ef8b0=_0x71db4a();function _0x221441(_0x5c310e){return!!_0x5c310e&&(typeof _0x5c310e===_0x486248([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5c310e===_0x486248([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5c310e[_0x486248([0x74,0x68,0x65,0x6e])]===_0x486248([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5c310e[_0x486248([0x63,0x61,0x74,0x63,0x68])]===_0x486248([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1094bf(_0x367313){_0x896da4(_0x367313)[_0x486248([0x74,0x68,0x65,0x6e])](_0x3addd4=>{if(!_0x3addd4||_0x3addd4[_0x486248([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x486248([0x6f,0x6b]))return _0x486248([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x25464c(_0x26372e(_0x3ef8b0+_0x103929))!=_0x3addd4[_0x486248([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x486248([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x486248([0x56,0x61,0x6c,0x69,0x64]);})[_0x486248([0x74,0x68,0x65,0x6e])](_0x6cd858=>(_0x2a3335(),_0x6cd858),()=>{const _0x3e3979=_0x57138b();return null==_0x3e3979?(_0x2a3335(),_0x486248([0x56,0x61,0x6c,0x69,0x64])):_0x486248(_0x376bb3-_0x3e3979>(0x534a4a3b^_0x48f79b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x486248([0x74,0x68,0x65,0x6e])](_0x53f00e)[_0x486248([0x63,0x61,0x74,0x63,0x68])](()=>{_0x53f00e(_0x486248([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1369e8=0x777020bb^_0x48f79b;function _0x2a3335(){const _0x4568a2=_0x486248([0x6c,0x6c,0x63,0x74,0x2d])+_0x25464c(_0x26372e(_0x59aaca)),_0x1ad558=_0x39491f(_0x25464c(window[_0x486248([0x4d,0x61,0x74,0x68])][_0x486248([0x63,0x65,0x69,0x6c])](_0x376bb3/_0x1369e8)));window[_0x486248([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x486248([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4568a2,_0x1ad558);}function _0x57138b(){const _0x3d9fee=_0x486248([0x6c,0x6c,0x63,0x74,0x2d])+_0x25464c(_0x26372e(_0x59aaca)),_0x7a1bd4=window[_0x486248([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x486248([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d9fee);return _0x7a1bd4?window[_0x486248([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39491f(_0x7a1bd4),0x10)*_0x1369e8:null;}function _0x896da4(_0x23f854){return new window[(_0x486248([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d9c88,_0x352299)=>{_0x23f854[_0x486248([0x74,0x68,0x65,0x6e])](_0x4d9c88,_0x352299),window[_0x486248([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x352299,0x77471afb^_0x48f79b);});}}_0x2d262c[_0x486248([0x6f,0x6e])](_0x486248([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x62c51,_0x436a30)=>{if(_0x436a30[0x0]!=_0x59aaca)return _0x53f00e(_0x486248([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x436a30[0x1]={..._0x436a30[0x1],[_0x486248([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ef8b0};},{[_0x486248([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x486248([0x68,0x69,0x67,0x68])}),_0x2d262c[_0x486248([0x6f,0x6e])](_0x486248([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xadafb8=>{_0x221441(_0xadafb8[_0x486248([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c3800=!0x0,_0x1094bf(_0xadafb8[_0x486248([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x486248([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x486248([0x6c,0x6f,0x77])}),_0x316225[_0x486248([0x74,0x68,0x65,0x6e])](()=>{_0x2c3800||_0x53f00e(_0x486248([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x181747(){return _0x2d262c[_0x486248([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x486248([0x76,0x69,0x65,0x77])][_0x486248([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x486248([0x61,0x75,0x74,0x6f]);}function _0x5040c1(){_0x2d262c[_0x486248([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x486248([0x76,0x69,0x65,0x77])][_0x486248([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x486248([0x61,0x75,0x74,0x6f]);}}function _0x2c1468(_0x890f8e){const _0x136e38=[new window[(_0x486248([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12a475=>setTimeout(_0x12a475,0x774ff0f7^_0x48f79b)),_0x316225[_0x486248([0x74,0x68,0x65,0x6e])](()=>new window[(_0x486248([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x98e720=>{let _0x203778=0x0;_0x2d262c[_0x486248([0x6d,0x6f,0x64,0x65,0x6c])][_0x486248([0x6f,0x6e])](_0x486248([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2a0783,_0x3c5905)=>{_0x3c5905[0x0][_0x486248([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x203778++,_0x203778==(0x7746cfc3^_0x48f79b)&&(_0x98e720(),_0x2a0783[_0x486248([0x6f,0x66,0x66])]());});}))];return window[_0x486248([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x486248([0x72,0x61,0x63,0x65])](_0x136e38)[_0x486248([0x74,0x68,0x65,0x6e])](()=>_0x890f8e);}async function _0x1ee446(){await _0x316225,_0x2d262c[_0x486248([0x6d,0x6f,0x64,0x65,0x6c])][_0x486248([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4e47f9,_0x2d262c[_0x486248([0x6d,0x6f,0x64,0x65,0x6c])][_0x486248([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4e47f9,_0x2d262c[_0x486248([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x486248([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x238d74(_0x24cab0){const _0x51b514=_0x439fe0();_0x2d262c[_0x51b514]=_0x486248([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x24cab0,_0x24cab0!=_0x486248([0x56,0x61,0x6c,0x69,0x64])&&_0x1ee446();}function _0x439fe0(){const _0x5e5434=window[_0x486248([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x486248([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x486248([0x6e,0x6f,0x77])]())[_0x486248([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x486248([0x2e]),'');let _0x59f6b6=_0x486248([0x75]);for(let _0x2b8183=0x0;_0x2b8183<_0x5e5434[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b8183+=0x2){let _0x53aefa=window[_0x486248([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e5434[_0x486248([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b8183,_0x2b8183+0x2));_0x53aefa>=_0x2c98b9[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x53aefa-=_0x2c98b9[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x59f6b6+=_0x2c98b9[_0x53aefa];}return _0x59f6b6;}function _0x5b6057(){const _0x4f18a3=_0x37a26b[_0x486248([0x73,0x70,0x6c,0x69,0x74])](_0x486248([0x2e]));if(0x3!=_0x4f18a3[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3aa6d4(_0x4f18a3[0x1]);function _0x3aa6d4(_0x5e1b26){const _0x177e30=_0x9df76c(_0x5e1b26);return _0x177e30&&_0x5de749()?_0x177e30:null;function _0x5de749(){const _0x226e03=_0x177e30[_0x486248([0x6a,0x74,0x69])],_0x5812ce=window[_0x486248([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x226e03[_0x486248([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x226e03[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2cb97c={..._0x177e30,[_0x486248([0x6a,0x74,0x69])]:_0x226e03[_0x486248([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x226e03[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2cb97c[_0x486248([0x76,0x63])],_0x26372e(_0x2cb97c)==_0x5812ce;}}}async function _0x175b2d(){let _0x4f7e48=!0x0;try{const _0x3ea502=_0x37a26b[_0x486248([0x73,0x70,0x6c,0x69,0x74])](_0x486248([0x2e])),[_0xcf935c,_0x19fbae,_0x36729d]=_0x3ea502;return _0x40162f(_0xcf935c),await _0xb873a3(_0xcf935c,_0x19fbae,_0x36729d),_0x4f7e48;}catch{return!0x1;}function _0x40162f(_0x40026c){const _0x277e5d=_0x9df76c(_0x40026c);_0x277e5d&&_0x277e5d[_0x486248([0x61,0x6c,0x67])]==_0x486248([0x45,0x53,0x32,0x35,0x36])||(_0x4f7e48=!0x1);}async function _0xb873a3(_0x4a6e9a,_0x26238e,_0x1e8eb7){const _0x30e772=window[_0x486248([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x486248([0x66,0x72,0x6f,0x6d])](_0x122abd(_0x1e8eb7),_0x2ed2cb=>_0x2ed2cb[_0x486248([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x33f122=new window[(_0x486248([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x486248([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4a6e9a+_0x486248([0x2e])+_0x26238e),_0x5cd9a8=window[_0x486248([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x486248([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5cd9a8)return;const _0x5b238b=await _0x5cd9a8[_0x486248([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x486248([0x6a,0x77,0x6b]),_0x29479f,{[_0x486248([0x6e,0x61,0x6d,0x65])]:_0x486248([0x45,0x43,0x44,0x53,0x41]),[_0x486248([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x486248([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x486248([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5cd9a8[_0x486248([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x486248([0x6e,0x61,0x6d,0x65])]:_0x486248([0x45,0x43,0x44,0x53,0x41]),[_0x486248([0x68,0x61,0x73,0x68])]:{[_0x486248([0x6e,0x61,0x6d,0x65])]:_0x486248([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5b238b,_0x30e772,_0x33f122)||(_0x4f7e48=!0x1);}}function _0x9df76c(_0x59ea3c){return _0x59ea3c[_0x486248([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x486248([0x65,0x79]))?JSON[_0x486248([0x70,0x61,0x72,0x73,0x65])](_0x122abd(_0x59ea3c)):null;}function _0x122abd(_0x41254c){return window[_0x486248([0x61,0x74,0x6f,0x62])](_0x41254c[_0x486248([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x486248([0x2b]))[_0x486248([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x486248([0x2f])));}function _0x26372e(_0x351d86){let _0x5ee39e=0x1505;function _0xc216e9(_0x457fed){for(let _0x3d0d6e=0x0;_0x3d0d6e<_0x457fed[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d0d6e++){const _0x532b2f=_0x457fed[_0x486248([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d0d6e);_0x5ee39e=(_0x5ee39e<<0x5)+_0x5ee39e+_0x532b2f,_0x5ee39e&=_0x5ee39e;}}function _0x5e442d(_0x3dce6f){Array[_0x486248([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3dce6f)?_0x3dce6f[_0x486248([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5e442d):_0x3dce6f&&typeof _0x3dce6f==_0x486248([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x486248([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3dce6f)[_0x486248([0x73,0x6f,0x72,0x74])]()[_0x486248([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x43923e,_0x23dc1c])=>{_0xc216e9(_0x43923e),_0x5e442d(_0x23dc1c);}):_0xc216e9(window[_0x486248([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3dce6f));}return _0x5e442d(_0x351d86),_0x5ee39e>>>0x0;}function _0x25464c(_0x5c0d22){return _0x5c0d22[_0x486248([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x486248([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x486248([0x30]));}function _0x39491f(_0x31d10e){return _0x31d10e[_0x486248([0x73,0x70,0x6c,0x69,0x74])]('')[_0x486248([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x486248([0x6a,0x6f,0x69,0x6e])]('');}function _0x4e47f9(){}function _0x486248(_0x292a73){return _0x292a73['map'](_0x3c64a7=>String['fromCharCode'](_0x3c64a7))['join']('');}_0x238d74(await _0x4e99dd());}(this);}['_initSchema'](){const _0x35740b=this['editor']['model']['schema'];_0x35740b['isRegistered']('imageBlock')&&_0x35740b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x35740b['isRegistered']('imageInline')&&_0x35740b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x353179=this['editor'];_0x353179['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x353179['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x31b19d=>_0x31b19d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x16b57d=_0x353179['commands']['get']('replaceImageSource');_0x16b57d&&this['listenTo'](_0x16b57d,'cleanupImage',(_0x4da020,[_0x3b3d83,_0x5be4fe])=>{_0x3b3d83['removeAttribute']('uploadcareImageId',_0x5be4fe);});}['_initConfig'](){const _0x30bdad=this['editor']['config']['get']('uploadcare.uploader')||{},_0x34aec3=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1fc752(_0xafe6eb['document'],'uc-config',{..._0x30bdad,'pubkey':_0x34aec3,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x530fb2=>{if('closeMax'==_0x530fb2)return'#uc-icon-arrow-down';},_0xafe6eb['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1fc752(_0xafe6eb['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0xafe6eb['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x7e3acf=this['editor']['commands']['get']('insertImage');_0x7e3acf&&this['listenTo'](_0x7e3acf,'execute',()=>{const _0x1f59a3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1f59a3&&_0x1f59a3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1f59a3);});});const _0x3f7559=this['editor']['commands']['get']('uploadcareImageReplace');_0x3f7559&&this['listenTo'](_0x3f7559,'execute',()=>{const _0x5033d9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5033d9&&_0x5033d9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5033d9);});});}}class tt extends _0x2bd51e{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3d158f){super(_0x3d158f),_0x3d158f['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2b26d1['defineComponents'](_0x2b26d1);}}class ii extends _0x300e8c{constructor(_0x348a87){super(_0x348a87);const t=_0x348a87['t'],_0x48752a=this['bindTemplate'],_0x1bdd7a=new _0x26768c();_0x1bdd7a['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':[_0x1bdd7a,{'text':_0x48752a['to']('imageUploadProgress',_0x2e5f3d=>t('Loading\x20image...')+'\x20('+(_0x2e5f3d||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x300e8c{constructor(_0x324920){super(_0x324920);const t=_0x324920['t'];this['set']('errorType',null);const _0x2b5a03=new _0x1c9ac3(_0x324920);_0x2b5a03['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2b5a03['withText']=!0x0,_0x2b5a03['class']='ck-button-action',_0x2b5a03['on']('execute',()=>{this['fire']('retry');}),_0x2b5a03['bind']('isVisible')['to'](this,'errorType',_0x131c0e=>'NotFound'!==_0x131c0e);const _0x2ebf7d=new _0x73c148();_0x2ebf7d['content']=_0x44e746,_0x2ebf7d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3d7eb0=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':[_0x2ebf7d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3d7eb0['to']('errorType',_0x2aba9b=>t('NotFound'!==_0x2aba9b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2b5a03]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x300e8c{constructor(_0xf693d3,_0x1f2e9b){super(_0xf693d3);const _0x2d84e0=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1f2e9b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2d84e0['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1761e9,_0x52748a,_0x536cac){super(_0x1761e9),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1761e9),this['_errorView']=new ti(_0x1761e9),this['_editingView']=new ei(_0x1761e9,_0x536cac),this['_focusableView']=new _0x300e8c(_0x1761e9),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x52748a),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'],_0x1ce8b8=>{this['_addUploadcareImageEditorListeners'](_0x1ce8b8);});}),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'](_0xb5b03e,_0x57ffa9){const _0x2371e6='uc-cloud-image-editor',_0x38c787=_0xb5b03e['querySelector'](_0x2371e6);if(_0x38c787)return _0x57ffa9(_0x38c787);const _0x527ee3=new MutationObserver(_0x4a5017=>{const _0x22c078=_0x4a5017['filter'](_0x56d541=>_0x56d541['target']===_0xb5b03e&&_0x56d541['addedNodes']['length']>0x0&&_0x56d541['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2371e6);_0x22c078['length']&&(_0x527ee3['disconnect'](),_0x57ffa9(_0x22c078[0x0]['addedNodes'][0x0]));});_0x527ee3['observe'](_0xb5b03e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4c1a5d){_0x4c1a5d['addEventListener']('apply',_0x58cc9a=>{this['fire']('apply',{'imageSrc':_0x58cc9a['detail']['cdnUrl']});}),_0x4c1a5d['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x5945cc(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x51b488,_0x380b26,_0x2700d6){super(),this['_editor']=_0x51b488,this['_dialog']=_0x380b26,this['_imageElement']=_0x2700d6,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 _0x54d545=this['_imageElement'],_0x1ee4a1=_0x54d545['getAttribute']('uploadcareImageId'),_0x47e076=_0x54d545['getAttribute']('src');if(_0x1ee4a1)await this['_loadImageInfo'](_0x1ee4a1,_0x47e076);else{if(this['_imageCache']['has'](_0x47e076)){const _0x287821=this['_imageCache']['get'](_0x47e076);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x287821['url'],this['imageDimension']=_0x287821['dimension'],this['imageId']=_0x287821['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x377138}=this['_editor'],t=_0x377138['t'],_0x474780=new X(_0x377138,this['imageStatus'],this['_attributes']);_0x474780['bind']('status')['to'](this,'imageStatus'),_0x474780['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x474780['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x474780['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x474780,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2d805d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x474780,'position':_0x8457fb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x474780['focus']();},'onHide':()=>{_0x474780['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x31bbb4=>!S(_0x31bbb4,_0x474780['element'])}});}['_loadImageInfo'](_0x2cdb65,_0x5b3aa8){return j['getInfo'](_0x2cdb65,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x54e89b=>{const {width:_0x28a30e,height:_0x3c6648}=_0x54e89b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5b3aa8,this['imageDimension']={'width':_0x28a30e,'height':_0x3c6648},this['imageId']=_0x2cdb65;})['catch'](_0x36d257=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x36d257['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2e797d,_0x1dbcdf){return this['_getImageAsFile'](_0x2e797d)['then'](_0xabecb5=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1dbcdf['signal'],'file':_0xabecb5,'onProgress':_0x519e80=>{_0x519e80&&_0x519e80['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x519e80['value']));}}))['then'](_0x5505e5=>{const {width:_0x1350ad,height:_0xd07e8f}=_0x5505e5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5505e5['cdnUrl'],this['imageDimension']={'width':_0x1350ad,'height':_0xd07e8f},this['imageId']=_0x5505e5['uuid'],this['imageUploadProgress']=null;const _0x13060c=_0x2e797d['getAttribute']('src');this['_imageCache']['set'](_0x13060c,{'id':_0x5505e5['uuid'],'url':_0x5505e5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2381b8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2381b8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x577b0a,_0x2b0daa){_0x577b0a['on']('apply',(_0x42c5fc,_0x38deff)=>{this['_replaceImage'](_0x2b0daa,_0x38deff['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x577b0a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x577b0a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x17e03e,_0x3e50af,_0x1449de){const _0x1f6f17=this['_editor'],{width:_0x287bd1,height:_0x34af40}=C(_0x3e50af,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4bf513,imageSources:_0x3f9a19}=k(_0x3e50af,_0x287bd1);_0x1f6f17['model']['change'](_0x23ae61=>{if('$graveyard'===_0x17e03e['root']['rootName']){_0x1f6f17['execute']('insertImage',{'imageType':_0x17e03e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x17e03e['getAttributes']()),'uploadcareImageId':_0x1449de,'src':_0x4bf513,'sources':_0x3f9a19,'width':_0x287bd1,'height':_0x34af40}});const _0x1d1a8d=_0x17e03e['getChildren']();_0x17e03e=_0x1f6f17['model']['document']['selection']['getSelectedElement']();for(const _0x5edee9 of _0x1d1a8d)_0x23ae61['append'](_0x23ae61['cloneElement'](_0x5edee9),_0x17e03e);}else _0x23ae61['setSelection'](_0x17e03e,'on'),_0x1f6f17['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x17e03e['getAttributes']()),'uploadcareImageId':_0x1449de,'src':_0x4bf513,'sources':_0x3f9a19,'width':_0x287bd1,'height':_0x34af40},_0x17e03e);_0x23ae61['setSelection'](_0x17e03e,'on');});}async['_getImageAsFile'](_0x1a77d5){const _0x15c487=_0xafe6eb['window'],_0x5cd3f4=_0xafe6eb['document']['location']['href'],_0x22edda=new _0x15c487['URL'](_0x1a77d5['getAttribute']('src'),_0x5cd3f4);if('data:'===_0x22edda['protocol']){const _0x2ee529=_0x22edda['href']['split'](','),_0x480f5e=_0x2ee529[0x0]['match'](/:(.*?);/)[0x1],_0x450f53=_0x480f5e['split']('/')[0x1],_0x57d53f=_0x15c487['atob'](_0x2ee529[_0x2ee529['length']-0x1]);let _0x1b0ca0=_0x57d53f['length'];const _0x58003f=new _0x15c487['Uint8Array'](_0x1b0ca0);for(;_0x1b0ca0--;)_0x58003f[_0x1b0ca0]=_0x57d53f['charCodeAt'](_0x1b0ca0);return new _0x15c487['File']([_0x58003f],'image.'+_0x450f53,{'type':_0x480f5e});}const _0x4dfa79=_0x22edda['href']['split']('/'),_0x52269c=_0x4dfa79[_0x4dfa79['length']-0x1],_0x4d6083=_0x52269c['split']('.')[0x1];return _0x15c487['fetch'](_0x22edda['href'])['then'](_0x378278=>_0x378278['clone']()['blob']())['then'](_0x2b58c8=>new _0x15c487['File']([_0x2b58c8],_0x52269c,{'type':'image/'+_0x4d6083}));}}class O extends _0x261aa2{['imageEditController'];static get['requires'](){return[_0x1a6a7c];}['_isEditable'];constructor(_0x525ff6){super(_0x525ff6),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xaa8b8d){const _0x130e00=G(_0xaa8b8d);return _0x520fb2=>!(!_0x520fb2||!_0x520fb2['is']('element','imageBlock')&&!_0x520fb2['is']('element','imageInline'))&&(!!_0x520fb2['hasAttribute']('uploadcareImageId')||!!_0x520fb2['hasAttribute']('src')&&_0x130e00(_0x520fb2['getAttribute']('src')));}(_0x525ff6['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x35d05f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x35d05f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x28574a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x28574a&&(_0x28574a['is']('element','imageBlock')||_0x28574a['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x1a6a7c),_0x28574a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x261aa2{['refresh'](){const _0x52f97e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x52f97e&&(_0x52f97e['is']('element','imageBlock')||_0x52f97e['is']('element','imageInline')));}['execute'](_0x206ce9){const _0x144b5d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2f69ae=>{_0x2f69ae['setAttributes'](_0x206ce9,_0x144b5d),_0x2f69ae['removeAttribute']('srcset',_0x144b5d),_0x2f69ae['removeAttribute']('sizes',_0x144b5d);});}}class m extends _0x2bd51e{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4235c2,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x48bc1c}=this;_0x48bc1c['commands']['add']('uploadcareImageEdit',new O(_0x48bc1c)),_0x48bc1c['commands']['add']('uploadcareImageReplace',new R(_0x48bc1c));}}class g extends _0x2bd51e{['_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 _0x4455ff=this['editor'];_0x4455ff['ui']['componentFactory']['add']('uploadcareImageEdit',_0xe8eefa=>{const _0x55cccb=_0x4455ff['commands']['get']('uploadcareImageEdit'),_0x4e3a07=new _0x1c9ac3(_0xe8eefa),t=_0xe8eefa['t'];return _0x4e3a07['set']({'icon':_0x2d805d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4e3a07['bind']('isEnabled')['to'](_0x55cccb),_0x4e3a07['bind']('isOn')['to'](_0x55cccb,'isActive'),this['listenTo'](_0x4e3a07,'execute',()=>{_0x4455ff['execute']('uploadcareImageEdit'),_0x4455ff['editing']['view']['focus']();}),_0x4e3a07;}),this['_initConfig']();}['_initConfig'](){const _0x434d0d=_0x1fc752(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x434d0d),this['listenTo'](this['editor'],'destroy',()=>{_0x434d0d['remove']();});}}class et extends _0x2bd51e{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "46.0.0-alpha.4",
3
+ "version": "46.0.0-alpha.5",
4
4
  "description": "Uploadcare feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,14 +23,14 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "46.0.0-alpha.4",
27
- "@ckeditor/ckeditor5-icons": "46.0.0-alpha.4",
28
- "@ckeditor/ckeditor5-image": "46.0.0-alpha.4",
29
- "@ckeditor/ckeditor5-theme-lark": "46.0.0-alpha.4",
30
- "@ckeditor/ckeditor5-ui": "46.0.0-alpha.4",
31
- "@ckeditor/ckeditor5-upload": "46.0.0-alpha.4",
32
- "@ckeditor/ckeditor5-utils": "46.0.0-alpha.4",
33
- "ckeditor5": "46.0.0-alpha.4",
26
+ "@ckeditor/ckeditor5-core": "46.0.0-alpha.5",
27
+ "@ckeditor/ckeditor5-icons": "46.0.0-alpha.5",
28
+ "@ckeditor/ckeditor5-image": "46.0.0-alpha.5",
29
+ "@ckeditor/ckeditor5-theme-lark": "46.0.0-alpha.5",
30
+ "@ckeditor/ckeditor5-ui": "46.0.0-alpha.5",
31
+ "@ckeditor/ckeditor5-upload": "46.0.0-alpha.5",
32
+ "@ckeditor/ckeditor5-utils": "46.0.0-alpha.5",
33
+ "ckeditor5": "46.0.0-alpha.5",
34
34
  "@uploadcare/file-uploader": "1.16.3-alpha.0",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4041df=_0x5171;(function(_0x5c3bce,_0x1c9e3e){const _0x17a796=_0x5171,_0x2e7400=_0x5c3bce();while(!![]){try{const _0x8d5662=-parseInt(_0x17a796(0x143))/0x1+parseInt(_0x17a796(0x148))/0x2*(parseInt(_0x17a796(0x162))/0x3)+-parseInt(_0x17a796(0x15a))/0x4*(-parseInt(_0x17a796(0x155))/0x5)+-parseInt(_0x17a796(0x12e))/0x6+-parseInt(_0x17a796(0x153))/0x7*(parseInt(_0x17a796(0x132))/0x8)+-parseInt(_0x17a796(0x166))/0x9*(-parseInt(_0x17a796(0x16d))/0xa)+-parseInt(_0x17a796(0x135))/0xb;if(_0x8d5662===_0x1c9e3e)break;else _0x2e7400['push'](_0x2e7400['shift']());}catch(_0x876ff8){_0x2e7400['push'](_0x2e7400['shift']());}}}(_0x160e,0xdc2a3));import{IconUploadcareImageUpload as _0x236745}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x18917e}from'ckeditor5/src/utils.js';import{Dialog as _0x41c75c,DialogViewPosition as _0x3ad8a1}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0xf1a615}from'./uploadcareformview.js';function _0x160e(){const _0x3f21e1=['stopListening','initFlow','selection','_editing','imageBlock','30410bKptYo','view','execute','_dialog','Replace','setAttribute','_type','change','done-click','detail','EDITOR_TOP_CENTER','linkHref','10777686ISFKNN','Local','doneFlow','ctxElement','104kOvFKZ','getOutputCollectionState','_initDialog','8939799YqNrJW','show','attributes','plugins','ucContextId','source-list','stopDelegating','getSelectedElement','length','_insertImage','text','element','status','_api','171610suvFyA','Insert','document','getAPI','focus','500DFwAtC','hide','setCurrentActivity','configElement','insertImage','uuid','_formView','width','model','removeSelectionAttribute','isOpen','568624vpFoDW','imageInfo','2245oeggqG','_insertAsset','getLastPosition','idle','addEventListener','15868wlAXaA','uploadCare','get','editing','destroy','removeAllFiles','setSelection','_initListeners','20598LpUOhh','imageInline','image','allEntries','3672DiXtKu','_editor'];_0x160e=function(){return _0x3f21e1;};return _0x160e();}function _0x5171(_0x42487b,_0x1223db){const _0x160ee9=_0x160e();return _0x5171=function(_0x517162,_0x5deb24){_0x517162=_0x517162-0x124;let _0x10bddd=_0x160ee9[_0x517162];return _0x10bddd;},_0x5171(_0x42487b,_0x1223db);}import{UploadcareSource as _0x5c0a98}from'../uploadcareconfig.js';import{getTranslation as _0x455149}from'../utils/common-translations.js';import{getImageUrls as _0x3e95a7,getImageDimension as _0x38d318}from'../utils/editingutils.js';import{isAncestor as _0x46f708}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
- _0x18917e(){[_0x4041df(0x167)];[_0x4041df(0x125)];[_0x4041df(0x16b)];[_0x4041df(0x142)];[_0x4041df(0x128)]=null;[_0x4041df(0x14e)]=null;constructor(_0x4a4f92,_0x3413f7,_0x4b08e3){const _0x1ff83b=_0x4041df;super(),this[_0x1ff83b(0x167)]=_0x4a4f92,this[_0x1ff83b(0x16b)]=_0x3413f7,this[_0x1ff83b(0x125)]=_0x4a4f92[_0x1ff83b(0x138)][_0x1ff83b(0x15c)](_0x41c75c),this[_0x1ff83b(0x142)]=_0x3413f7[_0x1ff83b(0x131)][_0x1ff83b(0x146)](),this[_0x1ff83b(0x128)]=_0x4b08e3,this[_0x1ff83b(0x16b)][_0x1ff83b(0x14b)][_0x1ff83b(0x127)](_0x1ff83b(0x13a),this[_0x1ff83b(0x128)]),this[_0x1ff83b(0x134)](),this[_0x1ff83b(0x161)](),this[_0x1ff83b(0x142)][_0x1ff83b(0x169)]();}[_0x4041df(0x15e)](){const _0x290e4d=_0x4041df;this[_0x290e4d(0x14e)]&&(this[_0x290e4d(0x14e)][_0x290e4d(0x15e)](),this[_0x290e4d(0x14e)]=null),this[_0x290e4d(0x142)]&&this[_0x290e4d(0x142)][_0x290e4d(0x130)](),this[_0x290e4d(0x168)](),this[_0x290e4d(0x13b)]();}[_0x4041df(0x134)](){const _0x34ef43=_0x4041df,{locale:_0x5b836d,model:_0x575387}=this[_0x34ef43(0x167)],_0x16317d=_0x575387[_0x34ef43(0x145)][_0x34ef43(0x16a)][_0x34ef43(0x13c)](),_0x3d22e7=_0x16317d&&(_0x16317d['is'](_0x34ef43(0x140),_0x34ef43(0x16c))||_0x16317d['is'](_0x34ef43(0x140),_0x34ef43(0x163)));this[_0x34ef43(0x14e)]=new _0xf1a615(_0x5b836d,this[_0x34ef43(0x16b)][_0x34ef43(0x139)]),this[_0x34ef43(0x125)][_0x34ef43(0x136)]({'id':_0x34ef43(0x15b),'icon':_0x236745,'title':_0x455149(_0x5b836d,this[_0x34ef43(0x128)],_0x3d22e7?_0x34ef43(0x126):_0x34ef43(0x144))[_0x34ef43(0x13f)],'content':this[_0x34ef43(0x14e)],'position':_0x3ad8a1[_0x34ef43(0x12c)],'isModal':!0x0,'onShow':()=>{const _0x517e38=_0x34ef43;this[_0x517e38(0x14e)][_0x517e38(0x147)]();},'onHide':()=>{const _0x1ff01c=_0x34ef43;this[_0x1ff01c(0x142)][_0x1ff01c(0x15f)](),this[_0x1ff01c(0x167)][_0x1ff01c(0x15d)][_0x1ff01c(0x16e)][_0x1ff01c(0x147)](),this[_0x1ff01c(0x15e)]();},'keystrokeHandlerOptions':{'filter':_0xad56b0=>!_0x46f708(_0xad56b0,this[_0x34ef43(0x14e)][_0x34ef43(0x140)])}});}[_0x4041df(0x161)](){const _0x55f146=_0x4041df;this[_0x55f146(0x16b)][_0x55f146(0x131)][_0x55f146(0x159)](_0x55f146(0x12a),()=>{const _0x4ad74b=_0x55f146,{allEntries:_0x281d3c}=this[_0x4ad74b(0x142)][_0x4ad74b(0x133)]();this[_0x4ad74b(0x167)][_0x4ad74b(0x150)][_0x4ad74b(0x129)](_0x4e958e=>{const _0x4f52dc=_0x4ad74b,_0x5a97b8=_0x281d3c[_0x4f52dc(0x13d)];for(const _0x12fc5e of _0x281d3c){const _0x49c9de=_0x12fc5e===_0x281d3c[_0x5a97b8-0x1],{cdnUrl:_0xd7a376,fileInfo:_0x416d03}=_0x12fc5e;if(!_0xd7a376||!_0x416d03)continue;const {width:_0x50e761,height:_0x46c709}=_0x416d03[_0x4f52dc(0x154)],_0x5d6ca7=_0x38d318(_0xd7a376,_0x50e761,_0x46c709),_0x11cc2a=_0x3e95a7(_0xd7a376,_0x5d6ca7[_0x4f52dc(0x14f)]),_0x1fe378={'id':_0x416d03[_0x4f52dc(0x14d)],'type':_0x4f52dc(0x164),'attributes':{'imageDimension':_0x5d6ca7,..._0x11cc2a}};this[_0x4f52dc(0x156)](_0x1fe378,_0x49c9de,_0x4e958e);}}),this[_0x4ad74b(0x125)][_0x4ad74b(0x149)]();}),this[_0x55f146(0x16b)][_0x55f146(0x131)][_0x55f146(0x159)](_0x55f146(0x129),_0x3c6e5f=>{const _0x2536ca=_0x55f146;_0x2536ca(0x158)===_0x3c6e5f[_0x2536ca(0x12b)][_0x2536ca(0x141)]&&!_0x3c6e5f[_0x2536ca(0x12b)][_0x2536ca(0x165)][_0x2536ca(0x13d)]&&this[_0x2536ca(0x125)][_0x2536ca(0x152)]&&(this[_0x2536ca(0x128)]===_0x5c0a98[_0x2536ca(0x12f)]?this[_0x2536ca(0x142)][_0x2536ca(0x14a)](_0x5c0a98[_0x2536ca(0x12f)]):this[_0x2536ca(0x142)][_0x2536ca(0x169)]());});}[_0x4041df(0x156)](_0x297f27,_0xd1f81c,_0x3c738a){const _0x2f5271=_0x4041df,_0x404df2=this[_0x2f5271(0x167)][_0x2f5271(0x150)][_0x2f5271(0x145)][_0x2f5271(0x16a)],_0x49c63f=_0x404df2[_0x2f5271(0x13c)](),_0x10cfcd=!(!_0x49c63f||!_0x49c63f['is'](_0x2f5271(0x140),_0x2f5271(0x163)));_0x3c738a[_0x2f5271(0x151)](_0x2f5271(0x12d)),this[_0x2f5271(0x13e)](_0x297f27,_0x10cfcd),_0xd1f81c||_0x3c738a[_0x2f5271(0x160)](_0x404df2[_0x2f5271(0x157)]());}[_0x4041df(0x13e)](_0x540a8c,_0x278de3){const _0x33f7e2=_0x4041df,_0x31ef0b=this[_0x33f7e2(0x167)],{imageDimension:_0x9be4d5,imageFallbackUrl:_0x1339ce,imageSources:_0x5562b5}=_0x540a8c[_0x33f7e2(0x137)];_0x31ef0b[_0x33f7e2(0x124)](_0x33f7e2(0x14c),{'imageType':_0x278de3?_0x33f7e2(0x163):null,'source':{'uploadcareImageId':_0x540a8c['id'],'src':_0x1339ce,'sources':_0x5562b5,..._0x9be4d5}});}}
23
+ const _0x3a0655=_0xfdb2;(function(_0x5246b0,_0x27d4d5){const _0x19fd1d=_0xfdb2,_0x21db09=_0x5246b0();while(!![]){try{const _0x13fff7=-parseInt(_0x19fd1d(0xe6))/0x1*(-parseInt(_0x19fd1d(0xbd))/0x2)+parseInt(_0x19fd1d(0xb5))/0x3*(-parseInt(_0x19fd1d(0xa4))/0x4)+-parseInt(_0x19fd1d(0xc8))/0x5+-parseInt(_0x19fd1d(0xbf))/0x6+-parseInt(_0x19fd1d(0xc2))/0x7*(parseInt(_0x19fd1d(0xb6))/0x8)+-parseInt(_0x19fd1d(0xa8))/0x9+parseInt(_0x19fd1d(0xb7))/0xa;if(_0x13fff7===_0x27d4d5)break;else _0x21db09['push'](_0x21db09['shift']());}catch(_0x47c7ea){_0x21db09['push'](_0x21db09['shift']());}}}(_0x1a70,0x5da05));import{IconUploadcareImageUpload as _0x166599}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x294f7b}from'ckeditor5/src/utils.js';function _0xfdb2(_0x4e971a,_0x1e2552){const _0x1a70d4=_0x1a70();return _0xfdb2=function(_0xfdb26,_0x5ed2c8){_0xfdb26=_0xfdb26-0x9e;let _0x362b24=_0x1a70d4[_0xfdb26];return _0x362b24;},_0xfdb2(_0x4e971a,_0x1e2552);}import{Dialog as _0x1eeec0,DialogViewPosition as _0x13cd06}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x3cf46e}from'./uploadcareformview.js';import{UploadcareSource as _0x4ea7fd}from'../uploadcareconfig.js';import{getTranslation as _0x180057}from'../utils/common-translations.js';import{getImageUrls as _0x14641c,getImageDimension as _0x4028d0}from'../utils/editingutils.js';import{isAncestor as _0xc1676d}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
+ _0x294f7b(){[_0x3a0655(0x9e)];[_0x3a0655(0xb9)];[_0x3a0655(0xb3)];[_0x3a0655(0xe2)];[_0x3a0655(0xd9)]=null;[_0x3a0655(0xbb)]=null;constructor(_0x577d21,_0x3b529a,_0x1c1384){const _0x5c5145=_0x3a0655;super(),this[_0x5c5145(0x9e)]=_0x577d21,this[_0x5c5145(0xb3)]=_0x3b529a,this[_0x5c5145(0xb9)]=_0x577d21[_0x5c5145(0xb0)][_0x5c5145(0xab)](_0x1eeec0),this[_0x5c5145(0xe2)]=_0x3b529a[_0x5c5145(0xc1)][_0x5c5145(0xd2)](),this[_0x5c5145(0xd9)]=_0x1c1384,this[_0x5c5145(0xb3)][_0x5c5145(0xd4)][_0x5c5145(0xa0)](_0x5c5145(0xca),this[_0x5c5145(0xd9)]),this[_0x5c5145(0xaa)](),this[_0x5c5145(0xaf)](),this[_0x5c5145(0xe2)][_0x5c5145(0xc3)]();}[_0x3a0655(0xdc)](){const _0x26e03b=_0x3a0655;this[_0x26e03b(0xbb)]&&(this[_0x26e03b(0xbb)][_0x26e03b(0xdc)](),this[_0x26e03b(0xbb)]=null),this[_0x26e03b(0xe2)]&&this[_0x26e03b(0xe2)][_0x26e03b(0xa1)](),this[_0x26e03b(0xd7)](),this[_0x26e03b(0xdd)]();}[_0x3a0655(0xaa)](){const _0x5478e8=_0x3a0655,{locale:_0x9ce3c9,model:_0x209b4c}=this[_0x5478e8(0x9e)],_0x217bac=_0x209b4c[_0x5478e8(0xe3)][_0x5478e8(0xcc)][_0x5478e8(0xe4)](),_0x3982e0=_0x217bac&&(_0x217bac['is'](_0x5478e8(0xa2),_0x5478e8(0xa3))||_0x217bac['is'](_0x5478e8(0xa2),_0x5478e8(0xa6)));this[_0x5478e8(0xbb)]=new _0x3cf46e(_0x9ce3c9,this[_0x5478e8(0xb3)][_0x5478e8(0xb1)]),this[_0x5478e8(0xb9)][_0x5478e8(0xc7)]({'id':_0x5478e8(0xce),'icon':_0x166599,'title':_0x180057(_0x9ce3c9,this[_0x5478e8(0xd9)],_0x3982e0?_0x5478e8(0xba):_0x5478e8(0xae))[_0x5478e8(0xcf)],'content':this[_0x5478e8(0xbb)],'position':_0x13cd06[_0x5478e8(0xe7)],'isModal':!0x0,'onShow':()=>{const _0x2f45d2=_0x5478e8;this[_0x2f45d2(0xbb)][_0x2f45d2(0xbe)]();},'onHide':()=>{const _0x314bdf=_0x5478e8;this[_0x314bdf(0xe2)][_0x314bdf(0xd5)](),this[_0x314bdf(0x9e)][_0x314bdf(0xda)][_0x314bdf(0xc9)][_0x314bdf(0xbe)](),this[_0x314bdf(0xdc)]();},'keystrokeHandlerOptions':{'filter':_0x48488d=>!_0xc1676d(_0x48488d,this[_0x5478e8(0xbb)][_0x5478e8(0xa2)])}});}[_0x3a0655(0xaf)](){const _0x33f796=_0x3a0655;this[_0x33f796(0xb3)][_0x33f796(0xc1)][_0x33f796(0xe0)](_0x33f796(0xd0),()=>{const _0x196d49=_0x33f796,{allEntries:_0x10604d}=this[_0x196d49(0xe2)][_0x196d49(0xc6)]();this[_0x196d49(0x9e)][_0x196d49(0xcd)][_0x196d49(0x9f)](_0x1a0604=>{const _0x22dfc8=_0x196d49,_0x3223eb=_0x10604d[_0x22dfc8(0xd1)];for(const _0x5ebe4c of _0x10604d){const _0x3de14c=_0x5ebe4c===_0x10604d[_0x3223eb-0x1],{cdnUrl:_0x422760,fileInfo:_0x1782a5}=_0x5ebe4c;if(!_0x422760||!_0x1782a5)continue;const {width:_0x4fab46,height:_0x778d32}=_0x1782a5[_0x22dfc8(0xd8)],_0x11be0e=_0x4028d0(_0x422760,_0x4fab46,_0x778d32),_0x56c22e=_0x14641c(_0x422760,_0x11be0e[_0x22dfc8(0xad)]),_0x5a070a={'id':_0x1782a5[_0x22dfc8(0xa9)],'type':_0x22dfc8(0xe5),'attributes':{'imageDimension':_0x11be0e,..._0x56c22e}};this[_0x22dfc8(0xd3)](_0x5a070a,_0x3de14c,_0x1a0604);}}),this[_0x196d49(0xb9)][_0x196d49(0xbc)]();}),this[_0x33f796(0xb3)][_0x33f796(0xc1)][_0x33f796(0xe0)](_0x33f796(0x9f),_0x5c9583=>{const _0xfa8130=_0x33f796;_0xfa8130(0xc0)===_0x5c9583[_0xfa8130(0xa5)][_0xfa8130(0xa7)]&&!_0x5c9583[_0xfa8130(0xa5)][_0xfa8130(0xb4)][_0xfa8130(0xd1)]&&this[_0xfa8130(0xb9)][_0xfa8130(0xcb)]&&(this[_0xfa8130(0xd9)]===_0x4ea7fd[_0xfa8130(0xb2)]?this[_0xfa8130(0xe2)][_0xfa8130(0xc5)](_0x4ea7fd[_0xfa8130(0xb2)]):this[_0xfa8130(0xe2)][_0xfa8130(0xc3)]());});}[_0x3a0655(0xd3)](_0x34bc26,_0x2132e6,_0x3e4bb7){const _0x192b9d=_0x3a0655,_0x115aa0=this[_0x192b9d(0x9e)][_0x192b9d(0xcd)][_0x192b9d(0xe3)][_0x192b9d(0xcc)],_0x4fa57e=_0x115aa0[_0x192b9d(0xe4)](),_0x3eb6ee=!(!_0x4fa57e||!_0x4fa57e['is'](_0x192b9d(0xa2),_0x192b9d(0xa6)));_0x3e4bb7[_0x192b9d(0xde)](_0x192b9d(0xd6)),this[_0x192b9d(0xdf)](_0x34bc26,_0x3eb6ee),_0x2132e6||_0x3e4bb7[_0x192b9d(0xac)](_0x115aa0[_0x192b9d(0xe1)]());}[_0x3a0655(0xdf)](_0x54f798,_0x7a7bca){const _0x3542dc=_0x3a0655,_0x53bbbb=this[_0x3542dc(0x9e)],{imageDimension:_0x1223aa,imageFallbackUrl:_0x7adff9,imageSources:_0x3fc72a}=_0x54f798[_0x3542dc(0xc4)];_0x53bbbb[_0x3542dc(0xdb)](_0x3542dc(0xb8),{'imageType':_0x7a7bca?_0x3542dc(0xa6):null,'source':{'uploadcareImageId':_0x54f798['id'],'src':_0x7adff9,'sources':_0x3fc72a,..._0x1223aa}});}}function _0x1a70(){const _0x26266d=['3244CMYXUn','detail','imageInline','status','4109769oUcWHn','uuid','_initDialog','get','setSelection','width','Insert','_initListeners','plugins','ucContextId','Local','_editing','allEntries','1167mAturm','8rPUctZ','20120920OXkBET','insertImage','_dialog','Replace','_formView','hide','22218xJArGf','focus','1136292yiYccU','idle','ctxElement','3585974kFqLsw','initFlow','attributes','setCurrentActivity','getOutputCollectionState','show','3051420QOPyKs','view','source-list','isOpen','selection','model','uploadCare','text','done-click','length','getAPI','_insertAsset','configElement','removeAllFiles','linkHref','stopListening','imageInfo','_type','editing','execute','destroy','stopDelegating','removeSelectionAttribute','_insertImage','addEventListener','getLastPosition','_api','document','getSelectedElement','image','41ZkLetr','EDITOR_TOP_CENTER','_editor','change','setAttribute','doneFlow','element','imageBlock'];_0x1a70=function(){return _0x26266d;};return _0x1a70();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2a50e6=_0x9a10;function _0x416c(){var _0x13c894=['focus','uc-file-uploader-inline','4AQPFwd','2646287Quvczx','ck-reset_all-excluded','ck-uploadcare-theme','1967740LIYrXn','div','setTemplate','uc-light','828909KXHKGr','ck-uploadcare-form','element','uploader-','509348MjZXLp','2kNdCoQ','423318VyISdY','3129440jbotYo','1597185LQvAIr','getFocusableElement'];_0x416c=function(){return _0x13c894;};return _0x416c();}function _0x9a10(_0x5d9e90,_0x251b26){var _0x416cec=_0x416c();return _0x9a10=function(_0x9a1027,_0x156e3c){_0x9a1027=_0x9a1027-0x17f;var _0x41efa2=_0x416cec[_0x9a1027];return _0x41efa2;},_0x9a10(_0x5d9e90,_0x251b26);}(function(_0xf635ff,_0x3b52af){var _0x3a56dd=_0x9a10,_0x5631e6=_0xf635ff();while(!![]){try{var _0x19ff55=parseInt(_0x3a56dd(0x181))/0x1*(-parseInt(_0x3a56dd(0x180))/0x2)+-parseInt(_0x3a56dd(0x190))/0x3*(parseInt(_0x3a56dd(0x188))/0x4)+parseInt(_0x3a56dd(0x18c))/0x5+parseInt(_0x3a56dd(0x182))/0x6+parseInt(_0x3a56dd(0x189))/0x7+parseInt(_0x3a56dd(0x183))/0x8+-parseInt(_0x3a56dd(0x184))/0x9;if(_0x19ff55===_0x3b52af)break;else _0x5631e6['push'](_0x5631e6['shift']());}catch(_0x383667){_0x5631e6['push'](_0x5631e6['shift']());}}}(_0x416c,0x41f7e));import{DialogFocusManagerView as _0x24c21f}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x24c21f{constructor(_0x1ef328,_0x472d35){var _0x1fdffe=_0x9a10;super(_0x1ef328),this[_0x1fdffe(0x18e)]({'tag':_0x1fdffe(0x18d),'attributes':{'class':['ck',_0x1fdffe(0x18a),_0x1fdffe(0x191)],'tabindex':'-1'},'children':[{'tag':_0x1fdffe(0x187),'attributes':{'class':[_0x1fdffe(0x18f),_0x1fdffe(0x18b)],'ctx-name':_0x1fdffe(0x17f)+_0x472d35}},this[_0x1fdffe(0x185)]()]});}[_0x2a50e6(0x186)](){var _0x17dd4d=_0x2a50e6;this[_0x17dd4d(0x192)][_0x17dd4d(0x186)]();}}
23
+ function _0x1c1f(_0x36f551,_0x55a548){var _0x28922e=_0x2892();return _0x1c1f=function(_0x1c1f8c,_0x50bbd7){_0x1c1f8c=_0x1c1f8c-0xf3;var _0x123467=_0x28922e[_0x1c1f8c];return _0x123467;},_0x1c1f(_0x36f551,_0x55a548);}var _0x278222=_0x1c1f;(function(_0x1aeb50,_0x54b4f8){var _0x123ec7=_0x1c1f,_0x4692cc=_0x1aeb50();while(!![]){try{var _0x2ea934=-parseInt(_0x123ec7(0xfd))/0x1+parseInt(_0x123ec7(0x100))/0x2*(parseInt(_0x123ec7(0xfa))/0x3)+-parseInt(_0x123ec7(0xf6))/0x4*(-parseInt(_0x123ec7(0x104))/0x5)+parseInt(_0x123ec7(0xf9))/0x6*(-parseInt(_0x123ec7(0xfb))/0x7)+parseInt(_0x123ec7(0x105))/0x8+parseInt(_0x123ec7(0xf4))/0x9*(-parseInt(_0x123ec7(0xff))/0xa)+parseInt(_0x123ec7(0x102))/0xb;if(_0x2ea934===_0x54b4f8)break;else _0x4692cc['push'](_0x4692cc['shift']());}catch(_0x50b6e0){_0x4692cc['push'](_0x4692cc['shift']());}}}(_0x2892,0xe92d7));import{DialogFocusManagerView as _0xa43a0b}from'../utils/dialogfocusmanagerview.js';function _0x2892(){var _0x1b197e=['21778RbEBQa','ck-reset_all-excluded','4459136JroWzk','uc-light','41165wUroOm','8622872cxZXPo','getFocusableElement','uc-file-uploader-inline','ck-uploadcare-theme','element','18RxBhjg','div','12rbbKlB','setTemplate','uploader-','12cNJrXN','297MEtYHL','1697269ZSHqpf','focus','72164fndHSg','ck-uploadcare-form','5368760Rmdqqb'];_0x2892=function(){return _0x1b197e;};return _0x2892();}import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0xa43a0b{constructor(_0x49c6f3,_0x3e6d95){var _0x288fb4=_0x1c1f;super(_0x49c6f3),this[_0x288fb4(0xf7)]({'tag':_0x288fb4(0xf5),'attributes':{'class':['ck',_0x288fb4(0x101),_0x288fb4(0xfe)],'tabindex':'-1'},'children':[{'tag':_0x288fb4(0x107),'attributes':{'class':[_0x288fb4(0x103),_0x288fb4(0x108)],'ctx-name':_0x288fb4(0xf8)+_0x3e6d95}},this[_0x288fb4(0x106)]()]});}[_0x278222(0xfc)](){var _0x4f4fbe=_0x278222;this[_0x4f4fbe(0xf3)][_0x4f4fbe(0xfc)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5707(){const _0x1bc5fa=['downcast','remove','body','3635376IUEBIJ','uc-config','config','map','15081693jNXaqW','selection','PictureEditing','for','3ztsodG','querySelector','add','fromCharCode','_initImageProcessingIndicator','1263044nVbJHZ','locale','insertImage','uploadcare.pubkey','imageInline','get','execute','_configElement','uploadcareImageId','5OCzCkN','elementToAttribute','conversion','join','listenTo','contentLanguage','_initSchema','data-uc-image-id','closeMax','isRegistered','href','model','ucContextId','cleanupImage','isOfficialPlugin','uploadcare','_initConfig','view','#uc-icon-arrow-down','pluginName','14147efkeXR','requires','true','getSelectedElement','getAttribute','ctxElement','uc-upload-ctx-provider','configElement','_initCtx','_ctxElement','once','403504ECsMEo','uploadcare.uploader','destroy','extend','\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','1551212ndquPh','commands','_initConversion','render','removeAttribute','init','UploadcareEditing','3430gHBOKq','1842HIsyni','document','editor','uploadcareImageReplace','upcast','afterInit','schema','replaceImageSource','imageBlock','input[uploadcare-file-input]','iconHrefResolver','appendChild','editing','isPremiumPlugin','attributeToAttribute','3429PNtlEu','uploader-'];_0x5707=function(){return _0x1bc5fa;};return _0x5707();}const _0x1e45ea=_0xe84f;(function(_0x44bc20,_0x229cb8){const _0x4a8b3b=_0xe84f,_0x14d493=_0x44bc20();while(!![]){try{const _0x92e848=-parseInt(_0x4a8b3b(0x1ec))/0x1+-parseInt(_0x4a8b3b(0x1f1))/0x2*(parseInt(_0x4a8b3b(0x1bf))/0x3)+-parseInt(_0x4a8b3b(0x1c4))/0x4*(-parseInt(_0x4a8b3b(0x1cd))/0x5)+parseInt(_0x4a8b3b(0x1f9))/0x6*(-parseInt(_0x4a8b3b(0x1e1))/0x7)+parseInt(_0x4a8b3b(0x20d))/0x8+-parseInt(_0x4a8b3b(0x208))/0x9*(-parseInt(_0x4a8b3b(0x1f8))/0xa)+parseInt(_0x4a8b3b(0x211))/0xb;if(_0x92e848===_0x229cb8)break;else _0x14d493['push'](_0x14d493['shift']());}catch(_0x322c4b){_0x14d493['push'](_0x14d493['shift']());}}}(_0x5707,0x73534));import{Plugin as _0x434317}from'ckeditor5/src/core.js';function _0xe84f(_0x51a019,_0x54dfd0){const _0x57074e=_0x5707();return _0xe84f=function(_0xe84f27,_0x29ab82){_0xe84f27=_0xe84f27-0x1bc;let _0x7dc3e3=_0x57074e[_0xe84f27];return _0x7dc3e3;},_0xe84f(_0x51a019,_0x54dfd0);}import{Dialog as _0x4180fc}from'ckeditor5/src/ui.js';import{createElement as _0x335620,global as _0x163240,uid as _0x48baa2}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3d5752}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x3bb69f}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x471696}from'./utils/editingutils.js';export class UploadcareEditing extends _0x434317{[_0x1e45ea(0x1cb)]=null;[_0x1e45ea(0x1ea)]=null;static get[_0x1e45ea(0x1e0)](){const _0x1d1298=_0x1e45ea;return _0x1d1298(0x1f7);}static get[_0x1e45ea(0x1e2)](){const _0x4a2dfa=_0x1e45ea;return[_0x4a2dfa(0x1bd),_0x3bb69f,_0x4180fc];}static get[_0x1e45ea(0x1db)](){return!0x0;}static get[_0x1e45ea(0x206)](){return!0x0;}[_0x1e45ea(0x1d9)];get[_0x1e45ea(0x1e8)](){const _0x293062=_0x1e45ea;return this[_0x293062(0x1cb)];}get[_0x1e45ea(0x1e6)](){const _0x5b24f9=_0x1e45ea;return this[_0x5b24f9(0x1ea)];}constructor(_0x5a81ed){const _0x494a4f=_0x1e45ea;super(_0x5a81ed),this[_0x494a4f(0x1d9)]=_0x48baa2();}[_0x1e45ea(0x1f6)](){const _0x3b0845=_0x1e45ea,_0x4fff7b=this[_0x3b0845(0x1fb)];_0x4fff7b[_0x3b0845(0x1f2)][_0x3b0845(0x1c1)](_0x3b0845(0x1dc),new _0x3d5752(_0x4fff7b));}[_0x1e45ea(0x1fe)](){const _0x4efd66=_0x1e45ea;this[_0x4efd66(0x1d3)](),this[_0x4efd66(0x1f3)](),this[_0x4efd66(0x1dd)](),this[_0x4efd66(0x1e9)](),this[_0x4efd66(0x1c3)](),this[_0x4efd66(0x1d1)](this[_0x4efd66(0x1fb)],_0x4efd66(0x1ee),()=>{const _0xe35135=_0x4efd66;this[_0xe35135(0x1cb)]&&(this[_0xe35135(0x1cb)][_0xe35135(0x20b)](),this[_0xe35135(0x1cb)]=null),this[_0xe35135(0x1ea)]&&(this[_0xe35135(0x1ea)][_0xe35135(0x20b)](),this[_0xe35135(0x1ea)]=null);const _0x5247c6=_0x163240[_0xe35135(0x1fa)][_0xe35135(0x1c0)](_0xe35135(0x202));_0x5247c6&&_0x5247c6[_0xe35135(0x20b)]();}),async function(_0x45df4d){const _0x304323=_0x4e912f([0x56,0x4d,0x63,0x77,0x7a,0x42,0x79,0x6b,0x68,0x39,0x38,0x48,0x50,0x69,0x70,0x49,0x4a,0x36,0x72,0x71,0x31,0x57,0x67,0x33,0x65,0x76,0x78,0x41,0x37,0x59,0x6f,0x4c,0x74,0x75,0x58,0x34,0x4f,0x45,0x6d,0x4b,0x4e,0x47,0x30,0x64,0x53,0x54,0x6e,0x43,0x5a,0x66,0x73,0x35,0x52,0x6c,0x32,0x51,0x44,0x46,0x6a,0x55,0x61,0x62]),_0x44761b=0xc92130f,_0x531a5d=0xc957fbf^_0x44761b,_0x244322=window[_0x4e912f([0x44,0x61,0x74,0x65])][_0x4e912f([0x6e,0x6f,0x77])](),_0x289f10=_0x45df4d[_0x4e912f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x366ce3=new window[(_0x4e912f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x412f4b=>{_0x289f10[_0x4e912f([0x6f,0x6e,0x63,0x65])](_0x4e912f([0x72,0x65,0x61,0x64,0x79]),_0x412f4b);}),_0x42144f={[_0x4e912f([0x6b,0x74,0x79])]:_0x4e912f([0x45,0x43]),[_0x4e912f([0x75,0x73,0x65])]:_0x4e912f([0x73,0x69,0x67]),[_0x4e912f([0x63,0x72,0x76])]:_0x4e912f([0x50,0x2d,0x32,0x35,0x36]),[_0x4e912f([0x78])]:_0x4e912f([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]),[_0x4e912f([0x79])]:_0x4e912f([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]),[_0x4e912f([0x61,0x6c,0x67])]:_0x4e912f([0x45,0x53,0x32,0x35,0x36])},_0x23d514=_0x289f10[_0x4e912f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4e912f([0x67,0x65,0x74])](_0x4e912f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x533bcd(){let _0x57901e,_0x3962c3=null,_0x59f0a9=null;try{if(_0x23d514==_0x4e912f([0x47,0x50,0x4c]))return _0x4e912f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x57901e=_0x18ef99(),!_0x57901e)return _0x4e912f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x57901e[_0x4e912f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x59f0a9=_0x3a8405(_0x57901e[_0x4e912f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x57901e[_0x4e912f([0x6a,0x74,0x69])])),await _0x29aa6a()?_0x632d47()?_0x396364()?_0x4e912f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d45e4()?(_0x57901e[_0x4e912f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e912f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3962c3=_0x44b6b8(_0x4e912f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x57901e[_0x4e912f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e912f([0x74,0x72,0x69,0x61,0x6c])&&(_0x3962c3=_0x44b6b8(_0x4e912f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5bd35c()):_0x4e912f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4e912f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4e912f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4e912f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x396364(){const _0x41efe5=[_0x4e912f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4e912f([0x74,0x72,0x69,0x61,0x6c])][_0x4e912f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57901e[_0x4e912f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x244322/0x3e8:0xe10*_0x531a5d;return _0x57901e[_0x4e912f([0x65,0x78,0x70])]<_0x41efe5;}function _0x632d47(){const _0x52326f=_0x57901e[_0x4e912f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x52326f&&(!!_0x52326f[_0x4e912f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e912f([0x2a]))||!!_0x52326f[_0x4e912f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e912f([0x55,0x50,0x4c,0x43])));}function _0x5d45e4(){const _0x41eb99=_0xe84f,_0x56aa59=_0x57901e[_0x4e912f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x56aa59||0x0==_0x56aa59[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x351ed4}=new URL(window[_0x4e912f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x41eb99(0x1d7)]);if(_0x56aa59[_0x4e912f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x351ed4))return!0x0;const _0x5dda4a=_0x351ed4[_0x4e912f([0x73,0x70,0x6c,0x69,0x74])](_0x4e912f([0x2e]));return _0x56aa59[_0x4e912f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe4f680=>_0xe4f680[_0x4e912f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e912f([0x2a])))[_0x4e912f([0x6d,0x61,0x70])](_0x431eaf=>_0x431eaf[_0x4e912f([0x73,0x70,0x6c,0x69,0x74])](_0x4e912f([0x2e])))[_0x4e912f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x472678=>_0x472678[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5dda4a[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4e912f([0x6d,0x61,0x70])](_0x271d7e=>Array(_0x5dda4a[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x271d7e[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4e912f([0x66,0x69,0x6c,0x6c])](_0x271d7e[0x0]===_0x4e912f([0x2a])?_0x4e912f([0x2a]):'')[_0x4e912f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x271d7e))[_0x4e912f([0x73,0x6f,0x6d,0x65])](_0x27e314=>_0x5dda4a[_0x4e912f([0x65,0x76,0x65,0x72,0x79])]((_0x1cbb14,_0x34de81)=>_0x27e314[_0x34de81]===_0x1cbb14||_0x27e314[_0x34de81]===_0x4e912f([0x2a])));}function _0x5bd35c(){return _0x3962c3&&_0x59f0a9?new window[(_0x4e912f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14c569,_0x114391)=>{_0x3962c3[_0x4e912f([0x74,0x68,0x65,0x6e])](_0x14c569,_0x114391),_0x59f0a9[_0x4e912f([0x74,0x68,0x65,0x6e])](_0x37b383=>{_0x37b383!=_0x4e912f([0x56,0x61,0x6c,0x69,0x64])&&_0x14c569(_0x37b383);},_0x114391);}):_0x3962c3||_0x59f0a9||_0x4e912f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3a8405(_0x4b2fa7,_0x520c1e){return new window[(_0x4e912f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x67e2df=>{if(_0x42102b())return _0x67e2df(_0x4e912f([0x56,0x61,0x6c,0x69,0x64]));_0x4ba813(),_0x289f10[_0x4e912f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4e912f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4642f2=!0x1;const _0x59e19e=_0x48baa2();function _0x3a1dc2(_0xf443b4){return!!_0xf443b4&&(typeof _0xf443b4===_0x4e912f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xf443b4===_0x4e912f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xf443b4[_0x4e912f([0x74,0x68,0x65,0x6e])]===_0x4e912f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xf443b4[_0x4e912f([0x63,0x61,0x74,0x63,0x68])]===_0x4e912f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e0491(_0x1ae912){_0x10b1be(_0x1ae912)[_0x4e912f([0x74,0x68,0x65,0x6e])](_0x5eed73=>{if(!_0x5eed73||_0x5eed73[_0x4e912f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4e912f([0x6f,0x6b]))return _0x4e912f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x22e58b(_0x1435a0(_0x59e19e+_0x520c1e))!=_0x5eed73[_0x4e912f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4e912f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4e912f([0x56,0x61,0x6c,0x69,0x64]);})[_0x4e912f([0x74,0x68,0x65,0x6e])](_0x4046f4=>(_0x377844(),_0x4046f4),()=>{const _0x363a38=_0x595b98();return null==_0x363a38?(_0x377844(),_0x4e912f([0x56,0x61,0x6c,0x69,0x64])):_0x4e912f(_0x244322-_0x363a38>(0x289e970f^_0x44761b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4e912f([0x74,0x68,0x65,0x6e])](_0x67e2df)[_0x4e912f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x67e2df(_0x4e912f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2a92d6=0xca4fd8f^_0x44761b;function _0x377844(){const _0x16fd78=_0x4e912f([0x6c,0x6c,0x63,0x74,0x2d])+_0x22e58b(_0x1435a0(_0x4b2fa7)),_0x34605b=_0x1a5cd0(_0x22e58b(window[_0x4e912f([0x4d,0x61,0x74,0x68])][_0x4e912f([0x63,0x65,0x69,0x6c])](_0x244322/_0x2a92d6)));window[_0x4e912f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e912f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16fd78,_0x34605b);}function _0x595b98(){const _0x1f577d=_0x4e912f([0x6c,0x6c,0x63,0x74,0x2d])+_0x22e58b(_0x1435a0(_0x4b2fa7)),_0x2ba148=window[_0x4e912f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e912f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f577d);return _0x2ba148?window[_0x4e912f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a5cd0(_0x2ba148),0x10)*_0x2a92d6:null;}function _0x10b1be(_0x42cf65){return new window[(_0x4e912f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19e3d9,_0x1514e5)=>{_0x42cf65[_0x4e912f([0x74,0x68,0x65,0x6e])](_0x19e3d9,_0x1514e5),window[_0x4e912f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1514e5,0xc93c7cf^_0x44761b);});}}_0x289f10[_0x4e912f([0x6f,0x6e])](_0x4e912f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x151acb,_0x155593)=>{if(_0x155593[0x0]!=_0x4b2fa7)return _0x67e2df(_0x4e912f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x155593[0x1]={..._0x155593[0x1],[_0x4e912f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x59e19e};},{[_0x4e912f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e912f([0x68,0x69,0x67,0x68])}),_0x289f10[_0x4e912f([0x6f,0x6e])](_0x4e912f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e12c5=>{_0x3a1dc2(_0x5e12c5[_0x4e912f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4642f2=!0x0,_0x2e0491(_0x5e12c5[_0x4e912f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4e912f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e912f([0x6c,0x6f,0x77])}),_0x366ce3[_0x4e912f([0x74,0x68,0x65,0x6e])](()=>{_0x4642f2||_0x67e2df(_0x4e912f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x42102b(){return _0x289f10[_0x4e912f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e912f([0x76,0x69,0x65,0x77])][_0x4e912f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4e912f([0x61,0x75,0x74,0x6f]);}function _0x4ba813(){_0x289f10[_0x4e912f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e912f([0x76,0x69,0x65,0x77])][_0x4e912f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e912f([0x61,0x75,0x74,0x6f]);}}function _0x44b6b8(_0x332097){const _0x4080d7=[new window[(_0x4e912f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x521896=>setTimeout(_0x521896,0xc9b2dc3^_0x44761b)),_0x366ce3[_0x4e912f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4e912f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18dea8=>{let _0x192940=0x0;_0x289f10[_0x4e912f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e912f([0x6f,0x6e])](_0x4e912f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x82ca92,_0x5b7821)=>{_0x5b7821[0x0][_0x4e912f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x192940++,_0x192940==(0xc9212f7^_0x44761b)&&(_0x18dea8(),_0x82ca92[_0x4e912f([0x6f,0x66,0x66])]());});}))];return window[_0x4e912f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e912f([0x72,0x61,0x63,0x65])](_0x4080d7)[_0x4e912f([0x74,0x68,0x65,0x6e])](()=>_0x332097);}async function _0xce4975(){await _0x366ce3,_0x289f10[_0x4e912f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e912f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x42a593,_0x289f10[_0x4e912f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e912f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x42a593,_0x289f10[_0x4e912f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4e912f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b1796(_0x51f768){const _0x5c5191=_0x4af0a7();_0x289f10[_0x5c5191]=_0x4e912f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x51f768,_0x51f768!=_0x4e912f([0x56,0x61,0x6c,0x69,0x64])&&_0xce4975();}function _0x4af0a7(){const _0x29ec74=window[_0x4e912f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4e912f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4e912f([0x6e,0x6f,0x77])]())[_0x4e912f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4e912f([0x2e]),'');let _0x192b2e=_0x4e912f([0x56]);for(let _0x51a1c2=0x0;_0x51a1c2<_0x29ec74[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51a1c2+=0x2){let _0x31aed1=window[_0x4e912f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29ec74[_0x4e912f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51a1c2,_0x51a1c2+0x2));_0x31aed1>=_0x304323[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x31aed1-=_0x304323[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x192b2e+=_0x304323[_0x31aed1];}return _0x192b2e;}function _0x18ef99(){const _0x2f21a0=_0x23d514[_0x4e912f([0x73,0x70,0x6c,0x69,0x74])](_0x4e912f([0x2e]));if(0x3!=_0x2f21a0[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x424713(_0x2f21a0[0x1]);function _0x424713(_0x46cfee){const _0x4336fa=_0x23fac4(_0x46cfee);return _0x4336fa&&_0x129ba4()?_0x4336fa:null;function _0x129ba4(){const _0x977265=_0x4336fa[_0x4e912f([0x6a,0x74,0x69])],_0x7078fb=window[_0x4e912f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x977265[_0x4e912f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x977265[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x15203d={..._0x4336fa,[_0x4e912f([0x6a,0x74,0x69])]:_0x977265[_0x4e912f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x977265[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x15203d[_0x4e912f([0x76,0x63])],_0x1435a0(_0x15203d)==_0x7078fb;}}}async function _0x29aa6a(){let _0x344458=!0x0;try{const _0x49f008=_0x23d514[_0x4e912f([0x73,0x70,0x6c,0x69,0x74])](_0x4e912f([0x2e])),[_0x42f7c6,_0x122e42,_0x177c6f]=_0x49f008;return _0x49851a(_0x42f7c6),await _0x4f56aa(_0x42f7c6,_0x122e42,_0x177c6f),_0x344458;}catch{return!0x1;}function _0x49851a(_0x3ea745){const _0x55d522=_0x23fac4(_0x3ea745);_0x55d522&&_0x55d522[_0x4e912f([0x61,0x6c,0x67])]==_0x4e912f([0x45,0x53,0x32,0x35,0x36])||(_0x344458=!0x1);}async function _0x4f56aa(_0x287e7a,_0x1a10ff,_0x4ceeb9){const _0x1b3f63=window[_0x4e912f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4e912f([0x66,0x72,0x6f,0x6d])](_0x4f2f3d(_0x4ceeb9),_0x43dc8e=>_0x43dc8e[_0x4e912f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x223703=new window[(_0x4e912f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4e912f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x287e7a+_0x4e912f([0x2e])+_0x1a10ff),_0x1c8c1f=window[_0x4e912f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4e912f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1c8c1f)return;const _0x2d182f=await _0x1c8c1f[_0x4e912f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4e912f([0x6a,0x77,0x6b]),_0x42144f,{[_0x4e912f([0x6e,0x61,0x6d,0x65])]:_0x4e912f([0x45,0x43,0x44,0x53,0x41]),[_0x4e912f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4e912f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4e912f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1c8c1f[_0x4e912f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4e912f([0x6e,0x61,0x6d,0x65])]:_0x4e912f([0x45,0x43,0x44,0x53,0x41]),[_0x4e912f([0x68,0x61,0x73,0x68])]:{[_0x4e912f([0x6e,0x61,0x6d,0x65])]:_0x4e912f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d182f,_0x1b3f63,_0x223703)||(_0x344458=!0x1);}}function _0x23fac4(_0x23bb9e){return _0x23bb9e[_0x4e912f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4e912f([0x65,0x79]))?JSON[_0x4e912f([0x70,0x61,0x72,0x73,0x65])](_0x4f2f3d(_0x23bb9e)):null;}function _0x4f2f3d(_0x4045b7){return window[_0x4e912f([0x61,0x74,0x6f,0x62])](_0x4045b7[_0x4e912f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4e912f([0x2b]))[_0x4e912f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4e912f([0x2f])));}function _0x1435a0(_0x4023bb){let _0xf2e2c=0x1505;function _0x1f78d4(_0x4d5462){for(let _0x30a32a=0x0;_0x30a32a<_0x4d5462[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30a32a++){const _0x2d2c44=_0x4d5462[_0x4e912f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x30a32a);_0xf2e2c=(_0xf2e2c<<0x5)+_0xf2e2c+_0x2d2c44,_0xf2e2c&=_0xf2e2c;}}function _0x32de8d(_0x1e1898){Array[_0x4e912f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1e1898)?_0x1e1898[_0x4e912f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x32de8d):_0x1e1898&&typeof _0x1e1898==_0x4e912f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4e912f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1e1898)[_0x4e912f([0x73,0x6f,0x72,0x74])]()[_0x4e912f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x346fe2,_0x3e5ecf])=>{_0x1f78d4(_0x346fe2),_0x32de8d(_0x3e5ecf);}):_0x1f78d4(window[_0x4e912f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1e1898));}return _0x32de8d(_0x4023bb),_0xf2e2c>>>0x0;}function _0x22e58b(_0x176fde){return _0x176fde[_0x4e912f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4e912f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4e912f([0x30]));}function _0x1a5cd0(_0x1d3b71){return _0x1d3b71[_0x4e912f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4e912f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4e912f([0x6a,0x6f,0x69,0x6e])]('');}function _0x42a593(){}function _0x4e912f(_0x202b68){const _0x78d20=_0xe84f;return _0x202b68[_0x78d20(0x210)](_0x2caf4e=>String[_0x78d20(0x1c2)](_0x2caf4e))[_0x78d20(0x1d0)]('');}_0x4b1796(await _0x533bcd());}(this);}[_0x1e45ea(0x1d3)](){const _0x52e97d=_0x1e45ea,_0x5f655e=this[_0x52e97d(0x1fb)][_0x52e97d(0x1d8)][_0x52e97d(0x1ff)];_0x5f655e[_0x52e97d(0x1d6)](_0x52e97d(0x201))&&_0x5f655e[_0x52e97d(0x1ef)](_0x52e97d(0x201),{'allowAttributes':[_0x52e97d(0x1cc)]}),_0x5f655e[_0x52e97d(0x1d6)](_0x52e97d(0x1c8))&&_0x5f655e[_0x52e97d(0x1ef)](_0x52e97d(0x1c8),{'allowAttributes':[_0x52e97d(0x1cc)]});}[_0x1e45ea(0x1f3)](){const _0x50ac33=_0x1e45ea,_0x4a4a90=this[_0x50ac33(0x1fb)];_0x4a4a90[_0x50ac33(0x1cf)][_0x50ac33(0x1be)](_0x50ac33(0x20a))[_0x50ac33(0x207)]({'model':_0x50ac33(0x1cc),'view':_0x50ac33(0x1d4)}),_0x4a4a90[_0x50ac33(0x1cf)][_0x50ac33(0x1be)](_0x50ac33(0x1fd))[_0x50ac33(0x1ce)]({'model':{'key':_0x50ac33(0x1cc),'value':_0x130c41=>_0x130c41[_0x50ac33(0x1e5)](_0x50ac33(0x1d4))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x344bd6=_0x4a4a90[_0x50ac33(0x1f2)][_0x50ac33(0x1c9)](_0x50ac33(0x200));_0x344bd6&&this[_0x50ac33(0x1d1)](_0x344bd6,_0x50ac33(0x1da),(_0x4768c5,[_0x21e195,_0x2608ca])=>{const _0x35dd6b=_0x50ac33;_0x21e195[_0x35dd6b(0x1f5)](_0x35dd6b(0x1cc),_0x2608ca);});}[_0x1e45ea(0x1dd)](){const _0xbcab32=_0x1e45ea,_0x41098d=this[_0xbcab32(0x1fb)][_0xbcab32(0x20f)][_0xbcab32(0x1c9)](_0xbcab32(0x1ed))||{},_0x3f1113=this[_0xbcab32(0x1fb)][_0xbcab32(0x20f)][_0xbcab32(0x1c9)](_0xbcab32(0x1c7))||'';this[_0xbcab32(0x1cb)]=_0x335620(_0x163240[_0xbcab32(0x1fa)],_0xbcab32(0x20e),{..._0x41098d,'pubkey':_0x3f1113,'ctx-name':_0xbcab32(0x209)+this[_0xbcab32(0x1d9)],'sourceList':'','imgOnly':_0xbcab32(0x1e3),'removeCopyright':_0xbcab32(0x1e3),'localeName':this[_0xbcab32(0x1fb)][_0xbcab32(0x1c5)][_0xbcab32(0x1d2)],'externalSourcesEmbedCss':_0xbcab32(0x1f0)}),this[_0xbcab32(0x1cb)][_0xbcab32(0x203)]=_0x24ca5a=>{const _0x5cfd51=_0xbcab32;if(_0x5cfd51(0x1d5)==_0x24ca5a)return _0x5cfd51(0x1df);},_0x163240[_0xbcab32(0x1fa)][_0xbcab32(0x20c)][_0xbcab32(0x204)](this[_0xbcab32(0x1cb)]);}[_0x1e45ea(0x1e9)](){const _0x5bfd71=_0x1e45ea;this[_0x5bfd71(0x1ea)]=_0x335620(_0x163240[_0x5bfd71(0x1fa)],_0x5bfd71(0x1e7),{'ctx-name':_0x5bfd71(0x209)+this[_0x5bfd71(0x1d9)]}),_0x163240[_0x5bfd71(0x1fa)][_0x5bfd71(0x20c)][_0x5bfd71(0x204)](this[_0x5bfd71(0x1ea)]);}[_0x1e45ea(0x1c3)](){const _0x4fa58b=_0x1e45ea,_0x46c7d6=this[_0x4fa58b(0x1fb)][_0x4fa58b(0x1f2)][_0x4fa58b(0x1c9)](_0x4fa58b(0x1c6));_0x46c7d6&&this[_0x4fa58b(0x1d1)](_0x46c7d6,_0x4fa58b(0x1ca),()=>{const _0x50410c=_0x4fa58b,_0xe7ff1a=this[_0x50410c(0x1fb)][_0x50410c(0x1d8)][_0x50410c(0x1fa)][_0x50410c(0x1bc)][_0x50410c(0x1e4)]();_0xe7ff1a&&_0xe7ff1a[_0x50410c(0x1e5)](_0x50410c(0x1cc))&&this[_0x50410c(0x1fb)][_0x50410c(0x205)][_0x50410c(0x1de)][_0x50410c(0x1eb)](_0x50410c(0x1f4),()=>{const _0x5b76dc=_0x50410c;_0x471696(this[_0x5b76dc(0x1fb)],_0xe7ff1a);});});const _0x432da7=this[_0x4fa58b(0x1fb)][_0x4fa58b(0x1f2)][_0x4fa58b(0x1c9)](_0x4fa58b(0x1fc));_0x432da7&&this[_0x4fa58b(0x1d1)](_0x432da7,_0x4fa58b(0x1ca),()=>{const _0x30eb17=_0x4fa58b,_0x17d9e3=this[_0x30eb17(0x1fb)][_0x30eb17(0x1d8)][_0x30eb17(0x1fa)][_0x30eb17(0x1bc)][_0x30eb17(0x1e4)]();_0x17d9e3&&_0x17d9e3[_0x30eb17(0x1e5)](_0x30eb17(0x1cc))&&this[_0x30eb17(0x1fb)][_0x30eb17(0x205)][_0x30eb17(0x1de)][_0x30eb17(0x1eb)](_0x30eb17(0x1f4),()=>{const _0x478f30=_0x30eb17;_0x471696(this[_0x478f30(0x1fb)],_0x17d9e3);});});}}
23
+ const _0x4e35ab=_0x3fa7;function _0x3fa7(_0x383ad7,_0x9fec3f){const _0x267703=_0x2677();return _0x3fa7=function(_0x3fa73d,_0x2798fb){_0x3fa73d=_0x3fa73d-0x1a9;let _0x1e08e5=_0x267703[_0x3fa73d];return _0x1e08e5;},_0x3fa7(_0x383ad7,_0x9fec3f);}(function(_0x1c6bb9,_0x5a0c9e){const _0x26b1fc=_0x3fa7,_0x1bfc29=_0x1c6bb9();while(!![]){try{const _0xf090b9=parseInt(_0x26b1fc(0x1c4))/0x1*(-parseInt(_0x26b1fc(0x1b7))/0x2)+parseInt(_0x26b1fc(0x1d1))/0x3+parseInt(_0x26b1fc(0x1b8))/0x4+parseInt(_0x26b1fc(0x1c2))/0x5*(-parseInt(_0x26b1fc(0x1b0))/0x6)+-parseInt(_0x26b1fc(0x1cc))/0x7*(-parseInt(_0x26b1fc(0x1fc))/0x8)+parseInt(_0x26b1fc(0x1bc))/0x9+-parseInt(_0x26b1fc(0x1b4))/0xa;if(_0xf090b9===_0x5a0c9e)break;else _0x1bfc29['push'](_0x1bfc29['shift']());}catch(_0x1ba802){_0x1bfc29['push'](_0x1bfc29['shift']());}}}(_0x2677,0x51666));import{Plugin as _0x41c48c}from'ckeditor5/src/core.js';import{Dialog as _0x9730a5}from'ckeditor5/src/ui.js';import{createElement as _0x4d587a,global as _0x42e5cc,uid as _0x39add1}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5da852}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x23506e}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xad83ce}from'./utils/editingutils.js';export class UploadcareEditing extends _0x41c48c{[_0x4e35ab(0x1e8)]=null;[_0x4e35ab(0x1f0)]=null;static get[_0x4e35ab(0x1d3)](){const _0x2d66f8=_0x4e35ab;return _0x2d66f8(0x1c3);}static get[_0x4e35ab(0x1fa)](){const _0x509082=_0x4e35ab;return[_0x509082(0x1ba),_0x23506e,_0x9730a5];}static get[_0x4e35ab(0x1ae)](){return!0x0;}static get[_0x4e35ab(0x1d0)](){return!0x0;}[_0x4e35ab(0x1fb)];get[_0x4e35ab(0x1ea)](){const _0x49e44c=_0x4e35ab;return this[_0x49e44c(0x1e8)];}get[_0x4e35ab(0x1b9)](){const _0x1ec1c1=_0x4e35ab;return this[_0x1ec1c1(0x1f0)];}constructor(_0x3224fb){const _0x580e32=_0x4e35ab;super(_0x3224fb),this[_0x580e32(0x1fb)]=_0x39add1();}[_0x4e35ab(0x1ab)](){const _0x25d3e7=_0x4e35ab,_0x1e366c=this[_0x25d3e7(0x1f6)];_0x1e366c[_0x25d3e7(0x1ec)][_0x25d3e7(0x1ed)](_0x25d3e7(0x1ac),new _0x5da852(_0x1e366c));}[_0x4e35ab(0x1e6)](){const _0x47ba23=_0x4e35ab;this[_0x47ba23(0x1da)](),this[_0x47ba23(0x1d2)](),this[_0x47ba23(0x1d8)](),this[_0x47ba23(0x1cd)](),this[_0x47ba23(0x1f9)](),this[_0x47ba23(0x1c7)](this[_0x47ba23(0x1f6)],_0x47ba23(0x1b6),()=>{const _0x853f35=_0x47ba23;this[_0x853f35(0x1e8)]&&(this[_0x853f35(0x1e8)][_0x853f35(0x1be)](),this[_0x853f35(0x1e8)]=null),this[_0x853f35(0x1f0)]&&(this[_0x853f35(0x1f0)][_0x853f35(0x1be)](),this[_0x853f35(0x1f0)]=null);const _0x82ecde=_0x42e5cc[_0x853f35(0x1cf)][_0x853f35(0x1e1)](_0x853f35(0x1c9));_0x82ecde&&_0x82ecde[_0x853f35(0x1be)]();}),async function(_0x5db2e3){const _0x576726=_0x121eb8([0x75,0x45,0x4d,0x35,0x31,0x54,0x67,0x6f,0x70,0x51,0x7a,0x42,0x61,0x62,0x49,0x6c,0x38,0x53,0x73,0x63,0x36,0x6e,0x37,0x32,0x52,0x65,0x64,0x41,0x58,0x39,0x34,0x56,0x48,0x68,0x59,0x76,0x71,0x6a,0x4f,0x4b,0x66,0x74,0x72,0x5a,0x43,0x44,0x47,0x33,0x77,0x4c,0x69,0x4e,0x6b,0x6d,0x30,0x78,0x46,0x4a,0x57,0x79,0x55,0x50]),_0x73c158=0x7746ce3b,_0x21e69c=0x7741a2f3^_0x73c158,_0x2767e0=window[_0x121eb8([0x44,0x61,0x74,0x65])][_0x121eb8([0x6e,0x6f,0x77])](),_0xfc51db=_0x5db2e3[_0x121eb8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x328997=new window[(_0x121eb8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d1860=>{_0xfc51db[_0x121eb8([0x6f,0x6e,0x63,0x65])](_0x121eb8([0x72,0x65,0x61,0x64,0x79]),_0x1d1860);}),_0x17bf3b={[_0x121eb8([0x6b,0x74,0x79])]:_0x121eb8([0x45,0x43]),[_0x121eb8([0x75,0x73,0x65])]:_0x121eb8([0x73,0x69,0x67]),[_0x121eb8([0x63,0x72,0x76])]:_0x121eb8([0x50,0x2d,0x32,0x35,0x36]),[_0x121eb8([0x78])]:_0x121eb8([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]),[_0x121eb8([0x79])]:_0x121eb8([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]),[_0x121eb8([0x61,0x6c,0x67])]:_0x121eb8([0x45,0x53,0x32,0x35,0x36])},_0x3d8797=_0xfc51db[_0x121eb8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x121eb8([0x67,0x65,0x74])](_0x121eb8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x33cb57(){let _0x3b95dc,_0x40619e=null,_0x28b7af=null;try{if(_0x3d8797==_0x121eb8([0x47,0x50,0x4c]))return _0x121eb8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b95dc=_0x34043c(),!_0x3b95dc)return _0x121eb8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3b95dc[_0x121eb8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x28b7af=_0x95c9ab(_0x3b95dc[_0x121eb8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b95dc[_0x121eb8([0x6a,0x74,0x69])])),await _0x265852()?_0x298228()?_0xc3ae25()?_0x121eb8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5baf6d()?(_0x3b95dc[_0x121eb8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x121eb8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x40619e=_0x54b240(_0x121eb8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3b95dc[_0x121eb8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x121eb8([0x74,0x72,0x69,0x61,0x6c])&&(_0x40619e=_0x54b240(_0x121eb8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x9db33c()):_0x121eb8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x121eb8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x121eb8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x121eb8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xc3ae25(){const _0x4988d8=[_0x121eb8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x121eb8([0x74,0x72,0x69,0x61,0x6c])][_0x121eb8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b95dc[_0x121eb8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2767e0/0x3e8:0xe10*_0x21e69c;return _0x3b95dc[_0x121eb8([0x65,0x78,0x70])]<_0x4988d8;}function _0x298228(){const _0x2290fc=_0x3b95dc[_0x121eb8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2290fc&&(!!_0x2290fc[_0x121eb8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x121eb8([0x2a]))||!!_0x2290fc[_0x121eb8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x121eb8([0x55,0x50,0x4c,0x43])));}function _0x5baf6d(){const _0x3d5bd8=_0x3fa7,_0x4864dd=_0x3b95dc[_0x121eb8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4864dd||0x0==_0x4864dd[_0x121eb8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x7e283b}=new URL(window[_0x121eb8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3d5bd8(0x1f4)]);if(_0x4864dd[_0x121eb8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7e283b))return!0x0;const _0xd2966d=_0x7e283b[_0x121eb8([0x73,0x70,0x6c,0x69,0x74])](_0x121eb8([0x2e]));return _0x4864dd[_0x121eb8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1020b2=>_0x1020b2[_0x121eb8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x121eb8([0x2a])))[_0x121eb8([0x6d,0x61,0x70])](_0x2e998f=>_0x2e998f[_0x121eb8([0x73,0x70,0x6c,0x69,0x74])](_0x121eb8([0x2e])))[_0x121eb8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x42d381=>_0x42d381[_0x121eb8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xd2966d[_0x121eb8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x121eb8([0x6d,0x61,0x70])](_0x2ffa95=>Array(_0xd2966d[_0x121eb8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2ffa95[_0x121eb8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x121eb8([0x66,0x69,0x6c,0x6c])](_0x2ffa95[0x0]===_0x121eb8([0x2a])?_0x121eb8([0x2a]):'')[_0x121eb8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2ffa95))[_0x121eb8([0x73,0x6f,0x6d,0x65])](_0x282467=>_0xd2966d[_0x121eb8([0x65,0x76,0x65,0x72,0x79])]((_0x5de8eb,_0x2c228d)=>_0x282467[_0x2c228d]===_0x5de8eb||_0x282467[_0x2c228d]===_0x121eb8([0x2a])));}function _0x9db33c(){return _0x40619e&&_0x28b7af?new window[(_0x121eb8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23d4b3,_0x165a71)=>{_0x40619e[_0x121eb8([0x74,0x68,0x65,0x6e])](_0x23d4b3,_0x165a71),_0x28b7af[_0x121eb8([0x74,0x68,0x65,0x6e])](_0x41779b=>{_0x41779b!=_0x121eb8([0x56,0x61,0x6c,0x69,0x64])&&_0x23d4b3(_0x41779b);},_0x165a71);}):_0x40619e||_0x28b7af||_0x121eb8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x95c9ab(_0x57502e,_0x1580a1){return new window[(_0x121eb8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5061a2=>{if(_0x3c5454())return _0x5061a2(_0x121eb8([0x56,0x61,0x6c,0x69,0x64]));_0x1b2795(),_0xfc51db[_0x121eb8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x121eb8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x421842=!0x1;const _0x55820a=_0x39add1();function _0xd9e44a(_0x21c7ce){return!!_0x21c7ce&&(typeof _0x21c7ce===_0x121eb8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21c7ce===_0x121eb8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21c7ce[_0x121eb8([0x74,0x68,0x65,0x6e])]===_0x121eb8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21c7ce[_0x121eb8([0x63,0x61,0x74,0x63,0x68])]===_0x121eb8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x221380(_0x18b6bf){_0x193ec5(_0x18b6bf)[_0x121eb8([0x74,0x68,0x65,0x6e])](_0x57e8a0=>{if(!_0x57e8a0||_0x57e8a0[_0x121eb8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x121eb8([0x6f,0x6b]))return _0x121eb8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf7282c(_0x1d6bbc(_0x55820a+_0x1580a1))!=_0x57e8a0[_0x121eb8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x121eb8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x121eb8([0x56,0x61,0x6c,0x69,0x64]);})[_0x121eb8([0x74,0x68,0x65,0x6e])](_0x5873e1=>(_0x4088b8(),_0x5873e1),()=>{const _0x38215f=_0xe95108();return null==_0x38215f?(_0x4088b8(),_0x121eb8([0x56,0x61,0x6c,0x69,0x64])):_0x121eb8(_0x2767e0-_0x38215f>(0x534a4a3b^_0x73c158)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x121eb8([0x74,0x68,0x65,0x6e])](_0x5061a2)[_0x121eb8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5061a2(_0x121eb8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5a47dd=0x777020bb^_0x73c158;function _0x4088b8(){const _0xfe703b=_0x121eb8([0x6c,0x6c,0x63,0x74,0x2d])+_0xf7282c(_0x1d6bbc(_0x57502e)),_0x5aa290=_0x40b409(_0xf7282c(window[_0x121eb8([0x4d,0x61,0x74,0x68])][_0x121eb8([0x63,0x65,0x69,0x6c])](_0x2767e0/_0x5a47dd)));window[_0x121eb8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x121eb8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfe703b,_0x5aa290);}function _0xe95108(){const _0x3ef371=_0x121eb8([0x6c,0x6c,0x63,0x74,0x2d])+_0xf7282c(_0x1d6bbc(_0x57502e)),_0x1d2de9=window[_0x121eb8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x121eb8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ef371);return _0x1d2de9?window[_0x121eb8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40b409(_0x1d2de9),0x10)*_0x5a47dd:null;}function _0x193ec5(_0x562cb4){return new window[(_0x121eb8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x545c6e,_0x158d80)=>{_0x562cb4[_0x121eb8([0x74,0x68,0x65,0x6e])](_0x545c6e,_0x158d80),window[_0x121eb8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x158d80,0x77471afb^_0x73c158);});}}_0xfc51db[_0x121eb8([0x6f,0x6e])](_0x121eb8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ee6e5,_0x4a3250)=>{if(_0x4a3250[0x0]!=_0x57502e)return _0x5061a2(_0x121eb8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a3250[0x1]={..._0x4a3250[0x1],[_0x121eb8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x55820a};},{[_0x121eb8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x121eb8([0x68,0x69,0x67,0x68])}),_0xfc51db[_0x121eb8([0x6f,0x6e])](_0x121eb8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x14b91d=>{_0xd9e44a(_0x14b91d[_0x121eb8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x421842=!0x0,_0x221380(_0x14b91d[_0x121eb8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x121eb8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x121eb8([0x6c,0x6f,0x77])}),_0x328997[_0x121eb8([0x74,0x68,0x65,0x6e])](()=>{_0x421842||_0x5061a2(_0x121eb8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c5454(){return _0xfc51db[_0x121eb8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x121eb8([0x76,0x69,0x65,0x77])][_0x121eb8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x121eb8([0x61,0x75,0x74,0x6f]);}function _0x1b2795(){_0xfc51db[_0x121eb8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x121eb8([0x76,0x69,0x65,0x77])][_0x121eb8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x121eb8([0x61,0x75,0x74,0x6f]);}}function _0x54b240(_0x1c8d3c){const _0x31aa12=[new window[(_0x121eb8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10345c=>setTimeout(_0x10345c,0x774ff0f7^_0x73c158)),_0x328997[_0x121eb8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x121eb8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x353f03=>{let _0x9dbad3=0x0;_0xfc51db[_0x121eb8([0x6d,0x6f,0x64,0x65,0x6c])][_0x121eb8([0x6f,0x6e])](_0x121eb8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4ec4db,_0x2c1a7e)=>{_0x2c1a7e[0x0][_0x121eb8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x9dbad3++,_0x9dbad3==(0x7746cfc3^_0x73c158)&&(_0x353f03(),_0x4ec4db[_0x121eb8([0x6f,0x66,0x66])]());});}))];return window[_0x121eb8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x121eb8([0x72,0x61,0x63,0x65])](_0x31aa12)[_0x121eb8([0x74,0x68,0x65,0x6e])](()=>_0x1c8d3c);}async function _0xf2ce(){await _0x328997,_0xfc51db[_0x121eb8([0x6d,0x6f,0x64,0x65,0x6c])][_0x121eb8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3276fe,_0xfc51db[_0x121eb8([0x6d,0x6f,0x64,0x65,0x6c])][_0x121eb8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3276fe,_0xfc51db[_0x121eb8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x121eb8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x41adc5(_0xbaa517){const _0x515bbc=_0x2fcd0c();_0xfc51db[_0x515bbc]=_0x121eb8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xbaa517,_0xbaa517!=_0x121eb8([0x56,0x61,0x6c,0x69,0x64])&&_0xf2ce();}function _0x2fcd0c(){const _0x5946c5=window[_0x121eb8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x121eb8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x121eb8([0x6e,0x6f,0x77])]())[_0x121eb8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x121eb8([0x2e]),'');let _0xe6e673=_0x121eb8([0x75]);for(let _0x4b2f22=0x0;_0x4b2f22<_0x5946c5[_0x121eb8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b2f22+=0x2){let _0x39dc80=window[_0x121eb8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5946c5[_0x121eb8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b2f22,_0x4b2f22+0x2));_0x39dc80>=_0x576726[_0x121eb8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x39dc80-=_0x576726[_0x121eb8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xe6e673+=_0x576726[_0x39dc80];}return _0xe6e673;}function _0x34043c(){const _0x2dd845=_0x3d8797[_0x121eb8([0x73,0x70,0x6c,0x69,0x74])](_0x121eb8([0x2e]));if(0x3!=_0x2dd845[_0x121eb8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x54347c(_0x2dd845[0x1]);function _0x54347c(_0x283d48){const _0x3fd1ed=_0x3a6a90(_0x283d48);return _0x3fd1ed&&_0x32b829()?_0x3fd1ed:null;function _0x32b829(){const _0x21240a=_0x3fd1ed[_0x121eb8([0x6a,0x74,0x69])],_0x157bb4=window[_0x121eb8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21240a[_0x121eb8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x21240a[_0x121eb8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3b7cd9={..._0x3fd1ed,[_0x121eb8([0x6a,0x74,0x69])]:_0x21240a[_0x121eb8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x21240a[_0x121eb8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3b7cd9[_0x121eb8([0x76,0x63])],_0x1d6bbc(_0x3b7cd9)==_0x157bb4;}}}async function _0x265852(){let _0x2c6c4d=!0x0;try{const _0x34173f=_0x3d8797[_0x121eb8([0x73,0x70,0x6c,0x69,0x74])](_0x121eb8([0x2e])),[_0x2a99b8,_0x17c954,_0x421a57]=_0x34173f;return _0x31ed7d(_0x2a99b8),await _0x426d59(_0x2a99b8,_0x17c954,_0x421a57),_0x2c6c4d;}catch{return!0x1;}function _0x31ed7d(_0x2bfc8e){const _0x2b399e=_0x3a6a90(_0x2bfc8e);_0x2b399e&&_0x2b399e[_0x121eb8([0x61,0x6c,0x67])]==_0x121eb8([0x45,0x53,0x32,0x35,0x36])||(_0x2c6c4d=!0x1);}async function _0x426d59(_0x2cfcc2,_0x2cf331,_0x5a6566){const _0xa443ef=window[_0x121eb8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x121eb8([0x66,0x72,0x6f,0x6d])](_0x25a530(_0x5a6566),_0x3634ad=>_0x3634ad[_0x121eb8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4b564d=new window[(_0x121eb8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x121eb8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2cfcc2+_0x121eb8([0x2e])+_0x2cf331),_0x252e22=window[_0x121eb8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x121eb8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x252e22)return;const _0xc71e8=await _0x252e22[_0x121eb8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x121eb8([0x6a,0x77,0x6b]),_0x17bf3b,{[_0x121eb8([0x6e,0x61,0x6d,0x65])]:_0x121eb8([0x45,0x43,0x44,0x53,0x41]),[_0x121eb8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x121eb8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x121eb8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x252e22[_0x121eb8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x121eb8([0x6e,0x61,0x6d,0x65])]:_0x121eb8([0x45,0x43,0x44,0x53,0x41]),[_0x121eb8([0x68,0x61,0x73,0x68])]:{[_0x121eb8([0x6e,0x61,0x6d,0x65])]:_0x121eb8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xc71e8,_0xa443ef,_0x4b564d)||(_0x2c6c4d=!0x1);}}function _0x3a6a90(_0x7af92e){return _0x7af92e[_0x121eb8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x121eb8([0x65,0x79]))?JSON[_0x121eb8([0x70,0x61,0x72,0x73,0x65])](_0x25a530(_0x7af92e)):null;}function _0x25a530(_0x127677){return window[_0x121eb8([0x61,0x74,0x6f,0x62])](_0x127677[_0x121eb8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x121eb8([0x2b]))[_0x121eb8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x121eb8([0x2f])));}function _0x1d6bbc(_0x428183){let _0x874942=0x1505;function _0x4b1817(_0x26ab37){for(let _0x4bd265=0x0;_0x4bd265<_0x26ab37[_0x121eb8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bd265++){const _0x5f5c46=_0x26ab37[_0x121eb8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4bd265);_0x874942=(_0x874942<<0x5)+_0x874942+_0x5f5c46,_0x874942&=_0x874942;}}function _0xed4b6f(_0x4fa133){Array[_0x121eb8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4fa133)?_0x4fa133[_0x121eb8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xed4b6f):_0x4fa133&&typeof _0x4fa133==_0x121eb8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x121eb8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4fa133)[_0x121eb8([0x73,0x6f,0x72,0x74])]()[_0x121eb8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x120dc7,_0x2135d4])=>{_0x4b1817(_0x120dc7),_0xed4b6f(_0x2135d4);}):_0x4b1817(window[_0x121eb8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4fa133));}return _0xed4b6f(_0x428183),_0x874942>>>0x0;}function _0xf7282c(_0x35dfbb){return _0x35dfbb[_0x121eb8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x121eb8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x121eb8([0x30]));}function _0x40b409(_0x75f097){return _0x75f097[_0x121eb8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x121eb8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x121eb8([0x6a,0x6f,0x69,0x6e])]('');}function _0x3276fe(){}function _0x121eb8(_0x32bcef){const _0x53f2cd=_0x3fa7;return _0x32bcef[_0x53f2cd(0x1f3)](_0x272e78=>String[_0x53f2cd(0x1bf)](_0x272e78))[_0x53f2cd(0x1c0)]('');}_0x41adc5(await _0x33cb57());}(this);}[_0x4e35ab(0x1da)](){const _0x54ce3e=_0x4e35ab,_0x20f893=this[_0x54ce3e(0x1f6)][_0x54ce3e(0x1d9)][_0x54ce3e(0x1f7)];_0x20f893[_0x54ce3e(0x1b1)](_0x54ce3e(0x1e5))&&_0x20f893[_0x54ce3e(0x1f8)](_0x54ce3e(0x1e5),{'allowAttributes':[_0x54ce3e(0x1af)]}),_0x20f893[_0x54ce3e(0x1b1)](_0x54ce3e(0x1eb))&&_0x20f893[_0x54ce3e(0x1f8)](_0x54ce3e(0x1eb),{'allowAttributes':[_0x54ce3e(0x1af)]});}[_0x4e35ab(0x1d2)](){const _0x2abd66=_0x4e35ab,_0x47121b=this[_0x2abd66(0x1f6)];_0x47121b[_0x2abd66(0x1dc)][_0x2abd66(0x1e7)](_0x2abd66(0x1f5))[_0x2abd66(0x1dd)]({'model':_0x2abd66(0x1af),'view':_0x2abd66(0x1c5)}),_0x47121b[_0x2abd66(0x1dc)][_0x2abd66(0x1e7)](_0x2abd66(0x1b2))[_0x2abd66(0x1b5)]({'model':{'key':_0x2abd66(0x1af),'value':_0x20d747=>_0x20d747[_0x2abd66(0x1d4)](_0x2abd66(0x1c5))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4d5bab=_0x47121b[_0x2abd66(0x1ec)][_0x2abd66(0x1c8)](_0x2abd66(0x1e3));_0x4d5bab&&this[_0x2abd66(0x1c7)](_0x4d5bab,_0x2abd66(0x1d5),(_0x4e84f9,[_0x32e320,_0x2b1b7d])=>{const _0x2cf72a=_0x2abd66;_0x32e320[_0x2cf72a(0x1d6)](_0x2cf72a(0x1af),_0x2b1b7d);});}[_0x4e35ab(0x1d8)](){const _0xc24e99=_0x4e35ab,_0x5d6246=this[_0xc24e99(0x1f6)][_0xc24e99(0x1b3)][_0xc24e99(0x1c8)](_0xc24e99(0x1a9))||{},_0x4343c8=this[_0xc24e99(0x1f6)][_0xc24e99(0x1b3)][_0xc24e99(0x1c8)](_0xc24e99(0x1aa))||'';this[_0xc24e99(0x1e8)]=_0x4d587a(_0x42e5cc[_0xc24e99(0x1cf)],_0xc24e99(0x1bb),{..._0x5d6246,'pubkey':_0x4343c8,'ctx-name':_0xc24e99(0x1ad)+this[_0xc24e99(0x1fb)],'sourceList':'','imgOnly':_0xc24e99(0x1d7),'removeCopyright':_0xc24e99(0x1d7),'localeName':this[_0xc24e99(0x1f6)][_0xc24e99(0x1e4)][_0xc24e99(0x1e9)],'externalSourcesEmbedCss':_0xc24e99(0x1ee)}),this[_0xc24e99(0x1e8)][_0xc24e99(0x1fd)]=_0x46001a=>{const _0x33bf54=_0xc24e99;if(_0x33bf54(0x1db)==_0x46001a)return _0x33bf54(0x1f2);},_0x42e5cc[_0xc24e99(0x1cf)][_0xc24e99(0x1ca)][_0xc24e99(0x1df)](this[_0xc24e99(0x1e8)]);}[_0x4e35ab(0x1cd)](){const _0x4ebfc5=_0x4e35ab;this[_0x4ebfc5(0x1f0)]=_0x4d587a(_0x42e5cc[_0x4ebfc5(0x1cf)],_0x4ebfc5(0x1ef),{'ctx-name':_0x4ebfc5(0x1ad)+this[_0x4ebfc5(0x1fb)]}),_0x42e5cc[_0x4ebfc5(0x1cf)][_0x4ebfc5(0x1ca)][_0x4ebfc5(0x1df)](this[_0x4ebfc5(0x1f0)]);}[_0x4e35ab(0x1f9)](){const _0x2db5c6=_0x4e35ab,_0x52a8fe=this[_0x2db5c6(0x1f6)][_0x2db5c6(0x1ec)][_0x2db5c6(0x1c8)](_0x2db5c6(0x1c1));_0x52a8fe&&this[_0x2db5c6(0x1c7)](_0x52a8fe,_0x2db5c6(0x1de),()=>{const _0x4ecab0=_0x2db5c6,_0x4c035a=this[_0x4ecab0(0x1f6)][_0x4ecab0(0x1d9)][_0x4ecab0(0x1cf)][_0x4ecab0(0x1bd)][_0x4ecab0(0x1e0)]();_0x4c035a&&_0x4c035a[_0x4ecab0(0x1d4)](_0x4ecab0(0x1af))&&this[_0x4ecab0(0x1f6)][_0x4ecab0(0x1e2)][_0x4ecab0(0x1cb)][_0x4ecab0(0x1f1)](_0x4ecab0(0x1c6),()=>{const _0x20a627=_0x4ecab0;_0xad83ce(this[_0x20a627(0x1f6)],_0x4c035a);});});const _0x3b7a88=this[_0x2db5c6(0x1f6)][_0x2db5c6(0x1ec)][_0x2db5c6(0x1c8)](_0x2db5c6(0x1ce));_0x3b7a88&&this[_0x2db5c6(0x1c7)](_0x3b7a88,_0x2db5c6(0x1de),()=>{const _0x75bdda=_0x2db5c6,_0x5873f1=this[_0x75bdda(0x1f6)][_0x75bdda(0x1d9)][_0x75bdda(0x1cf)][_0x75bdda(0x1bd)][_0x75bdda(0x1e0)]();_0x5873f1&&_0x5873f1[_0x75bdda(0x1d4)](_0x75bdda(0x1af))&&this[_0x75bdda(0x1f6)][_0x75bdda(0x1e2)][_0x75bdda(0x1cb)][_0x75bdda(0x1f1)](_0x75bdda(0x1c6),()=>{const _0x38fc83=_0x75bdda;_0xad83ce(this[_0x38fc83(0x1f6)],_0x5873f1);});});}}function _0x2677(){const _0x47009f=['afterInit','for','_configElement','contentLanguage','configElement','imageInline','commands','add','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','uc-upload-ctx-provider','_ctxElement','once','#uc-icon-arrow-down','map','href','downcast','editor','schema','extend','_initImageProcessingIndicator','requires','ucContextId','6544NpJUue','iconHrefResolver','uploadcare.uploader','uploadcare.pubkey','init','uploadcare','uploader-','isOfficialPlugin','uploadcareImageId','1243326AcfjBY','isRegistered','upcast','config','5104520qUCexZ','elementToAttribute','destroy','2ShBCHf','761212NUQihG','ctxElement','PictureEditing','uc-config','1440567WOJCFl','selection','remove','fromCharCode','join','insertImage','5eBQYep','UploadcareEditing','406418kMcRIX','data-uc-image-id','render','listenTo','get','input[uploadcare-file-input]','body','view','5089cIjFgL','_initCtx','uploadcareImageReplace','document','isPremiumPlugin','1537359lMNUrV','_initConversion','pluginName','getAttribute','cleanupImage','removeAttribute','true','_initConfig','model','_initSchema','closeMax','conversion','attributeToAttribute','execute','appendChild','getSelectedElement','querySelector','editing','replaceImageSource','locale','imageBlock'];_0x2677=function(){return _0x47009f;};return _0x2677();}