@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251225.0 → 0.0.0-nightly-next-20251226.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x185545,Command as _0x7579d8}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x59c3c5,IconGooglePhotos as _0x284a26,IconGoogleDrive as _0x4bdc98,IconFacebook as _0x42a1cd,IconDropbox as _0x47f62c,IconUploadcareLink as _0x12a7de,IconUploadcareImageUpload as _0x59323,IconError as _0x47d799,IconUploadcareImageEdit as _0x214805}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x346bd7,MenuBarMenuListItemButtonView as _0x332cb5,View as _0x26bb6f,FocusCycler as _0x477e28,Dialog as _0x66662a,DialogViewPosition as _0x2a850d,SpinnerView as _0x4f8135,IconView as _0x212f64,Notification as _0x1aafb3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x556d24,DomEmitterMixin as _0x97d326,global as _0xf5db7e,getAncestors as _0x45328d,ObservableMixin as _0x3a0571,uid as _0x3cade6,createElement as _0x1eb9c3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x9839b2}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x494e68,info as _0x534141}from'@uploadcare/upload-client';import*as _0x185374 from'@uploadcare/file-uploader';var i=function(_0x2afde5){return _0x2afde5['Local']='local',_0x2afde5['URL']='url',_0x2afde5['Dropbox']='dropbox',_0x2afde5['GDrive']='gdrive',_0x2afde5['Facebook']='facebook',_0x2afde5['GPhotos']='gphotos',_0x2afde5['OneDrive']='onedrive',_0x2afde5;}({});function _(_0x5a62d7,_0x139f90,_0x26ff5e){const t=_0x5a62d7['t'],_0x20e1a7=_0x5a62d7['t'];switch(_0x139f90){case i['Local']:return{'text':_0x20e1a7('Insert'===_0x26ff5e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x20e1a7('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x26ff5e?_0x20e1a7('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x20e1a7('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x26ff5e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x26ff5e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x26ff5e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x26ff5e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x26ff5e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x139f90;}}class e extends _0x185545{['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 _0x21bffe=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1fc100;for(const _0x2248e5 in _0x21bffe){const _0x17a915=_0x2248e5,_0xf5bdce=_0x21bffe[_0x17a915];if('uploadcareLicenseKeyValid'==_0xf5bdce||'uploadcareLicenseKeyInvalid'==_0xf5bdce||'uploadcareLicenseKeyExpired'==_0xf5bdce||'uploadcareLicenseKeyDomainLimit'==_0xf5bdce||'uploadcareLicenseKeyNotAllowed'==_0xf5bdce||'uploadcareLicenseKeyEvaluationLimit'==_0xf5bdce||'uploadcareLicenseKeyTrialLimit'==_0xf5bdce||'uploadcareLicenseKeyUsageLimit'==_0xf5bdce){delete _0x21bffe[_0x17a915],_0x1fc100=_0xf5bdce,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1fc100&&_0x21bffe['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1fc100&&_0x21bffe['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1fc100&&_0x21bffe['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1fc100&&_0x21bffe['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1fc100&&_0x21bffe['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1fc100&&_0x21bffe['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1fc100&&_0x21bffe['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5d5d56}=this,_0x17e192=_0x5d5d56['commands']['get']('uploadcare');if(!_0x17e192)return;const _0x333f71=this['_normalizeConfigSourceList'](_0x5d5d56['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x280cc2,_0x46d969)=>{const _0x425489=this['_getIntegrationKey'](_0x46d969['type']);return _0x280cc2[_0x425489]||(_0x280cc2[_0x425489]=[]),_0x280cc2[_0x425489]['push'](_0x46d969),_0x280cc2;},{});_0x5d5d56['plugins']['has']('ImageInsertUI')&&_0x5d5d56['commands']['get']('uploadcare')&&Object['entries'](_0x333f71)['forEach'](([_0x364714,_0x5d6145])=>{_0x5d5d56['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x364714,'observable':()=>_0x17e192,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5d6145),'formViewCreator':()=>this['_createDropdownButtons'](_0x5d6145),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5d6145),'override':'assetManager'!==_0x364714});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4ed2e5){const {locale:_0x122f3a}=this['editor'];return _0x4ed2e5['map'](_0x118616=>{const _0x5a9d3f=_(_0x122f3a,_0x118616,'Insert');switch(_0x118616){case i['Local']:return{'icon':_0x59323,'type':i['Local'],..._0x5a9d3f};case i['URL']:return{'icon':_0x12a7de,'type':i['URL'],..._0x5a9d3f};case i['Dropbox']:return{'icon':_0x47f62c,'type':i['Dropbox'],..._0x5a9d3f};case i['Facebook']:return{'icon':_0x42a1cd,'type':i['Facebook'],..._0x5a9d3f};case i['GDrive']:return{'icon':_0x4bdc98,'type':i['GDrive'],..._0x5a9d3f};case i['GPhotos']:return{'icon':_0x284a26,'type':i['GPhotos'],..._0x5a9d3f};case i['OneDrive']:return{'icon':_0x59c3c5,'type':i['OneDrive'],..._0x5a9d3f};}});}['_getIntegrationKey'](_0x4f4177){switch(_0x4f4177){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1cfe3f,_0x35650d){const _0x17e7af=this['editor'],_0xd803d8=new _0x1cfe3f(_0x17e7af['locale']),_0x1c9eb8=_0x17e7af['commands']['get']('uploadcare');return _0xd803d8['bind']('isEnabled')['to'](_0x1c9eb8),_0xd803d8['on']('execute',()=>{_0x1c9eb8['execute'](_0x35650d);}),_0xd803d8;}['_createToolbarButton'](_0x56f092){const {locale:_0x534612}=this['editor'],_0x20fb6b=this['editor']['plugins']['get']('ImageInsertUI'),_0x39a4b5=_0x56f092[0x0],_0x285ae9=this['_createButton'](_0x346bd7,_0x39a4b5['type']);return _0x285ae9['icon']=_0x39a4b5['icon'],_0x285ae9['bind']('label')['to'](_0x20fb6b,'isImageSelected',_0x4398a6=>_(_0x534612,_0x39a4b5['type'],_0x4398a6?'Replace':'Insert')['text']),_0x285ae9['tooltip']=!0x0,_0x285ae9;}['_createDropdownButtons'](_0xd8bef3){const {locale:_0x2fd065}=this['editor'],_0x302077=this['editor']['plugins']['get']('ImageInsertUI');return _0xd8bef3['map'](_0x47fa7d=>{const _0x37638d=this['_createButton'](_0x346bd7,_0x47fa7d['type']);return _0x37638d['withText']=!0x0,_0x37638d['icon']=_0x47fa7d['icon'],_0x37638d['bind']('label')['to'](_0x302077,'isImageSelected',_0x195ff5=>_(_0x2fd065,_0x47fa7d['type'],_0x195ff5?'Replace':'Insert')['text']),_0x37638d;});}['_createMenuBarButtons'](_0x20ea90){return _0x20ea90['map'](_0x2964d0=>{const _0x4ffb35=this['_createButton'](_0x332cb5,_0x2964d0['type']);return _0x4ffb35['icon']=_0x2964d0['icon'],_0x4ffb35['label']=_0x2964d0['shortText'],_0x4ffb35;});}}class F extends _0x26bb6f{['focusTracker'];['focusCycler'];constructor(_0x4d9957){super(_0x4d9957),this['focusTracker']=new _0x556d24(),this['focusCycler']=new _0x477e28({'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(_0x155d01,_0x49a045){super(_0x155d01),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-'+_0x49a045}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x77fce3,_0x451492){const _0x499e2e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x269f80=>_0x269f80<=_0x451492)['map'](_0x339c04=>_0x77fce3['replace'](/\/$/,'')+'/-/resize/'+_0x339c04+'x/\x20'+_0x339c04+'w');return{'imageFallbackUrl':_0x77fce3,'imageSources':[{'srcset':_0x499e2e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x451492+'px)\x20100vw,\x20'+_0x451492+'px','type':'image/webp'}]};}function S(_0x225cef,_0x62e328,_0x5d073d){const _0x4edfd7=_0x225cef['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4edfd7?parseInt(_0x4edfd7[0x1],0xa):_0x62e328,'height':_0x4edfd7?parseInt(_0x4edfd7[0x2],0xa):_0x5d073d};}function p(_0x307cdc,_0x46d592){const _0x11f1c1=new(_0x97d326())(),_0x702dee=_0x307cdc['plugins']['get']('ImageUtils'),_0x36f43b=_0x307cdc['editing']['mapper']['toViewElement'](_0x46d592),_0x132999=_0x702dee['findViewImgElement'](_0x36f43b),_0xdc4aab=_0x307cdc['editing']['view']['domConverter']['viewToDom'](_0x132999),_0x3bcd1f=_0x46d592['getAttribute']('width'),_0xfd34df=_0x46d592['getAttribute']('height'),_0x2c5e40='image-processing';_0x307cdc['editing']['view']['change'](_0x161902=>{_0x161902['addClass'](_0x2c5e40,_0x36f43b),_0x161902['setStyle']('aspect-ratio',_0x3bcd1f+'/'+_0xfd34df,_0x132999);}),_0x11f1c1['listenTo'](_0xdc4aab,'load',()=>{_0x11f1c1['stopListening'](_0xdc4aab,'load'),_0x307cdc['editing']['view']['change'](_0x2ffe70=>{_0x2ffe70['removeClass'](_0x2c5e40,_0x36f43b),_0x2ffe70['removeStyle']('aspect-ratio',_0x132999);});});}function G(_0x5a32a1){if(Array['isArray'](_0x5a32a1)){const _0x3ee123=_0x5a32a1['map'](G);return _0x3bb4b8=>_0x3ee123['some'](_0x21ad83=>_0x21ad83(_0x3bb4b8));}if('origin'==_0x5a32a1){const _0x4fa5d2=_0xf5db7e['window']['location']['origin'];return _0x3a5671=>new URL(_0x3a5671,_0xf5db7e['document']['baseURI'])['origin']==_0x4fa5d2;}return'function'==typeof _0x5a32a1?_0x5a32a1:_0x5a32a1 instanceof RegExp?_0x279d9d=>!(!_0x279d9d['match'](_0x5a32a1)&&!_0x279d9d['replace'](/^https?:\/\//,'')['match'](_0x5a32a1)):()=>!0x1;}function A(_0x590592,_0x12507a){return _0x45328d(_0x590592['target'])['includes'](_0x12507a);}class n extends/* #__PURE__ -- @preserve */
24
- _0x3a0571(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3c080b,_0x3e4f4a,_0x386c8f){super(),this['_editor']=_0x3c080b,this['_editing']=_0x3e4f4a,this['_dialog']=_0x3c080b['plugins']['get'](_0x66662a),this['_api']=_0x3e4f4a['ctxElement']['getAPI'](),this['_type']=_0x386c8f,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:_0x5c6b20,model:_0x37d393}=this['_editor'],_0x5ea914=_0x37d393['document']['selection']['getSelectedElement'](),_0x54f473=_0x5ea914&&(_0x5ea914['is']('element','imageBlock')||_0x5ea914['is']('element','imageInline'));this['_formView']=new x(_0x5c6b20,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x59323,'title':_(_0x5c6b20,this['_type'],_0x54f473?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2a850d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1d977b=>!A(_0x1d977b,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x28d326}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x125b0e=>{const _0x46b534=_0x28d326['length'];for(const _0x2038c7 of _0x28d326){const _0xf0bf47=_0x2038c7===_0x28d326[_0x46b534-0x1],{cdnUrl:_0x52e259,fileInfo:_0x208284}=_0x2038c7;if(!_0x52e259||!_0x208284)continue;const {width:_0x4491e2,height:_0x4f8767}=_0x208284['imageInfo'],_0x44bc73=S(_0x52e259,_0x4491e2,_0x4f8767),_0x55a672=C(_0x52e259,_0x44bc73['width']),_0x1c3e19={'id':_0x208284['uuid'],'type':'image','attributes':{'imageDimension':_0x44bc73,..._0x55a672}};this['_insertAsset'](_0x1c3e19,_0xf0bf47,_0x125b0e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5d104b=>{'idle'===_0x5d104b['detail']['status']&&!_0x5d104b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4efea5,_0xdeea75,_0x5ca8ae){const _0x45b548=this['_editor']['model']['document']['selection'],_0x38515a=_0x45b548['getSelectedElement'](),_0x31c7fe=!(!_0x38515a||!_0x38515a['is']('element','imageInline'));_0x5ca8ae['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4efea5,_0x31c7fe),_0xdeea75||_0x5ca8ae['setSelection'](_0x45b548['getLastPosition']());}['_insertImage'](_0x25c9a8,_0x49d6de){const _0x34868c=this['_editor'],{imageDimension:_0x44eea8,imageFallbackUrl:_0x2d1cf0,imageSources:_0x3b47d7}=_0x25c9a8['attributes'];_0x34868c['execute']('insertImage',{'imageType':_0x49d6de?'imageInline':null,'source':{'uploadcareImageId':_0x25c9a8['id'],'src':_0x2d1cf0,'sources':_0x3b47d7,..._0x44eea8}});}}class w extends _0x7579d8{['_editing'];['_controller']=null;static get['requires'](){return[_0x66662a,o];}constructor(_0x9e7d63){super(_0x9e7d63),this['_editing']=_0x9e7d63['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4926a2){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x4926a2);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x40dfc3,..._0x3aa5c2}){return _0x494e68(_0x40dfc3,_0x3aa5c2);}static['getInfo'](_0x3601b0,_0x2ed1bf){return _0x534141(_0x3601b0,_0x2ed1bf);}}class f extends _0x185545{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x9839b2,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5ba5ba=this['editor'];if(!!!_0x5ba5ba['config']['get']('uploadcare'))return;_0x5ba5ba['plugins']['get'](_0x9839b2)['createUploadAdapter']=_0x5535ae=>new k(_0x5535ae,_0x5ba5ba),_0x5ba5ba['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x57e784,{imageElement:_0x5a969e,data:_0x304a44})=>{_0x5ba5ba['model']['change'](_0x3178e5=>{_0x3178e5['setAttribute']('uploadcareImageId',_0x304a44['uploadcareImageId'],_0x5a969e);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x23570f,_0x1d93de){this['loader']=_0x23570f,this['editor']=_0x1d93de,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4dbfd3=await this['loader']['file'];return j['upload']({'file':_0x4dbfd3,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1f4561=>{_0x1f4561&&_0x1f4561['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1f4561['value']);}})['then'](async _0x5871bb=>{const {imageFallbackUrl:_0x471907,imageSources:_0x4e7d36}=C(_0x5871bb['cdnUrl'],_0x5871bb['imageInfo']['width']);return{'uploadcareImageId':_0x5871bb['uuid'],'default':_0x471907,'sources':_0x4e7d36};})['catch'](()=>{const _0x40e618=t('Cannot\x20upload\x20file:')+('\x20'+_0x4dbfd3['name']+'.');return Promise['reject'](_0x40e618);});}['abort'](){this['controller']['abort']();}}class o extends _0x185545{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x66662a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5368a2){super(_0x5368a2),this['ucContextId']=_0x3cade6();}['init'](){const _0x3e4e5e=this['editor'];_0x3e4e5e['commands']['add']('uploadcare',new w(_0x3e4e5e));}['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 _0x2fac7d=_0xf5db7e['document']['querySelector']('input[uploadcare-file-input]');_0x2fac7d&&_0x2fac7d['remove']();}),async function(_0x40af24){const _0x26f77f=_0x144be2([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x18793b=0x535f8c3a,_0xbd1c99=0x5358f0d2^_0x18793b,_0x3017bd=window[_0x144be2([0x44,0x61,0x74,0x65])][_0x144be2([0x6e,0x6f,0x77])](),_0x769cc9=_0x40af24[_0x144be2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xf0a1fc=new window[(_0x144be2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1677c7=>{_0x769cc9[_0x144be2([0x6f,0x6e,0x63,0x65])](_0x144be2([0x72,0x65,0x61,0x64,0x79]),_0x1677c7);}),_0x259829={[_0x144be2([0x6b,0x74,0x79])]:_0x144be2([0x45,0x43]),[_0x144be2([0x75,0x73,0x65])]:_0x144be2([0x73,0x69,0x67]),[_0x144be2([0x63,0x72,0x76])]:_0x144be2([0x50,0x2d,0x32,0x35,0x36]),[_0x144be2([0x78])]:_0x144be2([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]),[_0x144be2([0x79])]:_0x144be2([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]),[_0x144be2([0x61,0x6c,0x67])]:_0x144be2([0x45,0x53,0x32,0x35,0x36])},_0x459226=_0x769cc9[_0x144be2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x144be2([0x67,0x65,0x74])](_0x144be2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xfb2543(){let _0x55b101,_0x3b2e0e=null,_0xcf22d5=null;try{if(_0x459226==_0x144be2([0x47,0x50,0x4c]))return _0x144be2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x55b101=_0x540462(),!_0x55b101)return _0x144be2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x55b101[_0x144be2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xcf22d5=_0x15ac55(_0x55b101[_0x144be2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x55b101[_0x144be2([0x6a,0x74,0x69])])),await _0x2b895d()?_0x333b1e()?_0x246fac()?_0x144be2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x22eb19()?(_0x55b101[_0x144be2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x144be2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b2e0e=_0x55477e(_0x144be2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x55b101[_0x144be2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x144be2([0x74,0x72,0x69,0x61,0x6c])&&(_0x3b2e0e=_0x55477e(_0x144be2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3d850b()):_0x144be2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x144be2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x144be2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x144be2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x246fac(){const _0x457f3f=[_0x144be2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x144be2([0x74,0x72,0x69,0x61,0x6c])][_0x144be2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55b101[_0x144be2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3017bd/0x3e8:0xe10*_0xbd1c99;return _0x55b101[_0x144be2([0x65,0x78,0x70])]<_0x457f3f;}function _0x333b1e(){const _0x1aa8c3=_0x55b101[_0x144be2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1aa8c3&&(!!_0x1aa8c3[_0x144be2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x144be2([0x2a]))||!!_0x1aa8c3[_0x144be2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x144be2([0x55,0x50,0x4c,0x43])));}function _0x22eb19(){const _0x11d3dc=_0x55b101[_0x144be2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x11d3dc||0x0==_0x11d3dc[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4fbc27}=new URL(window[_0x144be2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x11d3dc[_0x144be2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fbc27))return!0x0;const _0x534000=_0x4fbc27[_0x144be2([0x73,0x70,0x6c,0x69,0x74])](_0x144be2([0x2e]));return _0x11d3dc[_0x144be2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x325986=>_0x325986[_0x144be2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x144be2([0x2a])))[_0x144be2([0x6d,0x61,0x70])](_0x13c053=>_0x13c053[_0x144be2([0x73,0x70,0x6c,0x69,0x74])](_0x144be2([0x2e])))[_0x144be2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a26b5=>_0x4a26b5[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x534000[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x144be2([0x6d,0x61,0x70])](_0x4deda9=>Array(_0x534000[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4deda9[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x144be2([0x66,0x69,0x6c,0x6c])](_0x4deda9[0x0]===_0x144be2([0x2a])?_0x144be2([0x2a]):'')[_0x144be2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4deda9))[_0x144be2([0x73,0x6f,0x6d,0x65])](_0x4583b5=>_0x534000[_0x144be2([0x65,0x76,0x65,0x72,0x79])]((_0xf85051,_0x495583)=>_0x4583b5[_0x495583]===_0xf85051||_0x4583b5[_0x495583]===_0x144be2([0x2a])));}function _0x3d850b(){return _0x3b2e0e&&_0xcf22d5?new window[(_0x144be2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b0cfd,_0x53df73)=>{_0x3b2e0e[_0x144be2([0x74,0x68,0x65,0x6e])](_0x3b0cfd,_0x53df73),_0xcf22d5[_0x144be2([0x74,0x68,0x65,0x6e])](_0x5f768e=>{_0x5f768e!=_0x144be2([0x56,0x61,0x6c,0x69,0x64])&&_0x3b0cfd(_0x5f768e);},_0x53df73);}):_0x3b2e0e||_0xcf22d5||_0x144be2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x15ac55(_0x5437ba,_0x28aba0){return new window[(_0x144be2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58ea43=>{if(_0x54694a())return _0x58ea43(_0x144be2([0x56,0x61,0x6c,0x69,0x64]));_0x8d21ac(),_0x769cc9[_0x144be2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x144be2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5d46ea=!0x1;const _0x113af5=_0x3cade6();function _0x1e50b9(_0x5968bf){return!!_0x5968bf&&(typeof _0x5968bf===_0x144be2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5968bf===_0x144be2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5968bf[_0x144be2([0x74,0x68,0x65,0x6e])]===_0x144be2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5968bf[_0x144be2([0x63,0x61,0x74,0x63,0x68])]===_0x144be2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3fa90d(_0x27a57a){_0x1c5fe3(_0x27a57a)[_0x144be2([0x74,0x68,0x65,0x6e])](_0x1660b6=>{if(!_0x1660b6||_0x1660b6[_0x144be2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x144be2([0x6f,0x6b]))return _0x144be2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x35d208(_0x6ccdbd(_0x113af5+_0x28aba0))!=_0x1660b6[_0x144be2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x144be2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x144be2([0x56,0x61,0x6c,0x69,0x64]);})[_0x144be2([0x74,0x68,0x65,0x6e])](_0x55a8d7=>(_0x23734c(),_0x55a8d7),()=>{const _0x4c0f0f=_0x43ce27();return null==_0x4c0f0f?(_0x23734c(),_0x144be2([0x56,0x61,0x6c,0x69,0x64])):_0x144be2(_0x3017bd-_0x4c0f0f>(0x7753083a^_0x18793b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x144be2([0x74,0x68,0x65,0x6e])](_0x58ea43)[_0x144be2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58ea43(_0x144be2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3054ab=0x536962ba^_0x18793b;function _0x23734c(){const _0x4b461f=_0x144be2([0x6c,0x6c,0x63,0x74,0x2d])+_0x35d208(_0x6ccdbd(_0x5437ba)),_0x2798a9=_0x1185eb(_0x35d208(window[_0x144be2([0x4d,0x61,0x74,0x68])][_0x144be2([0x63,0x65,0x69,0x6c])](_0x3017bd/_0x3054ab)));window[_0x144be2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x144be2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b461f,_0x2798a9);}function _0x43ce27(){const _0x334177=_0x144be2([0x6c,0x6c,0x63,0x74,0x2d])+_0x35d208(_0x6ccdbd(_0x5437ba)),_0x3f1fc0=window[_0x144be2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x144be2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x334177);return _0x3f1fc0?window[_0x144be2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1185eb(_0x3f1fc0),0x10)*_0x3054ab:null;}function _0x1c5fe3(_0x4f0669){return new window[(_0x144be2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f36ec,_0x4c8251)=>{_0x4f0669[_0x144be2([0x74,0x68,0x65,0x6e])](_0x2f36ec,_0x4c8251),window[_0x144be2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4c8251,0x535e58fa^_0x18793b);});}}_0x769cc9[_0x144be2([0x6f,0x6e])](_0x144be2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52478d,_0x52c312)=>{if(_0x52c312[0x0]!=_0x5437ba)return _0x58ea43(_0x144be2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x52c312[0x1]={..._0x52c312[0x1],[_0x144be2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x113af5};},{[_0x144be2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x144be2([0x68,0x69,0x67,0x68])}),_0x769cc9[_0x144be2([0x6f,0x6e])](_0x144be2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2ef48f=>{_0x1e50b9(_0x2ef48f[_0x144be2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5d46ea=!0x0,_0x3fa90d(_0x2ef48f[_0x144be2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x144be2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x144be2([0x6c,0x6f,0x77])}),_0xf0a1fc[_0x144be2([0x74,0x68,0x65,0x6e])](()=>{_0x5d46ea||_0x58ea43(_0x144be2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x54694a(){return _0x769cc9[_0x144be2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x144be2([0x76,0x69,0x65,0x77])][_0x144be2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x144be2([0x61,0x75,0x74,0x6f]);}function _0x8d21ac(){_0x769cc9[_0x144be2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x144be2([0x76,0x69,0x65,0x77])][_0x144be2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x144be2([0x61,0x75,0x74,0x6f]);}}function _0x55477e(_0x38de70){const _0x3e7fb7=[new window[(_0x144be2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45a2e4=>setTimeout(_0x45a2e4,0x5356b2f6^_0x18793b)),_0xf0a1fc[_0x144be2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x144be2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3598eb=>{let _0x1f4d16=0x0;_0x769cc9[_0x144be2([0x6d,0x6f,0x64,0x65,0x6c])][_0x144be2([0x6f,0x6e])](_0x144be2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x36c329,_0x574149)=>{_0x574149[0x0][_0x144be2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1f4d16++,_0x1f4d16==(0x535f89d2^_0x18793b)&&(_0x3598eb(),_0x36c329[_0x144be2([0x6f,0x66,0x66])]());});}))];return window[_0x144be2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x144be2([0x72,0x61,0x63,0x65])](_0x3e7fb7)[_0x144be2([0x74,0x68,0x65,0x6e])](()=>_0x38de70);}async function _0x251109(){await _0xf0a1fc,_0x769cc9[_0x144be2([0x6d,0x6f,0x64,0x65,0x6c])][_0x144be2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x68c6dc,_0x769cc9[_0x144be2([0x6d,0x6f,0x64,0x65,0x6c])][_0x144be2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x68c6dc,_0x769cc9[_0x144be2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x144be2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b4cfc(_0x3a54c7){const _0x1885c5=_0x5ea3b5();_0x769cc9[_0x1885c5]=_0x144be2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3a54c7,_0x3a54c7!=_0x144be2([0x56,0x61,0x6c,0x69,0x64])&&_0x251109();}function _0x5ea3b5(){const _0x49f534=window[_0x144be2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x144be2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x144be2([0x6e,0x6f,0x77])]())[_0x144be2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x144be2([0x2e]),'');let _0x32d6df=_0x144be2([0x68]);for(let _0x3fada4=0x0;_0x3fada4<_0x49f534[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3fada4+=0x2){let _0x496a4f=window[_0x144be2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49f534[_0x144be2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3fada4,_0x3fada4+0x2));_0x496a4f>=_0x26f77f[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x496a4f-=_0x26f77f[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x32d6df+=_0x26f77f[_0x496a4f];}return _0x32d6df;}function _0x540462(){const _0x3f6630=_0x459226[_0x144be2([0x73,0x70,0x6c,0x69,0x74])](_0x144be2([0x2e]));if(0x3!=_0x3f6630[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40653a(_0x3f6630[0x1]);function _0x40653a(_0x2e0d0c){const _0x120213=_0x2f2b29(_0x2e0d0c);return _0x120213&&_0x2e2413()?_0x120213:null;function _0x2e2413(){const _0x45956e=_0x120213[_0x144be2([0x6a,0x74,0x69])],_0x5645eb=window[_0x144be2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45956e[_0x144be2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45956e[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1d077b={..._0x120213,[_0x144be2([0x6a,0x74,0x69])]:_0x45956e[_0x144be2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x45956e[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1d077b[_0x144be2([0x76,0x63])],_0x6ccdbd(_0x1d077b)==_0x5645eb;}}}async function _0x2b895d(){let _0x2a4d39=!0x0;try{const _0x3920c7=_0x459226[_0x144be2([0x73,0x70,0x6c,0x69,0x74])](_0x144be2([0x2e])),[_0x5d67aa,_0x4b16fc,_0x4866db]=_0x3920c7;return _0x3412d6(_0x5d67aa),await _0x3afd65(_0x5d67aa,_0x4b16fc,_0x4866db),_0x2a4d39;}catch{return!0x1;}function _0x3412d6(_0x13307e){const _0x1bc3b0=_0x2f2b29(_0x13307e);_0x1bc3b0&&_0x1bc3b0[_0x144be2([0x61,0x6c,0x67])]==_0x144be2([0x45,0x53,0x32,0x35,0x36])||(_0x2a4d39=!0x1);}async function _0x3afd65(_0x301e2f,_0xc235,_0x24bd6c){const _0x4bd217=window[_0x144be2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x144be2([0x66,0x72,0x6f,0x6d])](_0x3b6b11(_0x24bd6c),_0x43d2a4=>_0x43d2a4[_0x144be2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x175c71=new window[(_0x144be2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x144be2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x301e2f+_0x144be2([0x2e])+_0xc235),_0x47c83f=window[_0x144be2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x144be2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x47c83f)return;const _0x1b2aff=await _0x47c83f[_0x144be2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x144be2([0x6a,0x77,0x6b]),_0x259829,{[_0x144be2([0x6e,0x61,0x6d,0x65])]:_0x144be2([0x45,0x43,0x44,0x53,0x41]),[_0x144be2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x144be2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x144be2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x47c83f[_0x144be2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x144be2([0x6e,0x61,0x6d,0x65])]:_0x144be2([0x45,0x43,0x44,0x53,0x41]),[_0x144be2([0x68,0x61,0x73,0x68])]:{[_0x144be2([0x6e,0x61,0x6d,0x65])]:_0x144be2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1b2aff,_0x4bd217,_0x175c71)||(_0x2a4d39=!0x1);}}function _0x2f2b29(_0x33dfa8){return _0x33dfa8[_0x144be2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x144be2([0x65,0x79]))?JSON[_0x144be2([0x70,0x61,0x72,0x73,0x65])](_0x3b6b11(_0x33dfa8)):null;}function _0x3b6b11(_0x512d4e){return window[_0x144be2([0x61,0x74,0x6f,0x62])](_0x512d4e[_0x144be2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x144be2([0x2b]))[_0x144be2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x144be2([0x2f])));}function _0x6ccdbd(_0x1edc53){let _0x25efe3=0x1505;function _0x494ee3(_0xf62970){for(let _0x5b2e28=0x0;_0x5b2e28<_0xf62970[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b2e28++){const _0x1bde61=_0xf62970[_0x144be2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5b2e28);_0x25efe3=(_0x25efe3<<0x5)+_0x25efe3+_0x1bde61,_0x25efe3&=_0x25efe3;}}function _0x17051a(_0x47537b){Array[_0x144be2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x47537b)?_0x47537b[_0x144be2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x17051a):_0x47537b&&typeof _0x47537b==_0x144be2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x144be2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x47537b)[_0x144be2([0x73,0x6f,0x72,0x74])]()[_0x144be2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x22cb54,_0x14a0ef])=>{_0x494ee3(_0x22cb54),_0x17051a(_0x14a0ef);}):_0x494ee3(window[_0x144be2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x47537b));}return _0x17051a(_0x1edc53),_0x25efe3>>>0x0;}function _0x35d208(_0x168a8e){return _0x168a8e[_0x144be2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x144be2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x144be2([0x30]));}function _0x1185eb(_0x2c3fd7){return _0x2c3fd7[_0x144be2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x144be2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x144be2([0x6a,0x6f,0x69,0x6e])]('');}function _0x68c6dc(){}function _0x144be2(_0x4f41ff){return _0x4f41ff['map'](_0x163a11=>String['fromCharCode'](_0x163a11))['join']('');}_0x5b4cfc(await _0xfb2543());}(this);}['_initSchema'](){const _0x394f1b=this['editor']['model']['schema'];_0x394f1b['isRegistered']('imageBlock')&&_0x394f1b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x394f1b['isRegistered']('imageInline')&&_0x394f1b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1fdbeb=this['editor'];_0x1fdbeb['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1fdbeb['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5b4e52=>_0x5b4e52['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5088c0=_0x1fdbeb['commands']['get']('replaceImageSource');_0x5088c0&&this['listenTo'](_0x5088c0,'cleanupImage',(_0x5e0889,[_0x57e422,_0x2409ed])=>{_0x57e422['removeAttribute']('uploadcareImageId',_0x2409ed);});}['_initConfig'](){const _0x22a6b7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3d3501=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1eb9c3(_0xf5db7e['document'],'uc-config',{..._0x22a6b7,'pubkey':_0x3d3501,'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']=_0x3c1157=>{if('closeMax'==_0x3c1157)return'#uc-icon-arrow-down';},_0xf5db7e['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1eb9c3(_0xf5db7e['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0xf5db7e['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x31afe5=this['editor']['commands']['get']('insertImage');_0x31afe5&&this['listenTo'](_0x31afe5,'execute',()=>{const _0x8b0b21=this['editor']['model']['document']['selection']['getSelectedElement']();_0x8b0b21&&_0x8b0b21['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x8b0b21);});});const _0x41aaf=this['editor']['commands']['get']('uploadcareImageReplace');_0x41aaf&&this['listenTo'](_0x41aaf,'execute',()=>{const _0x40becf=this['editor']['model']['document']['selection']['getSelectedElement']();_0x40becf&&_0x40becf['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x40becf);});});}}class tt extends _0x185545{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10acd0){super(_0x10acd0),_0x10acd0['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x185374['defineComponents'](_0x185374),this['_defineLocale']();}['_defineLocale'](){const _0x27848c=this['editor']['config']['get']('uploadcare.locale'),_0x148417=this['editor']['locale']['contentLanguage'];_0x27848c&&_0x185374['defineLocale'](_0x148417,_0x27848c);}}class ii extends _0x26bb6f{constructor(_0x40e94f){super(_0x40e94f);const t=_0x40e94f['t'],_0x43c8d0=this['bindTemplate'],_0x148de6=new _0x4f8135();_0x148de6['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':[_0x148de6,{'text':_0x43c8d0['to']('imageUploadProgress',_0x45b21=>t('Loading\x20image...')+'\x20('+(_0x45b21||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 _0x26bb6f{constructor(_0x5478bb){super(_0x5478bb);const t=_0x5478bb['t'];this['set']('errorType',null);const _0x21fdd8=new _0x346bd7(_0x5478bb);_0x21fdd8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x21fdd8['withText']=!0x0,_0x21fdd8['class']='ck-button-action',_0x21fdd8['on']('execute',()=>{this['fire']('retry');}),_0x21fdd8['bind']('isVisible')['to'](this,'errorType',_0x99ac78=>'NotFound'!==_0x99ac78);const _0x335eed=new _0x212f64();_0x335eed['content']=_0x47d799,_0x335eed['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x18de08=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':[_0x335eed,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x18de08['to']('errorType',_0x308abe=>t('NotFound'!==_0x308abe?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x21fdd8]},{'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 _0x26bb6f{constructor(_0x49c449,_0x24b7b4){super(_0x49c449);const _0x4e144f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x24b7b4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4e144f['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x56ef0a,_0x526dd3,_0x1d54a4){super(_0x56ef0a),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x56ef0a),this['_errorView']=new ti(_0x56ef0a),this['_editingView']=new ei(_0x56ef0a,_0x1d54a4),this['_focusableView']=new _0x26bb6f(_0x56ef0a),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x526dd3),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'],_0x5dfb2f=>{this['_addUploadcareImageEditorListeners'](_0x5dfb2f);});}),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'](_0x212af1,_0x357210){const _0x9ec5c7='uc-cloud-image-editor',_0x2c03aa=_0x212af1['querySelector'](_0x9ec5c7);if(_0x2c03aa)return _0x357210(_0x2c03aa);const _0xbab8d9=new MutationObserver(_0x5e464f=>{const _0x5665c5=_0x5e464f['filter'](_0x4006c9=>_0x4006c9['target']===_0x212af1&&_0x4006c9['addedNodes']['length']>0x0&&_0x4006c9['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x9ec5c7);_0x5665c5['length']&&(_0xbab8d9['disconnect'](),_0x357210(_0x5665c5[0x0]['addedNodes'][0x0]));});_0xbab8d9['observe'](_0x212af1,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3a33bf){_0x3a33bf['addEventListener']('apply',_0x3736ed=>{this['fire']('apply',{'imageSrc':_0x3736ed['detail']['cdnUrl']});}),_0x3a33bf['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x3a0571(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2eef1c,_0x4d22ed,_0x59d759){super(),this['_editor']=_0x2eef1c,this['_dialog']=_0x4d22ed,this['_imageElement']=_0x59d759,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 _0x533bf0=this['_imageElement'],_0x284d2a=_0x533bf0['getAttribute']('uploadcareImageId'),_0x44ac3d=_0x533bf0['getAttribute']('src');if(_0x284d2a)await this['_loadImageInfo'](_0x284d2a,_0x44ac3d);else{if(this['_imageCache']['has'](_0x44ac3d)){const _0x5129c3=this['_imageCache']['get'](_0x44ac3d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5129c3['url'],this['imageDimension']=_0x5129c3['dimension'],this['imageId']=_0x5129c3['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x54accc}=this['_editor'],t=_0x54accc['t'],_0x11bf49=new X(_0x54accc,this['imageStatus'],this['_attributes']);_0x11bf49['bind']('status')['to'](this,'imageStatus'),_0x11bf49['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x11bf49['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x11bf49['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x11bf49,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x214805,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x11bf49,'position':_0x2a850d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x11bf49['focus']();},'onHide':()=>{_0x11bf49['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x19b2b4=>!A(_0x19b2b4,_0x11bf49['element'])}});}['_loadImageInfo'](_0x4ed0ef,_0x5e1129){return j['getInfo'](_0x4ed0ef,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2e3253=>{const {width:_0x11f8e6,height:_0x3067ac}=_0x2e3253['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5e1129,this['imageDimension']={'width':_0x11f8e6,'height':_0x3067ac},this['imageId']=_0x4ed0ef;})['catch'](_0x17d8f2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x17d8f2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2c0e5b,_0x4ab59a){return this['_getImageAsFile'](_0x2c0e5b)['then'](_0x4141fa=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x4ab59a['signal'],'file':_0x4141fa,'onProgress':_0x5702c6=>{_0x5702c6&&_0x5702c6['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5702c6['value']));}}))['then'](_0x8ee712=>{const {width:_0x2369a0,height:_0x150ac5}=_0x8ee712['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x8ee712['cdnUrl'],this['imageDimension']={'width':_0x2369a0,'height':_0x150ac5},this['imageId']=_0x8ee712['uuid'],this['imageUploadProgress']=null;const _0x426aef=_0x2c0e5b['getAttribute']('src');this['_imageCache']['set'](_0x426aef,{'id':_0x8ee712['uuid'],'url':_0x8ee712['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5d444f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5d444f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4ad15f,_0x513834){_0x4ad15f['on']('apply',(_0x2a5cec,_0x17765c)=>{this['_replaceImage'](_0x513834,_0x17765c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4ad15f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4ad15f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x45f294,_0x483cf3,_0xcb164){const _0x28cf24=this['_editor'],{width:_0x1618dc,height:_0x364baf}=S(_0x483cf3,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3e906b,imageSources:_0x120990}=C(_0x483cf3,_0x1618dc);_0x28cf24['model']['change'](_0x3dd244=>{if('$graveyard'===_0x45f294['root']['rootName']){_0x28cf24['execute']('insertImage',{'imageType':_0x45f294['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x45f294['getAttributes']()),'uploadcareImageId':_0xcb164,'src':_0x3e906b,'sources':_0x120990,'width':_0x1618dc,'height':_0x364baf}});const _0x5b17f3=_0x45f294['getChildren']();_0x45f294=_0x28cf24['model']['document']['selection']['getSelectedElement']();for(const _0xbcb7c5 of _0x5b17f3)_0x3dd244['append'](_0x3dd244['cloneElement'](_0xbcb7c5),_0x45f294);}else _0x3dd244['setSelection'](_0x45f294,'on'),_0x28cf24['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x45f294['getAttributes']()),'uploadcareImageId':_0xcb164,'src':_0x3e906b,'sources':_0x120990,'width':_0x1618dc,'height':_0x364baf},_0x45f294);_0x3dd244['setSelection'](_0x45f294,'on');});}async['_getImageAsFile'](_0xf776d3){const _0x26404d=_0xf5db7e['window'],_0x13f1e9=_0xf5db7e['document']['location']['href'],_0x2d7145=new _0x26404d['URL'](_0xf776d3['getAttribute']('src'),_0x13f1e9);if('data:'===_0x2d7145['protocol']){const _0x57c8f9=_0x2d7145['href']['split'](','),_0x110fe2=_0x57c8f9[0x0]['match'](/:(.*?);/)[0x1],_0x27b82f=_0x110fe2['split']('/')[0x1],_0x1a97fa=_0x26404d['atob'](_0x57c8f9[_0x57c8f9['length']-0x1]);let _0x1350c3=_0x1a97fa['length'];const _0x3bc322=new _0x26404d['Uint8Array'](_0x1350c3);for(;_0x1350c3--;)_0x3bc322[_0x1350c3]=_0x1a97fa['charCodeAt'](_0x1350c3);return new _0x26404d['File']([_0x3bc322],'image.'+_0x27b82f,{'type':_0x110fe2});}const _0x26060a=_0x2d7145['href']['split']('/'),_0x84f689=_0x26060a[_0x26060a['length']-0x1],_0x5b1fa4=_0x84f689['split']('.')[0x1];return _0x26404d['fetch'](_0x2d7145['href'])['then'](_0x51840b=>_0x51840b['clone']()['blob']())['then'](_0x2aa5ad=>new _0x26404d['File']([_0x2aa5ad],_0x84f689,{'type':'image/'+_0x5b1fa4}));}}class O extends _0x7579d8{['imageEditController'];static get['requires'](){return[_0x66662a];}['_isEditable'];constructor(_0x4bc276){super(_0x4bc276),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x25ddbe){const _0x5269c2=G(_0x25ddbe);return _0x115eea=>!(!_0x115eea||!_0x115eea['is']('element','imageBlock')&&!_0x115eea['is']('element','imageInline'))&&(!!_0x115eea['hasAttribute']('uploadcareImageId')||!!_0x115eea['hasAttribute']('src')&&_0x5269c2(_0x115eea['getAttribute']('src')));}(_0x4bc276['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5849f1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5849f1);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x505114=this['editor']['model']['document']['selection']['getSelectedElement']();_0x505114&&(_0x505114['is']('element','imageBlock')||_0x505114['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x66662a),_0x505114),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x7579d8{['refresh'](){const _0x5dbeaf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5dbeaf&&(_0x5dbeaf['is']('element','imageBlock')||_0x5dbeaf['is']('element','imageInline')));}['execute'](_0x1b71d8){const _0x3989c4=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x462a1d=>{_0x462a1d['setAttributes'](_0x1b71d8,_0x3989c4),_0x462a1d['removeAttribute']('srcset',_0x3989c4),_0x462a1d['removeAttribute']('sizes',_0x3989c4);});}}class m extends _0x185545{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1aafb3,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x119f89}=this;_0x119f89['commands']['add']('uploadcareImageEdit',new O(_0x119f89)),_0x119f89['commands']['add']('uploadcareImageReplace',new R(_0x119f89));}}class g extends _0x185545{['_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 _0x114607=this['editor'];_0x114607['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5bdcf8=>{const _0x39efdc=_0x114607['commands']['get']('uploadcareImageEdit'),_0x370c14=new _0x346bd7(_0x5bdcf8),t=_0x5bdcf8['t'];return _0x370c14['set']({'icon':_0x214805,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x370c14['bind']('isEnabled')['to'](_0x39efdc),_0x370c14['bind']('isOn')['to'](_0x39efdc,'isActive'),this['listenTo'](_0x370c14,'execute',()=>{_0x114607['execute']('uploadcareImageEdit'),_0x114607['editing']['view']['focus']();}),_0x370c14;}),this['_initConfig']();}['_initConfig'](){const _0x23f214=_0x1eb9c3(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x23f214),this['listenTo'](this['editor'],'destroy',()=>{_0x23f214['remove']();});}}class et extends _0x185545{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};
23
+ import{Plugin as _0x2f79a5,Command as _0x1830ed}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5a3636,IconGooglePhotos as _0x25a960,IconGoogleDrive as _0x441b45,IconFacebook as _0x21451d,IconDropbox as _0x503848,IconUploadcareLink as _0x96e075,IconUploadcareImageUpload as _0x553ef2,IconError as _0x19ea19,IconUploadcareImageEdit as _0x5d9d5d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x484af9,MenuBarMenuListItemButtonView as _0x502fb9,View as _0x119922,FocusCycler as _0x38110b,Dialog as _0x2e6c28,DialogViewPosition as _0x297a66,SpinnerView as _0x7ad9c6,IconView as _0x1494c4,Notification as _0xc388b8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x35fa52,DomEmitterMixin as _0x185c38,global as _0x4ac7e1,getAncestors as _0x18759c,ObservableMixin as _0xb0242e,uid as _0x3c0092,createElement as _0x414e74}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x390e61}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x24cf34,info as _0x3eb9c5}from'@uploadcare/upload-client';import*as _0x49e498 from'@uploadcare/file-uploader';var i=function(_0x325a14){return _0x325a14['Local']='local',_0x325a14['URL']='url',_0x325a14['Dropbox']='dropbox',_0x325a14['GDrive']='gdrive',_0x325a14['Facebook']='facebook',_0x325a14['GPhotos']='gphotos',_0x325a14['OneDrive']='onedrive',_0x325a14;}({});function _(_0x2d6b06,_0x183019,_0x49e077){const t=_0x2d6b06['t'],_0x1a5b55=_0x2d6b06['t'];switch(_0x183019){case i['Local']:return{'text':_0x1a5b55('Insert'===_0x49e077?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1a5b55('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x49e077?_0x1a5b55('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1a5b55('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x49e077?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x49e077?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x49e077?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x49e077?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x49e077?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x183019;}}class e extends _0x2f79a5{['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 _0x2921dd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x636830;for(const _0x3756a6 in _0x2921dd){const _0x13fbcb=_0x3756a6,_0x1b801e=_0x2921dd[_0x13fbcb];if('uploadcareLicenseKeyValid'==_0x1b801e||'uploadcareLicenseKeyInvalid'==_0x1b801e||'uploadcareLicenseKeyExpired'==_0x1b801e||'uploadcareLicenseKeyDomainLimit'==_0x1b801e||'uploadcareLicenseKeyNotAllowed'==_0x1b801e||'uploadcareLicenseKeyEvaluationLimit'==_0x1b801e||'uploadcareLicenseKeyTrialLimit'==_0x1b801e||'uploadcareLicenseKeyUsageLimit'==_0x1b801e){delete _0x2921dd[_0x13fbcb],_0x636830=_0x1b801e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x636830&&_0x2921dd['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x636830&&_0x2921dd['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x636830&&_0x2921dd['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x636830&&_0x2921dd['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x636830&&_0x2921dd['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x636830&&_0x2921dd['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x636830&&_0x2921dd['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3ddc7d}=this,_0x186551=_0x3ddc7d['commands']['get']('uploadcare');if(!_0x186551)return;const _0x58b055=this['_normalizeConfigSourceList'](_0x3ddc7d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5082e3,_0x3632d5)=>{const _0x51cbed=this['_getIntegrationKey'](_0x3632d5['type']);return _0x5082e3[_0x51cbed]||(_0x5082e3[_0x51cbed]=[]),_0x5082e3[_0x51cbed]['push'](_0x3632d5),_0x5082e3;},{});_0x3ddc7d['plugins']['has']('ImageInsertUI')&&_0x3ddc7d['commands']['get']('uploadcare')&&Object['entries'](_0x58b055)['forEach'](([_0xdc1109,_0x963191])=>{_0x3ddc7d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xdc1109,'observable':()=>_0x186551,'buttonViewCreator':()=>this['_createToolbarButton'](_0x963191),'formViewCreator':()=>this['_createDropdownButtons'](_0x963191),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x963191),'override':'assetManager'!==_0xdc1109});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x336b77){const {locale:_0x2f656b}=this['editor'];return _0x336b77['map'](_0x3e0c24=>{const _0x538112=_(_0x2f656b,_0x3e0c24,'Insert');switch(_0x3e0c24){case i['Local']:return{'icon':_0x553ef2,'type':i['Local'],..._0x538112};case i['URL']:return{'icon':_0x96e075,'type':i['URL'],..._0x538112};case i['Dropbox']:return{'icon':_0x503848,'type':i['Dropbox'],..._0x538112};case i['Facebook']:return{'icon':_0x21451d,'type':i['Facebook'],..._0x538112};case i['GDrive']:return{'icon':_0x441b45,'type':i['GDrive'],..._0x538112};case i['GPhotos']:return{'icon':_0x25a960,'type':i['GPhotos'],..._0x538112};case i['OneDrive']:return{'icon':_0x5a3636,'type':i['OneDrive'],..._0x538112};}});}['_getIntegrationKey'](_0x1d7d8d){switch(_0x1d7d8d){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x34ec55,_0x1a3fe1){const _0x5a35ae=this['editor'],_0x11c2d2=new _0x34ec55(_0x5a35ae['locale']),_0x4b2f3c=_0x5a35ae['commands']['get']('uploadcare');return _0x11c2d2['bind']('isEnabled')['to'](_0x4b2f3c),_0x11c2d2['on']('execute',()=>{_0x4b2f3c['execute'](_0x1a3fe1);}),_0x11c2d2;}['_createToolbarButton'](_0x2ec1c0){const {locale:_0x53378e}=this['editor'],_0x2ce9b0=this['editor']['plugins']['get']('ImageInsertUI'),_0x1d6bf9=_0x2ec1c0[0x0],_0x481616=this['_createButton'](_0x484af9,_0x1d6bf9['type']);return _0x481616['icon']=_0x1d6bf9['icon'],_0x481616['bind']('label')['to'](_0x2ce9b0,'isImageSelected',_0x4e0a99=>_(_0x53378e,_0x1d6bf9['type'],_0x4e0a99?'Replace':'Insert')['text']),_0x481616['tooltip']=!0x0,_0x481616;}['_createDropdownButtons'](_0x2cc312){const {locale:_0x519454}=this['editor'],_0x3b39cd=this['editor']['plugins']['get']('ImageInsertUI');return _0x2cc312['map'](_0x266041=>{const _0x1bb680=this['_createButton'](_0x484af9,_0x266041['type']);return _0x1bb680['withText']=!0x0,_0x1bb680['icon']=_0x266041['icon'],_0x1bb680['bind']('label')['to'](_0x3b39cd,'isImageSelected',_0x2ebdf1=>_(_0x519454,_0x266041['type'],_0x2ebdf1?'Replace':'Insert')['text']),_0x1bb680;});}['_createMenuBarButtons'](_0x1c4d27){return _0x1c4d27['map'](_0x52e912=>{const _0xe8d872=this['_createButton'](_0x502fb9,_0x52e912['type']);return _0xe8d872['icon']=_0x52e912['icon'],_0xe8d872['label']=_0x52e912['shortText'],_0xe8d872;});}}class F extends _0x119922{['focusTracker'];['focusCycler'];constructor(_0x27a6ae){super(_0x27a6ae),this['focusTracker']=new _0x35fa52(),this['focusCycler']=new _0x38110b({'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(_0x41ec54,_0x1379aa){super(_0x41ec54),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-'+_0x1379aa}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3ef60c,_0x143b90){const _0x40d2d1=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4d6d22=>_0x4d6d22<=_0x143b90)['map'](_0x1115ff=>_0x3ef60c['replace'](/\/$/,'')+'/-/resize/'+_0x1115ff+'x/\x20'+_0x1115ff+'w');return{'imageFallbackUrl':_0x3ef60c,'imageSources':[{'srcset':_0x40d2d1['join'](',\x20'),'sizes':'(max-width:\x20'+_0x143b90+'px)\x20100vw,\x20'+_0x143b90+'px','type':'image/webp'}]};}function S(_0xf21d4f,_0x384449,_0x32247f){const _0x1d41b7=_0xf21d4f['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1d41b7?parseInt(_0x1d41b7[0x1],0xa):_0x384449,'height':_0x1d41b7?parseInt(_0x1d41b7[0x2],0xa):_0x32247f};}function p(_0x3ebfab,_0x1bcc98){const _0x5ee908=new(_0x185c38())(),_0x363fbf=_0x3ebfab['plugins']['get']('ImageUtils'),_0x12778e=_0x3ebfab['editing']['mapper']['toViewElement'](_0x1bcc98),_0x928d5e=_0x363fbf['findViewImgElement'](_0x12778e),_0x228d63=_0x3ebfab['editing']['view']['domConverter']['viewToDom'](_0x928d5e),_0x386a32=_0x1bcc98['getAttribute']('width'),_0x1cf159=_0x1bcc98['getAttribute']('height'),_0x58ebe5='image-processing';_0x3ebfab['editing']['view']['change'](_0x3c33cb=>{_0x3c33cb['addClass'](_0x58ebe5,_0x12778e),_0x3c33cb['setStyle']('aspect-ratio',_0x386a32+'/'+_0x1cf159,_0x928d5e);}),_0x5ee908['listenTo'](_0x228d63,'load',()=>{_0x5ee908['stopListening'](_0x228d63,'load'),_0x3ebfab['editing']['view']['change'](_0x48ac56=>{_0x48ac56['removeClass'](_0x58ebe5,_0x12778e),_0x48ac56['removeStyle']('aspect-ratio',_0x928d5e);});});}function G(_0x24199b){if(Array['isArray'](_0x24199b)){const _0x281559=_0x24199b['map'](G);return _0x2d4200=>_0x281559['some'](_0x2f1bf9=>_0x2f1bf9(_0x2d4200));}if('origin'==_0x24199b){const _0x425de0=_0x4ac7e1['window']['location']['origin'];return _0x2cd5e6=>new URL(_0x2cd5e6,_0x4ac7e1['document']['baseURI'])['origin']==_0x425de0;}return'function'==typeof _0x24199b?_0x24199b:_0x24199b instanceof RegExp?_0x597412=>!(!_0x597412['match'](_0x24199b)&&!_0x597412['replace'](/^https?:\/\//,'')['match'](_0x24199b)):()=>!0x1;}function A(_0x429110,_0x1f5c54){return _0x18759c(_0x429110['target'])['includes'](_0x1f5c54);}class n extends/* #__PURE__ -- @preserve */
24
+ _0xb0242e(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4b0005,_0x13e7ce,_0x547d62){super(),this['_editor']=_0x4b0005,this['_editing']=_0x13e7ce,this['_dialog']=_0x4b0005['plugins']['get'](_0x2e6c28),this['_api']=_0x13e7ce['ctxElement']['getAPI'](),this['_type']=_0x547d62,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:_0x3f03a8,model:_0x58790b}=this['_editor'],_0x368819=_0x58790b['document']['selection']['getSelectedElement'](),_0x408a03=_0x368819&&(_0x368819['is']('element','imageBlock')||_0x368819['is']('element','imageInline'));this['_formView']=new x(_0x3f03a8,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x553ef2,'title':_(_0x3f03a8,this['_type'],_0x408a03?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x297a66['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x182bf0=>!A(_0x182bf0,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2e19f4}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x51bee9=>{const _0x40acc9=_0x2e19f4['length'];for(const _0x170752 of _0x2e19f4){const _0x283d19=_0x170752===_0x2e19f4[_0x40acc9-0x1],{cdnUrl:_0x41d02c,fileInfo:_0x5d2712}=_0x170752;if(!_0x41d02c||!_0x5d2712)continue;const {width:_0x55c05d,height:_0x39bf58}=_0x5d2712['imageInfo'],_0x2b1e95=S(_0x41d02c,_0x55c05d,_0x39bf58),_0x18305b=C(_0x41d02c,_0x2b1e95['width']),_0x4ad92b={'id':_0x5d2712['uuid'],'type':'image','attributes':{'imageDimension':_0x2b1e95,..._0x18305b}};this['_insertAsset'](_0x4ad92b,_0x283d19,_0x51bee9);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5cdc1d=>{'idle'===_0x5cdc1d['detail']['status']&&!_0x5cdc1d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x221ac9,_0xdb6704,_0x482ce1){const _0x2c7ad9=this['_editor']['model']['document']['selection'],_0xd39847=_0x2c7ad9['getSelectedElement'](),_0xd0044d=!(!_0xd39847||!_0xd39847['is']('element','imageInline'));_0x482ce1['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x221ac9,_0xd0044d),_0xdb6704||_0x482ce1['setSelection'](_0x2c7ad9['getLastPosition']());}['_insertImage'](_0x2f0a84,_0x38cdcc){const _0x122cfa=this['_editor'],{imageDimension:_0x4b8add,imageFallbackUrl:_0x5cdce2,imageSources:_0x33a00d}=_0x2f0a84['attributes'];_0x122cfa['execute']('insertImage',{'imageType':_0x38cdcc?'imageInline':null,'source':{'uploadcareImageId':_0x2f0a84['id'],'src':_0x5cdce2,'sources':_0x33a00d,..._0x4b8add}});}}class w extends _0x1830ed{['_editing'];['_controller']=null;static get['requires'](){return[_0x2e6c28,o];}constructor(_0x5148e9){super(_0x5148e9),this['_editing']=_0x5148e9['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x45f308){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x45f308);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x955f4,..._0x13b97a}){return _0x24cf34(_0x955f4,_0x13b97a);}static['getInfo'](_0x2e8701,_0x4e9160){return _0x3eb9c5(_0x2e8701,_0x4e9160);}}class f extends _0x2f79a5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x390e61,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x532221=this['editor'];if(!!!_0x532221['config']['get']('uploadcare'))return;_0x532221['plugins']['get'](_0x390e61)['createUploadAdapter']=_0x5312ac=>new k(_0x5312ac,_0x532221),_0x532221['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x980089,{imageElement:_0x22c9d4,data:_0x13df57})=>{_0x532221['model']['change'](_0x5dbcb0=>{_0x5dbcb0['setAttribute']('uploadcareImageId',_0x13df57['uploadcareImageId'],_0x22c9d4);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x35aa85,_0x5b4fd4){this['loader']=_0x35aa85,this['editor']=_0x5b4fd4,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x26e407=await this['loader']['file'];return j['upload']({'file':_0x26e407,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0xc67a02=>{_0xc67a02&&_0xc67a02['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xc67a02['value']);}})['then'](async _0x376e24=>{const {imageFallbackUrl:_0x17911b,imageSources:_0x8f0e5}=C(_0x376e24['cdnUrl'],_0x376e24['imageInfo']['width']);return{'uploadcareImageId':_0x376e24['uuid'],'default':_0x17911b,'sources':_0x8f0e5};})['catch'](()=>{const _0x2f0296=t('Cannot\x20upload\x20file:')+('\x20'+_0x26e407['name']+'.');return Promise['reject'](_0x2f0296);});}['abort'](){this['controller']['abort']();}}class o extends _0x2f79a5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2e6c28];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3421d5){super(_0x3421d5),this['ucContextId']=_0x3c0092();}['init'](){const _0x137403=this['editor'];_0x137403['commands']['add']('uploadcare',new w(_0x137403));}['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 _0x2431f4=_0x4ac7e1['document']['querySelector']('input[uploadcare-file-input]');_0x2431f4&&_0x2431f4['remove']();}),async function(_0x332dac){const _0x55cded=_0x126b79([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x13bcf6=0x535f8c3a,_0x1885d7=0x5358f13a^_0x13bcf6,_0x52667c=window[_0x126b79([0x44,0x61,0x74,0x65])][_0x126b79([0x6e,0x6f,0x77])](),_0xa8df5e=_0x332dac[_0x126b79([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59be24=new window[(_0x126b79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c97ae=>{_0xa8df5e[_0x126b79([0x6f,0x6e,0x63,0x65])](_0x126b79([0x72,0x65,0x61,0x64,0x79]),_0x1c97ae);}),_0x120ca7={[_0x126b79([0x6b,0x74,0x79])]:_0x126b79([0x45,0x43]),[_0x126b79([0x75,0x73,0x65])]:_0x126b79([0x73,0x69,0x67]),[_0x126b79([0x63,0x72,0x76])]:_0x126b79([0x50,0x2d,0x32,0x35,0x36]),[_0x126b79([0x78])]:_0x126b79([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]),[_0x126b79([0x79])]:_0x126b79([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]),[_0x126b79([0x61,0x6c,0x67])]:_0x126b79([0x45,0x53,0x32,0x35,0x36])},_0x81a596=_0xa8df5e[_0x126b79([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x126b79([0x67,0x65,0x74])](_0x126b79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x172d06(){let _0x44b950,_0x318556=null,_0x32b2f4=null;try{if(_0x81a596==_0x126b79([0x47,0x50,0x4c]))return _0x126b79([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x44b950=_0x5dd5e0(),!_0x44b950)return _0x126b79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x44b950[_0x126b79([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x32b2f4=_0x51bd60(_0x44b950[_0x126b79([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x44b950[_0x126b79([0x6a,0x74,0x69])])),await _0x570984()?_0x380e00()?_0x2f16d4()?_0x126b79([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x19d8a2()?(_0x44b950[_0x126b79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x126b79([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x318556=_0x494d0f(_0x126b79([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x44b950[_0x126b79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x126b79([0x74,0x72,0x69,0x61,0x6c])&&(_0x318556=_0x494d0f(_0x126b79([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x165f0c()):_0x126b79([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x126b79([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x126b79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x126b79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f16d4(){const _0x495492=[_0x126b79([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x126b79([0x74,0x72,0x69,0x61,0x6c])][_0x126b79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44b950[_0x126b79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x52667c/0x3e8:0xe10*_0x1885d7;return _0x44b950[_0x126b79([0x65,0x78,0x70])]<_0x495492;}function _0x380e00(){const _0x4a14c5=_0x44b950[_0x126b79([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4a14c5&&(!!_0x4a14c5[_0x126b79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x126b79([0x2a]))||!!_0x4a14c5[_0x126b79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x126b79([0x55,0x50,0x4c,0x43])));}function _0x19d8a2(){const _0x433a6f=_0x44b950[_0x126b79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x433a6f||0x0==_0x433a6f[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x128d59}=new URL(window[_0x126b79([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x433a6f[_0x126b79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x128d59))return!0x0;const _0xd8fbf=_0x128d59[_0x126b79([0x73,0x70,0x6c,0x69,0x74])](_0x126b79([0x2e]));return _0x433a6f[_0x126b79([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x400b7b=>_0x400b7b[_0x126b79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x126b79([0x2a])))[_0x126b79([0x6d,0x61,0x70])](_0x155760=>_0x155760[_0x126b79([0x73,0x70,0x6c,0x69,0x74])](_0x126b79([0x2e])))[_0x126b79([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e1d17=>_0x5e1d17[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xd8fbf[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x126b79([0x6d,0x61,0x70])](_0x2c4186=>Array(_0xd8fbf[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2c4186[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x126b79([0x66,0x69,0x6c,0x6c])](_0x2c4186[0x0]===_0x126b79([0x2a])?_0x126b79([0x2a]):'')[_0x126b79([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2c4186))[_0x126b79([0x73,0x6f,0x6d,0x65])](_0x531596=>_0xd8fbf[_0x126b79([0x65,0x76,0x65,0x72,0x79])]((_0x4430c2,_0x295ab3)=>_0x531596[_0x295ab3]===_0x4430c2||_0x531596[_0x295ab3]===_0x126b79([0x2a])));}function _0x165f0c(){return _0x318556&&_0x32b2f4?new window[(_0x126b79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39d22e,_0x5c40a7)=>{_0x318556[_0x126b79([0x74,0x68,0x65,0x6e])](_0x39d22e,_0x5c40a7),_0x32b2f4[_0x126b79([0x74,0x68,0x65,0x6e])](_0x2b2992=>{_0x2b2992!=_0x126b79([0x56,0x61,0x6c,0x69,0x64])&&_0x39d22e(_0x2b2992);},_0x5c40a7);}):_0x318556||_0x32b2f4||_0x126b79([0x56,0x61,0x6c,0x69,0x64]);}}function _0x51bd60(_0x99f5ac,_0x3eab88){return new window[(_0x126b79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6ccbf0=>{if(_0x67ab8d())return _0x6ccbf0(_0x126b79([0x56,0x61,0x6c,0x69,0x64]));_0x2b4a44(),_0xa8df5e[_0x126b79([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x126b79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x40d010=!0x1;const _0x5d689a=_0x3c0092();function _0x5e1149(_0x29665a){return!!_0x29665a&&(typeof _0x29665a===_0x126b79([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x29665a===_0x126b79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x29665a[_0x126b79([0x74,0x68,0x65,0x6e])]===_0x126b79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x29665a[_0x126b79([0x63,0x61,0x74,0x63,0x68])]===_0x126b79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x38bd13(_0x49a520){_0x32562e(_0x49a520)[_0x126b79([0x74,0x68,0x65,0x6e])](_0x3eb0b4=>{if(!_0x3eb0b4||_0x3eb0b4[_0x126b79([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x126b79([0x6f,0x6b]))return _0x126b79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x24a2f3(_0x433e8a(_0x5d689a+_0x3eab88))!=_0x3eb0b4[_0x126b79([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x126b79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x126b79([0x56,0x61,0x6c,0x69,0x64]);})[_0x126b79([0x74,0x68,0x65,0x6e])](_0x12d3cd=>(_0x31e640(),_0x12d3cd),()=>{const _0x47b786=_0x3061a0();return null==_0x47b786?(_0x31e640(),_0x126b79([0x56,0x61,0x6c,0x69,0x64])):_0x126b79(_0x52667c-_0x47b786>(0x7753083a^_0x13bcf6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x126b79([0x74,0x68,0x65,0x6e])](_0x6ccbf0)[_0x126b79([0x63,0x61,0x74,0x63,0x68])](()=>{_0x6ccbf0(_0x126b79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x44d149=0x536962ba^_0x13bcf6;function _0x31e640(){const _0x294463=_0x126b79([0x6c,0x6c,0x63,0x74,0x2d])+_0x24a2f3(_0x433e8a(_0x99f5ac)),_0x6a8208=_0x1af99a(_0x24a2f3(window[_0x126b79([0x4d,0x61,0x74,0x68])][_0x126b79([0x63,0x65,0x69,0x6c])](_0x52667c/_0x44d149)));window[_0x126b79([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x126b79([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x294463,_0x6a8208);}function _0x3061a0(){const _0x111eef=_0x126b79([0x6c,0x6c,0x63,0x74,0x2d])+_0x24a2f3(_0x433e8a(_0x99f5ac)),_0x42d062=window[_0x126b79([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x126b79([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x111eef);return _0x42d062?window[_0x126b79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1af99a(_0x42d062),0x10)*_0x44d149:null;}function _0x32562e(_0x418236){return new window[(_0x126b79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43db31,_0x10266a)=>{_0x418236[_0x126b79([0x74,0x68,0x65,0x6e])](_0x43db31,_0x10266a),window[_0x126b79([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x10266a,0x535e58fa^_0x13bcf6);});}}_0xa8df5e[_0x126b79([0x6f,0x6e])](_0x126b79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5aaa39,_0x339834)=>{if(_0x339834[0x0]!=_0x99f5ac)return _0x6ccbf0(_0x126b79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x339834[0x1]={..._0x339834[0x1],[_0x126b79([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d689a};},{[_0x126b79([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x126b79([0x68,0x69,0x67,0x68])}),_0xa8df5e[_0x126b79([0x6f,0x6e])](_0x126b79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x359d26=>{_0x5e1149(_0x359d26[_0x126b79([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x40d010=!0x0,_0x38bd13(_0x359d26[_0x126b79([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x126b79([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x126b79([0x6c,0x6f,0x77])}),_0x59be24[_0x126b79([0x74,0x68,0x65,0x6e])](()=>{_0x40d010||_0x6ccbf0(_0x126b79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x67ab8d(){return _0xa8df5e[_0x126b79([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x126b79([0x76,0x69,0x65,0x77])][_0x126b79([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x126b79([0x61,0x75,0x74,0x6f]);}function _0x2b4a44(){_0xa8df5e[_0x126b79([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x126b79([0x76,0x69,0x65,0x77])][_0x126b79([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x126b79([0x61,0x75,0x74,0x6f]);}}function _0x494d0f(_0x3b3a19){const _0x264257=[new window[(_0x126b79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x393c9b=>setTimeout(_0x393c9b,0x5356b2f6^_0x13bcf6)),_0x59be24[_0x126b79([0x74,0x68,0x65,0x6e])](()=>new window[(_0x126b79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1352c0=>{let _0x3e74e3=0x0;_0xa8df5e[_0x126b79([0x6d,0x6f,0x64,0x65,0x6c])][_0x126b79([0x6f,0x6e])](_0x126b79([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4e6d68,_0x3125fa)=>{_0x3125fa[0x0][_0x126b79([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3e74e3++,_0x3e74e3==(0x535f89d2^_0x13bcf6)&&(_0x1352c0(),_0x4e6d68[_0x126b79([0x6f,0x66,0x66])]());});}))];return window[_0x126b79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x126b79([0x72,0x61,0x63,0x65])](_0x264257)[_0x126b79([0x74,0x68,0x65,0x6e])](()=>_0x3b3a19);}async function _0x42e89e(){await _0x59be24,_0xa8df5e[_0x126b79([0x6d,0x6f,0x64,0x65,0x6c])][_0x126b79([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x533dad,_0xa8df5e[_0x126b79([0x6d,0x6f,0x64,0x65,0x6c])][_0x126b79([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x533dad,_0xa8df5e[_0x126b79([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x126b79([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3cf6d2(_0x3d3ac2){const _0x48808d=_0x2dae30();_0xa8df5e[_0x48808d]=_0x126b79([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3d3ac2,_0x3d3ac2!=_0x126b79([0x56,0x61,0x6c,0x69,0x64])&&_0x42e89e();}function _0x2dae30(){const _0x40bdbf=window[_0x126b79([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x126b79([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x126b79([0x6e,0x6f,0x77])]())[_0x126b79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x126b79([0x2e]),'');let _0x31eebc=_0x126b79([0x68]);for(let _0x269368=0x0;_0x269368<_0x40bdbf[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x269368+=0x2){let _0x18a06f=window[_0x126b79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40bdbf[_0x126b79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x269368,_0x269368+0x2));_0x18a06f>=_0x55cded[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x18a06f-=_0x55cded[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x31eebc+=_0x55cded[_0x18a06f];}return _0x31eebc;}function _0x5dd5e0(){const _0x3b2bc5=_0x81a596[_0x126b79([0x73,0x70,0x6c,0x69,0x74])](_0x126b79([0x2e]));if(0x3!=_0x3b2bc5[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x397a41(_0x3b2bc5[0x1]);function _0x397a41(_0x1d113c){const _0x158849=_0x293297(_0x1d113c);return _0x158849&&_0x367724()?_0x158849:null;function _0x367724(){const _0x5abf0e=_0x158849[_0x126b79([0x6a,0x74,0x69])],_0x56628e=window[_0x126b79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5abf0e[_0x126b79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5abf0e[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x23abe2={..._0x158849,[_0x126b79([0x6a,0x74,0x69])]:_0x5abf0e[_0x126b79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5abf0e[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x23abe2[_0x126b79([0x76,0x63])],_0x433e8a(_0x23abe2)==_0x56628e;}}}async function _0x570984(){let _0x222359=!0x0;try{const _0x4c2bd4=_0x81a596[_0x126b79([0x73,0x70,0x6c,0x69,0x74])](_0x126b79([0x2e])),[_0xc204dc,_0x280482,_0x2e601c]=_0x4c2bd4;return _0x3eaba8(_0xc204dc),await _0x56fc54(_0xc204dc,_0x280482,_0x2e601c),_0x222359;}catch{return!0x1;}function _0x3eaba8(_0x3ac7a6){const _0x10030b=_0x293297(_0x3ac7a6);_0x10030b&&_0x10030b[_0x126b79([0x61,0x6c,0x67])]==_0x126b79([0x45,0x53,0x32,0x35,0x36])||(_0x222359=!0x1);}async function _0x56fc54(_0x405fa4,_0x3dabdf,_0xc29fb2){const _0xed7538=window[_0x126b79([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x126b79([0x66,0x72,0x6f,0x6d])](_0x1c6716(_0xc29fb2),_0x454373=>_0x454373[_0x126b79([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x14482c=new window[(_0x126b79([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x126b79([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x405fa4+_0x126b79([0x2e])+_0x3dabdf),_0x5a4f89=window[_0x126b79([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x126b79([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a4f89)return;const _0xd8e5b6=await _0x5a4f89[_0x126b79([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x126b79([0x6a,0x77,0x6b]),_0x120ca7,{[_0x126b79([0x6e,0x61,0x6d,0x65])]:_0x126b79([0x45,0x43,0x44,0x53,0x41]),[_0x126b79([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x126b79([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x126b79([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a4f89[_0x126b79([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x126b79([0x6e,0x61,0x6d,0x65])]:_0x126b79([0x45,0x43,0x44,0x53,0x41]),[_0x126b79([0x68,0x61,0x73,0x68])]:{[_0x126b79([0x6e,0x61,0x6d,0x65])]:_0x126b79([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd8e5b6,_0xed7538,_0x14482c)||(_0x222359=!0x1);}}function _0x293297(_0x48ac46){return _0x48ac46[_0x126b79([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x126b79([0x65,0x79]))?JSON[_0x126b79([0x70,0x61,0x72,0x73,0x65])](_0x1c6716(_0x48ac46)):null;}function _0x1c6716(_0x4ddc52){return window[_0x126b79([0x61,0x74,0x6f,0x62])](_0x4ddc52[_0x126b79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x126b79([0x2b]))[_0x126b79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x126b79([0x2f])));}function _0x433e8a(_0x53632f){let _0x23c846=0x1505;function _0x87ab(_0x5cfd6f){for(let _0x4aa595=0x0;_0x4aa595<_0x5cfd6f[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4aa595++){const _0x50fa2f=_0x5cfd6f[_0x126b79([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4aa595);_0x23c846=(_0x23c846<<0x5)+_0x23c846+_0x50fa2f,_0x23c846&=_0x23c846;}}function _0x2ab192(_0xecb802){Array[_0x126b79([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xecb802)?_0xecb802[_0x126b79([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ab192):_0xecb802&&typeof _0xecb802==_0x126b79([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x126b79([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xecb802)[_0x126b79([0x73,0x6f,0x72,0x74])]()[_0x126b79([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ab822,_0x4f70ae])=>{_0x87ab(_0x1ab822),_0x2ab192(_0x4f70ae);}):_0x87ab(window[_0x126b79([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xecb802));}return _0x2ab192(_0x53632f),_0x23c846>>>0x0;}function _0x24a2f3(_0x12a230){return _0x12a230[_0x126b79([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x126b79([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x126b79([0x30]));}function _0x1af99a(_0x4b1799){return _0x4b1799[_0x126b79([0x73,0x70,0x6c,0x69,0x74])]('')[_0x126b79([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x126b79([0x6a,0x6f,0x69,0x6e])]('');}function _0x533dad(){}function _0x126b79(_0x190a7a){return _0x190a7a['map'](_0x51d8c8=>String['fromCharCode'](_0x51d8c8))['join']('');}_0x3cf6d2(await _0x172d06());}(this);}['_initSchema'](){const _0x1b5ad6=this['editor']['model']['schema'];_0x1b5ad6['isRegistered']('imageBlock')&&_0x1b5ad6['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1b5ad6['isRegistered']('imageInline')&&_0x1b5ad6['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3136ee=this['editor'];_0x3136ee['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3136ee['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x383b11=>_0x383b11['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x50299b=_0x3136ee['commands']['get']('replaceImageSource');_0x50299b&&this['listenTo'](_0x50299b,'cleanupImage',(_0x5c4d55,[_0x59490b,_0x548c78])=>{_0x59490b['removeAttribute']('uploadcareImageId',_0x548c78);});}['_initConfig'](){const _0x513691=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2939e6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x414e74(_0x4ac7e1['document'],'uc-config',{..._0x513691,'pubkey':_0x2939e6,'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']=_0x258182=>{if('closeMax'==_0x258182)return'#uc-icon-arrow-down';},_0x4ac7e1['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x414e74(_0x4ac7e1['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4ac7e1['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5a3172=this['editor']['commands']['get']('insertImage');_0x5a3172&&this['listenTo'](_0x5a3172,'execute',()=>{const _0x5e1395=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5e1395&&_0x5e1395['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5e1395);});});const _0x24a4c1=this['editor']['commands']['get']('uploadcareImageReplace');_0x24a4c1&&this['listenTo'](_0x24a4c1,'execute',()=>{const _0x2b0ecd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2b0ecd&&_0x2b0ecd['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2b0ecd);});});}}class tt extends _0x2f79a5{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x250d4f){super(_0x250d4f),_0x250d4f['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x49e498['defineComponents'](_0x49e498),this['_defineLocale']();}['_defineLocale'](){const _0xd15c67=this['editor']['config']['get']('uploadcare.locale'),_0x4563cc=this['editor']['locale']['contentLanguage'];_0xd15c67&&_0x49e498['defineLocale'](_0x4563cc,_0xd15c67);}}class ii extends _0x119922{constructor(_0x36a4e0){super(_0x36a4e0);const t=_0x36a4e0['t'],_0x25b67c=this['bindTemplate'],_0x543f83=new _0x7ad9c6();_0x543f83['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':[_0x543f83,{'text':_0x25b67c['to']('imageUploadProgress',_0xf629ff=>t('Loading\x20image...')+'\x20('+(_0xf629ff||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 _0x119922{constructor(_0x145744){super(_0x145744);const t=_0x145744['t'];this['set']('errorType',null);const _0x1b0cd3=new _0x484af9(_0x145744);_0x1b0cd3['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1b0cd3['withText']=!0x0,_0x1b0cd3['class']='ck-button-action',_0x1b0cd3['on']('execute',()=>{this['fire']('retry');}),_0x1b0cd3['bind']('isVisible')['to'](this,'errorType',_0x4ae395=>'NotFound'!==_0x4ae395);const _0x1b549c=new _0x1494c4();_0x1b549c['content']=_0x19ea19,_0x1b549c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4f0df7=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':[_0x1b549c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4f0df7['to']('errorType',_0x3e0a8f=>t('NotFound'!==_0x3e0a8f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1b0cd3]},{'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 _0x119922{constructor(_0x4b28d0,_0x18f429){super(_0x4b28d0);const _0x17fe18=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x18f429,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x17fe18['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3c86a2,_0x4829d8,_0x1f75f6){super(_0x3c86a2),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x3c86a2),this['_errorView']=new ti(_0x3c86a2),this['_editingView']=new ei(_0x3c86a2,_0x1f75f6),this['_focusableView']=new _0x119922(_0x3c86a2),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4829d8),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'],_0x11f5f4=>{this['_addUploadcareImageEditorListeners'](_0x11f5f4);});}),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'](_0x34ac9c,_0x41eb43){const _0x23408b='uc-cloud-image-editor',_0x17d2e8=_0x34ac9c['querySelector'](_0x23408b);if(_0x17d2e8)return _0x41eb43(_0x17d2e8);const _0x5b8c6a=new MutationObserver(_0x453bec=>{const _0x599d17=_0x453bec['filter'](_0xfcc656=>_0xfcc656['target']===_0x34ac9c&&_0xfcc656['addedNodes']['length']>0x0&&_0xfcc656['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x23408b);_0x599d17['length']&&(_0x5b8c6a['disconnect'](),_0x41eb43(_0x599d17[0x0]['addedNodes'][0x0]));});_0x5b8c6a['observe'](_0x34ac9c,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1ac745){_0x1ac745['addEventListener']('apply',_0x5834dd=>{this['fire']('apply',{'imageSrc':_0x5834dd['detail']['cdnUrl']});}),_0x1ac745['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0xb0242e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x9c7986,_0x2e028e,_0x4546c4){super(),this['_editor']=_0x9c7986,this['_dialog']=_0x2e028e,this['_imageElement']=_0x4546c4,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 _0x5bfddd=this['_imageElement'],_0x5838ee=_0x5bfddd['getAttribute']('uploadcareImageId'),_0x1563ee=_0x5bfddd['getAttribute']('src');if(_0x5838ee)await this['_loadImageInfo'](_0x5838ee,_0x1563ee);else{if(this['_imageCache']['has'](_0x1563ee)){const _0x5c97eb=this['_imageCache']['get'](_0x1563ee);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5c97eb['url'],this['imageDimension']=_0x5c97eb['dimension'],this['imageId']=_0x5c97eb['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x41f410}=this['_editor'],t=_0x41f410['t'],_0x41d100=new X(_0x41f410,this['imageStatus'],this['_attributes']);_0x41d100['bind']('status')['to'](this,'imageStatus'),_0x41d100['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x41d100['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x41d100['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x41d100,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5d9d5d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x41d100,'position':_0x297a66['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x41d100['focus']();},'onHide':()=>{_0x41d100['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3ff7e3=>!A(_0x3ff7e3,_0x41d100['element'])}});}['_loadImageInfo'](_0x32e875,_0x1065a0){return j['getInfo'](_0x32e875,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x9de78a=>{const {width:_0x1ee9b2,height:_0x524137}=_0x9de78a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1065a0,this['imageDimension']={'width':_0x1ee9b2,'height':_0x524137},this['imageId']=_0x32e875;})['catch'](_0x5ec250=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5ec250['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5ebe96,_0x2e8286){return this['_getImageAsFile'](_0x5ebe96)['then'](_0x3fa770=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x2e8286['signal'],'file':_0x3fa770,'onProgress':_0x2c3d6b=>{_0x2c3d6b&&_0x2c3d6b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2c3d6b['value']));}}))['then'](_0x40bc40=>{const {width:_0x394a31,height:_0x23b3a9}=_0x40bc40['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x40bc40['cdnUrl'],this['imageDimension']={'width':_0x394a31,'height':_0x23b3a9},this['imageId']=_0x40bc40['uuid'],this['imageUploadProgress']=null;const _0x894a87=_0x5ebe96['getAttribute']('src');this['_imageCache']['set'](_0x894a87,{'id':_0x40bc40['uuid'],'url':_0x40bc40['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xce19bd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xce19bd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x17c1c3,_0x2639db){_0x17c1c3['on']('apply',(_0x42e3fc,_0x13b52d)=>{this['_replaceImage'](_0x2639db,_0x13b52d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x17c1c3['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x17c1c3['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x506c1a,_0x39d6cf,_0x36b681){const _0x2c1bc4=this['_editor'],{width:_0x1d04b8,height:_0x4c73bb}=S(_0x39d6cf,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4f3f9e,imageSources:_0x3b0f69}=C(_0x39d6cf,_0x1d04b8);_0x2c1bc4['model']['change'](_0x5e5b8e=>{if('$graveyard'===_0x506c1a['root']['rootName']){_0x2c1bc4['execute']('insertImage',{'imageType':_0x506c1a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x506c1a['getAttributes']()),'uploadcareImageId':_0x36b681,'src':_0x4f3f9e,'sources':_0x3b0f69,'width':_0x1d04b8,'height':_0x4c73bb}});const _0x3b3d6e=_0x506c1a['getChildren']();_0x506c1a=_0x2c1bc4['model']['document']['selection']['getSelectedElement']();for(const _0x3a97f4 of _0x3b3d6e)_0x5e5b8e['append'](_0x5e5b8e['cloneElement'](_0x3a97f4),_0x506c1a);}else _0x5e5b8e['setSelection'](_0x506c1a,'on'),_0x2c1bc4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x506c1a['getAttributes']()),'uploadcareImageId':_0x36b681,'src':_0x4f3f9e,'sources':_0x3b0f69,'width':_0x1d04b8,'height':_0x4c73bb},_0x506c1a);_0x5e5b8e['setSelection'](_0x506c1a,'on');});}async['_getImageAsFile'](_0x4e616c){const _0x39e53c=_0x4ac7e1['window'],_0x3ac222=_0x4ac7e1['document']['location']['href'],_0x54f5a5=new _0x39e53c['URL'](_0x4e616c['getAttribute']('src'),_0x3ac222);if('data:'===_0x54f5a5['protocol']){const _0x2c7ab5=_0x54f5a5['href']['split'](','),_0x382c96=_0x2c7ab5[0x0]['match'](/:(.*?);/)[0x1],_0x512f45=_0x382c96['split']('/')[0x1],_0x4ed75c=_0x39e53c['atob'](_0x2c7ab5[_0x2c7ab5['length']-0x1]);let _0x3c2bb8=_0x4ed75c['length'];const _0x25eb1=new _0x39e53c['Uint8Array'](_0x3c2bb8);for(;_0x3c2bb8--;)_0x25eb1[_0x3c2bb8]=_0x4ed75c['charCodeAt'](_0x3c2bb8);return new _0x39e53c['File']([_0x25eb1],'image.'+_0x512f45,{'type':_0x382c96});}const _0x29e455=_0x54f5a5['href']['split']('/'),_0x1b9ddf=_0x29e455[_0x29e455['length']-0x1],_0x53527f=_0x1b9ddf['split']('.')[0x1];return _0x39e53c['fetch'](_0x54f5a5['href'])['then'](_0xf30b89=>_0xf30b89['clone']()['blob']())['then'](_0xbf2db=>new _0x39e53c['File']([_0xbf2db],_0x1b9ddf,{'type':'image/'+_0x53527f}));}}class O extends _0x1830ed{['imageEditController'];static get['requires'](){return[_0x2e6c28];}['_isEditable'];constructor(_0x5d2379){super(_0x5d2379),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1a750f){const _0x4c85cb=G(_0x1a750f);return _0x1dc681=>!(!_0x1dc681||!_0x1dc681['is']('element','imageBlock')&&!_0x1dc681['is']('element','imageInline'))&&(!!_0x1dc681['hasAttribute']('uploadcareImageId')||!!_0x1dc681['hasAttribute']('src')&&_0x4c85cb(_0x1dc681['getAttribute']('src')));}(_0x5d2379['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x111df7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x111df7);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5edff7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5edff7&&(_0x5edff7['is']('element','imageBlock')||_0x5edff7['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x2e6c28),_0x5edff7),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x1830ed{['refresh'](){const _0x3abfde=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3abfde&&(_0x3abfde['is']('element','imageBlock')||_0x3abfde['is']('element','imageInline')));}['execute'](_0x4e8f11){const _0x579c48=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x309a5b=>{_0x309a5b['setAttributes'](_0x4e8f11,_0x579c48),_0x309a5b['removeAttribute']('srcset',_0x579c48),_0x309a5b['removeAttribute']('sizes',_0x579c48);});}}class m extends _0x2f79a5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xc388b8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3e6153}=this;_0x3e6153['commands']['add']('uploadcareImageEdit',new O(_0x3e6153)),_0x3e6153['commands']['add']('uploadcareImageReplace',new R(_0x3e6153));}}class g extends _0x2f79a5{['_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 _0xc6b9d8=this['editor'];_0xc6b9d8['ui']['componentFactory']['add']('uploadcareImageEdit',_0x971d0a=>{const _0x45fac6=_0xc6b9d8['commands']['get']('uploadcareImageEdit'),_0x3481d8=new _0x484af9(_0x971d0a),t=_0x971d0a['t'];return _0x3481d8['set']({'icon':_0x5d9d5d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3481d8['bind']('isEnabled')['to'](_0x45fac6),_0x3481d8['bind']('isOn')['to'](_0x45fac6,'isActive'),this['listenTo'](_0x3481d8,'execute',()=>{_0xc6b9d8['execute']('uploadcareImageEdit'),_0xc6b9d8['editing']['view']['focus']();}),_0x3481d8;}),this['_initConfig']();}['_initConfig'](){const _0x20ee2c=_0x414e74(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x20ee2c),this['listenTo'](this['editor'],'destroy',()=>{_0x20ee2c['remove']();});}}class et extends _0x2f79a5{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": "0.0.0-nightly-next-20251225.0",
3
+ "version": "0.0.0-nightly-next-20251226.0",
4
4
  "description": "Uploadcare feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,14 +23,14 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20251225.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20251225.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20251225.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20251225.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20251225.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20251225.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20251225.0",
33
- "ckeditor5": "0.0.0-nightly-next-20251225.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20251226.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20251226.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20251226.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20251226.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20251226.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20251226.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20251226.0",
33
+ "ckeditor5": "0.0.0-nightly-next-20251226.0",
34
34
  "@uploadcare/file-uploader": "1.24.5",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x462c(){const _0xc6342b=['uploadcareImageId','once','document','body','uploadcareImageReplace','extend','uc-upload-ctx-provider','href','listenTo','ctxElement','replaceImageSource','_ctxElement','pluginName','\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','imageInline','cleanupImage','_initConversion','189976dZoMbN','downcast','12PHDQMY','isOfficialPlugin','imageBlock','model','destroy','conversion','1371318lcyxaE','uploader-','contentLanguage','uc-config','configElement','editing','for','_configElement','config','getAttribute','schema','uploadcare.pubkey','15105563CgCEkr','_initConfig','render','insertImage','execute','540PvWnlm','add','view','27990VKmmPU','uploadcare','255kWJGsm','afterInit','4132356KGDsgp','removeAttribute','getSelectedElement','init','elementToAttribute','selection','editor','iconHrefResolver','10432lSMQMM','ucContextId','attributeToAttribute','map','closeMax','true','commands','1437adTFcO','join','remove','UploadcareEditing','133WqURev','appendChild','isPremiumPlugin','get','input[uploadcare-file-input]','fromCharCode','uploadcare.uploader','140papZmZ','upcast','querySelector','_initCtx','_initSchema','requires','PictureEditing','_initImageProcessingIndicator','isRegistered','locale','#uc-icon-arrow-down','data-uc-image-id'];_0x462c=function(){return _0xc6342b;};return _0x462c();}const _0x3f5545=_0x2df7;(function(_0x3153cf,_0x334661){const _0x2e9dc3=_0x2df7,_0x22e1c5=_0x3153cf();while(!![]){try{const _0x5ef820=parseInt(_0x2e9dc3(0x195))/0x1*(-parseInt(_0x2e9dc3(0x1d6))/0x2)+parseInt(_0x2e9dc3(0x1c5))/0x3+-parseInt(_0x2e9dc3(0x18e))/0x4*(-parseInt(_0x2e9dc3(0x1db))/0x5)+-parseInt(_0x2e9dc3(0x1dd))/0x6+parseInt(_0x2e9dc3(0x199))/0x7*(-parseInt(_0x2e9dc3(0x1bd))/0x8)+-parseInt(_0x2e9dc3(0x1d9))/0x9*(parseInt(_0x2e9dc3(0x1a0))/0xa)+-parseInt(_0x2e9dc3(0x1d1))/0xb*(-parseInt(_0x2e9dc3(0x1bf))/0xc);if(_0x5ef820===_0x334661)break;else _0x22e1c5['push'](_0x22e1c5['shift']());}catch(_0x187d82){_0x22e1c5['push'](_0x22e1c5['shift']());}}}(_0x462c,0x5fada));import{Plugin as _0x17f35f}from'ckeditor5/src/core.js';import{Dialog as _0x57aa6d}from'ckeditor5/src/ui.js';function _0x2df7(_0x4cbee8,_0x24fbee){const _0x462ca6=_0x462c();return _0x2df7=function(_0x2df7b5,_0x75750e){_0x2df7b5=_0x2df7b5-0x189;let _0x4561e4=_0x462ca6[_0x2df7b5];return _0x4561e4;},_0x2df7(_0x4cbee8,_0x24fbee);}import{createElement as _0x385452,global as _0x2cbc25,uid as _0xcb86d6}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x7ddb97}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0xaff9d2}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2462c4}from'./utils/editingutils.js';export class UploadcareEditing extends _0x17f35f{[_0x3f5545(0x1cc)]=null;[_0x3f5545(0x1b7)]=null;static get[_0x3f5545(0x1b8)](){const _0x567c12=_0x3f5545;return _0x567c12(0x198);}static get[_0x3f5545(0x1a5)](){const _0x3752bd=_0x3f5545;return[_0x3752bd(0x1a6),_0xaff9d2,_0x57aa6d];}static get[_0x3f5545(0x1c0)](){return!0x0;}static get[_0x3f5545(0x19b)](){return!0x0;}[_0x3f5545(0x18f)];get[_0x3f5545(0x1c9)](){const _0x38ea05=_0x3f5545;return this[_0x38ea05(0x1cc)];}get[_0x3f5545(0x1b5)](){const _0x312aaf=_0x3f5545;return this[_0x312aaf(0x1b7)];}constructor(_0x496c0f){const _0x25ab2f=_0x3f5545;super(_0x496c0f),this[_0x25ab2f(0x18f)]=_0xcb86d6();}[_0x3f5545(0x189)](){const _0x175acb=_0x3f5545,_0x55df07=this[_0x175acb(0x18c)];_0x55df07[_0x175acb(0x194)][_0x175acb(0x1d7)](_0x175acb(0x1da),new _0x7ddb97(_0x55df07));}[_0x3f5545(0x1dc)](){const _0x1187fb=_0x3f5545;this[_0x1187fb(0x1a4)](),this[_0x1187fb(0x1bc)](),this[_0x1187fb(0x1d2)](),this[_0x1187fb(0x1a3)](),this[_0x1187fb(0x1a7)](),this[_0x1187fb(0x1b4)](this[_0x1187fb(0x18c)],_0x1187fb(0x1c3),()=>{const _0x46d16d=_0x1187fb;this[_0x46d16d(0x1cc)]&&(this[_0x46d16d(0x1cc)][_0x46d16d(0x197)](),this[_0x46d16d(0x1cc)]=null),this[_0x46d16d(0x1b7)]&&(this[_0x46d16d(0x1b7)][_0x46d16d(0x197)](),this[_0x46d16d(0x1b7)]=null);const _0x1c9dbe=_0x2cbc25[_0x46d16d(0x1ae)][_0x46d16d(0x1a2)](_0x46d16d(0x19d));_0x1c9dbe&&_0x1c9dbe[_0x46d16d(0x197)]();}),async function(_0x5bd8e3){const _0x2caa21=_0x31c845([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x58a8ea=0x535f8c3a,_0x293c32=0x5358f0d2^_0x58a8ea,_0xcb98ba=window[_0x31c845([0x44,0x61,0x74,0x65])][_0x31c845([0x6e,0x6f,0x77])](),_0x20f9ef=_0x5bd8e3[_0x31c845([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x487e94=new window[(_0x31c845([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x104138=>{_0x20f9ef[_0x31c845([0x6f,0x6e,0x63,0x65])](_0x31c845([0x72,0x65,0x61,0x64,0x79]),_0x104138);}),_0x12f359={[_0x31c845([0x6b,0x74,0x79])]:_0x31c845([0x45,0x43]),[_0x31c845([0x75,0x73,0x65])]:_0x31c845([0x73,0x69,0x67]),[_0x31c845([0x63,0x72,0x76])]:_0x31c845([0x50,0x2d,0x32,0x35,0x36]),[_0x31c845([0x78])]:_0x31c845([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]),[_0x31c845([0x79])]:_0x31c845([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]),[_0x31c845([0x61,0x6c,0x67])]:_0x31c845([0x45,0x53,0x32,0x35,0x36])},_0x16184d=_0x20f9ef[_0x31c845([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x31c845([0x67,0x65,0x74])](_0x31c845([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2e4250(){let _0x524c5f,_0xe7f86e=null,_0x14409c=null;try{if(_0x16184d==_0x31c845([0x47,0x50,0x4c]))return _0x31c845([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x524c5f=_0x13eb38(),!_0x524c5f)return _0x31c845([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x524c5f[_0x31c845([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x14409c=_0x349ae1(_0x524c5f[_0x31c845([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x524c5f[_0x31c845([0x6a,0x74,0x69])])),await _0x163566()?_0x18e58c()?_0x5c0e00()?_0x31c845([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x450daf()?(_0x524c5f[_0x31c845([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31c845([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe7f86e=_0x442b63(_0x31c845([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x524c5f[_0x31c845([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31c845([0x74,0x72,0x69,0x61,0x6c])&&(_0xe7f86e=_0x442b63(_0x31c845([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x30ec14()):_0x31c845([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x31c845([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x31c845([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x31c845([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5c0e00(){const _0xa4bbbb=[_0x31c845([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x31c845([0x74,0x72,0x69,0x61,0x6c])][_0x31c845([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x524c5f[_0x31c845([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xcb98ba/0x3e8:0xe10*_0x293c32;return _0x524c5f[_0x31c845([0x65,0x78,0x70])]<_0xa4bbbb;}function _0x18e58c(){const _0x33c799=_0x524c5f[_0x31c845([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x33c799&&(!!_0x33c799[_0x31c845([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31c845([0x2a]))||!!_0x33c799[_0x31c845([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31c845([0x55,0x50,0x4c,0x43])));}function _0x450daf(){const _0x23f460=_0x2df7,_0x198ff2=_0x524c5f[_0x31c845([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x198ff2||0x0==_0x198ff2[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5ab7b9}=new URL(window[_0x31c845([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x23f460(0x1b3)]);if(_0x198ff2[_0x31c845([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ab7b9))return!0x0;const _0x10dca5=_0x5ab7b9[_0x31c845([0x73,0x70,0x6c,0x69,0x74])](_0x31c845([0x2e]));return _0x198ff2[_0x31c845([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4845bd=>_0x4845bd[_0x31c845([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31c845([0x2a])))[_0x31c845([0x6d,0x61,0x70])](_0x9262b0=>_0x9262b0[_0x31c845([0x73,0x70,0x6c,0x69,0x74])](_0x31c845([0x2e])))[_0x31c845([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5670d7=>_0x5670d7[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x10dca5[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x31c845([0x6d,0x61,0x70])](_0xc17d20=>Array(_0x10dca5[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xc17d20[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x31c845([0x66,0x69,0x6c,0x6c])](_0xc17d20[0x0]===_0x31c845([0x2a])?_0x31c845([0x2a]):'')[_0x31c845([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xc17d20))[_0x31c845([0x73,0x6f,0x6d,0x65])](_0x4436b6=>_0x10dca5[_0x31c845([0x65,0x76,0x65,0x72,0x79])]((_0x523b4c,_0x23c6cb)=>_0x4436b6[_0x23c6cb]===_0x523b4c||_0x4436b6[_0x23c6cb]===_0x31c845([0x2a])));}function _0x30ec14(){return _0xe7f86e&&_0x14409c?new window[(_0x31c845([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d845b,_0x59a16c)=>{_0xe7f86e[_0x31c845([0x74,0x68,0x65,0x6e])](_0x5d845b,_0x59a16c),_0x14409c[_0x31c845([0x74,0x68,0x65,0x6e])](_0x4d6145=>{_0x4d6145!=_0x31c845([0x56,0x61,0x6c,0x69,0x64])&&_0x5d845b(_0x4d6145);},_0x59a16c);}):_0xe7f86e||_0x14409c||_0x31c845([0x56,0x61,0x6c,0x69,0x64]);}}function _0x349ae1(_0x9bbcaa,_0x315788){return new window[(_0x31c845([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfc13cd=>{if(_0x23b707())return _0xfc13cd(_0x31c845([0x56,0x61,0x6c,0x69,0x64]));_0x23ff91(),_0x20f9ef[_0x31c845([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x31c845([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3cb5e2=!0x1;const _0x5c2d57=_0xcb86d6();function _0x5348c5(_0x7ed96f){return!!_0x7ed96f&&(typeof _0x7ed96f===_0x31c845([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x7ed96f===_0x31c845([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x7ed96f[_0x31c845([0x74,0x68,0x65,0x6e])]===_0x31c845([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x7ed96f[_0x31c845([0x63,0x61,0x74,0x63,0x68])]===_0x31c845([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x16865a(_0x427109){_0x29cbb3(_0x427109)[_0x31c845([0x74,0x68,0x65,0x6e])](_0x300fc8=>{if(!_0x300fc8||_0x300fc8[_0x31c845([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x31c845([0x6f,0x6b]))return _0x31c845([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2acdc8(_0x4e612e(_0x5c2d57+_0x315788))!=_0x300fc8[_0x31c845([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x31c845([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x31c845([0x56,0x61,0x6c,0x69,0x64]);})[_0x31c845([0x74,0x68,0x65,0x6e])](_0xfaaa26=>(_0x1ac05a(),_0xfaaa26),()=>{const _0x1db39c=_0x146a77();return null==_0x1db39c?(_0x1ac05a(),_0x31c845([0x56,0x61,0x6c,0x69,0x64])):_0x31c845(_0xcb98ba-_0x1db39c>(0x7753083a^_0x58a8ea)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x31c845([0x74,0x68,0x65,0x6e])](_0xfc13cd)[_0x31c845([0x63,0x61,0x74,0x63,0x68])](()=>{_0xfc13cd(_0x31c845([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1247f1=0x536962ba^_0x58a8ea;function _0x1ac05a(){const _0x6e7c3e=_0x31c845([0x6c,0x6c,0x63,0x74,0x2d])+_0x2acdc8(_0x4e612e(_0x9bbcaa)),_0x27d1db=_0x43b36(_0x2acdc8(window[_0x31c845([0x4d,0x61,0x74,0x68])][_0x31c845([0x63,0x65,0x69,0x6c])](_0xcb98ba/_0x1247f1)));window[_0x31c845([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31c845([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6e7c3e,_0x27d1db);}function _0x146a77(){const _0x21aeac=_0x31c845([0x6c,0x6c,0x63,0x74,0x2d])+_0x2acdc8(_0x4e612e(_0x9bbcaa)),_0x3e67bd=window[_0x31c845([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31c845([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21aeac);return _0x3e67bd?window[_0x31c845([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43b36(_0x3e67bd),0x10)*_0x1247f1:null;}function _0x29cbb3(_0x2033df){return new window[(_0x31c845([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55e6b4,_0x302d17)=>{_0x2033df[_0x31c845([0x74,0x68,0x65,0x6e])](_0x55e6b4,_0x302d17),window[_0x31c845([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x302d17,0x535e58fa^_0x58a8ea);});}}_0x20f9ef[_0x31c845([0x6f,0x6e])](_0x31c845([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f770c,_0x24c734)=>{if(_0x24c734[0x0]!=_0x9bbcaa)return _0xfc13cd(_0x31c845([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x24c734[0x1]={..._0x24c734[0x1],[_0x31c845([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5c2d57};},{[_0x31c845([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31c845([0x68,0x69,0x67,0x68])}),_0x20f9ef[_0x31c845([0x6f,0x6e])](_0x31c845([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45abd4=>{_0x5348c5(_0x45abd4[_0x31c845([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3cb5e2=!0x0,_0x16865a(_0x45abd4[_0x31c845([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x31c845([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31c845([0x6c,0x6f,0x77])}),_0x487e94[_0x31c845([0x74,0x68,0x65,0x6e])](()=>{_0x3cb5e2||_0xfc13cd(_0x31c845([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x23b707(){return _0x20f9ef[_0x31c845([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31c845([0x76,0x69,0x65,0x77])][_0x31c845([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x31c845([0x61,0x75,0x74,0x6f]);}function _0x23ff91(){_0x20f9ef[_0x31c845([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31c845([0x76,0x69,0x65,0x77])][_0x31c845([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31c845([0x61,0x75,0x74,0x6f]);}}function _0x442b63(_0x3d5273){const _0x51d943=[new window[(_0x31c845([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x496464=>setTimeout(_0x496464,0x5356b2f6^_0x58a8ea)),_0x487e94[_0x31c845([0x74,0x68,0x65,0x6e])](()=>new window[(_0x31c845([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57f405=>{let _0x4cbcf3=0x0;_0x20f9ef[_0x31c845([0x6d,0x6f,0x64,0x65,0x6c])][_0x31c845([0x6f,0x6e])](_0x31c845([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a0033,_0x589b3b)=>{_0x589b3b[0x0][_0x31c845([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4cbcf3++,_0x4cbcf3==(0x535f89d2^_0x58a8ea)&&(_0x57f405(),_0x4a0033[_0x31c845([0x6f,0x66,0x66])]());});}))];return window[_0x31c845([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31c845([0x72,0x61,0x63,0x65])](_0x51d943)[_0x31c845([0x74,0x68,0x65,0x6e])](()=>_0x3d5273);}async function _0x5d6af3(){await _0x487e94,_0x20f9ef[_0x31c845([0x6d,0x6f,0x64,0x65,0x6c])][_0x31c845([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4bc321,_0x20f9ef[_0x31c845([0x6d,0x6f,0x64,0x65,0x6c])][_0x31c845([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4bc321,_0x20f9ef[_0x31c845([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x31c845([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5c274d(_0x2eae11){const _0x358de7=_0x1b2ba8();_0x20f9ef[_0x358de7]=_0x31c845([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2eae11,_0x2eae11!=_0x31c845([0x56,0x61,0x6c,0x69,0x64])&&_0x5d6af3();}function _0x1b2ba8(){const _0x2d3870=window[_0x31c845([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x31c845([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x31c845([0x6e,0x6f,0x77])]())[_0x31c845([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x31c845([0x2e]),'');let _0x949d1e=_0x31c845([0x68]);for(let _0x2bdfa0=0x0;_0x2bdfa0<_0x2d3870[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bdfa0+=0x2){let _0x5af6a1=window[_0x31c845([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d3870[_0x31c845([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2bdfa0,_0x2bdfa0+0x2));_0x5af6a1>=_0x2caa21[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5af6a1-=_0x2caa21[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x949d1e+=_0x2caa21[_0x5af6a1];}return _0x949d1e;}function _0x13eb38(){const _0x431dd8=_0x16184d[_0x31c845([0x73,0x70,0x6c,0x69,0x74])](_0x31c845([0x2e]));if(0x3!=_0x431dd8[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x195cf7(_0x431dd8[0x1]);function _0x195cf7(_0x4cf1dd){const _0xe9abac=_0x522104(_0x4cf1dd);return _0xe9abac&&_0x179c6a()?_0xe9abac:null;function _0x179c6a(){const _0x1a14cb=_0xe9abac[_0x31c845([0x6a,0x74,0x69])],_0x2caf19=window[_0x31c845([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a14cb[_0x31c845([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a14cb[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3efe36={..._0xe9abac,[_0x31c845([0x6a,0x74,0x69])]:_0x1a14cb[_0x31c845([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1a14cb[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3efe36[_0x31c845([0x76,0x63])],_0x4e612e(_0x3efe36)==_0x2caf19;}}}async function _0x163566(){let _0x1dab26=!0x0;try{const _0x3c00d1=_0x16184d[_0x31c845([0x73,0x70,0x6c,0x69,0x74])](_0x31c845([0x2e])),[_0x29c3d5,_0x56e7d0,_0x272c19]=_0x3c00d1;return _0xf65da5(_0x29c3d5),await _0x5c585e(_0x29c3d5,_0x56e7d0,_0x272c19),_0x1dab26;}catch{return!0x1;}function _0xf65da5(_0x57e8c8){const _0x3f4697=_0x522104(_0x57e8c8);_0x3f4697&&_0x3f4697[_0x31c845([0x61,0x6c,0x67])]==_0x31c845([0x45,0x53,0x32,0x35,0x36])||(_0x1dab26=!0x1);}async function _0x5c585e(_0x59f540,_0x1345b3,_0x14ae59){const _0x5044f5=window[_0x31c845([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x31c845([0x66,0x72,0x6f,0x6d])](_0x1c30ff(_0x14ae59),_0x3b64b5=>_0x3b64b5[_0x31c845([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x46e755=new window[(_0x31c845([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x31c845([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59f540+_0x31c845([0x2e])+_0x1345b3),_0x2acaa3=window[_0x31c845([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x31c845([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2acaa3)return;const _0x199b21=await _0x2acaa3[_0x31c845([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x31c845([0x6a,0x77,0x6b]),_0x12f359,{[_0x31c845([0x6e,0x61,0x6d,0x65])]:_0x31c845([0x45,0x43,0x44,0x53,0x41]),[_0x31c845([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x31c845([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x31c845([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2acaa3[_0x31c845([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x31c845([0x6e,0x61,0x6d,0x65])]:_0x31c845([0x45,0x43,0x44,0x53,0x41]),[_0x31c845([0x68,0x61,0x73,0x68])]:{[_0x31c845([0x6e,0x61,0x6d,0x65])]:_0x31c845([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x199b21,_0x5044f5,_0x46e755)||(_0x1dab26=!0x1);}}function _0x522104(_0x4fcb24){return _0x4fcb24[_0x31c845([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x31c845([0x65,0x79]))?JSON[_0x31c845([0x70,0x61,0x72,0x73,0x65])](_0x1c30ff(_0x4fcb24)):null;}function _0x1c30ff(_0x5656f6){return window[_0x31c845([0x61,0x74,0x6f,0x62])](_0x5656f6[_0x31c845([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x31c845([0x2b]))[_0x31c845([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x31c845([0x2f])));}function _0x4e612e(_0x5315fd){let _0x2bf5a1=0x1505;function _0x3cb841(_0x5c0ff5){for(let _0x4f5dfe=0x0;_0x4f5dfe<_0x5c0ff5[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f5dfe++){const _0x31fae7=_0x5c0ff5[_0x31c845([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f5dfe);_0x2bf5a1=(_0x2bf5a1<<0x5)+_0x2bf5a1+_0x31fae7,_0x2bf5a1&=_0x2bf5a1;}}function _0x4fe44a(_0x434241){Array[_0x31c845([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x434241)?_0x434241[_0x31c845([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4fe44a):_0x434241&&typeof _0x434241==_0x31c845([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x31c845([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x434241)[_0x31c845([0x73,0x6f,0x72,0x74])]()[_0x31c845([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x41402b,_0x37a4c7])=>{_0x3cb841(_0x41402b),_0x4fe44a(_0x37a4c7);}):_0x3cb841(window[_0x31c845([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x434241));}return _0x4fe44a(_0x5315fd),_0x2bf5a1>>>0x0;}function _0x2acdc8(_0x180933){return _0x180933[_0x31c845([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x31c845([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x31c845([0x30]));}function _0x43b36(_0x372903){return _0x372903[_0x31c845([0x73,0x70,0x6c,0x69,0x74])]('')[_0x31c845([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x31c845([0x6a,0x6f,0x69,0x6e])]('');}function _0x4bc321(){}function _0x31c845(_0x44ddd3){const _0x28914e=_0x2df7;return _0x44ddd3[_0x28914e(0x191)](_0x524044=>String[_0x28914e(0x19e)](_0x524044))[_0x28914e(0x196)]('');}_0x5c274d(await _0x2e4250());}(this);}[_0x3f5545(0x1a4)](){const _0x2286ce=_0x3f5545,_0x4f47f5=this[_0x2286ce(0x18c)][_0x2286ce(0x1c2)][_0x2286ce(0x1cf)];_0x4f47f5[_0x2286ce(0x1a8)](_0x2286ce(0x1c1))&&_0x4f47f5[_0x2286ce(0x1b1)](_0x2286ce(0x1c1),{'allowAttributes':[_0x2286ce(0x1ac)]}),_0x4f47f5[_0x2286ce(0x1a8)](_0x2286ce(0x1ba))&&_0x4f47f5[_0x2286ce(0x1b1)](_0x2286ce(0x1ba),{'allowAttributes':[_0x2286ce(0x1ac)]});}[_0x3f5545(0x1bc)](){const _0x3b71f7=_0x3f5545,_0x5d2de0=this[_0x3b71f7(0x18c)];_0x5d2de0[_0x3b71f7(0x1c4)][_0x3b71f7(0x1cb)](_0x3b71f7(0x1be))[_0x3b71f7(0x190)]({'model':_0x3b71f7(0x1ac),'view':_0x3b71f7(0x1ab)}),_0x5d2de0[_0x3b71f7(0x1c4)][_0x3b71f7(0x1cb)](_0x3b71f7(0x1a1))[_0x3b71f7(0x18a)]({'model':{'key':_0x3b71f7(0x1ac),'value':_0x40fe58=>_0x40fe58[_0x3b71f7(0x1ce)](_0x3b71f7(0x1ab))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1b82fd=_0x5d2de0[_0x3b71f7(0x194)][_0x3b71f7(0x19c)](_0x3b71f7(0x1b6));_0x1b82fd&&this[_0x3b71f7(0x1b4)](_0x1b82fd,_0x3b71f7(0x1bb),(_0x460262,[_0x14e88f,_0xb25810])=>{const _0x42cb21=_0x3b71f7;_0x14e88f[_0x42cb21(0x1de)](_0x42cb21(0x1ac),_0xb25810);});}[_0x3f5545(0x1d2)](){const _0x3e0f85=_0x3f5545,_0x1ab5d0=this[_0x3e0f85(0x18c)][_0x3e0f85(0x1cd)][_0x3e0f85(0x19c)](_0x3e0f85(0x19f))||{},_0x38c083=this[_0x3e0f85(0x18c)][_0x3e0f85(0x1cd)][_0x3e0f85(0x19c)](_0x3e0f85(0x1d0))||'';this[_0x3e0f85(0x1cc)]=_0x385452(_0x2cbc25[_0x3e0f85(0x1ae)],_0x3e0f85(0x1c8),{..._0x1ab5d0,'pubkey':_0x38c083,'ctx-name':_0x3e0f85(0x1c6)+this[_0x3e0f85(0x18f)],'sourceList':'','imgOnly':_0x3e0f85(0x193),'removeCopyright':_0x3e0f85(0x193),'localeName':this[_0x3e0f85(0x18c)][_0x3e0f85(0x1a9)][_0x3e0f85(0x1c7)],'externalSourcesEmbedCss':_0x3e0f85(0x1b9)}),this[_0x3e0f85(0x1cc)][_0x3e0f85(0x18d)]=_0x59518b=>{const _0x2949b2=_0x3e0f85;if(_0x2949b2(0x192)==_0x59518b)return _0x2949b2(0x1aa);},_0x2cbc25[_0x3e0f85(0x1ae)][_0x3e0f85(0x1af)][_0x3e0f85(0x19a)](this[_0x3e0f85(0x1cc)]);}[_0x3f5545(0x1a3)](){const _0x575b0d=_0x3f5545;this[_0x575b0d(0x1b7)]=_0x385452(_0x2cbc25[_0x575b0d(0x1ae)],_0x575b0d(0x1b2),{'ctx-name':_0x575b0d(0x1c6)+this[_0x575b0d(0x18f)]}),_0x2cbc25[_0x575b0d(0x1ae)][_0x575b0d(0x1af)][_0x575b0d(0x19a)](this[_0x575b0d(0x1b7)]);}[_0x3f5545(0x1a7)](){const _0x454c2b=_0x3f5545,_0x4477c5=this[_0x454c2b(0x18c)][_0x454c2b(0x194)][_0x454c2b(0x19c)](_0x454c2b(0x1d4));_0x4477c5&&this[_0x454c2b(0x1b4)](_0x4477c5,_0x454c2b(0x1d5),()=>{const _0x420118=_0x454c2b,_0x1c5aa8=this[_0x420118(0x18c)][_0x420118(0x1c2)][_0x420118(0x1ae)][_0x420118(0x18b)][_0x420118(0x1df)]();_0x1c5aa8&&_0x1c5aa8[_0x420118(0x1ce)](_0x420118(0x1ac))&&this[_0x420118(0x18c)][_0x420118(0x1ca)][_0x420118(0x1d8)][_0x420118(0x1ad)](_0x420118(0x1d3),()=>{const _0x30b34a=_0x420118;_0x2462c4(this[_0x30b34a(0x18c)],_0x1c5aa8);});});const _0x51bf8a=this[_0x454c2b(0x18c)][_0x454c2b(0x194)][_0x454c2b(0x19c)](_0x454c2b(0x1b0));_0x51bf8a&&this[_0x454c2b(0x1b4)](_0x51bf8a,_0x454c2b(0x1d5),()=>{const _0x292d8b=_0x454c2b,_0x1b679b=this[_0x292d8b(0x18c)][_0x292d8b(0x1c2)][_0x292d8b(0x1ae)][_0x292d8b(0x18b)][_0x292d8b(0x1df)]();_0x1b679b&&_0x1b679b[_0x292d8b(0x1ce)](_0x292d8b(0x1ac))&&this[_0x292d8b(0x18c)][_0x292d8b(0x1ca)][_0x292d8b(0x1d8)][_0x292d8b(0x1ad)](_0x292d8b(0x1d3),()=>{const _0x4df8f6=_0x292d8b;_0x2462c4(this[_0x4df8f6(0x18c)],_0x1b679b);});});}}
23
+ const _0x512f5d=_0x122d;(function(_0x1ce8b0,_0x4e7f0a){const _0x5519ec=_0x122d,_0xdb1d4d=_0x1ce8b0();while(!![]){try{const _0x22b971=parseInt(_0x5519ec(0xdf))/0x1+parseInt(_0x5519ec(0xe0))/0x2*(-parseInt(_0x5519ec(0x108))/0x3)+-parseInt(_0x5519ec(0xee))/0x4*(parseInt(_0x5519ec(0xe7))/0x5)+-parseInt(_0x5519ec(0x10a))/0x6*(parseInt(_0x5519ec(0x114))/0x7)+-parseInt(_0x5519ec(0x111))/0x8*(-parseInt(_0x5519ec(0x10f))/0x9)+parseInt(_0x5519ec(0x11f))/0xa+-parseInt(_0x5519ec(0xf9))/0xb;if(_0x22b971===_0x4e7f0a)break;else _0xdb1d4d['push'](_0xdb1d4d['shift']());}catch(_0x16ba61){_0xdb1d4d['push'](_0xdb1d4d['shift']());}}}(_0x11ca,0x3a290));import{Plugin as _0x428293}from'ckeditor5/src/core.js';import{Dialog as _0x39ced6}from'ckeditor5/src/ui.js';import{createElement as _0x4211fe,global as _0xe13190,uid as _0x5ca483}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x46179a}from'./uploadcarecommand.js';function _0x11ca(){const _0x193b10=['435710LUzoUC','10796jpkgyC','_configElement','getAttribute','_initImageProcessingIndicator','isPremiumPlugin','view','uploadcareImageId','119740QFzSRH','document','join','appendChild','#uc-icon-arrow-down','model','pluginName','12lmgeWk','conversion','contentLanguage','commands','\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','extend','true','configElement','querySelector','downcast','once','1209549EJWlgo','elementToAttribute','iconHrefResolver','removeAttribute','init','add','closeMax','map','afterInit','isOfficialPlugin','listenTo','_initConfig','schema','imageInline','ctxElement','51leLgEM','selection','7548HnypeN','attributeToAttribute','_initCtx','uploadcareImageReplace','uploadcare','9iuzFbA','isRegistered','1030552CuYuDg','fromCharCode','remove','1841rAaAUE','getSelectedElement','cleanupImage','destroy','render','execute','replaceImageSource','_initConversion','uploader-','config','uc-config','2781180DFCgLf','uc-upload-ctx-provider','upcast','data-uc-image-id','editing','ucContextId','get','uploadcare.uploader','insertImage','PictureEditing','imageBlock','href','editor','_ctxElement','for','body','UploadcareEditing','_initSchema','locale','requires','input[uploadcare-file-input]','uploadcare.pubkey'];_0x11ca=function(){return _0x193b10;};return _0x11ca();}import{UploadcareUploadAdapter as _0x4a79c5}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x378aad}from'./utils/editingutils.js';function _0x122d(_0xacf34,_0x3fac5b){const _0x11caae=_0x11ca();return _0x122d=function(_0x122da7,_0xd3e4f4){_0x122da7=_0x122da7-0xcf;let _0x33e149=_0x11caae[_0x122da7];return _0x33e149;},_0x122d(_0xacf34,_0x3fac5b);}export class UploadcareEditing extends _0x428293{[_0x512f5d(0xe1)]=null;[_0x512f5d(0xd6)]=null;static get[_0x512f5d(0xed)](){const _0x4cd4a5=_0x512f5d;return _0x4cd4a5(0xd9);}static get[_0x512f5d(0xdc)](){const _0x32ede5=_0x512f5d;return[_0x32ede5(0xd2),_0x4a79c5,_0x39ced6];}static get[_0x512f5d(0x102)](){return!0x0;}static get[_0x512f5d(0xe4)](){return!0x0;}[_0x512f5d(0x124)];get[_0x512f5d(0xf5)](){const _0x2d8638=_0x512f5d;return this[_0x2d8638(0xe1)];}get[_0x512f5d(0x107)](){const _0x3791d2=_0x512f5d;return this[_0x3791d2(0xd6)];}constructor(_0x445cec){const _0x1c0d89=_0x512f5d;super(_0x445cec),this[_0x1c0d89(0x124)]=_0x5ca483();}[_0x512f5d(0xfd)](){const _0x1f686a=_0x512f5d,_0x428ef1=this[_0x1f686a(0xd5)];_0x428ef1[_0x1f686a(0xf1)][_0x1f686a(0xfe)](_0x1f686a(0x10e),new _0x46179a(_0x428ef1));}[_0x512f5d(0x101)](){const _0x177fc1=_0x512f5d;this[_0x177fc1(0xda)](),this[_0x177fc1(0x11b)](),this[_0x177fc1(0x104)](),this[_0x177fc1(0x10c)](),this[_0x177fc1(0xe3)](),this[_0x177fc1(0x103)](this[_0x177fc1(0xd5)],_0x177fc1(0x117),()=>{const _0x1f0d58=_0x177fc1;this[_0x1f0d58(0xe1)]&&(this[_0x1f0d58(0xe1)][_0x1f0d58(0x113)](),this[_0x1f0d58(0xe1)]=null),this[_0x1f0d58(0xd6)]&&(this[_0x1f0d58(0xd6)][_0x1f0d58(0x113)](),this[_0x1f0d58(0xd6)]=null);const _0x41b762=_0xe13190[_0x1f0d58(0xe8)][_0x1f0d58(0xf6)](_0x1f0d58(0xdd));_0x41b762&&_0x41b762[_0x1f0d58(0x113)]();}),async function(_0x5850ca){const _0x5a63f8=_0x2b7a6d([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x5a0c97=0x535f8c3a,_0xbd59ce=0x5358f13a^_0x5a0c97,_0x19a028=window[_0x2b7a6d([0x44,0x61,0x74,0x65])][_0x2b7a6d([0x6e,0x6f,0x77])](),_0x16ee63=_0x5850ca[_0x2b7a6d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x58bdac=new window[(_0x2b7a6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b28f6=>{_0x16ee63[_0x2b7a6d([0x6f,0x6e,0x63,0x65])](_0x2b7a6d([0x72,0x65,0x61,0x64,0x79]),_0x3b28f6);}),_0x16313a={[_0x2b7a6d([0x6b,0x74,0x79])]:_0x2b7a6d([0x45,0x43]),[_0x2b7a6d([0x75,0x73,0x65])]:_0x2b7a6d([0x73,0x69,0x67]),[_0x2b7a6d([0x63,0x72,0x76])]:_0x2b7a6d([0x50,0x2d,0x32,0x35,0x36]),[_0x2b7a6d([0x78])]:_0x2b7a6d([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]),[_0x2b7a6d([0x79])]:_0x2b7a6d([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]),[_0x2b7a6d([0x61,0x6c,0x67])]:_0x2b7a6d([0x45,0x53,0x32,0x35,0x36])},_0x53f678=_0x16ee63[_0x2b7a6d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b7a6d([0x67,0x65,0x74])](_0x2b7a6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3d12f4(){let _0x4674ca,_0x259a1b=null,_0x4c4bf9=null;try{if(_0x53f678==_0x2b7a6d([0x47,0x50,0x4c]))return _0x2b7a6d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4674ca=_0x4d3ae7(),!_0x4674ca)return _0x2b7a6d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4674ca[_0x2b7a6d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c4bf9=_0x1be4c5(_0x4674ca[_0x2b7a6d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4674ca[_0x2b7a6d([0x6a,0x74,0x69])])),await _0x1490ad()?_0x5aa564()?_0x55209f()?_0x2b7a6d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3432a1()?(_0x4674ca[_0x2b7a6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b7a6d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x259a1b=_0x254669(_0x2b7a6d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4674ca[_0x2b7a6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b7a6d([0x74,0x72,0x69,0x61,0x6c])&&(_0x259a1b=_0x254669(_0x2b7a6d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3e48d7()):_0x2b7a6d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b7a6d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b7a6d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b7a6d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55209f(){const _0x1a22d1=[_0x2b7a6d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b7a6d([0x74,0x72,0x69,0x61,0x6c])][_0x2b7a6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4674ca[_0x2b7a6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x19a028/0x3e8:0xe10*_0xbd59ce;return _0x4674ca[_0x2b7a6d([0x65,0x78,0x70])]<_0x1a22d1;}function _0x5aa564(){const _0x2222f9=_0x4674ca[_0x2b7a6d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2222f9&&(!!_0x2222f9[_0x2b7a6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7a6d([0x2a]))||!!_0x2222f9[_0x2b7a6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7a6d([0x55,0x50,0x4c,0x43])));}function _0x3432a1(){const _0x2c758a=_0x122d,_0x13d2dc=_0x4674ca[_0x2b7a6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x13d2dc||0x0==_0x13d2dc[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f3d5a}=new URL(window[_0x2b7a6d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2c758a(0xd4)]);if(_0x13d2dc[_0x2b7a6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f3d5a))return!0x0;const _0x33e309=_0x4f3d5a[_0x2b7a6d([0x73,0x70,0x6c,0x69,0x74])](_0x2b7a6d([0x2e]));return _0x13d2dc[_0x2b7a6d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1afde4=>_0x1afde4[_0x2b7a6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7a6d([0x2a])))[_0x2b7a6d([0x6d,0x61,0x70])](_0x20f03f=>_0x20f03f[_0x2b7a6d([0x73,0x70,0x6c,0x69,0x74])](_0x2b7a6d([0x2e])))[_0x2b7a6d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ae7c7=>_0x4ae7c7[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x33e309[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b7a6d([0x6d,0x61,0x70])](_0xfd0a39=>Array(_0x33e309[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xfd0a39[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b7a6d([0x66,0x69,0x6c,0x6c])](_0xfd0a39[0x0]===_0x2b7a6d([0x2a])?_0x2b7a6d([0x2a]):'')[_0x2b7a6d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xfd0a39))[_0x2b7a6d([0x73,0x6f,0x6d,0x65])](_0x21409f=>_0x33e309[_0x2b7a6d([0x65,0x76,0x65,0x72,0x79])]((_0xa9c617,_0x4cff08)=>_0x21409f[_0x4cff08]===_0xa9c617||_0x21409f[_0x4cff08]===_0x2b7a6d([0x2a])));}function _0x3e48d7(){return _0x259a1b&&_0x4c4bf9?new window[(_0x2b7a6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d8eee,_0x4fed90)=>{_0x259a1b[_0x2b7a6d([0x74,0x68,0x65,0x6e])](_0x1d8eee,_0x4fed90),_0x4c4bf9[_0x2b7a6d([0x74,0x68,0x65,0x6e])](_0x268a18=>{_0x268a18!=_0x2b7a6d([0x56,0x61,0x6c,0x69,0x64])&&_0x1d8eee(_0x268a18);},_0x4fed90);}):_0x259a1b||_0x4c4bf9||_0x2b7a6d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1be4c5(_0x319e31,_0x2447b2){return new window[(_0x2b7a6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x287533=>{if(_0x179bff())return _0x287533(_0x2b7a6d([0x56,0x61,0x6c,0x69,0x64]));_0x32702e(),_0x16ee63[_0x2b7a6d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b7a6d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x565e0a=!0x1;const _0x1baf09=_0x5ca483();function _0x58e0dc(_0x5b76ee){return!!_0x5b76ee&&(typeof _0x5b76ee===_0x2b7a6d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b76ee===_0x2b7a6d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b76ee[_0x2b7a6d([0x74,0x68,0x65,0x6e])]===_0x2b7a6d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b76ee[_0x2b7a6d([0x63,0x61,0x74,0x63,0x68])]===_0x2b7a6d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3bf226(_0x5354dd){_0x149e5b(_0x5354dd)[_0x2b7a6d([0x74,0x68,0x65,0x6e])](_0x305a0e=>{if(!_0x305a0e||_0x305a0e[_0x2b7a6d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b7a6d([0x6f,0x6b]))return _0x2b7a6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e0726(_0x26b0b4(_0x1baf09+_0x2447b2))!=_0x305a0e[_0x2b7a6d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b7a6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b7a6d([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b7a6d([0x74,0x68,0x65,0x6e])](_0xf0e20b=>(_0x5eebf5(),_0xf0e20b),()=>{const _0x355b0e=_0xdd4613();return null==_0x355b0e?(_0x5eebf5(),_0x2b7a6d([0x56,0x61,0x6c,0x69,0x64])):_0x2b7a6d(_0x19a028-_0x355b0e>(0x7753083a^_0x5a0c97)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b7a6d([0x74,0x68,0x65,0x6e])](_0x287533)[_0x2b7a6d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x287533(_0x2b7a6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24014d=0x536962ba^_0x5a0c97;function _0x5eebf5(){const _0x396e38=_0x2b7a6d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e0726(_0x26b0b4(_0x319e31)),_0x508e9d=_0x2f9337(_0x4e0726(window[_0x2b7a6d([0x4d,0x61,0x74,0x68])][_0x2b7a6d([0x63,0x65,0x69,0x6c])](_0x19a028/_0x24014d)));window[_0x2b7a6d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b7a6d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x396e38,_0x508e9d);}function _0xdd4613(){const _0x5eb1af=_0x2b7a6d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e0726(_0x26b0b4(_0x319e31)),_0x23241f=window[_0x2b7a6d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b7a6d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5eb1af);return _0x23241f?window[_0x2b7a6d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f9337(_0x23241f),0x10)*_0x24014d:null;}function _0x149e5b(_0x4fecf2){return new window[(_0x2b7a6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40263a,_0x16624a)=>{_0x4fecf2[_0x2b7a6d([0x74,0x68,0x65,0x6e])](_0x40263a,_0x16624a),window[_0x2b7a6d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x16624a,0x535e58fa^_0x5a0c97);});}}_0x16ee63[_0x2b7a6d([0x6f,0x6e])](_0x2b7a6d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3b0bb9,_0x389aca)=>{if(_0x389aca[0x0]!=_0x319e31)return _0x287533(_0x2b7a6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x389aca[0x1]={..._0x389aca[0x1],[_0x2b7a6d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1baf09};},{[_0x2b7a6d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b7a6d([0x68,0x69,0x67,0x68])}),_0x16ee63[_0x2b7a6d([0x6f,0x6e])](_0x2b7a6d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5daec8=>{_0x58e0dc(_0x5daec8[_0x2b7a6d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x565e0a=!0x0,_0x3bf226(_0x5daec8[_0x2b7a6d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b7a6d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b7a6d([0x6c,0x6f,0x77])}),_0x58bdac[_0x2b7a6d([0x74,0x68,0x65,0x6e])](()=>{_0x565e0a||_0x287533(_0x2b7a6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x179bff(){return _0x16ee63[_0x2b7a6d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b7a6d([0x76,0x69,0x65,0x77])][_0x2b7a6d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b7a6d([0x61,0x75,0x74,0x6f]);}function _0x32702e(){_0x16ee63[_0x2b7a6d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b7a6d([0x76,0x69,0x65,0x77])][_0x2b7a6d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b7a6d([0x61,0x75,0x74,0x6f]);}}function _0x254669(_0x39c0b5){const _0x32502d=[new window[(_0x2b7a6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34ca62=>setTimeout(_0x34ca62,0x5356b2f6^_0x5a0c97)),_0x58bdac[_0x2b7a6d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b7a6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d33aa=>{let _0x3d7a4d=0x0;_0x16ee63[_0x2b7a6d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b7a6d([0x6f,0x6e])](_0x2b7a6d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x591f4e,_0x2c7cbb)=>{_0x2c7cbb[0x0][_0x2b7a6d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3d7a4d++,_0x3d7a4d==(0x535f89d2^_0x5a0c97)&&(_0x2d33aa(),_0x591f4e[_0x2b7a6d([0x6f,0x66,0x66])]());});}))];return window[_0x2b7a6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b7a6d([0x72,0x61,0x63,0x65])](_0x32502d)[_0x2b7a6d([0x74,0x68,0x65,0x6e])](()=>_0x39c0b5);}async function _0x727b77(){await _0x58bdac,_0x16ee63[_0x2b7a6d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b7a6d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3bc6ff,_0x16ee63[_0x2b7a6d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b7a6d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3bc6ff,_0x16ee63[_0x2b7a6d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b7a6d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4f7209(_0x3ea7a6){const _0x322575=_0x380e15();_0x16ee63[_0x322575]=_0x2b7a6d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3ea7a6,_0x3ea7a6!=_0x2b7a6d([0x56,0x61,0x6c,0x69,0x64])&&_0x727b77();}function _0x380e15(){const _0x49f778=window[_0x2b7a6d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b7a6d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b7a6d([0x6e,0x6f,0x77])]())[_0x2b7a6d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b7a6d([0x2e]),'');let _0x2b2245=_0x2b7a6d([0x68]);for(let _0x339725=0x0;_0x339725<_0x49f778[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x339725+=0x2){let _0x153335=window[_0x2b7a6d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49f778[_0x2b7a6d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x339725,_0x339725+0x2));_0x153335>=_0x5a63f8[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x153335-=_0x5a63f8[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b2245+=_0x5a63f8[_0x153335];}return _0x2b2245;}function _0x4d3ae7(){const _0x3c6336=_0x53f678[_0x2b7a6d([0x73,0x70,0x6c,0x69,0x74])](_0x2b7a6d([0x2e]));if(0x3!=_0x3c6336[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x551eb5(_0x3c6336[0x1]);function _0x551eb5(_0x1a113b){const _0x250a12=_0x7085a(_0x1a113b);return _0x250a12&&_0xae7499()?_0x250a12:null;function _0xae7499(){const _0x8eb77f=_0x250a12[_0x2b7a6d([0x6a,0x74,0x69])],_0x3ab6b9=window[_0x2b7a6d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8eb77f[_0x2b7a6d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8eb77f[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x193fbd={..._0x250a12,[_0x2b7a6d([0x6a,0x74,0x69])]:_0x8eb77f[_0x2b7a6d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8eb77f[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x193fbd[_0x2b7a6d([0x76,0x63])],_0x26b0b4(_0x193fbd)==_0x3ab6b9;}}}async function _0x1490ad(){let _0xee7ad6=!0x0;try{const _0xe59db0=_0x53f678[_0x2b7a6d([0x73,0x70,0x6c,0x69,0x74])](_0x2b7a6d([0x2e])),[_0x52135b,_0x62c254,_0x4107d9]=_0xe59db0;return _0x17225b(_0x52135b),await _0x5cedfc(_0x52135b,_0x62c254,_0x4107d9),_0xee7ad6;}catch{return!0x1;}function _0x17225b(_0x526969){const _0x4e5f9e=_0x7085a(_0x526969);_0x4e5f9e&&_0x4e5f9e[_0x2b7a6d([0x61,0x6c,0x67])]==_0x2b7a6d([0x45,0x53,0x32,0x35,0x36])||(_0xee7ad6=!0x1);}async function _0x5cedfc(_0x336909,_0x23d880,_0x2c8c26){const _0x5cbeb4=window[_0x2b7a6d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b7a6d([0x66,0x72,0x6f,0x6d])](_0x1e3962(_0x2c8c26),_0x52ecd5=>_0x52ecd5[_0x2b7a6d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x49d812=new window[(_0x2b7a6d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b7a6d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x336909+_0x2b7a6d([0x2e])+_0x23d880),_0x211241=window[_0x2b7a6d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b7a6d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x211241)return;const _0x4f2d2a=await _0x211241[_0x2b7a6d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b7a6d([0x6a,0x77,0x6b]),_0x16313a,{[_0x2b7a6d([0x6e,0x61,0x6d,0x65])]:_0x2b7a6d([0x45,0x43,0x44,0x53,0x41]),[_0x2b7a6d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b7a6d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b7a6d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x211241[_0x2b7a6d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b7a6d([0x6e,0x61,0x6d,0x65])]:_0x2b7a6d([0x45,0x43,0x44,0x53,0x41]),[_0x2b7a6d([0x68,0x61,0x73,0x68])]:{[_0x2b7a6d([0x6e,0x61,0x6d,0x65])]:_0x2b7a6d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4f2d2a,_0x5cbeb4,_0x49d812)||(_0xee7ad6=!0x1);}}function _0x7085a(_0x1d669a){return _0x1d669a[_0x2b7a6d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b7a6d([0x65,0x79]))?JSON[_0x2b7a6d([0x70,0x61,0x72,0x73,0x65])](_0x1e3962(_0x1d669a)):null;}function _0x1e3962(_0x2bfe49){return window[_0x2b7a6d([0x61,0x74,0x6f,0x62])](_0x2bfe49[_0x2b7a6d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b7a6d([0x2b]))[_0x2b7a6d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b7a6d([0x2f])));}function _0x26b0b4(_0x2db3f0){let _0x5d15a5=0x1505;function _0x350043(_0x2474f0){for(let _0x50f794=0x0;_0x50f794<_0x2474f0[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50f794++){const _0x1c27de=_0x2474f0[_0x2b7a6d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x50f794);_0x5d15a5=(_0x5d15a5<<0x5)+_0x5d15a5+_0x1c27de,_0x5d15a5&=_0x5d15a5;}}function _0x1913cb(_0x33aea2){Array[_0x2b7a6d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x33aea2)?_0x33aea2[_0x2b7a6d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1913cb):_0x33aea2&&typeof _0x33aea2==_0x2b7a6d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b7a6d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x33aea2)[_0x2b7a6d([0x73,0x6f,0x72,0x74])]()[_0x2b7a6d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2d178d,_0x588f13])=>{_0x350043(_0x2d178d),_0x1913cb(_0x588f13);}):_0x350043(window[_0x2b7a6d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x33aea2));}return _0x1913cb(_0x2db3f0),_0x5d15a5>>>0x0;}function _0x4e0726(_0x5f0d9a){return _0x5f0d9a[_0x2b7a6d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b7a6d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b7a6d([0x30]));}function _0x2f9337(_0x5af57c){return _0x5af57c[_0x2b7a6d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b7a6d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b7a6d([0x6a,0x6f,0x69,0x6e])]('');}function _0x3bc6ff(){}function _0x2b7a6d(_0x535416){const _0x2e24a9=_0x122d;return _0x535416[_0x2e24a9(0x100)](_0x9cca94=>String[_0x2e24a9(0x112)](_0x9cca94))[_0x2e24a9(0xe9)]('');}_0x4f7209(await _0x3d12f4());}(this);}[_0x512f5d(0xda)](){const _0x26b553=_0x512f5d,_0x5a1d26=this[_0x26b553(0xd5)][_0x26b553(0xec)][_0x26b553(0x105)];_0x5a1d26[_0x26b553(0x110)](_0x26b553(0xd3))&&_0x5a1d26[_0x26b553(0xf3)](_0x26b553(0xd3),{'allowAttributes':[_0x26b553(0xe6)]}),_0x5a1d26[_0x26b553(0x110)](_0x26b553(0x106))&&_0x5a1d26[_0x26b553(0xf3)](_0x26b553(0x106),{'allowAttributes':[_0x26b553(0xe6)]});}[_0x512f5d(0x11b)](){const _0x1b143d=_0x512f5d,_0x2c5319=this[_0x1b143d(0xd5)];_0x2c5319[_0x1b143d(0xef)][_0x1b143d(0xd7)](_0x1b143d(0xf7))[_0x1b143d(0x10b)]({'model':_0x1b143d(0xe6),'view':_0x1b143d(0x122)}),_0x2c5319[_0x1b143d(0xef)][_0x1b143d(0xd7)](_0x1b143d(0x121))[_0x1b143d(0xfa)]({'model':{'key':_0x1b143d(0xe6),'value':_0x470a5e=>_0x470a5e[_0x1b143d(0xe2)](_0x1b143d(0x122))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x9eb520=_0x2c5319[_0x1b143d(0xf1)][_0x1b143d(0xcf)](_0x1b143d(0x11a));_0x9eb520&&this[_0x1b143d(0x103)](_0x9eb520,_0x1b143d(0x116),(_0x2478b9,[_0x25f1e9,_0x564f4d])=>{const _0x3edb72=_0x1b143d;_0x25f1e9[_0x3edb72(0xfc)](_0x3edb72(0xe6),_0x564f4d);});}[_0x512f5d(0x104)](){const _0x23a981=_0x512f5d,_0x4ed519=this[_0x23a981(0xd5)][_0x23a981(0x11d)][_0x23a981(0xcf)](_0x23a981(0xd0))||{},_0x4cab0f=this[_0x23a981(0xd5)][_0x23a981(0x11d)][_0x23a981(0xcf)](_0x23a981(0xde))||'';this[_0x23a981(0xe1)]=_0x4211fe(_0xe13190[_0x23a981(0xe8)],_0x23a981(0x11e),{..._0x4ed519,'pubkey':_0x4cab0f,'ctx-name':_0x23a981(0x11c)+this[_0x23a981(0x124)],'sourceList':'','imgOnly':_0x23a981(0xf4),'removeCopyright':_0x23a981(0xf4),'localeName':this[_0x23a981(0xd5)][_0x23a981(0xdb)][_0x23a981(0xf0)],'externalSourcesEmbedCss':_0x23a981(0xf2)}),this[_0x23a981(0xe1)][_0x23a981(0xfb)]=_0x2dfff8=>{const _0x48293c=_0x23a981;if(_0x48293c(0xff)==_0x2dfff8)return _0x48293c(0xeb);},_0xe13190[_0x23a981(0xe8)][_0x23a981(0xd8)][_0x23a981(0xea)](this[_0x23a981(0xe1)]);}[_0x512f5d(0x10c)](){const _0x32c6ec=_0x512f5d;this[_0x32c6ec(0xd6)]=_0x4211fe(_0xe13190[_0x32c6ec(0xe8)],_0x32c6ec(0x120),{'ctx-name':_0x32c6ec(0x11c)+this[_0x32c6ec(0x124)]}),_0xe13190[_0x32c6ec(0xe8)][_0x32c6ec(0xd8)][_0x32c6ec(0xea)](this[_0x32c6ec(0xd6)]);}[_0x512f5d(0xe3)](){const _0x335e52=_0x512f5d,_0x2e8077=this[_0x335e52(0xd5)][_0x335e52(0xf1)][_0x335e52(0xcf)](_0x335e52(0xd1));_0x2e8077&&this[_0x335e52(0x103)](_0x2e8077,_0x335e52(0x119),()=>{const _0xfebfe0=_0x335e52,_0x2a3cc9=this[_0xfebfe0(0xd5)][_0xfebfe0(0xec)][_0xfebfe0(0xe8)][_0xfebfe0(0x109)][_0xfebfe0(0x115)]();_0x2a3cc9&&_0x2a3cc9[_0xfebfe0(0xe2)](_0xfebfe0(0xe6))&&this[_0xfebfe0(0xd5)][_0xfebfe0(0x123)][_0xfebfe0(0xe5)][_0xfebfe0(0xf8)](_0xfebfe0(0x118),()=>{const _0x2d4511=_0xfebfe0;_0x378aad(this[_0x2d4511(0xd5)],_0x2a3cc9);});});const _0x33afab=this[_0x335e52(0xd5)][_0x335e52(0xf1)][_0x335e52(0xcf)](_0x335e52(0x10d));_0x33afab&&this[_0x335e52(0x103)](_0x33afab,_0x335e52(0x119),()=>{const _0x4de7f6=_0x335e52,_0x24ead8=this[_0x4de7f6(0xd5)][_0x4de7f6(0xec)][_0x4de7f6(0xe8)][_0x4de7f6(0x109)][_0x4de7f6(0x115)]();_0x24ead8&&_0x24ead8[_0x4de7f6(0xe2)](_0x4de7f6(0xe6))&&this[_0x4de7f6(0xd5)][_0x4de7f6(0x123)][_0x4de7f6(0xe5)][_0x4de7f6(0xf8)](_0x4de7f6(0x118),()=>{const _0x2f8a98=_0x4de7f6;_0x378aad(this[_0x2f8a98(0xd5)],_0x24ead8);});});}}