@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251121.0 → 0.0.0-nightly-20251123.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 _0x443f5c,Command as _0x57a68a}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x114eb9,IconGooglePhotos as _0x57984f,IconGoogleDrive as _0x909c29,IconFacebook as _0x4bc50f,IconDropbox as _0x412fbf,IconUploadcareLink as _0x43b16f,IconUploadcareImageUpload as _0x185b63,IconError as _0x100bd6,IconUploadcareImageEdit as _0x576c90}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x286d0a,MenuBarMenuListItemButtonView as _0x27997f,View as _0x2cd9eb,FocusCycler as _0x4938e6,Dialog as _0x9884e,DialogViewPosition as _0x52a94c,SpinnerView as _0xeaea56,IconView as _0x6a5aea,Notification as _0x4bc154}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x28c70b,DomEmitterMixin as _0x428e92,global as _0x138a30,getAncestors as _0x2497b1,ObservableMixin as _0x4187a9,uid as _0x2c62ef,createElement as _0x26334c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1fb0c1}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2061b0,info as _0xcea7fa}from'@uploadcare/upload-client';import*as _0x4c3e66 from'@uploadcare/file-uploader';var i=function(_0x6a42df){return _0x6a42df['Local']='local',_0x6a42df['URL']='url',_0x6a42df['Dropbox']='dropbox',_0x6a42df['GDrive']='gdrive',_0x6a42df['Facebook']='facebook',_0x6a42df['GPhotos']='gphotos',_0x6a42df['OneDrive']='onedrive',_0x6a42df;}({});function _(_0x2afd42,_0x45420c,_0x1598fa){const t=_0x2afd42['t'],_0x51bf8e=_0x2afd42['t'];switch(_0x45420c){case i['Local']:return{'text':_0x51bf8e('Insert'===_0x1598fa?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x51bf8e('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x1598fa?_0x51bf8e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x51bf8e('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x1598fa?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x1598fa?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x1598fa?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x1598fa?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x1598fa?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x45420c;}}class e extends _0x443f5c{['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 _0x52d70d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3ad883;for(const _0x16003b in _0x52d70d){const _0x463460=_0x16003b,_0x4190fd=_0x52d70d[_0x463460];if('uploadcareLicenseKeyValid'==_0x4190fd||'uploadcareLicenseKeyInvalid'==_0x4190fd||'uploadcareLicenseKeyExpired'==_0x4190fd||'uploadcareLicenseKeyDomainLimit'==_0x4190fd||'uploadcareLicenseKeyNotAllowed'==_0x4190fd||'uploadcareLicenseKeyEvaluationLimit'==_0x4190fd||'uploadcareLicenseKeyTrialLimit'==_0x4190fd||'uploadcareLicenseKeyUsageLimit'==_0x4190fd){delete _0x52d70d[_0x463460],_0x3ad883=_0x4190fd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3ad883&&_0x52d70d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3ad883&&_0x52d70d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3ad883&&_0x52d70d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3ad883&&_0x52d70d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3ad883&&_0x52d70d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3ad883&&_0x52d70d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3ad883&&_0x52d70d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4a3cfe}=this,_0x259b68=_0x4a3cfe['commands']['get']('uploadcare');if(!_0x259b68)return;const _0x3176eb=this['_normalizeConfigSourceList'](_0x4a3cfe['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5c719f,_0x29d381)=>{const _0x429155=this['_getIntegrationKey'](_0x29d381['type']);return _0x5c719f[_0x429155]||(_0x5c719f[_0x429155]=[]),_0x5c719f[_0x429155]['push'](_0x29d381),_0x5c719f;},{});_0x4a3cfe['plugins']['has']('ImageInsertUI')&&_0x4a3cfe['commands']['get']('uploadcare')&&Object['entries'](_0x3176eb)['forEach'](([_0x2676f4,_0x583391])=>{_0x4a3cfe['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2676f4,'observable':()=>_0x259b68,'buttonViewCreator':()=>this['_createToolbarButton'](_0x583391),'formViewCreator':()=>this['_createDropdownButtons'](_0x583391),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x583391),'override':'assetManager'!==_0x2676f4});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x424732){const {locale:_0x2d9e0c}=this['editor'];return _0x424732['map'](_0x470744=>{const _0x461030=_(_0x2d9e0c,_0x470744,'Insert');switch(_0x470744){case i['Local']:return{'icon':_0x185b63,'type':i['Local'],..._0x461030};case i['URL']:return{'icon':_0x43b16f,'type':i['URL'],..._0x461030};case i['Dropbox']:return{'icon':_0x412fbf,'type':i['Dropbox'],..._0x461030};case i['Facebook']:return{'icon':_0x4bc50f,'type':i['Facebook'],..._0x461030};case i['GDrive']:return{'icon':_0x909c29,'type':i['GDrive'],..._0x461030};case i['GPhotos']:return{'icon':_0x57984f,'type':i['GPhotos'],..._0x461030};case i['OneDrive']:return{'icon':_0x114eb9,'type':i['OneDrive'],..._0x461030};}});}['_getIntegrationKey'](_0x135ce8){switch(_0x135ce8){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xc7fdf,_0x5e06ab){const _0x613a7d=this['editor'],_0x2d8621=new _0xc7fdf(_0x613a7d['locale']),_0x500d2f=_0x613a7d['commands']['get']('uploadcare');return _0x2d8621['bind']('isEnabled')['to'](_0x500d2f),_0x2d8621['on']('execute',()=>{_0x500d2f['execute'](_0x5e06ab);}),_0x2d8621;}['_createToolbarButton'](_0x4b00d4){const {locale:_0x37f11c}=this['editor'],_0x59d1ff=this['editor']['plugins']['get']('ImageInsertUI'),_0x1a3564=_0x4b00d4[0x0],_0x24b88b=this['_createButton'](_0x286d0a,_0x1a3564['type']);return _0x24b88b['icon']=_0x1a3564['icon'],_0x24b88b['bind']('label')['to'](_0x59d1ff,'isImageSelected',_0x482f19=>_(_0x37f11c,_0x1a3564['type'],_0x482f19?'Replace':'Insert')['text']),_0x24b88b['tooltip']=!0x0,_0x24b88b;}['_createDropdownButtons'](_0xadf7a4){const {locale:_0x3468bc}=this['editor'],_0x352330=this['editor']['plugins']['get']('ImageInsertUI');return _0xadf7a4['map'](_0x17dc53=>{const _0x325564=this['_createButton'](_0x286d0a,_0x17dc53['type']);return _0x325564['withText']=!0x0,_0x325564['icon']=_0x17dc53['icon'],_0x325564['bind']('label')['to'](_0x352330,'isImageSelected',_0x31c990=>_(_0x3468bc,_0x17dc53['type'],_0x31c990?'Replace':'Insert')['text']),_0x325564;});}['_createMenuBarButtons'](_0x3a23e9){return _0x3a23e9['map'](_0x10dd7b=>{const _0x30fc4=this['_createButton'](_0x27997f,_0x10dd7b['type']);return _0x30fc4['icon']=_0x10dd7b['icon'],_0x30fc4['label']=_0x10dd7b['shortText'],_0x30fc4;});}}class F extends _0x2cd9eb{['focusTracker'];['focusCycler'];constructor(_0x13c2e8){super(_0x13c2e8),this['focusTracker']=new _0x28c70b(),this['focusCycler']=new _0x4938e6({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x5ce958,_0x525fdf){super(_0x5ce958),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-'+_0x525fdf}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x4db595,_0x4871d1){const _0x2b1109=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3c68d8=>_0x3c68d8<=_0x4871d1)['map'](_0x669e1a=>_0x4db595['replace'](/\/$/,'')+'/-/resize/'+_0x669e1a+'x/\x20'+_0x669e1a+'w');return{'imageFallbackUrl':_0x4db595,'imageSources':[{'srcset':_0x2b1109['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4871d1+'px)\x20100vw,\x20'+_0x4871d1+'px','type':'image/webp'}]};}function S(_0x8e9e80,_0x4c510f,_0x4ca568){const _0x314c68=_0x8e9e80['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x314c68?parseInt(_0x314c68[0x1],0xa):_0x4c510f,'height':_0x314c68?parseInt(_0x314c68[0x2],0xa):_0x4ca568};}function p(_0x537c33,_0x5534e9){const _0x157cea=new(_0x428e92())(),_0x24ba5e=_0x537c33['plugins']['get']('ImageUtils'),_0x32bd31=_0x537c33['editing']['mapper']['toViewElement'](_0x5534e9),_0x8bd303=_0x24ba5e['findViewImgElement'](_0x32bd31),_0xed98a3=_0x537c33['editing']['view']['domConverter']['viewToDom'](_0x8bd303),_0x276455=_0x5534e9['getAttribute']('width'),_0x483368=_0x5534e9['getAttribute']('height'),_0x20e7c1='image-processing';_0x537c33['editing']['view']['change'](_0x5bd20f=>{_0x5bd20f['addClass'](_0x20e7c1,_0x32bd31),_0x5bd20f['setStyle']('aspect-ratio',_0x276455+'/'+_0x483368,_0x8bd303);}),_0x157cea['listenTo'](_0xed98a3,'load',()=>{_0x157cea['stopListening'](_0xed98a3,'load'),_0x537c33['editing']['view']['change'](_0x3081d4=>{_0x3081d4['removeClass'](_0x20e7c1,_0x32bd31),_0x3081d4['removeStyle']('aspect-ratio',_0x8bd303);});});}function G(_0x54d9a7){if(Array['isArray'](_0x54d9a7)){const _0x5970ac=_0x54d9a7['map'](G);return _0x3a4efe=>_0x5970ac['some'](_0x15f973=>_0x15f973(_0x3a4efe));}if('origin'==_0x54d9a7){const _0x1d3702=_0x138a30['window']['location']['origin'];return _0x1683bb=>new URL(_0x1683bb,_0x138a30['document']['baseURI'])['origin']==_0x1d3702;}return'function'==typeof _0x54d9a7?_0x54d9a7:_0x54d9a7 instanceof RegExp?_0x5c6665=>!(!_0x5c6665['match'](_0x54d9a7)&&!_0x5c6665['replace'](/^https?:\/\//,'')['match'](_0x54d9a7)):()=>!0x1;}function A(_0x1a3a94,_0x1fcdfa){return _0x2497b1(_0x1a3a94['target'])['includes'](_0x1fcdfa);}class n extends/* #__PURE__ -- @preserve */
24
- _0x4187a9(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x563a85,_0x1d7e1f,_0x3f5379){super(),this['_editor']=_0x563a85,this['_editing']=_0x1d7e1f,this['_dialog']=_0x563a85['plugins']['get'](_0x9884e),this['_api']=_0x1d7e1f['ctxElement']['getAPI'](),this['_type']=_0x3f5379,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:_0x4f930d,model:_0x454ea5}=this['_editor'],_0x290a3e=_0x454ea5['document']['selection']['getSelectedElement'](),_0x510fea=_0x290a3e&&(_0x290a3e['is']('element','imageBlock')||_0x290a3e['is']('element','imageInline'));this['_formView']=new x(_0x4f930d,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x185b63,'title':_(_0x4f930d,this['_type'],_0x510fea?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x52a94c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1b961b=>!A(_0x1b961b,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5f24f4}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x376267=>{const _0x5b2913=_0x5f24f4['length'];for(const _0x5ebee8 of _0x5f24f4){const _0x48652d=_0x5ebee8===_0x5f24f4[_0x5b2913-0x1],{cdnUrl:_0x554c72,fileInfo:_0x2172bc}=_0x5ebee8;if(!_0x554c72||!_0x2172bc)continue;const {width:_0x1f1687,height:_0x37ece6}=_0x2172bc['imageInfo'],_0x22f036=S(_0x554c72,_0x1f1687,_0x37ece6),_0x34eb93=C(_0x554c72,_0x22f036['width']),_0x265ab3={'id':_0x2172bc['uuid'],'type':'image','attributes':{'imageDimension':_0x22f036,..._0x34eb93}};this['_insertAsset'](_0x265ab3,_0x48652d,_0x376267);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x286371=>{'idle'===_0x286371['detail']['status']&&!_0x286371['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5b51b8,_0x33b846,_0x852722){const _0x145a1b=this['_editor']['model']['document']['selection'],_0x4adbdb=_0x145a1b['getSelectedElement'](),_0x1dfbf5=!(!_0x4adbdb||!_0x4adbdb['is']('element','imageInline'));_0x852722['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5b51b8,_0x1dfbf5),_0x33b846||_0x852722['setSelection'](_0x145a1b['getLastPosition']());}['_insertImage'](_0x103a18,_0x2c541c){const _0x41b19a=this['_editor'],{imageDimension:_0x3b6938,imageFallbackUrl:_0x1173c0,imageSources:_0x11752f}=_0x103a18['attributes'];_0x41b19a['execute']('insertImage',{'imageType':_0x2c541c?'imageInline':null,'source':{'uploadcareImageId':_0x103a18['id'],'src':_0x1173c0,'sources':_0x11752f,..._0x3b6938}});}}class w extends _0x57a68a{['_editing'];['_controller']=null;static get['requires'](){return[_0x9884e,o];}constructor(_0x37c6b7){super(_0x37c6b7),this['_editing']=_0x37c6b7['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1e69dd){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1e69dd);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x450d0f,..._0x3111ca}){return _0x2061b0(_0x450d0f,_0x3111ca);}static['getInfo'](_0x29ee28,_0x31c143){return _0xcea7fa(_0x29ee28,_0x31c143);}}class f extends _0x443f5c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1fb0c1,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x12ca9e=this['editor'];if(!!!_0x12ca9e['config']['get']('uploadcare'))return;_0x12ca9e['plugins']['get'](_0x1fb0c1)['createUploadAdapter']=_0x188aad=>new k(_0x188aad,_0x12ca9e),_0x12ca9e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xfe4af1,{imageElement:_0x1c5efb,data:_0x3e93ce})=>{_0x12ca9e['model']['change'](_0x28704a=>{_0x28704a['setAttribute']('uploadcareImageId',_0x3e93ce['uploadcareImageId'],_0x1c5efb);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2144c8,_0x556da2){this['loader']=_0x2144c8,this['editor']=_0x556da2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x331ecb=await this['loader']['file'];return j['upload']({'file':_0x331ecb,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x4202ec=>{_0x4202ec&&_0x4202ec['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4202ec['value']);}})['then'](async _0x1d4054=>{const {imageFallbackUrl:_0x4271f1,imageSources:_0x227a2b}=C(_0x1d4054['cdnUrl'],_0x1d4054['imageInfo']['width']);return{'uploadcareImageId':_0x1d4054['uuid'],'default':_0x4271f1,'sources':_0x227a2b};})['catch'](()=>{const _0x3ab18f=t('Cannot\x20upload\x20file:')+('\x20'+_0x331ecb['name']+'.');return Promise['reject'](_0x3ab18f);});}['abort'](){this['controller']['abort']();}}class o extends _0x443f5c{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x9884e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x393b8c){super(_0x393b8c),this['ucContextId']=_0x2c62ef();}['init'](){const _0x7fed66=this['editor'];_0x7fed66['commands']['add']('uploadcare',new w(_0x7fed66));}['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 _0x5b781c=_0x138a30['document']['querySelector']('input[uploadcare-file-input]');_0x5b781c&&_0x5b781c['remove']();}),async function(_0x34fc22){const _0xd2e303=_0xa67f34([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x5e9357=0x535f8c3a,_0x270e1f=0x5358f582^_0x5e9357,_0x163190=window[_0xa67f34([0x44,0x61,0x74,0x65])][_0xa67f34([0x6e,0x6f,0x77])](),_0x2f6291=_0x34fc22[_0xa67f34([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59f402=new window[(_0xa67f34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58451e=>{_0x2f6291[_0xa67f34([0x6f,0x6e,0x63,0x65])](_0xa67f34([0x72,0x65,0x61,0x64,0x79]),_0x58451e);}),_0x418272={[_0xa67f34([0x6b,0x74,0x79])]:_0xa67f34([0x45,0x43]),[_0xa67f34([0x75,0x73,0x65])]:_0xa67f34([0x73,0x69,0x67]),[_0xa67f34([0x63,0x72,0x76])]:_0xa67f34([0x50,0x2d,0x32,0x35,0x36]),[_0xa67f34([0x78])]:_0xa67f34([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]),[_0xa67f34([0x79])]:_0xa67f34([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]),[_0xa67f34([0x61,0x6c,0x67])]:_0xa67f34([0x45,0x53,0x32,0x35,0x36])},_0x42d356=_0x2f6291[_0xa67f34([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa67f34([0x67,0x65,0x74])](_0xa67f34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x49ac88(){let _0xae8df4,_0x31acdb=null,_0x39a011=null;try{if(_0x42d356==_0xa67f34([0x47,0x50,0x4c]))return _0xa67f34([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xae8df4=_0x3595ce(),!_0xae8df4)return _0xa67f34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xae8df4[_0xa67f34([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x39a011=_0x19503f(_0xae8df4[_0xa67f34([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xae8df4[_0xa67f34([0x6a,0x74,0x69])])),await _0x10cc38()?_0x417490()?_0x48f53f()?_0xa67f34([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x56ebee()?(_0xae8df4[_0xa67f34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa67f34([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x31acdb=_0x3875f8(_0xa67f34([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xae8df4[_0xa67f34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa67f34([0x74,0x72,0x69,0x61,0x6c])&&(_0x31acdb=_0x3875f8(_0xa67f34([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5c2f07()):_0xa67f34([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa67f34([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa67f34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xa67f34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x48f53f(){const _0x57927a=[_0xa67f34([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa67f34([0x74,0x72,0x69,0x61,0x6c])][_0xa67f34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xae8df4[_0xa67f34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x163190/0x3e8:0xe10*_0x270e1f;return _0xae8df4[_0xa67f34([0x65,0x78,0x70])]<_0x57927a;}function _0x417490(){const _0x16834e=_0xae8df4[_0xa67f34([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x16834e&&(!!_0x16834e[_0xa67f34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa67f34([0x2a]))||!!_0x16834e[_0xa67f34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa67f34([0x55,0x50,0x4c,0x43])));}function _0x56ebee(){const _0x1cb4d1=_0xae8df4[_0xa67f34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1cb4d1||0x0==_0x1cb4d1[_0xa67f34([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4014a4}=new URL(window[_0xa67f34([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1cb4d1[_0xa67f34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4014a4))return!0x0;const _0x318d63=_0x4014a4[_0xa67f34([0x73,0x70,0x6c,0x69,0x74])](_0xa67f34([0x2e]));return _0x1cb4d1[_0xa67f34([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e32a0=>_0x1e32a0[_0xa67f34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa67f34([0x2a])))[_0xa67f34([0x6d,0x61,0x70])](_0x140525=>_0x140525[_0xa67f34([0x73,0x70,0x6c,0x69,0x74])](_0xa67f34([0x2e])))[_0xa67f34([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34ecae=>_0x34ecae[_0xa67f34([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x318d63[_0xa67f34([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa67f34([0x6d,0x61,0x70])](_0x5e2f12=>Array(_0x318d63[_0xa67f34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5e2f12[_0xa67f34([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa67f34([0x66,0x69,0x6c,0x6c])](_0x5e2f12[0x0]===_0xa67f34([0x2a])?_0xa67f34([0x2a]):'')[_0xa67f34([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5e2f12))[_0xa67f34([0x73,0x6f,0x6d,0x65])](_0x2f85b4=>_0x318d63[_0xa67f34([0x65,0x76,0x65,0x72,0x79])]((_0x2bc14e,_0x573fee)=>_0x2f85b4[_0x573fee]===_0x2bc14e||_0x2f85b4[_0x573fee]===_0xa67f34([0x2a])));}function _0x5c2f07(){return _0x31acdb&&_0x39a011?new window[(_0xa67f34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x12b145,_0x4b98ab)=>{_0x31acdb[_0xa67f34([0x74,0x68,0x65,0x6e])](_0x12b145,_0x4b98ab),_0x39a011[_0xa67f34([0x74,0x68,0x65,0x6e])](_0x1422e0=>{_0x1422e0!=_0xa67f34([0x56,0x61,0x6c,0x69,0x64])&&_0x12b145(_0x1422e0);},_0x4b98ab);}):_0x31acdb||_0x39a011||_0xa67f34([0x56,0x61,0x6c,0x69,0x64]);}}function _0x19503f(_0x4c15d0,_0x5ce283){return new window[(_0xa67f34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2730fb=>{if(_0x3f169f())return _0x2730fb(_0xa67f34([0x56,0x61,0x6c,0x69,0x64]));_0x3d0ca8(),_0x2f6291[_0xa67f34([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa67f34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xb5ed32=!0x1;const _0x38e37f=_0x2c62ef();function _0x251ac0(_0x31cf8b){return!!_0x31cf8b&&(typeof _0x31cf8b===_0xa67f34([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x31cf8b===_0xa67f34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x31cf8b[_0xa67f34([0x74,0x68,0x65,0x6e])]===_0xa67f34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x31cf8b[_0xa67f34([0x63,0x61,0x74,0x63,0x68])]===_0xa67f34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d3d7d(_0x599367){_0x4772f7(_0x599367)[_0xa67f34([0x74,0x68,0x65,0x6e])](_0x1c46f0=>{if(!_0x1c46f0||_0x1c46f0[_0xa67f34([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa67f34([0x6f,0x6b]))return _0xa67f34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5693c1(_0x461c3e(_0x38e37f+_0x5ce283))!=_0x1c46f0[_0xa67f34([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa67f34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa67f34([0x56,0x61,0x6c,0x69,0x64]);})[_0xa67f34([0x74,0x68,0x65,0x6e])](_0x20f91e=>(_0x3f13e4(),_0x20f91e),()=>{const _0x3105fa=_0x2d5aca();return null==_0x3105fa?(_0x3f13e4(),_0xa67f34([0x56,0x61,0x6c,0x69,0x64])):_0xa67f34(_0x163190-_0x3105fa>(0x7753083a^_0x5e9357)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa67f34([0x74,0x68,0x65,0x6e])](_0x2730fb)[_0xa67f34([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2730fb(_0xa67f34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1dea07=0x536962ba^_0x5e9357;function _0x3f13e4(){const _0x13cdf7=_0xa67f34([0x6c,0x6c,0x63,0x74,0x2d])+_0x5693c1(_0x461c3e(_0x4c15d0)),_0x3e4edd=_0x105bad(_0x5693c1(window[_0xa67f34([0x4d,0x61,0x74,0x68])][_0xa67f34([0x63,0x65,0x69,0x6c])](_0x163190/_0x1dea07)));window[_0xa67f34([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa67f34([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13cdf7,_0x3e4edd);}function _0x2d5aca(){const _0x276e1d=_0xa67f34([0x6c,0x6c,0x63,0x74,0x2d])+_0x5693c1(_0x461c3e(_0x4c15d0)),_0x519e96=window[_0xa67f34([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa67f34([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x276e1d);return _0x519e96?window[_0xa67f34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x105bad(_0x519e96),0x10)*_0x1dea07:null;}function _0x4772f7(_0x36b23b){return new window[(_0xa67f34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a64ef,_0x4947b4)=>{_0x36b23b[_0xa67f34([0x74,0x68,0x65,0x6e])](_0x2a64ef,_0x4947b4),window[_0xa67f34([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4947b4,0x535e58fa^_0x5e9357);});}}_0x2f6291[_0xa67f34([0x6f,0x6e])](_0xa67f34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xdcd6a4,_0x1106b9)=>{if(_0x1106b9[0x0]!=_0x4c15d0)return _0x2730fb(_0xa67f34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1106b9[0x1]={..._0x1106b9[0x1],[_0xa67f34([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x38e37f};},{[_0xa67f34([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa67f34([0x68,0x69,0x67,0x68])}),_0x2f6291[_0xa67f34([0x6f,0x6e])](_0xa67f34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2fc982=>{_0x251ac0(_0x2fc982[_0xa67f34([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xb5ed32=!0x0,_0x5d3d7d(_0x2fc982[_0xa67f34([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa67f34([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa67f34([0x6c,0x6f,0x77])}),_0x59f402[_0xa67f34([0x74,0x68,0x65,0x6e])](()=>{_0xb5ed32||_0x2730fb(_0xa67f34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3f169f(){return _0x2f6291[_0xa67f34([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa67f34([0x76,0x69,0x65,0x77])][_0xa67f34([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa67f34([0x61,0x75,0x74,0x6f]);}function _0x3d0ca8(){_0x2f6291[_0xa67f34([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa67f34([0x76,0x69,0x65,0x77])][_0xa67f34([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa67f34([0x61,0x75,0x74,0x6f]);}}function _0x3875f8(_0x217c98){const _0x31e527=[new window[(_0xa67f34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40fbb3=>setTimeout(_0x40fbb3,0x5356b2f6^_0x5e9357)),_0x59f402[_0xa67f34([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa67f34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43cfd4=>{let _0x3bf63a=0x0;_0x2f6291[_0xa67f34([0x6d,0x6f,0x64,0x65,0x6c])][_0xa67f34([0x6f,0x6e])](_0xa67f34([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b80ab,_0x35ea6c)=>{_0x35ea6c[0x0][_0xa67f34([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3bf63a++,_0x3bf63a==(0x535f8dc2^_0x5e9357)&&(_0x43cfd4(),_0x3b80ab[_0xa67f34([0x6f,0x66,0x66])]());});}))];return window[_0xa67f34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa67f34([0x72,0x61,0x63,0x65])](_0x31e527)[_0xa67f34([0x74,0x68,0x65,0x6e])](()=>_0x217c98);}async function _0x514e6c(){await _0x59f402,_0x2f6291[_0xa67f34([0x6d,0x6f,0x64,0x65,0x6c])][_0xa67f34([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x53e684,_0x2f6291[_0xa67f34([0x6d,0x6f,0x64,0x65,0x6c])][_0xa67f34([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x53e684,_0x2f6291[_0xa67f34([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa67f34([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x412527(_0x11333c){const _0x51995a=_0xe7cf4f();_0x2f6291[_0x51995a]=_0xa67f34([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x11333c,_0x11333c!=_0xa67f34([0x56,0x61,0x6c,0x69,0x64])&&_0x514e6c();}function _0xe7cf4f(){const _0x576b21=window[_0xa67f34([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa67f34([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa67f34([0x6e,0x6f,0x77])]())[_0xa67f34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa67f34([0x2e]),'');let _0x12b741=_0xa67f34([0x68]);for(let _0x5f3efa=0x0;_0x5f3efa<_0x576b21[_0xa67f34([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5f3efa+=0x2){let _0x29a80b=window[_0xa67f34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x576b21[_0xa67f34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5f3efa,_0x5f3efa+0x2));_0x29a80b>=_0xd2e303[_0xa67f34([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x29a80b-=_0xd2e303[_0xa67f34([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x12b741+=_0xd2e303[_0x29a80b];}return _0x12b741;}function _0x3595ce(){const _0x342dd7=_0x42d356[_0xa67f34([0x73,0x70,0x6c,0x69,0x74])](_0xa67f34([0x2e]));if(0x3!=_0x342dd7[_0xa67f34([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c27af(_0x342dd7[0x1]);function _0x4c27af(_0x10a5ea){const _0x580cfc=_0x52f484(_0x10a5ea);return _0x580cfc&&_0x5e816e()?_0x580cfc:null;function _0x5e816e(){const _0x4bcbee=_0x580cfc[_0xa67f34([0x6a,0x74,0x69])],_0x529886=window[_0xa67f34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4bcbee[_0xa67f34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4bcbee[_0xa67f34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x414aa5={..._0x580cfc,[_0xa67f34([0x6a,0x74,0x69])]:_0x4bcbee[_0xa67f34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4bcbee[_0xa67f34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x414aa5[_0xa67f34([0x76,0x63])],_0x461c3e(_0x414aa5)==_0x529886;}}}async function _0x10cc38(){let _0x43d38c=!0x0;try{const _0x5539d0=_0x42d356[_0xa67f34([0x73,0x70,0x6c,0x69,0x74])](_0xa67f34([0x2e])),[_0x39e346,_0x49581d,_0x32b11d]=_0x5539d0;return _0x585bab(_0x39e346),await _0x487a66(_0x39e346,_0x49581d,_0x32b11d),_0x43d38c;}catch{return!0x1;}function _0x585bab(_0x40b470){const _0x298086=_0x52f484(_0x40b470);_0x298086&&_0x298086[_0xa67f34([0x61,0x6c,0x67])]==_0xa67f34([0x45,0x53,0x32,0x35,0x36])||(_0x43d38c=!0x1);}async function _0x487a66(_0x584dc3,_0x1a0a06,_0x195bd3){const _0x4d3730=window[_0xa67f34([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa67f34([0x66,0x72,0x6f,0x6d])](_0x7a0db1(_0x195bd3),_0x5d03f8=>_0x5d03f8[_0xa67f34([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x186e02=new window[(_0xa67f34([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa67f34([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x584dc3+_0xa67f34([0x2e])+_0x1a0a06),_0x58100b=window[_0xa67f34([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa67f34([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x58100b)return;const _0x38464b=await _0x58100b[_0xa67f34([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa67f34([0x6a,0x77,0x6b]),_0x418272,{[_0xa67f34([0x6e,0x61,0x6d,0x65])]:_0xa67f34([0x45,0x43,0x44,0x53,0x41]),[_0xa67f34([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa67f34([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa67f34([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x58100b[_0xa67f34([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa67f34([0x6e,0x61,0x6d,0x65])]:_0xa67f34([0x45,0x43,0x44,0x53,0x41]),[_0xa67f34([0x68,0x61,0x73,0x68])]:{[_0xa67f34([0x6e,0x61,0x6d,0x65])]:_0xa67f34([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x38464b,_0x4d3730,_0x186e02)||(_0x43d38c=!0x1);}}function _0x52f484(_0x4dec47){return _0x4dec47[_0xa67f34([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa67f34([0x65,0x79]))?JSON[_0xa67f34([0x70,0x61,0x72,0x73,0x65])](_0x7a0db1(_0x4dec47)):null;}function _0x7a0db1(_0x3c70fc){return window[_0xa67f34([0x61,0x74,0x6f,0x62])](_0x3c70fc[_0xa67f34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa67f34([0x2b]))[_0xa67f34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa67f34([0x2f])));}function _0x461c3e(_0x35de83){let _0x1d9b83=0x1505;function _0x168b8b(_0x1d97e3){for(let _0x3c2ae6=0x0;_0x3c2ae6<_0x1d97e3[_0xa67f34([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c2ae6++){const _0x75310a=_0x1d97e3[_0xa67f34([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3c2ae6);_0x1d9b83=(_0x1d9b83<<0x5)+_0x1d9b83+_0x75310a,_0x1d9b83&=_0x1d9b83;}}function _0x52c050(_0x35c8ae){Array[_0xa67f34([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x35c8ae)?_0x35c8ae[_0xa67f34([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x52c050):_0x35c8ae&&typeof _0x35c8ae==_0xa67f34([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa67f34([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x35c8ae)[_0xa67f34([0x73,0x6f,0x72,0x74])]()[_0xa67f34([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x535dac,_0x5c8857])=>{_0x168b8b(_0x535dac),_0x52c050(_0x5c8857);}):_0x168b8b(window[_0xa67f34([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x35c8ae));}return _0x52c050(_0x35de83),_0x1d9b83>>>0x0;}function _0x5693c1(_0x55ec7a){return _0x55ec7a[_0xa67f34([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa67f34([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa67f34([0x30]));}function _0x105bad(_0x51637b){return _0x51637b[_0xa67f34([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa67f34([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa67f34([0x6a,0x6f,0x69,0x6e])]('');}function _0x53e684(){}function _0xa67f34(_0x4e8815){return _0x4e8815['map'](_0x3097c0=>String['fromCharCode'](_0x3097c0))['join']('');}_0x412527(await _0x49ac88());}(this);}['_initSchema'](){const _0x55e7d7=this['editor']['model']['schema'];_0x55e7d7['isRegistered']('imageBlock')&&_0x55e7d7['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x55e7d7['isRegistered']('imageInline')&&_0x55e7d7['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4882fd=this['editor'];_0x4882fd['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4882fd['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1a510d=>_0x1a510d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5baac7=_0x4882fd['commands']['get']('replaceImageSource');_0x5baac7&&this['listenTo'](_0x5baac7,'cleanupImage',(_0x4fe6c1,[_0x1785fb,_0x1a1f7c])=>{_0x1785fb['removeAttribute']('uploadcareImageId',_0x1a1f7c);});}['_initConfig'](){const _0xe9a67c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3a3dd4=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x26334c(_0x138a30['document'],'uc-config',{..._0xe9a67c,'pubkey':_0x3a3dd4,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x30f852=>{if('closeMax'==_0x30f852)return'#uc-icon-arrow-down';},_0x138a30['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x26334c(_0x138a30['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x138a30['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5c1ee6=this['editor']['commands']['get']('insertImage');_0x5c1ee6&&this['listenTo'](_0x5c1ee6,'execute',()=>{const _0xec6555=this['editor']['model']['document']['selection']['getSelectedElement']();_0xec6555&&_0xec6555['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xec6555);});});const _0x3d69a5=this['editor']['commands']['get']('uploadcareImageReplace');_0x3d69a5&&this['listenTo'](_0x3d69a5,'execute',()=>{const _0x13e900=this['editor']['model']['document']['selection']['getSelectedElement']();_0x13e900&&_0x13e900['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x13e900);});});}}class tt extends _0x443f5c{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x862c14){super(_0x862c14),_0x862c14['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4c3e66['defineComponents'](_0x4c3e66),this['_defineLocale']();}['_defineLocale'](){const _0x1f1071=this['editor']['config']['get']('uploadcare.locale'),_0x39e613=this['editor']['locale']['contentLanguage'];_0x1f1071&&_0x4c3e66['defineLocale'](_0x39e613,_0x1f1071);}}class ii extends _0x2cd9eb{constructor(_0x1a8d9a){super(_0x1a8d9a);const t=_0x1a8d9a['t'],_0x5a8767=this['bindTemplate'],_0x1bfe62=new _0xeaea56();_0x1bfe62['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':[_0x1bfe62,{'text':_0x5a8767['to']('imageUploadProgress',_0x16c273=>t('Loading\x20image...')+'\x20('+(_0x16c273||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x2cd9eb{constructor(_0x2aef22){super(_0x2aef22);const t=_0x2aef22['t'];this['set']('errorType',null);const _0x37f3e2=new _0x286d0a(_0x2aef22);_0x37f3e2['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x37f3e2['withText']=!0x0,_0x37f3e2['class']='ck-button-action',_0x37f3e2['on']('execute',()=>{this['fire']('retry');}),_0x37f3e2['bind']('isVisible')['to'](this,'errorType',_0x576005=>'NotFound'!==_0x576005);const _0x499669=new _0x6a5aea();_0x499669['content']=_0x100bd6,_0x499669['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2a11eb=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':[_0x499669,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2a11eb['to']('errorType',_0x552ed6=>t('NotFound'!==_0x552ed6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x37f3e2]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x2cd9eb{constructor(_0x2c2966,_0x35bac4){super(_0x2c2966);const _0x4ec463=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x35bac4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4ec463['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x32ed1b,_0xca45e9,_0x1b814f){super(_0x32ed1b),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x32ed1b),this['_errorView']=new ti(_0x32ed1b),this['_editingView']=new ei(_0x32ed1b,_0x1b814f),this['_focusableView']=new _0x2cd9eb(_0x32ed1b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xca45e9),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'],_0xce3487=>{this['_addUploadcareImageEditorListeners'](_0xce3487);});}),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'](_0x42c17e,_0x3e1cdf){const _0xb53dbc='uc-cloud-image-editor',_0x5a9519=_0x42c17e['querySelector'](_0xb53dbc);if(_0x5a9519)return _0x3e1cdf(_0x5a9519);const _0x439c81=new MutationObserver(_0x1b22a4=>{const _0x425864=_0x1b22a4['filter'](_0x35acf4=>_0x35acf4['target']===_0x42c17e&&_0x35acf4['addedNodes']['length']>0x0&&_0x35acf4['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xb53dbc);_0x425864['length']&&(_0x439c81['disconnect'](),_0x3e1cdf(_0x425864[0x0]['addedNodes'][0x0]));});_0x439c81['observe'](_0x42c17e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x227818){_0x227818['addEventListener']('apply',_0x230ff4=>{this['fire']('apply',{'imageSrc':_0x230ff4['detail']['cdnUrl']});}),_0x227818['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x4187a9(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1ddeba,_0x46b162,_0x173c8c){super(),this['_editor']=_0x1ddeba,this['_dialog']=_0x46b162,this['_imageElement']=_0x173c8c,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 _0x54a2f8=this['_imageElement'],_0x525e13=_0x54a2f8['getAttribute']('uploadcareImageId'),_0x55b509=_0x54a2f8['getAttribute']('src');if(_0x525e13)await this['_loadImageInfo'](_0x525e13,_0x55b509);else{if(this['_imageCache']['has'](_0x55b509)){const _0x83fb43=this['_imageCache']['get'](_0x55b509);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x83fb43['url'],this['imageDimension']=_0x83fb43['dimension'],this['imageId']=_0x83fb43['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1e0249}=this['_editor'],t=_0x1e0249['t'],_0x6e1ca9=new X(_0x1e0249,this['imageStatus'],this['_attributes']);_0x6e1ca9['bind']('status')['to'](this,'imageStatus'),_0x6e1ca9['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x6e1ca9['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x6e1ca9['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x6e1ca9,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x576c90,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x6e1ca9,'position':_0x52a94c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x6e1ca9['focus']();},'onHide':()=>{_0x6e1ca9['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4deb86=>!A(_0x4deb86,_0x6e1ca9['element'])}});}['_loadImageInfo'](_0x47a4dd,_0x34993e){return j['getInfo'](_0x47a4dd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x23f55c=>{const {width:_0x5cebc7,height:_0x11992e}=_0x23f55c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x34993e,this['imageDimension']={'width':_0x5cebc7,'height':_0x11992e},this['imageId']=_0x47a4dd;})['catch'](_0x3d2b25=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3d2b25['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x106540,_0x3efff0){return this['_getImageAsFile'](_0x106540)['then'](_0x49c274=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x3efff0['signal'],'file':_0x49c274,'onProgress':_0x228c1e=>{_0x228c1e&&_0x228c1e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x228c1e['value']));}}))['then'](_0x6f3511=>{const {width:_0x509403,height:_0x26ab07}=_0x6f3511['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x6f3511['cdnUrl'],this['imageDimension']={'width':_0x509403,'height':_0x26ab07},this['imageId']=_0x6f3511['uuid'],this['imageUploadProgress']=null;const _0x57012f=_0x106540['getAttribute']('src');this['_imageCache']['set'](_0x57012f,{'id':_0x6f3511['uuid'],'url':_0x6f3511['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x246f08=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x246f08['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x325760,_0x342c89){_0x325760['on']('apply',(_0x4a1670,_0x51dd50)=>{this['_replaceImage'](_0x342c89,_0x51dd50['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x325760['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x325760['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xeffade,_0x3f7f00,_0x47b01d){const _0x4f84bf=this['_editor'],{width:_0x119ac6,height:_0x25eaa4}=S(_0x3f7f00,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x33be8c,imageSources:_0x4469c7}=C(_0x3f7f00,_0x119ac6);_0x4f84bf['model']['change'](_0x36adc7=>{if('$graveyard'===_0xeffade['root']['rootName']){_0x4f84bf['execute']('insertImage',{'imageType':_0xeffade['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xeffade['getAttributes']()),'uploadcareImageId':_0x47b01d,'src':_0x33be8c,'sources':_0x4469c7,'width':_0x119ac6,'height':_0x25eaa4}});const _0x5ab5b3=_0xeffade['getChildren']();_0xeffade=_0x4f84bf['model']['document']['selection']['getSelectedElement']();for(const _0x5074d7 of _0x5ab5b3)_0x36adc7['append'](_0x36adc7['cloneElement'](_0x5074d7),_0xeffade);}else _0x36adc7['setSelection'](_0xeffade,'on'),_0x4f84bf['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xeffade['getAttributes']()),'uploadcareImageId':_0x47b01d,'src':_0x33be8c,'sources':_0x4469c7,'width':_0x119ac6,'height':_0x25eaa4},_0xeffade);_0x36adc7['setSelection'](_0xeffade,'on');});}async['_getImageAsFile'](_0x3cedfe){const _0x1d2cd3=_0x138a30['window'],_0x37d5c5=_0x138a30['document']['location']['href'],_0xb71779=new _0x1d2cd3['URL'](_0x3cedfe['getAttribute']('src'),_0x37d5c5);if('data:'===_0xb71779['protocol']){const _0x519589=_0xb71779['href']['split'](','),_0x1bc903=_0x519589[0x0]['match'](/:(.*?);/)[0x1],_0x230642=_0x1bc903['split']('/')[0x1],_0x418891=_0x1d2cd3['atob'](_0x519589[_0x519589['length']-0x1]);let _0x55032e=_0x418891['length'];const _0x1007e8=new _0x1d2cd3['Uint8Array'](_0x55032e);for(;_0x55032e--;)_0x1007e8[_0x55032e]=_0x418891['charCodeAt'](_0x55032e);return new _0x1d2cd3['File']([_0x1007e8],'image.'+_0x230642,{'type':_0x1bc903});}const _0x5438c6=_0xb71779['href']['split']('/'),_0x3d1d03=_0x5438c6[_0x5438c6['length']-0x1],_0x1eb521=_0x3d1d03['split']('.')[0x1];return _0x1d2cd3['fetch'](_0xb71779['href'])['then'](_0x27c3de=>_0x27c3de['clone']()['blob']())['then'](_0x5de312=>new _0x1d2cd3['File']([_0x5de312],_0x3d1d03,{'type':'image/'+_0x1eb521}));}}class O extends _0x57a68a{['imageEditController'];static get['requires'](){return[_0x9884e];}['_isEditable'];constructor(_0x1a0ff7){super(_0x1a0ff7),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x283b13){const _0x28c86e=G(_0x283b13);return _0x171b23=>!(!_0x171b23||!_0x171b23['is']('element','imageBlock')&&!_0x171b23['is']('element','imageInline'))&&(!!_0x171b23['hasAttribute']('uploadcareImageId')||!!_0x171b23['hasAttribute']('src')&&_0x28c86e(_0x171b23['getAttribute']('src')));}(_0x1a0ff7['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x19baa9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x19baa9);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x14d62a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x14d62a&&(_0x14d62a['is']('element','imageBlock')||_0x14d62a['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x9884e),_0x14d62a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x57a68a{['refresh'](){const _0x53f728=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x53f728&&(_0x53f728['is']('element','imageBlock')||_0x53f728['is']('element','imageInline')));}['execute'](_0x133cc5){const _0x20c1a9=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5240b9=>{_0x5240b9['setAttributes'](_0x133cc5,_0x20c1a9),_0x5240b9['removeAttribute']('srcset',_0x20c1a9),_0x5240b9['removeAttribute']('sizes',_0x20c1a9);});}}class m extends _0x443f5c{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4bc154,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4f2c41}=this;_0x4f2c41['commands']['add']('uploadcareImageEdit',new O(_0x4f2c41)),_0x4f2c41['commands']['add']('uploadcareImageReplace',new R(_0x4f2c41));}}class g extends _0x443f5c{['_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 _0x234a3d=this['editor'];_0x234a3d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5405a8=>{const _0x8f2d51=_0x234a3d['commands']['get']('uploadcareImageEdit'),_0x3b62cb=new _0x286d0a(_0x5405a8),t=_0x5405a8['t'];return _0x3b62cb['set']({'icon':_0x576c90,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3b62cb['bind']('isEnabled')['to'](_0x8f2d51),_0x3b62cb['bind']('isOn')['to'](_0x8f2d51,'isActive'),this['listenTo'](_0x3b62cb,'execute',()=>{_0x234a3d['execute']('uploadcareImageEdit'),_0x234a3d['editing']['view']['focus']();}),_0x3b62cb;}),this['_initConfig']();}['_initConfig'](){const _0x13008d=_0x26334c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x13008d),this['listenTo'](this['editor'],'destroy',()=>{_0x13008d['remove']();});}}class et extends _0x443f5c{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0x1e6ece,Command as _0x3c3ce8}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3c0060,IconGooglePhotos as _0x1d169d,IconGoogleDrive as _0x18316a,IconFacebook as _0x129811,IconDropbox as _0x18bb0c,IconUploadcareLink as _0x476590,IconUploadcareImageUpload as _0x335e0f,IconError as _0x3141a3,IconUploadcareImageEdit as _0x4c1bb5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xdd8139,MenuBarMenuListItemButtonView as _0x59db1d,View as _0x56727e,FocusCycler as _0x343a3c,Dialog as _0x429fed,DialogViewPosition as _0xe9f42c,SpinnerView as _0x541244,IconView as _0x57aae3,Notification as _0x50e817}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x370aba,DomEmitterMixin as _0x2b9d4f,global as _0x13c771,getAncestors as _0x53f3fe,ObservableMixin as _0x2ce3f3,uid as _0x55fef8,createElement as _0x3d35be}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x28695e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x13afdd,info as _0x2a12ad}from'@uploadcare/upload-client';import*as _0x33ffae from'@uploadcare/file-uploader';var i=function(_0x3c2efb){return _0x3c2efb['Local']='local',_0x3c2efb['URL']='url',_0x3c2efb['Dropbox']='dropbox',_0x3c2efb['GDrive']='gdrive',_0x3c2efb['Facebook']='facebook',_0x3c2efb['GPhotos']='gphotos',_0x3c2efb['OneDrive']='onedrive',_0x3c2efb;}({});function _(_0x3a238d,_0xa5a635,_0x1f0948){const t=_0x3a238d['t'],_0x4c8b31=_0x3a238d['t'];switch(_0xa5a635){case i['Local']:return{'text':_0x4c8b31('Insert'===_0x1f0948?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4c8b31('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x1f0948?_0x4c8b31('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4c8b31('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x1f0948?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x1f0948?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x1f0948?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x1f0948?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x1f0948?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xa5a635;}}class e extends _0x1e6ece{['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 _0x13dccd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f8d7f;for(const _0x505bf0 in _0x13dccd){const _0x48fdc8=_0x505bf0,_0x455160=_0x13dccd[_0x48fdc8];if('uploadcareLicenseKeyValid'==_0x455160||'uploadcareLicenseKeyInvalid'==_0x455160||'uploadcareLicenseKeyExpired'==_0x455160||'uploadcareLicenseKeyDomainLimit'==_0x455160||'uploadcareLicenseKeyNotAllowed'==_0x455160||'uploadcareLicenseKeyEvaluationLimit'==_0x455160||'uploadcareLicenseKeyTrialLimit'==_0x455160||'uploadcareLicenseKeyUsageLimit'==_0x455160){delete _0x13dccd[_0x48fdc8],_0x2f8d7f=_0x455160,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2f8d7f&&_0x13dccd['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2f8d7f&&_0x13dccd['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2f8d7f&&_0x13dccd['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2f8d7f&&_0x13dccd['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2f8d7f&&_0x13dccd['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2f8d7f&&_0x13dccd['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2f8d7f&&_0x13dccd['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2e6dd1}=this,_0xc17c9=_0x2e6dd1['commands']['get']('uploadcare');if(!_0xc17c9)return;const _0x97800f=this['_normalizeConfigSourceList'](_0x2e6dd1['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x74f13a,_0x3abeed)=>{const _0xb33774=this['_getIntegrationKey'](_0x3abeed['type']);return _0x74f13a[_0xb33774]||(_0x74f13a[_0xb33774]=[]),_0x74f13a[_0xb33774]['push'](_0x3abeed),_0x74f13a;},{});_0x2e6dd1['plugins']['has']('ImageInsertUI')&&_0x2e6dd1['commands']['get']('uploadcare')&&Object['entries'](_0x97800f)['forEach'](([_0x4ce092,_0x35619e])=>{_0x2e6dd1['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4ce092,'observable':()=>_0xc17c9,'buttonViewCreator':()=>this['_createToolbarButton'](_0x35619e),'formViewCreator':()=>this['_createDropdownButtons'](_0x35619e),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x35619e),'override':'assetManager'!==_0x4ce092});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1f1829){const {locale:_0x2a8be7}=this['editor'];return _0x1f1829['map'](_0x2ff2ab=>{const _0x5561c2=_(_0x2a8be7,_0x2ff2ab,'Insert');switch(_0x2ff2ab){case i['Local']:return{'icon':_0x335e0f,'type':i['Local'],..._0x5561c2};case i['URL']:return{'icon':_0x476590,'type':i['URL'],..._0x5561c2};case i['Dropbox']:return{'icon':_0x18bb0c,'type':i['Dropbox'],..._0x5561c2};case i['Facebook']:return{'icon':_0x129811,'type':i['Facebook'],..._0x5561c2};case i['GDrive']:return{'icon':_0x18316a,'type':i['GDrive'],..._0x5561c2};case i['GPhotos']:return{'icon':_0x1d169d,'type':i['GPhotos'],..._0x5561c2};case i['OneDrive']:return{'icon':_0x3c0060,'type':i['OneDrive'],..._0x5561c2};}});}['_getIntegrationKey'](_0x446572){switch(_0x446572){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x94eb6,_0x4ecb9){const _0x5862f3=this['editor'],_0x318572=new _0x94eb6(_0x5862f3['locale']),_0x330d78=_0x5862f3['commands']['get']('uploadcare');return _0x318572['bind']('isEnabled')['to'](_0x330d78),_0x318572['on']('execute',()=>{_0x330d78['execute'](_0x4ecb9);}),_0x318572;}['_createToolbarButton'](_0xc9ed8a){const {locale:_0x3f712b}=this['editor'],_0x360937=this['editor']['plugins']['get']('ImageInsertUI'),_0xc86c4f=_0xc9ed8a[0x0],_0x129c1f=this['_createButton'](_0xdd8139,_0xc86c4f['type']);return _0x129c1f['icon']=_0xc86c4f['icon'],_0x129c1f['bind']('label')['to'](_0x360937,'isImageSelected',_0x5aeeb5=>_(_0x3f712b,_0xc86c4f['type'],_0x5aeeb5?'Replace':'Insert')['text']),_0x129c1f['tooltip']=!0x0,_0x129c1f;}['_createDropdownButtons'](_0x1cb25c){const {locale:_0x212995}=this['editor'],_0x2850cf=this['editor']['plugins']['get']('ImageInsertUI');return _0x1cb25c['map'](_0x53aa82=>{const _0xa40ff2=this['_createButton'](_0xdd8139,_0x53aa82['type']);return _0xa40ff2['withText']=!0x0,_0xa40ff2['icon']=_0x53aa82['icon'],_0xa40ff2['bind']('label')['to'](_0x2850cf,'isImageSelected',_0x44c3c6=>_(_0x212995,_0x53aa82['type'],_0x44c3c6?'Replace':'Insert')['text']),_0xa40ff2;});}['_createMenuBarButtons'](_0x205186){return _0x205186['map'](_0x3a0ed8=>{const _0x2dcfd3=this['_createButton'](_0x59db1d,_0x3a0ed8['type']);return _0x2dcfd3['icon']=_0x3a0ed8['icon'],_0x2dcfd3['label']=_0x3a0ed8['shortText'],_0x2dcfd3;});}}class F extends _0x56727e{['focusTracker'];['focusCycler'];constructor(_0x3c9c60){super(_0x3c9c60),this['focusTracker']=new _0x370aba(),this['focusCycler']=new _0x343a3c({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x1e9a1a,_0x2ec76f){super(_0x1e9a1a),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-'+_0x2ec76f}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x4b7c4b,_0xf73a83){const _0x5924ec=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x118ff2=>_0x118ff2<=_0xf73a83)['map'](_0x2fdcd4=>_0x4b7c4b['replace'](/\/$/,'')+'/-/resize/'+_0x2fdcd4+'x/\x20'+_0x2fdcd4+'w');return{'imageFallbackUrl':_0x4b7c4b,'imageSources':[{'srcset':_0x5924ec['join'](',\x20'),'sizes':'(max-width:\x20'+_0xf73a83+'px)\x20100vw,\x20'+_0xf73a83+'px','type':'image/webp'}]};}function S(_0x19ce8e,_0x241286,_0x484823){const _0x42f168=_0x19ce8e['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x42f168?parseInt(_0x42f168[0x1],0xa):_0x241286,'height':_0x42f168?parseInt(_0x42f168[0x2],0xa):_0x484823};}function p(_0x52d5f5,_0x249278){const _0x37b6ba=new(_0x2b9d4f())(),_0x31aa25=_0x52d5f5['plugins']['get']('ImageUtils'),_0x42d974=_0x52d5f5['editing']['mapper']['toViewElement'](_0x249278),_0x5357d6=_0x31aa25['findViewImgElement'](_0x42d974),_0x29c0cc=_0x52d5f5['editing']['view']['domConverter']['viewToDom'](_0x5357d6),_0x2c6134=_0x249278['getAttribute']('width'),_0x3570b1=_0x249278['getAttribute']('height'),_0x228caa='image-processing';_0x52d5f5['editing']['view']['change'](_0x3f2d28=>{_0x3f2d28['addClass'](_0x228caa,_0x42d974),_0x3f2d28['setStyle']('aspect-ratio',_0x2c6134+'/'+_0x3570b1,_0x5357d6);}),_0x37b6ba['listenTo'](_0x29c0cc,'load',()=>{_0x37b6ba['stopListening'](_0x29c0cc,'load'),_0x52d5f5['editing']['view']['change'](_0x509d22=>{_0x509d22['removeClass'](_0x228caa,_0x42d974),_0x509d22['removeStyle']('aspect-ratio',_0x5357d6);});});}function G(_0x501765){if(Array['isArray'](_0x501765)){const _0x7e4aa4=_0x501765['map'](G);return _0x56a710=>_0x7e4aa4['some'](_0x265ce6=>_0x265ce6(_0x56a710));}if('origin'==_0x501765){const _0x312cf0=_0x13c771['window']['location']['origin'];return _0x26b5a4=>new URL(_0x26b5a4,_0x13c771['document']['baseURI'])['origin']==_0x312cf0;}return'function'==typeof _0x501765?_0x501765:_0x501765 instanceof RegExp?_0x48ff07=>!(!_0x48ff07['match'](_0x501765)&&!_0x48ff07['replace'](/^https?:\/\//,'')['match'](_0x501765)):()=>!0x1;}function A(_0x11a0be,_0xcfa528){return _0x53f3fe(_0x11a0be['target'])['includes'](_0xcfa528);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x2ce3f3(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x26b563,_0x4c5ef9,_0x4a1a61){super(),this['_editor']=_0x26b563,this['_editing']=_0x4c5ef9,this['_dialog']=_0x26b563['plugins']['get'](_0x429fed),this['_api']=_0x4c5ef9['ctxElement']['getAPI'](),this['_type']=_0x4a1a61,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:_0x2194be,model:_0x5b4e83}=this['_editor'],_0x37c51d=_0x5b4e83['document']['selection']['getSelectedElement'](),_0x167cb4=_0x37c51d&&(_0x37c51d['is']('element','imageBlock')||_0x37c51d['is']('element','imageInline'));this['_formView']=new x(_0x2194be,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x335e0f,'title':_(_0x2194be,this['_type'],_0x167cb4?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xe9f42c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2f98ac=>!A(_0x2f98ac,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1d7ea4}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3d8329=>{const _0x302204=_0x1d7ea4['length'];for(const _0x5a273b of _0x1d7ea4){const _0x8c86ad=_0x5a273b===_0x1d7ea4[_0x302204-0x1],{cdnUrl:_0x3c934f,fileInfo:_0x4ca7b7}=_0x5a273b;if(!_0x3c934f||!_0x4ca7b7)continue;const {width:_0x2e59ef,height:_0x4d4556}=_0x4ca7b7['imageInfo'],_0x13e427=S(_0x3c934f,_0x2e59ef,_0x4d4556),_0x7003bf=C(_0x3c934f,_0x13e427['width']),_0x30020b={'id':_0x4ca7b7['uuid'],'type':'image','attributes':{'imageDimension':_0x13e427,..._0x7003bf}};this['_insertAsset'](_0x30020b,_0x8c86ad,_0x3d8329);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x186597=>{'idle'===_0x186597['detail']['status']&&!_0x186597['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2a2255,_0x3e07ac,_0x40f6bf){const _0x7ea83c=this['_editor']['model']['document']['selection'],_0x1d550d=_0x7ea83c['getSelectedElement'](),_0x333f5f=!(!_0x1d550d||!_0x1d550d['is']('element','imageInline'));_0x40f6bf['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2a2255,_0x333f5f),_0x3e07ac||_0x40f6bf['setSelection'](_0x7ea83c['getLastPosition']());}['_insertImage'](_0x120757,_0x4276ea){const _0x464eed=this['_editor'],{imageDimension:_0x4f0f10,imageFallbackUrl:_0x5483be,imageSources:_0x35ac48}=_0x120757['attributes'];_0x464eed['execute']('insertImage',{'imageType':_0x4276ea?'imageInline':null,'source':{'uploadcareImageId':_0x120757['id'],'src':_0x5483be,'sources':_0x35ac48,..._0x4f0f10}});}}class w extends _0x3c3ce8{['_editing'];['_controller']=null;static get['requires'](){return[_0x429fed,o];}constructor(_0x51dfc7){super(_0x51dfc7),this['_editing']=_0x51dfc7['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x7e1f7f){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x7e1f7f);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5ee472,..._0x513bf9}){return _0x13afdd(_0x5ee472,_0x513bf9);}static['getInfo'](_0x3fa507,_0x1dc1b1){return _0x2a12ad(_0x3fa507,_0x1dc1b1);}}class f extends _0x1e6ece{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x28695e,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x206d51=this['editor'];if(!!!_0x206d51['config']['get']('uploadcare'))return;_0x206d51['plugins']['get'](_0x28695e)['createUploadAdapter']=_0x2a5dd3=>new k(_0x2a5dd3,_0x206d51),_0x206d51['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xd086d3,{imageElement:_0x1c0aa3,data:_0x1e05eb})=>{_0x206d51['model']['change'](_0x2129be=>{_0x2129be['setAttribute']('uploadcareImageId',_0x1e05eb['uploadcareImageId'],_0x1c0aa3);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xff05a2,_0x355cea){this['loader']=_0xff05a2,this['editor']=_0x355cea,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5bdbce=await this['loader']['file'];return j['upload']({'file':_0x5bdbce,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x474a2a=>{_0x474a2a&&_0x474a2a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x474a2a['value']);}})['then'](async _0x1b813b=>{const {imageFallbackUrl:_0xca0a08,imageSources:_0x5dbcd3}=C(_0x1b813b['cdnUrl'],_0x1b813b['imageInfo']['width']);return{'uploadcareImageId':_0x1b813b['uuid'],'default':_0xca0a08,'sources':_0x5dbcd3};})['catch'](()=>{const _0x1c9e02=t('Cannot\x20upload\x20file:')+('\x20'+_0x5bdbce['name']+'.');return Promise['reject'](_0x1c9e02);});}['abort'](){this['controller']['abort']();}}class o extends _0x1e6ece{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x429fed];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x56dbf5){super(_0x56dbf5),this['ucContextId']=_0x55fef8();}['init'](){const _0x28b4bd=this['editor'];_0x28b4bd['commands']['add']('uploadcare',new w(_0x28b4bd));}['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 _0x313034=_0x13c771['document']['querySelector']('input[uploadcare-file-input]');_0x313034&&_0x313034['remove']();}),async function(_0x3df6ec){const _0x5134bd=_0x31c27b([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1cd1e1=0x535f8c3a,_0x468ccd=0x5358f5d2^_0x1cd1e1,_0x137d19=window[_0x31c27b([0x44,0x61,0x74,0x65])][_0x31c27b([0x6e,0x6f,0x77])](),_0x4c581b=_0x3df6ec[_0x31c27b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2232a7=new window[(_0x31c27b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5db1dd=>{_0x4c581b[_0x31c27b([0x6f,0x6e,0x63,0x65])](_0x31c27b([0x72,0x65,0x61,0x64,0x79]),_0x5db1dd);}),_0x2b4d38={[_0x31c27b([0x6b,0x74,0x79])]:_0x31c27b([0x45,0x43]),[_0x31c27b([0x75,0x73,0x65])]:_0x31c27b([0x73,0x69,0x67]),[_0x31c27b([0x63,0x72,0x76])]:_0x31c27b([0x50,0x2d,0x32,0x35,0x36]),[_0x31c27b([0x78])]:_0x31c27b([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]),[_0x31c27b([0x79])]:_0x31c27b([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]),[_0x31c27b([0x61,0x6c,0x67])]:_0x31c27b([0x45,0x53,0x32,0x35,0x36])},_0x552f3c=_0x4c581b[_0x31c27b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x31c27b([0x67,0x65,0x74])](_0x31c27b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3060c6(){let _0xdaaba7,_0x4e2f6b=null,_0xeec287=null;try{if(_0x552f3c==_0x31c27b([0x47,0x50,0x4c]))return _0x31c27b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xdaaba7=_0x8629f5(),!_0xdaaba7)return _0x31c27b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xdaaba7[_0x31c27b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xeec287=_0x3ff8f2(_0xdaaba7[_0x31c27b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xdaaba7[_0x31c27b([0x6a,0x74,0x69])])),await _0x2b1ffc()?_0x4756fa()?_0xdd52d7()?_0x31c27b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4d21f6()?(_0xdaaba7[_0x31c27b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31c27b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e2f6b=_0x108284(_0x31c27b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xdaaba7[_0x31c27b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31c27b([0x74,0x72,0x69,0x61,0x6c])&&(_0x4e2f6b=_0x108284(_0x31c27b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3dd0a0()):_0x31c27b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x31c27b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x31c27b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x31c27b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xdd52d7(){const _0x2096c8=[_0x31c27b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x31c27b([0x74,0x72,0x69,0x61,0x6c])][_0x31c27b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdaaba7[_0x31c27b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x137d19/0x3e8:0xe10*_0x468ccd;return _0xdaaba7[_0x31c27b([0x65,0x78,0x70])]<_0x2096c8;}function _0x4756fa(){const _0x2e1534=_0xdaaba7[_0x31c27b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2e1534&&(!!_0x2e1534[_0x31c27b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31c27b([0x2a]))||!!_0x2e1534[_0x31c27b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31c27b([0x55,0x50,0x4c,0x43])));}function _0x4d21f6(){const _0x27d01e=_0xdaaba7[_0x31c27b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x27d01e||0x0==_0x27d01e[_0x31c27b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x29cbc0}=new URL(window[_0x31c27b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x27d01e[_0x31c27b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29cbc0))return!0x0;const _0x28e2d0=_0x29cbc0[_0x31c27b([0x73,0x70,0x6c,0x69,0x74])](_0x31c27b([0x2e]));return _0x27d01e[_0x31c27b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x160690=>_0x160690[_0x31c27b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31c27b([0x2a])))[_0x31c27b([0x6d,0x61,0x70])](_0x1bd2ab=>_0x1bd2ab[_0x31c27b([0x73,0x70,0x6c,0x69,0x74])](_0x31c27b([0x2e])))[_0x31c27b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x419d29=>_0x419d29[_0x31c27b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x28e2d0[_0x31c27b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x31c27b([0x6d,0x61,0x70])](_0x505475=>Array(_0x28e2d0[_0x31c27b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x505475[_0x31c27b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x31c27b([0x66,0x69,0x6c,0x6c])](_0x505475[0x0]===_0x31c27b([0x2a])?_0x31c27b([0x2a]):'')[_0x31c27b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x505475))[_0x31c27b([0x73,0x6f,0x6d,0x65])](_0x237ad6=>_0x28e2d0[_0x31c27b([0x65,0x76,0x65,0x72,0x79])]((_0x2678b6,_0x615516)=>_0x237ad6[_0x615516]===_0x2678b6||_0x237ad6[_0x615516]===_0x31c27b([0x2a])));}function _0x3dd0a0(){return _0x4e2f6b&&_0xeec287?new window[(_0x31c27b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e9d4d,_0x1ce850)=>{_0x4e2f6b[_0x31c27b([0x74,0x68,0x65,0x6e])](_0x2e9d4d,_0x1ce850),_0xeec287[_0x31c27b([0x74,0x68,0x65,0x6e])](_0x4b05a5=>{_0x4b05a5!=_0x31c27b([0x56,0x61,0x6c,0x69,0x64])&&_0x2e9d4d(_0x4b05a5);},_0x1ce850);}):_0x4e2f6b||_0xeec287||_0x31c27b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3ff8f2(_0x5acedd,_0x498ed8){return new window[(_0x31c27b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5795fc=>{if(_0x40f78c())return _0x5795fc(_0x31c27b([0x56,0x61,0x6c,0x69,0x64]));_0x297f6b(),_0x4c581b[_0x31c27b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x31c27b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x37a972=!0x1;const _0xce3c1c=_0x55fef8();function _0x44ee54(_0x39c7d4){return!!_0x39c7d4&&(typeof _0x39c7d4===_0x31c27b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x39c7d4===_0x31c27b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x39c7d4[_0x31c27b([0x74,0x68,0x65,0x6e])]===_0x31c27b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x39c7d4[_0x31c27b([0x63,0x61,0x74,0x63,0x68])]===_0x31c27b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x55adac(_0x596607){_0xb9bca8(_0x596607)[_0x31c27b([0x74,0x68,0x65,0x6e])](_0x3907d2=>{if(!_0x3907d2||_0x3907d2[_0x31c27b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x31c27b([0x6f,0x6b]))return _0x31c27b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x29e851(_0x22fd85(_0xce3c1c+_0x498ed8))!=_0x3907d2[_0x31c27b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x31c27b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x31c27b([0x56,0x61,0x6c,0x69,0x64]);})[_0x31c27b([0x74,0x68,0x65,0x6e])](_0x1d602a=>(_0x2bd69b(),_0x1d602a),()=>{const _0x26f2b6=_0x320b3e();return null==_0x26f2b6?(_0x2bd69b(),_0x31c27b([0x56,0x61,0x6c,0x69,0x64])):_0x31c27b(_0x137d19-_0x26f2b6>(0x7753083a^_0x1cd1e1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x31c27b([0x74,0x68,0x65,0x6e])](_0x5795fc)[_0x31c27b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5795fc(_0x31c27b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3863d8=0x536962ba^_0x1cd1e1;function _0x2bd69b(){const _0x2388f9=_0x31c27b([0x6c,0x6c,0x63,0x74,0x2d])+_0x29e851(_0x22fd85(_0x5acedd)),_0x2e733c=_0x24e9a6(_0x29e851(window[_0x31c27b([0x4d,0x61,0x74,0x68])][_0x31c27b([0x63,0x65,0x69,0x6c])](_0x137d19/_0x3863d8)));window[_0x31c27b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31c27b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2388f9,_0x2e733c);}function _0x320b3e(){const _0x3ce3aa=_0x31c27b([0x6c,0x6c,0x63,0x74,0x2d])+_0x29e851(_0x22fd85(_0x5acedd)),_0x5de6e4=window[_0x31c27b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31c27b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ce3aa);return _0x5de6e4?window[_0x31c27b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24e9a6(_0x5de6e4),0x10)*_0x3863d8:null;}function _0xb9bca8(_0x261e97){return new window[(_0x31c27b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c5211,_0x1f38ad)=>{_0x261e97[_0x31c27b([0x74,0x68,0x65,0x6e])](_0x3c5211,_0x1f38ad),window[_0x31c27b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1f38ad,0x535e58fa^_0x1cd1e1);});}}_0x4c581b[_0x31c27b([0x6f,0x6e])](_0x31c27b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2d878a,_0x39b048)=>{if(_0x39b048[0x0]!=_0x5acedd)return _0x5795fc(_0x31c27b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x39b048[0x1]={..._0x39b048[0x1],[_0x31c27b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xce3c1c};},{[_0x31c27b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31c27b([0x68,0x69,0x67,0x68])}),_0x4c581b[_0x31c27b([0x6f,0x6e])](_0x31c27b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x36d1ec=>{_0x44ee54(_0x36d1ec[_0x31c27b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x37a972=!0x0,_0x55adac(_0x36d1ec[_0x31c27b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x31c27b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31c27b([0x6c,0x6f,0x77])}),_0x2232a7[_0x31c27b([0x74,0x68,0x65,0x6e])](()=>{_0x37a972||_0x5795fc(_0x31c27b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x40f78c(){return _0x4c581b[_0x31c27b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31c27b([0x76,0x69,0x65,0x77])][_0x31c27b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x31c27b([0x61,0x75,0x74,0x6f]);}function _0x297f6b(){_0x4c581b[_0x31c27b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31c27b([0x76,0x69,0x65,0x77])][_0x31c27b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31c27b([0x61,0x75,0x74,0x6f]);}}function _0x108284(_0x3a23ad){const _0x2ecf8a=[new window[(_0x31c27b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42d1ea=>setTimeout(_0x42d1ea,0x5356b2f6^_0x1cd1e1)),_0x2232a7[_0x31c27b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x31c27b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b60b4=>{let _0x3be5f5=0x0;_0x4c581b[_0x31c27b([0x6d,0x6f,0x64,0x65,0x6c])][_0x31c27b([0x6f,0x6e])](_0x31c27b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4ae4a6,_0x2d04f4)=>{_0x2d04f4[0x0][_0x31c27b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3be5f5++,_0x3be5f5==(0x535f8dc2^_0x1cd1e1)&&(_0x4b60b4(),_0x4ae4a6[_0x31c27b([0x6f,0x66,0x66])]());});}))];return window[_0x31c27b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31c27b([0x72,0x61,0x63,0x65])](_0x2ecf8a)[_0x31c27b([0x74,0x68,0x65,0x6e])](()=>_0x3a23ad);}async function _0x3b87d6(){await _0x2232a7,_0x4c581b[_0x31c27b([0x6d,0x6f,0x64,0x65,0x6c])][_0x31c27b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1420be,_0x4c581b[_0x31c27b([0x6d,0x6f,0x64,0x65,0x6c])][_0x31c27b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1420be,_0x4c581b[_0x31c27b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x31c27b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x42de97(_0xaf91ea){const _0x4a237c=_0x1e1a4d();_0x4c581b[_0x4a237c]=_0x31c27b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xaf91ea,_0xaf91ea!=_0x31c27b([0x56,0x61,0x6c,0x69,0x64])&&_0x3b87d6();}function _0x1e1a4d(){const _0x305083=window[_0x31c27b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x31c27b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x31c27b([0x6e,0x6f,0x77])]())[_0x31c27b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x31c27b([0x2e]),'');let _0x34393a=_0x31c27b([0x68]);for(let _0x388a04=0x0;_0x388a04<_0x305083[_0x31c27b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x388a04+=0x2){let _0x415d31=window[_0x31c27b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x305083[_0x31c27b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x388a04,_0x388a04+0x2));_0x415d31>=_0x5134bd[_0x31c27b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x415d31-=_0x5134bd[_0x31c27b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x34393a+=_0x5134bd[_0x415d31];}return _0x34393a;}function _0x8629f5(){const _0x2ff1d2=_0x552f3c[_0x31c27b([0x73,0x70,0x6c,0x69,0x74])](_0x31c27b([0x2e]));if(0x3!=_0x2ff1d2[_0x31c27b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2c09e5(_0x2ff1d2[0x1]);function _0x2c09e5(_0x410b1f){const _0xaea7c=_0x526591(_0x410b1f);return _0xaea7c&&_0xda4a66()?_0xaea7c:null;function _0xda4a66(){const _0x3c1c48=_0xaea7c[_0x31c27b([0x6a,0x74,0x69])],_0x3fcfe3=window[_0x31c27b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c1c48[_0x31c27b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c1c48[_0x31c27b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2c759d={..._0xaea7c,[_0x31c27b([0x6a,0x74,0x69])]:_0x3c1c48[_0x31c27b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3c1c48[_0x31c27b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2c759d[_0x31c27b([0x76,0x63])],_0x22fd85(_0x2c759d)==_0x3fcfe3;}}}async function _0x2b1ffc(){let _0x24d96d=!0x0;try{const _0xbd3116=_0x552f3c[_0x31c27b([0x73,0x70,0x6c,0x69,0x74])](_0x31c27b([0x2e])),[_0x405308,_0xfad101,_0x4cd944]=_0xbd3116;return _0x239d2e(_0x405308),await _0x1c18ae(_0x405308,_0xfad101,_0x4cd944),_0x24d96d;}catch{return!0x1;}function _0x239d2e(_0x5a9981){const _0x523775=_0x526591(_0x5a9981);_0x523775&&_0x523775[_0x31c27b([0x61,0x6c,0x67])]==_0x31c27b([0x45,0x53,0x32,0x35,0x36])||(_0x24d96d=!0x1);}async function _0x1c18ae(_0x1b10a8,_0x3ab25a,_0x56e11b){const _0x26afed=window[_0x31c27b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x31c27b([0x66,0x72,0x6f,0x6d])](_0x5a07ed(_0x56e11b),_0x49dbbe=>_0x49dbbe[_0x31c27b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x40d192=new window[(_0x31c27b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x31c27b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1b10a8+_0x31c27b([0x2e])+_0x3ab25a),_0x5e2fcc=window[_0x31c27b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x31c27b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5e2fcc)return;const _0x4b2de8=await _0x5e2fcc[_0x31c27b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x31c27b([0x6a,0x77,0x6b]),_0x2b4d38,{[_0x31c27b([0x6e,0x61,0x6d,0x65])]:_0x31c27b([0x45,0x43,0x44,0x53,0x41]),[_0x31c27b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x31c27b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x31c27b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5e2fcc[_0x31c27b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x31c27b([0x6e,0x61,0x6d,0x65])]:_0x31c27b([0x45,0x43,0x44,0x53,0x41]),[_0x31c27b([0x68,0x61,0x73,0x68])]:{[_0x31c27b([0x6e,0x61,0x6d,0x65])]:_0x31c27b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4b2de8,_0x26afed,_0x40d192)||(_0x24d96d=!0x1);}}function _0x526591(_0xb06441){return _0xb06441[_0x31c27b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x31c27b([0x65,0x79]))?JSON[_0x31c27b([0x70,0x61,0x72,0x73,0x65])](_0x5a07ed(_0xb06441)):null;}function _0x5a07ed(_0x2c414e){return window[_0x31c27b([0x61,0x74,0x6f,0x62])](_0x2c414e[_0x31c27b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x31c27b([0x2b]))[_0x31c27b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x31c27b([0x2f])));}function _0x22fd85(_0x2521f3){let _0x2b6b26=0x1505;function _0x5a23ff(_0x57ed02){for(let _0x556f03=0x0;_0x556f03<_0x57ed02[_0x31c27b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x556f03++){const _0x304dce=_0x57ed02[_0x31c27b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x556f03);_0x2b6b26=(_0x2b6b26<<0x5)+_0x2b6b26+_0x304dce,_0x2b6b26&=_0x2b6b26;}}function _0x5bc558(_0x56563d){Array[_0x31c27b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x56563d)?_0x56563d[_0x31c27b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5bc558):_0x56563d&&typeof _0x56563d==_0x31c27b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x31c27b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x56563d)[_0x31c27b([0x73,0x6f,0x72,0x74])]()[_0x31c27b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40bd01,_0x16f1d4])=>{_0x5a23ff(_0x40bd01),_0x5bc558(_0x16f1d4);}):_0x5a23ff(window[_0x31c27b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x56563d));}return _0x5bc558(_0x2521f3),_0x2b6b26>>>0x0;}function _0x29e851(_0x2d7f56){return _0x2d7f56[_0x31c27b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x31c27b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x31c27b([0x30]));}function _0x24e9a6(_0x24bea2){return _0x24bea2[_0x31c27b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x31c27b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x31c27b([0x6a,0x6f,0x69,0x6e])]('');}function _0x1420be(){}function _0x31c27b(_0x334a8c){return _0x334a8c['map'](_0x11fb67=>String['fromCharCode'](_0x11fb67))['join']('');}_0x42de97(await _0x3060c6());}(this);}['_initSchema'](){const _0x82b35d=this['editor']['model']['schema'];_0x82b35d['isRegistered']('imageBlock')&&_0x82b35d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x82b35d['isRegistered']('imageInline')&&_0x82b35d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2c507e=this['editor'];_0x2c507e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2c507e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x10d439=>_0x10d439['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3ab45d=_0x2c507e['commands']['get']('replaceImageSource');_0x3ab45d&&this['listenTo'](_0x3ab45d,'cleanupImage',(_0x564007,[_0x422de6,_0x45d50a])=>{_0x422de6['removeAttribute']('uploadcareImageId',_0x45d50a);});}['_initConfig'](){const _0x50b703=this['editor']['config']['get']('uploadcare.uploader')||{},_0x573ede=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3d35be(_0x13c771['document'],'uc-config',{..._0x50b703,'pubkey':_0x573ede,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x2320ec=>{if('closeMax'==_0x2320ec)return'#uc-icon-arrow-down';},_0x13c771['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3d35be(_0x13c771['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x13c771['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xc2333b=this['editor']['commands']['get']('insertImage');_0xc2333b&&this['listenTo'](_0xc2333b,'execute',()=>{const _0x524808=this['editor']['model']['document']['selection']['getSelectedElement']();_0x524808&&_0x524808['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x524808);});});const _0x4187ca=this['editor']['commands']['get']('uploadcareImageReplace');_0x4187ca&&this['listenTo'](_0x4187ca,'execute',()=>{const _0x40aef6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x40aef6&&_0x40aef6['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x40aef6);});});}}class tt extends _0x1e6ece{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x503ace){super(_0x503ace),_0x503ace['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x33ffae['defineComponents'](_0x33ffae),this['_defineLocale']();}['_defineLocale'](){const _0x3709c4=this['editor']['config']['get']('uploadcare.locale'),_0x4f4a74=this['editor']['locale']['contentLanguage'];_0x3709c4&&_0x33ffae['defineLocale'](_0x4f4a74,_0x3709c4);}}class ii extends _0x56727e{constructor(_0x4b5a88){super(_0x4b5a88);const t=_0x4b5a88['t'],_0x530327=this['bindTemplate'],_0x57e4f6=new _0x541244();_0x57e4f6['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':[_0x57e4f6,{'text':_0x530327['to']('imageUploadProgress',_0x58531c=>t('Loading\x20image...')+'\x20('+(_0x58531c||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x56727e{constructor(_0x14aeed){super(_0x14aeed);const t=_0x14aeed['t'];this['set']('errorType',null);const _0x1891de=new _0xdd8139(_0x14aeed);_0x1891de['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1891de['withText']=!0x0,_0x1891de['class']='ck-button-action',_0x1891de['on']('execute',()=>{this['fire']('retry');}),_0x1891de['bind']('isVisible')['to'](this,'errorType',_0x4dbe22=>'NotFound'!==_0x4dbe22);const _0x1fb456=new _0x57aae3();_0x1fb456['content']=_0x3141a3,_0x1fb456['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xd13555=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':[_0x1fb456,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xd13555['to']('errorType',_0x164e6f=>t('NotFound'!==_0x164e6f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1891de]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x56727e{constructor(_0x3635fa,_0x5b9166){super(_0x3635fa);const _0x4824a1=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5b9166,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4824a1['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x418501,_0x290d40,_0x412546){super(_0x418501),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x418501),this['_errorView']=new ti(_0x418501),this['_editingView']=new ei(_0x418501,_0x412546),this['_focusableView']=new _0x56727e(_0x418501),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x290d40),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'],_0x506870=>{this['_addUploadcareImageEditorListeners'](_0x506870);});}),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'](_0x1a5012,_0x5c7d45){const _0x4e4dfa='uc-cloud-image-editor',_0x455cac=_0x1a5012['querySelector'](_0x4e4dfa);if(_0x455cac)return _0x5c7d45(_0x455cac);const _0x463435=new MutationObserver(_0x518b51=>{const _0x101c49=_0x518b51['filter'](_0x825935=>_0x825935['target']===_0x1a5012&&_0x825935['addedNodes']['length']>0x0&&_0x825935['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4e4dfa);_0x101c49['length']&&(_0x463435['disconnect'](),_0x5c7d45(_0x101c49[0x0]['addedNodes'][0x0]));});_0x463435['observe'](_0x1a5012,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x36621a){_0x36621a['addEventListener']('apply',_0x565b0a=>{this['fire']('apply',{'imageSrc':_0x565b0a['detail']['cdnUrl']});}),_0x36621a['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x2ce3f3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3fa193,_0x519806,_0x134133){super(),this['_editor']=_0x3fa193,this['_dialog']=_0x519806,this['_imageElement']=_0x134133,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 _0x5b52df=this['_imageElement'],_0x41c670=_0x5b52df['getAttribute']('uploadcareImageId'),_0x48d871=_0x5b52df['getAttribute']('src');if(_0x41c670)await this['_loadImageInfo'](_0x41c670,_0x48d871);else{if(this['_imageCache']['has'](_0x48d871)){const _0x549903=this['_imageCache']['get'](_0x48d871);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x549903['url'],this['imageDimension']=_0x549903['dimension'],this['imageId']=_0x549903['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x126eec}=this['_editor'],t=_0x126eec['t'],_0x5b46da=new X(_0x126eec,this['imageStatus'],this['_attributes']);_0x5b46da['bind']('status')['to'](this,'imageStatus'),_0x5b46da['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5b46da['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5b46da['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5b46da,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4c1bb5,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5b46da,'position':_0xe9f42c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5b46da['focus']();},'onHide':()=>{_0x5b46da['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2df7dc=>!A(_0x2df7dc,_0x5b46da['element'])}});}['_loadImageInfo'](_0x333033,_0x24f536){return j['getInfo'](_0x333033,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x8cc896=>{const {width:_0x1c3a3a,height:_0x55d17a}=_0x8cc896['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x24f536,this['imageDimension']={'width':_0x1c3a3a,'height':_0x55d17a},this['imageId']=_0x333033;})['catch'](_0x3b1e1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3b1e1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5bc7b3,_0x3c3247){return this['_getImageAsFile'](_0x5bc7b3)['then'](_0x2a8c6c=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x3c3247['signal'],'file':_0x2a8c6c,'onProgress':_0x165bf6=>{_0x165bf6&&_0x165bf6['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x165bf6['value']));}}))['then'](_0x3a5b6a=>{const {width:_0x4c1f19,height:_0x54b51b}=_0x3a5b6a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3a5b6a['cdnUrl'],this['imageDimension']={'width':_0x4c1f19,'height':_0x54b51b},this['imageId']=_0x3a5b6a['uuid'],this['imageUploadProgress']=null;const _0x422152=_0x5bc7b3['getAttribute']('src');this['_imageCache']['set'](_0x422152,{'id':_0x3a5b6a['uuid'],'url':_0x3a5b6a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x187dfc=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x187dfc['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1f806a,_0x524b31){_0x1f806a['on']('apply',(_0x3ed77b,_0x43679c)=>{this['_replaceImage'](_0x524b31,_0x43679c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1f806a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1f806a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x47cba0,_0x326d45,_0x582169){const _0x365049=this['_editor'],{width:_0x5c3545,height:_0x4f750a}=S(_0x326d45,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5aa79c,imageSources:_0x28057d}=C(_0x326d45,_0x5c3545);_0x365049['model']['change'](_0x5c33fc=>{if('$graveyard'===_0x47cba0['root']['rootName']){_0x365049['execute']('insertImage',{'imageType':_0x47cba0['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x47cba0['getAttributes']()),'uploadcareImageId':_0x582169,'src':_0x5aa79c,'sources':_0x28057d,'width':_0x5c3545,'height':_0x4f750a}});const _0x3b6fe0=_0x47cba0['getChildren']();_0x47cba0=_0x365049['model']['document']['selection']['getSelectedElement']();for(const _0x1243b5 of _0x3b6fe0)_0x5c33fc['append'](_0x5c33fc['cloneElement'](_0x1243b5),_0x47cba0);}else _0x5c33fc['setSelection'](_0x47cba0,'on'),_0x365049['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x47cba0['getAttributes']()),'uploadcareImageId':_0x582169,'src':_0x5aa79c,'sources':_0x28057d,'width':_0x5c3545,'height':_0x4f750a},_0x47cba0);_0x5c33fc['setSelection'](_0x47cba0,'on');});}async['_getImageAsFile'](_0x4f0461){const _0x23a681=_0x13c771['window'],_0x1cde5a=_0x13c771['document']['location']['href'],_0xc0a02f=new _0x23a681['URL'](_0x4f0461['getAttribute']('src'),_0x1cde5a);if('data:'===_0xc0a02f['protocol']){const _0x1123ac=_0xc0a02f['href']['split'](','),_0x127b13=_0x1123ac[0x0]['match'](/:(.*?);/)[0x1],_0x31a7b2=_0x127b13['split']('/')[0x1],_0x29537c=_0x23a681['atob'](_0x1123ac[_0x1123ac['length']-0x1]);let _0x521e35=_0x29537c['length'];const _0x4c5a68=new _0x23a681['Uint8Array'](_0x521e35);for(;_0x521e35--;)_0x4c5a68[_0x521e35]=_0x29537c['charCodeAt'](_0x521e35);return new _0x23a681['File']([_0x4c5a68],'image.'+_0x31a7b2,{'type':_0x127b13});}const _0x2124b6=_0xc0a02f['href']['split']('/'),_0x40c714=_0x2124b6[_0x2124b6['length']-0x1],_0x26ffe9=_0x40c714['split']('.')[0x1];return _0x23a681['fetch'](_0xc0a02f['href'])['then'](_0x593a1a=>_0x593a1a['clone']()['blob']())['then'](_0xef7d17=>new _0x23a681['File']([_0xef7d17],_0x40c714,{'type':'image/'+_0x26ffe9}));}}class O extends _0x3c3ce8{['imageEditController'];static get['requires'](){return[_0x429fed];}['_isEditable'];constructor(_0x4cffcf){super(_0x4cffcf),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5bd615){const _0x5e6e1e=G(_0x5bd615);return _0x1b9e69=>!(!_0x1b9e69||!_0x1b9e69['is']('element','imageBlock')&&!_0x1b9e69['is']('element','imageInline'))&&(!!_0x1b9e69['hasAttribute']('uploadcareImageId')||!!_0x1b9e69['hasAttribute']('src')&&_0x5e6e1e(_0x1b9e69['getAttribute']('src')));}(_0x4cffcf['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1925d2=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1925d2);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4c1ea4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4c1ea4&&(_0x4c1ea4['is']('element','imageBlock')||_0x4c1ea4['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x429fed),_0x4c1ea4),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x3c3ce8{['refresh'](){const _0x4049e1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4049e1&&(_0x4049e1['is']('element','imageBlock')||_0x4049e1['is']('element','imageInline')));}['execute'](_0x4c74a3){const _0x11b113=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x33ce68=>{_0x33ce68['setAttributes'](_0x4c74a3,_0x11b113),_0x33ce68['removeAttribute']('srcset',_0x11b113),_0x33ce68['removeAttribute']('sizes',_0x11b113);});}}class m extends _0x1e6ece{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x50e817,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3fa1ec}=this;_0x3fa1ec['commands']['add']('uploadcareImageEdit',new O(_0x3fa1ec)),_0x3fa1ec['commands']['add']('uploadcareImageReplace',new R(_0x3fa1ec));}}class g extends _0x1e6ece{['_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 _0x330a5d=this['editor'];_0x330a5d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x35a973=>{const _0x50d281=_0x330a5d['commands']['get']('uploadcareImageEdit'),_0x2d38a6=new _0xdd8139(_0x35a973),t=_0x35a973['t'];return _0x2d38a6['set']({'icon':_0x4c1bb5,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2d38a6['bind']('isEnabled')['to'](_0x50d281),_0x2d38a6['bind']('isOn')['to'](_0x50d281,'isActive'),this['listenTo'](_0x2d38a6,'execute',()=>{_0x330a5d['execute']('uploadcareImageEdit'),_0x330a5d['editing']['view']['focus']();}),_0x2d38a6;}),this['_initConfig']();}['_initConfig'](){const _0x1098f4=_0x3d35be(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1098f4),this['listenTo'](this['editor'],'destroy',()=>{_0x1098f4['remove']();});}}class et extends _0x1e6ece{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20251121.0",
3
+ "version": "0.0.0-nightly-20251123.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-20251121.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251121.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251121.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251121.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251121.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251121.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251121.0",
33
- "ckeditor5": "0.0.0-nightly-20251121.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251123.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251123.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251123.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251123.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251123.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251123.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251123.0",
33
+ "ckeditor5": "0.0.0-nightly-20251123.0",
34
34
  "@uploadcare/file-uploader": "1.19.4",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3238dc=_0x80b2;(function(_0x12aab9,_0x78ab13){const _0x53df20=_0x80b2,_0x5a2abf=_0x12aab9();while(!![]){try{const _0x42abe7=parseInt(_0x53df20(0x1f2))/0x1*(parseInt(_0x53df20(0x1d7))/0x2)+-parseInt(_0x53df20(0x217))/0x3+parseInt(_0x53df20(0x218))/0x4*(parseInt(_0x53df20(0x202))/0x5)+-parseInt(_0x53df20(0x1e7))/0x6+parseInt(_0x53df20(0x1de))/0x7+parseInt(_0x53df20(0x214))/0x8*(parseInt(_0x53df20(0x20a))/0x9)+parseInt(_0x53df20(0x1f5))/0xa*(-parseInt(_0x53df20(0x201))/0xb);if(_0x42abe7===_0x78ab13)break;else _0x5a2abf['push'](_0x5a2abf['shift']());}catch(_0x3fea1c){_0x5a2abf['push'](_0x5a2abf['shift']());}}}(_0x4d2a,0x946c0));function _0x80b2(_0x2842b4,_0x5e70d6){const _0x4d2a42=_0x4d2a();return _0x80b2=function(_0x80b2b6,_0xc236ad){_0x80b2b6=_0x80b2b6-0x1c5;let _0x21a5ed=_0x4d2a42[_0x80b2b6];return _0x21a5ed;},_0x80b2(_0x2842b4,_0x5e70d6);}import{Plugin as _0x5e3f17}from'ckeditor5/src/core.js';import{Dialog as _0xd2b812}from'ckeditor5/src/ui.js';import{createElement as _0x356cc2,global as _0x403eea,uid as _0x4f0c77}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x41803a}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5eb76b}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5cfac2}from'./utils/editingutils.js';function _0x4d2a(){const _0x3824e9=['ucContextId','render','replaceImageSource','config','listenTo','get','removeAttribute','1147374ceWzhZ','downcast','uc-config','isRegistered','getSelectedElement','init','PictureEditing','UploadcareEditing','destroy','_configElement','40FyPovL','querySelector','execute','2706912DnqKVK','4WtuZIx','extend','elementToAttribute','isPremiumPlugin','join','schema','getAttribute','_ctxElement','pluginName','imageInline','map','data-uc-image-id','commands','uploadcareImageReplace','input[uploadcare-file-input]','_initSchema','href','insertImage','selection','uploadcare.uploader','_initConversion','2YrIvPk','once','appendChild','_initCtx','remove','document','locale','7261317QsOaHc','editor','conversion','uploader-','view','imageBlock','#uc-icon-arrow-down','ctxElement','attributeToAttribute','6701694lTybxa','closeMax','afterInit','fromCharCode','add','iconHrefResolver','cleanupImage','configElement','upcast','\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','body','852309OxJSlK','isOfficialPlugin','for','13360JBRDVL','editing','_initConfig','uc-upload-ctx-provider','true','model','uploadcareImageId','uploadcare','_initImageProcessingIndicator','contentLanguage','uploadcare.pubkey','requires','9119vjstYU','6038315FzrHpU'];_0x4d2a=function(){return _0x3824e9;};return _0x4d2a();}export class UploadcareEditing extends _0x5e3f17{[_0x3238dc(0x213)]=null;[_0x3238dc(0x1c9)]=null;static get[_0x3238dc(0x1ca)](){const _0x5975d9=_0x3238dc;return _0x5975d9(0x211);}static get[_0x3238dc(0x200)](){const _0x38f5e4=_0x3238dc;return[_0x38f5e4(0x210),_0x5eb76b,_0xd2b812];}static get[_0x3238dc(0x1f3)](){return!0x0;}static get[_0x3238dc(0x1c5)](){return!0x0;}[_0x3238dc(0x203)];get[_0x3238dc(0x1ee)](){const _0x189a4e=_0x3238dc;return this[_0x189a4e(0x213)];}get[_0x3238dc(0x1e5)](){const _0x523e1f=_0x3238dc;return this[_0x523e1f(0x1c9)];}constructor(_0x4e3c54){const _0x4be2fa=_0x3238dc;super(_0x4e3c54),this[_0x4be2fa(0x203)]=_0x4f0c77();}[_0x3238dc(0x20f)](){const _0x10133e=_0x3238dc,_0x3ca8df=this[_0x10133e(0x1df)];_0x3ca8df[_0x10133e(0x1ce)][_0x10133e(0x1eb)](_0x10133e(0x1fc),new _0x41803a(_0x3ca8df));}[_0x3238dc(0x1e9)](){const _0x5be83d=_0x3238dc;this[_0x5be83d(0x1d1)](),this[_0x5be83d(0x1d6)](),this[_0x5be83d(0x1f7)](),this[_0x5be83d(0x1da)](),this[_0x5be83d(0x1fd)](),this[_0x5be83d(0x207)](this[_0x5be83d(0x1df)],_0x5be83d(0x212),()=>{const _0x319c6d=_0x5be83d;this[_0x319c6d(0x213)]&&(this[_0x319c6d(0x213)][_0x319c6d(0x1db)](),this[_0x319c6d(0x213)]=null),this[_0x319c6d(0x1c9)]&&(this[_0x319c6d(0x1c9)][_0x319c6d(0x1db)](),this[_0x319c6d(0x1c9)]=null);const _0x2ca8a7=_0x403eea[_0x319c6d(0x1dc)][_0x319c6d(0x215)](_0x319c6d(0x1d0));_0x2ca8a7&&_0x2ca8a7[_0x319c6d(0x1db)]();}),async function(_0x313482){const _0x6345c=_0x14b473([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x2da639=0x535f8c3a,_0x116590=0x5358f582^_0x2da639,_0xcb4a58=window[_0x14b473([0x44,0x61,0x74,0x65])][_0x14b473([0x6e,0x6f,0x77])](),_0x918492=_0x313482[_0x14b473([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5429fb=new window[(_0x14b473([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d9507=>{_0x918492[_0x14b473([0x6f,0x6e,0x63,0x65])](_0x14b473([0x72,0x65,0x61,0x64,0x79]),_0x1d9507);}),_0x400691={[_0x14b473([0x6b,0x74,0x79])]:_0x14b473([0x45,0x43]),[_0x14b473([0x75,0x73,0x65])]:_0x14b473([0x73,0x69,0x67]),[_0x14b473([0x63,0x72,0x76])]:_0x14b473([0x50,0x2d,0x32,0x35,0x36]),[_0x14b473([0x78])]:_0x14b473([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]),[_0x14b473([0x79])]:_0x14b473([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]),[_0x14b473([0x61,0x6c,0x67])]:_0x14b473([0x45,0x53,0x32,0x35,0x36])},_0x33cc36=_0x918492[_0x14b473([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x14b473([0x67,0x65,0x74])](_0x14b473([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e8027(){let _0x4364ed,_0x1f4309=null,_0x2a1942=null;try{if(_0x33cc36==_0x14b473([0x47,0x50,0x4c]))return _0x14b473([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4364ed=_0x15c433(),!_0x4364ed)return _0x14b473([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4364ed[_0x14b473([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a1942=_0x1a6b63(_0x4364ed[_0x14b473([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4364ed[_0x14b473([0x6a,0x74,0x69])])),await _0x2504c3()?_0x199979()?_0x1fc1d5()?_0x14b473([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2919f4()?(_0x4364ed[_0x14b473([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14b473([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1f4309=_0x19f46e(_0x14b473([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4364ed[_0x14b473([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14b473([0x74,0x72,0x69,0x61,0x6c])&&(_0x1f4309=_0x19f46e(_0x14b473([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ec6d9()):_0x14b473([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x14b473([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x14b473([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x14b473([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1fc1d5(){const _0x59c37e=[_0x14b473([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x14b473([0x74,0x72,0x69,0x61,0x6c])][_0x14b473([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4364ed[_0x14b473([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xcb4a58/0x3e8:0xe10*_0x116590;return _0x4364ed[_0x14b473([0x65,0x78,0x70])]<_0x59c37e;}function _0x199979(){const _0x15d806=_0x4364ed[_0x14b473([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x15d806&&(!!_0x15d806[_0x14b473([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b473([0x2a]))||!!_0x15d806[_0x14b473([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b473([0x55,0x50,0x4c,0x43])));}function _0x2919f4(){const _0x5bc56a=_0x80b2,_0x11756e=_0x4364ed[_0x14b473([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x11756e||0x0==_0x11756e[_0x14b473([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xbe3a57}=new URL(window[_0x14b473([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5bc56a(0x1d2)]);if(_0x11756e[_0x14b473([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbe3a57))return!0x0;const _0x1640ad=_0xbe3a57[_0x14b473([0x73,0x70,0x6c,0x69,0x74])](_0x14b473([0x2e]));return _0x11756e[_0x14b473([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e45eb=>_0x3e45eb[_0x14b473([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b473([0x2a])))[_0x14b473([0x6d,0x61,0x70])](_0x3975e8=>_0x3975e8[_0x14b473([0x73,0x70,0x6c,0x69,0x74])](_0x14b473([0x2e])))[_0x14b473([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f12f2=>_0x3f12f2[_0x14b473([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1640ad[_0x14b473([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14b473([0x6d,0x61,0x70])](_0xf7cf12=>Array(_0x1640ad[_0x14b473([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xf7cf12[_0x14b473([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14b473([0x66,0x69,0x6c,0x6c])](_0xf7cf12[0x0]===_0x14b473([0x2a])?_0x14b473([0x2a]):'')[_0x14b473([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xf7cf12))[_0x14b473([0x73,0x6f,0x6d,0x65])](_0x1fa7f2=>_0x1640ad[_0x14b473([0x65,0x76,0x65,0x72,0x79])]((_0x1435cd,_0x262a64)=>_0x1fa7f2[_0x262a64]===_0x1435cd||_0x1fa7f2[_0x262a64]===_0x14b473([0x2a])));}function _0x4ec6d9(){return _0x1f4309&&_0x2a1942?new window[(_0x14b473([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x292185,_0x4baf2d)=>{_0x1f4309[_0x14b473([0x74,0x68,0x65,0x6e])](_0x292185,_0x4baf2d),_0x2a1942[_0x14b473([0x74,0x68,0x65,0x6e])](_0xd8300f=>{_0xd8300f!=_0x14b473([0x56,0x61,0x6c,0x69,0x64])&&_0x292185(_0xd8300f);},_0x4baf2d);}):_0x1f4309||_0x2a1942||_0x14b473([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1a6b63(_0x33456d,_0xded599){return new window[(_0x14b473([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27eb46=>{if(_0x1f588a())return _0x27eb46(_0x14b473([0x56,0x61,0x6c,0x69,0x64]));_0x25d19d(),_0x918492[_0x14b473([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x14b473([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x49545a=!0x1;const _0x3f66e6=_0x4f0c77();function _0x1174e6(_0x637095){return!!_0x637095&&(typeof _0x637095===_0x14b473([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x637095===_0x14b473([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x637095[_0x14b473([0x74,0x68,0x65,0x6e])]===_0x14b473([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x637095[_0x14b473([0x63,0x61,0x74,0x63,0x68])]===_0x14b473([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x182dbf(_0x416995){_0x3abbd6(_0x416995)[_0x14b473([0x74,0x68,0x65,0x6e])](_0xb67fe0=>{if(!_0xb67fe0||_0xb67fe0[_0x14b473([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x14b473([0x6f,0x6b]))return _0x14b473([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x12b39f(_0x4baaf9(_0x3f66e6+_0xded599))!=_0xb67fe0[_0x14b473([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x14b473([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x14b473([0x56,0x61,0x6c,0x69,0x64]);})[_0x14b473([0x74,0x68,0x65,0x6e])](_0x182a7b=>(_0x57cf4c(),_0x182a7b),()=>{const _0x40e8b5=_0x367d9f();return null==_0x40e8b5?(_0x57cf4c(),_0x14b473([0x56,0x61,0x6c,0x69,0x64])):_0x14b473(_0xcb4a58-_0x40e8b5>(0x7753083a^_0x2da639)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x14b473([0x74,0x68,0x65,0x6e])](_0x27eb46)[_0x14b473([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27eb46(_0x14b473([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x57727d=0x536962ba^_0x2da639;function _0x57cf4c(){const _0x4bdf59=_0x14b473([0x6c,0x6c,0x63,0x74,0x2d])+_0x12b39f(_0x4baaf9(_0x33456d)),_0x381c90=_0x2fcdda(_0x12b39f(window[_0x14b473([0x4d,0x61,0x74,0x68])][_0x14b473([0x63,0x65,0x69,0x6c])](_0xcb4a58/_0x57727d)));window[_0x14b473([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14b473([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4bdf59,_0x381c90);}function _0x367d9f(){const _0x17b3c0=_0x14b473([0x6c,0x6c,0x63,0x74,0x2d])+_0x12b39f(_0x4baaf9(_0x33456d)),_0x2592bd=window[_0x14b473([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14b473([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x17b3c0);return _0x2592bd?window[_0x14b473([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fcdda(_0x2592bd),0x10)*_0x57727d:null;}function _0x3abbd6(_0x59dbfe){return new window[(_0x14b473([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b13bb,_0x3f13af)=>{_0x59dbfe[_0x14b473([0x74,0x68,0x65,0x6e])](_0x5b13bb,_0x3f13af),window[_0x14b473([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3f13af,0x535e58fa^_0x2da639);});}}_0x918492[_0x14b473([0x6f,0x6e])](_0x14b473([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x487cfb,_0xa71f69)=>{if(_0xa71f69[0x0]!=_0x33456d)return _0x27eb46(_0x14b473([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa71f69[0x1]={..._0xa71f69[0x1],[_0x14b473([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f66e6};},{[_0x14b473([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14b473([0x68,0x69,0x67,0x68])}),_0x918492[_0x14b473([0x6f,0x6e])](_0x14b473([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4e439c=>{_0x1174e6(_0x4e439c[_0x14b473([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x49545a=!0x0,_0x182dbf(_0x4e439c[_0x14b473([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x14b473([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14b473([0x6c,0x6f,0x77])}),_0x5429fb[_0x14b473([0x74,0x68,0x65,0x6e])](()=>{_0x49545a||_0x27eb46(_0x14b473([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1f588a(){return _0x918492[_0x14b473([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14b473([0x76,0x69,0x65,0x77])][_0x14b473([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x14b473([0x61,0x75,0x74,0x6f]);}function _0x25d19d(){_0x918492[_0x14b473([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14b473([0x76,0x69,0x65,0x77])][_0x14b473([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14b473([0x61,0x75,0x74,0x6f]);}}function _0x19f46e(_0x1637da){const _0x49ef15=[new window[(_0x14b473([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xde0d52=>setTimeout(_0xde0d52,0x5356b2f6^_0x2da639)),_0x5429fb[_0x14b473([0x74,0x68,0x65,0x6e])](()=>new window[(_0x14b473([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f3a9d=>{let _0x176d2b=0x0;_0x918492[_0x14b473([0x6d,0x6f,0x64,0x65,0x6c])][_0x14b473([0x6f,0x6e])](_0x14b473([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x174ef9,_0x36ac03)=>{_0x36ac03[0x0][_0x14b473([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x176d2b++,_0x176d2b==(0x535f8dc2^_0x2da639)&&(_0x5f3a9d(),_0x174ef9[_0x14b473([0x6f,0x66,0x66])]());});}))];return window[_0x14b473([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14b473([0x72,0x61,0x63,0x65])](_0x49ef15)[_0x14b473([0x74,0x68,0x65,0x6e])](()=>_0x1637da);}async function _0x30e40c(){await _0x5429fb,_0x918492[_0x14b473([0x6d,0x6f,0x64,0x65,0x6c])][_0x14b473([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2efedb,_0x918492[_0x14b473([0x6d,0x6f,0x64,0x65,0x6c])][_0x14b473([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2efedb,_0x918492[_0x14b473([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x14b473([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x241afc(_0x4ee693){const _0x393934=_0x3d8a9d();_0x918492[_0x393934]=_0x14b473([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ee693,_0x4ee693!=_0x14b473([0x56,0x61,0x6c,0x69,0x64])&&_0x30e40c();}function _0x3d8a9d(){const _0x14043b=window[_0x14b473([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x14b473([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x14b473([0x6e,0x6f,0x77])]())[_0x14b473([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x14b473([0x2e]),'');let _0x3bbd51=_0x14b473([0x68]);for(let _0x204cb0=0x0;_0x204cb0<_0x14043b[_0x14b473([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x204cb0+=0x2){let _0x157671=window[_0x14b473([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14043b[_0x14b473([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x204cb0,_0x204cb0+0x2));_0x157671>=_0x6345c[_0x14b473([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x157671-=_0x6345c[_0x14b473([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3bbd51+=_0x6345c[_0x157671];}return _0x3bbd51;}function _0x15c433(){const _0x1cb238=_0x33cc36[_0x14b473([0x73,0x70,0x6c,0x69,0x74])](_0x14b473([0x2e]));if(0x3!=_0x1cb238[_0x14b473([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1ca9ea(_0x1cb238[0x1]);function _0x1ca9ea(_0x2d8a72){const _0x3d14e6=_0x4ac67d(_0x2d8a72);return _0x3d14e6&&_0xad677b()?_0x3d14e6:null;function _0xad677b(){const _0x2ced04=_0x3d14e6[_0x14b473([0x6a,0x74,0x69])],_0x2dbc43=window[_0x14b473([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ced04[_0x14b473([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ced04[_0x14b473([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33284c={..._0x3d14e6,[_0x14b473([0x6a,0x74,0x69])]:_0x2ced04[_0x14b473([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2ced04[_0x14b473([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33284c[_0x14b473([0x76,0x63])],_0x4baaf9(_0x33284c)==_0x2dbc43;}}}async function _0x2504c3(){let _0x4762a2=!0x0;try{const _0x76815d=_0x33cc36[_0x14b473([0x73,0x70,0x6c,0x69,0x74])](_0x14b473([0x2e])),[_0x176354,_0xbc419c,_0x5f1fbc]=_0x76815d;return _0x116b2c(_0x176354),await _0x4a2469(_0x176354,_0xbc419c,_0x5f1fbc),_0x4762a2;}catch{return!0x1;}function _0x116b2c(_0x2589ea){const _0x11e393=_0x4ac67d(_0x2589ea);_0x11e393&&_0x11e393[_0x14b473([0x61,0x6c,0x67])]==_0x14b473([0x45,0x53,0x32,0x35,0x36])||(_0x4762a2=!0x1);}async function _0x4a2469(_0x4945f5,_0x439716,_0x5702fe){const _0x26517c=window[_0x14b473([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x14b473([0x66,0x72,0x6f,0x6d])](_0x153a71(_0x5702fe),_0x45ffbd=>_0x45ffbd[_0x14b473([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x22da6d=new window[(_0x14b473([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x14b473([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4945f5+_0x14b473([0x2e])+_0x439716),_0x17aefa=window[_0x14b473([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x14b473([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x17aefa)return;const _0x35d565=await _0x17aefa[_0x14b473([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x14b473([0x6a,0x77,0x6b]),_0x400691,{[_0x14b473([0x6e,0x61,0x6d,0x65])]:_0x14b473([0x45,0x43,0x44,0x53,0x41]),[_0x14b473([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x14b473([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x14b473([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x17aefa[_0x14b473([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x14b473([0x6e,0x61,0x6d,0x65])]:_0x14b473([0x45,0x43,0x44,0x53,0x41]),[_0x14b473([0x68,0x61,0x73,0x68])]:{[_0x14b473([0x6e,0x61,0x6d,0x65])]:_0x14b473([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x35d565,_0x26517c,_0x22da6d)||(_0x4762a2=!0x1);}}function _0x4ac67d(_0x5a9bd5){return _0x5a9bd5[_0x14b473([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x14b473([0x65,0x79]))?JSON[_0x14b473([0x70,0x61,0x72,0x73,0x65])](_0x153a71(_0x5a9bd5)):null;}function _0x153a71(_0x1a5ff2){return window[_0x14b473([0x61,0x74,0x6f,0x62])](_0x1a5ff2[_0x14b473([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x14b473([0x2b]))[_0x14b473([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x14b473([0x2f])));}function _0x4baaf9(_0x2e0eb9){let _0x59d62b=0x1505;function _0x197abe(_0x348e42){for(let _0x4b94d4=0x0;_0x4b94d4<_0x348e42[_0x14b473([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b94d4++){const _0xad6b52=_0x348e42[_0x14b473([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4b94d4);_0x59d62b=(_0x59d62b<<0x5)+_0x59d62b+_0xad6b52,_0x59d62b&=_0x59d62b;}}function _0x5db730(_0x2646c0){Array[_0x14b473([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2646c0)?_0x2646c0[_0x14b473([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5db730):_0x2646c0&&typeof _0x2646c0==_0x14b473([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x14b473([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2646c0)[_0x14b473([0x73,0x6f,0x72,0x74])]()[_0x14b473([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x238bdf,_0x2d338f])=>{_0x197abe(_0x238bdf),_0x5db730(_0x2d338f);}):_0x197abe(window[_0x14b473([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2646c0));}return _0x5db730(_0x2e0eb9),_0x59d62b>>>0x0;}function _0x12b39f(_0x1b9059){return _0x1b9059[_0x14b473([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x14b473([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x14b473([0x30]));}function _0x2fcdda(_0x40aa96){return _0x40aa96[_0x14b473([0x73,0x70,0x6c,0x69,0x74])]('')[_0x14b473([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x14b473([0x6a,0x6f,0x69,0x6e])]('');}function _0x2efedb(){}function _0x14b473(_0x5975f6){const _0x579d9f=_0x80b2;return _0x5975f6[_0x579d9f(0x1cc)](_0x2c96ef=>String[_0x579d9f(0x1ea)](_0x2c96ef))[_0x579d9f(0x1c6)]('');}_0x241afc(await _0x4e8027());}(this);}[_0x3238dc(0x1d1)](){const _0x4a6975=_0x3238dc,_0x303dbf=this[_0x4a6975(0x1df)][_0x4a6975(0x1fa)][_0x4a6975(0x1c7)];_0x303dbf[_0x4a6975(0x20d)](_0x4a6975(0x1e3))&&_0x303dbf[_0x4a6975(0x219)](_0x4a6975(0x1e3),{'allowAttributes':[_0x4a6975(0x1fb)]}),_0x303dbf[_0x4a6975(0x20d)](_0x4a6975(0x1cb))&&_0x303dbf[_0x4a6975(0x219)](_0x4a6975(0x1cb),{'allowAttributes':[_0x4a6975(0x1fb)]});}[_0x3238dc(0x1d6)](){const _0x3a1045=_0x3238dc,_0xc00801=this[_0x3a1045(0x1df)];_0xc00801[_0x3a1045(0x1e0)][_0x3a1045(0x1f4)](_0x3a1045(0x20b))[_0x3a1045(0x1e6)]({'model':_0x3a1045(0x1fb),'view':_0x3a1045(0x1cd)}),_0xc00801[_0x3a1045(0x1e0)][_0x3a1045(0x1f4)](_0x3a1045(0x1ef))[_0x3a1045(0x21a)]({'model':{'key':_0x3a1045(0x1fb),'value':_0x1fdf39=>_0x1fdf39[_0x3a1045(0x1c8)](_0x3a1045(0x1cd))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x51ec51=_0xc00801[_0x3a1045(0x1ce)][_0x3a1045(0x208)](_0x3a1045(0x205));_0x51ec51&&this[_0x3a1045(0x207)](_0x51ec51,_0x3a1045(0x1ed),(_0x48ead0,[_0x50836e,_0x2704f9])=>{const _0x24bfc6=_0x3a1045;_0x50836e[_0x24bfc6(0x209)](_0x24bfc6(0x1fb),_0x2704f9);});}[_0x3238dc(0x1f7)](){const _0x2fc552=_0x3238dc,_0x471e9b=this[_0x2fc552(0x1df)][_0x2fc552(0x206)][_0x2fc552(0x208)](_0x2fc552(0x1d5))||{},_0x4788ce=this[_0x2fc552(0x1df)][_0x2fc552(0x206)][_0x2fc552(0x208)](_0x2fc552(0x1ff))||'';this[_0x2fc552(0x213)]=_0x356cc2(_0x403eea[_0x2fc552(0x1dc)],_0x2fc552(0x20c),{..._0x471e9b,'pubkey':_0x4788ce,'ctx-name':_0x2fc552(0x1e1)+this[_0x2fc552(0x203)],'sourceList':'','imgOnly':_0x2fc552(0x1f9),'removeCopyright':_0x2fc552(0x1f9),'localeName':this[_0x2fc552(0x1df)][_0x2fc552(0x1dd)][_0x2fc552(0x1fe)],'externalSourcesEmbedCss':_0x2fc552(0x1f0)}),this[_0x2fc552(0x213)][_0x2fc552(0x1ec)]=_0x21b041=>{const _0x1e4f37=_0x2fc552;if(_0x1e4f37(0x1e8)==_0x21b041)return _0x1e4f37(0x1e4);},_0x403eea[_0x2fc552(0x1dc)][_0x2fc552(0x1f1)][_0x2fc552(0x1d9)](this[_0x2fc552(0x213)]);}[_0x3238dc(0x1da)](){const _0x1435f0=_0x3238dc;this[_0x1435f0(0x1c9)]=_0x356cc2(_0x403eea[_0x1435f0(0x1dc)],_0x1435f0(0x1f8),{'ctx-name':_0x1435f0(0x1e1)+this[_0x1435f0(0x203)]}),_0x403eea[_0x1435f0(0x1dc)][_0x1435f0(0x1f1)][_0x1435f0(0x1d9)](this[_0x1435f0(0x1c9)]);}[_0x3238dc(0x1fd)](){const _0x11c15d=_0x3238dc,_0x5b7a42=this[_0x11c15d(0x1df)][_0x11c15d(0x1ce)][_0x11c15d(0x208)](_0x11c15d(0x1d3));_0x5b7a42&&this[_0x11c15d(0x207)](_0x5b7a42,_0x11c15d(0x216),()=>{const _0x13c26e=_0x11c15d,_0x3620b0=this[_0x13c26e(0x1df)][_0x13c26e(0x1fa)][_0x13c26e(0x1dc)][_0x13c26e(0x1d4)][_0x13c26e(0x20e)]();_0x3620b0&&_0x3620b0[_0x13c26e(0x1c8)](_0x13c26e(0x1fb))&&this[_0x13c26e(0x1df)][_0x13c26e(0x1f6)][_0x13c26e(0x1e2)][_0x13c26e(0x1d8)](_0x13c26e(0x204),()=>{const _0x21308a=_0x13c26e;_0x5cfac2(this[_0x21308a(0x1df)],_0x3620b0);});});const _0x40f5f9=this[_0x11c15d(0x1df)][_0x11c15d(0x1ce)][_0x11c15d(0x208)](_0x11c15d(0x1cf));_0x40f5f9&&this[_0x11c15d(0x207)](_0x40f5f9,_0x11c15d(0x216),()=>{const _0x20840f=_0x11c15d,_0x4b3472=this[_0x20840f(0x1df)][_0x20840f(0x1fa)][_0x20840f(0x1dc)][_0x20840f(0x1d4)][_0x20840f(0x20e)]();_0x4b3472&&_0x4b3472[_0x20840f(0x1c8)](_0x20840f(0x1fb))&&this[_0x20840f(0x1df)][_0x20840f(0x1f6)][_0x20840f(0x1e2)][_0x20840f(0x1d8)](_0x20840f(0x204),()=>{const _0x328be4=_0x20840f;_0x5cfac2(this[_0x328be4(0x1df)],_0x4b3472);});});}}
23
+ const _0xe0672c=_0x107e;(function(_0x5f04cb,_0x5046f1){const _0x54f467=_0x107e,_0x25963e=_0x5f04cb();while(!![]){try{const _0x451f7c=parseInt(_0x54f467(0x14e))/0x1*(parseInt(_0x54f467(0x170))/0x2)+parseInt(_0x54f467(0x13d))/0x3+parseInt(_0x54f467(0x138))/0x4*(-parseInt(_0x54f467(0x175))/0x5)+parseInt(_0x54f467(0x133))/0x6*(-parseInt(_0x54f467(0x154))/0x7)+-parseInt(_0x54f467(0x151))/0x8*(-parseInt(_0x54f467(0x14c))/0x9)+parseInt(_0x54f467(0x140))/0xa+-parseInt(_0x54f467(0x149))/0xb;if(_0x451f7c===_0x5046f1)break;else _0x25963e['push'](_0x25963e['shift']());}catch(_0x4a703f){_0x25963e['push'](_0x25963e['shift']());}}}(_0x59d6,0x3fe87));import{Plugin as _0x45737b}from'ckeditor5/src/core.js';function _0x59d6(){const _0x2d42c3=['isPremiumPlugin','listenTo','1048674GkHMyu','querySelector','pluginName','366030TUvuqp','afterInit','remove','_configElement','uc-upload-ctx-provider','editing','_initCtx','isOfficialPlugin','requires','6412890lXXcIx','upcast','render','342XfLkoC','\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','89858Rpmfen','editor','UploadcareEditing','54296WIGnkU','_initImageProcessingIndicator','elementToAttribute','7AwBsVE','getSelectedElement','schema','replaceImageSource','imageInline','PictureEditing','init','#uc-icon-arrow-down','closeMax','body','locale','ucContextId','_initSchema','model','contentLanguage','get','uploadcare.uploader','uploadcareImageReplace','input[uploadcare-file-input]','_initConfig','uploadcare','href','commands','extend','conversion','document','appendChild','fromCharCode','6XTehPO','data-uc-image-id','selection','true','destroy','5ykMcCG','join','for','iconHrefResolver','ctxElement','attributeToAttribute','downcast','removeAttribute','getAttribute','_initConversion','_ctxElement','insertImage','imageBlock','view','uploadcare.pubkey','uploader-','cleanupImage','uploadcareImageId','add','uc-config','230754oytNFi','execute','config','isRegistered','map','121700reBASU','configElement','once'];_0x59d6=function(){return _0x2d42c3;};return _0x59d6();}import{Dialog as _0x5d5078}from'ckeditor5/src/ui.js';import{createElement as _0x2e067c,global as _0x4d8f66,uid as _0x501af4}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1e550e}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x3f4332}from'./uploadcareuploadadapter.js';function _0x107e(_0xb4d82a,_0x545017){const _0x59d6be=_0x59d6();return _0x107e=function(_0x107e05,_0x1a8405){_0x107e05=_0x107e05-0x130;let _0x4b579=_0x59d6be[_0x107e05];return _0x4b579;},_0x107e(_0xb4d82a,_0x545017);}import{showImageProcessingIndicator as _0x19cff2}from'./utils/editingutils.js';export class UploadcareEditing extends _0x45737b{[_0xe0672c(0x143)]=null;[_0xe0672c(0x17f)]=null;static get[_0xe0672c(0x13f)](){const _0x3960ef=_0xe0672c;return _0x3960ef(0x150);}static get[_0xe0672c(0x148)](){const _0x2c1f8f=_0xe0672c;return[_0x2c1f8f(0x159),_0x3f4332,_0x5d5078];}static get[_0xe0672c(0x147)](){return!0x0;}static get[_0xe0672c(0x13b)](){return!0x0;}[_0xe0672c(0x15f)];get[_0xe0672c(0x139)](){const _0x16ba9d=_0xe0672c;return this[_0x16ba9d(0x143)];}get[_0xe0672c(0x179)](){const _0x145035=_0xe0672c;return this[_0x145035(0x17f)];}constructor(_0x18e090){const _0xa5e7c7=_0xe0672c;super(_0x18e090),this[_0xa5e7c7(0x15f)]=_0x501af4();}[_0xe0672c(0x15a)](){const _0x2274ee=_0xe0672c,_0x65acbc=this[_0x2274ee(0x14f)];_0x65acbc[_0x2274ee(0x16a)][_0x2274ee(0x131)](_0x2274ee(0x168),new _0x1e550e(_0x65acbc));}[_0xe0672c(0x141)](){const _0x15b19c=_0xe0672c;this[_0x15b19c(0x160)](),this[_0x15b19c(0x17e)](),this[_0x15b19c(0x167)](),this[_0x15b19c(0x146)](),this[_0x15b19c(0x152)](),this[_0x15b19c(0x13c)](this[_0x15b19c(0x14f)],_0x15b19c(0x174),()=>{const _0x5639ab=_0x15b19c;this[_0x5639ab(0x143)]&&(this[_0x5639ab(0x143)][_0x5639ab(0x142)](),this[_0x5639ab(0x143)]=null),this[_0x5639ab(0x17f)]&&(this[_0x5639ab(0x17f)][_0x5639ab(0x142)](),this[_0x5639ab(0x17f)]=null);const _0x397725=_0x4d8f66[_0x5639ab(0x16d)][_0x5639ab(0x13e)](_0x5639ab(0x166));_0x397725&&_0x397725[_0x5639ab(0x142)]();}),async function(_0x24db5d){const _0x2b0a58=_0x30946e([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x41ac57=0x535f8c3a,_0x594d24=0x5358f5d2^_0x41ac57,_0x33da3e=window[_0x30946e([0x44,0x61,0x74,0x65])][_0x30946e([0x6e,0x6f,0x77])](),_0x8b6716=_0x24db5d[_0x30946e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x32103a=new window[(_0x30946e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x258fb6=>{_0x8b6716[_0x30946e([0x6f,0x6e,0x63,0x65])](_0x30946e([0x72,0x65,0x61,0x64,0x79]),_0x258fb6);}),_0x2ee3a7={[_0x30946e([0x6b,0x74,0x79])]:_0x30946e([0x45,0x43]),[_0x30946e([0x75,0x73,0x65])]:_0x30946e([0x73,0x69,0x67]),[_0x30946e([0x63,0x72,0x76])]:_0x30946e([0x50,0x2d,0x32,0x35,0x36]),[_0x30946e([0x78])]:_0x30946e([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]),[_0x30946e([0x79])]:_0x30946e([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]),[_0x30946e([0x61,0x6c,0x67])]:_0x30946e([0x45,0x53,0x32,0x35,0x36])},_0x4c884d=_0x8b6716[_0x30946e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x30946e([0x67,0x65,0x74])](_0x30946e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3a4cff(){let _0x148e59,_0x38e266=null,_0x5ce632=null;try{if(_0x4c884d==_0x30946e([0x47,0x50,0x4c]))return _0x30946e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x148e59=_0x58ea87(),!_0x148e59)return _0x30946e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x148e59[_0x30946e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5ce632=_0x2b653c(_0x148e59[_0x30946e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x148e59[_0x30946e([0x6a,0x74,0x69])])),await _0x240f4()?_0x47b4f9()?_0x57f4a9()?_0x30946e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x9d5ab2()?(_0x148e59[_0x30946e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30946e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x38e266=_0x59e3ea(_0x30946e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x148e59[_0x30946e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30946e([0x74,0x72,0x69,0x61,0x6c])&&(_0x38e266=_0x59e3ea(_0x30946e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3eb08e()):_0x30946e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x30946e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x30946e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x30946e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x57f4a9(){const _0x48a5ca=[_0x30946e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x30946e([0x74,0x72,0x69,0x61,0x6c])][_0x30946e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x148e59[_0x30946e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x33da3e/0x3e8:0xe10*_0x594d24;return _0x148e59[_0x30946e([0x65,0x78,0x70])]<_0x48a5ca;}function _0x47b4f9(){const _0x30a8e1=_0x148e59[_0x30946e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x30a8e1&&(!!_0x30a8e1[_0x30946e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30946e([0x2a]))||!!_0x30a8e1[_0x30946e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30946e([0x55,0x50,0x4c,0x43])));}function _0x9d5ab2(){const _0x29c8fa=_0x107e,_0x32495f=_0x148e59[_0x30946e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x32495f||0x0==_0x32495f[_0x30946e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x8c2b10}=new URL(window[_0x30946e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x29c8fa(0x169)]);if(_0x32495f[_0x30946e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8c2b10))return!0x0;const _0x550d02=_0x8c2b10[_0x30946e([0x73,0x70,0x6c,0x69,0x74])](_0x30946e([0x2e]));return _0x32495f[_0x30946e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x283b4a=>_0x283b4a[_0x30946e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30946e([0x2a])))[_0x30946e([0x6d,0x61,0x70])](_0x516d5b=>_0x516d5b[_0x30946e([0x73,0x70,0x6c,0x69,0x74])](_0x30946e([0x2e])))[_0x30946e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2a5210=>_0x2a5210[_0x30946e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x550d02[_0x30946e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x30946e([0x6d,0x61,0x70])](_0x1f24ae=>Array(_0x550d02[_0x30946e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1f24ae[_0x30946e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x30946e([0x66,0x69,0x6c,0x6c])](_0x1f24ae[0x0]===_0x30946e([0x2a])?_0x30946e([0x2a]):'')[_0x30946e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1f24ae))[_0x30946e([0x73,0x6f,0x6d,0x65])](_0x5ef359=>_0x550d02[_0x30946e([0x65,0x76,0x65,0x72,0x79])]((_0x2760b0,_0x256e31)=>_0x5ef359[_0x256e31]===_0x2760b0||_0x5ef359[_0x256e31]===_0x30946e([0x2a])));}function _0x3eb08e(){return _0x38e266&&_0x5ce632?new window[(_0x30946e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x331fd4,_0x52a835)=>{_0x38e266[_0x30946e([0x74,0x68,0x65,0x6e])](_0x331fd4,_0x52a835),_0x5ce632[_0x30946e([0x74,0x68,0x65,0x6e])](_0x160d20=>{_0x160d20!=_0x30946e([0x56,0x61,0x6c,0x69,0x64])&&_0x331fd4(_0x160d20);},_0x52a835);}):_0x38e266||_0x5ce632||_0x30946e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2b653c(_0x1c474a,_0x5adfd7){return new window[(_0x30946e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc62c85=>{if(_0x582f83())return _0xc62c85(_0x30946e([0x56,0x61,0x6c,0x69,0x64]));_0x5c39d4(),_0x8b6716[_0x30946e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x30946e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3abccd=!0x1;const _0xfc6972=_0x501af4();function _0x2070ab(_0x2cb86c){return!!_0x2cb86c&&(typeof _0x2cb86c===_0x30946e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2cb86c===_0x30946e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2cb86c[_0x30946e([0x74,0x68,0x65,0x6e])]===_0x30946e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2cb86c[_0x30946e([0x63,0x61,0x74,0x63,0x68])]===_0x30946e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3ec0a6(_0x555a5e){_0x27f5f6(_0x555a5e)[_0x30946e([0x74,0x68,0x65,0x6e])](_0x4c82ab=>{if(!_0x4c82ab||_0x4c82ab[_0x30946e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x30946e([0x6f,0x6b]))return _0x30946e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x576bfd(_0x493435(_0xfc6972+_0x5adfd7))!=_0x4c82ab[_0x30946e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x30946e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x30946e([0x56,0x61,0x6c,0x69,0x64]);})[_0x30946e([0x74,0x68,0x65,0x6e])](_0x139e2f=>(_0x324f9d(),_0x139e2f),()=>{const _0x30137f=_0x55dd8b();return null==_0x30137f?(_0x324f9d(),_0x30946e([0x56,0x61,0x6c,0x69,0x64])):_0x30946e(_0x33da3e-_0x30137f>(0x7753083a^_0x41ac57)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x30946e([0x74,0x68,0x65,0x6e])](_0xc62c85)[_0x30946e([0x63,0x61,0x74,0x63,0x68])](()=>{_0xc62c85(_0x30946e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x10c54f=0x536962ba^_0x41ac57;function _0x324f9d(){const _0x2a7c32=_0x30946e([0x6c,0x6c,0x63,0x74,0x2d])+_0x576bfd(_0x493435(_0x1c474a)),_0x329fb2=_0x382b35(_0x576bfd(window[_0x30946e([0x4d,0x61,0x74,0x68])][_0x30946e([0x63,0x65,0x69,0x6c])](_0x33da3e/_0x10c54f)));window[_0x30946e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30946e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a7c32,_0x329fb2);}function _0x55dd8b(){const _0x1154c7=_0x30946e([0x6c,0x6c,0x63,0x74,0x2d])+_0x576bfd(_0x493435(_0x1c474a)),_0x4d0a67=window[_0x30946e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30946e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1154c7);return _0x4d0a67?window[_0x30946e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x382b35(_0x4d0a67),0x10)*_0x10c54f:null;}function _0x27f5f6(_0x1dcdef){return new window[(_0x30946e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x441369,_0x271414)=>{_0x1dcdef[_0x30946e([0x74,0x68,0x65,0x6e])](_0x441369,_0x271414),window[_0x30946e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x271414,0x535e58fa^_0x41ac57);});}}_0x8b6716[_0x30946e([0x6f,0x6e])](_0x30946e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5affd2,_0x454a8c)=>{if(_0x454a8c[0x0]!=_0x1c474a)return _0xc62c85(_0x30946e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x454a8c[0x1]={..._0x454a8c[0x1],[_0x30946e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xfc6972};},{[_0x30946e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30946e([0x68,0x69,0x67,0x68])}),_0x8b6716[_0x30946e([0x6f,0x6e])](_0x30946e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2690c6=>{_0x2070ab(_0x2690c6[_0x30946e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3abccd=!0x0,_0x3ec0a6(_0x2690c6[_0x30946e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x30946e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30946e([0x6c,0x6f,0x77])}),_0x32103a[_0x30946e([0x74,0x68,0x65,0x6e])](()=>{_0x3abccd||_0xc62c85(_0x30946e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x582f83(){return _0x8b6716[_0x30946e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30946e([0x76,0x69,0x65,0x77])][_0x30946e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x30946e([0x61,0x75,0x74,0x6f]);}function _0x5c39d4(){_0x8b6716[_0x30946e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30946e([0x76,0x69,0x65,0x77])][_0x30946e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x30946e([0x61,0x75,0x74,0x6f]);}}function _0x59e3ea(_0x16ee4f){const _0x3e20ae=[new window[(_0x30946e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x110f43=>setTimeout(_0x110f43,0x5356b2f6^_0x41ac57)),_0x32103a[_0x30946e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x30946e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21a7e4=>{let _0xe8995=0x0;_0x8b6716[_0x30946e([0x6d,0x6f,0x64,0x65,0x6c])][_0x30946e([0x6f,0x6e])](_0x30946e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x368848,_0x1ab28)=>{_0x1ab28[0x0][_0x30946e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xe8995++,_0xe8995==(0x535f8dc2^_0x41ac57)&&(_0x21a7e4(),_0x368848[_0x30946e([0x6f,0x66,0x66])]());});}))];return window[_0x30946e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x30946e([0x72,0x61,0x63,0x65])](_0x3e20ae)[_0x30946e([0x74,0x68,0x65,0x6e])](()=>_0x16ee4f);}async function _0x24d830(){await _0x32103a,_0x8b6716[_0x30946e([0x6d,0x6f,0x64,0x65,0x6c])][_0x30946e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x456ed9,_0x8b6716[_0x30946e([0x6d,0x6f,0x64,0x65,0x6c])][_0x30946e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x456ed9,_0x8b6716[_0x30946e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x30946e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x84bb58(_0x4a01d2){const _0x437bbd=_0x150930();_0x8b6716[_0x437bbd]=_0x30946e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4a01d2,_0x4a01d2!=_0x30946e([0x56,0x61,0x6c,0x69,0x64])&&_0x24d830();}function _0x150930(){const _0x458c74=window[_0x30946e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x30946e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x30946e([0x6e,0x6f,0x77])]())[_0x30946e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x30946e([0x2e]),'');let _0x3289b8=_0x30946e([0x68]);for(let _0x382307=0x0;_0x382307<_0x458c74[_0x30946e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x382307+=0x2){let _0xfe178=window[_0x30946e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x458c74[_0x30946e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x382307,_0x382307+0x2));_0xfe178>=_0x2b0a58[_0x30946e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xfe178-=_0x2b0a58[_0x30946e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3289b8+=_0x2b0a58[_0xfe178];}return _0x3289b8;}function _0x58ea87(){const _0x5448b6=_0x4c884d[_0x30946e([0x73,0x70,0x6c,0x69,0x74])](_0x30946e([0x2e]));if(0x3!=_0x5448b6[_0x30946e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5cde7e(_0x5448b6[0x1]);function _0x5cde7e(_0x164a1f){const _0xd24815=_0x57473e(_0x164a1f);return _0xd24815&&_0x34dbd3()?_0xd24815:null;function _0x34dbd3(){const _0x18f404=_0xd24815[_0x30946e([0x6a,0x74,0x69])],_0x4d81c7=window[_0x30946e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18f404[_0x30946e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18f404[_0x30946e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x470a86={..._0xd24815,[_0x30946e([0x6a,0x74,0x69])]:_0x18f404[_0x30946e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x18f404[_0x30946e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x470a86[_0x30946e([0x76,0x63])],_0x493435(_0x470a86)==_0x4d81c7;}}}async function _0x240f4(){let _0x2deb4b=!0x0;try{const _0x12007b=_0x4c884d[_0x30946e([0x73,0x70,0x6c,0x69,0x74])](_0x30946e([0x2e])),[_0x2452bd,_0x143872,_0x4458a3]=_0x12007b;return _0x464628(_0x2452bd),await _0x579e9c(_0x2452bd,_0x143872,_0x4458a3),_0x2deb4b;}catch{return!0x1;}function _0x464628(_0x546bb1){const _0x538bee=_0x57473e(_0x546bb1);_0x538bee&&_0x538bee[_0x30946e([0x61,0x6c,0x67])]==_0x30946e([0x45,0x53,0x32,0x35,0x36])||(_0x2deb4b=!0x1);}async function _0x579e9c(_0xcceef4,_0x4a691d,_0x1e0765){const _0x77c353=window[_0x30946e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x30946e([0x66,0x72,0x6f,0x6d])](_0x303e01(_0x1e0765),_0x27964c=>_0x27964c[_0x30946e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x50c94a=new window[(_0x30946e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x30946e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xcceef4+_0x30946e([0x2e])+_0x4a691d),_0x3ec65b=window[_0x30946e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x30946e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3ec65b)return;const _0x1df6f3=await _0x3ec65b[_0x30946e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x30946e([0x6a,0x77,0x6b]),_0x2ee3a7,{[_0x30946e([0x6e,0x61,0x6d,0x65])]:_0x30946e([0x45,0x43,0x44,0x53,0x41]),[_0x30946e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x30946e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x30946e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3ec65b[_0x30946e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x30946e([0x6e,0x61,0x6d,0x65])]:_0x30946e([0x45,0x43,0x44,0x53,0x41]),[_0x30946e([0x68,0x61,0x73,0x68])]:{[_0x30946e([0x6e,0x61,0x6d,0x65])]:_0x30946e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1df6f3,_0x77c353,_0x50c94a)||(_0x2deb4b=!0x1);}}function _0x57473e(_0x2278ab){return _0x2278ab[_0x30946e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x30946e([0x65,0x79]))?JSON[_0x30946e([0x70,0x61,0x72,0x73,0x65])](_0x303e01(_0x2278ab)):null;}function _0x303e01(_0x529063){return window[_0x30946e([0x61,0x74,0x6f,0x62])](_0x529063[_0x30946e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x30946e([0x2b]))[_0x30946e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x30946e([0x2f])));}function _0x493435(_0x17ef54){let _0x1a0b3f=0x1505;function _0x2961df(_0x3463cb){for(let _0x4ca75e=0x0;_0x4ca75e<_0x3463cb[_0x30946e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ca75e++){const _0x4eb1ec=_0x3463cb[_0x30946e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ca75e);_0x1a0b3f=(_0x1a0b3f<<0x5)+_0x1a0b3f+_0x4eb1ec,_0x1a0b3f&=_0x1a0b3f;}}function _0x422e99(_0x4bce14){Array[_0x30946e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4bce14)?_0x4bce14[_0x30946e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x422e99):_0x4bce14&&typeof _0x4bce14==_0x30946e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x30946e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4bce14)[_0x30946e([0x73,0x6f,0x72,0x74])]()[_0x30946e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x53c89e,_0x39a3b7])=>{_0x2961df(_0x53c89e),_0x422e99(_0x39a3b7);}):_0x2961df(window[_0x30946e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4bce14));}return _0x422e99(_0x17ef54),_0x1a0b3f>>>0x0;}function _0x576bfd(_0x48ec37){return _0x48ec37[_0x30946e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x30946e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x30946e([0x30]));}function _0x382b35(_0x11fa96){return _0x11fa96[_0x30946e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x30946e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x30946e([0x6a,0x6f,0x69,0x6e])]('');}function _0x456ed9(){}function _0x30946e(_0x3dbab0){const _0x50e98b=_0x107e;return _0x3dbab0[_0x50e98b(0x137)](_0x583c69=>String[_0x50e98b(0x16f)](_0x583c69))[_0x50e98b(0x176)]('');}_0x84bb58(await _0x3a4cff());}(this);}[_0xe0672c(0x160)](){const _0xabeb27=_0xe0672c,_0xb44c1c=this[_0xabeb27(0x14f)][_0xabeb27(0x161)][_0xabeb27(0x156)];_0xb44c1c[_0xabeb27(0x136)](_0xabeb27(0x181))&&_0xb44c1c[_0xabeb27(0x16b)](_0xabeb27(0x181),{'allowAttributes':[_0xabeb27(0x130)]}),_0xb44c1c[_0xabeb27(0x136)](_0xabeb27(0x158))&&_0xb44c1c[_0xabeb27(0x16b)](_0xabeb27(0x158),{'allowAttributes':[_0xabeb27(0x130)]});}[_0xe0672c(0x17e)](){const _0x2f75f2=_0xe0672c,_0x44d4ac=this[_0x2f75f2(0x14f)];_0x44d4ac[_0x2f75f2(0x16c)][_0x2f75f2(0x177)](_0x2f75f2(0x17b))[_0x2f75f2(0x17a)]({'model':_0x2f75f2(0x130),'view':_0x2f75f2(0x171)}),_0x44d4ac[_0x2f75f2(0x16c)][_0x2f75f2(0x177)](_0x2f75f2(0x14a))[_0x2f75f2(0x153)]({'model':{'key':_0x2f75f2(0x130),'value':_0x357b34=>_0x357b34[_0x2f75f2(0x17d)](_0x2f75f2(0x171))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x587286=_0x44d4ac[_0x2f75f2(0x16a)][_0x2f75f2(0x163)](_0x2f75f2(0x157));_0x587286&&this[_0x2f75f2(0x13c)](_0x587286,_0x2f75f2(0x185),(_0x4daee9,[_0x4861cf,_0xac247e])=>{const _0x508e67=_0x2f75f2;_0x4861cf[_0x508e67(0x17c)](_0x508e67(0x130),_0xac247e);});}[_0xe0672c(0x167)](){const _0x3cca38=_0xe0672c,_0x4c5a3b=this[_0x3cca38(0x14f)][_0x3cca38(0x135)][_0x3cca38(0x163)](_0x3cca38(0x164))||{},_0x33270b=this[_0x3cca38(0x14f)][_0x3cca38(0x135)][_0x3cca38(0x163)](_0x3cca38(0x183))||'';this[_0x3cca38(0x143)]=_0x2e067c(_0x4d8f66[_0x3cca38(0x16d)],_0x3cca38(0x132),{..._0x4c5a3b,'pubkey':_0x33270b,'ctx-name':_0x3cca38(0x184)+this[_0x3cca38(0x15f)],'sourceList':'','imgOnly':_0x3cca38(0x173),'removeCopyright':_0x3cca38(0x173),'localeName':this[_0x3cca38(0x14f)][_0x3cca38(0x15e)][_0x3cca38(0x162)],'externalSourcesEmbedCss':_0x3cca38(0x14d)}),this[_0x3cca38(0x143)][_0x3cca38(0x178)]=_0x14d530=>{const _0x280437=_0x3cca38;if(_0x280437(0x15c)==_0x14d530)return _0x280437(0x15b);},_0x4d8f66[_0x3cca38(0x16d)][_0x3cca38(0x15d)][_0x3cca38(0x16e)](this[_0x3cca38(0x143)]);}[_0xe0672c(0x146)](){const _0x3bb9ef=_0xe0672c;this[_0x3bb9ef(0x17f)]=_0x2e067c(_0x4d8f66[_0x3bb9ef(0x16d)],_0x3bb9ef(0x144),{'ctx-name':_0x3bb9ef(0x184)+this[_0x3bb9ef(0x15f)]}),_0x4d8f66[_0x3bb9ef(0x16d)][_0x3bb9ef(0x15d)][_0x3bb9ef(0x16e)](this[_0x3bb9ef(0x17f)]);}[_0xe0672c(0x152)](){const _0x23c0c3=_0xe0672c,_0x29c9bf=this[_0x23c0c3(0x14f)][_0x23c0c3(0x16a)][_0x23c0c3(0x163)](_0x23c0c3(0x180));_0x29c9bf&&this[_0x23c0c3(0x13c)](_0x29c9bf,_0x23c0c3(0x134),()=>{const _0x436679=_0x23c0c3,_0x392c50=this[_0x436679(0x14f)][_0x436679(0x161)][_0x436679(0x16d)][_0x436679(0x172)][_0x436679(0x155)]();_0x392c50&&_0x392c50[_0x436679(0x17d)](_0x436679(0x130))&&this[_0x436679(0x14f)][_0x436679(0x145)][_0x436679(0x182)][_0x436679(0x13a)](_0x436679(0x14b),()=>{const _0x30f6f1=_0x436679;_0x19cff2(this[_0x30f6f1(0x14f)],_0x392c50);});});const _0x141482=this[_0x23c0c3(0x14f)][_0x23c0c3(0x16a)][_0x23c0c3(0x163)](_0x23c0c3(0x165));_0x141482&&this[_0x23c0c3(0x13c)](_0x141482,_0x23c0c3(0x134),()=>{const _0x512896=_0x23c0c3,_0x374c50=this[_0x512896(0x14f)][_0x512896(0x161)][_0x512896(0x16d)][_0x512896(0x172)][_0x512896(0x155)]();_0x374c50&&_0x374c50[_0x512896(0x17d)](_0x512896(0x130))&&this[_0x512896(0x14f)][_0x512896(0x145)][_0x512896(0x182)][_0x512896(0x13a)](_0x512896(0x14b),()=>{const _0x51a448=_0x512896;_0x19cff2(this[_0x51a448(0x14f)],_0x374c50);});});}}