@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250527.0 → 0.0.0-nightly-20250528.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 _0x2c287e,Command as _0xf7e4e}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x110a52,IconGooglePhotos as _0x49354f,IconGoogleDrive as _0x910440,IconFacebook as _0xf4981a,IconDropbox as _0xba03bb,IconUploadcareLink as _0x5a8f41,IconUploadcareImageUpload as _0x5a8393,IconError as et,IconUploadcareImageEdit as _0x3e57fb}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x377fcc,MenuBarMenuListItemButtonView as _0x442465,View as _0x4c8056,FocusCycler as _0x309fca,Dialog as _0x165ee0,DialogViewPosition as _0x528f2d,SpinnerView as _0x107ead,IconView as at,Notification as _0x488d95}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1b6eb3,DomEmitterMixin as _0x54558a,global as _0x174993,getAncestors as _0x15f199,ObservableMixin as _0x3b06fb,createElement as _0x386c6f,uid as _0x82b7b1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2f90f2}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2463eb,info as _0x3421d3}from'@uploadcare/upload-client';import*as _0x2f16dc from'@uploadcare/file-uploader';var o=function(_0x5e3977){return _0x5e3977['Local']='local',_0x5e3977['URL']='url',_0x5e3977['Dropbox']='dropbox',_0x5e3977['GDrive']='gdrive',_0x5e3977['Facebook']='facebook',_0x5e3977['GPhotos']='gphotos',_0x5e3977['OneDrive']='onedrive',_0x5e3977;}({});function _(_0x262eb4,_0x1df8bc,_0x2bcdfe){const t=_0x262eb4['t'],_0x40d96e=_0x262eb4['t'];switch(_0x1df8bc){case o['Local']:return{'text':_0x40d96e('Insert'===_0x2bcdfe?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x40d96e('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x2bcdfe?_0x40d96e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x40d96e('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x2bcdfe?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x2bcdfe?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x2bcdfe?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x2bcdfe?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x2bcdfe?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1df8bc;}}class e extends _0x2c287e{['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 _0x2511aa=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x74fbc3;for(const _0x52b456 in _0x2511aa){const _0x1e7235=_0x52b456,_0x4d5c90=_0x2511aa[_0x1e7235];if('uploadcareLicenseKeyValid'==_0x4d5c90||'uploadcareLicenseKeyInvalid'==_0x4d5c90||'uploadcareLicenseKeyExpired'==_0x4d5c90||'uploadcareLicenseKeyDomainLimit'==_0x4d5c90||'uploadcareLicenseKeyNotAllowed'==_0x4d5c90||'uploadcareLicenseKeyEvaluationLimit'==_0x4d5c90||'uploadcareLicenseKeyTrialLimit'==_0x4d5c90||'uploadcareLicenseKeyUsageLimit'==_0x4d5c90){delete _0x2511aa[_0x1e7235],_0x74fbc3=_0x4d5c90,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x74fbc3&&_0x2511aa['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x74fbc3&&_0x2511aa['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x74fbc3&&_0x2511aa['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x74fbc3&&_0x2511aa['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x74fbc3&&_0x2511aa['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x74fbc3&&_0x2511aa['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x74fbc3&&_0x2511aa['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x453f80}=this,_0x1a7145=_0x453f80['commands']['get']('uploadcare');if(!_0x1a7145)return;const _0xee85c3=this['_normalizeConfigSourceList'](_0x453f80['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3cf9f7,_0x5b15a9)=>{const _0x1ba7e7=this['_getIntegrationKey'](_0x5b15a9['type']);return _0x3cf9f7[_0x1ba7e7]||(_0x3cf9f7[_0x1ba7e7]=[]),_0x3cf9f7[_0x1ba7e7]['push'](_0x5b15a9),_0x3cf9f7;},{});_0x453f80['plugins']['has']('ImageInsertUI')&&_0x453f80['commands']['get']('uploadcare')&&Object['entries'](_0xee85c3)['forEach'](([_0x30afca,_0x24db5b])=>{_0x453f80['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x30afca,'observable':()=>_0x1a7145,'buttonViewCreator':()=>this['_createToolbarButton'](_0x24db5b),'formViewCreator':()=>this['_createDropdownButtons'](_0x24db5b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x24db5b),'override':'assetManager'!==_0x30afca});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xe9c3f7){const {locale:_0x30dd08}=this['editor'];return _0xe9c3f7['map'](_0x35ea6d=>{const _0x1da6cb=_(_0x30dd08,_0x35ea6d,'Insert');switch(_0x35ea6d){case o['Local']:return{'icon':_0x5a8393,'type':o['Local'],..._0x1da6cb};case o['URL']:return{'icon':_0x5a8f41,'type':o['URL'],..._0x1da6cb};case o['Dropbox']:return{'icon':_0xba03bb,'type':o['Dropbox'],..._0x1da6cb};case o['Facebook']:return{'icon':_0xf4981a,'type':o['Facebook'],..._0x1da6cb};case o['GDrive']:return{'icon':_0x910440,'type':o['GDrive'],..._0x1da6cb};case o['GPhotos']:return{'icon':_0x49354f,'type':o['GPhotos'],..._0x1da6cb};case o['OneDrive']:return{'icon':_0x110a52,'type':o['OneDrive'],..._0x1da6cb};}});}['_getIntegrationKey'](_0x2b0952){switch(_0x2b0952){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2d4c2b,_0x5a4d22){const _0x47816c=this['editor'],_0x572134=new _0x2d4c2b(_0x47816c['locale']),_0x351db3=_0x47816c['commands']['get']('uploadcare');return _0x572134['bind']('isEnabled')['to'](_0x351db3),_0x572134['on']('execute',()=>{_0x351db3['execute'](_0x5a4d22);}),_0x572134;}['_createToolbarButton'](_0x3fd2a6){const {locale:_0x31293f}=this['editor'],_0x3482b6=this['editor']['plugins']['get']('ImageInsertUI'),_0x2ddc57=_0x3fd2a6[0x0],_0x53122e=this['_createButton'](_0x377fcc,_0x2ddc57['type']);return _0x53122e['icon']=_0x2ddc57['icon'],_0x53122e['bind']('label')['to'](_0x3482b6,'isImageSelected',_0x2cbde2=>_(_0x31293f,_0x2ddc57['type'],_0x2cbde2?'Replace':'Insert')['text']),_0x53122e['tooltip']=!0x0,_0x53122e;}['_createDropdownButtons'](_0x2978d9){const {locale:_0x38f45c}=this['editor'],_0x340f1f=this['editor']['plugins']['get']('ImageInsertUI');return _0x2978d9['map'](_0x3ab753=>{const _0x4db88b=this['_createButton'](_0x377fcc,_0x3ab753['type']);return _0x4db88b['withText']=!0x0,_0x4db88b['icon']=_0x3ab753['icon'],_0x4db88b['bind']('label')['to'](_0x340f1f,'isImageSelected',_0x58e332=>_(_0x38f45c,_0x3ab753['type'],_0x58e332?'Replace':'Insert')['text']),_0x4db88b;});}['_createMenuBarButtons'](_0xd475d9){return _0xd475d9['map'](_0x48f5ce=>{const _0x27d3bf=this['_createButton'](_0x442465,_0x48f5ce['type']);return _0x27d3bf['icon']=_0x48f5ce['icon'],_0x27d3bf['label']=_0x48f5ce['shortText'],_0x27d3bf;});}}class q extends _0x4c8056{['focusTracker'];['focusCycler'];constructor(_0x19ab21){super(_0x19ab21),this['focusTracker']=new _0x1b6eb3(),this['focusCycler']=new _0x309fca({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x408656){super(_0x408656),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0xe23fd8,_0x1e9e1b){const _0xe31043=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3655f9=>_0x3655f9<=_0x1e9e1b)['map'](_0x508ae4=>_0xe23fd8['replace'](/\/$/,'')+'/-/resize/'+_0x508ae4+'x/\x20'+_0x508ae4+'w');return{'imageFallbackUrl':_0xe23fd8,'imageSources':[{'srcset':_0xe31043['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1e9e1b+'px)\x20100vw,\x20'+_0x1e9e1b+'px','type':'image/webp'}]};}function A(_0x338e62,_0x2eff63,_0x5c1e33){const _0x2efb3d=_0x338e62['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2efb3d?parseInt(_0x2efb3d[0x1],0xa):_0x2eff63,'height':_0x2efb3d?parseInt(_0x2efb3d[0x2],0xa):_0x5c1e33};}function m(_0x7e0bf7,_0x2d4137){const _0xa3fb31=Object['create'](_0x54558a),_0x47fe42=_0x7e0bf7['plugins']['get']('ImageUtils'),_0x2d40ba=_0x7e0bf7['editing']['mapper']['toViewElement'](_0x2d4137),_0x1fa4c6=_0x47fe42['findViewImgElement'](_0x2d40ba),_0x1b0952=_0x7e0bf7['editing']['view']['domConverter']['viewToDom'](_0x1fa4c6),_0xda582c=_0x2d4137['getAttribute']('width'),_0x3a809f=_0x2d4137['getAttribute']('height'),_0x233e0a='image-processing';_0x7e0bf7['editing']['view']['change'](_0x495a65=>{_0x495a65['addClass'](_0x233e0a,_0x2d40ba),_0x495a65['setStyle']('aspect-ratio',_0xda582c+'/'+_0x3a809f,_0x1fa4c6);}),_0xa3fb31['listenTo'](_0x1b0952,'load',()=>{_0xa3fb31['stopListening'](_0x1b0952,'load'),_0x7e0bf7['editing']['view']['change'](_0x557444=>{_0x557444['removeClass'](_0x233e0a,_0x2d40ba),_0x557444['removeStyle']('aspect-ratio',_0x1fa4c6);});});}function V(_0xc6b248){if(Array['isArray'](_0xc6b248)){const _0x13363d=_0xc6b248['map'](V);return _0x5db24b=>_0x13363d['some'](_0x52bbef=>_0x52bbef(_0x5db24b));}if('origin'==_0xc6b248){const _0x5b9566=_0x174993['window']['location']['origin'];return _0xd24f4e=>new URL(_0xd24f4e,_0x174993['document']['baseURI'])['origin']==_0x5b9566;}return'function'==typeof _0xc6b248?_0xc6b248:_0xc6b248 instanceof RegExp?_0x44f71b=>!(!_0x44f71b['match'](_0xc6b248)&&!_0x44f71b['replace'](/^https?:\/\//,'')['match'](_0xc6b248)):()=>!0x1;}function F(_0x4face7,_0x8f643a){return _0x15f199(_0x4face7['target'])['includes'](_0x8f643a);}class l extends/* #__PURE__ -- @preserve */
24
- _0x3b06fb(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xaaef38,_0x191d24,_0x109f29){super(),this['_editor']=_0xaaef38,this['_editing']=_0x191d24,this['_dialog']=_0xaaef38['plugins']['get'](_0x165ee0),this['_api']=_0x191d24['ctxElement']['getAPI'](),this['_type']=_0x109f29,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:_0xb126b6,model:_0x56fde9}=this['_editor'],_0x46d81d=_0x56fde9['document']['selection']['getSelectedElement'](),_0x384158=_0x46d81d&&(_0x46d81d['is']('element','imageBlock')||_0x46d81d['is']('element','imageInline'));this['_formView']=new S(_0xb126b6),this['_dialog']['show']({'id':'uploadCare','icon':_0x5a8393,'title':_(_0xb126b6,this['_type'],_0x384158?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x528f2d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x282561=>!F(_0x282561,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4ee62e}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x42c48b=>{const _0x219538=_0x4ee62e['length'];for(const _0x1130cf of _0x4ee62e){const _0x487dbe=_0x1130cf===_0x4ee62e[_0x219538-0x1],{cdnUrl:_0x2fcf3e,fileInfo:_0x5dd0fd}=_0x1130cf;if(!_0x2fcf3e||!_0x5dd0fd)continue;const {width:_0x159c3b,height:_0x3d0733}=_0x5dd0fd['imageInfo'],_0xb2dca1=A(_0x2fcf3e,_0x159c3b,_0x3d0733),_0x23746f=E(_0x2fcf3e,_0xb2dca1['width']),_0xb94ad4={'id':_0x5dd0fd['uuid'],'type':'image','attributes':{'imageDimension':_0xb2dca1,..._0x23746f}};this['_insertAsset'](_0xb94ad4,_0x487dbe,_0x42c48b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5056fc=>{'idle'===_0x5056fc['detail']['status']&&!_0x5056fc['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x556e0a,_0xabdcbd,_0x2d2549){const _0x4c018d=this['_editor']['model']['document']['selection'],_0x718990=_0x4c018d['getSelectedElement'](),_0x39e806=!(!_0x718990||!_0x718990['is']('element','imageInline'));_0x2d2549['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x556e0a,_0x39e806),_0xabdcbd||_0x2d2549['setSelection'](_0x4c018d['getLastPosition']());}['_insertImage'](_0x2f2fcb,_0x302425){const _0x5cf80b=this['_editor'],{imageDimension:_0x58a9d,imageFallbackUrl:_0x37ac37,imageSources:_0x310231}=_0x2f2fcb['attributes'];_0x5cf80b['execute']('insertImage',{'imageType':_0x302425?'imageInline':null,'source':{'uploadcareImageId':_0x2f2fcb['id'],'src':_0x37ac37,'sources':_0x310231,..._0x58a9d}});}}class n extends _0xf7e4e{['_editing'];['_controller']=null;static get['requires'](){return[_0x165ee0,i];}constructor(_0x14023d){super(_0x14023d),this['_editing']=_0x14023d['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1f58c6){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1f58c6);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x5ad667,publicKey:_0x1662f7,signal:_0x239742,onProgress:_0x344ad3}){return _0x2463eb(_0x5ad667,{'publicKey':_0x1662f7,'store':'auto','signal':_0x239742,'onProgress':_0x344ad3});}static['getInfo'](_0x31977f,_0x2bd8c7){return _0x3421d3(_0x31977f,_0x2bd8c7);}}class p extends _0x2c287e{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2f90f2,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4780bc=this['editor'];if(!!!_0x4780bc['config']['get']('uploadcare'))return;_0x4780bc['plugins']['get'](_0x2f90f2)['createUploadAdapter']=_0x3dee1f=>new x(_0x3dee1f,_0x4780bc),_0x4780bc['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x280d48,{imageElement:_0x2236db,data:_0xe3bc00})=>{_0x4780bc['model']['change'](_0xe519a4=>{_0xe519a4['setAttribute']('uploadcareImageId',_0xe3bc00['uploadcareImageId'],_0x2236db);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x1fe582,_0x29553f){this['loader']=_0x1fe582,this['editor']=_0x29553f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xab62b3=this['editor']['config']['get']('uploadcare.pubkey'),_0x2ae715=await this['loader']['file'];return C['upload']({'file':_0x2ae715,'publicKey':_0xab62b3,'signal':this['controller']['signal'],'onProgress':_0x2cf7d5=>{_0x2cf7d5&&_0x2cf7d5['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2cf7d5['value']);}})['then'](async _0x5678f4=>{const {imageFallbackUrl:_0x14adb8,imageSources:_0x593a47}=E(_0x5678f4['cdnUrl'],_0x5678f4['imageInfo']['width']);return{'uploadcareImageId':_0x5678f4['uuid'],'default':_0x14adb8,'sources':_0x593a47};})['catch'](()=>{const _0x6797de=t('Cannot\x20upload\x20file:')+('\x20'+_0x2ae715['name']+'.');return Promise['reject'](_0x6797de);});}['abort'](){this['controller']['abort']();}}class i extends _0x2c287e{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x165ee0];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x74f81a=this['editor'];_0x74f81a['commands']['add']('uploadcare',new n(_0x74f81a));}['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 _0x1c44a2=_0x174993['document']['querySelector']('input[uploadcare-file-input]');_0x1c44a2&&_0x1c44a2['remove']();}),async function(_0x493e39){const _0x14df80=_0x30958e([0x57,0x71,0x73,0x33,0x4a,0x4f,0x52,0x35,0x32,0x56,0x4d,0x51,0x67,0x47,0x69,0x54,0x74,0x4b,0x75,0x55,0x53,0x79,0x36,0x44,0x50,0x78,0x38,0x63,0x37,0x61,0x45,0x6a,0x68,0x5a,0x70,0x42,0x66,0x6b,0x41,0x34,0x76,0x4c,0x62,0x6c,0x6f,0x59,0x6d,0x58,0x64,0x31,0x4e,0x7a,0x77,0x39,0x30,0x65,0x6e,0x46,0x43,0x72,0x49,0x48]),_0x4292e7=0x3053539b,_0x3d0142=0x30543a93^_0x4292e7,_0x1eb8da=window[_0x30958e([0x44,0x61,0x74,0x65])][_0x30958e([0x6e,0x6f,0x77])](),_0x38a021=_0x493e39[_0x30958e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x21ce24=new window[(_0x30958e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x548d39=>{_0x38a021[_0x30958e([0x6f,0x6e,0x63,0x65])](_0x30958e([0x72,0x65,0x61,0x64,0x79]),_0x548d39);}),_0x490c0e={[_0x30958e([0x6b,0x74,0x79])]:_0x30958e([0x45,0x43]),[_0x30958e([0x75,0x73,0x65])]:_0x30958e([0x73,0x69,0x67]),[_0x30958e([0x63,0x72,0x76])]:_0x30958e([0x50,0x2d,0x32,0x35,0x36]),[_0x30958e([0x78])]:_0x30958e([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]),[_0x30958e([0x79])]:_0x30958e([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]),[_0x30958e([0x61,0x6c,0x67])]:_0x30958e([0x45,0x53,0x32,0x35,0x36])},_0x53bf31=_0x38a021[_0x30958e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x30958e([0x67,0x65,0x74])](_0x30958e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x7ecf3e(){let _0x4c0f85,_0x43acf6=null,_0x494253=null;try{if(_0x53bf31==_0x30958e([0x47,0x50,0x4c]))return _0x30958e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c0f85=_0x474a42(),!_0x4c0f85)return _0x30958e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c0f85[_0x30958e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x494253=_0x159a75(_0x4c0f85[_0x30958e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c0f85[_0x30958e([0x6a,0x74,0x69])])),await _0x3dbcb9()?_0x26e4db()?_0x4aca19()?_0x30958e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5b3942()?(_0x4c0f85[_0x30958e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30958e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x43acf6=_0x3bbdbd(_0x30958e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c0f85[_0x30958e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30958e([0x74,0x72,0x69,0x61,0x6c])&&(_0x43acf6=_0x3bbdbd(_0x30958e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ee2d2()):_0x30958e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x30958e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x30958e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x30958e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4aca19(){const _0x483c7a=[_0x30958e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x30958e([0x74,0x72,0x69,0x61,0x6c])][_0x30958e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c0f85[_0x30958e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1eb8da/0x3e8:0xe10*_0x3d0142;return _0x4c0f85[_0x30958e([0x65,0x78,0x70])]<_0x483c7a;}function _0x26e4db(){const _0x371960=_0x4c0f85[_0x30958e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x371960&&(!!_0x371960[_0x30958e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30958e([0x2a]))||!!_0x371960[_0x30958e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30958e([0x55,0x50,0x4c,0x43])));}function _0x5b3942(){const _0xbbb899=_0x4c0f85[_0x30958e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xbbb899||0x0==_0xbbb899[_0x30958e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1b3e03}=new URL(window[_0x30958e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xbbb899[_0x30958e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b3e03))return!0x0;const _0x11da81=_0x1b3e03[_0x30958e([0x73,0x70,0x6c,0x69,0x74])](_0x30958e([0x2e]));return _0xbbb899[_0x30958e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41e09e=>_0x41e09e[_0x30958e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30958e([0x2a])))[_0x30958e([0x6d,0x61,0x70])](_0x49745a=>_0x49745a[_0x30958e([0x73,0x70,0x6c,0x69,0x74])](_0x30958e([0x2e])))[_0x30958e([0x73,0x6f,0x6d,0x65])](_0x20b228=>_0x11da81[_0x30958e([0x65,0x76,0x65,0x72,0x79])]((_0x1f0591,_0x211f21)=>_0x20b228[_0x211f21]===_0x1f0591||_0x20b228[_0x211f21]===_0x30958e([0x2a])));}function _0x4ee2d2(){return _0x43acf6&&_0x494253?new window[(_0x30958e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ba077,_0x43fe87)=>{_0x43acf6[_0x30958e([0x74,0x68,0x65,0x6e])](_0x4ba077,_0x43fe87),_0x494253[_0x30958e([0x74,0x68,0x65,0x6e])](_0x128e4b=>{_0x128e4b!=_0x30958e([0x56,0x61,0x6c,0x69,0x64])&&_0x4ba077(_0x128e4b);},_0x43fe87);}):_0x43acf6||_0x494253||_0x30958e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x159a75(_0x5770df,_0x24c419){return new window[(_0x30958e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb5cb9a=>{if(_0xdd8c5f())return _0xb5cb9a(_0x30958e([0x56,0x61,0x6c,0x69,0x64]));_0x2ee5df(),_0x38a021[_0x30958e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x30958e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x400d90=!0x1;const _0x43599c=_0x82b7b1();function _0x6ac192(_0x2e09ec){return!!_0x2e09ec&&(typeof _0x2e09ec===_0x30958e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2e09ec===_0x30958e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2e09ec[_0x30958e([0x74,0x68,0x65,0x6e])]===_0x30958e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2e09ec[_0x30958e([0x63,0x61,0x74,0x63,0x68])]===_0x30958e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xaa0079(_0x54b310){_0x1f60b6(_0x54b310)[_0x30958e([0x74,0x68,0x65,0x6e])](_0x505a15=>{if(!_0x505a15||_0x505a15[_0x30958e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x30958e([0x6f,0x6b]))return _0x30958e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x57016a(_0x57653f(_0x43599c+_0x24c419))!=_0x505a15[_0x30958e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x30958e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x30958e([0x56,0x61,0x6c,0x69,0x64]);})[_0x30958e([0x74,0x68,0x65,0x6e])](_0x30a287=>(_0x2b26d6(),_0x30a287),()=>{const _0x3e272c=_0x14848e();return null==_0x3e272c?(_0x2b26d6(),_0x30958e([0x56,0x61,0x6c,0x69,0x64])):_0x30958e(_0x1eb8da-_0x3e272c>(0x145fd79b^_0x4292e7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x30958e([0x74,0x68,0x65,0x6e])](_0xb5cb9a)[_0x30958e([0x63,0x61,0x74,0x63,0x68])](()=>{_0xb5cb9a(_0x30958e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x152b20=0x3065bd1b^_0x4292e7;function _0x2b26d6(){const _0x3255d4=_0x30958e([0x6c,0x6c,0x63,0x74,0x2d])+_0x57016a(_0x57653f(_0x5770df)),_0x88d5e0=_0x3cbe7b(_0x57016a(window[_0x30958e([0x4d,0x61,0x74,0x68])][_0x30958e([0x63,0x65,0x69,0x6c])](_0x1eb8da/_0x152b20)));window[_0x30958e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30958e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3255d4,_0x88d5e0);}function _0x14848e(){const _0x111ca6=_0x30958e([0x6c,0x6c,0x63,0x74,0x2d])+_0x57016a(_0x57653f(_0x5770df)),_0x2d9788=window[_0x30958e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30958e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x111ca6);return _0x2d9788?window[_0x30958e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3cbe7b(_0x2d9788),0x10)*_0x152b20:null;}function _0x1f60b6(_0x37df77){return new window[(_0x30958e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5bae6f,_0x3c4c6f)=>{_0x37df77[_0x30958e([0x74,0x68,0x65,0x6e])](_0x5bae6f,_0x3c4c6f),window[_0x30958e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c4c6f,0x3052875b^_0x4292e7);});}}_0x38a021[_0x30958e([0x6f,0x6e])](_0x30958e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x253cf8,_0xaf2776)=>{if(_0xaf2776[0x0]!=_0x5770df)return _0xb5cb9a(_0x30958e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xaf2776[0x1]={..._0xaf2776[0x1],[_0x30958e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x43599c};},{[_0x30958e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30958e([0x68,0x69,0x67,0x68])}),_0x38a021[_0x30958e([0x6f,0x6e])](_0x30958e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3fc387=>{_0x6ac192(_0x3fc387[_0x30958e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x400d90=!0x0,_0xaa0079(_0x3fc387[_0x30958e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x30958e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30958e([0x6c,0x6f,0x77])}),_0x21ce24[_0x30958e([0x74,0x68,0x65,0x6e])](()=>{_0x400d90||_0xb5cb9a(_0x30958e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xdd8c5f(){return _0x38a021[_0x30958e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30958e([0x76,0x69,0x65,0x77])][_0x30958e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x30958e([0x61,0x75,0x74,0x6f]);}function _0x2ee5df(){_0x38a021[_0x30958e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30958e([0x76,0x69,0x65,0x77])][_0x30958e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x30958e([0x61,0x75,0x74,0x6f]);}}function _0x3bbdbd(_0x110e38){const _0x2919a2=[new window[(_0x30958e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x259b44=>setTimeout(_0x259b44,0x305a6d57^_0x4292e7)),_0x21ce24[_0x30958e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x30958e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x63622d=>{let _0x4b1fb6=0x0;_0x38a021[_0x30958e([0x6d,0x6f,0x64,0x65,0x6c])][_0x30958e([0x6f,0x6e])](_0x30958e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a1241,_0x29b4f8)=>{_0x29b4f8[0x0][_0x30958e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4b1fb6++,_0x4b1fb6==(0x30535263^_0x4292e7)&&(_0x63622d(),_0x1a1241[_0x30958e([0x6f,0x66,0x66])]());});}))];return window[_0x30958e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x30958e([0x72,0x61,0x63,0x65])](_0x2919a2)[_0x30958e([0x74,0x68,0x65,0x6e])](()=>_0x110e38);}async function _0x2ec5de(){await _0x21ce24,_0x38a021[_0x30958e([0x6d,0x6f,0x64,0x65,0x6c])][_0x30958e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a9433,_0x38a021[_0x30958e([0x6d,0x6f,0x64,0x65,0x6c])][_0x30958e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a9433,_0x38a021[_0x30958e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x30958e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3fb112(_0x54b14e){const _0x9986c7=_0x455fd3();_0x38a021[_0x9986c7]=_0x30958e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x54b14e,_0x54b14e!=_0x30958e([0x56,0x61,0x6c,0x69,0x64])&&_0x2ec5de();}function _0x455fd3(){const _0x2792a3=window[_0x30958e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x30958e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x30958e([0x6e,0x6f,0x77])]())[_0x30958e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x30958e([0x2e]),'');let _0x42844e=_0x30958e([0x57]);for(let _0x417efc=0x0;_0x417efc<_0x2792a3[_0x30958e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x417efc+=0x2){let _0x5a7707=window[_0x30958e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2792a3[_0x30958e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x417efc,_0x417efc+0x2));_0x5a7707>=_0x14df80[_0x30958e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5a7707-=_0x14df80[_0x30958e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x42844e+=_0x14df80[_0x5a7707];}return _0x42844e;}function _0x474a42(){const _0x452cd6=_0x53bf31[_0x30958e([0x73,0x70,0x6c,0x69,0x74])](_0x30958e([0x2e]));if(0x3!=_0x452cd6[_0x30958e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x305df8(_0x452cd6[0x1]);function _0x305df8(_0x2ff3b8){const _0x3f07ea=_0x29514b(_0x2ff3b8);return _0x3f07ea&&_0x36518e()?_0x3f07ea:null;function _0x36518e(){const _0x44aedf=_0x3f07ea[_0x30958e([0x6a,0x74,0x69])],_0x4aaf7d=window[_0x30958e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44aedf[_0x30958e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44aedf[_0x30958e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f879b={..._0x3f07ea,[_0x30958e([0x6a,0x74,0x69])]:_0x44aedf[_0x30958e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x44aedf[_0x30958e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f879b[_0x30958e([0x76,0x63])],_0x57653f(_0x4f879b)==_0x4aaf7d;}}}async function _0x3dbcb9(){let _0x28ff06=!0x0;try{const _0x185db9=_0x53bf31[_0x30958e([0x73,0x70,0x6c,0x69,0x74])](_0x30958e([0x2e])),[_0xda0226,_0x3e5003,_0x3fbf6d]=_0x185db9;return _0x450b18(_0xda0226),await _0x9af607(_0xda0226,_0x3e5003,_0x3fbf6d),_0x28ff06;}catch{return!0x1;}function _0x450b18(_0x2a9de1){const _0x206e04=_0x29514b(_0x2a9de1);_0x206e04&&_0x206e04[_0x30958e([0x61,0x6c,0x67])]==_0x30958e([0x45,0x53,0x32,0x35,0x36])||(_0x28ff06=!0x1);}async function _0x9af607(_0x45d12f,_0x411ddf,_0x40d8ee){const _0x592e6d=window[_0x30958e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x30958e([0x66,0x72,0x6f,0x6d])](_0x2fefa3(_0x40d8ee),_0x3ac127=>_0x3ac127[_0x30958e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x236b3f=new window[(_0x30958e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x30958e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x45d12f+_0x30958e([0x2e])+_0x411ddf),_0x3e60cc=window[_0x30958e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x30958e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3e60cc)return;const _0x13ae20=await _0x3e60cc[_0x30958e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x30958e([0x6a,0x77,0x6b]),_0x490c0e,{[_0x30958e([0x6e,0x61,0x6d,0x65])]:_0x30958e([0x45,0x43,0x44,0x53,0x41]),[_0x30958e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x30958e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x30958e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3e60cc[_0x30958e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x30958e([0x6e,0x61,0x6d,0x65])]:_0x30958e([0x45,0x43,0x44,0x53,0x41]),[_0x30958e([0x68,0x61,0x73,0x68])]:{[_0x30958e([0x6e,0x61,0x6d,0x65])]:_0x30958e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x13ae20,_0x592e6d,_0x236b3f)||(_0x28ff06=!0x1);}}function _0x29514b(_0x26977e){return _0x26977e[_0x30958e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x30958e([0x65,0x79]))?JSON[_0x30958e([0x70,0x61,0x72,0x73,0x65])](_0x2fefa3(_0x26977e)):null;}function _0x2fefa3(_0x3bde92){return window[_0x30958e([0x61,0x74,0x6f,0x62])](_0x3bde92[_0x30958e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x30958e([0x2b]))[_0x30958e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x30958e([0x2f])));}function _0x57653f(_0x1112b4){let _0x4bafd2=0x1505;function _0x2f5ce4(_0x39a150){for(let _0x1e4ae1=0x0;_0x1e4ae1<_0x39a150[_0x30958e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e4ae1++){const _0x4f8b13=_0x39a150[_0x30958e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e4ae1);_0x4bafd2=(_0x4bafd2<<0x5)+_0x4bafd2+_0x4f8b13,_0x4bafd2&=_0x4bafd2;}}function _0x3b15f3(_0x329154){Array[_0x30958e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x329154)?_0x329154[_0x30958e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3b15f3):_0x329154&&typeof _0x329154==_0x30958e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x30958e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x329154)[_0x30958e([0x73,0x6f,0x72,0x74])]()[_0x30958e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xba2dc,_0x588785])=>{_0x2f5ce4(_0xba2dc),_0x3b15f3(_0x588785);}):_0x2f5ce4(window[_0x30958e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x329154));}return _0x3b15f3(_0x1112b4),_0x4bafd2>>>0x0;}function _0x57016a(_0x380f8a){return _0x380f8a[_0x30958e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x30958e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x30958e([0x30]));}function _0x3cbe7b(_0x4dce2e){return _0x4dce2e[_0x30958e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x30958e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x30958e([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a9433(){}function _0x30958e(_0x12c420){return _0x12c420['map'](_0xce8a0=>String['fromCharCode'](_0xce8a0))['join']('');}_0x3fb112(await _0x7ecf3e());}(this);}['_initSchema'](){const _0x2f2907=this['editor']['model']['schema'];_0x2f2907['isRegistered']('imageBlock')&&_0x2f2907['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2f2907['isRegistered']('imageInline')&&_0x2f2907['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2bf5a8=this['editor'];_0x2bf5a8['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2bf5a8['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5de0a4=>_0x5de0a4['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x59c47f=_0x2bf5a8['commands']['get']('replaceImageSource');_0x59c47f&&this['listenTo'](_0x59c47f,'cleanupImage',(_0x213457,[_0x1c77b9,_0x208f07])=>{_0x1c77b9['removeAttribute']('uploadcareImageId',_0x208f07);});}['_initConfig'](){const _0x28fac8=this['editor']['config']['get']('uploadcare.uploader')||{},_0x59f18e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x386c6f(_0x174993['document'],'uc-config',{..._0x28fac8,'pubkey':_0x59f18e,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x53905f=>{if('closeMax'==_0x53905f)return'#uc-icon-arrow-down';},_0x174993['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x386c6f(_0x174993['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x174993['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x44da74=this['editor']['commands']['get']('insertImage');_0x44da74&&this['listenTo'](_0x44da74,'execute',()=>{const _0x235e80=this['editor']['model']['document']['selection']['getSelectedElement']();_0x235e80&&_0x235e80['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x235e80);});});const _0x40601c=this['editor']['commands']['get']('uploadcareImageReplace');_0x40601c&&this['listenTo'](_0x40601c,'execute',()=>{const _0x51bb45=this['editor']['model']['document']['selection']['getSelectedElement']();_0x51bb45&&_0x51bb45['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x51bb45);});});}}class u extends _0x2c287e{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a452b){super(_0x1a452b),_0x1a452b['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x2f16dc['defineComponents'](_0x2f16dc);}}class ta extends _0x4c8056{constructor(_0x56bd72){super(_0x56bd72);const t=_0x56bd72['t'],_0xa4bda6=this['bindTemplate'],_0x15c1cb=new _0x107ead();_0x15c1cb['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':[_0x15c1cb,{'text':_0xa4bda6['to']('imageUploadProgress',_0x2ee643=>t('Loading\x20image...')+'\x20('+(_0x2ee643||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x4c8056{constructor(_0x74f243){super(_0x74f243);const t=_0x74f243['t'];this['set']('errorType',null);const _0x2862cf=new _0x377fcc(_0x74f243);_0x2862cf['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2862cf['withText']=!0x0,_0x2862cf['class']='ck-button-action',_0x2862cf['on']('execute',()=>{this['fire']('retry');}),_0x2862cf['bind']('isVisible')['to'](this,'errorType',_0x2f9f02=>'NotFound'!==_0x2f9f02);const _0x2f3667=new at();_0x2f3667['content']=et,_0x2f3667['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x587d6d=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':[_0x2f3667,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x587d6d['to']('errorType',_0x5ba7c7=>t('NotFound'!==_0x5ba7c7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2862cf]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x4c8056{constructor(_0x1f9a56,_0x55ca54){super(_0x1f9a56);const _0x5699a9=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x55ca54,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5699a9['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1a9359,_0x128830,_0x568914){super(_0x1a9359),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x1a9359),this['_errorView']=new rt(_0x1a9359),this['_editingView']=new tt(_0x1a9359,_0x568914),this['_focusableView']=new _0x4c8056(_0x1a9359),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x128830),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'],_0x25ffa9=>{this['_addUploadcareImageEditorListeners'](_0x25ffa9);});}),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'](_0x167455,_0x23c473){const _0xb821b='uc-cloud-image-editor',_0x2b1771=_0x167455['querySelector'](_0xb821b);if(_0x2b1771)return _0x23c473(_0x2b1771);const _0x408f71=new MutationObserver(_0x3d122a=>{const _0x46d06a=_0x3d122a['filter'](_0x3c70f1=>_0x3c70f1['target']===_0x167455&&_0x3c70f1['addedNodes']['length']>0x0&&_0x3c70f1['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xb821b);_0x46d06a['length']&&(_0x408f71['disconnect'](),_0x23c473(_0x46d06a[0x0]['addedNodes'][0x0]));});_0x408f71['observe'](_0x167455,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xf8f5f){_0xf8f5f['addEventListener']('apply',_0x29ca2d=>{this['fire']('apply',{'imageSrc':_0x29ca2d['detail']['cdnUrl']});}),_0xf8f5f['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x3b06fb(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x280e8a,_0x49f3cb,_0x22c8af){super(),this['_editor']=_0x280e8a,this['_dialog']=_0x49f3cb,this['_imageElement']=_0x22c8af,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 _0x4b2369=this['_imageElement'],_0x317afe=_0x4b2369['getAttribute']('uploadcareImageId'),_0x22cbb4=_0x4b2369['getAttribute']('src');if(_0x317afe)await this['_loadImageInfo'](_0x317afe,_0x22cbb4);else{if(this['_imageCache']['has'](_0x22cbb4)){const _0x33650d=this['_imageCache']['get'](_0x22cbb4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x33650d['url'],this['imageDimension']=_0x33650d['dimension'],this['imageId']=_0x33650d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2f712a}=this['_editor'],t=_0x2f712a['t'],_0x5b9d27=new Z(_0x2f712a,this['imageStatus'],this['_attributes']);_0x5b9d27['bind']('status')['to'](this,'imageStatus'),_0x5b9d27['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5b9d27['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5b9d27['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5b9d27,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3e57fb,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5b9d27,'position':_0x528f2d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5b9d27['focus']();},'onHide':()=>{_0x5b9d27['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2847ad=>!F(_0x2847ad,_0x5b9d27['element'])}});}['_loadImageInfo'](_0x59cf47,_0x2d2ce1){return C['getInfo'](_0x59cf47,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5a3034=>{const {width:_0x2f3f6e,height:_0x372887}=_0x5a3034['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2d2ce1,this['imageDimension']={'width':_0x2f3f6e,'height':_0x372887},this['imageId']=_0x59cf47;})['catch'](_0x3fdb2e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3fdb2e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3756de,_0x133a69){return this['_getImageAsFile'](_0x3756de)['then'](_0x53e4c5=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x133a69['signal'],'file':_0x53e4c5,'onProgress':_0x8f23ed=>{_0x8f23ed&&_0x8f23ed['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x8f23ed['value']));}}))['then'](_0x169b5b=>{const {width:_0x498b82,height:_0x2bd642}=_0x169b5b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x169b5b['cdnUrl'],this['imageDimension']={'width':_0x498b82,'height':_0x2bd642},this['imageId']=_0x169b5b['uuid'],this['imageUploadProgress']=null;const _0x4178d5=_0x3756de['getAttribute']('src');this['_imageCache']['set'](_0x4178d5,{'id':_0x169b5b['uuid'],'url':_0x169b5b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x58adb9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x58adb9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x103f79,_0x51b7a6){_0x103f79['on']('apply',(_0x3b91fb,_0x436396)=>{this['_replaceImage'](_0x51b7a6,_0x436396['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x103f79['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x103f79['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x380593,_0x428a97,_0x476df6){const _0xadf10e=this['_editor'],{width:_0x2ce98,height:_0x3238d4}=A(_0x428a97,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x21b7c4,imageSources:_0x4de8fc}=E(_0x428a97,_0x2ce98);_0xadf10e['model']['change'](_0x5fd52b=>{if('$graveyard'===_0x380593['root']['rootName']){_0xadf10e['execute']('insertImage',{'imageType':_0x380593['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x380593['getAttributes']()),'uploadcareImageId':_0x476df6,'src':_0x21b7c4,'sources':_0x4de8fc,'width':_0x2ce98,'height':_0x3238d4}});const _0x1c2b4a=_0x380593['getChildren']();_0x380593=_0xadf10e['model']['document']['selection']['getSelectedElement']();for(const _0x1f27fe of _0x1c2b4a)_0x5fd52b['append'](_0x5fd52b['cloneElement'](_0x1f27fe),_0x380593);}else _0x5fd52b['setSelection'](_0x380593,'on'),_0xadf10e['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x380593['getAttributes']()),'uploadcareImageId':_0x476df6,'src':_0x21b7c4,'sources':_0x4de8fc,'width':_0x2ce98,'height':_0x3238d4},_0x380593);_0x5fd52b['setSelection'](_0x380593,'on');});}async['_getImageAsFile'](_0x4b6978){const _0x1cd2e5=_0x174993['window'],_0x15f21b=_0x174993['document']['location']['href'],_0x3b1055=new _0x1cd2e5['URL'](_0x4b6978['getAttribute']('src'),_0x15f21b);if('data:'===_0x3b1055['protocol']){const _0x167517=_0x3b1055['href']['split'](','),_0x52d721=_0x167517[0x0]['match'](/:(.*?);/)[0x1],_0x44169b=_0x52d721['split']('/')[0x1],_0xc953e3=_0x1cd2e5['atob'](_0x167517[_0x167517['length']-0x1]);let _0x5a47f8=_0xc953e3['length'];const _0x544c15=new _0x1cd2e5['Uint8Array'](_0x5a47f8);for(;_0x5a47f8--;)_0x544c15[_0x5a47f8]=_0xc953e3['charCodeAt'](_0x5a47f8);return new _0x1cd2e5['File']([_0x544c15],'image.'+_0x44169b,{'type':_0x52d721});}const _0xd29863=_0x3b1055['href']['split']('/'),_0x544168=_0xd29863[_0xd29863['length']-0x1],_0x7e55fa=_0x544168['split']('.')[0x1];return _0x1cd2e5['fetch'](_0x3b1055['href'])['then'](_0x429559=>_0x429559['clone']()['blob']())['then'](_0xadcd8a=>new _0x1cd2e5['File']([_0xadcd8a],_0x544168,{'type':'image/'+_0x7e55fa}));}}class J extends _0xf7e4e{['imageEditController'];static get['requires'](){return[_0x165ee0];}['_isEditable'];constructor(_0x7caec){super(_0x7caec),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x285f8b){const _0x391b01=V(_0x285f8b);return _0x524fe8=>!(!_0x524fe8||!_0x524fe8['is']('element','imageBlock')&&!_0x524fe8['is']('element','imageInline'))&&(!!_0x524fe8['hasAttribute']('uploadcareImageId')||!!_0x524fe8['hasAttribute']('src')&&_0x391b01(_0x524fe8['getAttribute']('src')));}(_0x7caec['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x9e8bea=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x9e8bea);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3712dd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3712dd&&(_0x3712dd['is']('element','imageBlock')||_0x3712dd['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x165ee0),_0x3712dd),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0xf7e4e{['refresh'](){const _0x28c48b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x28c48b&&(_0x28c48b['is']('element','imageBlock')||_0x28c48b['is']('element','imageInline')));}['execute'](_0x25d1fc){const _0x41b9fd=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x52b627=>{_0x52b627['setAttributes'](_0x25d1fc,_0x41b9fd),_0x52b627['removeAttribute']('srcset',_0x41b9fd),_0x52b627['removeAttribute']('sizes',_0x41b9fd);});}}class g extends _0x2c287e{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x488d95,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2855c5}=this;_0x2855c5['commands']['add']('uploadcareImageEdit',new J(_0x2855c5)),_0x2855c5['commands']['add']('uploadcareImageReplace',new O(_0x2855c5));}}class j extends _0x2c287e{['_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 _0xd4b67a=this['editor'];_0xd4b67a['ui']['componentFactory']['add']('uploadcareImageEdit',_0x978c87=>{const _0x3c4452=_0xd4b67a['commands']['get']('uploadcareImageEdit'),_0x26a61a=new _0x377fcc(_0x978c87),t=_0x978c87['t'];return _0x26a61a['set']({'icon':_0x3e57fb,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x26a61a['bind']('isEnabled')['to'](_0x3c4452),_0x26a61a['bind']('isOn')['to'](_0x3c4452,'isActive'),this['listenTo'](_0x26a61a,'execute',()=>{_0xd4b67a['execute']('uploadcareImageEdit'),_0xd4b67a['editing']['view']['focus']();}),_0x26a61a;}),this['_initConfig']();}['_initConfig'](){const _0x3af161=_0x386c6f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3af161),this['listenTo'](this['editor'],'destroy',()=>{_0x3af161['remove']();});}}class P extends _0x2c287e{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
23
+ import{Plugin as _0x418ad9,Command as _0x5db902}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x27fb42,IconGooglePhotos as _0x57c6ad,IconGoogleDrive as _0x311dd5,IconFacebook as _0x306870,IconDropbox as _0x6c6ea0,IconUploadcareLink as _0x41e123,IconUploadcareImageUpload as _0x14f9ac,IconError as et,IconUploadcareImageEdit as _0x4b5ec4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2b2bea,MenuBarMenuListItemButtonView as _0x35baf1,View as _0x38ff45,FocusCycler as _0x178b3e,Dialog as _0x34c46e,DialogViewPosition as _0x8f90ea,SpinnerView as _0x20485c,IconView as at,Notification as _0x5596c3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x151b29,DomEmitterMixin as _0x72d9e3,global as _0x4acc62,getAncestors as _0x5418b6,ObservableMixin as _0x200662,createElement as _0x1764c0,uid as _0x649e01}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x121c1c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x410983,info as _0x1ac59a}from'@uploadcare/upload-client';import*as _0x457d67 from'@uploadcare/file-uploader';var o=function(_0xa9264a){return _0xa9264a['Local']='local',_0xa9264a['URL']='url',_0xa9264a['Dropbox']='dropbox',_0xa9264a['GDrive']='gdrive',_0xa9264a['Facebook']='facebook',_0xa9264a['GPhotos']='gphotos',_0xa9264a['OneDrive']='onedrive',_0xa9264a;}({});function _(_0x5cdfff,_0x2e7932,_0x28e949){const t=_0x5cdfff['t'],_0x20f640=_0x5cdfff['t'];switch(_0x2e7932){case o['Local']:return{'text':_0x20f640('Insert'===_0x28e949?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x20f640('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x28e949?_0x20f640('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x20f640('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x28e949?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x28e949?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x28e949?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x28e949?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x28e949?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2e7932;}}class e extends _0x418ad9{['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 _0x315810=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x8024a7;for(const _0x70c1b6 in _0x315810){const _0x505424=_0x70c1b6,_0xa998dc=_0x315810[_0x505424];if('uploadcareLicenseKeyValid'==_0xa998dc||'uploadcareLicenseKeyInvalid'==_0xa998dc||'uploadcareLicenseKeyExpired'==_0xa998dc||'uploadcareLicenseKeyDomainLimit'==_0xa998dc||'uploadcareLicenseKeyNotAllowed'==_0xa998dc||'uploadcareLicenseKeyEvaluationLimit'==_0xa998dc||'uploadcareLicenseKeyTrialLimit'==_0xa998dc||'uploadcareLicenseKeyUsageLimit'==_0xa998dc){delete _0x315810[_0x505424],_0x8024a7=_0xa998dc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x8024a7&&_0x315810['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x8024a7&&_0x315810['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x8024a7&&_0x315810['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x8024a7&&_0x315810['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x8024a7&&_0x315810['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x8024a7&&_0x315810['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x8024a7&&_0x315810['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5b232a}=this,_0x17ae9d=_0x5b232a['commands']['get']('uploadcare');if(!_0x17ae9d)return;const _0x46f8ac=this['_normalizeConfigSourceList'](_0x5b232a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5a3698,_0x390333)=>{const _0x1b44c9=this['_getIntegrationKey'](_0x390333['type']);return _0x5a3698[_0x1b44c9]||(_0x5a3698[_0x1b44c9]=[]),_0x5a3698[_0x1b44c9]['push'](_0x390333),_0x5a3698;},{});_0x5b232a['plugins']['has']('ImageInsertUI')&&_0x5b232a['commands']['get']('uploadcare')&&Object['entries'](_0x46f8ac)['forEach'](([_0x3d31e1,_0x2807d2])=>{_0x5b232a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3d31e1,'observable':()=>_0x17ae9d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2807d2),'formViewCreator':()=>this['_createDropdownButtons'](_0x2807d2),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2807d2),'override':'assetManager'!==_0x3d31e1});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xdc1e4a){const {locale:_0x5bbaf2}=this['editor'];return _0xdc1e4a['map'](_0xb28c26=>{const _0x1e4c75=_(_0x5bbaf2,_0xb28c26,'Insert');switch(_0xb28c26){case o['Local']:return{'icon':_0x14f9ac,'type':o['Local'],..._0x1e4c75};case o['URL']:return{'icon':_0x41e123,'type':o['URL'],..._0x1e4c75};case o['Dropbox']:return{'icon':_0x6c6ea0,'type':o['Dropbox'],..._0x1e4c75};case o['Facebook']:return{'icon':_0x306870,'type':o['Facebook'],..._0x1e4c75};case o['GDrive']:return{'icon':_0x311dd5,'type':o['GDrive'],..._0x1e4c75};case o['GPhotos']:return{'icon':_0x57c6ad,'type':o['GPhotos'],..._0x1e4c75};case o['OneDrive']:return{'icon':_0x27fb42,'type':o['OneDrive'],..._0x1e4c75};}});}['_getIntegrationKey'](_0x50e9bf){switch(_0x50e9bf){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x56e90c,_0x4d863c){const _0x432918=this['editor'],_0x3fae4e=new _0x56e90c(_0x432918['locale']),_0x246253=_0x432918['commands']['get']('uploadcare');return _0x3fae4e['bind']('isEnabled')['to'](_0x246253),_0x3fae4e['on']('execute',()=>{_0x246253['execute'](_0x4d863c);}),_0x3fae4e;}['_createToolbarButton'](_0x375340){const {locale:_0x818499}=this['editor'],_0xcfe412=this['editor']['plugins']['get']('ImageInsertUI'),_0x32637c=_0x375340[0x0],_0x5dbcd4=this['_createButton'](_0x2b2bea,_0x32637c['type']);return _0x5dbcd4['icon']=_0x32637c['icon'],_0x5dbcd4['bind']('label')['to'](_0xcfe412,'isImageSelected',_0x23fd30=>_(_0x818499,_0x32637c['type'],_0x23fd30?'Replace':'Insert')['text']),_0x5dbcd4['tooltip']=!0x0,_0x5dbcd4;}['_createDropdownButtons'](_0x5292e9){const {locale:_0x195aaa}=this['editor'],_0x7768e3=this['editor']['plugins']['get']('ImageInsertUI');return _0x5292e9['map'](_0x16a1f8=>{const _0x497351=this['_createButton'](_0x2b2bea,_0x16a1f8['type']);return _0x497351['withText']=!0x0,_0x497351['icon']=_0x16a1f8['icon'],_0x497351['bind']('label')['to'](_0x7768e3,'isImageSelected',_0x4ce510=>_(_0x195aaa,_0x16a1f8['type'],_0x4ce510?'Replace':'Insert')['text']),_0x497351;});}['_createMenuBarButtons'](_0x4cd94b){return _0x4cd94b['map'](_0x10a78c=>{const _0x34e2eb=this['_createButton'](_0x35baf1,_0x10a78c['type']);return _0x34e2eb['icon']=_0x10a78c['icon'],_0x34e2eb['label']=_0x10a78c['shortText'],_0x34e2eb;});}}class q extends _0x38ff45{['focusTracker'];['focusCycler'];constructor(_0x148ddc){super(_0x148ddc),this['focusTracker']=new _0x151b29(),this['focusCycler']=new _0x178b3e({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x4da8d7){super(_0x4da8d7),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x54dd9b,_0x41f34e){const _0x44bdf7=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2c14c5=>_0x2c14c5<=_0x41f34e)['map'](_0x109374=>_0x54dd9b['replace'](/\/$/,'')+'/-/resize/'+_0x109374+'x/\x20'+_0x109374+'w');return{'imageFallbackUrl':_0x54dd9b,'imageSources':[{'srcset':_0x44bdf7['join'](',\x20'),'sizes':'(max-width:\x20'+_0x41f34e+'px)\x20100vw,\x20'+_0x41f34e+'px','type':'image/webp'}]};}function A(_0x29c6a8,_0x1b2a5b,_0x19ef81){const _0xaf23a0=_0x29c6a8['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xaf23a0?parseInt(_0xaf23a0[0x1],0xa):_0x1b2a5b,'height':_0xaf23a0?parseInt(_0xaf23a0[0x2],0xa):_0x19ef81};}function m(_0x36f3ec,_0x1c07d9){const _0x38c14=Object['create'](_0x72d9e3),_0x33f742=_0x36f3ec['plugins']['get']('ImageUtils'),_0x54bb3b=_0x36f3ec['editing']['mapper']['toViewElement'](_0x1c07d9),_0x336c19=_0x33f742['findViewImgElement'](_0x54bb3b),_0x2f12f7=_0x36f3ec['editing']['view']['domConverter']['viewToDom'](_0x336c19),_0x24b55d=_0x1c07d9['getAttribute']('width'),_0x21ecf9=_0x1c07d9['getAttribute']('height'),_0xb45d41='image-processing';_0x36f3ec['editing']['view']['change'](_0x265365=>{_0x265365['addClass'](_0xb45d41,_0x54bb3b),_0x265365['setStyle']('aspect-ratio',_0x24b55d+'/'+_0x21ecf9,_0x336c19);}),_0x38c14['listenTo'](_0x2f12f7,'load',()=>{_0x38c14['stopListening'](_0x2f12f7,'load'),_0x36f3ec['editing']['view']['change'](_0x23e452=>{_0x23e452['removeClass'](_0xb45d41,_0x54bb3b),_0x23e452['removeStyle']('aspect-ratio',_0x336c19);});});}function V(_0x1f0f59){if(Array['isArray'](_0x1f0f59)){const _0x6761e0=_0x1f0f59['map'](V);return _0x5f3d2c=>_0x6761e0['some'](_0xe988ed=>_0xe988ed(_0x5f3d2c));}if('origin'==_0x1f0f59){const _0x7f09f2=_0x4acc62['window']['location']['origin'];return _0x1924cb=>new URL(_0x1924cb,_0x4acc62['document']['baseURI'])['origin']==_0x7f09f2;}return'function'==typeof _0x1f0f59?_0x1f0f59:_0x1f0f59 instanceof RegExp?_0x2ed8bf=>!(!_0x2ed8bf['match'](_0x1f0f59)&&!_0x2ed8bf['replace'](/^https?:\/\//,'')['match'](_0x1f0f59)):()=>!0x1;}function F(_0x52df57,_0x80bffa){return _0x5418b6(_0x52df57['target'])['includes'](_0x80bffa);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x200662(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x48c81f,_0x487e32,_0x33495e){super(),this['_editor']=_0x48c81f,this['_editing']=_0x487e32,this['_dialog']=_0x48c81f['plugins']['get'](_0x34c46e),this['_api']=_0x487e32['ctxElement']['getAPI'](),this['_type']=_0x33495e,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:_0x15339c,model:_0x175478}=this['_editor'],_0x406c44=_0x175478['document']['selection']['getSelectedElement'](),_0x5cb956=_0x406c44&&(_0x406c44['is']('element','imageBlock')||_0x406c44['is']('element','imageInline'));this['_formView']=new S(_0x15339c),this['_dialog']['show']({'id':'uploadCare','icon':_0x14f9ac,'title':_(_0x15339c,this['_type'],_0x5cb956?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x8f90ea['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x16275f=>!F(_0x16275f,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x21f31e}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4e5181=>{const _0x4f930d=_0x21f31e['length'];for(const _0x29d5fc of _0x21f31e){const _0x4683a5=_0x29d5fc===_0x21f31e[_0x4f930d-0x1],{cdnUrl:_0x5b74fe,fileInfo:_0x11a228}=_0x29d5fc;if(!_0x5b74fe||!_0x11a228)continue;const {width:_0xa1de4b,height:_0x2632b4}=_0x11a228['imageInfo'],_0x38fc86=A(_0x5b74fe,_0xa1de4b,_0x2632b4),_0x1d02ee=E(_0x5b74fe,_0x38fc86['width']),_0x259700={'id':_0x11a228['uuid'],'type':'image','attributes':{'imageDimension':_0x38fc86,..._0x1d02ee}};this['_insertAsset'](_0x259700,_0x4683a5,_0x4e5181);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x28e79b=>{'idle'===_0x28e79b['detail']['status']&&!_0x28e79b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x246210,_0x26910f,_0x10dacd){const _0x314266=this['_editor']['model']['document']['selection'],_0x36a582=_0x314266['getSelectedElement'](),_0x2cd73f=!(!_0x36a582||!_0x36a582['is']('element','imageInline'));_0x10dacd['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x246210,_0x2cd73f),_0x26910f||_0x10dacd['setSelection'](_0x314266['getLastPosition']());}['_insertImage'](_0xabd4fb,_0xb7429f){const _0x20af3a=this['_editor'],{imageDimension:_0x262b1c,imageFallbackUrl:_0x2e7492,imageSources:_0x56b77d}=_0xabd4fb['attributes'];_0x20af3a['execute']('insertImage',{'imageType':_0xb7429f?'imageInline':null,'source':{'uploadcareImageId':_0xabd4fb['id'],'src':_0x2e7492,'sources':_0x56b77d,..._0x262b1c}});}}class n extends _0x5db902{['_editing'];['_controller']=null;static get['requires'](){return[_0x34c46e,i];}constructor(_0x8d187f){super(_0x8d187f),this['_editing']=_0x8d187f['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5f2818){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x5f2818);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x6f2087,publicKey:_0x18f1c0,signal:_0x414140,onProgress:_0x26368d}){return _0x410983(_0x6f2087,{'publicKey':_0x18f1c0,'store':'auto','signal':_0x414140,'onProgress':_0x26368d});}static['getInfo'](_0x4aac8a,_0x3bbaa3){return _0x1ac59a(_0x4aac8a,_0x3bbaa3);}}class p extends _0x418ad9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x121c1c,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3b002f=this['editor'];if(!!!_0x3b002f['config']['get']('uploadcare'))return;_0x3b002f['plugins']['get'](_0x121c1c)['createUploadAdapter']=_0xa9298e=>new x(_0xa9298e,_0x3b002f),_0x3b002f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3e898e,{imageElement:_0x326d82,data:_0x2d6035})=>{_0x3b002f['model']['change'](_0x5b377a=>{_0x5b377a['setAttribute']('uploadcareImageId',_0x2d6035['uploadcareImageId'],_0x326d82);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x55ad43,_0x2c7868){this['loader']=_0x55ad43,this['editor']=_0x2c7868,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2ba9ef=this['editor']['config']['get']('uploadcare.pubkey'),_0x5dddd2=await this['loader']['file'];return C['upload']({'file':_0x5dddd2,'publicKey':_0x2ba9ef,'signal':this['controller']['signal'],'onProgress':_0x56149c=>{_0x56149c&&_0x56149c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x56149c['value']);}})['then'](async _0xf5b2c=>{const {imageFallbackUrl:_0x2598e3,imageSources:_0x3b2c87}=E(_0xf5b2c['cdnUrl'],_0xf5b2c['imageInfo']['width']);return{'uploadcareImageId':_0xf5b2c['uuid'],'default':_0x2598e3,'sources':_0x3b2c87};})['catch'](()=>{const _0x20d6f3=t('Cannot\x20upload\x20file:')+('\x20'+_0x5dddd2['name']+'.');return Promise['reject'](_0x20d6f3);});}['abort'](){this['controller']['abort']();}}class i extends _0x418ad9{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x34c46e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x1bf980=this['editor'];_0x1bf980['commands']['add']('uploadcare',new n(_0x1bf980));}['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 _0x41c00d=_0x4acc62['document']['querySelector']('input[uploadcare-file-input]');_0x41c00d&&_0x41c00d['remove']();}),async function(_0x11b1f4){const _0x3fb08f=_0x5ce7aa([0x4f,0x6b,0x49,0x30,0x39,0x75,0x57,0x36,0x77,0x56,0x4d,0x66,0x72,0x73,0x7a,0x51,0x4a,0x63,0x53,0x6d,0x52,0x41,0x6e,0x5a,0x58,0x48,0x33,0x46,0x64,0x34,0x4c,0x74,0x61,0x76,0x71,0x42,0x55,0x69,0x65,0x6f,0x70,0x68,0x79,0x6a,0x6c,0x45,0x32,0x59,0x38,0x78,0x4e,0x43,0x4b,0x35,0x44,0x31,0x37,0x62,0x54,0x67,0x50,0x47]),_0x5c6d1d=0x7f801b70,_0x1e6b49=0x7f877250^_0x5c6d1d,_0x51c2b2=window[_0x5ce7aa([0x44,0x61,0x74,0x65])][_0x5ce7aa([0x6e,0x6f,0x77])](),_0x580227=_0x11b1f4[_0x5ce7aa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6f17e0=new window[(_0x5ce7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13a206=>{_0x580227[_0x5ce7aa([0x6f,0x6e,0x63,0x65])](_0x5ce7aa([0x72,0x65,0x61,0x64,0x79]),_0x13a206);}),_0x4280ad={[_0x5ce7aa([0x6b,0x74,0x79])]:_0x5ce7aa([0x45,0x43]),[_0x5ce7aa([0x75,0x73,0x65])]:_0x5ce7aa([0x73,0x69,0x67]),[_0x5ce7aa([0x63,0x72,0x76])]:_0x5ce7aa([0x50,0x2d,0x32,0x35,0x36]),[_0x5ce7aa([0x78])]:_0x5ce7aa([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]),[_0x5ce7aa([0x79])]:_0x5ce7aa([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]),[_0x5ce7aa([0x61,0x6c,0x67])]:_0x5ce7aa([0x45,0x53,0x32,0x35,0x36])},_0x28effc=_0x580227[_0x5ce7aa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5ce7aa([0x67,0x65,0x74])](_0x5ce7aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2974ed(){let _0x3ea3e9,_0x3e919e=null,_0x4cc51a=null;try{if(_0x28effc==_0x5ce7aa([0x47,0x50,0x4c]))return _0x5ce7aa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ea3e9=_0x15a2d0(),!_0x3ea3e9)return _0x5ce7aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ea3e9[_0x5ce7aa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4cc51a=_0x2a8337(_0x3ea3e9[_0x5ce7aa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ea3e9[_0x5ce7aa([0x6a,0x74,0x69])])),await _0x2ddd1e()?_0x391de5()?_0x554a1a()?_0x5ce7aa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xd97a4()?(_0x3ea3e9[_0x5ce7aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ce7aa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e919e=_0x5a6a34(_0x5ce7aa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ea3e9[_0x5ce7aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ce7aa([0x74,0x72,0x69,0x61,0x6c])&&(_0x3e919e=_0x5a6a34(_0x5ce7aa([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x59de01()):_0x5ce7aa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5ce7aa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5ce7aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5ce7aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x554a1a(){const _0x1f9ba6=[_0x5ce7aa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5ce7aa([0x74,0x72,0x69,0x61,0x6c])][_0x5ce7aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ea3e9[_0x5ce7aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x51c2b2/0x3e8:0xe10*_0x1e6b49;return _0x3ea3e9[_0x5ce7aa([0x65,0x78,0x70])]<_0x1f9ba6;}function _0x391de5(){const _0xc007f0=_0x3ea3e9[_0x5ce7aa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xc007f0&&(!!_0xc007f0[_0x5ce7aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce7aa([0x2a]))||!!_0xc007f0[_0x5ce7aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce7aa([0x55,0x50,0x4c,0x43])));}function _0xd97a4(){const _0x11cca6=_0x3ea3e9[_0x5ce7aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x11cca6||0x0==_0x11cca6[_0x5ce7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1b39bb}=new URL(window[_0x5ce7aa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x11cca6[_0x5ce7aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b39bb))return!0x0;const _0x1d2733=_0x1b39bb[_0x5ce7aa([0x73,0x70,0x6c,0x69,0x74])](_0x5ce7aa([0x2e]));return _0x11cca6[_0x5ce7aa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x33dc26=>_0x33dc26[_0x5ce7aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce7aa([0x2a])))[_0x5ce7aa([0x6d,0x61,0x70])](_0x4f19eb=>_0x4f19eb[_0x5ce7aa([0x73,0x70,0x6c,0x69,0x74])](_0x5ce7aa([0x2e])))[_0x5ce7aa([0x73,0x6f,0x6d,0x65])](_0x3772f1=>_0x1d2733[_0x5ce7aa([0x65,0x76,0x65,0x72,0x79])]((_0x589cd8,_0x1a2189)=>_0x3772f1[_0x1a2189]===_0x589cd8||_0x3772f1[_0x1a2189]===_0x5ce7aa([0x2a])));}function _0x59de01(){return _0x3e919e&&_0x4cc51a?new window[(_0x5ce7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39478f,_0x3d93ad)=>{_0x3e919e[_0x5ce7aa([0x74,0x68,0x65,0x6e])](_0x39478f,_0x3d93ad),_0x4cc51a[_0x5ce7aa([0x74,0x68,0x65,0x6e])](_0x5146ce=>{_0x5146ce!=_0x5ce7aa([0x56,0x61,0x6c,0x69,0x64])&&_0x39478f(_0x5146ce);},_0x3d93ad);}):_0x3e919e||_0x4cc51a||_0x5ce7aa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2a8337(_0x194082,_0x5c5ff0){return new window[(_0x5ce7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2efbc3=>{if(_0x498dd6())return _0x2efbc3(_0x5ce7aa([0x56,0x61,0x6c,0x69,0x64]));_0x3c8772(),_0x580227[_0x5ce7aa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5ce7aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x581fde=!0x1;const _0x2602db=_0x649e01();function _0x415097(_0x3e74ac){return!!_0x3e74ac&&(typeof _0x3e74ac===_0x5ce7aa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3e74ac===_0x5ce7aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3e74ac[_0x5ce7aa([0x74,0x68,0x65,0x6e])]===_0x5ce7aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3e74ac[_0x5ce7aa([0x63,0x61,0x74,0x63,0x68])]===_0x5ce7aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2695fe(_0x50cf8d){_0x4c5741(_0x50cf8d)[_0x5ce7aa([0x74,0x68,0x65,0x6e])](_0xbc8660=>{if(!_0xbc8660||_0xbc8660[_0x5ce7aa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5ce7aa([0x6f,0x6b]))return _0x5ce7aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xcafeda(_0x12161c(_0x2602db+_0x5c5ff0))!=_0xbc8660[_0x5ce7aa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5ce7aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5ce7aa([0x56,0x61,0x6c,0x69,0x64]);})[_0x5ce7aa([0x74,0x68,0x65,0x6e])](_0x2d4cbe=>(_0xfb2d91(),_0x2d4cbe),()=>{const _0x25df7b=_0x273885();return null==_0x25df7b?(_0xfb2d91(),_0x5ce7aa([0x56,0x61,0x6c,0x69,0x64])):_0x5ce7aa(_0x51c2b2-_0x25df7b>(0x5b8c9f70^_0x5c6d1d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5ce7aa([0x74,0x68,0x65,0x6e])](_0x2efbc3)[_0x5ce7aa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2efbc3(_0x5ce7aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x485898=0x7fb6f5f0^_0x5c6d1d;function _0xfb2d91(){const _0x42639a=_0x5ce7aa([0x6c,0x6c,0x63,0x74,0x2d])+_0xcafeda(_0x12161c(_0x194082)),_0x57d65a=_0xc4f045(_0xcafeda(window[_0x5ce7aa([0x4d,0x61,0x74,0x68])][_0x5ce7aa([0x63,0x65,0x69,0x6c])](_0x51c2b2/_0x485898)));window[_0x5ce7aa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ce7aa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42639a,_0x57d65a);}function _0x273885(){const _0x21fc25=_0x5ce7aa([0x6c,0x6c,0x63,0x74,0x2d])+_0xcafeda(_0x12161c(_0x194082)),_0x56b7c5=window[_0x5ce7aa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ce7aa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21fc25);return _0x56b7c5?window[_0x5ce7aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc4f045(_0x56b7c5),0x10)*_0x485898:null;}function _0x4c5741(_0x2ba32d){return new window[(_0x5ce7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3eeb22,_0x12d7af)=>{_0x2ba32d[_0x5ce7aa([0x74,0x68,0x65,0x6e])](_0x3eeb22,_0x12d7af),window[_0x5ce7aa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12d7af,0x7f81cfb0^_0x5c6d1d);});}}_0x580227[_0x5ce7aa([0x6f,0x6e])](_0x5ce7aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x420714,_0x3bdae9)=>{if(_0x3bdae9[0x0]!=_0x194082)return _0x2efbc3(_0x5ce7aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3bdae9[0x1]={..._0x3bdae9[0x1],[_0x5ce7aa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2602db};},{[_0x5ce7aa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ce7aa([0x68,0x69,0x67,0x68])}),_0x580227[_0x5ce7aa([0x6f,0x6e])](_0x5ce7aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4b80d8=>{_0x415097(_0x4b80d8[_0x5ce7aa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x581fde=!0x0,_0x2695fe(_0x4b80d8[_0x5ce7aa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5ce7aa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ce7aa([0x6c,0x6f,0x77])}),_0x6f17e0[_0x5ce7aa([0x74,0x68,0x65,0x6e])](()=>{_0x581fde||_0x2efbc3(_0x5ce7aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x498dd6(){return _0x580227[_0x5ce7aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ce7aa([0x76,0x69,0x65,0x77])][_0x5ce7aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5ce7aa([0x61,0x75,0x74,0x6f]);}function _0x3c8772(){_0x580227[_0x5ce7aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ce7aa([0x76,0x69,0x65,0x77])][_0x5ce7aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5ce7aa([0x61,0x75,0x74,0x6f]);}}function _0x5a6a34(_0x43a31b){const _0xbcd5b4=[new window[(_0x5ce7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27137d=>setTimeout(_0x27137d,0x7f8925bc^_0x5c6d1d)),_0x6f17e0[_0x5ce7aa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5ce7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x474a6e=>{let _0x533ec1=0x0;_0x580227[_0x5ce7aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ce7aa([0x6f,0x6e])](_0x5ce7aa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5064a6,_0x3f0d40)=>{_0x3f0d40[0x0][_0x5ce7aa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x533ec1++,_0x533ec1==(0x7f801a88^_0x5c6d1d)&&(_0x474a6e(),_0x5064a6[_0x5ce7aa([0x6f,0x66,0x66])]());});}))];return window[_0x5ce7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5ce7aa([0x72,0x61,0x63,0x65])](_0xbcd5b4)[_0x5ce7aa([0x74,0x68,0x65,0x6e])](()=>_0x43a31b);}async function _0x5a7325(){await _0x6f17e0,_0x580227[_0x5ce7aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ce7aa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3a3049,_0x580227[_0x5ce7aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ce7aa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3a3049,_0x580227[_0x5ce7aa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5ce7aa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3f1875(_0x2ce480){const _0x39fb2c=_0x2ffb92();_0x580227[_0x39fb2c]=_0x5ce7aa([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2ce480,_0x2ce480!=_0x5ce7aa([0x56,0x61,0x6c,0x69,0x64])&&_0x5a7325();}function _0x2ffb92(){const _0x5a07ca=window[_0x5ce7aa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5ce7aa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5ce7aa([0x6e,0x6f,0x77])]())[_0x5ce7aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5ce7aa([0x2e]),'');let _0x303e38=_0x5ce7aa([0x4f]);for(let _0x158750=0x0;_0x158750<_0x5a07ca[_0x5ce7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x158750+=0x2){let _0xde5266=window[_0x5ce7aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a07ca[_0x5ce7aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x158750,_0x158750+0x2));_0xde5266>=_0x3fb08f[_0x5ce7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xde5266-=_0x3fb08f[_0x5ce7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x303e38+=_0x3fb08f[_0xde5266];}return _0x303e38;}function _0x15a2d0(){const _0x1f8862=_0x28effc[_0x5ce7aa([0x73,0x70,0x6c,0x69,0x74])](_0x5ce7aa([0x2e]));if(0x3!=_0x1f8862[_0x5ce7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x317b9d(_0x1f8862[0x1]);function _0x317b9d(_0x529ff8){const _0x47a5b2=_0x1279de(_0x529ff8);return _0x47a5b2&&_0x2cd8d8()?_0x47a5b2:null;function _0x2cd8d8(){const _0x5525eb=_0x47a5b2[_0x5ce7aa([0x6a,0x74,0x69])],_0x4f14c9=window[_0x5ce7aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5525eb[_0x5ce7aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5525eb[_0x5ce7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5f24d5={..._0x47a5b2,[_0x5ce7aa([0x6a,0x74,0x69])]:_0x5525eb[_0x5ce7aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5525eb[_0x5ce7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5f24d5[_0x5ce7aa([0x76,0x63])],_0x12161c(_0x5f24d5)==_0x4f14c9;}}}async function _0x2ddd1e(){let _0x1844ba=!0x0;try{const _0xed8f49=_0x28effc[_0x5ce7aa([0x73,0x70,0x6c,0x69,0x74])](_0x5ce7aa([0x2e])),[_0x18a05d,_0x4d87b0,_0x36e8c0]=_0xed8f49;return _0x182d83(_0x18a05d),await _0x4e3224(_0x18a05d,_0x4d87b0,_0x36e8c0),_0x1844ba;}catch{return!0x1;}function _0x182d83(_0x461679){const _0x51931a=_0x1279de(_0x461679);_0x51931a&&_0x51931a[_0x5ce7aa([0x61,0x6c,0x67])]==_0x5ce7aa([0x45,0x53,0x32,0x35,0x36])||(_0x1844ba=!0x1);}async function _0x4e3224(_0x42be35,_0x4e4fd7,_0x22f606){const _0x46b630=window[_0x5ce7aa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5ce7aa([0x66,0x72,0x6f,0x6d])](_0x16491e(_0x22f606),_0x1ec02f=>_0x1ec02f[_0x5ce7aa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3a6211=new window[(_0x5ce7aa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5ce7aa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x42be35+_0x5ce7aa([0x2e])+_0x4e4fd7),_0x1b31ed=window[_0x5ce7aa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5ce7aa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b31ed)return;const _0x4258d2=await _0x1b31ed[_0x5ce7aa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5ce7aa([0x6a,0x77,0x6b]),_0x4280ad,{[_0x5ce7aa([0x6e,0x61,0x6d,0x65])]:_0x5ce7aa([0x45,0x43,0x44,0x53,0x41]),[_0x5ce7aa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5ce7aa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5ce7aa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b31ed[_0x5ce7aa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5ce7aa([0x6e,0x61,0x6d,0x65])]:_0x5ce7aa([0x45,0x43,0x44,0x53,0x41]),[_0x5ce7aa([0x68,0x61,0x73,0x68])]:{[_0x5ce7aa([0x6e,0x61,0x6d,0x65])]:_0x5ce7aa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4258d2,_0x46b630,_0x3a6211)||(_0x1844ba=!0x1);}}function _0x1279de(_0x47a076){return _0x47a076[_0x5ce7aa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5ce7aa([0x65,0x79]))?JSON[_0x5ce7aa([0x70,0x61,0x72,0x73,0x65])](_0x16491e(_0x47a076)):null;}function _0x16491e(_0x2e5f9c){return window[_0x5ce7aa([0x61,0x74,0x6f,0x62])](_0x2e5f9c[_0x5ce7aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5ce7aa([0x2b]))[_0x5ce7aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5ce7aa([0x2f])));}function _0x12161c(_0x3a2da6){let _0x47d31e=0x1505;function _0x77e12(_0xa23eb2){for(let _0x346b8e=0x0;_0x346b8e<_0xa23eb2[_0x5ce7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x346b8e++){const _0x12e956=_0xa23eb2[_0x5ce7aa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x346b8e);_0x47d31e=(_0x47d31e<<0x5)+_0x47d31e+_0x12e956,_0x47d31e&=_0x47d31e;}}function _0x277153(_0x2ce74d){Array[_0x5ce7aa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2ce74d)?_0x2ce74d[_0x5ce7aa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x277153):_0x2ce74d&&typeof _0x2ce74d==_0x5ce7aa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5ce7aa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2ce74d)[_0x5ce7aa([0x73,0x6f,0x72,0x74])]()[_0x5ce7aa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x56b076,_0x5a469e])=>{_0x77e12(_0x56b076),_0x277153(_0x5a469e);}):_0x77e12(window[_0x5ce7aa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2ce74d));}return _0x277153(_0x3a2da6),_0x47d31e>>>0x0;}function _0xcafeda(_0x5717a1){return _0x5717a1[_0x5ce7aa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5ce7aa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5ce7aa([0x30]));}function _0xc4f045(_0x3e0318){return _0x3e0318[_0x5ce7aa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5ce7aa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5ce7aa([0x6a,0x6f,0x69,0x6e])]('');}function _0x3a3049(){}function _0x5ce7aa(_0x41f776){return _0x41f776['map'](_0x233786=>String['fromCharCode'](_0x233786))['join']('');}_0x3f1875(await _0x2974ed());}(this);}['_initSchema'](){const _0x2738a2=this['editor']['model']['schema'];_0x2738a2['isRegistered']('imageBlock')&&_0x2738a2['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2738a2['isRegistered']('imageInline')&&_0x2738a2['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x423097=this['editor'];_0x423097['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x423097['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x6d73aa=>_0x6d73aa['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x510dea=_0x423097['commands']['get']('replaceImageSource');_0x510dea&&this['listenTo'](_0x510dea,'cleanupImage',(_0x2dd775,[_0x2c7e62,_0x1233da])=>{_0x2c7e62['removeAttribute']('uploadcareImageId',_0x1233da);});}['_initConfig'](){const _0x4d2e80=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1be02d=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1764c0(_0x4acc62['document'],'uc-config',{..._0x4d2e80,'pubkey':_0x1be02d,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x35baa8=>{if('closeMax'==_0x35baa8)return'#uc-icon-arrow-down';},_0x4acc62['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1764c0(_0x4acc62['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x4acc62['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1a7a64=this['editor']['commands']['get']('insertImage');_0x1a7a64&&this['listenTo'](_0x1a7a64,'execute',()=>{const _0x554415=this['editor']['model']['document']['selection']['getSelectedElement']();_0x554415&&_0x554415['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x554415);});});const _0x960d5b=this['editor']['commands']['get']('uploadcareImageReplace');_0x960d5b&&this['listenTo'](_0x960d5b,'execute',()=>{const _0x2a5f12=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2a5f12&&_0x2a5f12['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2a5f12);});});}}class u extends _0x418ad9{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c20fe){super(_0x2c20fe),_0x2c20fe['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x457d67['defineComponents'](_0x457d67);}}class ta extends _0x38ff45{constructor(_0x29df98){super(_0x29df98);const t=_0x29df98['t'],_0x74f67f=this['bindTemplate'],_0x1ebf0f=new _0x20485c();_0x1ebf0f['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':[_0x1ebf0f,{'text':_0x74f67f['to']('imageUploadProgress',_0x41273e=>t('Loading\x20image...')+'\x20('+(_0x41273e||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x38ff45{constructor(_0x15581b){super(_0x15581b);const t=_0x15581b['t'];this['set']('errorType',null);const _0x49f243=new _0x2b2bea(_0x15581b);_0x49f243['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x49f243['withText']=!0x0,_0x49f243['class']='ck-button-action',_0x49f243['on']('execute',()=>{this['fire']('retry');}),_0x49f243['bind']('isVisible')['to'](this,'errorType',_0x49b64f=>'NotFound'!==_0x49b64f);const _0x484352=new at();_0x484352['content']=et,_0x484352['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2f4a82=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':[_0x484352,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2f4a82['to']('errorType',_0x137238=>t('NotFound'!==_0x137238?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x49f243]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x38ff45{constructor(_0xa16be6,_0x446b86){super(_0xa16be6);const _0x4769b9=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x446b86,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4769b9['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xc7b0e7,_0x3faef7,_0x1c5a6d){super(_0xc7b0e7),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0xc7b0e7),this['_errorView']=new rt(_0xc7b0e7),this['_editingView']=new tt(_0xc7b0e7,_0x1c5a6d),this['_focusableView']=new _0x38ff45(_0xc7b0e7),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3faef7),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'],_0x47238e=>{this['_addUploadcareImageEditorListeners'](_0x47238e);});}),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'](_0x145c14,_0x4cc7fc){const _0x9e9634='uc-cloud-image-editor',_0x59fb23=_0x145c14['querySelector'](_0x9e9634);if(_0x59fb23)return _0x4cc7fc(_0x59fb23);const _0x134198=new MutationObserver(_0x2e9f60=>{const _0x186a10=_0x2e9f60['filter'](_0x2bfefc=>_0x2bfefc['target']===_0x145c14&&_0x2bfefc['addedNodes']['length']>0x0&&_0x2bfefc['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x9e9634);_0x186a10['length']&&(_0x134198['disconnect'](),_0x4cc7fc(_0x186a10[0x0]['addedNodes'][0x0]));});_0x134198['observe'](_0x145c14,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5ab153){_0x5ab153['addEventListener']('apply',_0x36ed2c=>{this['fire']('apply',{'imageSrc':_0x36ed2c['detail']['cdnUrl']});}),_0x5ab153['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x200662(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x14b47d,_0x2c7a5c,_0x17f8e6){super(),this['_editor']=_0x14b47d,this['_dialog']=_0x2c7a5c,this['_imageElement']=_0x17f8e6,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 _0x20880d=this['_imageElement'],_0x571ea4=_0x20880d['getAttribute']('uploadcareImageId'),_0x1381e=_0x20880d['getAttribute']('src');if(_0x571ea4)await this['_loadImageInfo'](_0x571ea4,_0x1381e);else{if(this['_imageCache']['has'](_0x1381e)){const _0x38b4b2=this['_imageCache']['get'](_0x1381e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x38b4b2['url'],this['imageDimension']=_0x38b4b2['dimension'],this['imageId']=_0x38b4b2['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4e8303}=this['_editor'],t=_0x4e8303['t'],_0x39df85=new Z(_0x4e8303,this['imageStatus'],this['_attributes']);_0x39df85['bind']('status')['to'](this,'imageStatus'),_0x39df85['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x39df85['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x39df85['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x39df85,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4b5ec4,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x39df85,'position':_0x8f90ea['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x39df85['focus']();},'onHide':()=>{_0x39df85['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xf4f555=>!F(_0xf4f555,_0x39df85['element'])}});}['_loadImageInfo'](_0x3a697b,_0x3e9224){return C['getInfo'](_0x3a697b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x415ccc=>{const {width:_0x516f35,height:_0x11361d}=_0x415ccc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3e9224,this['imageDimension']={'width':_0x516f35,'height':_0x11361d},this['imageId']=_0x3a697b;})['catch'](_0x2e9b1b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2e9b1b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1e1fe7,_0x1b3459){return this['_getImageAsFile'](_0x1e1fe7)['then'](_0x43d305=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1b3459['signal'],'file':_0x43d305,'onProgress':_0x2bffcf=>{_0x2bffcf&&_0x2bffcf['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2bffcf['value']));}}))['then'](_0x3f81cb=>{const {width:_0x35dd17,height:_0x55f40a}=_0x3f81cb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f81cb['cdnUrl'],this['imageDimension']={'width':_0x35dd17,'height':_0x55f40a},this['imageId']=_0x3f81cb['uuid'],this['imageUploadProgress']=null;const _0x5f0df9=_0x1e1fe7['getAttribute']('src');this['_imageCache']['set'](_0x5f0df9,{'id':_0x3f81cb['uuid'],'url':_0x3f81cb['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3d2a9d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3d2a9d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xce8f37,_0xfdfe43){_0xce8f37['on']('apply',(_0x15b231,_0x1acdc)=>{this['_replaceImage'](_0xfdfe43,_0x1acdc['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xce8f37['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xce8f37['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2be131,_0x3ae6af,_0x47771f){const _0xb24c05=this['_editor'],{width:_0x2037bf,height:_0x5b995b}=A(_0x3ae6af,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x53dfef,imageSources:_0x2aea32}=E(_0x3ae6af,_0x2037bf);_0xb24c05['model']['change'](_0x3a021f=>{if('$graveyard'===_0x2be131['root']['rootName']){_0xb24c05['execute']('insertImage',{'imageType':_0x2be131['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2be131['getAttributes']()),'uploadcareImageId':_0x47771f,'src':_0x53dfef,'sources':_0x2aea32,'width':_0x2037bf,'height':_0x5b995b}});const _0xb34647=_0x2be131['getChildren']();_0x2be131=_0xb24c05['model']['document']['selection']['getSelectedElement']();for(const _0x2718a7 of _0xb34647)_0x3a021f['append'](_0x3a021f['cloneElement'](_0x2718a7),_0x2be131);}else _0x3a021f['setSelection'](_0x2be131,'on'),_0xb24c05['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2be131['getAttributes']()),'uploadcareImageId':_0x47771f,'src':_0x53dfef,'sources':_0x2aea32,'width':_0x2037bf,'height':_0x5b995b},_0x2be131);_0x3a021f['setSelection'](_0x2be131,'on');});}async['_getImageAsFile'](_0x1ac933){const _0x291f04=_0x4acc62['window'],_0x2927d6=_0x4acc62['document']['location']['href'],_0x7ad8a=new _0x291f04['URL'](_0x1ac933['getAttribute']('src'),_0x2927d6);if('data:'===_0x7ad8a['protocol']){const _0x47c9b6=_0x7ad8a['href']['split'](','),_0x46ba0a=_0x47c9b6[0x0]['match'](/:(.*?);/)[0x1],_0x25edea=_0x46ba0a['split']('/')[0x1],_0x23a004=_0x291f04['atob'](_0x47c9b6[_0x47c9b6['length']-0x1]);let _0x5a1f64=_0x23a004['length'];const _0x34504b=new _0x291f04['Uint8Array'](_0x5a1f64);for(;_0x5a1f64--;)_0x34504b[_0x5a1f64]=_0x23a004['charCodeAt'](_0x5a1f64);return new _0x291f04['File']([_0x34504b],'image.'+_0x25edea,{'type':_0x46ba0a});}const _0x438cfe=_0x7ad8a['href']['split']('/'),_0x131412=_0x438cfe[_0x438cfe['length']-0x1],_0x4aecc0=_0x131412['split']('.')[0x1];return _0x291f04['fetch'](_0x7ad8a['href'])['then'](_0x557fde=>_0x557fde['clone']()['blob']())['then'](_0x4d04cb=>new _0x291f04['File']([_0x4d04cb],_0x131412,{'type':'image/'+_0x4aecc0}));}}class J extends _0x5db902{['imageEditController'];static get['requires'](){return[_0x34c46e];}['_isEditable'];constructor(_0x35ecd3){super(_0x35ecd3),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x52d680){const _0x3edab6=V(_0x52d680);return _0x54faee=>!(!_0x54faee||!_0x54faee['is']('element','imageBlock')&&!_0x54faee['is']('element','imageInline'))&&(!!_0x54faee['hasAttribute']('uploadcareImageId')||!!_0x54faee['hasAttribute']('src')&&_0x3edab6(_0x54faee['getAttribute']('src')));}(_0x35ecd3['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xf57c0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xf57c0);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x139286=this['editor']['model']['document']['selection']['getSelectedElement']();_0x139286&&(_0x139286['is']('element','imageBlock')||_0x139286['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x34c46e),_0x139286),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x5db902{['refresh'](){const _0x43290f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x43290f&&(_0x43290f['is']('element','imageBlock')||_0x43290f['is']('element','imageInline')));}['execute'](_0x3d1d89){const _0x162438=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4ebabc=>{_0x4ebabc['setAttributes'](_0x3d1d89,_0x162438),_0x4ebabc['removeAttribute']('srcset',_0x162438),_0x4ebabc['removeAttribute']('sizes',_0x162438);});}}class g extends _0x418ad9{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x5596c3,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xb05434}=this;_0xb05434['commands']['add']('uploadcareImageEdit',new J(_0xb05434)),_0xb05434['commands']['add']('uploadcareImageReplace',new O(_0xb05434));}}class j extends _0x418ad9{['_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 _0x396edc=this['editor'];_0x396edc['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3a48bf=>{const _0x1e64ff=_0x396edc['commands']['get']('uploadcareImageEdit'),_0x15fb05=new _0x2b2bea(_0x3a48bf),t=_0x3a48bf['t'];return _0x15fb05['set']({'icon':_0x4b5ec4,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x15fb05['bind']('isEnabled')['to'](_0x1e64ff),_0x15fb05['bind']('isOn')['to'](_0x1e64ff,'isActive'),this['listenTo'](_0x15fb05,'execute',()=>{_0x396edc['execute']('uploadcareImageEdit'),_0x396edc['editing']['view']['focus']();}),_0x15fb05;}),this['_initConfig']();}['_initConfig'](){const _0x21bb51=_0x1764c0(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x21bb51),this['listenTo'](this['editor'],'destroy',()=>{_0x21bb51['remove']();});}}class P extends _0x418ad9{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20250527.0",
3
+ "version": "0.0.0-nightly-20250528.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-20250527.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250527.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250527.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250527.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250527.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250527.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250527.0",
33
- "ckeditor5": "0.0.0-nightly-20250527.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250528.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250528.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250528.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250528.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250528.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250528.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250528.0",
33
+ "ckeditor5": "0.0.0-nightly-20250528.0",
34
34
  "@uploadcare/file-uploader": "1.12.0",
35
35
  "@uploadcare/upload-client": "6.14.1"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd0dae7=_0x415b;function _0x3909(){const _0x162bfe=['_initConfig','afterInit','configElement','\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','document','init','uc-config','_initImageProcessingIndicator','isOfficialPlugin','_ctxElement','_configElement','_initConversion','config','commands','isPremiumPlugin','removeAttribute','imageBlock','uc-upload-ctx-provider','data-uc-image-id','body','getSelectedElement','execute','elementToAttribute','ctxElement','imageInline','join','uploadcareImageReplace','destroy','uploadcare','uploader','66530ngvuXI','#uc-icon-arrow-down','PictureEditing','uploadcareImageId','_initSchema','pluginName','260782cXzaMJ','querySelector','upcast','selection','render','fromCharCode','editing','view','56GPnmWs','conversion','locale','iconHrefResolver','map','739816XVRJDL','isRegistered','appendChild','attributeToAttribute','uploadcare.pubkey','closeMax','get','157653OhVJrO','input[uploadcare-file-input]','editor','replaceImageSource','extend','82768yWRSvY','80214Ayhqsg','for','requires','schema','downcast','183303qSlKIB','listenTo','UploadcareEditing','add','36lvvKLk','once','insertImage','contentLanguage','uploadcare.uploader','model','href','_initCtx','cleanupImage','remove','getAttribute','true'];_0x3909=function(){return _0x162bfe;};return _0x3909();}function _0x415b(_0x46a3d5,_0x352436){const _0x3909ba=_0x3909();return _0x415b=function(_0x415b8d,_0xf29ce0){_0x415b8d=_0x415b8d-0x1b7;let _0x167660=_0x3909ba[_0x415b8d];return _0x167660;},_0x415b(_0x46a3d5,_0x352436);}(function(_0x25ab5b,_0x31ab7c){const _0x2f0b12=_0x415b,_0x4b9998=_0x25ab5b();while(!![]){try{const _0x3dc85b=-parseInt(_0x2f0b12(0x206))/0x1+parseInt(_0x2f0b12(0x1f2))/0x2+-parseInt(_0x2f0b12(0x1b9))/0x3+parseInt(_0x2f0b12(0x1ff))/0x4+parseInt(_0x2f0b12(0x1ec))/0x5*(parseInt(_0x2f0b12(0x1c2))/0x6)+parseInt(_0x2f0b12(0x1b8))/0x7*(-parseInt(_0x2f0b12(0x1fa))/0x8)+-parseInt(_0x2f0b12(0x1be))/0x9;if(_0x3dc85b===_0x31ab7c)break;else _0x4b9998['push'](_0x4b9998['shift']());}catch(_0x254d5c){_0x4b9998['push'](_0x4b9998['shift']());}}}(_0x3909,0x1a487));import{Plugin as _0x4bef96}from'ckeditor5/src/core.js';import{Dialog as _0x4fa3c6}from'ckeditor5/src/ui.js';import{createElement as _0x3d9fcb,global as _0x4740aa,uid as _0x1560ae}from'ckeditor5/src/utils.js';import _0x236558 from'./uploadcarecommand.js';import _0x1d5e2e from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1279de}from'./utils/editingutils.js';export default class i extends _0x4bef96{[_0xd0dae7(0x1d8)]=null;[_0xd0dae7(0x1d7)]=null;static get[_0xd0dae7(0x1f1)](){const _0x5d93e7=_0xd0dae7;return _0x5d93e7(0x1c0);}static get[_0xd0dae7(0x1bb)](){const _0x14b21b=_0xd0dae7;return[_0x14b21b(0x1ee),_0x1d5e2e,_0x4fa3c6];}static get[_0xd0dae7(0x1d6)](){return!0x0;}static get[_0xd0dae7(0x1dc)](){return!0x0;}get[_0xd0dae7(0x1d0)](){const _0x41f378=_0xd0dae7;return this[_0x41f378(0x1d8)];}get[_0xd0dae7(0x1e5)](){const _0x234385=_0xd0dae7;return this[_0x234385(0x1d7)];}[_0xd0dae7(0x1d3)](){const _0x3a805a=_0xd0dae7,_0x2d5adf=this[_0x3a805a(0x208)];_0x2d5adf[_0x3a805a(0x1db)][_0x3a805a(0x1c1)](_0x3a805a(0x1ea),new _0x236558(_0x2d5adf));}[_0xd0dae7(0x1cf)](){const _0x1627f4=_0xd0dae7;this[_0x1627f4(0x1f0)](),this[_0x1627f4(0x1d9)](),this[_0x1627f4(0x1ce)](),this[_0x1627f4(0x1c9)](),this[_0x1627f4(0x1d5)](),this[_0x1627f4(0x1bf)](this[_0x1627f4(0x208)],_0x1627f4(0x1e9),()=>{const _0xee378c=_0x1627f4;this[_0xee378c(0x1d8)]&&(this[_0xee378c(0x1d8)][_0xee378c(0x1cb)](),this[_0xee378c(0x1d8)]=null),this[_0xee378c(0x1d7)]&&(this[_0xee378c(0x1d7)][_0xee378c(0x1cb)](),this[_0xee378c(0x1d7)]=null);const _0x248e56=_0x4740aa[_0xee378c(0x1d2)][_0xee378c(0x1f3)](_0xee378c(0x207));_0x248e56&&_0x248e56[_0xee378c(0x1cb)]();}),async function(_0x24ab7a){const _0x5d4f21=_0x3e235d([0x57,0x71,0x73,0x33,0x4a,0x4f,0x52,0x35,0x32,0x56,0x4d,0x51,0x67,0x47,0x69,0x54,0x74,0x4b,0x75,0x55,0x53,0x79,0x36,0x44,0x50,0x78,0x38,0x63,0x37,0x61,0x45,0x6a,0x68,0x5a,0x70,0x42,0x66,0x6b,0x41,0x34,0x76,0x4c,0x62,0x6c,0x6f,0x59,0x6d,0x58,0x64,0x31,0x4e,0x7a,0x77,0x39,0x30,0x65,0x6e,0x46,0x43,0x72,0x49,0x48]),_0x3f6725=0x3053539b,_0x52590c=0x30543a93^_0x3f6725,_0x56177d=window[_0x3e235d([0x44,0x61,0x74,0x65])][_0x3e235d([0x6e,0x6f,0x77])](),_0x168727=_0x24ab7a[_0x3e235d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1cfeef=new window[(_0x3e235d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x462ccd=>{_0x168727[_0x3e235d([0x6f,0x6e,0x63,0x65])](_0x3e235d([0x72,0x65,0x61,0x64,0x79]),_0x462ccd);}),_0x243af4={[_0x3e235d([0x6b,0x74,0x79])]:_0x3e235d([0x45,0x43]),[_0x3e235d([0x75,0x73,0x65])]:_0x3e235d([0x73,0x69,0x67]),[_0x3e235d([0x63,0x72,0x76])]:_0x3e235d([0x50,0x2d,0x32,0x35,0x36]),[_0x3e235d([0x78])]:_0x3e235d([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]),[_0x3e235d([0x79])]:_0x3e235d([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]),[_0x3e235d([0x61,0x6c,0x67])]:_0x3e235d([0x45,0x53,0x32,0x35,0x36])},_0x3a3a4e=_0x168727[_0x3e235d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e235d([0x67,0x65,0x74])](_0x3e235d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3a0b84(){let _0x53d815,_0x81f52=null,_0x45f5fe=null;try{if(_0x3a3a4e==_0x3e235d([0x47,0x50,0x4c]))return _0x3e235d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x53d815=_0x25ffe6(),!_0x53d815)return _0x3e235d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x53d815[_0x3e235d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x45f5fe=_0x6a96ee(_0x53d815[_0x3e235d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x53d815[_0x3e235d([0x6a,0x74,0x69])])),await _0x5844c2()?_0x7f459()?_0x522fde()?_0x3e235d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa33343()?(_0x53d815[_0x3e235d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e235d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x81f52=_0x2dc674(_0x3e235d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x53d815[_0x3e235d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e235d([0x74,0x72,0x69,0x61,0x6c])&&(_0x81f52=_0x2dc674(_0x3e235d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1d4cc7()):_0x3e235d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e235d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e235d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3e235d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x522fde(){const _0x4be979=[_0x3e235d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e235d([0x74,0x72,0x69,0x61,0x6c])][_0x3e235d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53d815[_0x3e235d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x56177d/0x3e8:0xe10*_0x52590c;return _0x53d815[_0x3e235d([0x65,0x78,0x70])]<_0x4be979;}function _0x7f459(){const _0x12db92=_0x53d815[_0x3e235d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x12db92&&(!!_0x12db92[_0x3e235d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e235d([0x2a]))||!!_0x12db92[_0x3e235d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e235d([0x55,0x50,0x4c,0x43])));}function _0xa33343(){const _0x17843c=_0x415b,_0x5e8b1a=_0x53d815[_0x3e235d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e8b1a||0x0==_0x5e8b1a[_0x3e235d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d3560}=new URL(window[_0x3e235d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x17843c(0x1c8)]);if(_0x5e8b1a[_0x3e235d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d3560))return!0x0;const _0x10f7e3=_0x3d3560[_0x3e235d([0x73,0x70,0x6c,0x69,0x74])](_0x3e235d([0x2e]));return _0x5e8b1a[_0x3e235d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24be0f=>_0x24be0f[_0x3e235d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e235d([0x2a])))[_0x3e235d([0x6d,0x61,0x70])](_0x36e226=>_0x36e226[_0x3e235d([0x73,0x70,0x6c,0x69,0x74])](_0x3e235d([0x2e])))[_0x3e235d([0x73,0x6f,0x6d,0x65])](_0x2e7ea8=>_0x10f7e3[_0x3e235d([0x65,0x76,0x65,0x72,0x79])]((_0x7064c4,_0x4a59de)=>_0x2e7ea8[_0x4a59de]===_0x7064c4||_0x2e7ea8[_0x4a59de]===_0x3e235d([0x2a])));}function _0x1d4cc7(){return _0x81f52&&_0x45f5fe?new window[(_0x3e235d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3cb49c,_0x19ceb4)=>{_0x81f52[_0x3e235d([0x74,0x68,0x65,0x6e])](_0x3cb49c,_0x19ceb4),_0x45f5fe[_0x3e235d([0x74,0x68,0x65,0x6e])](_0x47e976=>{_0x47e976!=_0x3e235d([0x56,0x61,0x6c,0x69,0x64])&&_0x3cb49c(_0x47e976);},_0x19ceb4);}):_0x81f52||_0x45f5fe||_0x3e235d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x6a96ee(_0x22f82e,_0x636e8f){return new window[(_0x3e235d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d68d5=>{if(_0x295bf7())return _0x1d68d5(_0x3e235d([0x56,0x61,0x6c,0x69,0x64]));_0x3d7eae(),_0x168727[_0x3e235d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e235d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c7aa2=!0x1;const _0x5d34aa=_0x1560ae();function _0x3b179a(_0x1c0ce5){return!!_0x1c0ce5&&(typeof _0x1c0ce5===_0x3e235d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1c0ce5===_0x3e235d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1c0ce5[_0x3e235d([0x74,0x68,0x65,0x6e])]===_0x3e235d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1c0ce5[_0x3e235d([0x63,0x61,0x74,0x63,0x68])]===_0x3e235d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a5ade(_0x4ecc4c){_0x661992(_0x4ecc4c)[_0x3e235d([0x74,0x68,0x65,0x6e])](_0x33d5da=>{if(!_0x33d5da||_0x33d5da[_0x3e235d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e235d([0x6f,0x6b]))return _0x3e235d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xdfaa4b(_0x2ba6f7(_0x5d34aa+_0x636e8f))!=_0x33d5da[_0x3e235d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e235d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e235d([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e235d([0x74,0x68,0x65,0x6e])](_0x5dd04c=>(_0x1a5a3a(),_0x5dd04c),()=>{const _0x2e2843=_0x242a6f();return null==_0x2e2843?(_0x1a5a3a(),_0x3e235d([0x56,0x61,0x6c,0x69,0x64])):_0x3e235d(_0x56177d-_0x2e2843>(0x145fd79b^_0x3f6725)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e235d([0x74,0x68,0x65,0x6e])](_0x1d68d5)[_0x3e235d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d68d5(_0x3e235d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xba5658=0x3065bd1b^_0x3f6725;function _0x1a5a3a(){const _0x43d13c=_0x3e235d([0x6c,0x6c,0x63,0x74,0x2d])+_0xdfaa4b(_0x2ba6f7(_0x22f82e)),_0x22a4b0=_0x2406bd(_0xdfaa4b(window[_0x3e235d([0x4d,0x61,0x74,0x68])][_0x3e235d([0x63,0x65,0x69,0x6c])](_0x56177d/_0xba5658)));window[_0x3e235d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e235d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43d13c,_0x22a4b0);}function _0x242a6f(){const _0x33e130=_0x3e235d([0x6c,0x6c,0x63,0x74,0x2d])+_0xdfaa4b(_0x2ba6f7(_0x22f82e)),_0x55b8c6=window[_0x3e235d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e235d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33e130);return _0x55b8c6?window[_0x3e235d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2406bd(_0x55b8c6),0x10)*_0xba5658:null;}function _0x661992(_0x3242b1){return new window[(_0x3e235d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x76b538,_0x433e6a)=>{_0x3242b1[_0x3e235d([0x74,0x68,0x65,0x6e])](_0x76b538,_0x433e6a),window[_0x3e235d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x433e6a,0x3052875b^_0x3f6725);});}}_0x168727[_0x3e235d([0x6f,0x6e])](_0x3e235d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x43fbed,_0x2d7ddb)=>{if(_0x2d7ddb[0x0]!=_0x22f82e)return _0x1d68d5(_0x3e235d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2d7ddb[0x1]={..._0x2d7ddb[0x1],[_0x3e235d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d34aa};},{[_0x3e235d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e235d([0x68,0x69,0x67,0x68])}),_0x168727[_0x3e235d([0x6f,0x6e])](_0x3e235d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x325657=>{_0x3b179a(_0x325657[_0x3e235d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c7aa2=!0x0,_0x5a5ade(_0x325657[_0x3e235d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e235d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e235d([0x6c,0x6f,0x77])}),_0x1cfeef[_0x3e235d([0x74,0x68,0x65,0x6e])](()=>{_0x5c7aa2||_0x1d68d5(_0x3e235d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x295bf7(){return _0x168727[_0x3e235d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e235d([0x76,0x69,0x65,0x77])][_0x3e235d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e235d([0x61,0x75,0x74,0x6f]);}function _0x3d7eae(){_0x168727[_0x3e235d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e235d([0x76,0x69,0x65,0x77])][_0x3e235d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e235d([0x61,0x75,0x74,0x6f]);}}function _0x2dc674(_0x58c0f6){const _0x3e036b=[new window[(_0x3e235d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44a855=>setTimeout(_0x44a855,0x305a6d57^_0x3f6725)),_0x1cfeef[_0x3e235d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e235d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x565095=>{let _0x12e8ff=0x0;_0x168727[_0x3e235d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e235d([0x6f,0x6e])](_0x3e235d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4c81e5,_0x1bfc41)=>{_0x1bfc41[0x0][_0x3e235d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x12e8ff++,_0x12e8ff==(0x30535263^_0x3f6725)&&(_0x565095(),_0x4c81e5[_0x3e235d([0x6f,0x66,0x66])]());});}))];return window[_0x3e235d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e235d([0x72,0x61,0x63,0x65])](_0x3e036b)[_0x3e235d([0x74,0x68,0x65,0x6e])](()=>_0x58c0f6);}async function _0x2c1cc7(){await _0x1cfeef,_0x168727[_0x3e235d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e235d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x45885b,_0x168727[_0x3e235d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e235d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x45885b,_0x168727[_0x3e235d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e235d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x58c122(_0x4add6c){const _0x53065f=_0x2c43ec();_0x168727[_0x53065f]=_0x3e235d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4add6c,_0x4add6c!=_0x3e235d([0x56,0x61,0x6c,0x69,0x64])&&_0x2c1cc7();}function _0x2c43ec(){const _0x344bce=window[_0x3e235d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e235d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e235d([0x6e,0x6f,0x77])]())[_0x3e235d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e235d([0x2e]),'');let _0xc0f79b=_0x3e235d([0x57]);for(let _0x372711=0x0;_0x372711<_0x344bce[_0x3e235d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x372711+=0x2){let _0x38ac73=window[_0x3e235d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x344bce[_0x3e235d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x372711,_0x372711+0x2));_0x38ac73>=_0x5d4f21[_0x3e235d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x38ac73-=_0x5d4f21[_0x3e235d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xc0f79b+=_0x5d4f21[_0x38ac73];}return _0xc0f79b;}function _0x25ffe6(){const _0x22ced5=_0x3a3a4e[_0x3e235d([0x73,0x70,0x6c,0x69,0x74])](_0x3e235d([0x2e]));if(0x3!=_0x22ced5[_0x3e235d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58b190(_0x22ced5[0x1]);function _0x58b190(_0x2a27cf){const _0x2cb0b5=_0x234ef1(_0x2a27cf);return _0x2cb0b5&&_0x1ec7f0()?_0x2cb0b5:null;function _0x1ec7f0(){const _0xa41a35=_0x2cb0b5[_0x3e235d([0x6a,0x74,0x69])],_0x2680b7=window[_0x3e235d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa41a35[_0x3e235d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa41a35[_0x3e235d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x392a9c={..._0x2cb0b5,[_0x3e235d([0x6a,0x74,0x69])]:_0xa41a35[_0x3e235d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa41a35[_0x3e235d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x392a9c[_0x3e235d([0x76,0x63])],_0x2ba6f7(_0x392a9c)==_0x2680b7;}}}async function _0x5844c2(){let _0xc8663e=!0x0;try{const _0x2766a9=_0x3a3a4e[_0x3e235d([0x73,0x70,0x6c,0x69,0x74])](_0x3e235d([0x2e])),[_0x2dad66,_0xd6c63e,_0x54b6b2]=_0x2766a9;return _0x51dd99(_0x2dad66),await _0x203122(_0x2dad66,_0xd6c63e,_0x54b6b2),_0xc8663e;}catch{return!0x1;}function _0x51dd99(_0x4452ce){const _0x3af4c4=_0x234ef1(_0x4452ce);_0x3af4c4&&_0x3af4c4[_0x3e235d([0x61,0x6c,0x67])]==_0x3e235d([0x45,0x53,0x32,0x35,0x36])||(_0xc8663e=!0x1);}async function _0x203122(_0x392a0c,_0x3ce7b4,_0x4a5f9d){const _0x1e919e=window[_0x3e235d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e235d([0x66,0x72,0x6f,0x6d])](_0x38183f(_0x4a5f9d),_0xe883fb=>_0xe883fb[_0x3e235d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x11bad5=new window[(_0x3e235d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e235d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x392a0c+_0x3e235d([0x2e])+_0x3ce7b4),_0x3d528c=window[_0x3e235d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e235d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3d528c)return;const _0x2fb883=await _0x3d528c[_0x3e235d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e235d([0x6a,0x77,0x6b]),_0x243af4,{[_0x3e235d([0x6e,0x61,0x6d,0x65])]:_0x3e235d([0x45,0x43,0x44,0x53,0x41]),[_0x3e235d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e235d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e235d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3d528c[_0x3e235d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e235d([0x6e,0x61,0x6d,0x65])]:_0x3e235d([0x45,0x43,0x44,0x53,0x41]),[_0x3e235d([0x68,0x61,0x73,0x68])]:{[_0x3e235d([0x6e,0x61,0x6d,0x65])]:_0x3e235d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2fb883,_0x1e919e,_0x11bad5)||(_0xc8663e=!0x1);}}function _0x234ef1(_0x3afb58){return _0x3afb58[_0x3e235d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e235d([0x65,0x79]))?JSON[_0x3e235d([0x70,0x61,0x72,0x73,0x65])](_0x38183f(_0x3afb58)):null;}function _0x38183f(_0x413487){return window[_0x3e235d([0x61,0x74,0x6f,0x62])](_0x413487[_0x3e235d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e235d([0x2b]))[_0x3e235d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e235d([0x2f])));}function _0x2ba6f7(_0x331e50){let _0x14060a=0x1505;function _0xabc43f(_0x5a315d){for(let _0x2e6e73=0x0;_0x2e6e73<_0x5a315d[_0x3e235d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e6e73++){const _0x172483=_0x5a315d[_0x3e235d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2e6e73);_0x14060a=(_0x14060a<<0x5)+_0x14060a+_0x172483,_0x14060a&=_0x14060a;}}function _0x127f9b(_0x42b644){Array[_0x3e235d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x42b644)?_0x42b644[_0x3e235d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x127f9b):_0x42b644&&typeof _0x42b644==_0x3e235d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e235d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x42b644)[_0x3e235d([0x73,0x6f,0x72,0x74])]()[_0x3e235d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x591476,_0x56415d])=>{_0xabc43f(_0x591476),_0x127f9b(_0x56415d);}):_0xabc43f(window[_0x3e235d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x42b644));}return _0x127f9b(_0x331e50),_0x14060a>>>0x0;}function _0xdfaa4b(_0xa15a04){return _0xa15a04[_0x3e235d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e235d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e235d([0x30]));}function _0x2406bd(_0x17f712){return _0x17f712[_0x3e235d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e235d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e235d([0x6a,0x6f,0x69,0x6e])]('');}function _0x45885b(){}function _0x3e235d(_0x35247c){const _0x24d3a9=_0x415b;return _0x35247c[_0x24d3a9(0x1fe)](_0x104575=>String[_0x24d3a9(0x1f7)](_0x104575))[_0x24d3a9(0x1e7)]('');}_0x58c122(await _0x3a0b84());}(this);}[_0xd0dae7(0x1f0)](){const _0x4f7dce=_0xd0dae7,_0x4bc754=this[_0x4f7dce(0x208)][_0x4f7dce(0x1c7)][_0x4f7dce(0x1bc)];_0x4bc754[_0x4f7dce(0x200)](_0x4f7dce(0x1de))&&_0x4bc754[_0x4f7dce(0x1b7)](_0x4f7dce(0x1de),{'allowAttributes':[_0x4f7dce(0x1ef)]}),_0x4bc754[_0x4f7dce(0x200)](_0x4f7dce(0x1e6))&&_0x4bc754[_0x4f7dce(0x1b7)](_0x4f7dce(0x1e6),{'allowAttributes':[_0x4f7dce(0x1ef)]});}[_0xd0dae7(0x1d9)](){const _0x100c01=_0xd0dae7,_0x455b42=this[_0x100c01(0x208)];_0x455b42[_0x100c01(0x1fb)][_0x100c01(0x1ba)](_0x100c01(0x1bd))[_0x100c01(0x202)]({'model':_0x100c01(0x1ef),'view':_0x100c01(0x1e0)}),_0x455b42[_0x100c01(0x1fb)][_0x100c01(0x1ba)](_0x100c01(0x1f4))[_0x100c01(0x1e4)]({'model':{'key':_0x100c01(0x1ef),'value':_0x5b8156=>_0x5b8156[_0x100c01(0x1cc)](_0x100c01(0x1e0))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4abbff=_0x455b42[_0x100c01(0x1db)][_0x100c01(0x205)](_0x100c01(0x209));_0x4abbff&&this[_0x100c01(0x1bf)](_0x4abbff,_0x100c01(0x1ca),(_0x22c3b3,[_0x145dbb,_0x2658f1])=>{const _0x4def17=_0x100c01;_0x145dbb[_0x4def17(0x1dd)](_0x4def17(0x1ef),_0x2658f1);});}[_0xd0dae7(0x1ce)](){const _0x14ce97=_0xd0dae7,_0x26f0fd=this[_0x14ce97(0x208)][_0x14ce97(0x1da)][_0x14ce97(0x205)](_0x14ce97(0x1c6))||{},_0x3e4ca9=this[_0x14ce97(0x208)][_0x14ce97(0x1da)][_0x14ce97(0x205)](_0x14ce97(0x203))||'';this[_0x14ce97(0x1d8)]=_0x3d9fcb(_0x4740aa[_0x14ce97(0x1d2)],_0x14ce97(0x1d4),{..._0x26f0fd,'pubkey':_0x3e4ca9,'ctx-name':_0x14ce97(0x1eb),'sourceList':'','imgOnly':_0x14ce97(0x1cd),'removeCopyright':_0x14ce97(0x1cd),'localeName':this[_0x14ce97(0x208)][_0x14ce97(0x1fc)][_0x14ce97(0x1c5)],'externalSourcesEmbedCss':_0x14ce97(0x1d1)}),this[_0x14ce97(0x1d8)][_0x14ce97(0x1fd)]=_0x5a54ad=>{const _0xce261b=_0x14ce97;if(_0xce261b(0x204)==_0x5a54ad)return _0xce261b(0x1ed);},_0x4740aa[_0x14ce97(0x1d2)][_0x14ce97(0x1e1)][_0x14ce97(0x201)](this[_0x14ce97(0x1d8)]);}[_0xd0dae7(0x1c9)](){const _0x4e5cc1=_0xd0dae7;this[_0x4e5cc1(0x1d7)]=_0x3d9fcb(_0x4740aa[_0x4e5cc1(0x1d2)],_0x4e5cc1(0x1df),{'ctx-name':_0x4e5cc1(0x1eb)}),_0x4740aa[_0x4e5cc1(0x1d2)][_0x4e5cc1(0x1e1)][_0x4e5cc1(0x201)](this[_0x4e5cc1(0x1d7)]);}[_0xd0dae7(0x1d5)](){const _0x4bb7b0=_0xd0dae7,_0x13fb9f=this[_0x4bb7b0(0x208)][_0x4bb7b0(0x1db)][_0x4bb7b0(0x205)](_0x4bb7b0(0x1c4));_0x13fb9f&&this[_0x4bb7b0(0x1bf)](_0x13fb9f,_0x4bb7b0(0x1e3),()=>{const _0x45a08e=_0x4bb7b0,_0x4f5ba9=this[_0x45a08e(0x208)][_0x45a08e(0x1c7)][_0x45a08e(0x1d2)][_0x45a08e(0x1f5)][_0x45a08e(0x1e2)]();_0x4f5ba9&&_0x4f5ba9[_0x45a08e(0x1cc)](_0x45a08e(0x1ef))&&this[_0x45a08e(0x208)][_0x45a08e(0x1f8)][_0x45a08e(0x1f9)][_0x45a08e(0x1c3)](_0x45a08e(0x1f6),()=>{const _0x3fdb49=_0x45a08e;_0x1279de(this[_0x3fdb49(0x208)],_0x4f5ba9);});});const _0x211306=this[_0x4bb7b0(0x208)][_0x4bb7b0(0x1db)][_0x4bb7b0(0x205)](_0x4bb7b0(0x1e8));_0x211306&&this[_0x4bb7b0(0x1bf)](_0x211306,_0x4bb7b0(0x1e3),()=>{const _0x3f0d27=_0x4bb7b0,_0x31e165=this[_0x3f0d27(0x208)][_0x3f0d27(0x1c7)][_0x3f0d27(0x1d2)][_0x3f0d27(0x1f5)][_0x3f0d27(0x1e2)]();_0x31e165&&_0x31e165[_0x3f0d27(0x1cc)](_0x3f0d27(0x1ef))&&this[_0x3f0d27(0x208)][_0x3f0d27(0x1f8)][_0x3f0d27(0x1f9)][_0x3f0d27(0x1c3)](_0x3f0d27(0x1f6),()=>{const _0x429356=_0x3f0d27;_0x1279de(this[_0x429356(0x208)],_0x31e165);});});}}
23
+ function _0x819d(_0x456331,_0x1d11b6){const _0x1a2bc4=_0x1a2b();return _0x819d=function(_0x819d35,_0x5086f6){_0x819d35=_0x819d35-0x8d;let _0x281913=_0x1a2bc4[_0x819d35];return _0x281913;},_0x819d(_0x456331,_0x1d11b6);}const _0x553511=_0x819d;(function(_0x33ef69,_0x1c2f67){const _0x218c81=_0x819d,_0xf5b66f=_0x33ef69();while(!![]){try{const _0x554ebd=-parseInt(_0x218c81(0xa4))/0x1*(-parseInt(_0x218c81(0x8f))/0x2)+-parseInt(_0x218c81(0xa1))/0x3+-parseInt(_0x218c81(0x99))/0x4*(parseInt(_0x218c81(0xaf))/0x5)+-parseInt(_0x218c81(0xa8))/0x6+-parseInt(_0x218c81(0xb2))/0x7*(-parseInt(_0x218c81(0x93))/0x8)+parseInt(_0x218c81(0xac))/0x9+-parseInt(_0x218c81(0xda))/0xa;if(_0x554ebd===_0x1c2f67)break;else _0xf5b66f['push'](_0xf5b66f['shift']());}catch(_0x39cb2d){_0xf5b66f['push'](_0xf5b66f['shift']());}}}(_0x1a2b,0x519ca));function _0x1a2b(){const _0x46d7cc=['commands','_initImageProcessingIndicator','282621AQtXfu','uploadcareImageId','elementToAttribute','pluginName','1213098ezshlA','uc-upload-ctx-provider','listenTo','uploadcareImageReplace','4416795KQFsAk','insertImage','querySelector','5hHxVRa','_initSchema','once','2373AIJeDF','model','locale','_initConfig','imageBlock','cleanupImage','fromCharCode','#uc-icon-arrow-down','extend','removeAttribute','body','replaceImageSource','href','configElement','_initCtx','afterInit','uploadcare.pubkey','getSelectedElement','execute','imageInline','config','_configElement','downcast','add','true','remove','upcast','view','uc-config','appendChild','getAttribute','uploadcare.uploader','_ctxElement','contentLanguage','closeMax','_initConversion','isPremiumPlugin','selection','\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','uploadcare','4019630ckjPKp','conversion','init','destroy','join','attributeToAttribute','isRegistered','editing','input[uploadcare-file-input]','4jpinUV','editor','uploader','requires','13664ltgkPo','schema','PictureEditing','isOfficialPlugin','iconHrefResolver','document','920348gWoXBA','for','get','data-uc-image-id','ctxElement','render','map','UploadcareEditing','1399482FYcDlN'];_0x1a2b=function(){return _0x46d7cc;};return _0x1a2b();}import{Plugin as _0x113a1a}from'ckeditor5/src/core.js';import{Dialog as _0x113725}from'ckeditor5/src/ui.js';import{createElement as _0x496c15,global as _0x54525f,uid as _0x79b4c9}from'ckeditor5/src/utils.js';import _0x2ce943 from'./uploadcarecommand.js';import _0x5406 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5cb8dc}from'./utils/editingutils.js';export default class i extends _0x113a1a{[_0x553511(0xc7)]=null;[_0x553511(0xd2)]=null;static get[_0x553511(0xa7)](){const _0x471811=_0x553511;return _0x471811(0xa0);}static get[_0x553511(0x92)](){const _0x390ad2=_0x553511;return[_0x390ad2(0x95),_0x5406,_0x113725];}static get[_0x553511(0x96)](){return!0x0;}static get[_0x553511(0xd6)](){return!0x0;}get[_0x553511(0xbf)](){const _0x41c6a9=_0x553511;return this[_0x41c6a9(0xc7)];}get[_0x553511(0x9d)](){const _0x41270e=_0x553511;return this[_0x41270e(0xd2)];}[_0x553511(0xdc)](){const _0x3079ba=_0x553511,_0x3c00e9=this[_0x3079ba(0x90)];_0x3c00e9[_0x3079ba(0xa2)][_0x3079ba(0xc9)](_0x3079ba(0xd9),new _0x2ce943(_0x3c00e9));}[_0x553511(0xc1)](){const _0x2521a1=_0x553511;this[_0x2521a1(0xb0)](),this[_0x2521a1(0xd5)](),this[_0x2521a1(0xb5)](),this[_0x2521a1(0xc0)](),this[_0x2521a1(0xa3)](),this[_0x2521a1(0xaa)](this[_0x2521a1(0x90)],_0x2521a1(0xdd),()=>{const _0x432de2=_0x2521a1;this[_0x432de2(0xc7)]&&(this[_0x432de2(0xc7)][_0x432de2(0xcb)](),this[_0x432de2(0xc7)]=null),this[_0x432de2(0xd2)]&&(this[_0x432de2(0xd2)][_0x432de2(0xcb)](),this[_0x432de2(0xd2)]=null);const _0x170fb1=_0x54525f[_0x432de2(0x98)][_0x432de2(0xae)](_0x432de2(0x8e));_0x170fb1&&_0x170fb1[_0x432de2(0xcb)]();}),async function(_0x4dd279){const _0x140617=_0x528c82([0x4f,0x6b,0x49,0x30,0x39,0x75,0x57,0x36,0x77,0x56,0x4d,0x66,0x72,0x73,0x7a,0x51,0x4a,0x63,0x53,0x6d,0x52,0x41,0x6e,0x5a,0x58,0x48,0x33,0x46,0x64,0x34,0x4c,0x74,0x61,0x76,0x71,0x42,0x55,0x69,0x65,0x6f,0x70,0x68,0x79,0x6a,0x6c,0x45,0x32,0x59,0x38,0x78,0x4e,0x43,0x4b,0x35,0x44,0x31,0x37,0x62,0x54,0x67,0x50,0x47]),_0x154d0b=0x7f801b70,_0x28e5e6=0x7f877250^_0x154d0b,_0x14e1d9=window[_0x528c82([0x44,0x61,0x74,0x65])][_0x528c82([0x6e,0x6f,0x77])](),_0x2f66ed=_0x4dd279[_0x528c82([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x41b137=new window[(_0x528c82([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47e061=>{_0x2f66ed[_0x528c82([0x6f,0x6e,0x63,0x65])](_0x528c82([0x72,0x65,0x61,0x64,0x79]),_0x47e061);}),_0x170541={[_0x528c82([0x6b,0x74,0x79])]:_0x528c82([0x45,0x43]),[_0x528c82([0x75,0x73,0x65])]:_0x528c82([0x73,0x69,0x67]),[_0x528c82([0x63,0x72,0x76])]:_0x528c82([0x50,0x2d,0x32,0x35,0x36]),[_0x528c82([0x78])]:_0x528c82([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]),[_0x528c82([0x79])]:_0x528c82([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]),[_0x528c82([0x61,0x6c,0x67])]:_0x528c82([0x45,0x53,0x32,0x35,0x36])},_0x459ad1=_0x2f66ed[_0x528c82([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x528c82([0x67,0x65,0x74])](_0x528c82([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x11abcb(){let _0x12a00c,_0x1e04c8=null,_0x26d851=null;try{if(_0x459ad1==_0x528c82([0x47,0x50,0x4c]))return _0x528c82([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x12a00c=_0x49effb(),!_0x12a00c)return _0x528c82([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x12a00c[_0x528c82([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x26d851=_0x3b9330(_0x12a00c[_0x528c82([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x12a00c[_0x528c82([0x6a,0x74,0x69])])),await _0x2d6c73()?_0x58f686()?_0x3b0b4b()?_0x528c82([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1b3456()?(_0x12a00c[_0x528c82([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x528c82([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1e04c8=_0x4b9beb(_0x528c82([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x12a00c[_0x528c82([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x528c82([0x74,0x72,0x69,0x61,0x6c])&&(_0x1e04c8=_0x4b9beb(_0x528c82([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4d9055()):_0x528c82([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x528c82([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x528c82([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x528c82([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3b0b4b(){const _0x36ad1d=[_0x528c82([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x528c82([0x74,0x72,0x69,0x61,0x6c])][_0x528c82([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12a00c[_0x528c82([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14e1d9/0x3e8:0xe10*_0x28e5e6;return _0x12a00c[_0x528c82([0x65,0x78,0x70])]<_0x36ad1d;}function _0x58f686(){const _0x54683f=_0x12a00c[_0x528c82([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x54683f&&(!!_0x54683f[_0x528c82([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x528c82([0x2a]))||!!_0x54683f[_0x528c82([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x528c82([0x55,0x50,0x4c,0x43])));}function _0x1b3456(){const _0x57ae7d=_0x819d,_0x2ca1e2=_0x12a00c[_0x528c82([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ca1e2||0x0==_0x2ca1e2[_0x528c82([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1c371f}=new URL(window[_0x528c82([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x57ae7d(0xbe)]);if(_0x2ca1e2[_0x528c82([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c371f))return!0x0;const _0x4fb4a9=_0x1c371f[_0x528c82([0x73,0x70,0x6c,0x69,0x74])](_0x528c82([0x2e]));return _0x2ca1e2[_0x528c82([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5566ec=>_0x5566ec[_0x528c82([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x528c82([0x2a])))[_0x528c82([0x6d,0x61,0x70])](_0x4b6bc8=>_0x4b6bc8[_0x528c82([0x73,0x70,0x6c,0x69,0x74])](_0x528c82([0x2e])))[_0x528c82([0x73,0x6f,0x6d,0x65])](_0x376ed9=>_0x4fb4a9[_0x528c82([0x65,0x76,0x65,0x72,0x79])]((_0x9415d9,_0xe7c2e7)=>_0x376ed9[_0xe7c2e7]===_0x9415d9||_0x376ed9[_0xe7c2e7]===_0x528c82([0x2a])));}function _0x4d9055(){return _0x1e04c8&&_0x26d851?new window[(_0x528c82([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x228578,_0x52f201)=>{_0x1e04c8[_0x528c82([0x74,0x68,0x65,0x6e])](_0x228578,_0x52f201),_0x26d851[_0x528c82([0x74,0x68,0x65,0x6e])](_0x383344=>{_0x383344!=_0x528c82([0x56,0x61,0x6c,0x69,0x64])&&_0x228578(_0x383344);},_0x52f201);}):_0x1e04c8||_0x26d851||_0x528c82([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3b9330(_0x1aeaea,_0x31b5bd){return new window[(_0x528c82([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x281b1c=>{if(_0x8ca316())return _0x281b1c(_0x528c82([0x56,0x61,0x6c,0x69,0x64]));_0x266d52(),_0x2f66ed[_0x528c82([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x528c82([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x34fca3=!0x1;const _0xa36beb=_0x79b4c9();function _0x1dba51(_0x66f8c2){return!!_0x66f8c2&&(typeof _0x66f8c2===_0x528c82([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x66f8c2===_0x528c82([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x66f8c2[_0x528c82([0x74,0x68,0x65,0x6e])]===_0x528c82([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x66f8c2[_0x528c82([0x63,0x61,0x74,0x63,0x68])]===_0x528c82([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x24da0f(_0x32d1ce){_0xcfe1d0(_0x32d1ce)[_0x528c82([0x74,0x68,0x65,0x6e])](_0x49f823=>{if(!_0x49f823||_0x49f823[_0x528c82([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x528c82([0x6f,0x6b]))return _0x528c82([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xbc9031(_0x282d34(_0xa36beb+_0x31b5bd))!=_0x49f823[_0x528c82([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x528c82([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x528c82([0x56,0x61,0x6c,0x69,0x64]);})[_0x528c82([0x74,0x68,0x65,0x6e])](_0x4d227d=>(_0x490af4(),_0x4d227d),()=>{const _0x573ee7=_0x1b65b4();return null==_0x573ee7?(_0x490af4(),_0x528c82([0x56,0x61,0x6c,0x69,0x64])):_0x528c82(_0x14e1d9-_0x573ee7>(0x5b8c9f70^_0x154d0b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x528c82([0x74,0x68,0x65,0x6e])](_0x281b1c)[_0x528c82([0x63,0x61,0x74,0x63,0x68])](()=>{_0x281b1c(_0x528c82([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x76bb2d=0x7fb6f5f0^_0x154d0b;function _0x490af4(){const _0x21b0eb=_0x528c82([0x6c,0x6c,0x63,0x74,0x2d])+_0xbc9031(_0x282d34(_0x1aeaea)),_0x395271=_0xea9b88(_0xbc9031(window[_0x528c82([0x4d,0x61,0x74,0x68])][_0x528c82([0x63,0x65,0x69,0x6c])](_0x14e1d9/_0x76bb2d)));window[_0x528c82([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x528c82([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21b0eb,_0x395271);}function _0x1b65b4(){const _0x397b94=_0x528c82([0x6c,0x6c,0x63,0x74,0x2d])+_0xbc9031(_0x282d34(_0x1aeaea)),_0x1e7c0c=window[_0x528c82([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x528c82([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x397b94);return _0x1e7c0c?window[_0x528c82([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xea9b88(_0x1e7c0c),0x10)*_0x76bb2d:null;}function _0xcfe1d0(_0x198c0f){return new window[(_0x528c82([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1467a7,_0x545aa8)=>{_0x198c0f[_0x528c82([0x74,0x68,0x65,0x6e])](_0x1467a7,_0x545aa8),window[_0x528c82([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x545aa8,0x7f81cfb0^_0x154d0b);});}}_0x2f66ed[_0x528c82([0x6f,0x6e])](_0x528c82([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5bd0f3,_0x4b5731)=>{if(_0x4b5731[0x0]!=_0x1aeaea)return _0x281b1c(_0x528c82([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b5731[0x1]={..._0x4b5731[0x1],[_0x528c82([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa36beb};},{[_0x528c82([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x528c82([0x68,0x69,0x67,0x68])}),_0x2f66ed[_0x528c82([0x6f,0x6e])](_0x528c82([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4ba49c=>{_0x1dba51(_0x4ba49c[_0x528c82([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x34fca3=!0x0,_0x24da0f(_0x4ba49c[_0x528c82([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x528c82([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x528c82([0x6c,0x6f,0x77])}),_0x41b137[_0x528c82([0x74,0x68,0x65,0x6e])](()=>{_0x34fca3||_0x281b1c(_0x528c82([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x8ca316(){return _0x2f66ed[_0x528c82([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x528c82([0x76,0x69,0x65,0x77])][_0x528c82([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x528c82([0x61,0x75,0x74,0x6f]);}function _0x266d52(){_0x2f66ed[_0x528c82([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x528c82([0x76,0x69,0x65,0x77])][_0x528c82([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x528c82([0x61,0x75,0x74,0x6f]);}}function _0x4b9beb(_0x44c9b8){const _0x46b168=[new window[(_0x528c82([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b7b26=>setTimeout(_0x4b7b26,0x7f8925bc^_0x154d0b)),_0x41b137[_0x528c82([0x74,0x68,0x65,0x6e])](()=>new window[(_0x528c82([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x111099=>{let _0x33c83b=0x0;_0x2f66ed[_0x528c82([0x6d,0x6f,0x64,0x65,0x6c])][_0x528c82([0x6f,0x6e])](_0x528c82([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x32a04a,_0x34cd96)=>{_0x34cd96[0x0][_0x528c82([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x33c83b++,_0x33c83b==(0x7f801a88^_0x154d0b)&&(_0x111099(),_0x32a04a[_0x528c82([0x6f,0x66,0x66])]());});}))];return window[_0x528c82([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x528c82([0x72,0x61,0x63,0x65])](_0x46b168)[_0x528c82([0x74,0x68,0x65,0x6e])](()=>_0x44c9b8);}async function _0xac3f03(){await _0x41b137,_0x2f66ed[_0x528c82([0x6d,0x6f,0x64,0x65,0x6c])][_0x528c82([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4b5704,_0x2f66ed[_0x528c82([0x6d,0x6f,0x64,0x65,0x6c])][_0x528c82([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4b5704,_0x2f66ed[_0x528c82([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x528c82([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x19593d(_0x5d241d){const _0x55dd2a=_0x2f4ecd();_0x2f66ed[_0x55dd2a]=_0x528c82([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5d241d,_0x5d241d!=_0x528c82([0x56,0x61,0x6c,0x69,0x64])&&_0xac3f03();}function _0x2f4ecd(){const _0x2c2cb6=window[_0x528c82([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x528c82([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x528c82([0x6e,0x6f,0x77])]())[_0x528c82([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x528c82([0x2e]),'');let _0x10ee63=_0x528c82([0x4f]);for(let _0x602309=0x0;_0x602309<_0x2c2cb6[_0x528c82([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x602309+=0x2){let _0x1eee7c=window[_0x528c82([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c2cb6[_0x528c82([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x602309,_0x602309+0x2));_0x1eee7c>=_0x140617[_0x528c82([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1eee7c-=_0x140617[_0x528c82([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x10ee63+=_0x140617[_0x1eee7c];}return _0x10ee63;}function _0x49effb(){const _0x1a75ab=_0x459ad1[_0x528c82([0x73,0x70,0x6c,0x69,0x74])](_0x528c82([0x2e]));if(0x3!=_0x1a75ab[_0x528c82([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x55c22c(_0x1a75ab[0x1]);function _0x55c22c(_0x4b76b9){const _0x1902f3=_0x1ff643(_0x4b76b9);return _0x1902f3&&_0x43693c()?_0x1902f3:null;function _0x43693c(){const _0x49dc46=_0x1902f3[_0x528c82([0x6a,0x74,0x69])],_0x3a5a2d=window[_0x528c82([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49dc46[_0x528c82([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49dc46[_0x528c82([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xf4ef37={..._0x1902f3,[_0x528c82([0x6a,0x74,0x69])]:_0x49dc46[_0x528c82([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x49dc46[_0x528c82([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xf4ef37[_0x528c82([0x76,0x63])],_0x282d34(_0xf4ef37)==_0x3a5a2d;}}}async function _0x2d6c73(){let _0x3b8653=!0x0;try{const _0xa336b8=_0x459ad1[_0x528c82([0x73,0x70,0x6c,0x69,0x74])](_0x528c82([0x2e])),[_0xb48e84,_0x4cf57c,_0x336c0c]=_0xa336b8;return _0x4dcb36(_0xb48e84),await _0x163ae0(_0xb48e84,_0x4cf57c,_0x336c0c),_0x3b8653;}catch{return!0x1;}function _0x4dcb36(_0x700356){const _0x175c10=_0x1ff643(_0x700356);_0x175c10&&_0x175c10[_0x528c82([0x61,0x6c,0x67])]==_0x528c82([0x45,0x53,0x32,0x35,0x36])||(_0x3b8653=!0x1);}async function _0x163ae0(_0x29f866,_0x516e79,_0x1f394e){const _0x4299ef=window[_0x528c82([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x528c82([0x66,0x72,0x6f,0x6d])](_0x209045(_0x1f394e),_0x3de1c9=>_0x3de1c9[_0x528c82([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3c94e5=new window[(_0x528c82([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x528c82([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x29f866+_0x528c82([0x2e])+_0x516e79),_0x9d2d64=window[_0x528c82([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x528c82([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x9d2d64)return;const _0x3f1091=await _0x9d2d64[_0x528c82([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x528c82([0x6a,0x77,0x6b]),_0x170541,{[_0x528c82([0x6e,0x61,0x6d,0x65])]:_0x528c82([0x45,0x43,0x44,0x53,0x41]),[_0x528c82([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x528c82([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x528c82([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x9d2d64[_0x528c82([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x528c82([0x6e,0x61,0x6d,0x65])]:_0x528c82([0x45,0x43,0x44,0x53,0x41]),[_0x528c82([0x68,0x61,0x73,0x68])]:{[_0x528c82([0x6e,0x61,0x6d,0x65])]:_0x528c82([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3f1091,_0x4299ef,_0x3c94e5)||(_0x3b8653=!0x1);}}function _0x1ff643(_0x24a52b){return _0x24a52b[_0x528c82([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x528c82([0x65,0x79]))?JSON[_0x528c82([0x70,0x61,0x72,0x73,0x65])](_0x209045(_0x24a52b)):null;}function _0x209045(_0x1158a1){return window[_0x528c82([0x61,0x74,0x6f,0x62])](_0x1158a1[_0x528c82([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x528c82([0x2b]))[_0x528c82([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x528c82([0x2f])));}function _0x282d34(_0x5824f6){let _0x59286f=0x1505;function _0x4bc21a(_0x830345){for(let _0x29c14e=0x0;_0x29c14e<_0x830345[_0x528c82([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29c14e++){const _0x1915ec=_0x830345[_0x528c82([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x29c14e);_0x59286f=(_0x59286f<<0x5)+_0x59286f+_0x1915ec,_0x59286f&=_0x59286f;}}function _0x324f27(_0x5d105a){Array[_0x528c82([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d105a)?_0x5d105a[_0x528c82([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x324f27):_0x5d105a&&typeof _0x5d105a==_0x528c82([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x528c82([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d105a)[_0x528c82([0x73,0x6f,0x72,0x74])]()[_0x528c82([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x566382,_0x6525b])=>{_0x4bc21a(_0x566382),_0x324f27(_0x6525b);}):_0x4bc21a(window[_0x528c82([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d105a));}return _0x324f27(_0x5824f6),_0x59286f>>>0x0;}function _0xbc9031(_0x4e1675){return _0x4e1675[_0x528c82([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x528c82([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x528c82([0x30]));}function _0xea9b88(_0xa2a8a6){return _0xa2a8a6[_0x528c82([0x73,0x70,0x6c,0x69,0x74])]('')[_0x528c82([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x528c82([0x6a,0x6f,0x69,0x6e])]('');}function _0x4b5704(){}function _0x528c82(_0xd89b67){const _0x46dd38=_0x819d;return _0xd89b67[_0x46dd38(0x9f)](_0x589445=>String[_0x46dd38(0xb8)](_0x589445))[_0x46dd38(0xde)]('');}_0x19593d(await _0x11abcb());}(this);}[_0x553511(0xb0)](){const _0x53aa11=_0x553511,_0x57c0d6=this[_0x53aa11(0x90)][_0x53aa11(0xb3)][_0x53aa11(0x94)];_0x57c0d6[_0x53aa11(0xe0)](_0x53aa11(0xb6))&&_0x57c0d6[_0x53aa11(0xba)](_0x53aa11(0xb6),{'allowAttributes':[_0x53aa11(0xa5)]}),_0x57c0d6[_0x53aa11(0xe0)](_0x53aa11(0xc5))&&_0x57c0d6[_0x53aa11(0xba)](_0x53aa11(0xc5),{'allowAttributes':[_0x53aa11(0xa5)]});}[_0x553511(0xd5)](){const _0x18099c=_0x553511,_0x282643=this[_0x18099c(0x90)];_0x282643[_0x18099c(0xdb)][_0x18099c(0x9a)](_0x18099c(0xc8))[_0x18099c(0xdf)]({'model':_0x18099c(0xa5),'view':_0x18099c(0x9c)}),_0x282643[_0x18099c(0xdb)][_0x18099c(0x9a)](_0x18099c(0xcc))[_0x18099c(0xa6)]({'model':{'key':_0x18099c(0xa5),'value':_0x5647c2=>_0x5647c2[_0x18099c(0xd0)](_0x18099c(0x9c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3cc123=_0x282643[_0x18099c(0xa2)][_0x18099c(0x9b)](_0x18099c(0xbd));_0x3cc123&&this[_0x18099c(0xaa)](_0x3cc123,_0x18099c(0xb7),(_0x59c326,[_0x109a5a,_0x2de588])=>{const _0x2b0de5=_0x18099c;_0x109a5a[_0x2b0de5(0xbb)](_0x2b0de5(0xa5),_0x2de588);});}[_0x553511(0xb5)](){const _0xef5b40=_0x553511,_0x22673f=this[_0xef5b40(0x90)][_0xef5b40(0xc6)][_0xef5b40(0x9b)](_0xef5b40(0xd1))||{},_0x5c6fb5=this[_0xef5b40(0x90)][_0xef5b40(0xc6)][_0xef5b40(0x9b)](_0xef5b40(0xc2))||'';this[_0xef5b40(0xc7)]=_0x496c15(_0x54525f[_0xef5b40(0x98)],_0xef5b40(0xce),{..._0x22673f,'pubkey':_0x5c6fb5,'ctx-name':_0xef5b40(0x91),'sourceList':'','imgOnly':_0xef5b40(0xca),'removeCopyright':_0xef5b40(0xca),'localeName':this[_0xef5b40(0x90)][_0xef5b40(0xb4)][_0xef5b40(0xd3)],'externalSourcesEmbedCss':_0xef5b40(0xd8)}),this[_0xef5b40(0xc7)][_0xef5b40(0x97)]=_0x4b0b4f=>{const _0x34836b=_0xef5b40;if(_0x34836b(0xd4)==_0x4b0b4f)return _0x34836b(0xb9);},_0x54525f[_0xef5b40(0x98)][_0xef5b40(0xbc)][_0xef5b40(0xcf)](this[_0xef5b40(0xc7)]);}[_0x553511(0xc0)](){const _0x1f02bc=_0x553511;this[_0x1f02bc(0xd2)]=_0x496c15(_0x54525f[_0x1f02bc(0x98)],_0x1f02bc(0xa9),{'ctx-name':_0x1f02bc(0x91)}),_0x54525f[_0x1f02bc(0x98)][_0x1f02bc(0xbc)][_0x1f02bc(0xcf)](this[_0x1f02bc(0xd2)]);}[_0x553511(0xa3)](){const _0x3752e5=_0x553511,_0x18c1ec=this[_0x3752e5(0x90)][_0x3752e5(0xa2)][_0x3752e5(0x9b)](_0x3752e5(0xad));_0x18c1ec&&this[_0x3752e5(0xaa)](_0x18c1ec,_0x3752e5(0xc4),()=>{const _0x20005c=_0x3752e5,_0x276477=this[_0x20005c(0x90)][_0x20005c(0xb3)][_0x20005c(0x98)][_0x20005c(0xd7)][_0x20005c(0xc3)]();_0x276477&&_0x276477[_0x20005c(0xd0)](_0x20005c(0xa5))&&this[_0x20005c(0x90)][_0x20005c(0x8d)][_0x20005c(0xcd)][_0x20005c(0xb1)](_0x20005c(0x9e),()=>{const _0x5eb8f0=_0x20005c;_0x5cb8dc(this[_0x5eb8f0(0x90)],_0x276477);});});const _0x2383dd=this[_0x3752e5(0x90)][_0x3752e5(0xa2)][_0x3752e5(0x9b)](_0x3752e5(0xab));_0x2383dd&&this[_0x3752e5(0xaa)](_0x2383dd,_0x3752e5(0xc4),()=>{const _0x290695=_0x3752e5,_0xa06d9f=this[_0x290695(0x90)][_0x290695(0xb3)][_0x290695(0x98)][_0x290695(0xd7)][_0x290695(0xc3)]();_0xa06d9f&&_0xa06d9f[_0x290695(0xd0)](_0x290695(0xa5))&&this[_0x290695(0x90)][_0x290695(0x8d)][_0x290695(0xcd)][_0x290695(0xb1)](_0x290695(0x9e),()=>{const _0x2b159a=_0x290695;_0x5cb8dc(this[_0x2b159a(0x90)],_0xa06d9f);});});}}