@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250223.0 → 0.0.0-nightly-next-20250224.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 _0x3505ed,Command as _0x256712}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x433976,IconGooglePhotos as _0x351c95,IconGoogleDrive as _0x519f86,IconFacebook as _0x20014a,IconDropbox as _0x423e9c,IconUploadcareLink as _0x444cc3,IconUploadcareImageUpload as _0x459b8c,IconError as et,IconUploadcareImageEdit as _0x427669}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xd45cf1,MenuBarMenuListItemButtonView as _0x1d0384,View as _0x268cf5,FocusCycler as _0x2482bb,Dialog as _0x3ae515,DialogViewPosition as _0x3a203c,SpinnerView as _0x3b12f4,IconView as at,Notification as _0x2ff9d6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x502082,DomEmitterMixin as _0x2db487,global as _0x3353e6,getAncestors as _0x45da16,ObservableMixin as _0x3a679d,createElement as _0x5e7cd8,uid as _0x52230b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x12b9e2}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x55faeb,info as _0x3a624f}from'@uploadcare/upload-client';import*as _0x2c1cd8 from'@uploadcare/file-uploader';var o=function(_0x7c2e2d){return _0x7c2e2d['Local']='local',_0x7c2e2d['URL']='url',_0x7c2e2d['Dropbox']='dropbox',_0x7c2e2d['GDrive']='gdrive',_0x7c2e2d['Facebook']='facebook',_0x7c2e2d['GPhotos']='gphotos',_0x7c2e2d['OneDrive']='onedrive',_0x7c2e2d;}({});function _(_0x446437,_0x2aafa8,_0x4efd77){const t=_0x446437['t'],_0x5e121e=_0x446437['t'];switch(_0x2aafa8){case o['Local']:return{'text':_0x5e121e('Insert'===_0x4efd77?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5e121e('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x4efd77?_0x5e121e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5e121e('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x4efd77?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x4efd77?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x4efd77?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x4efd77?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x4efd77?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2aafa8;}}class e extends _0x3505ed{['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 _0x54632a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x10b056;for(const _0x2d471d in _0x54632a){const _0x77fe8a=_0x2d471d,_0x5b5fdf=_0x54632a[_0x77fe8a];if('uploadcareLicenseKeyValid'==_0x5b5fdf||'uploadcareLicenseKeyInvalid'==_0x5b5fdf||'uploadcareLicenseKeyExpired'==_0x5b5fdf||'uploadcareLicenseKeyDomainLimit'==_0x5b5fdf||'uploadcareLicenseKeyNotAllowed'==_0x5b5fdf||'uploadcareLicenseKeyEvaluationLimit'==_0x5b5fdf||'uploadcareLicenseKeyTrialLimit'==_0x5b5fdf||'uploadcareLicenseKeyUsageLimit'==_0x5b5fdf){delete _0x54632a[_0x77fe8a],_0x10b056=_0x5b5fdf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x10b056&&_0x54632a['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x10b056&&_0x54632a['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x10b056&&_0x54632a['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x10b056&&_0x54632a['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x10b056&&_0x54632a['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x10b056&&_0x54632a['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x10b056&&_0x54632a['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x154034}=this,_0x20e966=_0x154034['commands']['get']('uploadcare');if(!_0x20e966)return;const _0x52579b=this['_normalizeConfigSourceList'](_0x154034['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x549ebf,_0x1cdd33)=>{const _0x4925f=this['_getIntegrationKey'](_0x1cdd33['type']);return _0x549ebf[_0x4925f]||(_0x549ebf[_0x4925f]=[]),_0x549ebf[_0x4925f]['push'](_0x1cdd33),_0x549ebf;},{});_0x154034['plugins']['has']('ImageInsertUI')&&_0x154034['commands']['get']('uploadcare')&&Object['entries'](_0x52579b)['forEach'](([_0x3ebd6a,_0xcf5e31])=>{_0x154034['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3ebd6a,'observable':()=>_0x20e966,'buttonViewCreator':()=>this['_createToolbarButton'](_0xcf5e31),'formViewCreator':()=>this['_createDropdownButtons'](_0xcf5e31),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xcf5e31),'override':'assetManager'!==_0x3ebd6a});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3178ae){const {locale:_0x309b63}=this['editor'];return _0x3178ae['map'](_0x248c0a=>{const _0x27778f=_(_0x309b63,_0x248c0a,'Insert');switch(_0x248c0a){case o['Local']:return{'icon':_0x459b8c,'type':o['Local'],..._0x27778f};case o['URL']:return{'icon':_0x444cc3,'type':o['URL'],..._0x27778f};case o['Dropbox']:return{'icon':_0x423e9c,'type':o['Dropbox'],..._0x27778f};case o['Facebook']:return{'icon':_0x20014a,'type':o['Facebook'],..._0x27778f};case o['GDrive']:return{'icon':_0x519f86,'type':o['GDrive'],..._0x27778f};case o['GPhotos']:return{'icon':_0x351c95,'type':o['GPhotos'],..._0x27778f};case o['OneDrive']:return{'icon':_0x433976,'type':o['OneDrive'],..._0x27778f};}});}['_getIntegrationKey'](_0x52c187){switch(_0x52c187){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3a27f4,_0x2d507e){const _0x2f5e14=this['editor'],_0x4f6b54=new _0x3a27f4(_0x2f5e14['locale']),_0x32db76=_0x2f5e14['commands']['get']('uploadcare');return _0x4f6b54['bind']('isEnabled')['to'](_0x32db76),_0x4f6b54['on']('execute',()=>{_0x32db76['execute'](_0x2d507e);}),_0x4f6b54;}['_createToolbarButton'](_0xeec6d){const {locale:_0x2ac68a}=this['editor'],_0x31b792=this['editor']['plugins']['get']('ImageInsertUI'),_0x133edd=_0xeec6d[0x0],_0x10a578=this['_createButton'](_0xd45cf1,_0x133edd['type']);return _0x10a578['icon']=_0x133edd['icon'],_0x10a578['bind']('label')['to'](_0x31b792,'isImageSelected',_0x5efbdc=>_(_0x2ac68a,_0x133edd['type'],_0x5efbdc?'Replace':'Insert')['text']),_0x10a578['tooltip']=!0x0,_0x10a578;}['_createDropdownButtons'](_0x10fd90){const {locale:_0x203ab3}=this['editor'],_0x2ffed4=this['editor']['plugins']['get']('ImageInsertUI');return _0x10fd90['map'](_0x3f53ac=>{const _0x1685f9=this['_createButton'](_0xd45cf1,_0x3f53ac['type']);return _0x1685f9['withText']=!0x0,_0x1685f9['icon']=_0x3f53ac['icon'],_0x1685f9['bind']('label')['to'](_0x2ffed4,'isImageSelected',_0x365d5d=>_(_0x203ab3,_0x3f53ac['type'],_0x365d5d?'Replace':'Insert')['text']),_0x1685f9;});}['_createMenuBarButtons'](_0x553663){return _0x553663['map'](_0x541fbe=>{const _0x555f13=this['_createButton'](_0x1d0384,_0x541fbe['type']);return _0x555f13['icon']=_0x541fbe['icon'],_0x555f13['label']=_0x541fbe['shortText'],_0x555f13;});}}class G extends _0x268cf5{['focusTracker'];['focusCycler'];constructor(_0x47d74a){super(_0x47d74a),this['focusTracker']=new _0x502082(),this['focusCycler']=new _0x2482bb({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends G{constructor(_0x3a0caa){super(_0x3a0caa),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0xe76a5c,_0x1651be){const _0x25ccfa=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x20ddb2=>_0x20ddb2<=_0x1651be)['map'](_0x208aef=>_0xe76a5c['replace'](/\/$/,'')+'/-/resize/'+_0x208aef+'x/\x20'+_0x208aef+'w');return{'imageFallbackUrl':_0xe76a5c,'imageSources':[{'srcset':_0x25ccfa['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1651be+'px)\x20100vw,\x20'+_0x1651be+'px','type':'image/webp'}]};}function F(_0x2ba078,_0x4f6fd8,_0x388279){const _0xaff4ae=_0x2ba078['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xaff4ae?parseInt(_0xaff4ae[0x1],0xa):_0x4f6fd8,'height':_0xaff4ae?parseInt(_0xaff4ae[0x2],0xa):_0x388279};}function m(_0x225476,_0x44fc40){const _0x4a7901=Object['create'](_0x2db487),_0x2fead2=_0x225476['plugins']['get']('ImageUtils'),_0x50b971=_0x225476['editing']['mapper']['toViewElement'](_0x44fc40),_0x2266fd=_0x2fead2['findViewImgElement'](_0x50b971),_0x205867=_0x225476['editing']['view']['domConverter']['viewToDom'](_0x2266fd),_0x560071=_0x44fc40['getAttribute']('width'),_0x558cf1=_0x44fc40['getAttribute']('height'),_0xd7482f='image-processing';_0x225476['editing']['view']['change'](_0x55bd06=>{_0x55bd06['addClass'](_0xd7482f,_0x50b971),_0x55bd06['setStyle']('aspect-ratio',_0x560071+'/'+_0x558cf1,_0x2266fd);}),_0x4a7901['listenTo'](_0x205867,'load',()=>{_0x4a7901['stopListening'](_0x205867,'load'),_0x225476['editing']['view']['change'](_0x1b1c9e=>{_0x1b1c9e['removeClass'](_0xd7482f,_0x50b971),_0x1b1c9e['removeStyle']('aspect-ratio',_0x2266fd);});});}function V(_0x3317d5){if(Array['isArray'](_0x3317d5)){const _0x2ec9fa=_0x3317d5['map'](V);return _0x369371=>_0x2ec9fa['some'](_0x1fecda=>_0x1fecda(_0x369371));}if('origin'==_0x3317d5){const _0x285b45=_0x3353e6['window']['location']['origin'];return _0x26eaf8=>new URL(_0x26eaf8,_0x3353e6['document']['baseURI'])['origin']==_0x285b45;}return'function'==typeof _0x3317d5?_0x3317d5:_0x3317d5 instanceof RegExp?_0x3b5ec6=>!(!_0x3b5ec6['match'](_0x3317d5)&&!_0x3b5ec6['replace'](/^https?:\/\//,'')['match'](_0x3317d5)):()=>!0x1;}function R(_0xbd3278,_0x1b6cd7){return _0x45da16(_0xbd3278['target'])['includes'](_0x1b6cd7);}class l extends/* #__PURE__ -- @preserve */
24
- _0x3a679d(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x254df7,_0x6a7bdb,_0x33c712){super(),this['_editor']=_0x254df7,this['_editing']=_0x6a7bdb,this['_dialog']=_0x254df7['plugins']['get'](_0x3ae515),this['_api']=_0x6a7bdb['ctxElement']['getAPI'](),this['_type']=_0x33c712,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:_0x3c0b65,model:_0x1b5e7a}=this['_editor'],_0x4edfb3=_0x1b5e7a['document']['selection']['getSelectedElement'](),_0x38d06f=_0x4edfb3&&(_0x4edfb3['is']('element','imageBlock')||_0x4edfb3['is']('element','imageInline'));this['_formView']=new S(_0x3c0b65),this['_dialog']['show']({'id':'uploadCare','icon':_0x459b8c,'title':_(_0x3c0b65,this['_type'],_0x38d06f?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3a203c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x45ceaf=>!R(_0x45ceaf,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x53e79d}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xaefad1=>{const _0x14854d=_0x53e79d['length'];for(const _0x3c34cd of _0x53e79d){const _0x30785a=_0x3c34cd===_0x53e79d[_0x14854d-0x1],{cdnUrl:_0x30908c,fileInfo:_0xd4761c}=_0x3c34cd;if(!_0x30908c||!_0xd4761c)continue;const {width:_0x41fcde,height:_0x1dd04a}=_0xd4761c['imageInfo'],_0xcd90ca=F(_0x30908c,_0x41fcde,_0x1dd04a),_0x1f3c66=E(_0x30908c,_0xcd90ca['width']),_0x15b2b0={'id':_0xd4761c['uuid'],'type':'image','attributes':{'imageDimension':_0xcd90ca,..._0x1f3c66}};this['_insertAsset'](_0x15b2b0,_0x30785a,_0xaefad1);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1cc6ab=>{'idle'===_0x1cc6ab['detail']['status']&&!_0x1cc6ab['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x29a391,_0x39ad54,_0x1befad){const _0x3d3e5f=this['_editor']['model']['document']['selection'],_0x1d5a1f=_0x3d3e5f['getSelectedElement'](),_0x136377=!(!_0x1d5a1f||!_0x1d5a1f['is']('element','imageInline'));_0x1befad['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x29a391,_0x136377),_0x39ad54||_0x1befad['setSelection'](_0x3d3e5f['getLastPosition']());}['_insertImage'](_0x10048a,_0x3f634c){const _0x29ab1c=this['_editor'],{imageDimension:_0x3aedf7,imageFallbackUrl:_0x4a4dfe,imageSources:_0x4f3166}=_0x10048a['attributes'];_0x29ab1c['execute']('insertImage',{'imageType':_0x3f634c?'imageInline':null,'source':{'uploadcareImageId':_0x10048a['id'],'src':_0x4a4dfe,'sources':_0x4f3166,..._0x3aedf7}});}}class n extends _0x256712{['_editing'];['_controller']=null;static get['requires'](){return[_0x3ae515,i];}constructor(_0x1887f6){super(_0x1887f6),this['_editing']=_0x1887f6['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4d2f76){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x4d2f76);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x41d67c,publicKey:_0x4cdd39,signal:_0x449919,onProgress:_0x3557a9}){return _0x55faeb(_0x41d67c,{'publicKey':_0x4cdd39,'store':'auto','signal':_0x449919,'onProgress':_0x3557a9});}static['getInfo'](_0x16d8cb,_0xb47450){return _0x3a624f(_0x16d8cb,_0xb47450);}}class p extends _0x3505ed{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x12b9e2,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1fdbea=this['editor'];if(!!!_0x1fdbea['config']['get']('uploadcare'))return;_0x1fdbea['plugins']['get'](_0x12b9e2)['createUploadAdapter']=_0x2643a8=>new x(_0x2643a8,_0x1fdbea),_0x1fdbea['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x615c7b,{imageElement:_0x4b6841,data:_0x3c1e32})=>{_0x1fdbea['model']['change'](_0x53e413=>{_0x53e413['setAttribute']('uploadcareImageId',_0x3c1e32['uploadcareImageId'],_0x4b6841);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x862ea0,_0x4ddda0){this['loader']=_0x862ea0,this['editor']=_0x4ddda0,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3720cf=this['editor']['config']['get']('uploadcare.pubkey'),_0x2e79f3=await this['loader']['file'];return C['upload']({'file':_0x2e79f3,'publicKey':_0x3720cf,'signal':this['controller']['signal'],'onProgress':_0x32bd62=>{_0x32bd62&&_0x32bd62['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x32bd62['value']);}})['then'](async _0x2840b2=>{const {imageFallbackUrl:_0x102a49,imageSources:_0x9f4ac7}=E(_0x2840b2['cdnUrl'],_0x2840b2['imageInfo']['width']);return{'uploadcareImageId':_0x2840b2['uuid'],'default':_0x102a49,'sources':_0x9f4ac7};})['catch'](()=>{const _0x139971=t('Cannot\x20upload\x20file:')+('\x20'+_0x2e79f3['name']+'.');return Promise['reject'](_0x139971);});}['abort'](){this['controller']['abort']();}}class i extends _0x3505ed{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x3ae515];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x17206f=this['editor'];_0x17206f['commands']['add']('uploadcare',new n(_0x17206f));}['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 _0x460da3=_0x3353e6['document']['querySelector']('input[uploadcare-file-input]');_0x460da3&&_0x460da3['remove']();}),async function(_0x5ec75d){const _0x251586=_0x473f17([0x61,0x33,0x42,0x4b,0x71,0x39,0x6f,0x5a,0x32,0x52,0x49,0x65,0x70,0x46,0x66,0x43,0x6c,0x4f,0x45,0x34,0x41,0x68,0x44,0x4c,0x58,0x79,0x56,0x63,0x54,0x30,0x73,0x76,0x72,0x69,0x48,0x4a,0x67,0x6b,0x4e,0x62,0x7a,0x77,0x6d,0x55,0x75,0x53,0x6a,0x4d,0x50,0x51,0x38,0x64,0x35,0x37,0x59,0x6e,0x78,0x31,0x74,0x57,0x36,0x47]),_0x193cb8=0x2592f2d4,_0x5ea2f1=0x25959284^_0x193cb8,_0x16eab5=window[_0x473f17([0x44,0x61,0x74,0x65])][_0x473f17([0x6e,0x6f,0x77])](),_0x3ba9bb=_0x5ec75d[_0x473f17([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x55e783=new window[(_0x473f17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8a5c99=>{_0x3ba9bb[_0x473f17([0x6f,0x6e,0x63,0x65])](_0x473f17([0x72,0x65,0x61,0x64,0x79]),_0x8a5c99);}),_0x3b88b8={[_0x473f17([0x6b,0x74,0x79])]:_0x473f17([0x45,0x43]),[_0x473f17([0x75,0x73,0x65])]:_0x473f17([0x73,0x69,0x67]),[_0x473f17([0x63,0x72,0x76])]:_0x473f17([0x50,0x2d,0x32,0x35,0x36]),[_0x473f17([0x78])]:_0x473f17([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]),[_0x473f17([0x79])]:_0x473f17([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]),[_0x473f17([0x61,0x6c,0x67])]:_0x473f17([0x45,0x53,0x32,0x35,0x36])},_0x40d8bb=_0x3ba9bb[_0x473f17([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x473f17([0x67,0x65,0x74])](_0x473f17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1d690f(){let _0x3ef9d3,_0x205cf4=null,_0x529712=null;try{if(_0x40d8bb==_0x473f17([0x47,0x50,0x4c]))return _0x473f17([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ef9d3=_0x31047a(),!_0x3ef9d3)return _0x473f17([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ef9d3[_0x473f17([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x529712=_0x49851e(_0x3ef9d3[_0x473f17([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ef9d3[_0x473f17([0x6a,0x74,0x69])])),await _0x5c36a3()?_0x18978b()?_0x131c87()?_0x473f17([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1825df()?(_0x3ef9d3[_0x473f17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x473f17([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x205cf4=_0x49e9a1(_0x473f17([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ef9d3[_0x473f17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x473f17([0x74,0x72,0x69,0x61,0x6c])&&(_0x205cf4=_0x49e9a1(_0x473f17([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x39752d()):_0x473f17([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x473f17([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x473f17([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x49e012){return _0x473f17([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x131c87(){const _0x51b5e5=[_0x473f17([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x473f17([0x74,0x72,0x69,0x61,0x6c])][_0x473f17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ef9d3[_0x473f17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x16eab5/0x3e8:0xe10*_0x5ea2f1;return _0x3ef9d3[_0x473f17([0x65,0x78,0x70])]<_0x51b5e5;}function _0x18978b(){const _0x25ddf5=_0x3ef9d3[_0x473f17([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x25ddf5&&(!!_0x25ddf5[_0x473f17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x473f17([0x2a]))||!!_0x25ddf5[_0x473f17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x473f17([0x55,0x50,0x4c,0x43])));}function _0x1825df(){const _0x4a81e4=_0x3ef9d3[_0x473f17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a81e4||0x0==_0x4a81e4[_0x473f17([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4ba8af}=new URL(window[_0x473f17([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4a81e4[_0x473f17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ba8af))return!0x0;const _0x45a09e=_0x4ba8af[_0x473f17([0x73,0x70,0x6c,0x69,0x74])](_0x473f17([0x2e]));return _0x4a81e4[_0x473f17([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x581da4=>_0x581da4[_0x473f17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x473f17([0x2a])))[_0x473f17([0x6d,0x61,0x70])](_0x4378f3=>_0x4378f3[_0x473f17([0x73,0x70,0x6c,0x69,0x74])](_0x473f17([0x2e])))[_0x473f17([0x73,0x6f,0x6d,0x65])](_0x50ed88=>_0x45a09e[_0x473f17([0x65,0x76,0x65,0x72,0x79])]((_0x425717,_0x22bda9)=>_0x50ed88[_0x22bda9]===_0x425717||_0x50ed88[_0x22bda9]===_0x473f17([0x2a])));}function _0x39752d(){return _0x205cf4&&_0x529712?new window[(_0x473f17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e1f7c,_0x2de51e)=>{_0x205cf4[_0x473f17([0x74,0x68,0x65,0x6e])](_0x3e1f7c,_0x2de51e),_0x529712[_0x473f17([0x74,0x68,0x65,0x6e])](_0x380dcb=>{_0x380dcb!=_0x473f17([0x56,0x61,0x6c,0x69,0x64])&&_0x3e1f7c(_0x380dcb);},_0x2de51e);}):_0x205cf4||_0x529712||_0x473f17([0x56,0x61,0x6c,0x69,0x64]);}}function _0x49851e(_0x3629b7,_0x4521f4){return new window[(_0x473f17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x98fc97=>{if(_0x1bf264())return _0x98fc97(_0x473f17([0x56,0x61,0x6c,0x69,0x64]));_0x12d4a7(),_0x3ba9bb[_0x473f17([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x473f17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x60e938=!0x1;const _0x484f4f=_0x52230b();function _0x3bce7b(_0x3912d6){return!!_0x3912d6&&(typeof _0x3912d6===_0x473f17([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3912d6===_0x473f17([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3912d6[_0x473f17([0x74,0x68,0x65,0x6e])]===_0x473f17([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3912d6[_0x473f17([0x63,0x61,0x74,0x63,0x68])]===_0x473f17([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f8a6f(_0xfa4c16){_0x4c82c2(_0xfa4c16)[_0x473f17([0x74,0x68,0x65,0x6e])](_0x53a52e=>{if(!_0x53a52e||_0x53a52e[_0x473f17([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x473f17([0x6f,0x6b]))return _0x473f17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x26f754(_0x47a306(_0x484f4f+_0x4521f4))!=_0x53a52e[_0x473f17([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x473f17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x473f17([0x56,0x61,0x6c,0x69,0x64]);})[_0x473f17([0x74,0x68,0x65,0x6e])](_0x10a330=>(_0xb0e1fa(),_0x10a330),()=>{const _0x33faba=_0x47780a();return null==_0x33faba?(_0xb0e1fa(),_0x473f17([0x56,0x61,0x6c,0x69,0x64])):_0x473f17(_0x16eab5-_0x33faba>(0x19e76d4^_0x193cb8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x473f17([0x74,0x68,0x65,0x6e])](_0x98fc97)[_0x473f17([0x63,0x61,0x74,0x63,0x68])](()=>{_0x98fc97(_0x473f17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x43fdbf=0x25a41c54^_0x193cb8;function _0xb0e1fa(){const _0x3f311a=_0x473f17([0x6c,0x6c,0x63,0x74,0x2d])+_0x26f754(_0x47a306(_0x3629b7)),_0x4fbf8e=_0x529e10(_0x26f754(window[_0x473f17([0x4d,0x61,0x74,0x68])][_0x473f17([0x63,0x65,0x69,0x6c])](_0x16eab5/_0x43fdbf)));window[_0x473f17([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x473f17([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f311a,_0x4fbf8e);}function _0x47780a(){const _0x2795dd=_0x473f17([0x6c,0x6c,0x63,0x74,0x2d])+_0x26f754(_0x47a306(_0x3629b7)),_0x358b40=window[_0x473f17([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x473f17([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2795dd);return _0x358b40?window[_0x473f17([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x529e10(_0x358b40),0x10)*_0x43fdbf:null;}function _0x4c82c2(_0x530d9b){return new window[(_0x473f17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c6199,_0x58eef6)=>{_0x530d9b[_0x473f17([0x74,0x68,0x65,0x6e])](_0x3c6199,_0x58eef6),window[_0x473f17([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x58eef6,0x25932614^_0x193cb8);});}}_0x3ba9bb[_0x473f17([0x6f,0x6e])](_0x473f17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c184b,_0x5233aa)=>{if(_0x5233aa[0x0]!=_0x3629b7)return _0x98fc97(_0x473f17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5233aa[0x1]={..._0x5233aa[0x1],[_0x473f17([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x484f4f};},{[_0x473f17([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x473f17([0x68,0x69,0x67,0x68])}),_0x3ba9bb[_0x473f17([0x6f,0x6e])](_0x473f17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3688be=>{_0x3bce7b(_0x3688be[_0x473f17([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x60e938=!0x0,_0x1f8a6f(_0x3688be[_0x473f17([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x473f17([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x473f17([0x6c,0x6f,0x77])}),_0x55e783[_0x473f17([0x74,0x68,0x65,0x6e])](()=>{_0x60e938||_0x98fc97(_0x473f17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1bf264(){return _0x3ba9bb[_0x473f17([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x473f17([0x76,0x69,0x65,0x77])][_0x473f17([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x473f17([0x61,0x75,0x74,0x6f]);}function _0x12d4a7(){_0x3ba9bb[_0x473f17([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x473f17([0x76,0x69,0x65,0x77])][_0x473f17([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x473f17([0x61,0x75,0x74,0x6f]);}}function _0x49e9a1(_0x2e4bba){const _0x4a2e34=[new window[(_0x473f17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x283116=>setTimeout(_0x283116,0x259bcc18^_0x193cb8)),_0x55e783[_0x473f17([0x74,0x68,0x65,0x6e])](()=>new window[(_0x473f17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bf1bf=>{let _0x2dcec5=0x0;_0x3ba9bb[_0x473f17([0x6d,0x6f,0x64,0x65,0x6c])][_0x473f17([0x6f,0x6e])](_0x473f17([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4bc8c0,_0x1442a1)=>{_0x1442a1[0x0][_0x473f17([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2dcec5++,_0x2dcec5==(0x2592f32c^_0x193cb8)&&(_0x3bf1bf(),_0x4bc8c0[_0x473f17([0x6f,0x66,0x66])]());});}))];return window[_0x473f17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x473f17([0x72,0x61,0x63,0x65])](_0x4a2e34)[_0x473f17([0x74,0x68,0x65,0x6e])](()=>_0x2e4bba);}async function _0x3befd7(){await _0x55e783,_0x3ba9bb[_0x473f17([0x6d,0x6f,0x64,0x65,0x6c])][_0x473f17([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x920bd1,_0x3ba9bb[_0x473f17([0x6d,0x6f,0x64,0x65,0x6c])][_0x473f17([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x920bd1,_0x3ba9bb[_0x473f17([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x473f17([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x222e2f(_0x4c00c9){const _0x198ec9=_0x2be558();_0x3ba9bb[_0x198ec9]=_0x473f17([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c00c9,_0x4c00c9!=_0x473f17([0x56,0x61,0x6c,0x69,0x64])&&_0x3befd7();}function _0x2be558(){const _0x379ebf=window[_0x473f17([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x473f17([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x473f17([0x6e,0x6f,0x77])]())[_0x473f17([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x473f17([0x2e]),'');let _0x905b9=_0x473f17([0x61]);for(let _0x17f9cf=0x0;_0x17f9cf<_0x379ebf[_0x473f17([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17f9cf+=0x2){let _0x267b3a=window[_0x473f17([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x379ebf[_0x473f17([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17f9cf,_0x17f9cf+0x2));_0x267b3a>=_0x251586[_0x473f17([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x267b3a-=_0x251586[_0x473f17([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x905b9+=_0x251586[_0x267b3a];}return _0x905b9;}function _0x31047a(){const _0x262f7b=_0x40d8bb[_0x473f17([0x73,0x70,0x6c,0x69,0x74])](_0x473f17([0x2e]));if(0x3!=_0x262f7b[_0x473f17([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3f54d8(_0x262f7b[0x1]);function _0x3f54d8(_0x4ff591){const _0x20746a=_0x8bda02(_0x4ff591);return _0x20746a&&_0x281aca()?_0x20746a:null;function _0x281aca(){const _0x5789ff=_0x20746a[_0x473f17([0x6a,0x74,0x69])],_0x5c0a02=window[_0x473f17([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5789ff[_0x473f17([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5789ff[_0x473f17([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3e188={..._0x20746a,[_0x473f17([0x6a,0x74,0x69])]:_0x5789ff[_0x473f17([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5789ff[_0x473f17([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3e188[_0x473f17([0x76,0x63])],_0x47a306(_0x3e188)==_0x5c0a02;}}}async function _0x5c36a3(){let _0x360dc6=!0x0;try{const _0x4a9956=_0x40d8bb[_0x473f17([0x73,0x70,0x6c,0x69,0x74])](_0x473f17([0x2e])),[_0x53383f,_0x50b47f,_0x112425]=_0x4a9956;return _0x4fa762(_0x53383f),await _0x574446(_0x53383f,_0x50b47f,_0x112425),_0x360dc6;}catch(_0xeb335e){return!0x1;}function _0x4fa762(_0xe6aaa6){const _0x30359e=_0x8bda02(_0xe6aaa6);_0x30359e&&_0x30359e[_0x473f17([0x61,0x6c,0x67])]==_0x473f17([0x45,0x53,0x32,0x35,0x36])||(_0x360dc6=!0x1);}async function _0x574446(_0x2282b5,_0x353a7b,_0x1913d8){const _0x2e92d3=window[_0x473f17([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x473f17([0x66,0x72,0x6f,0x6d])](_0x1bb8c5(_0x1913d8),_0x6f2a0a=>_0x6f2a0a[_0x473f17([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x174d66=new window[(_0x473f17([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x473f17([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2282b5+_0x473f17([0x2e])+_0x353a7b),_0x9fba9=window[_0x473f17([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x473f17([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x9fba9)return;const _0x1fdf36=await _0x9fba9[_0x473f17([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x473f17([0x6a,0x77,0x6b]),_0x3b88b8,{[_0x473f17([0x6e,0x61,0x6d,0x65])]:_0x473f17([0x45,0x43,0x44,0x53,0x41]),[_0x473f17([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x473f17([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x473f17([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x9fba9[_0x473f17([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x473f17([0x6e,0x61,0x6d,0x65])]:_0x473f17([0x45,0x43,0x44,0x53,0x41]),[_0x473f17([0x68,0x61,0x73,0x68])]:{[_0x473f17([0x6e,0x61,0x6d,0x65])]:_0x473f17([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1fdf36,_0x2e92d3,_0x174d66)||(_0x360dc6=!0x1);}}function _0x8bda02(_0x5774fc){return _0x5774fc[_0x473f17([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x473f17([0x65,0x79]))?JSON[_0x473f17([0x70,0x61,0x72,0x73,0x65])](_0x1bb8c5(_0x5774fc)):null;}function _0x1bb8c5(_0x2091a9){return window[_0x473f17([0x61,0x74,0x6f,0x62])](_0x2091a9[_0x473f17([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x473f17([0x2b]))[_0x473f17([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x473f17([0x2f])));}function _0x47a306(_0x9a8e9f){let _0x1a0ab6=0x1505;function _0x1bc6af(_0x29a962){for(let _0x1c938b=0x0;_0x1c938b<_0x29a962[_0x473f17([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c938b++){const _0x289774=_0x29a962[_0x473f17([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1c938b);_0x1a0ab6=(_0x1a0ab6<<0x5)+_0x1a0ab6+_0x289774,_0x1a0ab6&=_0x1a0ab6;}}function _0x1066e4(_0x501246){Array[_0x473f17([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x501246)?_0x501246[_0x473f17([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1066e4):_0x501246&&typeof _0x501246==_0x473f17([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x473f17([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x501246)[_0x473f17([0x73,0x6f,0x72,0x74])]()[_0x473f17([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x137208,_0x35e0aa])=>{_0x1bc6af(_0x137208),_0x1066e4(_0x35e0aa);}):_0x1bc6af(window[_0x473f17([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x501246));}return _0x1066e4(_0x9a8e9f),_0x1a0ab6>>>0x0;}function _0x26f754(_0x48d2e9){return _0x48d2e9[_0x473f17([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x473f17([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x473f17([0x30]));}function _0x529e10(_0x319720){return _0x319720[_0x473f17([0x73,0x70,0x6c,0x69,0x74])]('')[_0x473f17([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x473f17([0x6a,0x6f,0x69,0x6e])]('');}function _0x920bd1(){}function _0x473f17(_0x1b4f12){return _0x1b4f12['map'](_0x45f3e7=>String['fromCharCode'](_0x45f3e7))['join']('');}_0x222e2f(await _0x1d690f());}(this);}['_initSchema'](){const _0x1d0f17=this['editor']['model']['schema'];_0x1d0f17['isRegistered']('imageBlock')&&_0x1d0f17['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1d0f17['isRegistered']('imageInline')&&_0x1d0f17['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2be503=this['editor'];_0x2be503['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2be503['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2fe1f8=>_0x2fe1f8['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5babab=_0x2be503['commands']['get']('replaceImageSource');_0x5babab&&this['listenTo'](_0x5babab,'cleanupImage',(_0x264ed7,[_0x59b9c9,_0x34b916])=>{_0x59b9c9['removeAttribute']('uploadcareImageId',_0x34b916);});}['_initConfig'](){const _0xf6dade=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1259ca=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5e7cd8(_0x3353e6['document'],'uc-config',{..._0xf6dade,'pubkey':_0x1259ca,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x292de3=>{if('closeMax'==_0x292de3)return'#uc-icon-arrow-down';},_0x3353e6['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5e7cd8(_0x3353e6['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x3353e6['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xd78165=this['editor']['commands']['get']('insertImage');_0xd78165&&this['listenTo'](_0xd78165,'execute',()=>{const _0x5a7e57=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5a7e57&&_0x5a7e57['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x5a7e57);});});const _0x17fb84=this['editor']['commands']['get']('uploadcareImageReplace');_0x17fb84&&this['listenTo'](_0x17fb84,'execute',()=>{const _0xea0e0=this['editor']['model']['document']['selection']['getSelectedElement']();_0xea0e0&&_0xea0e0['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xea0e0);});});}}class u extends _0x3505ed{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ceea6){super(_0x5ceea6),_0x5ceea6['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x2c1cd8['defineComponents'](_0x2c1cd8);}}class ta extends _0x268cf5{constructor(_0x21f939){super(_0x21f939);const t=_0x21f939['t'],_0x1da62b=this['bindTemplate'],_0x161e86=new _0x3b12f4();_0x161e86['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':[_0x161e86,{'text':_0x1da62b['to']('imageUploadProgress',_0x44f051=>t('Loading\x20image...')+'\x20('+(_0x44f051||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x268cf5{constructor(_0x1a5653){super(_0x1a5653);const t=_0x1a5653['t'];this['set']('errorType',null);const _0x3e8591=new _0xd45cf1(_0x1a5653);_0x3e8591['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3e8591['withText']=!0x0,_0x3e8591['class']='ck-button-action',_0x3e8591['on']('execute',()=>{this['fire']('retry');}),_0x3e8591['bind']('isVisible')['to'](this,'errorType',_0x4c85c0=>'NotFound'!==_0x4c85c0);const _0x23678c=new at();_0x23678c['content']=et,_0x23678c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xdaf9f9=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':[_0x23678c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xdaf9f9['to']('errorType',_0x5668b0=>t('NotFound'!==_0x5668b0?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3e8591]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x268cf5{constructor(_0x5087e4,_0x198f79){super(_0x5087e4);const _0x407999=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x198f79,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x407999['to']('imageSrc')}});}}class Z extends G{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x49b90c,_0x40089f,_0x456262){super(_0x49b90c),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x49b90c),this['_errorView']=new rt(_0x49b90c),this['_editingView']=new tt(_0x49b90c,_0x456262),this['_focusableView']=new _0x268cf5(_0x49b90c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x40089f),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'],_0x238457=>{this['_addUploadcareImageEditorListeners'](_0x238457);});}),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'](_0x459000,_0x5567c6){const _0x489606='uc-cloud-image-editor',_0x2ca09b=_0x459000['querySelector'](_0x489606);if(_0x2ca09b)return _0x5567c6(_0x2ca09b);const _0x3a4477=new MutationObserver(_0x128a49=>{const _0x3ddd8f=_0x128a49['filter'](_0x48bf01=>_0x48bf01['target']===_0x459000&&_0x48bf01['addedNodes']['length']>0x0&&_0x48bf01['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x489606);_0x3ddd8f['length']&&(_0x3a4477['disconnect'](),_0x5567c6(_0x3ddd8f[0x0]['addedNodes'][0x0]));});_0x3a4477['observe'](_0x459000,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4440ef){_0x4440ef['addEventListener']('apply',_0x5ebb16=>{this['fire']('apply',{'imageSrc':_0x5ebb16['detail']['cdnUrl']});}),_0x4440ef['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class A extends/* #__PURE__ -- @preserve */
25
- _0x3a679d(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xbb5612,_0x275300,_0xca8ebd){super(),this['_editor']=_0xbb5612,this['_dialog']=_0x275300,this['_imageElement']=_0xca8ebd,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 _0x39aa9e=this['_imageElement'],_0x483c59=_0x39aa9e['getAttribute']('uploadcareImageId'),_0x295a94=_0x39aa9e['getAttribute']('src');if(_0x483c59)await this['_loadImageInfo'](_0x483c59,_0x295a94);else{if(this['_imageCache']['has'](_0x295a94)){const _0x5a0fab=this['_imageCache']['get'](_0x295a94);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5a0fab['url'],this['imageDimension']=_0x5a0fab['dimension'],this['imageId']=_0x5a0fab['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1131f5}=this['_editor'],t=_0x1131f5['t'],_0x12a5d1=new Z(_0x1131f5,this['imageStatus'],this['_attributes']);_0x12a5d1['bind']('status')['to'](this,'imageStatus'),_0x12a5d1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x12a5d1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x12a5d1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x12a5d1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x427669,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x12a5d1,'position':_0x3a203c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x12a5d1['focus']();},'onHide':()=>{_0x12a5d1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x51dbc4=>!R(_0x51dbc4,_0x12a5d1['element'])}});}['_loadImageInfo'](_0x5472cb,_0x191748){return C['getInfo'](_0x5472cb,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x469a54=>{const {width:_0x532dcb,height:_0x2ee9e0}=_0x469a54['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x191748,this['imageDimension']={'width':_0x532dcb,'height':_0x2ee9e0},this['imageId']=_0x5472cb;})['catch'](_0x160581=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x160581['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xd13b1d,_0x42999f){return this['_getImageAsFile'](_0xd13b1d)['then'](_0x1aafcd=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x42999f['signal'],'file':_0x1aafcd,'onProgress':_0x12f799=>{_0x12f799&&_0x12f799['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x12f799['value']));}}))['then'](_0x4ab6fd=>{const {width:_0x36f2fe,height:_0x501413}=_0x4ab6fd['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4ab6fd['cdnUrl'],this['imageDimension']={'width':_0x36f2fe,'height':_0x501413},this['imageId']=_0x4ab6fd['uuid'],this['imageUploadProgress']=null;const _0x556326=_0xd13b1d['getAttribute']('src');this['_imageCache']['set'](_0x556326,{'id':_0x4ab6fd['uuid'],'url':_0x4ab6fd['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x165ea4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x165ea4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x21bc17,_0x347d24){_0x21bc17['on']('apply',(_0x5976b9,_0x59ce6d)=>{this['_replaceImage'](_0x347d24,_0x59ce6d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x21bc17['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x21bc17['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2c15c9,_0x41f72a,_0x57b459){const _0x680648=this['_editor'],{width:_0x25cccc,height:_0x4fcf69}=F(_0x41f72a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xabebae,imageSources:_0x3dca50}=E(_0x41f72a,_0x25cccc);_0x680648['model']['change'](_0x5978aa=>{if('$graveyard'===_0x2c15c9['root']['rootName']){_0x680648['execute']('insertImage',{'imageType':_0x2c15c9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2c15c9['getAttributes']()),'uploadcareImageId':_0x57b459,'src':_0xabebae,'sources':_0x3dca50,'width':_0x25cccc,'height':_0x4fcf69}});const _0x582196=_0x2c15c9['getChildren']();_0x2c15c9=_0x680648['model']['document']['selection']['getSelectedElement']();for(const _0x1c246f of _0x582196)_0x5978aa['append'](_0x5978aa['cloneElement'](_0x1c246f),_0x2c15c9);}else _0x5978aa['setSelection'](_0x2c15c9,'on'),_0x680648['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2c15c9['getAttributes']()),'uploadcareImageId':_0x57b459,'src':_0xabebae,'sources':_0x3dca50,'width':_0x25cccc,'height':_0x4fcf69},_0x2c15c9);_0x5978aa['setSelection'](_0x2c15c9,'on');});}async['_getImageAsFile'](_0xb03b03){const _0x56efb7=_0x3353e6['window'],_0x36948e=_0x3353e6['document']['location']['href'],_0x7603e1=new _0x56efb7['URL'](_0xb03b03['getAttribute']('src'),_0x36948e);if('data:'===_0x7603e1['protocol']){const _0x16126c=_0x7603e1['href']['split'](','),_0x26fa55=_0x16126c[0x0]['match'](/:(.*?);/)[0x1],_0x2461c1=_0x26fa55['split']('/')[0x1],_0x17e52b=_0x56efb7['atob'](_0x16126c[_0x16126c['length']-0x1]);let _0xf0faa3=_0x17e52b['length'];const _0x2ce6e2=new _0x56efb7['Uint8Array'](_0xf0faa3);for(;_0xf0faa3--;)_0x2ce6e2[_0xf0faa3]=_0x17e52b['charCodeAt'](_0xf0faa3);return new _0x56efb7['File']([_0x2ce6e2],'image.'+_0x2461c1,{'type':_0x26fa55});}const _0x35c34d=_0x7603e1['href']['split']('/'),_0x208b3d=_0x35c34d[_0x35c34d['length']-0x1],_0x13a6ff=_0x208b3d['split']('.')[0x1];return _0x56efb7['fetch'](_0x7603e1['href'])['then'](_0x2dcc0c=>_0x2dcc0c['clone']()['blob']())['then'](_0xd5d060=>new _0x56efb7['File']([_0xd5d060],_0x208b3d,{'type':'image/'+_0x13a6ff}));}}class z extends _0x256712{['imageEditController'];static get['requires'](){return[_0x3ae515];}['_isEditable'];constructor(_0xcf549b){super(_0xcf549b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3d2074){const _0x2b7dd5=V(_0x3d2074);return _0x263338=>!(!_0x263338||!_0x263338['is']('element','imageBlock')&&!_0x263338['is']('element','imageInline'))&&(!!_0x263338['hasAttribute']('uploadcareImageId')||!!_0x263338['hasAttribute']('src')&&_0x2b7dd5(_0x263338['getAttribute']('src')));}(_0xcf549b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x9a9c3d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x9a9c3d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1c821b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1c821b&&(_0x1c821b['is']('element','imageBlock')||_0x1c821b['is']('element','imageInline'))&&(this['imageEditController']=new A(this['editor'],this['editor']['plugins']['get'](_0x3ae515),_0x1c821b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x256712{['refresh'](){const _0x1d3554=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1d3554&&(_0x1d3554['is']('element','imageBlock')||_0x1d3554['is']('element','imageInline')));}['execute'](_0x5b5ae4){const _0x28c4fc=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1d4de2=>{_0x1d4de2['setAttributes'](_0x5b5ae4,_0x28c4fc),_0x1d4de2['removeAttribute']('srcset',_0x28c4fc),_0x1d4de2['removeAttribute']('sizes',_0x28c4fc);});}}class g extends _0x3505ed{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x2ff9d6,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x23320a}=this;_0x23320a['commands']['add']('uploadcareImageEdit',new z(_0x23320a)),_0x23320a['commands']['add']('uploadcareImageReplace',new O(_0x23320a));}}class j extends _0x3505ed{['_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 _0x4c0e74=this['editor'];_0x4c0e74['ui']['componentFactory']['add']('uploadcareImageEdit',_0x55706c=>{const _0x42d8df=_0x4c0e74['commands']['get']('uploadcareImageEdit'),_0x5a1dc0=new _0xd45cf1(_0x55706c),t=_0x55706c['t'];return _0x5a1dc0['set']({'icon':_0x427669,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5a1dc0['bind']('isEnabled')['to'](_0x42d8df),_0x5a1dc0['bind']('isOn')['to'](_0x42d8df,'isActive'),this['listenTo'](_0x5a1dc0,'execute',()=>{_0x4c0e74['execute']('uploadcareImageEdit'),_0x4c0e74['editing']['view']['focus']();}),_0x5a1dc0;}),this['_initConfig']();}['_initConfig'](){const _0x5d90cb=_0x5e7cd8(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5d90cb),this['listenTo'](this['editor'],'destroy',()=>{_0x5d90cb['remove']();});}}class P extends _0x3505ed{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
23
+ import{Plugin as _0x50cf2e,Command as _0x4572c5}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x9aaadb,IconGooglePhotos as _0x7e4aae,IconGoogleDrive as _0x1fec1b,IconFacebook as _0x5a20ca,IconDropbox as _0x389166,IconUploadcareLink as _0x1b49ff,IconUploadcareImageUpload as _0x2fa7d5,IconError as et,IconUploadcareImageEdit as _0x3b8595}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xe906c,MenuBarMenuListItemButtonView as _0x5d371d,View as _0x28c73f,FocusCycler as _0x27d96c,Dialog as _0x4a24e3,DialogViewPosition as _0x15aff8,SpinnerView as _0x378d5f,IconView as at,Notification as _0x37cbd4}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x8439e5,DomEmitterMixin as _0x590b07,global as _0x142ccf,getAncestors as _0x28c87a,ObservableMixin as _0x53f200,createElement as _0x5b2d50,uid as _0x130bac}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x455d1f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x15bb8a,info as _0x2500a4}from'@uploadcare/upload-client';import*as _0x4be3ec from'@uploadcare/file-uploader';var o=function(_0x2e5187){return _0x2e5187['Local']='local',_0x2e5187['URL']='url',_0x2e5187['Dropbox']='dropbox',_0x2e5187['GDrive']='gdrive',_0x2e5187['Facebook']='facebook',_0x2e5187['GPhotos']='gphotos',_0x2e5187['OneDrive']='onedrive',_0x2e5187;}({});function _(_0x550451,_0x10b02b,_0x5bd560){const t=_0x550451['t'],_0x1b1302=_0x550451['t'];switch(_0x10b02b){case o['Local']:return{'text':_0x1b1302('Insert'===_0x5bd560?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1b1302('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x5bd560?_0x1b1302('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1b1302('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x5bd560?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x5bd560?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x5bd560?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x5bd560?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x5bd560?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x10b02b;}}class e extends _0x50cf2e{['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 _0x6fd507=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3945cc;for(const _0x251b73 in _0x6fd507){const _0x1efeb3=_0x251b73,_0x1b68ac=_0x6fd507[_0x1efeb3];if('uploadcareLicenseKeyValid'==_0x1b68ac||'uploadcareLicenseKeyInvalid'==_0x1b68ac||'uploadcareLicenseKeyExpired'==_0x1b68ac||'uploadcareLicenseKeyDomainLimit'==_0x1b68ac||'uploadcareLicenseKeyNotAllowed'==_0x1b68ac||'uploadcareLicenseKeyEvaluationLimit'==_0x1b68ac||'uploadcareLicenseKeyTrialLimit'==_0x1b68ac||'uploadcareLicenseKeyUsageLimit'==_0x1b68ac){delete _0x6fd507[_0x1efeb3],_0x3945cc=_0x1b68ac,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3945cc&&_0x6fd507['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3945cc&&_0x6fd507['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3945cc&&_0x6fd507['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3945cc&&_0x6fd507['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3945cc&&_0x6fd507['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3945cc&&_0x6fd507['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3945cc&&_0x6fd507['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2cc52c}=this,_0x3f6bc6=_0x2cc52c['commands']['get']('uploadcare');if(!_0x3f6bc6)return;const _0x1f9e47=this['_normalizeConfigSourceList'](_0x2cc52c['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x157bbc,_0x2c1171)=>{const _0x4b18fc=this['_getIntegrationKey'](_0x2c1171['type']);return _0x157bbc[_0x4b18fc]||(_0x157bbc[_0x4b18fc]=[]),_0x157bbc[_0x4b18fc]['push'](_0x2c1171),_0x157bbc;},{});_0x2cc52c['plugins']['has']('ImageInsertUI')&&_0x2cc52c['commands']['get']('uploadcare')&&Object['entries'](_0x1f9e47)['forEach'](([_0x4e01df,_0x4cde42])=>{_0x2cc52c['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4e01df,'observable':()=>_0x3f6bc6,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4cde42),'formViewCreator':()=>this['_createDropdownButtons'](_0x4cde42),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4cde42),'override':'assetManager'!==_0x4e01df});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x52bfd1){const {locale:_0x30ffec}=this['editor'];return _0x52bfd1['map'](_0x29d8c4=>{const _0x156308=_(_0x30ffec,_0x29d8c4,'Insert');switch(_0x29d8c4){case o['Local']:return{'icon':_0x2fa7d5,'type':o['Local'],..._0x156308};case o['URL']:return{'icon':_0x1b49ff,'type':o['URL'],..._0x156308};case o['Dropbox']:return{'icon':_0x389166,'type':o['Dropbox'],..._0x156308};case o['Facebook']:return{'icon':_0x5a20ca,'type':o['Facebook'],..._0x156308};case o['GDrive']:return{'icon':_0x1fec1b,'type':o['GDrive'],..._0x156308};case o['GPhotos']:return{'icon':_0x7e4aae,'type':o['GPhotos'],..._0x156308};case o['OneDrive']:return{'icon':_0x9aaadb,'type':o['OneDrive'],..._0x156308};}});}['_getIntegrationKey'](_0x489b5b){switch(_0x489b5b){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x272761,_0x447c8f){const _0x3526d1=this['editor'],_0xeecc22=new _0x272761(_0x3526d1['locale']),_0x316c06=_0x3526d1['commands']['get']('uploadcare');return _0xeecc22['bind']('isEnabled')['to'](_0x316c06),_0xeecc22['on']('execute',()=>{_0x316c06['execute'](_0x447c8f);}),_0xeecc22;}['_createToolbarButton'](_0x2cf352){const {locale:_0x53e77c}=this['editor'],_0x3b8cf2=this['editor']['plugins']['get']('ImageInsertUI'),_0x5962c7=_0x2cf352[0x0],_0x20e32f=this['_createButton'](_0xe906c,_0x5962c7['type']);return _0x20e32f['icon']=_0x5962c7['icon'],_0x20e32f['bind']('label')['to'](_0x3b8cf2,'isImageSelected',_0x5624af=>_(_0x53e77c,_0x5962c7['type'],_0x5624af?'Replace':'Insert')['text']),_0x20e32f['tooltip']=!0x0,_0x20e32f;}['_createDropdownButtons'](_0x5a492f){const {locale:_0xe53a1}=this['editor'],_0x2555bd=this['editor']['plugins']['get']('ImageInsertUI');return _0x5a492f['map'](_0x103f2d=>{const _0x1dc937=this['_createButton'](_0xe906c,_0x103f2d['type']);return _0x1dc937['withText']=!0x0,_0x1dc937['icon']=_0x103f2d['icon'],_0x1dc937['bind']('label')['to'](_0x2555bd,'isImageSelected',_0x35bbe3=>_(_0xe53a1,_0x103f2d['type'],_0x35bbe3?'Replace':'Insert')['text']),_0x1dc937;});}['_createMenuBarButtons'](_0x35f141){return _0x35f141['map'](_0x41e5ca=>{const _0x5bea9c=this['_createButton'](_0x5d371d,_0x41e5ca['type']);return _0x5bea9c['icon']=_0x41e5ca['icon'],_0x5bea9c['label']=_0x41e5ca['shortText'],_0x5bea9c;});}}class q extends _0x28c73f{['focusTracker'];['focusCycler'];constructor(_0x375b8d){super(_0x375b8d),this['focusTracker']=new _0x8439e5(),this['focusCycler']=new _0x27d96c({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x5e8dad){super(_0x5e8dad),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x4fb05c,_0x406703){const _0x24d2dd=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1be1ca=>_0x1be1ca<=_0x406703)['map'](_0x1dde77=>_0x4fb05c['replace'](/\/$/,'')+'/-/resize/'+_0x1dde77+'x/\x20'+_0x1dde77+'w');return{'imageFallbackUrl':_0x4fb05c,'imageSources':[{'srcset':_0x24d2dd['join'](',\x20'),'sizes':'(max-width:\x20'+_0x406703+'px)\x20100vw,\x20'+_0x406703+'px','type':'image/webp'}]};}function A(_0xd9558b,_0xfbfa6c,_0x328fbc){const _0x4a6236=_0xd9558b['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4a6236?parseInt(_0x4a6236[0x1],0xa):_0xfbfa6c,'height':_0x4a6236?parseInt(_0x4a6236[0x2],0xa):_0x328fbc};}function m(_0x1b3d7d,_0x4b12ca){const _0x27acdd=Object['create'](_0x590b07),_0xd8b0d5=_0x1b3d7d['plugins']['get']('ImageUtils'),_0x37f037=_0x1b3d7d['editing']['mapper']['toViewElement'](_0x4b12ca),_0x5398f9=_0xd8b0d5['findViewImgElement'](_0x37f037),_0x1fd987=_0x1b3d7d['editing']['view']['domConverter']['viewToDom'](_0x5398f9),_0x1076a4=_0x4b12ca['getAttribute']('width'),_0x4b3a12=_0x4b12ca['getAttribute']('height'),_0x272ebc='image-processing';_0x1b3d7d['editing']['view']['change'](_0x2e5f98=>{_0x2e5f98['addClass'](_0x272ebc,_0x37f037),_0x2e5f98['setStyle']('aspect-ratio',_0x1076a4+'/'+_0x4b3a12,_0x5398f9);}),_0x27acdd['listenTo'](_0x1fd987,'load',()=>{_0x27acdd['stopListening'](_0x1fd987,'load'),_0x1b3d7d['editing']['view']['change'](_0x58d294=>{_0x58d294['removeClass'](_0x272ebc,_0x37f037),_0x58d294['removeStyle']('aspect-ratio',_0x5398f9);});});}function R(_0x42514a){if(Array['isArray'](_0x42514a)){const _0x1d4a01=_0x42514a['map'](R);return _0x20b005=>_0x1d4a01['some'](_0x3244b5=>_0x3244b5(_0x20b005));}if('origin'==_0x42514a){const _0x2ab78a=_0x142ccf['window']['location']['origin'];return _0x69de71=>new URL(_0x69de71,_0x142ccf['document']['baseURI'])['origin']==_0x2ab78a;}return'function'==typeof _0x42514a?_0x42514a:_0x42514a instanceof RegExp?_0x1257f2=>!(!_0x1257f2['match'](_0x42514a)&&!_0x1257f2['replace'](/^https?:\/\//,'')['match'](_0x42514a)):()=>!0x1;}function F(_0x5af80a,_0x412491){return _0x28c87a(_0x5af80a['target'])['includes'](_0x412491);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x53f200(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2140c1,_0x3d1c3b,_0x11e3dc){super(),this['_editor']=_0x2140c1,this['_editing']=_0x3d1c3b,this['_dialog']=_0x2140c1['plugins']['get'](_0x4a24e3),this['_api']=_0x3d1c3b['ctxElement']['getAPI'](),this['_type']=_0x11e3dc,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:_0x388cdd,model:_0xcc6e22}=this['_editor'],_0x485a24=_0xcc6e22['document']['selection']['getSelectedElement'](),_0x275154=_0x485a24&&(_0x485a24['is']('element','imageBlock')||_0x485a24['is']('element','imageInline'));this['_formView']=new S(_0x388cdd),this['_dialog']['show']({'id':'uploadCare','icon':_0x2fa7d5,'title':_(_0x388cdd,this['_type'],_0x275154?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x15aff8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x10a7a8=>!F(_0x10a7a8,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x306cdf}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x20d837=>{const _0x169f6c=_0x306cdf['length'];for(const _0x5dcbd2 of _0x306cdf){const _0x51fea5=_0x5dcbd2===_0x306cdf[_0x169f6c-0x1],{cdnUrl:_0x556298,fileInfo:_0x350e20}=_0x5dcbd2;if(!_0x556298||!_0x350e20)continue;const {width:_0x2fe09f,height:_0x12e433}=_0x350e20['imageInfo'],_0x3d7129=A(_0x556298,_0x2fe09f,_0x12e433),_0x4be2fb=E(_0x556298,_0x3d7129['width']),_0x544703={'id':_0x350e20['uuid'],'type':'image','attributes':{'imageDimension':_0x3d7129,..._0x4be2fb}};this['_insertAsset'](_0x544703,_0x51fea5,_0x20d837);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x26ef39=>{'idle'===_0x26ef39['detail']['status']&&!_0x26ef39['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4ff345,_0x18844d,_0x4a37aa){const _0x1f180a=this['_editor']['model']['document']['selection'],_0x4c2cd0=_0x1f180a['getSelectedElement'](),_0xd85ba6=!(!_0x4c2cd0||!_0x4c2cd0['is']('element','imageInline'));_0x4a37aa['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4ff345,_0xd85ba6),_0x18844d||_0x4a37aa['setSelection'](_0x1f180a['getLastPosition']());}['_insertImage'](_0xfae30a,_0x3cecaa){const _0x3fe5f0=this['_editor'],{imageDimension:_0x29b9f1,imageFallbackUrl:_0x2f1390,imageSources:_0x28c593}=_0xfae30a['attributes'];_0x3fe5f0['execute']('insertImage',{'imageType':_0x3cecaa?'imageInline':null,'source':{'uploadcareImageId':_0xfae30a['id'],'src':_0x2f1390,'sources':_0x28c593,..._0x29b9f1}});}}class n extends _0x4572c5{['_editing'];['_controller']=null;static get['requires'](){return[_0x4a24e3,i];}constructor(_0x59ea6b){super(_0x59ea6b),this['_editing']=_0x59ea6b['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4ff326){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x4ff326);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x55fff1,publicKey:_0x891255,signal:_0x2701d0,onProgress:_0x540333}){return _0x15bb8a(_0x55fff1,{'publicKey':_0x891255,'store':'auto','signal':_0x2701d0,'onProgress':_0x540333});}static['getInfo'](_0x35018c,_0x4439e2){return _0x2500a4(_0x35018c,_0x4439e2);}}class p extends _0x50cf2e{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x455d1f,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2a9ec2=this['editor'];if(!!!_0x2a9ec2['config']['get']('uploadcare'))return;_0x2a9ec2['plugins']['get'](_0x455d1f)['createUploadAdapter']=_0x340a48=>new x(_0x340a48,_0x2a9ec2),_0x2a9ec2['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x27a2c3,{imageElement:_0x2744ed,data:_0x231fea})=>{_0x2a9ec2['model']['change'](_0x5df544=>{_0x5df544['setAttribute']('uploadcareImageId',_0x231fea['uploadcareImageId'],_0x2744ed);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x592a98,_0x4dcd6e){this['loader']=_0x592a98,this['editor']=_0x4dcd6e,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x9e1ee8=this['editor']['config']['get']('uploadcare.pubkey'),_0x44cde9=await this['loader']['file'];return C['upload']({'file':_0x44cde9,'publicKey':_0x9e1ee8,'signal':this['controller']['signal'],'onProgress':_0x1cc216=>{_0x1cc216&&_0x1cc216['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1cc216['value']);}})['then'](async _0x1e7101=>{const {imageFallbackUrl:_0x5ab58a,imageSources:_0x5517af}=E(_0x1e7101['cdnUrl'],_0x1e7101['imageInfo']['width']);return{'uploadcareImageId':_0x1e7101['uuid'],'default':_0x5ab58a,'sources':_0x5517af};})['catch'](()=>{const _0x3b5c3b=t('Cannot\x20upload\x20file:')+('\x20'+_0x44cde9['name']+'.');return Promise['reject'](_0x3b5c3b);});}['abort'](){this['controller']['abort']();}}class i extends _0x50cf2e{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x4a24e3];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0xa6e4b5=this['editor'];_0xa6e4b5['commands']['add']('uploadcare',new n(_0xa6e4b5));}['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 _0x2c6da6=_0x142ccf['document']['querySelector']('input[uploadcare-file-input]');_0x2c6da6&&_0x2c6da6['remove']();}),async function(_0x5bdff0){const _0x205d6b=_0x5b7fbf([0x34,0x4f,0x33,0x6a,0x65,0x47,0x4a,0x4c,0x61,0x56,0x4d,0x52,0x57,0x6b,0x6c,0x39,0x35,0x48,0x6d,0x4b,0x37,0x59,0x70,0x6f,0x63,0x78,0x49,0x30,0x54,0x58,0x32,0x73,0x68,0x31,0x44,0x41,0x4e,0x43,0x76,0x66,0x55,0x53,0x50,0x51,0x46,0x36,0x75,0x69,0x7a,0x79,0x6e,0x77,0x67,0x42,0x71,0x62,0x45,0x38,0x5a,0x64,0x74,0x72]),_0x2c24a5=0x7a518d21,_0x5a954c=0x7a56ed49^_0x2c24a5,_0x4d726e=window[_0x5b7fbf([0x44,0x61,0x74,0x65])][_0x5b7fbf([0x6e,0x6f,0x77])](),_0xa06bbd=_0x5bdff0[_0x5b7fbf([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x598f06=new window[(_0x5b7fbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5862bf=>{_0xa06bbd[_0x5b7fbf([0x6f,0x6e,0x63,0x65])](_0x5b7fbf([0x72,0x65,0x61,0x64,0x79]),_0x5862bf);}),_0x3c3066={[_0x5b7fbf([0x6b,0x74,0x79])]:_0x5b7fbf([0x45,0x43]),[_0x5b7fbf([0x75,0x73,0x65])]:_0x5b7fbf([0x73,0x69,0x67]),[_0x5b7fbf([0x63,0x72,0x76])]:_0x5b7fbf([0x50,0x2d,0x32,0x35,0x36]),[_0x5b7fbf([0x78])]:_0x5b7fbf([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]),[_0x5b7fbf([0x79])]:_0x5b7fbf([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]),[_0x5b7fbf([0x61,0x6c,0x67])]:_0x5b7fbf([0x45,0x53,0x32,0x35,0x36])},_0x1a2309=_0xa06bbd[_0x5b7fbf([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5b7fbf([0x67,0x65,0x74])](_0x5b7fbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2af6bf(){let _0x4e70b9,_0x4a02eb=null,_0x12768f=null;try{if(_0x1a2309==_0x5b7fbf([0x47,0x50,0x4c]))return _0x5b7fbf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4e70b9=_0x55d6c1(),!_0x4e70b9)return _0x5b7fbf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4e70b9[_0x5b7fbf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x12768f=_0x191d22(_0x4e70b9[_0x5b7fbf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4e70b9[_0x5b7fbf([0x6a,0x74,0x69])])),await _0x23fe53()?_0x5e9ce0()?_0x5d449b()?_0x5b7fbf([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x52011c()?(_0x4e70b9[_0x5b7fbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b7fbf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4a02eb=_0x5c9312(_0x5b7fbf([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4e70b9[_0x5b7fbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b7fbf([0x74,0x72,0x69,0x61,0x6c])&&(_0x4a02eb=_0x5c9312(_0x5b7fbf([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x54b70f()):_0x5b7fbf([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5b7fbf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5b7fbf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xd3d713){return _0x5b7fbf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d449b(){const _0x5f148b=[_0x5b7fbf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5b7fbf([0x74,0x72,0x69,0x61,0x6c])][_0x5b7fbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e70b9[_0x5b7fbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4d726e/0x3e8:0xe10*_0x5a954c;return _0x4e70b9[_0x5b7fbf([0x65,0x78,0x70])]<_0x5f148b;}function _0x5e9ce0(){const _0xc57eb6=_0x4e70b9[_0x5b7fbf([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xc57eb6&&(!!_0xc57eb6[_0x5b7fbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b7fbf([0x2a]))||!!_0xc57eb6[_0x5b7fbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b7fbf([0x55,0x50,0x4c,0x43])));}function _0x52011c(){const _0x3e17a8=_0x4e70b9[_0x5b7fbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3e17a8||0x0==_0x3e17a8[_0x5b7fbf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x160fd6}=new URL(window[_0x5b7fbf([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3e17a8[_0x5b7fbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x160fd6))return!0x0;const _0x2d2aed=_0x160fd6[_0x5b7fbf([0x73,0x70,0x6c,0x69,0x74])](_0x5b7fbf([0x2e]));return _0x3e17a8[_0x5b7fbf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39cde5=>_0x39cde5[_0x5b7fbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b7fbf([0x2a])))[_0x5b7fbf([0x6d,0x61,0x70])](_0x31b524=>_0x31b524[_0x5b7fbf([0x73,0x70,0x6c,0x69,0x74])](_0x5b7fbf([0x2e])))[_0x5b7fbf([0x73,0x6f,0x6d,0x65])](_0x57eb17=>_0x2d2aed[_0x5b7fbf([0x65,0x76,0x65,0x72,0x79])]((_0x2a9fe1,_0x27352f)=>_0x57eb17[_0x27352f]===_0x2a9fe1||_0x57eb17[_0x27352f]===_0x5b7fbf([0x2a])));}function _0x54b70f(){return _0x4a02eb&&_0x12768f?new window[(_0x5b7fbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b9c71,_0x301345)=>{_0x4a02eb[_0x5b7fbf([0x74,0x68,0x65,0x6e])](_0x5b9c71,_0x301345),_0x12768f[_0x5b7fbf([0x74,0x68,0x65,0x6e])](_0x1031b0=>{_0x1031b0!=_0x5b7fbf([0x56,0x61,0x6c,0x69,0x64])&&_0x5b9c71(_0x1031b0);},_0x301345);}):_0x4a02eb||_0x12768f||_0x5b7fbf([0x56,0x61,0x6c,0x69,0x64]);}}function _0x191d22(_0x4c774d,_0x5f3220){return new window[(_0x5b7fbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f52a7=>{if(_0x2ad99e())return _0x2f52a7(_0x5b7fbf([0x56,0x61,0x6c,0x69,0x64]));_0x57f639(),_0xa06bbd[_0x5b7fbf([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5b7fbf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5babd1=!0x1;const _0x101e32=_0x130bac();function _0x173c12(_0x300b84){return!!_0x300b84&&(typeof _0x300b84===_0x5b7fbf([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x300b84===_0x5b7fbf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x300b84[_0x5b7fbf([0x74,0x68,0x65,0x6e])]===_0x5b7fbf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x300b84[_0x5b7fbf([0x63,0x61,0x74,0x63,0x68])]===_0x5b7fbf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5ed99d(_0x12042d){_0x847894(_0x12042d)[_0x5b7fbf([0x74,0x68,0x65,0x6e])](_0x588be6=>{if(!_0x588be6||_0x588be6[_0x5b7fbf([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5b7fbf([0x6f,0x6b]))return _0x5b7fbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x285aad(_0x104aaa(_0x101e32+_0x5f3220))!=_0x588be6[_0x5b7fbf([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5b7fbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5b7fbf([0x56,0x61,0x6c,0x69,0x64]);})[_0x5b7fbf([0x74,0x68,0x65,0x6e])](_0x578473=>(_0x1cd7f3(),_0x578473),()=>{const _0x503c71=_0x33fc10();return null==_0x503c71?(_0x1cd7f3(),_0x5b7fbf([0x56,0x61,0x6c,0x69,0x64])):_0x5b7fbf(_0x4d726e-_0x503c71>(0x5e5d0921^_0x2c24a5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5b7fbf([0x74,0x68,0x65,0x6e])](_0x2f52a7)[_0x5b7fbf([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2f52a7(_0x5b7fbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5db847=0x7a6763a1^_0x2c24a5;function _0x1cd7f3(){const _0x3bd147=_0x5b7fbf([0x6c,0x6c,0x63,0x74,0x2d])+_0x285aad(_0x104aaa(_0x4c774d)),_0x2a4c3f=_0x128f07(_0x285aad(window[_0x5b7fbf([0x4d,0x61,0x74,0x68])][_0x5b7fbf([0x63,0x65,0x69,0x6c])](_0x4d726e/_0x5db847)));window[_0x5b7fbf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b7fbf([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3bd147,_0x2a4c3f);}function _0x33fc10(){const _0x3cd40b=_0x5b7fbf([0x6c,0x6c,0x63,0x74,0x2d])+_0x285aad(_0x104aaa(_0x4c774d)),_0x4f4da4=window[_0x5b7fbf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b7fbf([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3cd40b);return _0x4f4da4?window[_0x5b7fbf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x128f07(_0x4f4da4),0x10)*_0x5db847:null;}function _0x847894(_0x4fa9a9){return new window[(_0x5b7fbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x61115,_0x114437)=>{_0x4fa9a9[_0x5b7fbf([0x74,0x68,0x65,0x6e])](_0x61115,_0x114437),window[_0x5b7fbf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x114437,0x7a5059e1^_0x2c24a5);});}}_0xa06bbd[_0x5b7fbf([0x6f,0x6e])](_0x5b7fbf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x14c0d0,_0x52c30f)=>{if(_0x52c30f[0x0]!=_0x4c774d)return _0x2f52a7(_0x5b7fbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x52c30f[0x1]={..._0x52c30f[0x1],[_0x5b7fbf([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x101e32};},{[_0x5b7fbf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b7fbf([0x68,0x69,0x67,0x68])}),_0xa06bbd[_0x5b7fbf([0x6f,0x6e])](_0x5b7fbf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2c168f=>{_0x173c12(_0x2c168f[_0x5b7fbf([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5babd1=!0x0,_0x5ed99d(_0x2c168f[_0x5b7fbf([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5b7fbf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b7fbf([0x6c,0x6f,0x77])}),_0x598f06[_0x5b7fbf([0x74,0x68,0x65,0x6e])](()=>{_0x5babd1||_0x2f52a7(_0x5b7fbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2ad99e(){return _0xa06bbd[_0x5b7fbf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b7fbf([0x76,0x69,0x65,0x77])][_0x5b7fbf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5b7fbf([0x61,0x75,0x74,0x6f]);}function _0x57f639(){_0xa06bbd[_0x5b7fbf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b7fbf([0x76,0x69,0x65,0x77])][_0x5b7fbf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5b7fbf([0x61,0x75,0x74,0x6f]);}}function _0x5c9312(_0x10d3c5){const _0x47a450=[new window[(_0x5b7fbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25f67b=>setTimeout(_0x25f67b,0x7a58b3ed^_0x2c24a5)),_0x598f06[_0x5b7fbf([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5b7fbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1025d8=>{let _0x465151=0x0;_0xa06bbd[_0x5b7fbf([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b7fbf([0x6f,0x6e])](_0x5b7fbf([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x568945,_0x6c30f7)=>{_0x6c30f7[0x0][_0x5b7fbf([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x465151++,_0x465151==(0x7a518cd9^_0x2c24a5)&&(_0x1025d8(),_0x568945[_0x5b7fbf([0x6f,0x66,0x66])]());});}))];return window[_0x5b7fbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5b7fbf([0x72,0x61,0x63,0x65])](_0x47a450)[_0x5b7fbf([0x74,0x68,0x65,0x6e])](()=>_0x10d3c5);}async function _0x206c59(){await _0x598f06,_0xa06bbd[_0x5b7fbf([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b7fbf([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4f9d46,_0xa06bbd[_0x5b7fbf([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b7fbf([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4f9d46,_0xa06bbd[_0x5b7fbf([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5b7fbf([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x362605(_0x4acb2d){const _0x28c45d=_0xd867d0();_0xa06bbd[_0x28c45d]=_0x5b7fbf([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4acb2d,_0x4acb2d!=_0x5b7fbf([0x56,0x61,0x6c,0x69,0x64])&&_0x206c59();}function _0xd867d0(){const _0x18e7d0=window[_0x5b7fbf([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5b7fbf([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5b7fbf([0x6e,0x6f,0x77])]())[_0x5b7fbf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5b7fbf([0x2e]),'');let _0x3dd952=_0x5b7fbf([0x4f]);for(let _0x1fc33f=0x0;_0x1fc33f<_0x18e7d0[_0x5b7fbf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1fc33f+=0x2){let _0xb493c3=window[_0x5b7fbf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18e7d0[_0x5b7fbf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fc33f,_0x1fc33f+0x2));_0xb493c3>=_0x205d6b[_0x5b7fbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb493c3-=_0x205d6b[_0x5b7fbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3dd952+=_0x205d6b[_0xb493c3];}return _0x3dd952;}function _0x55d6c1(){const _0x31c0f6=_0x1a2309[_0x5b7fbf([0x73,0x70,0x6c,0x69,0x74])](_0x5b7fbf([0x2e]));if(0x3!=_0x31c0f6[_0x5b7fbf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3624cf(_0x31c0f6[0x1]);function _0x3624cf(_0x4e51da){const _0x188281=_0x5507be(_0x4e51da);return _0x188281&&_0xa8101e()?_0x188281:null;function _0xa8101e(){const _0x1f11d8=_0x188281[_0x5b7fbf([0x6a,0x74,0x69])],_0x4bef30=window[_0x5b7fbf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f11d8[_0x5b7fbf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f11d8[_0x5b7fbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x483f35={..._0x188281,[_0x5b7fbf([0x6a,0x74,0x69])]:_0x1f11d8[_0x5b7fbf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1f11d8[_0x5b7fbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x483f35[_0x5b7fbf([0x76,0x63])],_0x104aaa(_0x483f35)==_0x4bef30;}}}async function _0x23fe53(){let _0x15460c=!0x0;try{const _0x26e5c6=_0x1a2309[_0x5b7fbf([0x73,0x70,0x6c,0x69,0x74])](_0x5b7fbf([0x2e])),[_0x320bd4,_0x4b0689,_0x34793c]=_0x26e5c6;return _0x294b53(_0x320bd4),await _0xc5d55(_0x320bd4,_0x4b0689,_0x34793c),_0x15460c;}catch(_0x45baae){return!0x1;}function _0x294b53(_0x3f8e92){const _0x3bf0ab=_0x5507be(_0x3f8e92);_0x3bf0ab&&_0x3bf0ab[_0x5b7fbf([0x61,0x6c,0x67])]==_0x5b7fbf([0x45,0x53,0x32,0x35,0x36])||(_0x15460c=!0x1);}async function _0xc5d55(_0x2e41b1,_0x2e1036,_0x39a4e6){const _0x44f091=window[_0x5b7fbf([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5b7fbf([0x66,0x72,0x6f,0x6d])](_0x8a3ba9(_0x39a4e6),_0x2ab78b=>_0x2ab78b[_0x5b7fbf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x163d96=new window[(_0x5b7fbf([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5b7fbf([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2e41b1+_0x5b7fbf([0x2e])+_0x2e1036),_0x1a9c85=window[_0x5b7fbf([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5b7fbf([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1a9c85)return;const _0x5b1537=await _0x1a9c85[_0x5b7fbf([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5b7fbf([0x6a,0x77,0x6b]),_0x3c3066,{[_0x5b7fbf([0x6e,0x61,0x6d,0x65])]:_0x5b7fbf([0x45,0x43,0x44,0x53,0x41]),[_0x5b7fbf([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5b7fbf([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5b7fbf([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1a9c85[_0x5b7fbf([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5b7fbf([0x6e,0x61,0x6d,0x65])]:_0x5b7fbf([0x45,0x43,0x44,0x53,0x41]),[_0x5b7fbf([0x68,0x61,0x73,0x68])]:{[_0x5b7fbf([0x6e,0x61,0x6d,0x65])]:_0x5b7fbf([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5b1537,_0x44f091,_0x163d96)||(_0x15460c=!0x1);}}function _0x5507be(_0x16b1f2){return _0x16b1f2[_0x5b7fbf([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5b7fbf([0x65,0x79]))?JSON[_0x5b7fbf([0x70,0x61,0x72,0x73,0x65])](_0x8a3ba9(_0x16b1f2)):null;}function _0x8a3ba9(_0x342373){return window[_0x5b7fbf([0x61,0x74,0x6f,0x62])](_0x342373[_0x5b7fbf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5b7fbf([0x2b]))[_0x5b7fbf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5b7fbf([0x2f])));}function _0x104aaa(_0x28fe71){let _0x19459c=0x1505;function _0x369c42(_0x5efbd9){for(let _0x3074ed=0x0;_0x3074ed<_0x5efbd9[_0x5b7fbf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3074ed++){const _0x34117a=_0x5efbd9[_0x5b7fbf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3074ed);_0x19459c=(_0x19459c<<0x5)+_0x19459c+_0x34117a,_0x19459c&=_0x19459c;}}function _0x35d927(_0x58468c){Array[_0x5b7fbf([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x58468c)?_0x58468c[_0x5b7fbf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x35d927):_0x58468c&&typeof _0x58468c==_0x5b7fbf([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5b7fbf([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x58468c)[_0x5b7fbf([0x73,0x6f,0x72,0x74])]()[_0x5b7fbf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1dd633,_0x2cff95])=>{_0x369c42(_0x1dd633),_0x35d927(_0x2cff95);}):_0x369c42(window[_0x5b7fbf([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x58468c));}return _0x35d927(_0x28fe71),_0x19459c>>>0x0;}function _0x285aad(_0x4280e8){return _0x4280e8[_0x5b7fbf([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5b7fbf([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5b7fbf([0x30]));}function _0x128f07(_0x199b59){return _0x199b59[_0x5b7fbf([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5b7fbf([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5b7fbf([0x6a,0x6f,0x69,0x6e])]('');}function _0x4f9d46(){}function _0x5b7fbf(_0x2166a2){return _0x2166a2['map'](_0x32dc09=>String['fromCharCode'](_0x32dc09))['join']('');}_0x362605(await _0x2af6bf());}(this);}['_initSchema'](){const _0x95c2c3=this['editor']['model']['schema'];_0x95c2c3['isRegistered']('imageBlock')&&_0x95c2c3['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x95c2c3['isRegistered']('imageInline')&&_0x95c2c3['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5472b8=this['editor'];_0x5472b8['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5472b8['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x51f968=>_0x51f968['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2d6cbf=_0x5472b8['commands']['get']('replaceImageSource');_0x2d6cbf&&this['listenTo'](_0x2d6cbf,'cleanupImage',(_0x66036f,[_0x47cf63,_0x30691a])=>{_0x47cf63['removeAttribute']('uploadcareImageId',_0x30691a);});}['_initConfig'](){const _0x169877=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1e0fad=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5b2d50(_0x142ccf['document'],'uc-config',{..._0x169877,'pubkey':_0x1e0fad,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x5ce265=>{if('closeMax'==_0x5ce265)return'#uc-icon-arrow-down';},_0x142ccf['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5b2d50(_0x142ccf['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x142ccf['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1f4518=this['editor']['commands']['get']('insertImage');_0x1f4518&&this['listenTo'](_0x1f4518,'execute',()=>{const _0xb90d59=this['editor']['model']['document']['selection']['getSelectedElement']();_0xb90d59&&_0xb90d59['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xb90d59);});});const _0x3d943f=this['editor']['commands']['get']('uploadcareImageReplace');_0x3d943f&&this['listenTo'](_0x3d943f,'execute',()=>{const _0x131723=this['editor']['model']['document']['selection']['getSelectedElement']();_0x131723&&_0x131723['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x131723);});});}}class u extends _0x50cf2e{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34bee0){super(_0x34bee0),_0x34bee0['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x4be3ec['defineComponents'](_0x4be3ec);}}class ta extends _0x28c73f{constructor(_0x5a3bd0){super(_0x5a3bd0);const t=_0x5a3bd0['t'],_0x316f64=this['bindTemplate'],_0x170b3b=new _0x378d5f();_0x170b3b['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':[_0x170b3b,{'text':_0x316f64['to']('imageUploadProgress',_0x8c5fe8=>t('Loading\x20image...')+'\x20('+(_0x8c5fe8||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x28c73f{constructor(_0x13598d){super(_0x13598d);const t=_0x13598d['t'];this['set']('errorType',null);const _0x27dbdb=new _0xe906c(_0x13598d);_0x27dbdb['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x27dbdb['withText']=!0x0,_0x27dbdb['class']='ck-button-action',_0x27dbdb['on']('execute',()=>{this['fire']('retry');}),_0x27dbdb['bind']('isVisible')['to'](this,'errorType',_0x513ebb=>'NotFound'!==_0x513ebb);const _0x53b0ff=new at();_0x53b0ff['content']=et,_0x53b0ff['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5addc2=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':[_0x53b0ff,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5addc2['to']('errorType',_0x5ed680=>t('NotFound'!==_0x5ed680?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x27dbdb]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x28c73f{constructor(_0xba4297,_0x1c3128){super(_0xba4297);const _0x3f3699=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1c3128,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3f3699['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x13450c,_0x2fd902,_0x2af5cd){super(_0x13450c),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x13450c),this['_errorView']=new rt(_0x13450c),this['_editingView']=new tt(_0x13450c,_0x2af5cd),this['_focusableView']=new _0x28c73f(_0x13450c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2fd902),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'],_0x156c18=>{this['_addUploadcareImageEditorListeners'](_0x156c18);});}),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'](_0x3750cb,_0x2b3a8f){const _0xea08e2='uc-cloud-image-editor',_0x58446e=_0x3750cb['querySelector'](_0xea08e2);if(_0x58446e)return _0x2b3a8f(_0x58446e);const _0x20326e=new MutationObserver(_0x188351=>{const _0x59703e=_0x188351['filter'](_0x13874b=>_0x13874b['target']===_0x3750cb&&_0x13874b['addedNodes']['length']>0x0&&_0x13874b['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xea08e2);_0x59703e['length']&&(_0x20326e['disconnect'](),_0x2b3a8f(_0x59703e[0x0]['addedNodes'][0x0]));});_0x20326e['observe'](_0x3750cb,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x26ad34){_0x26ad34['addEventListener']('apply',_0x2731de=>{this['fire']('apply',{'imageSrc':_0x2731de['detail']['cdnUrl']});}),_0x26ad34['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class O extends/* #__PURE__ -- @preserve */
25
+ _0x53f200(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xdacacd,_0xb90e21,_0x3102df){super(),this['_editor']=_0xdacacd,this['_dialog']=_0xb90e21,this['_imageElement']=_0x3102df,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 _0x2cb9e2=this['_imageElement'],_0x19e049=_0x2cb9e2['getAttribute']('uploadcareImageId'),_0x34dea0=_0x2cb9e2['getAttribute']('src');if(_0x19e049)await this['_loadImageInfo'](_0x19e049,_0x34dea0);else{if(this['_imageCache']['has'](_0x34dea0)){const _0x5d75c9=this['_imageCache']['get'](_0x34dea0);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5d75c9['url'],this['imageDimension']=_0x5d75c9['dimension'],this['imageId']=_0x5d75c9['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x11e98b}=this['_editor'],t=_0x11e98b['t'],_0x27954e=new Z(_0x11e98b,this['imageStatus'],this['_attributes']);_0x27954e['bind']('status')['to'](this,'imageStatus'),_0x27954e['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x27954e['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x27954e['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x27954e,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3b8595,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x27954e,'position':_0x15aff8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x27954e['focus']();},'onHide':()=>{_0x27954e['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2257e4=>!F(_0x2257e4,_0x27954e['element'])}});}['_loadImageInfo'](_0x1674ee,_0x346ba8){return C['getInfo'](_0x1674ee,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4dbc1e=>{const {width:_0x12b4ed,height:_0x46ea8f}=_0x4dbc1e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x346ba8,this['imageDimension']={'width':_0x12b4ed,'height':_0x46ea8f},this['imageId']=_0x1674ee;})['catch'](_0x72feba=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x72feba['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x28f957,_0x3c59be){return this['_getImageAsFile'](_0x28f957)['then'](_0x2a1545=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3c59be['signal'],'file':_0x2a1545,'onProgress':_0x3311c5=>{_0x3311c5&&_0x3311c5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3311c5['value']));}}))['then'](_0x3694ec=>{const {width:_0xd611d7,height:_0x378ea1}=_0x3694ec['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3694ec['cdnUrl'],this['imageDimension']={'width':_0xd611d7,'height':_0x378ea1},this['imageId']=_0x3694ec['uuid'],this['imageUploadProgress']=null;const _0x3cf657=_0x28f957['getAttribute']('src');this['_imageCache']['set'](_0x3cf657,{'id':_0x3694ec['uuid'],'url':_0x3694ec['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1a9e9d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1a9e9d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x16be84,_0x42cb7c){_0x16be84['on']('apply',(_0x124b15,_0x40534d)=>{this['_replaceImage'](_0x42cb7c,_0x40534d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x16be84['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x16be84['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x361e32,_0x5dc35b,_0x400dfa){const _0x431a1e=this['_editor'],{width:_0x37e6bb,height:_0x39ce57}=A(_0x5dc35b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1e5311,imageSources:_0x34f9d9}=E(_0x5dc35b,_0x37e6bb);_0x431a1e['model']['change'](_0x3679e8=>{if('$graveyard'===_0x361e32['root']['rootName']){_0x431a1e['execute']('insertImage',{'imageType':_0x361e32['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x361e32['getAttributes']()),'uploadcareImageId':_0x400dfa,'src':_0x1e5311,'sources':_0x34f9d9,'width':_0x37e6bb,'height':_0x39ce57}});const _0x2133b6=_0x361e32['getChildren']();_0x361e32=_0x431a1e['model']['document']['selection']['getSelectedElement']();for(const _0x553744 of _0x2133b6)_0x3679e8['append'](_0x3679e8['cloneElement'](_0x553744),_0x361e32);}else _0x3679e8['setSelection'](_0x361e32,'on'),_0x431a1e['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x361e32['getAttributes']()),'uploadcareImageId':_0x400dfa,'src':_0x1e5311,'sources':_0x34f9d9,'width':_0x37e6bb,'height':_0x39ce57},_0x361e32);_0x3679e8['setSelection'](_0x361e32,'on');});}async['_getImageAsFile'](_0x5e3cc0){const _0x4dab41=_0x142ccf['window'],_0x2049d7=_0x142ccf['document']['location']['href'],_0xd7602e=new _0x4dab41['URL'](_0x5e3cc0['getAttribute']('src'),_0x2049d7);if('data:'===_0xd7602e['protocol']){const _0x4241be=_0xd7602e['href']['split'](','),_0x4dae8a=_0x4241be[0x0]['match'](/:(.*?);/)[0x1],_0x43c750=_0x4dae8a['split']('/')[0x1],_0x15e2ff=_0x4dab41['atob'](_0x4241be[_0x4241be['length']-0x1]);let _0xd93a61=_0x15e2ff['length'];const _0xe562ab=new _0x4dab41['Uint8Array'](_0xd93a61);for(;_0xd93a61--;)_0xe562ab[_0xd93a61]=_0x15e2ff['charCodeAt'](_0xd93a61);return new _0x4dab41['File']([_0xe562ab],'image.'+_0x43c750,{'type':_0x4dae8a});}const _0x1a592f=_0xd7602e['href']['split']('/'),_0x4c0027=_0x1a592f[_0x1a592f['length']-0x1],_0x54d20d=_0x4c0027['split']('.')[0x1];return _0x4dab41['fetch'](_0xd7602e['href'])['then'](_0x4c2219=>_0x4c2219['clone']()['blob']())['then'](_0x131dc9=>new _0x4dab41['File']([_0x131dc9],_0x4c0027,{'type':'image/'+_0x54d20d}));}}class V extends _0x4572c5{['imageEditController'];static get['requires'](){return[_0x4a24e3];}['_isEditable'];constructor(_0x5ebc3b){super(_0x5ebc3b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xb2ee7b){const _0x43548c=R(_0xb2ee7b);return _0x4ff00d=>!(!_0x4ff00d||!_0x4ff00d['is']('element','imageBlock')&&!_0x4ff00d['is']('element','imageInline'))&&(!!_0x4ff00d['hasAttribute']('uploadcareImageId')||!!_0x4ff00d['hasAttribute']('src')&&_0x43548c(_0x4ff00d['getAttribute']('src')));}(_0x5ebc3b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x34dd97=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x34dd97);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x13c800=this['editor']['model']['document']['selection']['getSelectedElement']();_0x13c800&&(_0x13c800['is']('element','imageBlock')||_0x13c800['is']('element','imageInline'))&&(this['imageEditController']=new O(this['editor'],this['editor']['plugins']['get'](_0x4a24e3),_0x13c800),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class X extends _0x4572c5{['refresh'](){const _0xc99ea=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xc99ea&&(_0xc99ea['is']('element','imageBlock')||_0xc99ea['is']('element','imageInline')));}['execute'](_0x5b6782){const _0x5bd2f5=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2b348e=>{_0x2b348e['setAttributes'](_0x5b6782,_0x5bd2f5),_0x2b348e['removeAttribute']('srcset',_0x5bd2f5),_0x2b348e['removeAttribute']('sizes',_0x5bd2f5);});}}class g extends _0x50cf2e{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x37cbd4,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x50f2c3}=this;_0x50f2c3['commands']['add']('uploadcareImageEdit',new V(_0x50f2c3)),_0x50f2c3['commands']['add']('uploadcareImageReplace',new X(_0x50f2c3));}}class j extends _0x50cf2e{['_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 _0x4d44e1=this['editor'];_0x4d44e1['ui']['componentFactory']['add']('uploadcareImageEdit',_0x35415a=>{const _0x18cdfc=_0x4d44e1['commands']['get']('uploadcareImageEdit'),_0x4801a9=new _0xe906c(_0x35415a),t=_0x35415a['t'];return _0x4801a9['set']({'icon':_0x3b8595,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4801a9['bind']('isEnabled')['to'](_0x18cdfc),_0x4801a9['bind']('isOn')['to'](_0x18cdfc,'isActive'),this['listenTo'](_0x4801a9,'execute',()=>{_0x4d44e1['execute']('uploadcareImageEdit'),_0x4d44e1['editing']['view']['focus']();}),_0x4801a9;}),this['_initConfig']();}['_initConfig'](){const _0x5637b1=_0x5b2d50(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5637b1),this['listenTo'](this['editor'],'destroy',()=>{_0x5637b1['remove']();});}}class P extends _0x50cf2e{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-next-20250223.0",
3
+ "version": "0.0.0-nightly-next-20250224.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-20250223.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20250223.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20250223.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20250223.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20250223.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20250223.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20250223.0",
33
- "ckeditor5": "0.0.0-nightly-next-20250223.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20250224.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20250224.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20250224.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20250224.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20250224.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20250224.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20250224.0",
33
+ "ckeditor5": "0.0.0-nightly-next-20250224.0",
34
34
  "@uploadcare/file-uploader": "1.12.0",
35
35
  "@uploadcare/upload-client": "6.14.1"
36
36
  },
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4730(){const _0x414d4e=['addEventListener','_initDialog','getLastPosition','imageInline','stopListening','change','status','model','hide','627456kffeIQ','Insert','_insertAsset','_editing','34229Ksstfq','_editor','linkHref','10CmiZNc','show','view','idle','insertImage','width','length','editing','setCurrentActivity','source-list','470524yvQvmb','configElement','execute','imageInfo','uuid','removeAllFiles','EDITOR_TOP_CENTER','done-click','420uXEPcw','ctxElement','_type','destroy','plugins','_initListeners','28IyiekP','getAPI','setAttribute','isOpen','focus','_formView','doneFlow','Local','selection','attributes','1896092GyDgti','text','_insertImage','7FjVJoH','element','uploadCare','6525726gblhNU','6306592oQwTEk','image','document','detail','_dialog','allEntries','removeSelectionAttribute','getOutputCollectionState','Replace','10eQVleI','9HzAwfC','get','imageBlock','57124AbKOat','initFlow','_api','setSelection','getSelectedElement','stopDelegating'];_0x4730=function(){return _0x414d4e;};return _0x4730();}const _0x82baea=_0x2552;(function(_0x1f269b,_0x4f29d2){const _0x4f72b2=_0x2552,_0x1d9896=_0x1f269b();while(!![]){try{const _0xf7e5e2=parseInt(_0x4f72b2(0x184))/0x1*(-parseInt(_0x4f72b2(0x1a2))/0x2)+-parseInt(_0x4f72b2(0x1b1))/0x3+-parseInt(_0x4f72b2(0x1c2))/0x4*(parseInt(_0x4f72b2(0x19e))/0x5)+parseInt(_0x4f72b2(0x194))/0x6*(parseInt(_0x4f72b2(0x191))/0x7)+-parseInt(_0x4f72b2(0x195))/0x8*(-parseInt(_0x4f72b2(0x19f))/0x9)+-parseInt(_0x4f72b2(0x1b8))/0xa*(parseInt(_0x4f72b2(0x18e))/0xb)+-parseInt(_0x4f72b2(0x17e))/0xc*(-parseInt(_0x4f72b2(0x1b5))/0xd);if(_0xf7e5e2===_0x4f29d2)break;else _0x1d9896['push'](_0x1d9896['shift']());}catch(_0x99587e){_0x1d9896['push'](_0x1d9896['shift']());}}}(_0x4730,0x86a9a));import{IconUploadcareImageUpload as _0x3d09da}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x311a54}from'ckeditor5/src/utils.js';import{Dialog as _0x33d191,DialogViewPosition as _0x307a98}from'ckeditor5/src/ui.js';import _0x39614c from'./uploadcareformview.js';function _0x2552(_0x58c8a2,_0x2e6e13){const _0x473007=_0x4730();return _0x2552=function(_0x25523b,_0xde801f){_0x25523b=_0x25523b-0x17e;let _0x37a51f=_0x473007[_0x25523b];return _0x37a51f;},_0x2552(_0x58c8a2,_0x2e6e13);}import{UploadcareSource as _0x10fc83}from'../uploadcareconfig.js';import{getTranslation as _0x3537de}from'../utils/common-translations.js';import{getImageUrls as _0x4eea4c,getImageDimension as _0x14b6f4}from'../utils/editingutils.js';import{isAncestor as _0x122ddc}from'../utils/isancestor.js';export default class l extends/* #__PURE__ -- @preserve */
24
- _0x311a54(){[_0x82baea(0x1b6)];[_0x82baea(0x199)];[_0x82baea(0x1b4)];[_0x82baea(0x1a4)];[_0x82baea(0x180)]=null;[_0x82baea(0x189)]=null;constructor(_0x33eb70,_0x449b5c,_0x4a84df){const _0x14846a=_0x82baea;super(),this[_0x14846a(0x1b6)]=_0x33eb70,this[_0x14846a(0x1b4)]=_0x449b5c,this[_0x14846a(0x199)]=_0x33eb70[_0x14846a(0x182)][_0x14846a(0x1a0)](_0x33d191),this[_0x14846a(0x1a4)]=_0x449b5c[_0x14846a(0x17f)][_0x14846a(0x185)](),this[_0x14846a(0x180)]=_0x4a84df,this[_0x14846a(0x1b4)][_0x14846a(0x1c3)][_0x14846a(0x186)](_0x14846a(0x1c1),this[_0x14846a(0x180)]),this[_0x14846a(0x1a9)](),this[_0x14846a(0x183)](),this[_0x14846a(0x1a4)][_0x14846a(0x1a3)]();}[_0x82baea(0x181)](){const _0x219a75=_0x82baea;this[_0x219a75(0x189)]&&(this[_0x219a75(0x189)][_0x219a75(0x181)](),this[_0x219a75(0x189)]=null),this[_0x219a75(0x1a4)]&&this[_0x219a75(0x1a4)][_0x219a75(0x18a)](),this[_0x219a75(0x1ac)](),this[_0x219a75(0x1a7)]();}[_0x82baea(0x1a9)](){const _0x4a7eed=_0x82baea,{locale:_0xaa0313,model:_0x5c6237}=this[_0x4a7eed(0x1b6)],_0x4b1c6d=_0x5c6237[_0x4a7eed(0x197)][_0x4a7eed(0x18c)][_0x4a7eed(0x1a6)](),_0x5962cd=_0x4b1c6d&&(_0x4b1c6d['is'](_0x4a7eed(0x192),_0x4a7eed(0x1a1))||_0x4b1c6d['is'](_0x4a7eed(0x192),_0x4a7eed(0x1ab)));this[_0x4a7eed(0x189)]=new _0x39614c(_0xaa0313),this[_0x4a7eed(0x199)][_0x4a7eed(0x1b9)]({'id':_0x4a7eed(0x193),'icon':_0x3d09da,'title':_0x3537de(_0xaa0313,this[_0x4a7eed(0x180)],_0x5962cd?_0x4a7eed(0x19d):_0x4a7eed(0x1b2))[_0x4a7eed(0x18f)],'content':this[_0x4a7eed(0x189)],'position':_0x307a98[_0x4a7eed(0x1c8)],'isModal':!0x0,'onShow':()=>{const _0x894040=_0x4a7eed;this[_0x894040(0x189)][_0x894040(0x188)]();},'onHide':()=>{const _0x559556=_0x4a7eed;this[_0x559556(0x1a4)][_0x559556(0x1c7)](),this[_0x559556(0x1b6)][_0x559556(0x1bf)][_0x559556(0x1ba)][_0x559556(0x188)](),this[_0x559556(0x181)]();},'keystrokeHandlerOptions':{'filter':_0x320d04=>!_0x122ddc(_0x320d04,this[_0x4a7eed(0x189)][_0x4a7eed(0x192)])}});}[_0x82baea(0x183)](){const _0x3ac70c=_0x82baea;this[_0x3ac70c(0x1b4)][_0x3ac70c(0x17f)][_0x3ac70c(0x1a8)](_0x3ac70c(0x1c9),()=>{const _0x45243d=_0x3ac70c,{allEntries:_0x559ef4}=this[_0x45243d(0x1a4)][_0x45243d(0x19c)]();this[_0x45243d(0x1b6)][_0x45243d(0x1af)][_0x45243d(0x1ad)](_0x1cc2cb=>{const _0x34c788=_0x45243d,_0x34c5b8=_0x559ef4[_0x34c788(0x1be)];for(const _0x5c3fdb of _0x559ef4){const _0x3363f6=_0x5c3fdb===_0x559ef4[_0x34c5b8-0x1],{cdnUrl:_0x19c8fc,fileInfo:_0x195c06}=_0x5c3fdb;if(!_0x19c8fc||!_0x195c06)continue;const {width:_0x16cdbd,height:_0x279a0c}=_0x195c06[_0x34c788(0x1c5)],_0x16568a=_0x14b6f4(_0x19c8fc,_0x16cdbd,_0x279a0c),_0xc3354d=_0x4eea4c(_0x19c8fc,_0x16568a[_0x34c788(0x1bd)]),_0xddb753={'id':_0x195c06[_0x34c788(0x1c6)],'type':_0x34c788(0x196),'attributes':{'imageDimension':_0x16568a,..._0xc3354d}};this[_0x34c788(0x1b3)](_0xddb753,_0x3363f6,_0x1cc2cb);}}),this[_0x45243d(0x199)][_0x45243d(0x1b0)]();}),this[_0x3ac70c(0x1b4)][_0x3ac70c(0x17f)][_0x3ac70c(0x1a8)](_0x3ac70c(0x1ad),_0x1ae6ce=>{const _0x550826=_0x3ac70c;_0x550826(0x1bb)===_0x1ae6ce[_0x550826(0x198)][_0x550826(0x1ae)]&&!_0x1ae6ce[_0x550826(0x198)][_0x550826(0x19a)][_0x550826(0x1be)]&&this[_0x550826(0x199)][_0x550826(0x187)]&&(this[_0x550826(0x180)]===_0x10fc83[_0x550826(0x18b)]?this[_0x550826(0x1a4)][_0x550826(0x1c0)](_0x10fc83[_0x550826(0x18b)]):this[_0x550826(0x1a4)][_0x550826(0x1a3)]());});}[_0x82baea(0x1b3)](_0x15f775,_0x4dfd5e,_0xfd6e5){const _0xaca943=_0x82baea,_0x13b278=this[_0xaca943(0x1b6)][_0xaca943(0x1af)][_0xaca943(0x197)][_0xaca943(0x18c)],_0x561297=_0x13b278[_0xaca943(0x1a6)](),_0x1758f1=!(!_0x561297||!_0x561297['is'](_0xaca943(0x192),_0xaca943(0x1ab)));_0xfd6e5[_0xaca943(0x19b)](_0xaca943(0x1b7)),this[_0xaca943(0x190)](_0x15f775,_0x1758f1),_0x4dfd5e||_0xfd6e5[_0xaca943(0x1a5)](_0x13b278[_0xaca943(0x1aa)]());}[_0x82baea(0x190)](_0x55be32,_0x515fa0){const _0x1e5a58=_0x82baea,_0x1d9842=this[_0x1e5a58(0x1b6)],{imageDimension:_0x3d5922,imageFallbackUrl:_0x8bfd01,imageSources:_0x4681d4}=_0x55be32[_0x1e5a58(0x18d)];_0x1d9842[_0x1e5a58(0x1c4)](_0x1e5a58(0x1bc),{'imageType':_0x515fa0?_0x1e5a58(0x1ab):null,'source':{'uploadcareImageId':_0x55be32['id'],'src':_0x8bfd01,'sources':_0x4681d4,..._0x3d5922}});}}
23
+ const _0x129f22=_0x7e28;function _0x7e28(_0x6783bb,_0x12b855){const _0x238efb=_0x238e();return _0x7e28=function(_0x7e280a,_0x4b1c47){_0x7e280a=_0x7e280a-0x164;let _0x101848=_0x238efb[_0x7e280a];return _0x101848;},_0x7e28(_0x6783bb,_0x12b855);}(function(_0x459a87,_0x5708d8){const _0x4c0263=_0x7e28,_0x55f488=_0x459a87();while(!![]){try{const _0x42ee2a=-parseInt(_0x4c0263(0x1a2))/0x1*(parseInt(_0x4c0263(0x1a8))/0x2)+parseInt(_0x4c0263(0x185))/0x3*(parseInt(_0x4c0263(0x170))/0x4)+parseInt(_0x4c0263(0x174))/0x5+parseInt(_0x4c0263(0x195))/0x6*(-parseInt(_0x4c0263(0x18d))/0x7)+-parseInt(_0x4c0263(0x1aa))/0x8*(-parseInt(_0x4c0263(0x177))/0x9)+parseInt(_0x4c0263(0x166))/0xa+parseInt(_0x4c0263(0x1a4))/0xb;if(_0x42ee2a===_0x5708d8)break;else _0x55f488['push'](_0x55f488['shift']());}catch(_0x5d652a){_0x55f488['push'](_0x55f488['shift']());}}}(_0x238e,0xdb905));import{IconUploadcareImageUpload as _0x2ec7b4}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x2c2705}from'ckeditor5/src/utils.js';import{Dialog as _0x422bdc,DialogViewPosition as _0x39d996}from'ckeditor5/src/ui.js';import _0xf992d7 from'./uploadcareformview.js';import{UploadcareSource as _0x56cbe8}from'../uploadcareconfig.js';import{getTranslation as _0x3872de}from'../utils/common-translations.js';import{getImageUrls as _0x410c2f,getImageDimension as _0x250c74}from'../utils/editingutils.js';import{isAncestor as _0x7e78e7}from'../utils/isancestor.js';export default class l extends/* #__PURE__ -- @preserve */
24
+ _0x2c2705(){[_0x129f22(0x17f)];[_0x129f22(0x191)];[_0x129f22(0x165)];[_0x129f22(0x168)];[_0x129f22(0x193)]=null;[_0x129f22(0x173)]=null;constructor(_0x439185,_0x3b7c2a,_0x40f7b7){const _0x48adfd=_0x129f22;super(),this[_0x48adfd(0x17f)]=_0x439185,this[_0x48adfd(0x165)]=_0x3b7c2a,this[_0x48adfd(0x191)]=_0x439185[_0x48adfd(0x192)][_0x48adfd(0x181)](_0x422bdc),this[_0x48adfd(0x168)]=_0x3b7c2a[_0x48adfd(0x18b)][_0x48adfd(0x1a5)](),this[_0x48adfd(0x193)]=_0x40f7b7,this[_0x48adfd(0x165)][_0x48adfd(0x198)][_0x48adfd(0x16f)](_0x48adfd(0x17b),this[_0x48adfd(0x193)]),this[_0x48adfd(0x1a7)](),this[_0x48adfd(0x176)](),this[_0x48adfd(0x168)][_0x48adfd(0x16e)]();}[_0x129f22(0x18c)](){const _0x19a741=_0x129f22;this[_0x19a741(0x173)]&&(this[_0x19a741(0x173)][_0x19a741(0x18c)](),this[_0x19a741(0x173)]=null),this[_0x19a741(0x168)]&&this[_0x19a741(0x168)][_0x19a741(0x1a1)](),this[_0x19a741(0x171)](),this[_0x19a741(0x1a6)]();}[_0x129f22(0x1a7)](){const _0x30b37e=_0x129f22,{locale:_0x736017,model:_0x45e0f6}=this[_0x30b37e(0x17f)],_0x2ec0d8=_0x45e0f6[_0x30b37e(0x19b)][_0x30b37e(0x17c)][_0x30b37e(0x1a3)](),_0x552b14=_0x2ec0d8&&(_0x2ec0d8['is'](_0x30b37e(0x186),_0x30b37e(0x169))||_0x2ec0d8['is'](_0x30b37e(0x186),_0x30b37e(0x180)));this[_0x30b37e(0x173)]=new _0xf992d7(_0x736017),this[_0x30b37e(0x191)][_0x30b37e(0x1a0)]({'id':_0x30b37e(0x187),'icon':_0x2ec7b4,'title':_0x3872de(_0x736017,this[_0x30b37e(0x193)],_0x552b14?_0x30b37e(0x164):_0x30b37e(0x172))[_0x30b37e(0x190)],'content':this[_0x30b37e(0x173)],'position':_0x39d996[_0x30b37e(0x188)],'isModal':!0x0,'onShow':()=>{const _0x828cb5=_0x30b37e;this[_0x828cb5(0x173)][_0x828cb5(0x19e)]();},'onHide':()=>{const _0x2e444a=_0x30b37e;this[_0x2e444a(0x168)][_0x2e444a(0x19c)](),this[_0x2e444a(0x17f)][_0x2e444a(0x183)][_0x2e444a(0x16c)][_0x2e444a(0x19e)](),this[_0x2e444a(0x18c)]();},'keystrokeHandlerOptions':{'filter':_0x4b5e56=>!_0x7e78e7(_0x4b5e56,this[_0x30b37e(0x173)][_0x30b37e(0x186)])}});}[_0x129f22(0x176)](){const _0x4a3731=_0x129f22;this[_0x4a3731(0x165)][_0x4a3731(0x18b)][_0x4a3731(0x184)](_0x4a3731(0x178),()=>{const _0x348174=_0x4a3731,{allEntries:_0x16e19d}=this[_0x348174(0x168)][_0x348174(0x194)]();this[_0x348174(0x17f)][_0x348174(0x17e)][_0x348174(0x1a9)](_0x575cb2=>{const _0x7b058a=_0x348174,_0x1d408b=_0x16e19d[_0x7b058a(0x1ad)];for(const _0x527342 of _0x16e19d){const _0x2d6044=_0x527342===_0x16e19d[_0x1d408b-0x1],{cdnUrl:_0x4191f9,fileInfo:_0x498e69}=_0x527342;if(!_0x4191f9||!_0x498e69)continue;const {width:_0x5d5db1,height:_0x1bb0b6}=_0x498e69[_0x7b058a(0x1ab)],_0x1ef584=_0x250c74(_0x4191f9,_0x5d5db1,_0x1bb0b6),_0x4f0c5f=_0x410c2f(_0x4191f9,_0x1ef584[_0x7b058a(0x19d)]),_0x405196={'id':_0x498e69[_0x7b058a(0x19a)],'type':_0x7b058a(0x18e),'attributes':{'imageDimension':_0x1ef584,..._0x4f0c5f}};this[_0x7b058a(0x17a)](_0x405196,_0x2d6044,_0x575cb2);}}),this[_0x348174(0x191)][_0x348174(0x179)]();}),this[_0x4a3731(0x165)][_0x4a3731(0x18b)][_0x4a3731(0x184)](_0x4a3731(0x1a9),_0x561af7=>{const _0x3fef54=_0x4a3731;_0x3fef54(0x18f)===_0x561af7[_0x3fef54(0x18a)][_0x3fef54(0x1ac)]&&!_0x561af7[_0x3fef54(0x18a)][_0x3fef54(0x197)][_0x3fef54(0x1ad)]&&this[_0x3fef54(0x191)][_0x3fef54(0x196)]&&(this[_0x3fef54(0x193)]===_0x56cbe8[_0x3fef54(0x19f)]?this[_0x3fef54(0x168)][_0x3fef54(0x167)](_0x56cbe8[_0x3fef54(0x19f)]):this[_0x3fef54(0x168)][_0x3fef54(0x16e)]());});}[_0x129f22(0x17a)](_0x1a7a28,_0x1587a1,_0x266a5a){const _0x35a42d=_0x129f22,_0x29303f=this[_0x35a42d(0x17f)][_0x35a42d(0x17e)][_0x35a42d(0x19b)][_0x35a42d(0x17c)],_0x7e8482=_0x29303f[_0x35a42d(0x1a3)](),_0x2f696d=!(!_0x7e8482||!_0x7e8482['is'](_0x35a42d(0x186),_0x35a42d(0x180)));_0x266a5a[_0x35a42d(0x199)](_0x35a42d(0x182)),this[_0x35a42d(0x16a)](_0x1a7a28,_0x2f696d),_0x1587a1||_0x266a5a[_0x35a42d(0x189)](_0x29303f[_0x35a42d(0x16b)]());}[_0x129f22(0x16a)](_0x5c00cb,_0x90d80e){const _0x3d6339=_0x129f22,_0xbfd56e=this[_0x3d6339(0x17f)],{imageDimension:_0x2ffb40,imageFallbackUrl:_0x4d3e57,imageSources:_0x3297b7}=_0x5c00cb[_0x3d6339(0x17d)];_0xbfd56e[_0x3d6339(0x16d)](_0x3d6339(0x175),{'imageType':_0x90d80e?_0x3d6339(0x180):null,'source':{'uploadcareImageId':_0x5c00cb['id'],'src':_0x4d3e57,'sources':_0x3297b7,..._0x2ffb40}});}}function _0x238e(){const _0xebabaa=['view','execute','initFlow','setAttribute','2411564BXyeiG','stopListening','Insert','_formView','3521460WobKBt','insertImage','_initListeners','387GJcKrN','done-click','hide','_insertAsset','source-list','selection','attributes','model','_editor','imageInline','get','linkHref','editing','addEventListener','3wuIZQW','element','uploadCare','EDITOR_TOP_CENTER','setSelection','detail','ctxElement','destroy','753277eufsES','image','idle','text','_dialog','plugins','_type','getOutputCollectionState','78JwApoo','isOpen','allEntries','configElement','removeSelectionAttribute','uuid','document','removeAllFiles','width','focus','Local','show','doneFlow','350iKrKpQ','getSelectedElement','7110873ldkIVl','getAPI','stopDelegating','_initDialog','5106JXDZIn','change','82048WPYsYh','imageInfo','status','length','Replace','_editing','7971920YdRTUm','setCurrentActivity','_api','imageBlock','_insertImage','getLastPosition'];_0x238e=function(){return _0xebabaa;};return _0x238e();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5cfa(_0x1ba03c,_0x5e76b8){var _0x5897f5=_0x5897();return _0x5cfa=function(_0x5cfa66,_0x52264d){_0x5cfa66=_0x5cfa66-0xeb;var _0x5cee95=_0x5897f5[_0x5cfa66];return _0x5cee95;},_0x5cfa(_0x1ba03c,_0x5e76b8);}var _0x37d0de=_0x5cfa;(function(_0x123ff2,_0x49b789){var _0x359613=_0x5cfa,_0x4f9432=_0x123ff2();while(!![]){try{var _0x2643fe=-parseInt(_0x359613(0xeb))/0x1+parseInt(_0x359613(0xf3))/0x2*(parseInt(_0x359613(0xfc))/0x3)+parseInt(_0x359613(0xf7))/0x4*(-parseInt(_0x359613(0xfb))/0x5)+-parseInt(_0x359613(0xed))/0x6+parseInt(_0x359613(0x100))/0x7*(-parseInt(_0x359613(0xf9))/0x8)+parseInt(_0x359613(0xf6))/0x9+-parseInt(_0x359613(0xf8))/0xa*(-parseInt(_0x359613(0xf0))/0xb);if(_0x2643fe===_0x49b789)break;else _0x4f9432['push'](_0x4f9432['shift']());}catch(_0x57fd10){_0x4f9432['push'](_0x4f9432['shift']());}}}(_0x5897,0x2dbe8));import _0x246ae2 from'../utils/dialogfocusmanagerview.js';function _0x5897(){var _0x4c3c61=['2540940QdSpRa','8iLvXMg','uploader','63435acxHoe','36321ibFJso','focus','setTemplate','ck-reset_all-excluded','1052597kiDrEY','339372zJQazk','element','365802reKOXM','div','uc-file-uploader-inline','33tEPguL','getFocusableElement','uc-light','2oauJtF','ck-uploadcare-form','ck-uploadcare-theme','1157580rWPbWw','52JWgoEh'];_0x5897=function(){return _0x4c3c61;};return _0x5897();}import'../../theme/uploadcare-form.css';export default class S extends _0x246ae2{constructor(_0x2593d1){var _0x14a02b=_0x5cfa;super(_0x2593d1),this[_0x14a02b(0xfe)]({'tag':_0x14a02b(0xee),'attributes':{'class':['ck',_0x14a02b(0xff),_0x14a02b(0xf4)],'tabindex':'-1'},'children':[{'tag':_0x14a02b(0xef),'attributes':{'class':[_0x14a02b(0xf2),_0x14a02b(0xf5)],'ctx-name':_0x14a02b(0xfa)}},this[_0x14a02b(0xf1)]()]});}[_0x37d0de(0xfd)](){var _0x309106=_0x37d0de;this[_0x309106(0xec)][_0x309106(0xfd)]();}}
23
+ var _0x4f5b87=_0x3f69;function _0x5ed1(){var _0x1df630=['uc-file-uploader-inline','uc-light','ck-uploadcare-theme','1331ucdPIp','4wbqXOQ','div','setTemplate','109404NQqOWA','element','getFocusableElement','1270WptBnX','focus','999740YsFkTk','55LqJblD','303606eiRPJH','ck-reset_all-excluded','uploader','42mklLjb','1277016PfArds','95577KgyXvC','53908XfKBcT','ck-uploadcare-form'];_0x5ed1=function(){return _0x1df630;};return _0x5ed1();}(function(_0x44c4af,_0x97c03f){var _0xaf8c3f=_0x3f69,_0x167ca9=_0x44c4af();while(!![]){try{var _0x38b67f=parseInt(_0xaf8c3f(0x135))/0x1*(parseInt(_0xaf8c3f(0x13c))/0x2)+-parseInt(_0xaf8c3f(0x133))/0x3*(parseInt(_0xaf8c3f(0x136))/0x4)+parseInt(_0xaf8c3f(0x12f))/0x5*(-parseInt(_0xaf8c3f(0x129))/0x6)+parseInt(_0xaf8c3f(0x12e))/0x7+parseInt(_0xaf8c3f(0x134))/0x8+parseInt(_0xaf8c3f(0x130))/0x9+-parseInt(_0xaf8c3f(0x12c))/0xa*(parseInt(_0xaf8c3f(0x13b))/0xb);if(_0x38b67f===_0x97c03f)break;else _0x167ca9['push'](_0x167ca9['shift']());}catch(_0x171e9f){_0x167ca9['push'](_0x167ca9['shift']());}}}(_0x5ed1,0x1df5c));import _0x46556f from'../utils/dialogfocusmanagerview.js';function _0x3f69(_0x5dd97d,_0xc4095d){var _0x5ed18c=_0x5ed1();return _0x3f69=function(_0x3f69a1,_0x419310){_0x3f69a1=_0x3f69a1-0x129;var _0x5314c2=_0x5ed18c[_0x3f69a1];return _0x5314c2;},_0x3f69(_0x5dd97d,_0xc4095d);}import'../../theme/uploadcare-form.css';export default class S extends _0x46556f{constructor(_0x37a4a7){var _0x27e4c5=_0x3f69;super(_0x37a4a7),this[_0x27e4c5(0x13e)]({'tag':_0x27e4c5(0x13d),'attributes':{'class':['ck',_0x27e4c5(0x131),_0x27e4c5(0x137)],'tabindex':'-1'},'children':[{'tag':_0x27e4c5(0x138),'attributes':{'class':[_0x27e4c5(0x139),_0x27e4c5(0x13a)],'ctx-name':_0x27e4c5(0x132)}},this[_0x27e4c5(0x12b)]()]});}[_0x4f5b87(0x12d)](){var _0x236d07=_0x4f5b87;this[_0x236d07(0x12a)][_0x236d07(0x12d)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x33a3cb=_0x35aa;(function(_0x3f82aa,_0x398541){const _0x19a7a1=_0x35aa,_0x525e7f=_0x3f82aa();while(!![]){try{const _0x136c58=-parseInt(_0x19a7a1(0x1c2))/0x1*(-parseInt(_0x19a7a1(0x1c6))/0x2)+-parseInt(_0x19a7a1(0x213))/0x3+-parseInt(_0x19a7a1(0x1f5))/0x4*(parseInt(_0x19a7a1(0x1f8))/0x5)+-parseInt(_0x19a7a1(0x1c5))/0x6+parseInt(_0x19a7a1(0x1e3))/0x7+-parseInt(_0x19a7a1(0x1d0))/0x8*(-parseInt(_0x19a7a1(0x1d4))/0x9)+-parseInt(_0x19a7a1(0x1da))/0xa*(-parseInt(_0x19a7a1(0x1dd))/0xb);if(_0x136c58===_0x398541)break;else _0x525e7f['push'](_0x525e7f['shift']());}catch(_0x518930){_0x525e7f['push'](_0x525e7f['shift']());}}}(_0x1f15,0x66c17));import{Plugin as _0x45a30e}from'ckeditor5/src/core.js';import{Dialog as _0x8f6ad4}from'ckeditor5/src/ui.js';function _0x35aa(_0x5422fc,_0x2e75a2){const _0x1f15e7=_0x1f15();return _0x35aa=function(_0x35aa10,_0x70f18d){_0x35aa10=_0x35aa10-0x1c1;let _0x5a76c0=_0x1f15e7[_0x35aa10];return _0x5a76c0;},_0x35aa(_0x5422fc,_0x2e75a2);}import{createElement as _0x2191d6,global as _0xb8b24b,uid as _0x329e2e}from'ckeditor5/src/utils.js';import _0xf731f2 from'./uploadcarecommand.js';import _0x1e95a4 from'./uploadcareuploadadapter.js';function _0x1f15(){const _0x5028cd=['schema','_initConfig','map','afterInit','once','fromCharCode','cleanupImage','destroy','config','editing','insertImage','add','for','requires','true','4LzYqcd','uploadcare','conversion','2298815XhkBqM','replaceImageSource','uc-config','href','_initImageProcessingIndicator','input[uploadcare-file-input]','contentLanguage','pluginName','extend','_initConversion','get','querySelector','iconHrefResolver','upcast','data-uc-image-id','join','elementToAttribute','_initSchema','commands','isPremiumPlugin','getAttribute','uploadcare.pubkey','render','locale','uploadcareImageId','body','configElement','2137608GBralB','getSelectedElement','removeAttribute','downcast','671TUCwaE','PictureEditing','init','13470FEnxJP','2342TXCUvA','uploadcareImageReplace','appendChild','uc-upload-ctx-provider','_ctxElement','isOfficialPlugin','document','imageInline','UploadcareEditing','uploadcare.uploader','4524424zJjsyn','closeMax','_configElement','remove','9xmyrWG','_initCtx','\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','view','ctxElement','imageBlock','15630pcoSIu','listenTo','isRegistered','22SwDUmv','attributeToAttribute','#uc-icon-arrow-down','model','execute','selection','1687077XoWrHb','uploader','editor'];_0x1f15=function(){return _0x5028cd;};return _0x1f15();}import{showImageProcessingIndicator as _0x2a8806}from'./utils/editingutils.js';export default class i extends _0x45a30e{[_0x33a3cb(0x1d2)]=null;[_0x33a3cb(0x1ca)]=null;static get[_0x33a3cb(0x1ff)](){const _0x357fd2=_0x33a3cb;return _0x357fd2(0x1ce);}static get[_0x33a3cb(0x1f3)](){const _0x4d5720=_0x33a3cb;return[_0x4d5720(0x1c3),_0x1e95a4,_0x8f6ad4];}static get[_0x33a3cb(0x1cb)](){return!0x0;}static get[_0x33a3cb(0x20b)](){return!0x0;}get[_0x33a3cb(0x212)](){const _0x1d2ee8=_0x33a3cb;return this[_0x1d2ee8(0x1d2)];}get[_0x33a3cb(0x1d8)](){const _0x21e93b=_0x33a3cb;return this[_0x21e93b(0x1ca)];}[_0x33a3cb(0x1c4)](){const _0x3aa7a2=_0x33a3cb,_0x13d09a=this[_0x3aa7a2(0x1e5)];_0x13d09a[_0x3aa7a2(0x20a)][_0x3aa7a2(0x1f1)](_0x3aa7a2(0x1f6),new _0xf731f2(_0x13d09a));}[_0x33a3cb(0x1e9)](){const _0x22dbd9=_0x33a3cb;this[_0x22dbd9(0x209)](),this[_0x22dbd9(0x201)](),this[_0x22dbd9(0x1e7)](),this[_0x22dbd9(0x1d5)](),this[_0x22dbd9(0x1fc)](),this[_0x22dbd9(0x1db)](this[_0x22dbd9(0x1e5)],_0x22dbd9(0x1ed),()=>{const _0x3f14fe=_0x22dbd9;this[_0x3f14fe(0x1d2)]&&(this[_0x3f14fe(0x1d2)][_0x3f14fe(0x1d3)](),this[_0x3f14fe(0x1d2)]=null),this[_0x3f14fe(0x1ca)]&&(this[_0x3f14fe(0x1ca)][_0x3f14fe(0x1d3)](),this[_0x3f14fe(0x1ca)]=null);const _0x51b968=_0xb8b24b[_0x3f14fe(0x1cc)][_0x3f14fe(0x203)](_0x3f14fe(0x1fd));_0x51b968&&_0x51b968[_0x3f14fe(0x1d3)]();}),async function(_0x1f9e44){const _0x3ac752=_0x22397f([0x61,0x33,0x42,0x4b,0x71,0x39,0x6f,0x5a,0x32,0x52,0x49,0x65,0x70,0x46,0x66,0x43,0x6c,0x4f,0x45,0x34,0x41,0x68,0x44,0x4c,0x58,0x79,0x56,0x63,0x54,0x30,0x73,0x76,0x72,0x69,0x48,0x4a,0x67,0x6b,0x4e,0x62,0x7a,0x77,0x6d,0x55,0x75,0x53,0x6a,0x4d,0x50,0x51,0x38,0x64,0x35,0x37,0x59,0x6e,0x78,0x31,0x74,0x57,0x36,0x47]),_0x515027=0x2592f2d4,_0x1599e2=0x25959284^_0x515027,_0xc55472=window[_0x22397f([0x44,0x61,0x74,0x65])][_0x22397f([0x6e,0x6f,0x77])](),_0x1d497e=_0x1f9e44[_0x22397f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x216ac9=new window[(_0x22397f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b7b13=>{_0x1d497e[_0x22397f([0x6f,0x6e,0x63,0x65])](_0x22397f([0x72,0x65,0x61,0x64,0x79]),_0x5b7b13);}),_0x588ede={[_0x22397f([0x6b,0x74,0x79])]:_0x22397f([0x45,0x43]),[_0x22397f([0x75,0x73,0x65])]:_0x22397f([0x73,0x69,0x67]),[_0x22397f([0x63,0x72,0x76])]:_0x22397f([0x50,0x2d,0x32,0x35,0x36]),[_0x22397f([0x78])]:_0x22397f([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]),[_0x22397f([0x79])]:_0x22397f([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]),[_0x22397f([0x61,0x6c,0x67])]:_0x22397f([0x45,0x53,0x32,0x35,0x36])},_0x2aae4c=_0x1d497e[_0x22397f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x22397f([0x67,0x65,0x74])](_0x22397f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2c81d8(){let _0x2577d7,_0x17b8a9=null,_0xc47b50=null;try{if(_0x2aae4c==_0x22397f([0x47,0x50,0x4c]))return _0x22397f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2577d7=_0x24745a(),!_0x2577d7)return _0x22397f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2577d7[_0x22397f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc47b50=_0x535d65(_0x2577d7[_0x22397f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2577d7[_0x22397f([0x6a,0x74,0x69])])),await _0x2d98a1()?_0x4e9d19()?_0x4db95d()?_0x22397f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x464444()?(_0x2577d7[_0x22397f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22397f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x17b8a9=_0x50f2e8(_0x22397f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2577d7[_0x22397f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22397f([0x74,0x72,0x69,0x61,0x6c])&&(_0x17b8a9=_0x50f2e8(_0x22397f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2c0ac8()):_0x22397f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x22397f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x22397f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3e0e72){return _0x22397f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4db95d(){const _0x501087=[_0x22397f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x22397f([0x74,0x72,0x69,0x61,0x6c])][_0x22397f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2577d7[_0x22397f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc55472/0x3e8:0xe10*_0x1599e2;return _0x2577d7[_0x22397f([0x65,0x78,0x70])]<_0x501087;}function _0x4e9d19(){const _0x261ff9=_0x2577d7[_0x22397f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x261ff9&&(!!_0x261ff9[_0x22397f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22397f([0x2a]))||!!_0x261ff9[_0x22397f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22397f([0x55,0x50,0x4c,0x43])));}function _0x464444(){const _0x24c369=_0x35aa,_0x1a66fc=_0x2577d7[_0x22397f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1a66fc||0x0==_0x1a66fc[_0x22397f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x584858}=new URL(window[_0x22397f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x24c369(0x1fb)]);if(_0x1a66fc[_0x22397f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x584858))return!0x0;const _0x149199=_0x584858[_0x22397f([0x73,0x70,0x6c,0x69,0x74])](_0x22397f([0x2e]));return _0x1a66fc[_0x22397f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x46c912=>_0x46c912[_0x22397f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22397f([0x2a])))[_0x22397f([0x6d,0x61,0x70])](_0xfaa539=>_0xfaa539[_0x22397f([0x73,0x70,0x6c,0x69,0x74])](_0x22397f([0x2e])))[_0x22397f([0x73,0x6f,0x6d,0x65])](_0x3715a8=>_0x149199[_0x22397f([0x65,0x76,0x65,0x72,0x79])]((_0x37f0be,_0x5f2dc2)=>_0x3715a8[_0x5f2dc2]===_0x37f0be||_0x3715a8[_0x5f2dc2]===_0x22397f([0x2a])));}function _0x2c0ac8(){return _0x17b8a9&&_0xc47b50?new window[(_0x22397f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36b432,_0x1143ed)=>{_0x17b8a9[_0x22397f([0x74,0x68,0x65,0x6e])](_0x36b432,_0x1143ed),_0xc47b50[_0x22397f([0x74,0x68,0x65,0x6e])](_0x43c8d1=>{_0x43c8d1!=_0x22397f([0x56,0x61,0x6c,0x69,0x64])&&_0x36b432(_0x43c8d1);},_0x1143ed);}):_0x17b8a9||_0xc47b50||_0x22397f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x535d65(_0x3a5a48,_0x4c5651){return new window[(_0x22397f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x594d50=>{if(_0xd1b9d0())return _0x594d50(_0x22397f([0x56,0x61,0x6c,0x69,0x64]));_0xa4f372(),_0x1d497e[_0x22397f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x22397f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x203a03=!0x1;const _0x1c3d54=_0x329e2e();function _0x12eca8(_0x1a7512){return!!_0x1a7512&&(typeof _0x1a7512===_0x22397f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1a7512===_0x22397f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1a7512[_0x22397f([0x74,0x68,0x65,0x6e])]===_0x22397f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1a7512[_0x22397f([0x63,0x61,0x74,0x63,0x68])]===_0x22397f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x45a2f1(_0x5d5d5b){_0xeea826(_0x5d5d5b)[_0x22397f([0x74,0x68,0x65,0x6e])](_0x5ad00e=>{if(!_0x5ad00e||_0x5ad00e[_0x22397f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x22397f([0x6f,0x6b]))return _0x22397f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xfba424(_0x29257e(_0x1c3d54+_0x4c5651))!=_0x5ad00e[_0x22397f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x22397f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x22397f([0x56,0x61,0x6c,0x69,0x64]);})[_0x22397f([0x74,0x68,0x65,0x6e])](_0x583aa2=>(_0x3482a8(),_0x583aa2),()=>{const _0x23630c=_0x892972();return null==_0x23630c?(_0x3482a8(),_0x22397f([0x56,0x61,0x6c,0x69,0x64])):_0x22397f(_0xc55472-_0x23630c>(0x19e76d4^_0x515027)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x22397f([0x74,0x68,0x65,0x6e])](_0x594d50)[_0x22397f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x594d50(_0x22397f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xa5e838=0x25a41c54^_0x515027;function _0x3482a8(){const _0x18f5a7=_0x22397f([0x6c,0x6c,0x63,0x74,0x2d])+_0xfba424(_0x29257e(_0x3a5a48)),_0x1db063=_0x33aad8(_0xfba424(window[_0x22397f([0x4d,0x61,0x74,0x68])][_0x22397f([0x63,0x65,0x69,0x6c])](_0xc55472/_0xa5e838)));window[_0x22397f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22397f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18f5a7,_0x1db063);}function _0x892972(){const _0x1eea8b=_0x22397f([0x6c,0x6c,0x63,0x74,0x2d])+_0xfba424(_0x29257e(_0x3a5a48)),_0xa263a6=window[_0x22397f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22397f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1eea8b);return _0xa263a6?window[_0x22397f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33aad8(_0xa263a6),0x10)*_0xa5e838:null;}function _0xeea826(_0x278ba5){return new window[(_0x22397f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4380a4,_0x28f415)=>{_0x278ba5[_0x22397f([0x74,0x68,0x65,0x6e])](_0x4380a4,_0x28f415),window[_0x22397f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x28f415,0x25932614^_0x515027);});}}_0x1d497e[_0x22397f([0x6f,0x6e])](_0x22397f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x22091b,_0x4e9b69)=>{if(_0x4e9b69[0x0]!=_0x3a5a48)return _0x594d50(_0x22397f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e9b69[0x1]={..._0x4e9b69[0x1],[_0x22397f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1c3d54};},{[_0x22397f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22397f([0x68,0x69,0x67,0x68])}),_0x1d497e[_0x22397f([0x6f,0x6e])](_0x22397f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4d70cc=>{_0x12eca8(_0x4d70cc[_0x22397f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x203a03=!0x0,_0x45a2f1(_0x4d70cc[_0x22397f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x22397f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22397f([0x6c,0x6f,0x77])}),_0x216ac9[_0x22397f([0x74,0x68,0x65,0x6e])](()=>{_0x203a03||_0x594d50(_0x22397f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd1b9d0(){return _0x1d497e[_0x22397f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22397f([0x76,0x69,0x65,0x77])][_0x22397f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x22397f([0x61,0x75,0x74,0x6f]);}function _0xa4f372(){_0x1d497e[_0x22397f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22397f([0x76,0x69,0x65,0x77])][_0x22397f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x22397f([0x61,0x75,0x74,0x6f]);}}function _0x50f2e8(_0x4c6e60){const _0x33e6a2=[new window[(_0x22397f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x128354=>setTimeout(_0x128354,0x259bcc18^_0x515027)),_0x216ac9[_0x22397f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x22397f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b583e=>{let _0x17272c=0x0;_0x1d497e[_0x22397f([0x6d,0x6f,0x64,0x65,0x6c])][_0x22397f([0x6f,0x6e])](_0x22397f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2781ca,_0x4d5204)=>{_0x4d5204[0x0][_0x22397f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x17272c++,_0x17272c==(0x2592f32c^_0x515027)&&(_0x4b583e(),_0x2781ca[_0x22397f([0x6f,0x66,0x66])]());});}))];return window[_0x22397f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x22397f([0x72,0x61,0x63,0x65])](_0x33e6a2)[_0x22397f([0x74,0x68,0x65,0x6e])](()=>_0x4c6e60);}async function _0x179b93(){await _0x216ac9,_0x1d497e[_0x22397f([0x6d,0x6f,0x64,0x65,0x6c])][_0x22397f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x382bcd,_0x1d497e[_0x22397f([0x6d,0x6f,0x64,0x65,0x6c])][_0x22397f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x382bcd,_0x1d497e[_0x22397f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x22397f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3a0b2a(_0x3e2531){const _0x2c5fef=_0x2b1867();_0x1d497e[_0x2c5fef]=_0x22397f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3e2531,_0x3e2531!=_0x22397f([0x56,0x61,0x6c,0x69,0x64])&&_0x179b93();}function _0x2b1867(){const _0x45a544=window[_0x22397f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x22397f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x22397f([0x6e,0x6f,0x77])]())[_0x22397f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x22397f([0x2e]),'');let _0x495aa6=_0x22397f([0x61]);for(let _0x34cdce=0x0;_0x34cdce<_0x45a544[_0x22397f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34cdce+=0x2){let _0x3e1de3=window[_0x22397f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45a544[_0x22397f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34cdce,_0x34cdce+0x2));_0x3e1de3>=_0x3ac752[_0x22397f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3e1de3-=_0x3ac752[_0x22397f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x495aa6+=_0x3ac752[_0x3e1de3];}return _0x495aa6;}function _0x24745a(){const _0x5a2c9e=_0x2aae4c[_0x22397f([0x73,0x70,0x6c,0x69,0x74])](_0x22397f([0x2e]));if(0x3!=_0x5a2c9e[_0x22397f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5e8b56(_0x5a2c9e[0x1]);function _0x5e8b56(_0x5e2f1d){const _0x342139=_0x1fd63a(_0x5e2f1d);return _0x342139&&_0x590a59()?_0x342139:null;function _0x590a59(){const _0x4eefb3=_0x342139[_0x22397f([0x6a,0x74,0x69])],_0x3ced81=window[_0x22397f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4eefb3[_0x22397f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4eefb3[_0x22397f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc0b4df={..._0x342139,[_0x22397f([0x6a,0x74,0x69])]:_0x4eefb3[_0x22397f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4eefb3[_0x22397f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc0b4df[_0x22397f([0x76,0x63])],_0x29257e(_0xc0b4df)==_0x3ced81;}}}async function _0x2d98a1(){let _0x502359=!0x0;try{const _0x431cb2=_0x2aae4c[_0x22397f([0x73,0x70,0x6c,0x69,0x74])](_0x22397f([0x2e])),[_0x112328,_0x370476,_0x337254]=_0x431cb2;return _0x31ffef(_0x112328),await _0x3695e5(_0x112328,_0x370476,_0x337254),_0x502359;}catch(_0x3aa55c){return!0x1;}function _0x31ffef(_0x147bbd){const _0x1543e7=_0x1fd63a(_0x147bbd);_0x1543e7&&_0x1543e7[_0x22397f([0x61,0x6c,0x67])]==_0x22397f([0x45,0x53,0x32,0x35,0x36])||(_0x502359=!0x1);}async function _0x3695e5(_0x274067,_0x1b9b34,_0x51e6a9){const _0x50df25=window[_0x22397f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x22397f([0x66,0x72,0x6f,0x6d])](_0x371d84(_0x51e6a9),_0x62ca2d=>_0x62ca2d[_0x22397f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3d3af9=new window[(_0x22397f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x22397f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x274067+_0x22397f([0x2e])+_0x1b9b34),_0x4749ff=window[_0x22397f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x22397f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4749ff)return;const _0x21037b=await _0x4749ff[_0x22397f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x22397f([0x6a,0x77,0x6b]),_0x588ede,{[_0x22397f([0x6e,0x61,0x6d,0x65])]:_0x22397f([0x45,0x43,0x44,0x53,0x41]),[_0x22397f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x22397f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x22397f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4749ff[_0x22397f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x22397f([0x6e,0x61,0x6d,0x65])]:_0x22397f([0x45,0x43,0x44,0x53,0x41]),[_0x22397f([0x68,0x61,0x73,0x68])]:{[_0x22397f([0x6e,0x61,0x6d,0x65])]:_0x22397f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x21037b,_0x50df25,_0x3d3af9)||(_0x502359=!0x1);}}function _0x1fd63a(_0x593766){return _0x593766[_0x22397f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x22397f([0x65,0x79]))?JSON[_0x22397f([0x70,0x61,0x72,0x73,0x65])](_0x371d84(_0x593766)):null;}function _0x371d84(_0x131f42){return window[_0x22397f([0x61,0x74,0x6f,0x62])](_0x131f42[_0x22397f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x22397f([0x2b]))[_0x22397f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x22397f([0x2f])));}function _0x29257e(_0x32852b){let _0x1034b3=0x1505;function _0x1740fd(_0x5d05c8){for(let _0x21e376=0x0;_0x21e376<_0x5d05c8[_0x22397f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x21e376++){const _0x222eca=_0x5d05c8[_0x22397f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x21e376);_0x1034b3=(_0x1034b3<<0x5)+_0x1034b3+_0x222eca,_0x1034b3&=_0x1034b3;}}function _0x23e3d2(_0x32305b){Array[_0x22397f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x32305b)?_0x32305b[_0x22397f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x23e3d2):_0x32305b&&typeof _0x32305b==_0x22397f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x22397f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x32305b)[_0x22397f([0x73,0x6f,0x72,0x74])]()[_0x22397f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3a08c7,_0x4a79aa])=>{_0x1740fd(_0x3a08c7),_0x23e3d2(_0x4a79aa);}):_0x1740fd(window[_0x22397f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x32305b));}return _0x23e3d2(_0x32852b),_0x1034b3>>>0x0;}function _0xfba424(_0x45fb5c){return _0x45fb5c[_0x22397f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x22397f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x22397f([0x30]));}function _0x33aad8(_0xeed283){return _0xeed283[_0x22397f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x22397f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x22397f([0x6a,0x6f,0x69,0x6e])]('');}function _0x382bcd(){}function _0x22397f(_0x4dd82a){const _0x1069a9=_0x35aa;return _0x4dd82a[_0x1069a9(0x1e8)](_0x2b1697=>String[_0x1069a9(0x1eb)](_0x2b1697))[_0x1069a9(0x207)]('');}_0x3a0b2a(await _0x2c81d8());}(this);}[_0x33a3cb(0x209)](){const _0x656927=_0x33a3cb,_0x20805a=this[_0x656927(0x1e5)][_0x656927(0x1e0)][_0x656927(0x1e6)];_0x20805a[_0x656927(0x1dc)](_0x656927(0x1d9))&&_0x20805a[_0x656927(0x200)](_0x656927(0x1d9),{'allowAttributes':[_0x656927(0x210)]}),_0x20805a[_0x656927(0x1dc)](_0x656927(0x1cd))&&_0x20805a[_0x656927(0x200)](_0x656927(0x1cd),{'allowAttributes':[_0x656927(0x210)]});}[_0x33a3cb(0x201)](){const _0x38eb0=_0x33a3cb,_0x505b27=this[_0x38eb0(0x1e5)];_0x505b27[_0x38eb0(0x1f7)][_0x38eb0(0x1f2)](_0x38eb0(0x1c1))[_0x38eb0(0x1de)]({'model':_0x38eb0(0x210),'view':_0x38eb0(0x206)}),_0x505b27[_0x38eb0(0x1f7)][_0x38eb0(0x1f2)](_0x38eb0(0x205))[_0x38eb0(0x208)]({'model':{'key':_0x38eb0(0x210),'value':_0x4f3502=>_0x4f3502[_0x38eb0(0x20c)](_0x38eb0(0x206))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5ad71a=_0x505b27[_0x38eb0(0x20a)][_0x38eb0(0x202)](_0x38eb0(0x1f9));_0x5ad71a&&this[_0x38eb0(0x1db)](_0x5ad71a,_0x38eb0(0x1ec),(_0x1b344c,[_0x325998,_0x44cb6a])=>{const _0x39cf66=_0x38eb0;_0x325998[_0x39cf66(0x215)](_0x39cf66(0x210),_0x44cb6a);});}[_0x33a3cb(0x1e7)](){const _0x402581=_0x33a3cb,_0x1faaf3=this[_0x402581(0x1e5)][_0x402581(0x1ee)][_0x402581(0x202)](_0x402581(0x1cf))||{},_0x25b530=this[_0x402581(0x1e5)][_0x402581(0x1ee)][_0x402581(0x202)](_0x402581(0x20d))||'';this[_0x402581(0x1d2)]=_0x2191d6(_0xb8b24b[_0x402581(0x1cc)],_0x402581(0x1fa),{..._0x1faaf3,'pubkey':_0x25b530,'ctx-name':_0x402581(0x1e4),'sourceList':'','imgOnly':_0x402581(0x1f4),'removeCopyright':_0x402581(0x1f4),'localeName':this[_0x402581(0x1e5)][_0x402581(0x20f)][_0x402581(0x1fe)],'externalSourcesEmbedCss':_0x402581(0x1d6)}),this[_0x402581(0x1d2)][_0x402581(0x204)]=_0x51cc23=>{const _0x562b1c=_0x402581;if(_0x562b1c(0x1d1)==_0x51cc23)return _0x562b1c(0x1df);},_0xb8b24b[_0x402581(0x1cc)][_0x402581(0x211)][_0x402581(0x1c8)](this[_0x402581(0x1d2)]);}[_0x33a3cb(0x1d5)](){const _0x122585=_0x33a3cb;this[_0x122585(0x1ca)]=_0x2191d6(_0xb8b24b[_0x122585(0x1cc)],_0x122585(0x1c9),{'ctx-name':_0x122585(0x1e4)}),_0xb8b24b[_0x122585(0x1cc)][_0x122585(0x211)][_0x122585(0x1c8)](this[_0x122585(0x1ca)]);}[_0x33a3cb(0x1fc)](){const _0x4018e4=_0x33a3cb,_0x356a4a=this[_0x4018e4(0x1e5)][_0x4018e4(0x20a)][_0x4018e4(0x202)](_0x4018e4(0x1f0));_0x356a4a&&this[_0x4018e4(0x1db)](_0x356a4a,_0x4018e4(0x1e1),()=>{const _0x54ca54=_0x4018e4,_0x3bf08d=this[_0x54ca54(0x1e5)][_0x54ca54(0x1e0)][_0x54ca54(0x1cc)][_0x54ca54(0x1e2)][_0x54ca54(0x214)]();_0x3bf08d&&_0x3bf08d[_0x54ca54(0x20c)](_0x54ca54(0x210))&&this[_0x54ca54(0x1e5)][_0x54ca54(0x1ef)][_0x54ca54(0x1d7)][_0x54ca54(0x1ea)](_0x54ca54(0x20e),()=>{const _0x59f3d6=_0x54ca54;_0x2a8806(this[_0x59f3d6(0x1e5)],_0x3bf08d);});});const _0x17d39a=this[_0x4018e4(0x1e5)][_0x4018e4(0x20a)][_0x4018e4(0x202)](_0x4018e4(0x1c7));_0x17d39a&&this[_0x4018e4(0x1db)](_0x17d39a,_0x4018e4(0x1e1),()=>{const _0x2dc9b7=_0x4018e4,_0x2a8e84=this[_0x2dc9b7(0x1e5)][_0x2dc9b7(0x1e0)][_0x2dc9b7(0x1cc)][_0x2dc9b7(0x1e2)][_0x2dc9b7(0x214)]();_0x2a8e84&&_0x2a8e84[_0x2dc9b7(0x20c)](_0x2dc9b7(0x210))&&this[_0x2dc9b7(0x1e5)][_0x2dc9b7(0x1ef)][_0x2dc9b7(0x1d7)][_0x2dc9b7(0x1ea)](_0x2dc9b7(0x20e),()=>{const _0x2085cc=_0x2dc9b7;_0x2a8806(this[_0x2085cc(0x1e5)],_0x2a8e84);});});}}
23
+ const _0x56cf66=_0x2520;(function(_0x125005,_0xdcef91){const _0x262f7e=_0x2520,_0xb66584=_0x125005();while(!![]){try{const _0x439f66=parseInt(_0x262f7e(0x12f))/0x1*(-parseInt(_0x262f7e(0x14a))/0x2)+-parseInt(_0x262f7e(0x16f))/0x3+-parseInt(_0x262f7e(0x133))/0x4+parseInt(_0x262f7e(0x12c))/0x5+parseInt(_0x262f7e(0x164))/0x6+-parseInt(_0x262f7e(0x125))/0x7*(parseInt(_0x262f7e(0x15b))/0x8)+parseInt(_0x262f7e(0x14b))/0x9;if(_0x439f66===_0xdcef91)break;else _0xb66584['push'](_0xb66584['shift']());}catch(_0x365780){_0xb66584['push'](_0xb66584['shift']());}}}(_0x1f56,0x43776));import{Plugin as _0x452a75}from'ckeditor5/src/core.js';function _0x2520(_0x4b8da2,_0x3c9bd6){const _0x1f56ca=_0x1f56();return _0x2520=function(_0x252066,_0x4f285c){_0x252066=_0x252066-0x11d;let _0x282399=_0x1f56ca[_0x252066];return _0x282399;},_0x2520(_0x4b8da2,_0x3c9bd6);}import{Dialog as _0x3b2687}from'ckeditor5/src/ui.js';import{createElement as _0x4840f9,global as _0x1ce684,uid as _0x3adf9d}from'ckeditor5/src/utils.js';import _0x5a9632 from'./uploadcarecommand.js';function _0x1f56(){const _0x260370=['_ctxElement','closeMax','input[uploadcare-file-input]','uploadcare.uploader','removeAttribute','true','162068QmVSqm','9558990tlFuuD','schema','commands','contentLanguage','#uc-icon-arrow-down','editing','uc-upload-ctx-provider','ctxElement','imageBlock','requires','uploadcareImageId','attributeToAttribute','afterInit','fromCharCode','pluginName','render','8wNkhWe','isOfficialPlugin','listenTo','imageInline','_initCtx','isPremiumPlugin','locale','getSelectedElement','cleanupImage','584268OilAiq','getAttribute','once','for','appendChild','conversion','uploadcare','PictureEditing','get','_initSchema','insertImage','1277352sGiCDP','upcast','uploadcare.pubkey','execute','document','extend','_initImageProcessingIndicator','uc-config','uploadcareImageReplace','441147BvloCe','_initConversion','replaceImageSource','model','add','_initConfig','querySelector','148065TJjVxg','join','elementToAttribute','2CCPcBX','map','view','isRegistered','1047544aennml','\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','configElement','downcast','destroy','data-uc-image-id','uploader','_configElement','selection','remove','href','body','init','UploadcareEditing','iconHrefResolver','editor','config'];_0x1f56=function(){return _0x260370;};return _0x1f56();}import _0x36ed48 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x19c6b1}from'./utils/editingutils.js';export default class i extends _0x452a75{[_0x56cf66(0x13a)]=null;[_0x56cf66(0x144)]=null;static get[_0x56cf66(0x159)](){const _0x3c8e5e=_0x56cf66;return _0x3c8e5e(0x140);}static get[_0x56cf66(0x154)](){const _0x4c590e=_0x56cf66;return[_0x4c590e(0x16b),_0x36ed48,_0x3b2687];}static get[_0x56cf66(0x15c)](){return!0x0;}static get[_0x56cf66(0x160)](){return!0x0;}get[_0x56cf66(0x135)](){const _0x46788f=_0x56cf66;return this[_0x46788f(0x13a)];}get[_0x56cf66(0x152)](){const _0x1dbcbf=_0x56cf66;return this[_0x1dbcbf(0x144)];}[_0x56cf66(0x13f)](){const _0x5852f3=_0x56cf66,_0x1bf461=this[_0x5852f3(0x142)];_0x1bf461[_0x5852f3(0x14d)][_0x5852f3(0x129)](_0x5852f3(0x16a),new _0x5a9632(_0x1bf461));}[_0x56cf66(0x157)](){const _0x57914c=_0x56cf66;this[_0x57914c(0x16d)](),this[_0x57914c(0x126)](),this[_0x57914c(0x12a)](),this[_0x57914c(0x15f)](),this[_0x57914c(0x122)](),this[_0x57914c(0x15d)](this[_0x57914c(0x142)],_0x57914c(0x137),()=>{const _0x4d36a0=_0x57914c;this[_0x4d36a0(0x13a)]&&(this[_0x4d36a0(0x13a)][_0x4d36a0(0x13c)](),this[_0x4d36a0(0x13a)]=null),this[_0x4d36a0(0x144)]&&(this[_0x4d36a0(0x144)][_0x4d36a0(0x13c)](),this[_0x4d36a0(0x144)]=null);const _0x15da63=_0x1ce684[_0x4d36a0(0x120)][_0x4d36a0(0x12b)](_0x4d36a0(0x146));_0x15da63&&_0x15da63[_0x4d36a0(0x13c)]();}),async function(_0x2dcc0c){const _0x2fb0cb=_0x3b1e28([0x34,0x4f,0x33,0x6a,0x65,0x47,0x4a,0x4c,0x61,0x56,0x4d,0x52,0x57,0x6b,0x6c,0x39,0x35,0x48,0x6d,0x4b,0x37,0x59,0x70,0x6f,0x63,0x78,0x49,0x30,0x54,0x58,0x32,0x73,0x68,0x31,0x44,0x41,0x4e,0x43,0x76,0x66,0x55,0x53,0x50,0x51,0x46,0x36,0x75,0x69,0x7a,0x79,0x6e,0x77,0x67,0x42,0x71,0x62,0x45,0x38,0x5a,0x64,0x74,0x72]),_0x4a2760=0x7a518d21,_0x2cab19=0x7a56ed49^_0x4a2760,_0xff4ba4=window[_0x3b1e28([0x44,0x61,0x74,0x65])][_0x3b1e28([0x6e,0x6f,0x77])](),_0x357c7d=_0x2dcc0c[_0x3b1e28([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b3cd8=new window[(_0x3b1e28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x102fbc=>{_0x357c7d[_0x3b1e28([0x6f,0x6e,0x63,0x65])](_0x3b1e28([0x72,0x65,0x61,0x64,0x79]),_0x102fbc);}),_0x4e0c8f={[_0x3b1e28([0x6b,0x74,0x79])]:_0x3b1e28([0x45,0x43]),[_0x3b1e28([0x75,0x73,0x65])]:_0x3b1e28([0x73,0x69,0x67]),[_0x3b1e28([0x63,0x72,0x76])]:_0x3b1e28([0x50,0x2d,0x32,0x35,0x36]),[_0x3b1e28([0x78])]:_0x3b1e28([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]),[_0x3b1e28([0x79])]:_0x3b1e28([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]),[_0x3b1e28([0x61,0x6c,0x67])]:_0x3b1e28([0x45,0x53,0x32,0x35,0x36])},_0x38a858=_0x357c7d[_0x3b1e28([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b1e28([0x67,0x65,0x74])](_0x3b1e28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d87ef(){let _0x3463ae,_0x43bc15=null,_0x1164f3=null;try{if(_0x38a858==_0x3b1e28([0x47,0x50,0x4c]))return _0x3b1e28([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3463ae=_0x374278(),!_0x3463ae)return _0x3b1e28([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3463ae[_0x3b1e28([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1164f3=_0x33cb09(_0x3463ae[_0x3b1e28([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3463ae[_0x3b1e28([0x6a,0x74,0x69])])),await _0x30b819()?_0x25af70()?_0x5e5243()?_0x3b1e28([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x390b09()?(_0x3463ae[_0x3b1e28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b1e28([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x43bc15=_0x341192(_0x3b1e28([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3463ae[_0x3b1e28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b1e28([0x74,0x72,0x69,0x61,0x6c])&&(_0x43bc15=_0x341192(_0x3b1e28([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x203a00()):_0x3b1e28([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b1e28([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b1e28([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4dbf2b){return _0x3b1e28([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5e5243(){const _0x1c06e3=[_0x3b1e28([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b1e28([0x74,0x72,0x69,0x61,0x6c])][_0x3b1e28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3463ae[_0x3b1e28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xff4ba4/0x3e8:0xe10*_0x2cab19;return _0x3463ae[_0x3b1e28([0x65,0x78,0x70])]<_0x1c06e3;}function _0x25af70(){const _0xc132f9=_0x3463ae[_0x3b1e28([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xc132f9&&(!!_0xc132f9[_0x3b1e28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b1e28([0x2a]))||!!_0xc132f9[_0x3b1e28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b1e28([0x55,0x50,0x4c,0x43])));}function _0x390b09(){const _0x4ac69e=_0x2520,_0x7c446=_0x3463ae[_0x3b1e28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x7c446||0x0==_0x7c446[_0x3b1e28([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x23c510}=new URL(window[_0x3b1e28([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4ac69e(0x13d)]);if(_0x7c446[_0x3b1e28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23c510))return!0x0;const _0x5d845c=_0x23c510[_0x3b1e28([0x73,0x70,0x6c,0x69,0x74])](_0x3b1e28([0x2e]));return _0x7c446[_0x3b1e28([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4d5047=>_0x4d5047[_0x3b1e28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b1e28([0x2a])))[_0x3b1e28([0x6d,0x61,0x70])](_0x249845=>_0x249845[_0x3b1e28([0x73,0x70,0x6c,0x69,0x74])](_0x3b1e28([0x2e])))[_0x3b1e28([0x73,0x6f,0x6d,0x65])](_0x4ecf38=>_0x5d845c[_0x3b1e28([0x65,0x76,0x65,0x72,0x79])]((_0x5b5533,_0x5a71e0)=>_0x4ecf38[_0x5a71e0]===_0x5b5533||_0x4ecf38[_0x5a71e0]===_0x3b1e28([0x2a])));}function _0x203a00(){return _0x43bc15&&_0x1164f3?new window[(_0x3b1e28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e8eb3,_0x59dce6)=>{_0x43bc15[_0x3b1e28([0x74,0x68,0x65,0x6e])](_0x5e8eb3,_0x59dce6),_0x1164f3[_0x3b1e28([0x74,0x68,0x65,0x6e])](_0x4fe41e=>{_0x4fe41e!=_0x3b1e28([0x56,0x61,0x6c,0x69,0x64])&&_0x5e8eb3(_0x4fe41e);},_0x59dce6);}):_0x43bc15||_0x1164f3||_0x3b1e28([0x56,0x61,0x6c,0x69,0x64]);}}function _0x33cb09(_0x34af4f,_0x603bbf){return new window[(_0x3b1e28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24d962=>{if(_0x375ca1())return _0x24d962(_0x3b1e28([0x56,0x61,0x6c,0x69,0x64]));_0x2fa4e7(),_0x357c7d[_0x3b1e28([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b1e28([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f833e=!0x1;const _0x53b76d=_0x3adf9d();function _0x320ecf(_0x25ab94){return!!_0x25ab94&&(typeof _0x25ab94===_0x3b1e28([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x25ab94===_0x3b1e28([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x25ab94[_0x3b1e28([0x74,0x68,0x65,0x6e])]===_0x3b1e28([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x25ab94[_0x3b1e28([0x63,0x61,0x74,0x63,0x68])]===_0x3b1e28([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2fe33b(_0x22840e){_0x3cd40c(_0x22840e)[_0x3b1e28([0x74,0x68,0x65,0x6e])](_0x7b30f3=>{if(!_0x7b30f3||_0x7b30f3[_0x3b1e28([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b1e28([0x6f,0x6b]))return _0x3b1e28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2130f(_0x13c3a8(_0x53b76d+_0x603bbf))!=_0x7b30f3[_0x3b1e28([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b1e28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b1e28([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b1e28([0x74,0x68,0x65,0x6e])](_0x244ccc=>(_0x582259(),_0x244ccc),()=>{const _0x553540=_0x2e2bab();return null==_0x553540?(_0x582259(),_0x3b1e28([0x56,0x61,0x6c,0x69,0x64])):_0x3b1e28(_0xff4ba4-_0x553540>(0x5e5d0921^_0x4a2760)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b1e28([0x74,0x68,0x65,0x6e])](_0x24d962)[_0x3b1e28([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24d962(_0x3b1e28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2d3dee=0x7a6763a1^_0x4a2760;function _0x582259(){const _0x5da311=_0x3b1e28([0x6c,0x6c,0x63,0x74,0x2d])+_0x2130f(_0x13c3a8(_0x34af4f)),_0x4fdcdb=_0x35beaa(_0x2130f(window[_0x3b1e28([0x4d,0x61,0x74,0x68])][_0x3b1e28([0x63,0x65,0x69,0x6c])](_0xff4ba4/_0x2d3dee)));window[_0x3b1e28([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b1e28([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5da311,_0x4fdcdb);}function _0x2e2bab(){const _0x52220d=_0x3b1e28([0x6c,0x6c,0x63,0x74,0x2d])+_0x2130f(_0x13c3a8(_0x34af4f)),_0x47ca8c=window[_0x3b1e28([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b1e28([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52220d);return _0x47ca8c?window[_0x3b1e28([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35beaa(_0x47ca8c),0x10)*_0x2d3dee:null;}function _0x3cd40c(_0x33b01d){return new window[(_0x3b1e28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xec4bcf,_0x3de029)=>{_0x33b01d[_0x3b1e28([0x74,0x68,0x65,0x6e])](_0xec4bcf,_0x3de029),window[_0x3b1e28([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3de029,0x7a5059e1^_0x4a2760);});}}_0x357c7d[_0x3b1e28([0x6f,0x6e])](_0x3b1e28([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3e786c,_0x3d5f57)=>{if(_0x3d5f57[0x0]!=_0x34af4f)return _0x24d962(_0x3b1e28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d5f57[0x1]={..._0x3d5f57[0x1],[_0x3b1e28([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x53b76d};},{[_0x3b1e28([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b1e28([0x68,0x69,0x67,0x68])}),_0x357c7d[_0x3b1e28([0x6f,0x6e])](_0x3b1e28([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x17f417=>{_0x320ecf(_0x17f417[_0x3b1e28([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f833e=!0x0,_0x2fe33b(_0x17f417[_0x3b1e28([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b1e28([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b1e28([0x6c,0x6f,0x77])}),_0x5b3cd8[_0x3b1e28([0x74,0x68,0x65,0x6e])](()=>{_0x3f833e||_0x24d962(_0x3b1e28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x375ca1(){return _0x357c7d[_0x3b1e28([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b1e28([0x76,0x69,0x65,0x77])][_0x3b1e28([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b1e28([0x61,0x75,0x74,0x6f]);}function _0x2fa4e7(){_0x357c7d[_0x3b1e28([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b1e28([0x76,0x69,0x65,0x77])][_0x3b1e28([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b1e28([0x61,0x75,0x74,0x6f]);}}function _0x341192(_0x38b8ff){const _0x47ee29=[new window[(_0x3b1e28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f4384=>setTimeout(_0x1f4384,0x7a58b3ed^_0x4a2760)),_0x5b3cd8[_0x3b1e28([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b1e28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x523aaf=>{let _0x51b0da=0x0;_0x357c7d[_0x3b1e28([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b1e28([0x6f,0x6e])](_0x3b1e28([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3bcaeb,_0x17ae68)=>{_0x17ae68[0x0][_0x3b1e28([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x51b0da++,_0x51b0da==(0x7a518cd9^_0x4a2760)&&(_0x523aaf(),_0x3bcaeb[_0x3b1e28([0x6f,0x66,0x66])]());});}))];return window[_0x3b1e28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b1e28([0x72,0x61,0x63,0x65])](_0x47ee29)[_0x3b1e28([0x74,0x68,0x65,0x6e])](()=>_0x38b8ff);}async function _0x3f4ec1(){await _0x5b3cd8,_0x357c7d[_0x3b1e28([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b1e28([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5cd869,_0x357c7d[_0x3b1e28([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b1e28([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5cd869,_0x357c7d[_0x3b1e28([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b1e28([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x14ad2f(_0x298588){const _0x2e8281=_0x243508();_0x357c7d[_0x2e8281]=_0x3b1e28([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x298588,_0x298588!=_0x3b1e28([0x56,0x61,0x6c,0x69,0x64])&&_0x3f4ec1();}function _0x243508(){const _0x543475=window[_0x3b1e28([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b1e28([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b1e28([0x6e,0x6f,0x77])]())[_0x3b1e28([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b1e28([0x2e]),'');let _0x1e5078=_0x3b1e28([0x4f]);for(let _0x5b16dd=0x0;_0x5b16dd<_0x543475[_0x3b1e28([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b16dd+=0x2){let _0x45e6ad=window[_0x3b1e28([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x543475[_0x3b1e28([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b16dd,_0x5b16dd+0x2));_0x45e6ad>=_0x2fb0cb[_0x3b1e28([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45e6ad-=_0x2fb0cb[_0x3b1e28([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1e5078+=_0x2fb0cb[_0x45e6ad];}return _0x1e5078;}function _0x374278(){const _0xc2dcf1=_0x38a858[_0x3b1e28([0x73,0x70,0x6c,0x69,0x74])](_0x3b1e28([0x2e]));if(0x3!=_0xc2dcf1[_0x3b1e28([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x8ad042(_0xc2dcf1[0x1]);function _0x8ad042(_0x5e9aeb){const _0x55d0fa=_0xf65741(_0x5e9aeb);return _0x55d0fa&&_0x3e061c()?_0x55d0fa:null;function _0x3e061c(){const _0x497922=_0x55d0fa[_0x3b1e28([0x6a,0x74,0x69])],_0x3b9a38=window[_0x3b1e28([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x497922[_0x3b1e28([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x497922[_0x3b1e28([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e3c8a={..._0x55d0fa,[_0x3b1e28([0x6a,0x74,0x69])]:_0x497922[_0x3b1e28([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x497922[_0x3b1e28([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e3c8a[_0x3b1e28([0x76,0x63])],_0x13c3a8(_0x2e3c8a)==_0x3b9a38;}}}async function _0x30b819(){let _0x408964=!0x0;try{const _0x5b4a41=_0x38a858[_0x3b1e28([0x73,0x70,0x6c,0x69,0x74])](_0x3b1e28([0x2e])),[_0x4aa57b,_0x41ef84,_0x4f5a3a]=_0x5b4a41;return _0x5faaa(_0x4aa57b),await _0x274132(_0x4aa57b,_0x41ef84,_0x4f5a3a),_0x408964;}catch(_0x15a5fe){return!0x1;}function _0x5faaa(_0x76119d){const _0x183424=_0xf65741(_0x76119d);_0x183424&&_0x183424[_0x3b1e28([0x61,0x6c,0x67])]==_0x3b1e28([0x45,0x53,0x32,0x35,0x36])||(_0x408964=!0x1);}async function _0x274132(_0x417a2d,_0x5a209e,_0x11f067){const _0x177717=window[_0x3b1e28([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b1e28([0x66,0x72,0x6f,0x6d])](_0x15da3c(_0x11f067),_0x1ab005=>_0x1ab005[_0x3b1e28([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x189d10=new window[(_0x3b1e28([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b1e28([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x417a2d+_0x3b1e28([0x2e])+_0x5a209e),_0x3a7bc8=window[_0x3b1e28([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b1e28([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3a7bc8)return;const _0x1b7a70=await _0x3a7bc8[_0x3b1e28([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b1e28([0x6a,0x77,0x6b]),_0x4e0c8f,{[_0x3b1e28([0x6e,0x61,0x6d,0x65])]:_0x3b1e28([0x45,0x43,0x44,0x53,0x41]),[_0x3b1e28([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b1e28([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b1e28([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3a7bc8[_0x3b1e28([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b1e28([0x6e,0x61,0x6d,0x65])]:_0x3b1e28([0x45,0x43,0x44,0x53,0x41]),[_0x3b1e28([0x68,0x61,0x73,0x68])]:{[_0x3b1e28([0x6e,0x61,0x6d,0x65])]:_0x3b1e28([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1b7a70,_0x177717,_0x189d10)||(_0x408964=!0x1);}}function _0xf65741(_0x2ac001){return _0x2ac001[_0x3b1e28([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b1e28([0x65,0x79]))?JSON[_0x3b1e28([0x70,0x61,0x72,0x73,0x65])](_0x15da3c(_0x2ac001)):null;}function _0x15da3c(_0x4ceafe){return window[_0x3b1e28([0x61,0x74,0x6f,0x62])](_0x4ceafe[_0x3b1e28([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b1e28([0x2b]))[_0x3b1e28([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b1e28([0x2f])));}function _0x13c3a8(_0x2cf3ea){let _0x25bcc7=0x1505;function _0x229d9c(_0x5ed81e){for(let _0x4c8fcd=0x0;_0x4c8fcd<_0x5ed81e[_0x3b1e28([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c8fcd++){const _0x25161d=_0x5ed81e[_0x3b1e28([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c8fcd);_0x25bcc7=(_0x25bcc7<<0x5)+_0x25bcc7+_0x25161d,_0x25bcc7&=_0x25bcc7;}}function _0x33b03b(_0x21ef6a){Array[_0x3b1e28([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x21ef6a)?_0x21ef6a[_0x3b1e28([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x33b03b):_0x21ef6a&&typeof _0x21ef6a==_0x3b1e28([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b1e28([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x21ef6a)[_0x3b1e28([0x73,0x6f,0x72,0x74])]()[_0x3b1e28([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1e8dc7,_0x4e4f32])=>{_0x229d9c(_0x1e8dc7),_0x33b03b(_0x4e4f32);}):_0x229d9c(window[_0x3b1e28([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x21ef6a));}return _0x33b03b(_0x2cf3ea),_0x25bcc7>>>0x0;}function _0x2130f(_0x41219d){return _0x41219d[_0x3b1e28([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b1e28([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b1e28([0x30]));}function _0x35beaa(_0x3333c6){return _0x3333c6[_0x3b1e28([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b1e28([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b1e28([0x6a,0x6f,0x69,0x6e])]('');}function _0x5cd869(){}function _0x3b1e28(_0x5dfc01){const _0x9c80ad=_0x2520;return _0x5dfc01[_0x9c80ad(0x130)](_0x55c866=>String[_0x9c80ad(0x158)](_0x55c866))[_0x9c80ad(0x12d)]('');}_0x14ad2f(await _0x5d87ef());}(this);}[_0x56cf66(0x16d)](){const _0x1c9e51=_0x56cf66,_0x4ef7d1=this[_0x1c9e51(0x142)][_0x1c9e51(0x128)][_0x1c9e51(0x14c)];_0x4ef7d1[_0x1c9e51(0x132)](_0x1c9e51(0x153))&&_0x4ef7d1[_0x1c9e51(0x121)](_0x1c9e51(0x153),{'allowAttributes':[_0x1c9e51(0x155)]}),_0x4ef7d1[_0x1c9e51(0x132)](_0x1c9e51(0x15e))&&_0x4ef7d1[_0x1c9e51(0x121)](_0x1c9e51(0x15e),{'allowAttributes':[_0x1c9e51(0x155)]});}[_0x56cf66(0x126)](){const _0x9bb09=_0x56cf66,_0x7f4561=this[_0x9bb09(0x142)];_0x7f4561[_0x9bb09(0x169)][_0x9bb09(0x167)](_0x9bb09(0x136))[_0x9bb09(0x156)]({'model':_0x9bb09(0x155),'view':_0x9bb09(0x138)}),_0x7f4561[_0x9bb09(0x169)][_0x9bb09(0x167)](_0x9bb09(0x11d))[_0x9bb09(0x12e)]({'model':{'key':_0x9bb09(0x155),'value':_0x21adc8=>_0x21adc8[_0x9bb09(0x165)](_0x9bb09(0x138))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x232c22=_0x7f4561[_0x9bb09(0x14d)][_0x9bb09(0x16c)](_0x9bb09(0x127));_0x232c22&&this[_0x9bb09(0x15d)](_0x232c22,_0x9bb09(0x163),(_0x5d8102,[_0x173a89,_0x4dd1b2])=>{const _0x2edd28=_0x9bb09;_0x173a89[_0x2edd28(0x148)](_0x2edd28(0x155),_0x4dd1b2);});}[_0x56cf66(0x12a)](){const _0x14c046=_0x56cf66,_0x4fb57f=this[_0x14c046(0x142)][_0x14c046(0x143)][_0x14c046(0x16c)](_0x14c046(0x147))||{},_0x1ea874=this[_0x14c046(0x142)][_0x14c046(0x143)][_0x14c046(0x16c)](_0x14c046(0x11e))||'';this[_0x14c046(0x13a)]=_0x4840f9(_0x1ce684[_0x14c046(0x120)],_0x14c046(0x123),{..._0x4fb57f,'pubkey':_0x1ea874,'ctx-name':_0x14c046(0x139),'sourceList':'','imgOnly':_0x14c046(0x149),'removeCopyright':_0x14c046(0x149),'localeName':this[_0x14c046(0x142)][_0x14c046(0x161)][_0x14c046(0x14e)],'externalSourcesEmbedCss':_0x14c046(0x134)}),this[_0x14c046(0x13a)][_0x14c046(0x141)]=_0x2a1618=>{const _0x319ef3=_0x14c046;if(_0x319ef3(0x145)==_0x2a1618)return _0x319ef3(0x14f);},_0x1ce684[_0x14c046(0x120)][_0x14c046(0x13e)][_0x14c046(0x168)](this[_0x14c046(0x13a)]);}[_0x56cf66(0x15f)](){const _0x2c741b=_0x56cf66;this[_0x2c741b(0x144)]=_0x4840f9(_0x1ce684[_0x2c741b(0x120)],_0x2c741b(0x151),{'ctx-name':_0x2c741b(0x139)}),_0x1ce684[_0x2c741b(0x120)][_0x2c741b(0x13e)][_0x2c741b(0x168)](this[_0x2c741b(0x144)]);}[_0x56cf66(0x122)](){const _0x522ce5=_0x56cf66,_0x449fb7=this[_0x522ce5(0x142)][_0x522ce5(0x14d)][_0x522ce5(0x16c)](_0x522ce5(0x16e));_0x449fb7&&this[_0x522ce5(0x15d)](_0x449fb7,_0x522ce5(0x11f),()=>{const _0xdea683=_0x522ce5,_0x1c1063=this[_0xdea683(0x142)][_0xdea683(0x128)][_0xdea683(0x120)][_0xdea683(0x13b)][_0xdea683(0x162)]();_0x1c1063&&_0x1c1063[_0xdea683(0x165)](_0xdea683(0x155))&&this[_0xdea683(0x142)][_0xdea683(0x150)][_0xdea683(0x131)][_0xdea683(0x166)](_0xdea683(0x15a),()=>{const _0x3c3fcb=_0xdea683;_0x19c6b1(this[_0x3c3fcb(0x142)],_0x1c1063);});});const _0x2fac61=this[_0x522ce5(0x142)][_0x522ce5(0x14d)][_0x522ce5(0x16c)](_0x522ce5(0x124));_0x2fac61&&this[_0x522ce5(0x15d)](_0x2fac61,_0x522ce5(0x11f),()=>{const _0x26de24=_0x522ce5,_0x5e2655=this[_0x26de24(0x142)][_0x26de24(0x128)][_0x26de24(0x120)][_0x26de24(0x13b)][_0x26de24(0x162)]();_0x5e2655&&_0x5e2655[_0x26de24(0x165)](_0x26de24(0x155))&&this[_0x26de24(0x142)][_0x26de24(0x150)][_0x26de24(0x131)][_0x26de24(0x166)](_0x26de24(0x15a),()=>{const _0x1e0bd8=_0x26de24;_0x19c6b1(this[_0x1e0bd8(0x142)],_0x5e2655);});});}}