@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250315.0 → 0.0.0-nightly-20250317.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 _0x1057e3,Command as _0x2f1928}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x448b91,IconGooglePhotos as _0x18aaf7,IconGoogleDrive as _0x495ef6,IconFacebook as _0x1174ea,IconDropbox as _0xb36b88,IconUploadcareLink as _0x2f1e82,IconUploadcareImageUpload as _0x2dd753,IconError as et,IconUploadcareImageEdit as _0x51a8a0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2a083b,MenuBarMenuListItemButtonView as _0x72bd71,View as _0xcc6c4c,FocusCycler as _0x429312,Dialog as _0x1be972,DialogViewPosition as _0x853985,SpinnerView as _0x3c26c9,IconView as at,Notification as _0x438e89}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x50c3fd,DomEmitterMixin as _0x175f54,global as _0x45d370,getAncestors as _0xfdfb15,ObservableMixin as _0x3dbf28,createElement as _0x2b2096,uid as _0x18ddef}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x4eb487}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x56a43c,info as _0x2818c0}from'@uploadcare/upload-client';import*as _0x5285e4 from'@uploadcare/file-uploader';var o=function(_0x137ca4){return _0x137ca4['Local']='local',_0x137ca4['URL']='url',_0x137ca4['Dropbox']='dropbox',_0x137ca4['GDrive']='gdrive',_0x137ca4['Facebook']='facebook',_0x137ca4['GPhotos']='gphotos',_0x137ca4['OneDrive']='onedrive',_0x137ca4;}({});function _(_0x3cc2f9,_0x38d96d,_0x5c6829){const t=_0x3cc2f9['t'],_0x445584=_0x3cc2f9['t'];switch(_0x38d96d){case o['Local']:return{'text':_0x445584('Insert'===_0x5c6829?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x445584('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x5c6829?_0x445584('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x445584('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x5c6829?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x5c6829?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x5c6829?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x5c6829?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x5c6829?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x38d96d;}}class e extends _0x1057e3{['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 _0x33f803=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x520887;for(const _0x9ce74 in _0x33f803){const _0x2548ac=_0x9ce74,_0x33cfe2=_0x33f803[_0x2548ac];if('uploadcareLicenseKeyValid'==_0x33cfe2||'uploadcareLicenseKeyInvalid'==_0x33cfe2||'uploadcareLicenseKeyExpired'==_0x33cfe2||'uploadcareLicenseKeyDomainLimit'==_0x33cfe2||'uploadcareLicenseKeyNotAllowed'==_0x33cfe2||'uploadcareLicenseKeyEvaluationLimit'==_0x33cfe2||'uploadcareLicenseKeyTrialLimit'==_0x33cfe2||'uploadcareLicenseKeyUsageLimit'==_0x33cfe2){delete _0x33f803[_0x2548ac],_0x520887=_0x33cfe2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x520887&&_0x33f803['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x520887&&_0x33f803['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x520887&&_0x33f803['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x520887&&_0x33f803['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x520887&&_0x33f803['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x520887&&_0x33f803['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x520887&&_0x33f803['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x35b8be}=this,_0x52ce4d=_0x35b8be['commands']['get']('uploadcare');if(!_0x52ce4d)return;const _0x3d7798=this['_normalizeConfigSourceList'](_0x35b8be['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5b11e4,_0x14d90d)=>{const _0x1524b4=this['_getIntegrationKey'](_0x14d90d['type']);return _0x5b11e4[_0x1524b4]||(_0x5b11e4[_0x1524b4]=[]),_0x5b11e4[_0x1524b4]['push'](_0x14d90d),_0x5b11e4;},{});_0x35b8be['plugins']['has']('ImageInsertUI')&&_0x35b8be['commands']['get']('uploadcare')&&Object['entries'](_0x3d7798)['forEach'](([_0x270d90,_0x49e0be])=>{_0x35b8be['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x270d90,'observable':()=>_0x52ce4d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x49e0be),'formViewCreator':()=>this['_createDropdownButtons'](_0x49e0be),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x49e0be),'override':'assetManager'!==_0x270d90});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x47b985){const {locale:_0x20be1b}=this['editor'];return _0x47b985['map'](_0x1b3b90=>{const _0x2cd5ce=_(_0x20be1b,_0x1b3b90,'Insert');switch(_0x1b3b90){case o['Local']:return{'icon':_0x2dd753,'type':o['Local'],..._0x2cd5ce};case o['URL']:return{'icon':_0x2f1e82,'type':o['URL'],..._0x2cd5ce};case o['Dropbox']:return{'icon':_0xb36b88,'type':o['Dropbox'],..._0x2cd5ce};case o['Facebook']:return{'icon':_0x1174ea,'type':o['Facebook'],..._0x2cd5ce};case o['GDrive']:return{'icon':_0x495ef6,'type':o['GDrive'],..._0x2cd5ce};case o['GPhotos']:return{'icon':_0x18aaf7,'type':o['GPhotos'],..._0x2cd5ce};case o['OneDrive']:return{'icon':_0x448b91,'type':o['OneDrive'],..._0x2cd5ce};}});}['_getIntegrationKey'](_0x371bc1){switch(_0x371bc1){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x32653f,_0x28c7da){const _0x5bcd4d=this['editor'],_0x1872da=new _0x32653f(_0x5bcd4d['locale']),_0xabaeb8=_0x5bcd4d['commands']['get']('uploadcare');return _0x1872da['bind']('isEnabled')['to'](_0xabaeb8),_0x1872da['on']('execute',()=>{_0xabaeb8['execute'](_0x28c7da);}),_0x1872da;}['_createToolbarButton'](_0x11000d){const {locale:_0x1c7d24}=this['editor'],_0x180677=this['editor']['plugins']['get']('ImageInsertUI'),_0xd83818=_0x11000d[0x0],_0x414a95=this['_createButton'](_0x2a083b,_0xd83818['type']);return _0x414a95['icon']=_0xd83818['icon'],_0x414a95['bind']('label')['to'](_0x180677,'isImageSelected',_0x4d656e=>_(_0x1c7d24,_0xd83818['type'],_0x4d656e?'Replace':'Insert')['text']),_0x414a95['tooltip']=!0x0,_0x414a95;}['_createDropdownButtons'](_0x15f599){const {locale:_0x56bd40}=this['editor'],_0x33cf46=this['editor']['plugins']['get']('ImageInsertUI');return _0x15f599['map'](_0x25741f=>{const _0x1d3e41=this['_createButton'](_0x2a083b,_0x25741f['type']);return _0x1d3e41['withText']=!0x0,_0x1d3e41['icon']=_0x25741f['icon'],_0x1d3e41['bind']('label')['to'](_0x33cf46,'isImageSelected',_0x1f4b62=>_(_0x56bd40,_0x25741f['type'],_0x1f4b62?'Replace':'Insert')['text']),_0x1d3e41;});}['_createMenuBarButtons'](_0x1c5b10){return _0x1c5b10['map'](_0x4d8986=>{const _0x573820=this['_createButton'](_0x72bd71,_0x4d8986['type']);return _0x573820['icon']=_0x4d8986['icon'],_0x573820['label']=_0x4d8986['shortText'],_0x573820;});}}class q extends _0xcc6c4c{['focusTracker'];['focusCycler'];constructor(_0xb047df){super(_0xb047df),this['focusTracker']=new _0x50c3fd(),this['focusCycler']=new _0x429312({'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(_0x31179d){super(_0x31179d),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(_0x5bcc90,_0x23bb8f){const _0x13adff=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1defd7=>_0x1defd7<=_0x23bb8f)['map'](_0x4425ea=>_0x5bcc90['replace'](/\/$/,'')+'/-/resize/'+_0x4425ea+'x/\x20'+_0x4425ea+'w');return{'imageFallbackUrl':_0x5bcc90,'imageSources':[{'srcset':_0x13adff['join'](',\x20'),'sizes':'(max-width:\x20'+_0x23bb8f+'px)\x20100vw,\x20'+_0x23bb8f+'px','type':'image/webp'}]};}function A(_0x416cd8,_0x3be6cf,_0x1b6a56){const _0x8f2fd=_0x416cd8['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x8f2fd?parseInt(_0x8f2fd[0x1],0xa):_0x3be6cf,'height':_0x8f2fd?parseInt(_0x8f2fd[0x2],0xa):_0x1b6a56};}function m(_0x5e99ff,_0x4ad938){const _0x45ab32=Object['create'](_0x175f54),_0x5f3ae2=_0x5e99ff['plugins']['get']('ImageUtils'),_0xa2cf=_0x5e99ff['editing']['mapper']['toViewElement'](_0x4ad938),_0x5dad6d=_0x5f3ae2['findViewImgElement'](_0xa2cf),_0x59a114=_0x5e99ff['editing']['view']['domConverter']['viewToDom'](_0x5dad6d),_0x5e16b3=_0x4ad938['getAttribute']('width'),_0x1c65ae=_0x4ad938['getAttribute']('height'),_0x4d1b5b='image-processing';_0x5e99ff['editing']['view']['change'](_0x2c3f40=>{_0x2c3f40['addClass'](_0x4d1b5b,_0xa2cf),_0x2c3f40['setStyle']('aspect-ratio',_0x5e16b3+'/'+_0x1c65ae,_0x5dad6d);}),_0x45ab32['listenTo'](_0x59a114,'load',()=>{_0x45ab32['stopListening'](_0x59a114,'load'),_0x5e99ff['editing']['view']['change'](_0x3fe27f=>{_0x3fe27f['removeClass'](_0x4d1b5b,_0xa2cf),_0x3fe27f['removeStyle']('aspect-ratio',_0x5dad6d);});});}function V(_0x4d22a0){if(Array['isArray'](_0x4d22a0)){const _0x1e1cf6=_0x4d22a0['map'](V);return _0x20cd16=>_0x1e1cf6['some'](_0x3915c0=>_0x3915c0(_0x20cd16));}if('origin'==_0x4d22a0){const _0x507143=_0x45d370['window']['location']['origin'];return _0xd26127=>new URL(_0xd26127,_0x45d370['document']['baseURI'])['origin']==_0x507143;}return'function'==typeof _0x4d22a0?_0x4d22a0:_0x4d22a0 instanceof RegExp?_0x2c708c=>!(!_0x2c708c['match'](_0x4d22a0)&&!_0x2c708c['replace'](/^https?:\/\//,'')['match'](_0x4d22a0)):()=>!0x1;}function F(_0x2153dc,_0x590fda){return _0xfdfb15(_0x2153dc['target'])['includes'](_0x590fda);}class l extends/* #__PURE__ -- @preserve */
24
- _0x3dbf28(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x50b183,_0x279ca4,_0x21bda2){super(),this['_editor']=_0x50b183,this['_editing']=_0x279ca4,this['_dialog']=_0x50b183['plugins']['get'](_0x1be972),this['_api']=_0x279ca4['ctxElement']['getAPI'](),this['_type']=_0x21bda2,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:_0x448a74,model:_0x2fabfc}=this['_editor'],_0x56e798=_0x2fabfc['document']['selection']['getSelectedElement'](),_0x30e0d8=_0x56e798&&(_0x56e798['is']('element','imageBlock')||_0x56e798['is']('element','imageInline'));this['_formView']=new S(_0x448a74),this['_dialog']['show']({'id':'uploadCare','icon':_0x2dd753,'title':_(_0x448a74,this['_type'],_0x30e0d8?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x853985['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1dd718=>!F(_0x1dd718,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5d36a9}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3e81e4=>{const _0x3a9adc=_0x5d36a9['length'];for(const _0x50f1af of _0x5d36a9){const _0x59422c=_0x50f1af===_0x5d36a9[_0x3a9adc-0x1],{cdnUrl:_0x1bc861,fileInfo:_0x578523}=_0x50f1af;if(!_0x1bc861||!_0x578523)continue;const {width:_0x18dcea,height:_0x42d795}=_0x578523['imageInfo'],_0x38bf7c=A(_0x1bc861,_0x18dcea,_0x42d795),_0x18ffc1=E(_0x1bc861,_0x38bf7c['width']),_0x297264={'id':_0x578523['uuid'],'type':'image','attributes':{'imageDimension':_0x38bf7c,..._0x18ffc1}};this['_insertAsset'](_0x297264,_0x59422c,_0x3e81e4);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xbe78d6=>{'idle'===_0xbe78d6['detail']['status']&&!_0xbe78d6['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x38e045,_0x15901e,_0x491040){const _0x2a58bd=this['_editor']['model']['document']['selection'],_0x2c645f=_0x2a58bd['getSelectedElement'](),_0x4906b1=!(!_0x2c645f||!_0x2c645f['is']('element','imageInline'));_0x491040['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x38e045,_0x4906b1),_0x15901e||_0x491040['setSelection'](_0x2a58bd['getLastPosition']());}['_insertImage'](_0x25f52f,_0x383cc8){const _0x430e39=this['_editor'],{imageDimension:_0x1d5e18,imageFallbackUrl:_0x30e9d2,imageSources:_0x5dbbcc}=_0x25f52f['attributes'];_0x430e39['execute']('insertImage',{'imageType':_0x383cc8?'imageInline':null,'source':{'uploadcareImageId':_0x25f52f['id'],'src':_0x30e9d2,'sources':_0x5dbbcc,..._0x1d5e18}});}}class n extends _0x2f1928{['_editing'];['_controller']=null;static get['requires'](){return[_0x1be972,i];}constructor(_0x26e5c7){super(_0x26e5c7),this['_editing']=_0x26e5c7['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x177ca8){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x177ca8);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x2d3991,publicKey:_0x4d8807,signal:_0x20f17e,onProgress:_0x1b7553}){return _0x56a43c(_0x2d3991,{'publicKey':_0x4d8807,'store':'auto','signal':_0x20f17e,'onProgress':_0x1b7553});}static['getInfo'](_0x54af40,_0x309944){return _0x2818c0(_0x54af40,_0x309944);}}class p extends _0x1057e3{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4eb487,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xd056a0=this['editor'];if(!!!_0xd056a0['config']['get']('uploadcare'))return;_0xd056a0['plugins']['get'](_0x4eb487)['createUploadAdapter']=_0x4baf91=>new x(_0x4baf91,_0xd056a0),_0xd056a0['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x53f2c9,{imageElement:_0x370e85,data:_0x16a4fe})=>{_0xd056a0['model']['change'](_0x134346=>{_0x134346['setAttribute']('uploadcareImageId',_0x16a4fe['uploadcareImageId'],_0x370e85);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x4f968a,_0x119d68){this['loader']=_0x4f968a,this['editor']=_0x119d68,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2a3ae2=this['editor']['config']['get']('uploadcare.pubkey'),_0x24209f=await this['loader']['file'];return C['upload']({'file':_0x24209f,'publicKey':_0x2a3ae2,'signal':this['controller']['signal'],'onProgress':_0x367ff8=>{_0x367ff8&&_0x367ff8['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x367ff8['value']);}})['then'](async _0xe45aae=>{const {imageFallbackUrl:_0x1ef5f8,imageSources:_0x462210}=E(_0xe45aae['cdnUrl'],_0xe45aae['imageInfo']['width']);return{'uploadcareImageId':_0xe45aae['uuid'],'default':_0x1ef5f8,'sources':_0x462210};})['catch'](()=>{const _0x32b289=t('Cannot\x20upload\x20file:')+('\x20'+_0x24209f['name']+'.');return Promise['reject'](_0x32b289);});}['abort'](){this['controller']['abort']();}}class i extends _0x1057e3{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x1be972];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x2c5e01=this['editor'];_0x2c5e01['commands']['add']('uploadcare',new n(_0x2c5e01));}['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 _0x3b827c=_0x45d370['document']['querySelector']('input[uploadcare-file-input]');_0x3b827c&&_0x3b827c['remove']();}),async function(_0x1e9c94){const _0x14c685=_0xb6d979([0x6e,0x4e,0x57,0x79,0x6a,0x6d,0x4d,0x4b,0x50,0x68,0x75,0x52,0x42,0x59,0x47,0x5a,0x70,0x64,0x51,0x43,0x6b,0x44,0x71,0x69,0x4a,0x4f,0x65,0x63,0x58,0x6f,0x76,0x35,0x39,0x34,0x73,0x53,0x46,0x31,0x56,0x30,0x32,0x77,0x33,0x37,0x62,0x4c,0x78,0x38,0x41,0x67,0x61,0x7a,0x54,0x74,0x45,0x36,0x6c,0x55,0x49,0x66,0x48,0x72]),_0x219e5e=0x2b8ef94d,_0x14b0e1=0x2b899b7d^_0x219e5e,_0x437ec5=window[_0xb6d979([0x44,0x61,0x74,0x65])][_0xb6d979([0x6e,0x6f,0x77])](),_0x10d438=_0x1e9c94[_0xb6d979([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x294abd=new window[(_0xb6d979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dce42=>{_0x10d438[_0xb6d979([0x6f,0x6e,0x63,0x65])](_0xb6d979([0x72,0x65,0x61,0x64,0x79]),_0x4dce42);}),_0x59640c={[_0xb6d979([0x6b,0x74,0x79])]:_0xb6d979([0x45,0x43]),[_0xb6d979([0x75,0x73,0x65])]:_0xb6d979([0x73,0x69,0x67]),[_0xb6d979([0x63,0x72,0x76])]:_0xb6d979([0x50,0x2d,0x32,0x35,0x36]),[_0xb6d979([0x78])]:_0xb6d979([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]),[_0xb6d979([0x79])]:_0xb6d979([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]),[_0xb6d979([0x61,0x6c,0x67])]:_0xb6d979([0x45,0x53,0x32,0x35,0x36])},_0x38834d=_0x10d438[_0xb6d979([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xb6d979([0x67,0x65,0x74])](_0xb6d979([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3623af(){let _0x5ca305,_0x40b9d4=null,_0x2d25c5=null;try{if(_0x38834d==_0xb6d979([0x47,0x50,0x4c]))return _0xb6d979([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5ca305=_0x19c9bf(),!_0x5ca305)return _0xb6d979([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5ca305[_0xb6d979([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d25c5=_0x5b9e8e(_0x5ca305[_0xb6d979([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5ca305[_0xb6d979([0x6a,0x74,0x69])])),await _0x4ea8f1()?_0x166343()?_0x1e323f()?_0xb6d979([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5bbfba()?(_0x5ca305[_0xb6d979([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb6d979([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x40b9d4=_0xb11a68(_0xb6d979([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5ca305[_0xb6d979([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb6d979([0x74,0x72,0x69,0x61,0x6c])&&(_0x40b9d4=_0xb11a68(_0xb6d979([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x152fcf()):_0xb6d979([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xb6d979([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xb6d979([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x25bab3){return _0xb6d979([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e323f(){const _0x1cc656=[_0xb6d979([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xb6d979([0x74,0x72,0x69,0x61,0x6c])][_0xb6d979([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ca305[_0xb6d979([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x437ec5/0x3e8:0xe10*_0x14b0e1;return _0x5ca305[_0xb6d979([0x65,0x78,0x70])]<_0x1cc656;}function _0x166343(){const _0x2f55ca=_0x5ca305[_0xb6d979([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2f55ca&&(!!_0x2f55ca[_0xb6d979([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb6d979([0x2a]))||!!_0x2f55ca[_0xb6d979([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb6d979([0x55,0x50,0x4c,0x43])));}function _0x5bbfba(){const _0x4c36f1=_0x5ca305[_0xb6d979([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4c36f1||0x0==_0x4c36f1[_0xb6d979([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x746f68}=new URL(window[_0xb6d979([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4c36f1[_0xb6d979([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x746f68))return!0x0;const _0x111e20=_0x746f68[_0xb6d979([0x73,0x70,0x6c,0x69,0x74])](_0xb6d979([0x2e]));return _0x4c36f1[_0xb6d979([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4907e2=>_0x4907e2[_0xb6d979([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb6d979([0x2a])))[_0xb6d979([0x6d,0x61,0x70])](_0x255480=>_0x255480[_0xb6d979([0x73,0x70,0x6c,0x69,0x74])](_0xb6d979([0x2e])))[_0xb6d979([0x73,0x6f,0x6d,0x65])](_0x3e5f8f=>_0x111e20[_0xb6d979([0x65,0x76,0x65,0x72,0x79])]((_0x4b64cc,_0x72f278)=>_0x3e5f8f[_0x72f278]===_0x4b64cc||_0x3e5f8f[_0x72f278]===_0xb6d979([0x2a])));}function _0x152fcf(){return _0x40b9d4&&_0x2d25c5?new window[(_0xb6d979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a086e,_0x5f3ebc)=>{_0x40b9d4[_0xb6d979([0x74,0x68,0x65,0x6e])](_0x5a086e,_0x5f3ebc),_0x2d25c5[_0xb6d979([0x74,0x68,0x65,0x6e])](_0x18705f=>{_0x18705f!=_0xb6d979([0x56,0x61,0x6c,0x69,0x64])&&_0x5a086e(_0x18705f);},_0x5f3ebc);}):_0x40b9d4||_0x2d25c5||_0xb6d979([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5b9e8e(_0x1e54c8,_0x21f4c2){return new window[(_0xb6d979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24731b=>{if(_0x42a0a4())return _0x24731b(_0xb6d979([0x56,0x61,0x6c,0x69,0x64]));_0x2ce401(),_0x10d438[_0xb6d979([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xb6d979([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1761fa=!0x1;const _0x198f32=_0x18ddef();function _0x263db9(_0x5591ea){return!!_0x5591ea&&(typeof _0x5591ea===_0xb6d979([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5591ea===_0xb6d979([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5591ea[_0xb6d979([0x74,0x68,0x65,0x6e])]===_0xb6d979([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5591ea[_0xb6d979([0x63,0x61,0x74,0x63,0x68])]===_0xb6d979([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x10528c(_0x347e9f){_0x2344ea(_0x347e9f)[_0xb6d979([0x74,0x68,0x65,0x6e])](_0x5f019e=>{if(!_0x5f019e||_0x5f019e[_0xb6d979([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xb6d979([0x6f,0x6b]))return _0xb6d979([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x13d4ed(_0x5e71f6(_0x198f32+_0x21f4c2))!=_0x5f019e[_0xb6d979([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xb6d979([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xb6d979([0x56,0x61,0x6c,0x69,0x64]);})[_0xb6d979([0x74,0x68,0x65,0x6e])](_0x47e1fd=>(_0x349e9f(),_0x47e1fd),()=>{const _0x132c66=_0x23a651();return null==_0x132c66?(_0x349e9f(),_0xb6d979([0x56,0x61,0x6c,0x69,0x64])):_0xb6d979(_0x437ec5-_0x132c66>(0xf827d4d^_0x219e5e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xb6d979([0x74,0x68,0x65,0x6e])](_0x24731b)[_0xb6d979([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24731b(_0xb6d979([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2c8c55=0x2bb817cd^_0x219e5e;function _0x349e9f(){const _0x4fcc1e=_0xb6d979([0x6c,0x6c,0x63,0x74,0x2d])+_0x13d4ed(_0x5e71f6(_0x1e54c8)),_0x1fedf3=_0xbb36ce(_0x13d4ed(window[_0xb6d979([0x4d,0x61,0x74,0x68])][_0xb6d979([0x63,0x65,0x69,0x6c])](_0x437ec5/_0x2c8c55)));window[_0xb6d979([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb6d979([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fcc1e,_0x1fedf3);}function _0x23a651(){const _0x2c6374=_0xb6d979([0x6c,0x6c,0x63,0x74,0x2d])+_0x13d4ed(_0x5e71f6(_0x1e54c8)),_0xbc8acb=window[_0xb6d979([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb6d979([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c6374);return _0xbc8acb?window[_0xb6d979([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbb36ce(_0xbc8acb),0x10)*_0x2c8c55:null;}function _0x2344ea(_0x24b84f){return new window[(_0xb6d979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5864d0,_0x3547de)=>{_0x24b84f[_0xb6d979([0x74,0x68,0x65,0x6e])](_0x5864d0,_0x3547de),window[_0xb6d979([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3547de,0x2b8f2d8d^_0x219e5e);});}}_0x10d438[_0xb6d979([0x6f,0x6e])](_0xb6d979([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x273ff5,_0x31459b)=>{if(_0x31459b[0x0]!=_0x1e54c8)return _0x24731b(_0xb6d979([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x31459b[0x1]={..._0x31459b[0x1],[_0xb6d979([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x198f32};},{[_0xb6d979([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb6d979([0x68,0x69,0x67,0x68])}),_0x10d438[_0xb6d979([0x6f,0x6e])](_0xb6d979([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc88586=>{_0x263db9(_0xc88586[_0xb6d979([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1761fa=!0x0,_0x10528c(_0xc88586[_0xb6d979([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xb6d979([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb6d979([0x6c,0x6f,0x77])}),_0x294abd[_0xb6d979([0x74,0x68,0x65,0x6e])](()=>{_0x1761fa||_0x24731b(_0xb6d979([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x42a0a4(){return _0x10d438[_0xb6d979([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb6d979([0x76,0x69,0x65,0x77])][_0xb6d979([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xb6d979([0x61,0x75,0x74,0x6f]);}function _0x2ce401(){_0x10d438[_0xb6d979([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb6d979([0x76,0x69,0x65,0x77])][_0xb6d979([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb6d979([0x61,0x75,0x74,0x6f]);}}function _0xb11a68(_0x52922d){const _0xad38ac=[new window[(_0xb6d979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d138c=>setTimeout(_0x2d138c,0x2b87c781^_0x219e5e)),_0x294abd[_0xb6d979([0x74,0x68,0x65,0x6e])](()=>new window[(_0xb6d979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21690e=>{let _0xb91c6=0x0;_0x10d438[_0xb6d979([0x6d,0x6f,0x64,0x65,0x6c])][_0xb6d979([0x6f,0x6e])](_0xb6d979([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d45d3,_0x42152d)=>{_0x42152d[0x0][_0xb6d979([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xb91c6++,_0xb91c6==(0x2b8ef8b5^_0x219e5e)&&(_0x21690e(),_0x1d45d3[_0xb6d979([0x6f,0x66,0x66])]());});}))];return window[_0xb6d979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb6d979([0x72,0x61,0x63,0x65])](_0xad38ac)[_0xb6d979([0x74,0x68,0x65,0x6e])](()=>_0x52922d);}async function _0x2bda4e(){await _0x294abd,_0x10d438[_0xb6d979([0x6d,0x6f,0x64,0x65,0x6c])][_0xb6d979([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4f3c17,_0x10d438[_0xb6d979([0x6d,0x6f,0x64,0x65,0x6c])][_0xb6d979([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4f3c17,_0x10d438[_0xb6d979([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xb6d979([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x486a60(_0x109521){const _0xabafe4=_0x419fa8();_0x10d438[_0xabafe4]=_0xb6d979([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x109521,_0x109521!=_0xb6d979([0x56,0x61,0x6c,0x69,0x64])&&_0x2bda4e();}function _0x419fa8(){const _0x3b0fd9=window[_0xb6d979([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xb6d979([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xb6d979([0x6e,0x6f,0x77])]())[_0xb6d979([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xb6d979([0x2e]),'');let _0x3abfac=_0xb6d979([0x6e]);for(let _0x3ae573=0x0;_0x3ae573<_0x3b0fd9[_0xb6d979([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ae573+=0x2){let _0x493f5e=window[_0xb6d979([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b0fd9[_0xb6d979([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ae573,_0x3ae573+0x2));_0x493f5e>=_0x14c685[_0xb6d979([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x493f5e-=_0x14c685[_0xb6d979([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3abfac+=_0x14c685[_0x493f5e];}return _0x3abfac;}function _0x19c9bf(){const _0x28b97d=_0x38834d[_0xb6d979([0x73,0x70,0x6c,0x69,0x74])](_0xb6d979([0x2e]));if(0x3!=_0x28b97d[_0xb6d979([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x226d7e(_0x28b97d[0x1]);function _0x226d7e(_0x400407){const _0x2f8b10=_0x115505(_0x400407);return _0x2f8b10&&_0x505cd9()?_0x2f8b10:null;function _0x505cd9(){const _0x529f08=_0x2f8b10[_0xb6d979([0x6a,0x74,0x69])],_0x412df0=window[_0xb6d979([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x529f08[_0xb6d979([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x529f08[_0xb6d979([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xf61f76={..._0x2f8b10,[_0xb6d979([0x6a,0x74,0x69])]:_0x529f08[_0xb6d979([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x529f08[_0xb6d979([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xf61f76[_0xb6d979([0x76,0x63])],_0x5e71f6(_0xf61f76)==_0x412df0;}}}async function _0x4ea8f1(){let _0x2a81a8=!0x0;try{const _0x291a0e=_0x38834d[_0xb6d979([0x73,0x70,0x6c,0x69,0x74])](_0xb6d979([0x2e])),[_0x10b397,_0x30e401,_0x5b7f13]=_0x291a0e;return _0x485cba(_0x10b397),await _0x11c1d4(_0x10b397,_0x30e401,_0x5b7f13),_0x2a81a8;}catch(_0x3c25d5){return!0x1;}function _0x485cba(_0x21acd1){const _0x2751f=_0x115505(_0x21acd1);_0x2751f&&_0x2751f[_0xb6d979([0x61,0x6c,0x67])]==_0xb6d979([0x45,0x53,0x32,0x35,0x36])||(_0x2a81a8=!0x1);}async function _0x11c1d4(_0x1b09e1,_0x5a6912,_0x2a5ac7){const _0x9402cb=window[_0xb6d979([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xb6d979([0x66,0x72,0x6f,0x6d])](_0x4ed932(_0x2a5ac7),_0x49eaba=>_0x49eaba[_0xb6d979([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x238b5f=new window[(_0xb6d979([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xb6d979([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1b09e1+_0xb6d979([0x2e])+_0x5a6912),_0x35fe1a=window[_0xb6d979([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xb6d979([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x35fe1a)return;const _0x208c36=await _0x35fe1a[_0xb6d979([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xb6d979([0x6a,0x77,0x6b]),_0x59640c,{[_0xb6d979([0x6e,0x61,0x6d,0x65])]:_0xb6d979([0x45,0x43,0x44,0x53,0x41]),[_0xb6d979([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xb6d979([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xb6d979([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x35fe1a[_0xb6d979([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xb6d979([0x6e,0x61,0x6d,0x65])]:_0xb6d979([0x45,0x43,0x44,0x53,0x41]),[_0xb6d979([0x68,0x61,0x73,0x68])]:{[_0xb6d979([0x6e,0x61,0x6d,0x65])]:_0xb6d979([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x208c36,_0x9402cb,_0x238b5f)||(_0x2a81a8=!0x1);}}function _0x115505(_0x52cc20){return _0x52cc20[_0xb6d979([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xb6d979([0x65,0x79]))?JSON[_0xb6d979([0x70,0x61,0x72,0x73,0x65])](_0x4ed932(_0x52cc20)):null;}function _0x4ed932(_0x2d3671){return window[_0xb6d979([0x61,0x74,0x6f,0x62])](_0x2d3671[_0xb6d979([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xb6d979([0x2b]))[_0xb6d979([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xb6d979([0x2f])));}function _0x5e71f6(_0x58cb85){let _0x645152=0x1505;function _0x4608b5(_0x5a26d7){for(let _0x26fd9a=0x0;_0x26fd9a<_0x5a26d7[_0xb6d979([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26fd9a++){const _0x5d0491=_0x5a26d7[_0xb6d979([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x26fd9a);_0x645152=(_0x645152<<0x5)+_0x645152+_0x5d0491,_0x645152&=_0x645152;}}function _0x4f5bec(_0xb7c74d){Array[_0xb6d979([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb7c74d)?_0xb7c74d[_0xb6d979([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4f5bec):_0xb7c74d&&typeof _0xb7c74d==_0xb6d979([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xb6d979([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb7c74d)[_0xb6d979([0x73,0x6f,0x72,0x74])]()[_0xb6d979([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x17af75,_0x405422])=>{_0x4608b5(_0x17af75),_0x4f5bec(_0x405422);}):_0x4608b5(window[_0xb6d979([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb7c74d));}return _0x4f5bec(_0x58cb85),_0x645152>>>0x0;}function _0x13d4ed(_0x4a0f82){return _0x4a0f82[_0xb6d979([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xb6d979([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xb6d979([0x30]));}function _0xbb36ce(_0x36128c){return _0x36128c[_0xb6d979([0x73,0x70,0x6c,0x69,0x74])]('')[_0xb6d979([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xb6d979([0x6a,0x6f,0x69,0x6e])]('');}function _0x4f3c17(){}function _0xb6d979(_0x466799){return _0x466799['map'](_0x29f8dc=>String['fromCharCode'](_0x29f8dc))['join']('');}_0x486a60(await _0x3623af());}(this);}['_initSchema'](){const _0x5f0c9b=this['editor']['model']['schema'];_0x5f0c9b['isRegistered']('imageBlock')&&_0x5f0c9b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5f0c9b['isRegistered']('imageInline')&&_0x5f0c9b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3edc0a=this['editor'];_0x3edc0a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3edc0a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x30860f=>_0x30860f['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4e11b9=_0x3edc0a['commands']['get']('replaceImageSource');_0x4e11b9&&this['listenTo'](_0x4e11b9,'cleanupImage',(_0x45bc5c,[_0x4c0f98,_0x2830f0])=>{_0x4c0f98['removeAttribute']('uploadcareImageId',_0x2830f0);});}['_initConfig'](){const _0x53f3c7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x9a4530=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2b2096(_0x45d370['document'],'uc-config',{..._0x53f3c7,'pubkey':_0x9a4530,'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']=_0x46b7c9=>{if('closeMax'==_0x46b7c9)return'#uc-icon-arrow-down';},_0x45d370['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2b2096(_0x45d370['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x45d370['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5dedc3=this['editor']['commands']['get']('insertImage');_0x5dedc3&&this['listenTo'](_0x5dedc3,'execute',()=>{const _0x49b630=this['editor']['model']['document']['selection']['getSelectedElement']();_0x49b630&&_0x49b630['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x49b630);});});const _0x16f670=this['editor']['commands']['get']('uploadcareImageReplace');_0x16f670&&this['listenTo'](_0x16f670,'execute',()=>{const _0x3bc40c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3bc40c&&_0x3bc40c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3bc40c);});});}}class u extends _0x1057e3{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48d7af){super(_0x48d7af),_0x48d7af['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x5285e4['defineComponents'](_0x5285e4);}}class ta extends _0xcc6c4c{constructor(_0x2fb798){super(_0x2fb798);const t=_0x2fb798['t'],_0x1299ff=this['bindTemplate'],_0x54f660=new _0x3c26c9();_0x54f660['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':[_0x54f660,{'text':_0x1299ff['to']('imageUploadProgress',_0x503ae7=>t('Loading\x20image...')+'\x20('+(_0x503ae7||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 _0xcc6c4c{constructor(_0xa91cf5){super(_0xa91cf5);const t=_0xa91cf5['t'];this['set']('errorType',null);const _0x4d0542=new _0x2a083b(_0xa91cf5);_0x4d0542['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4d0542['withText']=!0x0,_0x4d0542['class']='ck-button-action',_0x4d0542['on']('execute',()=>{this['fire']('retry');}),_0x4d0542['bind']('isVisible')['to'](this,'errorType',_0x52d932=>'NotFound'!==_0x52d932);const _0x9b1104=new at();_0x9b1104['content']=et,_0x9b1104['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1cec6e=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':[_0x9b1104,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1cec6e['to']('errorType',_0x380e59=>t('NotFound'!==_0x380e59?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4d0542]},{'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 _0xcc6c4c{constructor(_0x486ca3,_0x2c06b9){super(_0x486ca3);const _0x53b939=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2c06b9,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x53b939['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3558dc,_0x46856b,_0x582cdd){super(_0x3558dc),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x3558dc),this['_errorView']=new rt(_0x3558dc),this['_editingView']=new tt(_0x3558dc,_0x582cdd),this['_focusableView']=new _0xcc6c4c(_0x3558dc),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x46856b),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'],_0x47e1da=>{this['_addUploadcareImageEditorListeners'](_0x47e1da);});}),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'](_0x3330a9,_0x44fa50){const _0x2bd72a='uc-cloud-image-editor',_0xd0ed7e=_0x3330a9['querySelector'](_0x2bd72a);if(_0xd0ed7e)return _0x44fa50(_0xd0ed7e);const _0x10ecf8=new MutationObserver(_0x1cb714=>{const _0x43da15=_0x1cb714['filter'](_0x33fb3f=>_0x33fb3f['target']===_0x3330a9&&_0x33fb3f['addedNodes']['length']>0x0&&_0x33fb3f['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2bd72a);_0x43da15['length']&&(_0x10ecf8['disconnect'](),_0x44fa50(_0x43da15[0x0]['addedNodes'][0x0]));});_0x10ecf8['observe'](_0x3330a9,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5901bf){_0x5901bf['addEventListener']('apply',_0x3d84c3=>{this['fire']('apply',{'imageSrc':_0x3d84c3['detail']['cdnUrl']});}),_0x5901bf['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x3dbf28(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2ae91e,_0x537459,_0x5c5afe){super(),this['_editor']=_0x2ae91e,this['_dialog']=_0x537459,this['_imageElement']=_0x5c5afe,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 _0x5d8c1b=this['_imageElement'],_0x329a2d=_0x5d8c1b['getAttribute']('uploadcareImageId'),_0x1f9fa7=_0x5d8c1b['getAttribute']('src');if(_0x329a2d)await this['_loadImageInfo'](_0x329a2d,_0x1f9fa7);else{if(this['_imageCache']['has'](_0x1f9fa7)){const _0x5330fc=this['_imageCache']['get'](_0x1f9fa7);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5330fc['url'],this['imageDimension']=_0x5330fc['dimension'],this['imageId']=_0x5330fc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x251100}=this['_editor'],t=_0x251100['t'],_0x5cb086=new Z(_0x251100,this['imageStatus'],this['_attributes']);_0x5cb086['bind']('status')['to'](this,'imageStatus'),_0x5cb086['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5cb086['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5cb086['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5cb086,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x51a8a0,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5cb086,'position':_0x853985['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5cb086['focus']();},'onHide':()=>{_0x5cb086['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x35e6bf=>!F(_0x35e6bf,_0x5cb086['element'])}});}['_loadImageInfo'](_0x12fe8c,_0x14fcab){return C['getInfo'](_0x12fe8c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5fd591=>{const {width:_0x90438d,height:_0xfed5ae}=_0x5fd591['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x14fcab,this['imageDimension']={'width':_0x90438d,'height':_0xfed5ae},this['imageId']=_0x12fe8c;})['catch'](_0xfdef05=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xfdef05['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1fda1e,_0x43eb45){return this['_getImageAsFile'](_0x1fda1e)['then'](_0x1fbe5b=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x43eb45['signal'],'file':_0x1fbe5b,'onProgress':_0x1412ab=>{_0x1412ab&&_0x1412ab['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1412ab['value']));}}))['then'](_0x5a2c2f=>{const {width:_0x34dbc2,height:_0x39b5fc}=_0x5a2c2f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5a2c2f['cdnUrl'],this['imageDimension']={'width':_0x34dbc2,'height':_0x39b5fc},this['imageId']=_0x5a2c2f['uuid'],this['imageUploadProgress']=null;const _0x2bc2a3=_0x1fda1e['getAttribute']('src');this['_imageCache']['set'](_0x2bc2a3,{'id':_0x5a2c2f['uuid'],'url':_0x5a2c2f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4d10f3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4d10f3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5b8bd7,_0x3ea0b2){_0x5b8bd7['on']('apply',(_0x2ac4e3,_0x304c62)=>{this['_replaceImage'](_0x3ea0b2,_0x304c62['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5b8bd7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5b8bd7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2016b9,_0x45c2a6,_0x31ebde){const _0x7579d4=this['_editor'],{width:_0x206fff,height:_0x41d136}=A(_0x45c2a6,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x57992a,imageSources:_0x52e035}=E(_0x45c2a6,_0x206fff);_0x7579d4['model']['change'](_0x4aa9c5=>{if('$graveyard'===_0x2016b9['root']['rootName']){_0x7579d4['execute']('insertImage',{'imageType':_0x2016b9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2016b9['getAttributes']()),'uploadcareImageId':_0x31ebde,'src':_0x57992a,'sources':_0x52e035,'width':_0x206fff,'height':_0x41d136}});const _0x2809c2=_0x2016b9['getChildren']();_0x2016b9=_0x7579d4['model']['document']['selection']['getSelectedElement']();for(const _0x4d04fa of _0x2809c2)_0x4aa9c5['append'](_0x4aa9c5['cloneElement'](_0x4d04fa),_0x2016b9);}else _0x4aa9c5['setSelection'](_0x2016b9,'on'),_0x7579d4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2016b9['getAttributes']()),'uploadcareImageId':_0x31ebde,'src':_0x57992a,'sources':_0x52e035,'width':_0x206fff,'height':_0x41d136},_0x2016b9);_0x4aa9c5['setSelection'](_0x2016b9,'on');});}async['_getImageAsFile'](_0x2f63a5){const _0x539af4=_0x45d370['window'],_0x4f1121=_0x45d370['document']['location']['href'],_0x4f6fb8=new _0x539af4['URL'](_0x2f63a5['getAttribute']('src'),_0x4f1121);if('data:'===_0x4f6fb8['protocol']){const _0x5b0904=_0x4f6fb8['href']['split'](','),_0x8609ac=_0x5b0904[0x0]['match'](/:(.*?);/)[0x1],_0x343406=_0x8609ac['split']('/')[0x1],_0xf14d5d=_0x539af4['atob'](_0x5b0904[_0x5b0904['length']-0x1]);let _0x1f50c1=_0xf14d5d['length'];const _0x4624a9=new _0x539af4['Uint8Array'](_0x1f50c1);for(;_0x1f50c1--;)_0x4624a9[_0x1f50c1]=_0xf14d5d['charCodeAt'](_0x1f50c1);return new _0x539af4['File']([_0x4624a9],'image.'+_0x343406,{'type':_0x8609ac});}const _0x4cf81=_0x4f6fb8['href']['split']('/'),_0x59c67c=_0x4cf81[_0x4cf81['length']-0x1],_0x2f45f9=_0x59c67c['split']('.')[0x1];return _0x539af4['fetch'](_0x4f6fb8['href'])['then'](_0x400e09=>_0x400e09['clone']()['blob']())['then'](_0x50d3c7=>new _0x539af4['File']([_0x50d3c7],_0x59c67c,{'type':'image/'+_0x2f45f9}));}}class J extends _0x2f1928{['imageEditController'];static get['requires'](){return[_0x1be972];}['_isEditable'];constructor(_0x3bd836){super(_0x3bd836),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2aa3fb){const _0x5e6f87=V(_0x2aa3fb);return _0x35117f=>!(!_0x35117f||!_0x35117f['is']('element','imageBlock')&&!_0x35117f['is']('element','imageInline'))&&(!!_0x35117f['hasAttribute']('uploadcareImageId')||!!_0x35117f['hasAttribute']('src')&&_0x5e6f87(_0x35117f['getAttribute']('src')));}(_0x3bd836['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x6c239f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x6c239f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2757e8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2757e8&&(_0x2757e8['is']('element','imageBlock')||_0x2757e8['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x1be972),_0x2757e8),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x2f1928{['refresh'](){const _0x1ee017=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1ee017&&(_0x1ee017['is']('element','imageBlock')||_0x1ee017['is']('element','imageInline')));}['execute'](_0x157e75){const _0x5e9acd=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x41cfd8=>{_0x41cfd8['setAttributes'](_0x157e75,_0x5e9acd),_0x41cfd8['removeAttribute']('srcset',_0x5e9acd),_0x41cfd8['removeAttribute']('sizes',_0x5e9acd);});}}class g extends _0x1057e3{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x438e89,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x250898}=this;_0x250898['commands']['add']('uploadcareImageEdit',new J(_0x250898)),_0x250898['commands']['add']('uploadcareImageReplace',new O(_0x250898));}}class j extends _0x1057e3{['_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 _0x22779a=this['editor'];_0x22779a['ui']['componentFactory']['add']('uploadcareImageEdit',_0x13af8d=>{const _0x1c6da9=_0x22779a['commands']['get']('uploadcareImageEdit'),_0x1eefbc=new _0x2a083b(_0x13af8d),t=_0x13af8d['t'];return _0x1eefbc['set']({'icon':_0x51a8a0,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1eefbc['bind']('isEnabled')['to'](_0x1c6da9),_0x1eefbc['bind']('isOn')['to'](_0x1c6da9,'isActive'),this['listenTo'](_0x1eefbc,'execute',()=>{_0x22779a['execute']('uploadcareImageEdit'),_0x22779a['editing']['view']['focus']();}),_0x1eefbc;}),this['_initConfig']();}['_initConfig'](){const _0x1472ed=_0x2b2096(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1472ed),this['listenTo'](this['editor'],'destroy',()=>{_0x1472ed['remove']();});}}class P extends _0x1057e3{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 _0x4b63c5,Command as _0x308931}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x25782e,IconGooglePhotos as _0x2f3d19,IconGoogleDrive as _0x1914bc,IconFacebook as _0x2ec2ea,IconDropbox as _0x5ade91,IconUploadcareLink as _0x2fd278,IconUploadcareImageUpload as _0xedadc0,IconError as et,IconUploadcareImageEdit as _0x1836d9}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x179972,MenuBarMenuListItemButtonView as _0x1171dc,View as _0x1d1dd6,FocusCycler as _0x1523d5,Dialog as _0x7d6eed,DialogViewPosition as _0x1f13c1,SpinnerView as _0x17b935,IconView as at,Notification as _0x553e93}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x43a31b,DomEmitterMixin as _0x1beb6e,global as _0x3980ff,getAncestors as _0x44c058,ObservableMixin as _0x3f5276,createElement as _0x39dcbe,uid as _0x23d685}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xc66eb8}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x59da8d,info as _0x11f668}from'@uploadcare/upload-client';import*as _0x124de4 from'@uploadcare/file-uploader';var o=function(_0x5b10ca){return _0x5b10ca['Local']='local',_0x5b10ca['URL']='url',_0x5b10ca['Dropbox']='dropbox',_0x5b10ca['GDrive']='gdrive',_0x5b10ca['Facebook']='facebook',_0x5b10ca['GPhotos']='gphotos',_0x5b10ca['OneDrive']='onedrive',_0x5b10ca;}({});function _(_0x361a0d,_0x112ade,_0x5ae999){const t=_0x361a0d['t'],_0x47dbef=_0x361a0d['t'];switch(_0x112ade){case o['Local']:return{'text':_0x47dbef('Insert'===_0x5ae999?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x47dbef('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x5ae999?_0x47dbef('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x47dbef('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x5ae999?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x5ae999?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x5ae999?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x5ae999?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x5ae999?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x112ade;}}class e extends _0x4b63c5{['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 _0x21e953=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f8528;for(const _0x1d7f4f in _0x21e953){const _0x4a5a34=_0x1d7f4f,_0x53d475=_0x21e953[_0x4a5a34];if('uploadcareLicenseKeyValid'==_0x53d475||'uploadcareLicenseKeyInvalid'==_0x53d475||'uploadcareLicenseKeyExpired'==_0x53d475||'uploadcareLicenseKeyDomainLimit'==_0x53d475||'uploadcareLicenseKeyNotAllowed'==_0x53d475||'uploadcareLicenseKeyEvaluationLimit'==_0x53d475||'uploadcareLicenseKeyTrialLimit'==_0x53d475||'uploadcareLicenseKeyUsageLimit'==_0x53d475){delete _0x21e953[_0x4a5a34],_0x2f8528=_0x53d475,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2f8528&&_0x21e953['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2f8528&&_0x21e953['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2f8528&&_0x21e953['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2f8528&&_0x21e953['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2f8528&&_0x21e953['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2f8528&&_0x21e953['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2f8528&&_0x21e953['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xe6171c}=this,_0x364cd8=_0xe6171c['commands']['get']('uploadcare');if(!_0x364cd8)return;const _0x516222=this['_normalizeConfigSourceList'](_0xe6171c['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x49efad,_0x236071)=>{const _0x1cd757=this['_getIntegrationKey'](_0x236071['type']);return _0x49efad[_0x1cd757]||(_0x49efad[_0x1cd757]=[]),_0x49efad[_0x1cd757]['push'](_0x236071),_0x49efad;},{});_0xe6171c['plugins']['has']('ImageInsertUI')&&_0xe6171c['commands']['get']('uploadcare')&&Object['entries'](_0x516222)['forEach'](([_0x308e58,_0x2f5594])=>{_0xe6171c['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x308e58,'observable':()=>_0x364cd8,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2f5594),'formViewCreator':()=>this['_createDropdownButtons'](_0x2f5594),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2f5594),'override':'assetManager'!==_0x308e58});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5266ee){const {locale:_0x4ea000}=this['editor'];return _0x5266ee['map'](_0x3b75e8=>{const _0xdd0304=_(_0x4ea000,_0x3b75e8,'Insert');switch(_0x3b75e8){case o['Local']:return{'icon':_0xedadc0,'type':o['Local'],..._0xdd0304};case o['URL']:return{'icon':_0x2fd278,'type':o['URL'],..._0xdd0304};case o['Dropbox']:return{'icon':_0x5ade91,'type':o['Dropbox'],..._0xdd0304};case o['Facebook']:return{'icon':_0x2ec2ea,'type':o['Facebook'],..._0xdd0304};case o['GDrive']:return{'icon':_0x1914bc,'type':o['GDrive'],..._0xdd0304};case o['GPhotos']:return{'icon':_0x2f3d19,'type':o['GPhotos'],..._0xdd0304};case o['OneDrive']:return{'icon':_0x25782e,'type':o['OneDrive'],..._0xdd0304};}});}['_getIntegrationKey'](_0x24bb3b){switch(_0x24bb3b){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x46bd4d,_0x7f06f9){const _0xd84cab=this['editor'],_0x17d7ff=new _0x46bd4d(_0xd84cab['locale']),_0x324f58=_0xd84cab['commands']['get']('uploadcare');return _0x17d7ff['bind']('isEnabled')['to'](_0x324f58),_0x17d7ff['on']('execute',()=>{_0x324f58['execute'](_0x7f06f9);}),_0x17d7ff;}['_createToolbarButton'](_0x2dda5c){const {locale:_0x3c5950}=this['editor'],_0x175619=this['editor']['plugins']['get']('ImageInsertUI'),_0x2cef3d=_0x2dda5c[0x0],_0x4bb34e=this['_createButton'](_0x179972,_0x2cef3d['type']);return _0x4bb34e['icon']=_0x2cef3d['icon'],_0x4bb34e['bind']('label')['to'](_0x175619,'isImageSelected',_0x277e71=>_(_0x3c5950,_0x2cef3d['type'],_0x277e71?'Replace':'Insert')['text']),_0x4bb34e['tooltip']=!0x0,_0x4bb34e;}['_createDropdownButtons'](_0x18d64a){const {locale:_0x3cadab}=this['editor'],_0x41b1a1=this['editor']['plugins']['get']('ImageInsertUI');return _0x18d64a['map'](_0x25f2b4=>{const _0x49b6c9=this['_createButton'](_0x179972,_0x25f2b4['type']);return _0x49b6c9['withText']=!0x0,_0x49b6c9['icon']=_0x25f2b4['icon'],_0x49b6c9['bind']('label')['to'](_0x41b1a1,'isImageSelected',_0x1b3a25=>_(_0x3cadab,_0x25f2b4['type'],_0x1b3a25?'Replace':'Insert')['text']),_0x49b6c9;});}['_createMenuBarButtons'](_0x564b5e){return _0x564b5e['map'](_0x3d57a9=>{const _0x51f6f9=this['_createButton'](_0x1171dc,_0x3d57a9['type']);return _0x51f6f9['icon']=_0x3d57a9['icon'],_0x51f6f9['label']=_0x3d57a9['shortText'],_0x51f6f9;});}}class G extends _0x1d1dd6{['focusTracker'];['focusCycler'];constructor(_0x3b7710){super(_0x3b7710),this['focusTracker']=new _0x43a31b(),this['focusCycler']=new _0x1523d5({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends G{constructor(_0xc35ee7){super(_0xc35ee7),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(_0x558828,_0x33638b){const _0x91e122=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x45b60b=>_0x45b60b<=_0x33638b)['map'](_0x472a8c=>_0x558828['replace'](/\/$/,'')+'/-/resize/'+_0x472a8c+'x/\x20'+_0x472a8c+'w');return{'imageFallbackUrl':_0x558828,'imageSources':[{'srcset':_0x91e122['join'](',\x20'),'sizes':'(max-width:\x20'+_0x33638b+'px)\x20100vw,\x20'+_0x33638b+'px','type':'image/webp'}]};}function F(_0x54ffe8,_0x4481b9,_0x250fee){const _0x457caf=_0x54ffe8['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x457caf?parseInt(_0x457caf[0x1],0xa):_0x4481b9,'height':_0x457caf?parseInt(_0x457caf[0x2],0xa):_0x250fee};}function m(_0x3982b9,_0x526281){const _0xab43cc=Object['create'](_0x1beb6e),_0x5cea00=_0x3982b9['plugins']['get']('ImageUtils'),_0x55bf06=_0x3982b9['editing']['mapper']['toViewElement'](_0x526281),_0x5389ae=_0x5cea00['findViewImgElement'](_0x55bf06),_0x2de208=_0x3982b9['editing']['view']['domConverter']['viewToDom'](_0x5389ae),_0xda5f8e=_0x526281['getAttribute']('width'),_0x40b72d=_0x526281['getAttribute']('height'),_0x49f5c6='image-processing';_0x3982b9['editing']['view']['change'](_0x3cdbe1=>{_0x3cdbe1['addClass'](_0x49f5c6,_0x55bf06),_0x3cdbe1['setStyle']('aspect-ratio',_0xda5f8e+'/'+_0x40b72d,_0x5389ae);}),_0xab43cc['listenTo'](_0x2de208,'load',()=>{_0xab43cc['stopListening'](_0x2de208,'load'),_0x3982b9['editing']['view']['change'](_0x3a83e6=>{_0x3a83e6['removeClass'](_0x49f5c6,_0x55bf06),_0x3a83e6['removeStyle']('aspect-ratio',_0x5389ae);});});}function V(_0x5430e6){if(Array['isArray'](_0x5430e6)){const _0x1ff28f=_0x5430e6['map'](V);return _0x37157e=>_0x1ff28f['some'](_0x34f6ad=>_0x34f6ad(_0x37157e));}if('origin'==_0x5430e6){const _0x4165dc=_0x3980ff['window']['location']['origin'];return _0x1bc966=>new URL(_0x1bc966,_0x3980ff['document']['baseURI'])['origin']==_0x4165dc;}return'function'==typeof _0x5430e6?_0x5430e6:_0x5430e6 instanceof RegExp?_0x573462=>!(!_0x573462['match'](_0x5430e6)&&!_0x573462['replace'](/^https?:\/\//,'')['match'](_0x5430e6)):()=>!0x1;}function R(_0x16b2bb,_0x44d19f){return _0x44c058(_0x16b2bb['target'])['includes'](_0x44d19f);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x3f5276(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x25cb94,_0x57b0b0,_0x261534){super(),this['_editor']=_0x25cb94,this['_editing']=_0x57b0b0,this['_dialog']=_0x25cb94['plugins']['get'](_0x7d6eed),this['_api']=_0x57b0b0['ctxElement']['getAPI'](),this['_type']=_0x261534,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:_0x92815a,model:_0x3caa52}=this['_editor'],_0x402c5b=_0x3caa52['document']['selection']['getSelectedElement'](),_0x14f81f=_0x402c5b&&(_0x402c5b['is']('element','imageBlock')||_0x402c5b['is']('element','imageInline'));this['_formView']=new S(_0x92815a),this['_dialog']['show']({'id':'uploadCare','icon':_0xedadc0,'title':_(_0x92815a,this['_type'],_0x14f81f?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1f13c1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3e4b66=>!R(_0x3e4b66,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1526c7}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1f754a=>{const _0x4817ea=_0x1526c7['length'];for(const _0x2971ee of _0x1526c7){const _0x506443=_0x2971ee===_0x1526c7[_0x4817ea-0x1],{cdnUrl:_0x176929,fileInfo:_0x4e672f}=_0x2971ee;if(!_0x176929||!_0x4e672f)continue;const {width:_0x4960dc,height:_0x5cb1f5}=_0x4e672f['imageInfo'],_0x33aab0=F(_0x176929,_0x4960dc,_0x5cb1f5),_0x1c7136=E(_0x176929,_0x33aab0['width']),_0x49b607={'id':_0x4e672f['uuid'],'type':'image','attributes':{'imageDimension':_0x33aab0,..._0x1c7136}};this['_insertAsset'](_0x49b607,_0x506443,_0x1f754a);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x416c92=>{'idle'===_0x416c92['detail']['status']&&!_0x416c92['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x50f05d,_0xf22048,_0x555e1c){const _0x28ccf8=this['_editor']['model']['document']['selection'],_0x3c7c77=_0x28ccf8['getSelectedElement'](),_0x55d43b=!(!_0x3c7c77||!_0x3c7c77['is']('element','imageInline'));_0x555e1c['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x50f05d,_0x55d43b),_0xf22048||_0x555e1c['setSelection'](_0x28ccf8['getLastPosition']());}['_insertImage'](_0x18c362,_0x458278){const _0x1c9b70=this['_editor'],{imageDimension:_0x2139e1,imageFallbackUrl:_0x2ecdab,imageSources:_0x4758e4}=_0x18c362['attributes'];_0x1c9b70['execute']('insertImage',{'imageType':_0x458278?'imageInline':null,'source':{'uploadcareImageId':_0x18c362['id'],'src':_0x2ecdab,'sources':_0x4758e4,..._0x2139e1}});}}class n extends _0x308931{['_editing'];['_controller']=null;static get['requires'](){return[_0x7d6eed,i];}constructor(_0x117a0d){super(_0x117a0d),this['_editing']=_0x117a0d['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x39f36e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x39f36e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x35ce1b,publicKey:_0x326eaa,signal:_0x3944f3,onProgress:_0x1eea2f}){return _0x59da8d(_0x35ce1b,{'publicKey':_0x326eaa,'store':'auto','signal':_0x3944f3,'onProgress':_0x1eea2f});}static['getInfo'](_0x317a21,_0x5011ea){return _0x11f668(_0x317a21,_0x5011ea);}}class p extends _0x4b63c5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xc66eb8,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1914e4=this['editor'];if(!!!_0x1914e4['config']['get']('uploadcare'))return;_0x1914e4['plugins']['get'](_0xc66eb8)['createUploadAdapter']=_0x867bbf=>new x(_0x867bbf,_0x1914e4),_0x1914e4['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5dd68e,{imageElement:_0x9ac47e,data:_0x5d99de})=>{_0x1914e4['model']['change'](_0x353f2c=>{_0x353f2c['setAttribute']('uploadcareImageId',_0x5d99de['uploadcareImageId'],_0x9ac47e);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x1df0da,_0x9d8148){this['loader']=_0x1df0da,this['editor']=_0x9d8148,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x460908=this['editor']['config']['get']('uploadcare.pubkey'),_0x33daa1=await this['loader']['file'];return C['upload']({'file':_0x33daa1,'publicKey':_0x460908,'signal':this['controller']['signal'],'onProgress':_0x56a7a3=>{_0x56a7a3&&_0x56a7a3['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x56a7a3['value']);}})['then'](async _0x11a002=>{const {imageFallbackUrl:_0x50f062,imageSources:_0x2541c0}=E(_0x11a002['cdnUrl'],_0x11a002['imageInfo']['width']);return{'uploadcareImageId':_0x11a002['uuid'],'default':_0x50f062,'sources':_0x2541c0};})['catch'](()=>{const _0xf34408=t('Cannot\x20upload\x20file:')+('\x20'+_0x33daa1['name']+'.');return Promise['reject'](_0xf34408);});}['abort'](){this['controller']['abort']();}}class i extends _0x4b63c5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x7d6eed];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x8459e8=this['editor'];_0x8459e8['commands']['add']('uploadcare',new n(_0x8459e8));}['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 _0xad213e=_0x3980ff['document']['querySelector']('input[uploadcare-file-input]');_0xad213e&&_0xad213e['remove']();}),async function(_0x571602){const _0x502c54=_0x378fe([0x61,0x76,0x38,0x51,0x70,0x79,0x64,0x6e,0x6a,0x34,0x59,0x6b,0x54,0x31,0x47,0x4e,0x39,0x78,0x5a,0x58,0x63,0x4a,0x55,0x52,0x42,0x4d,0x30,0x35,0x72,0x4f,0x69,0x71,0x45,0x77,0x37,0x73,0x6c,0x33,0x75,0x36,0x48,0x62,0x6f,0x57,0x44,0x74,0x67,0x49,0x56,0x32,0x53,0x43,0x41,0x4c,0x46,0x4b,0x7a,0x68,0x50,0x6d,0x65,0x66]),_0x7d9fbe=0x1853b237,_0x42f443=0x1854d057^_0x7d9fbe,_0x554f52=window[_0x378fe([0x44,0x61,0x74,0x65])][_0x378fe([0x6e,0x6f,0x77])](),_0x5224ef=_0x571602[_0x378fe([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xeaa3e=new window[(_0x378fe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b9183=>{_0x5224ef[_0x378fe([0x6f,0x6e,0x63,0x65])](_0x378fe([0x72,0x65,0x61,0x64,0x79]),_0x1b9183);}),_0x4c98ce={[_0x378fe([0x6b,0x74,0x79])]:_0x378fe([0x45,0x43]),[_0x378fe([0x75,0x73,0x65])]:_0x378fe([0x73,0x69,0x67]),[_0x378fe([0x63,0x72,0x76])]:_0x378fe([0x50,0x2d,0x32,0x35,0x36]),[_0x378fe([0x78])]:_0x378fe([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]),[_0x378fe([0x79])]:_0x378fe([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]),[_0x378fe([0x61,0x6c,0x67])]:_0x378fe([0x45,0x53,0x32,0x35,0x36])},_0x9b935e=_0x5224ef[_0x378fe([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x378fe([0x67,0x65,0x74])](_0x378fe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x426d67(){let _0x3ad5a3,_0x9d557e=null,_0x1d2504=null;try{if(_0x9b935e==_0x378fe([0x47,0x50,0x4c]))return _0x378fe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ad5a3=_0x2858e6(),!_0x3ad5a3)return _0x378fe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ad5a3[_0x378fe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d2504=_0x2778a0(_0x3ad5a3[_0x378fe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ad5a3[_0x378fe([0x6a,0x74,0x69])])),await _0x34f060()?_0x2c885d()?_0x263e86()?_0x378fe([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2cfc71()?(_0x3ad5a3[_0x378fe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x378fe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x9d557e=_0x218511(_0x378fe([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ad5a3[_0x378fe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x378fe([0x74,0x72,0x69,0x61,0x6c])&&(_0x9d557e=_0x218511(_0x378fe([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c05fb()):_0x378fe([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x378fe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x378fe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4a396e){return _0x378fe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x263e86(){const _0x390886=[_0x378fe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x378fe([0x74,0x72,0x69,0x61,0x6c])][_0x378fe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ad5a3[_0x378fe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x554f52/0x3e8:0xe10*_0x42f443;return _0x3ad5a3[_0x378fe([0x65,0x78,0x70])]<_0x390886;}function _0x2c885d(){const _0x52e90b=_0x3ad5a3[_0x378fe([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x52e90b&&(!!_0x52e90b[_0x378fe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x378fe([0x2a]))||!!_0x52e90b[_0x378fe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x378fe([0x55,0x50,0x4c,0x43])));}function _0x2cfc71(){const _0x30fd15=_0x3ad5a3[_0x378fe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x30fd15||0x0==_0x30fd15[_0x378fe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x27334c}=new URL(window[_0x378fe([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x30fd15[_0x378fe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27334c))return!0x0;const _0x582339=_0x27334c[_0x378fe([0x73,0x70,0x6c,0x69,0x74])](_0x378fe([0x2e]));return _0x30fd15[_0x378fe([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ba2e0=>_0x1ba2e0[_0x378fe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x378fe([0x2a])))[_0x378fe([0x6d,0x61,0x70])](_0x4eacda=>_0x4eacda[_0x378fe([0x73,0x70,0x6c,0x69,0x74])](_0x378fe([0x2e])))[_0x378fe([0x73,0x6f,0x6d,0x65])](_0x32d16f=>_0x582339[_0x378fe([0x65,0x76,0x65,0x72,0x79])]((_0x2618b9,_0x11e9d4)=>_0x32d16f[_0x11e9d4]===_0x2618b9||_0x32d16f[_0x11e9d4]===_0x378fe([0x2a])));}function _0x4c05fb(){return _0x9d557e&&_0x1d2504?new window[(_0x378fe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3393aa,_0x2c0124)=>{_0x9d557e[_0x378fe([0x74,0x68,0x65,0x6e])](_0x3393aa,_0x2c0124),_0x1d2504[_0x378fe([0x74,0x68,0x65,0x6e])](_0x111f9c=>{_0x111f9c!=_0x378fe([0x56,0x61,0x6c,0x69,0x64])&&_0x3393aa(_0x111f9c);},_0x2c0124);}):_0x9d557e||_0x1d2504||_0x378fe([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2778a0(_0x2a581d,_0xcfcaa1){return new window[(_0x378fe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xadfcb1=>{if(_0x448964())return _0xadfcb1(_0x378fe([0x56,0x61,0x6c,0x69,0x64]));_0x232188(),_0x5224ef[_0x378fe([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x378fe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2764bb=!0x1;const _0x25a267=_0x23d685();function _0x4969c5(_0x1f61a2){return!!_0x1f61a2&&(typeof _0x1f61a2===_0x378fe([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1f61a2===_0x378fe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1f61a2[_0x378fe([0x74,0x68,0x65,0x6e])]===_0x378fe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1f61a2[_0x378fe([0x63,0x61,0x74,0x63,0x68])]===_0x378fe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2dc59f(_0x31d6f0){_0x2564af(_0x31d6f0)[_0x378fe([0x74,0x68,0x65,0x6e])](_0x50722b=>{if(!_0x50722b||_0x50722b[_0x378fe([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x378fe([0x6f,0x6b]))return _0x378fe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x125ca8(_0x3e6130(_0x25a267+_0xcfcaa1))!=_0x50722b[_0x378fe([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x378fe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x378fe([0x56,0x61,0x6c,0x69,0x64]);})[_0x378fe([0x74,0x68,0x65,0x6e])](_0xc280ee=>(_0x5762cb(),_0xc280ee),()=>{const _0xc9db2f=_0x5d5aee();return null==_0xc9db2f?(_0x5762cb(),_0x378fe([0x56,0x61,0x6c,0x69,0x64])):_0x378fe(_0x554f52-_0xc9db2f>(0x3c5f3637^_0x7d9fbe)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x378fe([0x74,0x68,0x65,0x6e])](_0xadfcb1)[_0x378fe([0x63,0x61,0x74,0x63,0x68])](()=>{_0xadfcb1(_0x378fe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24f773=0x18655cb7^_0x7d9fbe;function _0x5762cb(){const _0x581264=_0x378fe([0x6c,0x6c,0x63,0x74,0x2d])+_0x125ca8(_0x3e6130(_0x2a581d)),_0x38c304=_0xe065dd(_0x125ca8(window[_0x378fe([0x4d,0x61,0x74,0x68])][_0x378fe([0x63,0x65,0x69,0x6c])](_0x554f52/_0x24f773)));window[_0x378fe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x378fe([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x581264,_0x38c304);}function _0x5d5aee(){const _0x3b501f=_0x378fe([0x6c,0x6c,0x63,0x74,0x2d])+_0x125ca8(_0x3e6130(_0x2a581d)),_0x11d611=window[_0x378fe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x378fe([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b501f);return _0x11d611?window[_0x378fe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe065dd(_0x11d611),0x10)*_0x24f773:null;}function _0x2564af(_0x3f5f0d){return new window[(_0x378fe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x422c68,_0x19c25d)=>{_0x3f5f0d[_0x378fe([0x74,0x68,0x65,0x6e])](_0x422c68,_0x19c25d),window[_0x378fe([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x19c25d,0x185266f7^_0x7d9fbe);});}}_0x5224ef[_0x378fe([0x6f,0x6e])](_0x378fe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x273bf5,_0x41cf4f)=>{if(_0x41cf4f[0x0]!=_0x2a581d)return _0xadfcb1(_0x378fe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x41cf4f[0x1]={..._0x41cf4f[0x1],[_0x378fe([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x25a267};},{[_0x378fe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x378fe([0x68,0x69,0x67,0x68])}),_0x5224ef[_0x378fe([0x6f,0x6e])](_0x378fe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x80a10c=>{_0x4969c5(_0x80a10c[_0x378fe([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2764bb=!0x0,_0x2dc59f(_0x80a10c[_0x378fe([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x378fe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x378fe([0x6c,0x6f,0x77])}),_0xeaa3e[_0x378fe([0x74,0x68,0x65,0x6e])](()=>{_0x2764bb||_0xadfcb1(_0x378fe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x448964(){return _0x5224ef[_0x378fe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x378fe([0x76,0x69,0x65,0x77])][_0x378fe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x378fe([0x61,0x75,0x74,0x6f]);}function _0x232188(){_0x5224ef[_0x378fe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x378fe([0x76,0x69,0x65,0x77])][_0x378fe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x378fe([0x61,0x75,0x74,0x6f]);}}function _0x218511(_0x149598){const _0x1dc38a=[new window[(_0x378fe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53b91b=>setTimeout(_0x53b91b,0x185a8cfb^_0x7d9fbe)),_0xeaa3e[_0x378fe([0x74,0x68,0x65,0x6e])](()=>new window[(_0x378fe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1239b6=>{let _0x4ec6d4=0x0;_0x5224ef[_0x378fe([0x6d,0x6f,0x64,0x65,0x6c])][_0x378fe([0x6f,0x6e])](_0x378fe([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x22a2f5,_0x358bf7)=>{_0x358bf7[0x0][_0x378fe([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4ec6d4++,_0x4ec6d4==(0x1853b3cf^_0x7d9fbe)&&(_0x1239b6(),_0x22a2f5[_0x378fe([0x6f,0x66,0x66])]());});}))];return window[_0x378fe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x378fe([0x72,0x61,0x63,0x65])](_0x1dc38a)[_0x378fe([0x74,0x68,0x65,0x6e])](()=>_0x149598);}async function _0x3f5b2d(){await _0xeaa3e,_0x5224ef[_0x378fe([0x6d,0x6f,0x64,0x65,0x6c])][_0x378fe([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x504886,_0x5224ef[_0x378fe([0x6d,0x6f,0x64,0x65,0x6c])][_0x378fe([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x504886,_0x5224ef[_0x378fe([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x378fe([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa5c950(_0x1dc239){const _0x1c6fd2=_0x1d3e38();_0x5224ef[_0x1c6fd2]=_0x378fe([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1dc239,_0x1dc239!=_0x378fe([0x56,0x61,0x6c,0x69,0x64])&&_0x3f5b2d();}function _0x1d3e38(){const _0xbfc3de=window[_0x378fe([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x378fe([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x378fe([0x6e,0x6f,0x77])]())[_0x378fe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x378fe([0x2e]),'');let _0x5f4bbf=_0x378fe([0x61]);for(let _0x18bb94=0x0;_0x18bb94<_0xbfc3de[_0x378fe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18bb94+=0x2){let _0x553471=window[_0x378fe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbfc3de[_0x378fe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18bb94,_0x18bb94+0x2));_0x553471>=_0x502c54[_0x378fe([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x553471-=_0x502c54[_0x378fe([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5f4bbf+=_0x502c54[_0x553471];}return _0x5f4bbf;}function _0x2858e6(){const _0x1b313f=_0x9b935e[_0x378fe([0x73,0x70,0x6c,0x69,0x74])](_0x378fe([0x2e]));if(0x3!=_0x1b313f[_0x378fe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x322867(_0x1b313f[0x1]);function _0x322867(_0x442ae1){const _0x5412ff=_0x55362c(_0x442ae1);return _0x5412ff&&_0x29f5d8()?_0x5412ff:null;function _0x29f5d8(){const _0xb57511=_0x5412ff[_0x378fe([0x6a,0x74,0x69])],_0x26935c=window[_0x378fe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb57511[_0x378fe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb57511[_0x378fe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2c92c7={..._0x5412ff,[_0x378fe([0x6a,0x74,0x69])]:_0xb57511[_0x378fe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xb57511[_0x378fe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2c92c7[_0x378fe([0x76,0x63])],_0x3e6130(_0x2c92c7)==_0x26935c;}}}async function _0x34f060(){let _0x17ce67=!0x0;try{const _0x9f84de=_0x9b935e[_0x378fe([0x73,0x70,0x6c,0x69,0x74])](_0x378fe([0x2e])),[_0x4db850,_0x3f8e10,_0x53a60f]=_0x9f84de;return _0x5bac73(_0x4db850),await _0x5c7dd6(_0x4db850,_0x3f8e10,_0x53a60f),_0x17ce67;}catch(_0x416a3e){return!0x1;}function _0x5bac73(_0x490932){const _0x2a3363=_0x55362c(_0x490932);_0x2a3363&&_0x2a3363[_0x378fe([0x61,0x6c,0x67])]==_0x378fe([0x45,0x53,0x32,0x35,0x36])||(_0x17ce67=!0x1);}async function _0x5c7dd6(_0x7ca0b4,_0x5a1b46,_0xd3828f){const _0x197591=window[_0x378fe([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x378fe([0x66,0x72,0x6f,0x6d])](_0x606099(_0xd3828f),_0x461a52=>_0x461a52[_0x378fe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4fd6c2=new window[(_0x378fe([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x378fe([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x7ca0b4+_0x378fe([0x2e])+_0x5a1b46),_0x1edfb0=window[_0x378fe([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x378fe([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1edfb0)return;const _0x513caa=await _0x1edfb0[_0x378fe([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x378fe([0x6a,0x77,0x6b]),_0x4c98ce,{[_0x378fe([0x6e,0x61,0x6d,0x65])]:_0x378fe([0x45,0x43,0x44,0x53,0x41]),[_0x378fe([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x378fe([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x378fe([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1edfb0[_0x378fe([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x378fe([0x6e,0x61,0x6d,0x65])]:_0x378fe([0x45,0x43,0x44,0x53,0x41]),[_0x378fe([0x68,0x61,0x73,0x68])]:{[_0x378fe([0x6e,0x61,0x6d,0x65])]:_0x378fe([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x513caa,_0x197591,_0x4fd6c2)||(_0x17ce67=!0x1);}}function _0x55362c(_0x175107){return _0x175107[_0x378fe([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x378fe([0x65,0x79]))?JSON[_0x378fe([0x70,0x61,0x72,0x73,0x65])](_0x606099(_0x175107)):null;}function _0x606099(_0x1dedf7){return window[_0x378fe([0x61,0x74,0x6f,0x62])](_0x1dedf7[_0x378fe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x378fe([0x2b]))[_0x378fe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x378fe([0x2f])));}function _0x3e6130(_0x5a8dd5){let _0xeec3bc=0x1505;function _0x34abab(_0x46e71b){for(let _0x596c07=0x0;_0x596c07<_0x46e71b[_0x378fe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x596c07++){const _0x1e9ac4=_0x46e71b[_0x378fe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x596c07);_0xeec3bc=(_0xeec3bc<<0x5)+_0xeec3bc+_0x1e9ac4,_0xeec3bc&=_0xeec3bc;}}function _0x5dd651(_0x4e99ec){Array[_0x378fe([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4e99ec)?_0x4e99ec[_0x378fe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5dd651):_0x4e99ec&&typeof _0x4e99ec==_0x378fe([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x378fe([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4e99ec)[_0x378fe([0x73,0x6f,0x72,0x74])]()[_0x378fe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b76cd,_0x464790])=>{_0x34abab(_0x5b76cd),_0x5dd651(_0x464790);}):_0x34abab(window[_0x378fe([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4e99ec));}return _0x5dd651(_0x5a8dd5),_0xeec3bc>>>0x0;}function _0x125ca8(_0x202545){return _0x202545[_0x378fe([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x378fe([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x378fe([0x30]));}function _0xe065dd(_0x29eb22){return _0x29eb22[_0x378fe([0x73,0x70,0x6c,0x69,0x74])]('')[_0x378fe([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x378fe([0x6a,0x6f,0x69,0x6e])]('');}function _0x504886(){}function _0x378fe(_0x51a5eb){return _0x51a5eb['map'](_0x331fd6=>String['fromCharCode'](_0x331fd6))['join']('');}_0xa5c950(await _0x426d67());}(this);}['_initSchema'](){const _0x2b7597=this['editor']['model']['schema'];_0x2b7597['isRegistered']('imageBlock')&&_0x2b7597['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2b7597['isRegistered']('imageInline')&&_0x2b7597['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1b8068=this['editor'];_0x1b8068['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1b8068['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5eca96=>_0x5eca96['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x39039d=_0x1b8068['commands']['get']('replaceImageSource');_0x39039d&&this['listenTo'](_0x39039d,'cleanupImage',(_0x55efbc,[_0x34144d,_0x195333])=>{_0x34144d['removeAttribute']('uploadcareImageId',_0x195333);});}['_initConfig'](){const _0x4b458c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1de3a8=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x39dcbe(_0x3980ff['document'],'uc-config',{..._0x4b458c,'pubkey':_0x1de3a8,'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']=_0x5f0d51=>{if('closeMax'==_0x5f0d51)return'#uc-icon-arrow-down';},_0x3980ff['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x39dcbe(_0x3980ff['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x3980ff['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x42ea91=this['editor']['commands']['get']('insertImage');_0x42ea91&&this['listenTo'](_0x42ea91,'execute',()=>{const _0xf4e0b3=this['editor']['model']['document']['selection']['getSelectedElement']();_0xf4e0b3&&_0xf4e0b3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xf4e0b3);});});const _0x580bd0=this['editor']['commands']['get']('uploadcareImageReplace');_0x580bd0&&this['listenTo'](_0x580bd0,'execute',()=>{const _0x4f0daa=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4f0daa&&_0x4f0daa['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4f0daa);});});}}class u extends _0x4b63c5{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x30b84d){super(_0x30b84d),_0x30b84d['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x124de4['defineComponents'](_0x124de4);}}class ta extends _0x1d1dd6{constructor(_0x1dad6a){super(_0x1dad6a);const t=_0x1dad6a['t'],_0x1ee000=this['bindTemplate'],_0x4a62c6=new _0x17b935();_0x4a62c6['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':[_0x4a62c6,{'text':_0x1ee000['to']('imageUploadProgress',_0x323df1=>t('Loading\x20image...')+'\x20('+(_0x323df1||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 _0x1d1dd6{constructor(_0x1f6498){super(_0x1f6498);const t=_0x1f6498['t'];this['set']('errorType',null);const _0x327636=new _0x179972(_0x1f6498);_0x327636['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x327636['withText']=!0x0,_0x327636['class']='ck-button-action',_0x327636['on']('execute',()=>{this['fire']('retry');}),_0x327636['bind']('isVisible')['to'](this,'errorType',_0x5ea27c=>'NotFound'!==_0x5ea27c);const _0x1b2411=new at();_0x1b2411['content']=et,_0x1b2411['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x522674=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':[_0x1b2411,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x522674['to']('errorType',_0xcb0870=>t('NotFound'!==_0xcb0870?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x327636]},{'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 _0x1d1dd6{constructor(_0x4ef42f,_0x2234a4){super(_0x4ef42f);const _0x51ca02=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2234a4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x51ca02['to']('imageSrc')}});}}class Z extends G{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5c7858,_0x5dba31,_0x250275){super(_0x5c7858),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x5c7858),this['_errorView']=new rt(_0x5c7858),this['_editingView']=new tt(_0x5c7858,_0x250275),this['_focusableView']=new _0x1d1dd6(_0x5c7858),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5dba31),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'],_0x35a5ff=>{this['_addUploadcareImageEditorListeners'](_0x35a5ff);});}),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'](_0x30322d,_0x254b98){const _0x5efb23='uc-cloud-image-editor',_0x590cdc=_0x30322d['querySelector'](_0x5efb23);if(_0x590cdc)return _0x254b98(_0x590cdc);const _0x36f99a=new MutationObserver(_0x24b00f=>{const _0x39b1f6=_0x24b00f['filter'](_0x4d15df=>_0x4d15df['target']===_0x30322d&&_0x4d15df['addedNodes']['length']>0x0&&_0x4d15df['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5efb23);_0x39b1f6['length']&&(_0x36f99a['disconnect'](),_0x254b98(_0x39b1f6[0x0]['addedNodes'][0x0]));});_0x36f99a['observe'](_0x30322d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x51cd69){_0x51cd69['addEventListener']('apply',_0x30e2ad=>{this['fire']('apply',{'imageSrc':_0x30e2ad['detail']['cdnUrl']});}),_0x51cd69['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class A extends/* #__PURE__ -- @preserve */
25
+ _0x3f5276(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x519f1b,_0x3a4f0f,_0xd5cd04){super(),this['_editor']=_0x519f1b,this['_dialog']=_0x3a4f0f,this['_imageElement']=_0xd5cd04,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 _0xb1a3f=this['_imageElement'],_0x4f07f8=_0xb1a3f['getAttribute']('uploadcareImageId'),_0x264d83=_0xb1a3f['getAttribute']('src');if(_0x4f07f8)await this['_loadImageInfo'](_0x4f07f8,_0x264d83);else{if(this['_imageCache']['has'](_0x264d83)){const _0x5b6c09=this['_imageCache']['get'](_0x264d83);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5b6c09['url'],this['imageDimension']=_0x5b6c09['dimension'],this['imageId']=_0x5b6c09['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x274427}=this['_editor'],t=_0x274427['t'],_0x4b98af=new Z(_0x274427,this['imageStatus'],this['_attributes']);_0x4b98af['bind']('status')['to'](this,'imageStatus'),_0x4b98af['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4b98af['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4b98af['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4b98af,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1836d9,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4b98af,'position':_0x1f13c1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4b98af['focus']();},'onHide':()=>{_0x4b98af['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x56dd7b=>!R(_0x56dd7b,_0x4b98af['element'])}});}['_loadImageInfo'](_0x433843,_0x16870a){return C['getInfo'](_0x433843,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3c5dd=>{const {width:_0x55bea0,height:_0x21e8cf}=_0x3c5dd['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x16870a,this['imageDimension']={'width':_0x55bea0,'height':_0x21e8cf},this['imageId']=_0x433843;})['catch'](_0x7aa53d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x7aa53d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4bd670,_0x559ba7){return this['_getImageAsFile'](_0x4bd670)['then'](_0x478c1f=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x559ba7['signal'],'file':_0x478c1f,'onProgress':_0x414bfe=>{_0x414bfe&&_0x414bfe['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x414bfe['value']));}}))['then'](_0x3bf2ee=>{const {width:_0x3ed875,height:_0xb2efe7}=_0x3bf2ee['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3bf2ee['cdnUrl'],this['imageDimension']={'width':_0x3ed875,'height':_0xb2efe7},this['imageId']=_0x3bf2ee['uuid'],this['imageUploadProgress']=null;const _0x485a1b=_0x4bd670['getAttribute']('src');this['_imageCache']['set'](_0x485a1b,{'id':_0x3bf2ee['uuid'],'url':_0x3bf2ee['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1c0130=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1c0130['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x102251,_0x4ca769){_0x102251['on']('apply',(_0x365efa,_0x58745e)=>{this['_replaceImage'](_0x4ca769,_0x58745e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x102251['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x102251['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4ecb44,_0x273e90,_0x4ce743){const _0x175676=this['_editor'],{width:_0x3157ca,height:_0x283457}=F(_0x273e90,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4dfa6b,imageSources:_0x3caa16}=E(_0x273e90,_0x3157ca);_0x175676['model']['change'](_0x3103b4=>{if('$graveyard'===_0x4ecb44['root']['rootName']){_0x175676['execute']('insertImage',{'imageType':_0x4ecb44['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4ecb44['getAttributes']()),'uploadcareImageId':_0x4ce743,'src':_0x4dfa6b,'sources':_0x3caa16,'width':_0x3157ca,'height':_0x283457}});const _0x2f1ac4=_0x4ecb44['getChildren']();_0x4ecb44=_0x175676['model']['document']['selection']['getSelectedElement']();for(const _0x5b5b04 of _0x2f1ac4)_0x3103b4['append'](_0x3103b4['cloneElement'](_0x5b5b04),_0x4ecb44);}else _0x3103b4['setSelection'](_0x4ecb44,'on'),_0x175676['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4ecb44['getAttributes']()),'uploadcareImageId':_0x4ce743,'src':_0x4dfa6b,'sources':_0x3caa16,'width':_0x3157ca,'height':_0x283457},_0x4ecb44);_0x3103b4['setSelection'](_0x4ecb44,'on');});}async['_getImageAsFile'](_0x321f56){const _0x4893ff=_0x3980ff['window'],_0x5ce89e=_0x3980ff['document']['location']['href'],_0x1e7425=new _0x4893ff['URL'](_0x321f56['getAttribute']('src'),_0x5ce89e);if('data:'===_0x1e7425['protocol']){const _0x42f115=_0x1e7425['href']['split'](','),_0x522610=_0x42f115[0x0]['match'](/:(.*?);/)[0x1],_0x7e8e77=_0x522610['split']('/')[0x1],_0x16c0e4=_0x4893ff['atob'](_0x42f115[_0x42f115['length']-0x1]);let _0x577827=_0x16c0e4['length'];const _0xa85429=new _0x4893ff['Uint8Array'](_0x577827);for(;_0x577827--;)_0xa85429[_0x577827]=_0x16c0e4['charCodeAt'](_0x577827);return new _0x4893ff['File']([_0xa85429],'image.'+_0x7e8e77,{'type':_0x522610});}const _0x33b8b4=_0x1e7425['href']['split']('/'),_0x377b3d=_0x33b8b4[_0x33b8b4['length']-0x1],_0x15f5a5=_0x377b3d['split']('.')[0x1];return _0x4893ff['fetch'](_0x1e7425['href'])['then'](_0x37f725=>_0x37f725['clone']()['blob']())['then'](_0x131b23=>new _0x4893ff['File']([_0x131b23],_0x377b3d,{'type':'image/'+_0x15f5a5}));}}class z extends _0x308931{['imageEditController'];static get['requires'](){return[_0x7d6eed];}['_isEditable'];constructor(_0x350893){super(_0x350893),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2fafcb){const _0x1a611f=V(_0x2fafcb);return _0x32bed4=>!(!_0x32bed4||!_0x32bed4['is']('element','imageBlock')&&!_0x32bed4['is']('element','imageInline'))&&(!!_0x32bed4['hasAttribute']('uploadcareImageId')||!!_0x32bed4['hasAttribute']('src')&&_0x1a611f(_0x32bed4['getAttribute']('src')));}(_0x350893['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1050bd=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1050bd);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5a6b74=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5a6b74&&(_0x5a6b74['is']('element','imageBlock')||_0x5a6b74['is']('element','imageInline'))&&(this['imageEditController']=new A(this['editor'],this['editor']['plugins']['get'](_0x7d6eed),_0x5a6b74),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x308931{['refresh'](){const _0x2c4267=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2c4267&&(_0x2c4267['is']('element','imageBlock')||_0x2c4267['is']('element','imageInline')));}['execute'](_0x5394bb){const _0x5c7718=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x243fdd=>{_0x243fdd['setAttributes'](_0x5394bb,_0x5c7718),_0x243fdd['removeAttribute']('srcset',_0x5c7718),_0x243fdd['removeAttribute']('sizes',_0x5c7718);});}}class g extends _0x4b63c5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x553e93,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3f97f9}=this;_0x3f97f9['commands']['add']('uploadcareImageEdit',new z(_0x3f97f9)),_0x3f97f9['commands']['add']('uploadcareImageReplace',new O(_0x3f97f9));}}class j extends _0x4b63c5{['_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 _0x4fa332=this['editor'];_0x4fa332['ui']['componentFactory']['add']('uploadcareImageEdit',_0xf14cb7=>{const _0x485745=_0x4fa332['commands']['get']('uploadcareImageEdit'),_0x5a918e=new _0x179972(_0xf14cb7),t=_0xf14cb7['t'];return _0x5a918e['set']({'icon':_0x1836d9,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5a918e['bind']('isEnabled')['to'](_0x485745),_0x5a918e['bind']('isOn')['to'](_0x485745,'isActive'),this['listenTo'](_0x5a918e,'execute',()=>{_0x4fa332['execute']('uploadcareImageEdit'),_0x4fa332['editing']['view']['focus']();}),_0x5a918e;}),this['_initConfig']();}['_initConfig'](){const _0x5643c=_0x39dcbe(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5643c),this['listenTo'](this['editor'],'destroy',()=>{_0x5643c['remove']();});}}class P extends _0x4b63c5{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-20250315.0",
3
+ "version": "0.0.0-nightly-20250317.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-20250315.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250315.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250315.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250315.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250315.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250315.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250315.0",
33
- "ckeditor5": "0.0.0-nightly-20250315.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250317.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250317.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250317.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250317.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250317.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250317.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250317.0",
33
+ "ckeditor5": "0.0.0-nightly-20250317.0",
34
34
  "@uploadcare/file-uploader": "1.12.0",
35
35
  "@uploadcare/upload-client": "6.14.1"
36
36
  },
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xd548(){const _0x174ba9=['_dialog','focus','get','_initDialog','element','getOutputCollectionState','idle','_api','Insert','removeAllFiles','configElement','630108wkpngv','getSelectedElement','show','model','getAPI','done-click','imageInfo','_editing','initFlow','length','_formView','setAttribute','allEntries','selection','697248NCQhNx','5115865fkgUAr','editing','doneFlow','6bjZekw','insertImage','linkHref','imageBlock','setSelection','execute','_initListeners','24408744YCzqMS','_editor','change','uuid','ctxElement','view','Local','attributes','width','removeSelectionAttribute','stopListening','destroy','isOpen','835754Uavtpj','setCurrentActivity','status','_insertImage','stopDelegating','uploadCare','hide','plugins','addEventListener','document','source-list','4388069BLulbA','Replace','image','EDITOR_TOP_CENTER','detail','_insertAsset','imageInline','text','_type','getLastPosition','6257844PSEfHL'];_0xd548=function(){return _0x174ba9;};return _0xd548();}const _0x595ee=_0x22b8;(function(_0x240dd5,_0x49f667){const _0x59778b=_0x22b8,_0x51e579=_0x240dd5();while(!![]){try{const _0x5ae038=parseInt(_0x59778b(0x187))/0x1+parseInt(_0x59778b(0x16f))/0x2+-parseInt(_0x59778b(0x1a8))/0x3+-parseInt(_0x59778b(0x19c))/0x4+-parseInt(_0x59778b(0x170))/0x5*(parseInt(_0x59778b(0x173))/0x6)+-parseInt(_0x59778b(0x192))/0x7+parseInt(_0x59778b(0x17a))/0x8;if(_0x5ae038===_0x49f667)break;else _0x51e579['push'](_0x51e579['shift']());}catch(_0x69afb9){_0x51e579['push'](_0x51e579['shift']());}}}(_0xd548,0xc5fb6));import{IconUploadcareImageUpload as _0x39580e}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x2abc44}from'ckeditor5/src/utils.js';import{Dialog as _0x47603f,DialogViewPosition as _0x128fae}from'ckeditor5/src/ui.js';import _0x54c200 from'./uploadcareformview.js';import{UploadcareSource as _0xe648c2}from'../uploadcareconfig.js';import{getTranslation as _0x2d5c37}from'../utils/common-translations.js';import{getImageUrls as _0x4f4e7d,getImageDimension as _0x175c03}from'../utils/editingutils.js';import{isAncestor as _0x3a16c9}from'../utils/isancestor.js';function _0x22b8(_0x45ff30,_0x24974f){const _0xd548e4=_0xd548();return _0x22b8=function(_0x22b873,_0x1365ab){_0x22b873=_0x22b873-0x16d;let _0x3fe0ee=_0xd548e4[_0x22b873];return _0x3fe0ee;},_0x22b8(_0x45ff30,_0x24974f);}export default class l extends/* #__PURE__ -- @preserve */
24
- _0x2abc44(){[_0x595ee(0x17b)];[_0x595ee(0x19d)];[_0x595ee(0x1af)];[_0x595ee(0x1a4)];[_0x595ee(0x19a)]=null;[_0x595ee(0x1b2)]=null;constructor(_0x56621c,_0x30140a,_0x44d4c5){const _0x13c31d=_0x595ee;super(),this[_0x13c31d(0x17b)]=_0x56621c,this[_0x13c31d(0x1af)]=_0x30140a,this[_0x13c31d(0x19d)]=_0x56621c[_0x13c31d(0x18e)][_0x13c31d(0x19f)](_0x47603f),this[_0x13c31d(0x1a4)]=_0x30140a[_0x13c31d(0x17e)][_0x13c31d(0x1ac)](),this[_0x13c31d(0x19a)]=_0x44d4c5,this[_0x13c31d(0x1af)][_0x13c31d(0x1a7)][_0x13c31d(0x1b3)](_0x13c31d(0x191),this[_0x13c31d(0x19a)]),this[_0x13c31d(0x1a0)](),this[_0x13c31d(0x179)](),this[_0x13c31d(0x1a4)][_0x13c31d(0x1b0)]();}[_0x595ee(0x185)](){const _0x270e57=_0x595ee;this[_0x270e57(0x1b2)]&&(this[_0x270e57(0x1b2)][_0x270e57(0x185)](),this[_0x270e57(0x1b2)]=null),this[_0x270e57(0x1a4)]&&this[_0x270e57(0x1a4)][_0x270e57(0x172)](),this[_0x270e57(0x184)](),this[_0x270e57(0x18b)]();}[_0x595ee(0x1a0)](){const _0x514556=_0x595ee,{locale:_0x48c560,model:_0x25fad9}=this[_0x514556(0x17b)],_0x235d47=_0x25fad9[_0x514556(0x190)][_0x514556(0x16e)][_0x514556(0x1a9)](),_0x453884=_0x235d47&&(_0x235d47['is'](_0x514556(0x1a1),_0x514556(0x176))||_0x235d47['is'](_0x514556(0x1a1),_0x514556(0x198)));this[_0x514556(0x1b2)]=new _0x54c200(_0x48c560),this[_0x514556(0x19d)][_0x514556(0x1aa)]({'id':_0x514556(0x18c),'icon':_0x39580e,'title':_0x2d5c37(_0x48c560,this[_0x514556(0x19a)],_0x453884?_0x514556(0x193):_0x514556(0x1a5))[_0x514556(0x199)],'content':this[_0x514556(0x1b2)],'position':_0x128fae[_0x514556(0x195)],'isModal':!0x0,'onShow':()=>{const _0x238906=_0x514556;this[_0x238906(0x1b2)][_0x238906(0x19e)]();},'onHide':()=>{const _0x4e003c=_0x514556;this[_0x4e003c(0x1a4)][_0x4e003c(0x1a6)](),this[_0x4e003c(0x17b)][_0x4e003c(0x171)][_0x4e003c(0x17f)][_0x4e003c(0x19e)](),this[_0x4e003c(0x185)]();},'keystrokeHandlerOptions':{'filter':_0x38c013=>!_0x3a16c9(_0x38c013,this[_0x514556(0x1b2)][_0x514556(0x1a1)])}});}[_0x595ee(0x179)](){const _0x378316=_0x595ee;this[_0x378316(0x1af)][_0x378316(0x17e)][_0x378316(0x18f)](_0x378316(0x1ad),()=>{const _0x50779e=_0x378316,{allEntries:_0x3f477d}=this[_0x50779e(0x1a4)][_0x50779e(0x1a2)]();this[_0x50779e(0x17b)][_0x50779e(0x1ab)][_0x50779e(0x17c)](_0x1ca0ec=>{const _0x5251e5=_0x50779e,_0x2b22f5=_0x3f477d[_0x5251e5(0x1b1)];for(const _0x8274a0 of _0x3f477d){const _0x58ea86=_0x8274a0===_0x3f477d[_0x2b22f5-0x1],{cdnUrl:_0x42d8bc,fileInfo:_0x3dd53b}=_0x8274a0;if(!_0x42d8bc||!_0x3dd53b)continue;const {width:_0x69e704,height:_0x1482c0}=_0x3dd53b[_0x5251e5(0x1ae)],_0x568589=_0x175c03(_0x42d8bc,_0x69e704,_0x1482c0),_0xb52979=_0x4f4e7d(_0x42d8bc,_0x568589[_0x5251e5(0x182)]),_0x475354={'id':_0x3dd53b[_0x5251e5(0x17d)],'type':_0x5251e5(0x194),'attributes':{'imageDimension':_0x568589,..._0xb52979}};this[_0x5251e5(0x197)](_0x475354,_0x58ea86,_0x1ca0ec);}}),this[_0x50779e(0x19d)][_0x50779e(0x18d)]();}),this[_0x378316(0x1af)][_0x378316(0x17e)][_0x378316(0x18f)](_0x378316(0x17c),_0x460895=>{const _0x289725=_0x378316;_0x289725(0x1a3)===_0x460895[_0x289725(0x196)][_0x289725(0x189)]&&!_0x460895[_0x289725(0x196)][_0x289725(0x16d)][_0x289725(0x1b1)]&&this[_0x289725(0x19d)][_0x289725(0x186)]&&(this[_0x289725(0x19a)]===_0xe648c2[_0x289725(0x180)]?this[_0x289725(0x1a4)][_0x289725(0x188)](_0xe648c2[_0x289725(0x180)]):this[_0x289725(0x1a4)][_0x289725(0x1b0)]());});}[_0x595ee(0x197)](_0x4e0827,_0x3a201a,_0x51b8d6){const _0x2d3a1c=_0x595ee,_0xc5757f=this[_0x2d3a1c(0x17b)][_0x2d3a1c(0x1ab)][_0x2d3a1c(0x190)][_0x2d3a1c(0x16e)],_0x34057e=_0xc5757f[_0x2d3a1c(0x1a9)](),_0x2074ea=!(!_0x34057e||!_0x34057e['is'](_0x2d3a1c(0x1a1),_0x2d3a1c(0x198)));_0x51b8d6[_0x2d3a1c(0x183)](_0x2d3a1c(0x175)),this[_0x2d3a1c(0x18a)](_0x4e0827,_0x2074ea),_0x3a201a||_0x51b8d6[_0x2d3a1c(0x177)](_0xc5757f[_0x2d3a1c(0x19b)]());}[_0x595ee(0x18a)](_0xebdb66,_0x57050b){const _0x9669ec=_0x595ee,_0x2aa3af=this[_0x9669ec(0x17b)],{imageDimension:_0x38e4ef,imageFallbackUrl:_0x578bee,imageSources:_0x455574}=_0xebdb66[_0x9669ec(0x181)];_0x2aa3af[_0x9669ec(0x178)](_0x9669ec(0x174),{'imageType':_0x57050b?_0x9669ec(0x198):null,'source':{'uploadcareImageId':_0xebdb66['id'],'src':_0x578bee,'sources':_0x455574,..._0x38e4ef}});}}
23
+ const _0x17c4c8=_0x3138;(function(_0x440a53,_0x1ff08c){const _0x5532f8=_0x3138,_0x3c3e51=_0x440a53();while(!![]){try{const _0x68e262=parseInt(_0x5532f8(0x11c))/0x1+-parseInt(_0x5532f8(0x146))/0x2*(-parseInt(_0x5532f8(0x107))/0x3)+-parseInt(_0x5532f8(0x110))/0x4+-parseInt(_0x5532f8(0x131))/0x5+-parseInt(_0x5532f8(0x139))/0x6+-parseInt(_0x5532f8(0x13a))/0x7*(parseInt(_0x5532f8(0x10a))/0x8)+parseInt(_0x5532f8(0x11f))/0x9;if(_0x68e262===_0x1ff08c)break;else _0x3c3e51['push'](_0x3c3e51['shift']());}catch(_0x37103f){_0x3c3e51['push'](_0x3c3e51['shift']());}}}(_0x5429,0x3dd69));import{IconUploadcareImageUpload as _0x550b32}from'ckeditor5/src/icons.js';function _0x3138(_0x34f988,_0x68622d){const _0x542942=_0x5429();return _0x3138=function(_0x31384d,_0x1990a0){_0x31384d=_0x31384d-0x101;let _0x458f62=_0x542942[_0x31384d];return _0x458f62;},_0x3138(_0x34f988,_0x68622d);}import{ObservableMixin as _0x32c939}from'ckeditor5/src/utils.js';import{Dialog as _0x3312e4,DialogViewPosition as _0x4dbf74}from'ckeditor5/src/ui.js';import _0x159020 from'./uploadcareformview.js';import{UploadcareSource as _0x2f8fd7}from'../uploadcareconfig.js';function _0x5429(){const _0x2abf93=['allEntries','_type','destroy','getOutputCollectionState','element','_editing','_editor','3sFTYhP','document','removeAllFiles','144nqXAgL','selection','Insert','Replace','ctxElement','addEventListener','963428QttawL','getSelectedElement','uuid','get','source-list','_initListeners','hide','plugins','setAttribute','done-click','imageInfo','setSelection','223020YTPpnM','focus','idle','3698523RLNRxT','getAPI','_initDialog','setCurrentActivity','show','image','getLastPosition','model','editing','linkHref','execute','imageBlock','attributes','detail','status','doneFlow','insertImage','removeSelectionAttribute','1623515oQncrP','stopDelegating','width','length','stopListening','isOpen','_api','initFlow','405576PcnqCk','86324heGXso','_insertImage','_insertAsset','EDITOR_TOP_CENTER','uploadCare','imageInline','change','text','Local','_dialog','view','_formView','948908DuxYKC','configElement'];_0x5429=function(){return _0x2abf93;};return _0x5429();}import{getTranslation as _0x2a03b5}from'../utils/common-translations.js';import{getImageUrls as _0x296ed4,getImageDimension as _0x1e22ab}from'../utils/editingutils.js';import{isAncestor as _0x125267}from'../utils/isancestor.js';export default class l extends/* #__PURE__ -- @preserve */
24
+ _0x32c939(){[_0x17c4c8(0x106)];[_0x17c4c8(0x143)];[_0x17c4c8(0x105)];[_0x17c4c8(0x137)];[_0x17c4c8(0x101)]=null;[_0x17c4c8(0x145)]=null;constructor(_0x1238ee,_0x163727,_0x3360d2){const _0x143e11=_0x17c4c8;super(),this[_0x143e11(0x106)]=_0x1238ee,this[_0x143e11(0x105)]=_0x163727,this[_0x143e11(0x143)]=_0x1238ee[_0x143e11(0x117)][_0x143e11(0x113)](_0x3312e4),this[_0x143e11(0x137)]=_0x163727[_0x143e11(0x10e)][_0x143e11(0x120)](),this[_0x143e11(0x101)]=_0x3360d2,this[_0x143e11(0x105)][_0x143e11(0x147)][_0x143e11(0x118)](_0x143e11(0x114),this[_0x143e11(0x101)]),this[_0x143e11(0x121)](),this[_0x143e11(0x115)](),this[_0x143e11(0x137)][_0x143e11(0x138)]();}[_0x17c4c8(0x102)](){const _0x4f8755=_0x17c4c8;this[_0x4f8755(0x145)]&&(this[_0x4f8755(0x145)][_0x4f8755(0x102)](),this[_0x4f8755(0x145)]=null),this[_0x4f8755(0x137)]&&this[_0x4f8755(0x137)][_0x4f8755(0x12e)](),this[_0x4f8755(0x135)](),this[_0x4f8755(0x132)]();}[_0x17c4c8(0x121)](){const _0x5c7c40=_0x17c4c8,{locale:_0x16c5b7,model:_0x309427}=this[_0x5c7c40(0x106)],_0x4942db=_0x309427[_0x5c7c40(0x108)][_0x5c7c40(0x10b)][_0x5c7c40(0x111)](),_0x40988d=_0x4942db&&(_0x4942db['is'](_0x5c7c40(0x104),_0x5c7c40(0x12a))||_0x4942db['is'](_0x5c7c40(0x104),_0x5c7c40(0x13f)));this[_0x5c7c40(0x145)]=new _0x159020(_0x16c5b7),this[_0x5c7c40(0x143)][_0x5c7c40(0x123)]({'id':_0x5c7c40(0x13e),'icon':_0x550b32,'title':_0x2a03b5(_0x16c5b7,this[_0x5c7c40(0x101)],_0x40988d?_0x5c7c40(0x10d):_0x5c7c40(0x10c))[_0x5c7c40(0x141)],'content':this[_0x5c7c40(0x145)],'position':_0x4dbf74[_0x5c7c40(0x13d)],'isModal':!0x0,'onShow':()=>{const _0x558e03=_0x5c7c40;this[_0x558e03(0x145)][_0x558e03(0x11d)]();},'onHide':()=>{const _0x2b7dbc=_0x5c7c40;this[_0x2b7dbc(0x137)][_0x2b7dbc(0x109)](),this[_0x2b7dbc(0x106)][_0x2b7dbc(0x127)][_0x2b7dbc(0x144)][_0x2b7dbc(0x11d)](),this[_0x2b7dbc(0x102)]();},'keystrokeHandlerOptions':{'filter':_0x1366c3=>!_0x125267(_0x1366c3,this[_0x5c7c40(0x145)][_0x5c7c40(0x104)])}});}[_0x17c4c8(0x115)](){const _0x310085=_0x17c4c8;this[_0x310085(0x105)][_0x310085(0x10e)][_0x310085(0x10f)](_0x310085(0x119),()=>{const _0x3f1dc0=_0x310085,{allEntries:_0x2a3e82}=this[_0x3f1dc0(0x137)][_0x3f1dc0(0x103)]();this[_0x3f1dc0(0x106)][_0x3f1dc0(0x126)][_0x3f1dc0(0x140)](_0xa1a4bc=>{const _0x4ca375=_0x3f1dc0,_0x41dea6=_0x2a3e82[_0x4ca375(0x134)];for(const _0x4fcdfa of _0x2a3e82){const _0x119410=_0x4fcdfa===_0x2a3e82[_0x41dea6-0x1],{cdnUrl:_0x10498b,fileInfo:_0x128667}=_0x4fcdfa;if(!_0x10498b||!_0x128667)continue;const {width:_0x3a79c,height:_0x44e8d7}=_0x128667[_0x4ca375(0x11a)],_0x19b87f=_0x1e22ab(_0x10498b,_0x3a79c,_0x44e8d7),_0x1fb335=_0x296ed4(_0x10498b,_0x19b87f[_0x4ca375(0x133)]),_0x27c0ea={'id':_0x128667[_0x4ca375(0x112)],'type':_0x4ca375(0x124),'attributes':{'imageDimension':_0x19b87f,..._0x1fb335}};this[_0x4ca375(0x13c)](_0x27c0ea,_0x119410,_0xa1a4bc);}}),this[_0x3f1dc0(0x143)][_0x3f1dc0(0x116)]();}),this[_0x310085(0x105)][_0x310085(0x10e)][_0x310085(0x10f)](_0x310085(0x140),_0x48cd66=>{const _0x9e424d=_0x310085;_0x9e424d(0x11e)===_0x48cd66[_0x9e424d(0x12c)][_0x9e424d(0x12d)]&&!_0x48cd66[_0x9e424d(0x12c)][_0x9e424d(0x148)][_0x9e424d(0x134)]&&this[_0x9e424d(0x143)][_0x9e424d(0x136)]&&(this[_0x9e424d(0x101)]===_0x2f8fd7[_0x9e424d(0x142)]?this[_0x9e424d(0x137)][_0x9e424d(0x122)](_0x2f8fd7[_0x9e424d(0x142)]):this[_0x9e424d(0x137)][_0x9e424d(0x138)]());});}[_0x17c4c8(0x13c)](_0x492e7c,_0x44bc91,_0x550802){const _0x3f07fd=_0x17c4c8,_0x3ca2f4=this[_0x3f07fd(0x106)][_0x3f07fd(0x126)][_0x3f07fd(0x108)][_0x3f07fd(0x10b)],_0x308e99=_0x3ca2f4[_0x3f07fd(0x111)](),_0x54143b=!(!_0x308e99||!_0x308e99['is'](_0x3f07fd(0x104),_0x3f07fd(0x13f)));_0x550802[_0x3f07fd(0x130)](_0x3f07fd(0x128)),this[_0x3f07fd(0x13b)](_0x492e7c,_0x54143b),_0x44bc91||_0x550802[_0x3f07fd(0x11b)](_0x3ca2f4[_0x3f07fd(0x125)]());}[_0x17c4c8(0x13b)](_0x274c18,_0x40bf6e){const _0x4676c6=_0x17c4c8,_0x2f8d87=this[_0x4676c6(0x106)],{imageDimension:_0x47935d,imageFallbackUrl:_0x1f7c67,imageSources:_0x379bbf}=_0x274c18[_0x4676c6(0x12b)];_0x2f8d87[_0x4676c6(0x129)](_0x4676c6(0x12f),{'imageType':_0x40bf6e?_0x4676c6(0x13f):null,'source':{'uploadcareImageId':_0x274c18['id'],'src':_0x1f7c67,'sources':_0x379bbf,..._0x47935d}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x57c7(_0x3399c7,_0x3ce5fb){var _0x3414d9=_0x3414();return _0x57c7=function(_0x57c7a2,_0x1abc83){_0x57c7a2=_0x57c7a2-0x154;var _0x5af22c=_0x3414d9[_0x57c7a2];return _0x5af22c;},_0x57c7(_0x3399c7,_0x3ce5fb);}var _0x120dea=_0x57c7;(function(_0x30c33b,_0x349cf2){var _0x206c24=_0x57c7,_0x45f335=_0x30c33b();while(!![]){try{var _0x298c34=-parseInt(_0x206c24(0x162))/0x1+-parseInt(_0x206c24(0x164))/0x2+parseInt(_0x206c24(0x157))/0x3+-parseInt(_0x206c24(0x15d))/0x4+parseInt(_0x206c24(0x15f))/0x5*(-parseInt(_0x206c24(0x163))/0x6)+-parseInt(_0x206c24(0x165))/0x7*(parseInt(_0x206c24(0x168))/0x8)+-parseInt(_0x206c24(0x167))/0x9*(-parseInt(_0x206c24(0x159))/0xa);if(_0x298c34===_0x349cf2)break;else _0x45f335['push'](_0x45f335['shift']());}catch(_0x435306){_0x45f335['push'](_0x45f335['shift']());}}}(_0x3414,0x533f5));function _0x3414(){var _0x5e44da=['element','uploader','getFocusableElement','840124CckVvb','ck-uploadcare-form','5TVTsDB','uc-light','div','36067mCekiS','1280550ysXJWe','63326lGtGnQ','133938UUqvqA','focus','9775431ghDPRZ','248GbfWTp','ck-uploadcare-theme','uc-file-uploader-inline','setTemplate','1017486CcYmew','ck-reset_all-excluded','10LRHvkr'];_0x3414=function(){return _0x5e44da;};return _0x3414();}import _0x2d6554 from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export default class S extends _0x2d6554{constructor(_0x26d1aa){var _0x4947a0=_0x57c7;super(_0x26d1aa),this[_0x4947a0(0x156)]({'tag':_0x4947a0(0x161),'attributes':{'class':['ck',_0x4947a0(0x158),_0x4947a0(0x15e)],'tabindex':'-1'},'children':[{'tag':_0x4947a0(0x155),'attributes':{'class':[_0x4947a0(0x160),_0x4947a0(0x154)],'ctx-name':_0x4947a0(0x15b)}},this[_0x4947a0(0x15c)]()]});}[_0x120dea(0x166)](){var _0x1887ea=_0x120dea;this[_0x1887ea(0x15a)][_0x1887ea(0x166)]();}}
23
+ function _0x3cc0(){var _0x3e0937=['347448MEsrZn','318940qUEqQM','11VvOPrz','uc-file-uploader-inline','54nhGjnU','element','1939830LOFOcT','div','77724VpjfYI','focus','ck-uploadcare-form','1367091YpzDto','setTemplate','ck-uploadcare-theme','uploader','56fgEHzb','1065544egCYiI','30639820eQRplC','uc-light','getFocusableElement','ck-reset_all-excluded','56QtleTu'];_0x3cc0=function(){return _0x3e0937;};return _0x3cc0();}var _0x32f553=_0x5de4;function _0x5de4(_0x54c76a,_0xfe151f){var _0x3cc017=_0x3cc0();return _0x5de4=function(_0x5de4e4,_0x27a701){_0x5de4e4=_0x5de4e4-0x160;var _0x22e588=_0x3cc017[_0x5de4e4];return _0x22e588;},_0x5de4(_0x54c76a,_0xfe151f);}(function(_0x3e9180,_0x2299d1){var _0x3cbb88=_0x5de4,_0x1c7467=_0x3e9180();while(!![]){try{var _0x4f5408=-parseInt(_0x3cbb88(0x168))/0x1+-parseInt(_0x3cbb88(0x160))/0x2*(parseInt(_0x3cbb88(0x172))/0x3)+parseInt(_0x3cbb88(0x167))/0x4*(-parseInt(_0x3cbb88(0x16f))/0x5)+parseInt(_0x3cbb88(0x174))/0x6+-parseInt(_0x3cbb88(0x16d))/0x7*(parseInt(_0x3cbb88(0x16e))/0x8)+parseInt(_0x3cbb88(0x163))/0x9+parseInt(_0x3cbb88(0x169))/0xa*(parseInt(_0x3cbb88(0x170))/0xb);if(_0x4f5408===_0x2299d1)break;else _0x1c7467['push'](_0x1c7467['shift']());}catch(_0x187e20){_0x1c7467['push'](_0x1c7467['shift']());}}}(_0x3cc0,0x8248e));import _0x3432f5 from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export default class S extends _0x3432f5{constructor(_0x9f54c7){var _0x48afb8=_0x5de4;super(_0x9f54c7),this[_0x48afb8(0x164)]({'tag':_0x48afb8(0x175),'attributes':{'class':['ck',_0x48afb8(0x16c),_0x48afb8(0x162)],'tabindex':'-1'},'children':[{'tag':_0x48afb8(0x171),'attributes':{'class':[_0x48afb8(0x16a),_0x48afb8(0x165)],'ctx-name':_0x48afb8(0x166)}},this[_0x48afb8(0x16b)]()]});}[_0x32f553(0x161)](){var _0x506607=_0x32f553;this[_0x506607(0x173)][_0x506607(0x161)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd06d6d=_0x54f5;(function(_0x64e589,_0x2a4a0c){const _0x102ad0=_0x54f5,_0x29649f=_0x64e589();while(!![]){try{const _0x465db0=-parseInt(_0x102ad0(0x21c))/0x1*(parseInt(_0x102ad0(0x222))/0x2)+-parseInt(_0x102ad0(0x235))/0x3*(parseInt(_0x102ad0(0x1ea))/0x4)+parseInt(_0x102ad0(0x1e4))/0x5+parseInt(_0x102ad0(0x212))/0x6*(parseInt(_0x102ad0(0x204))/0x7)+parseInt(_0x102ad0(0x1e5))/0x8*(parseInt(_0x102ad0(0x22c))/0x9)+parseInt(_0x102ad0(0x232))/0xa*(parseInt(_0x102ad0(0x1f4))/0xb)+-parseInt(_0x102ad0(0x200))/0xc;if(_0x465db0===_0x2a4a0c)break;else _0x29649f['push'](_0x29649f['shift']());}catch(_0x5c60f4){_0x29649f['push'](_0x29649f['shift']());}}}(_0x1cef,0x2b925));function _0x1cef(){const _0x5ca3e2=['_initSchema','58448kiOvfz','getAttribute','schema','replaceImageSource','_initConfig','config','elementToAttribute','selection','isPremiumPlugin','get','43714CdgYWx','model','href','map','fromCharCode','uc-upload-ctx-provider','add','commands','extend','body','imageBlock','uploadcareImageId','3697392bFwgFj','once','isRegistered','_ctxElement','14xwRdvb','execute','conversion','view','afterInit','imageInline','downcast','uc-config','cleanupImage','uploadcareImageReplace','editing','configElement','pluginName','remove','465408RyebZK','insertImage','true','document','removeAttribute','iconHrefResolver','for','listenTo','appendChild','\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','3RHXZqG','destroy','ctxElement','input[uploadcare-file-input]','_initConversion','isOfficialPlugin','144562xOGSkR','PictureEditing','attributeToAttribute','getSelectedElement','join','UploadcareEditing','closeMax','requires','init','_initCtx','18ucwgSA','locale','_initImageProcessingIndicator','contentLanguage','uploadcare.pubkey','render','890ruHyUo','editor','#uc-icon-arrow-down','9KiysxO','upcast','data-uc-image-id','_configElement','uploader','238310CpNDVU','763120vRiTKd','uploadcare.uploader','uploadcare','querySelector'];_0x1cef=function(){return _0x5ca3e2;};return _0x1cef();}import{Plugin as _0x4091fb}from'ckeditor5/src/core.js';function _0x54f5(_0x1d765d,_0x324807){const _0x1cef28=_0x1cef();return _0x54f5=function(_0x54f5a9,_0x1ce8b1){_0x54f5a9=_0x54f5a9-0x1e2;let _0x3e1d67=_0x1cef28[_0x54f5a9];return _0x3e1d67;},_0x54f5(_0x1d765d,_0x324807);}import{Dialog as _0x1f51ea}from'ckeditor5/src/ui.js';import{createElement as _0x4faf68,global as _0x454713,uid as _0x47d84a}from'ckeditor5/src/utils.js';import _0xd0cf8b from'./uploadcarecommand.js';import _0x343b52 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x19b6f4}from'./utils/editingutils.js';export default class i extends _0x4091fb{[_0xd06d6d(0x1e2)]=null;[_0xd06d6d(0x203)]=null;static get[_0xd06d6d(0x210)](){const _0x3935c4=_0xd06d6d;return _0x3935c4(0x227);}static get[_0xd06d6d(0x229)](){const _0x364030=_0xd06d6d;return[_0x364030(0x223),_0x343b52,_0x1f51ea];}static get[_0xd06d6d(0x221)](){return!0x0;}static get[_0xd06d6d(0x1f2)](){return!0x0;}get[_0xd06d6d(0x20f)](){const _0x3b4473=_0xd06d6d;return this[_0x3b4473(0x1e2)];}get[_0xd06d6d(0x21e)](){const _0x305649=_0xd06d6d;return this[_0x305649(0x203)];}[_0xd06d6d(0x22a)](){const _0x4785b1=_0xd06d6d,_0x382248=this[_0x4785b1(0x233)];_0x382248[_0x4785b1(0x1fb)][_0x4785b1(0x1fa)](_0x4785b1(0x1e7),new _0xd0cf8b(_0x382248));}[_0xd06d6d(0x208)](){const _0x4485bb=_0xd06d6d;this[_0x4485bb(0x1e9)](),this[_0x4485bb(0x220)](),this[_0x4485bb(0x1ee)](),this[_0x4485bb(0x22b)](),this[_0x4485bb(0x22e)](),this[_0x4485bb(0x219)](this[_0x4485bb(0x233)],_0x4485bb(0x21d),()=>{const _0x1a8791=_0x4485bb;this[_0x1a8791(0x1e2)]&&(this[_0x1a8791(0x1e2)][_0x1a8791(0x211)](),this[_0x1a8791(0x1e2)]=null),this[_0x1a8791(0x203)]&&(this[_0x1a8791(0x203)][_0x1a8791(0x211)](),this[_0x1a8791(0x203)]=null);const _0x1ea530=_0x454713[_0x1a8791(0x215)][_0x1a8791(0x1e8)](_0x1a8791(0x21f));_0x1ea530&&_0x1ea530[_0x1a8791(0x211)]();}),async function(_0x4c0627){const _0x4da304=_0x261655([0x6e,0x4e,0x57,0x79,0x6a,0x6d,0x4d,0x4b,0x50,0x68,0x75,0x52,0x42,0x59,0x47,0x5a,0x70,0x64,0x51,0x43,0x6b,0x44,0x71,0x69,0x4a,0x4f,0x65,0x63,0x58,0x6f,0x76,0x35,0x39,0x34,0x73,0x53,0x46,0x31,0x56,0x30,0x32,0x77,0x33,0x37,0x62,0x4c,0x78,0x38,0x41,0x67,0x61,0x7a,0x54,0x74,0x45,0x36,0x6c,0x55,0x49,0x66,0x48,0x72]),_0x180071=0x2b8ef94d,_0x399843=0x2b899b7d^_0x180071,_0xa8df18=window[_0x261655([0x44,0x61,0x74,0x65])][_0x261655([0x6e,0x6f,0x77])](),_0x5a1f51=_0x4c0627[_0x261655([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b9ec4=new window[(_0x261655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x410d3a=>{_0x5a1f51[_0x261655([0x6f,0x6e,0x63,0x65])](_0x261655([0x72,0x65,0x61,0x64,0x79]),_0x410d3a);}),_0x3ca810={[_0x261655([0x6b,0x74,0x79])]:_0x261655([0x45,0x43]),[_0x261655([0x75,0x73,0x65])]:_0x261655([0x73,0x69,0x67]),[_0x261655([0x63,0x72,0x76])]:_0x261655([0x50,0x2d,0x32,0x35,0x36]),[_0x261655([0x78])]:_0x261655([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]),[_0x261655([0x79])]:_0x261655([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]),[_0x261655([0x61,0x6c,0x67])]:_0x261655([0x45,0x53,0x32,0x35,0x36])},_0x203769=_0x5a1f51[_0x261655([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x261655([0x67,0x65,0x74])](_0x261655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3147fb(){let _0x47f462,_0x5e9525=null,_0x35e594=null;try{if(_0x203769==_0x261655([0x47,0x50,0x4c]))return _0x261655([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x47f462=_0x2d9ac8(),!_0x47f462)return _0x261655([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x47f462[_0x261655([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x35e594=_0x17e4d0(_0x47f462[_0x261655([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x47f462[_0x261655([0x6a,0x74,0x69])])),await _0x189a68()?_0x5e0fc2()?_0x490f64()?_0x261655([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2b76c5()?(_0x47f462[_0x261655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x261655([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e9525=_0x467844(_0x261655([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x47f462[_0x261655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x261655([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e9525=_0x467844(_0x261655([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x18256b()):_0x261655([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x261655([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x261655([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x114ae0){return _0x261655([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x490f64(){const _0x3a2210=[_0x261655([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x261655([0x74,0x72,0x69,0x61,0x6c])][_0x261655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47f462[_0x261655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xa8df18/0x3e8:0xe10*_0x399843;return _0x47f462[_0x261655([0x65,0x78,0x70])]<_0x3a2210;}function _0x5e0fc2(){const _0x1b0b7a=_0x47f462[_0x261655([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b0b7a&&(!!_0x1b0b7a[_0x261655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x261655([0x2a]))||!!_0x1b0b7a[_0x261655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x261655([0x55,0x50,0x4c,0x43])));}function _0x2b76c5(){const _0x5c6da6=_0x54f5,_0x498ad6=_0x47f462[_0x261655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x498ad6||0x0==_0x498ad6[_0x261655([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x34a360}=new URL(window[_0x261655([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5c6da6(0x1f6)]);if(_0x498ad6[_0x261655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34a360))return!0x0;const _0x53cf1f=_0x34a360[_0x261655([0x73,0x70,0x6c,0x69,0x74])](_0x261655([0x2e]));return _0x498ad6[_0x261655([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x435323=>_0x435323[_0x261655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x261655([0x2a])))[_0x261655([0x6d,0x61,0x70])](_0x30878f=>_0x30878f[_0x261655([0x73,0x70,0x6c,0x69,0x74])](_0x261655([0x2e])))[_0x261655([0x73,0x6f,0x6d,0x65])](_0x258fd5=>_0x53cf1f[_0x261655([0x65,0x76,0x65,0x72,0x79])]((_0x2eac5e,_0x4f21a7)=>_0x258fd5[_0x4f21a7]===_0x2eac5e||_0x258fd5[_0x4f21a7]===_0x261655([0x2a])));}function _0x18256b(){return _0x5e9525&&_0x35e594?new window[(_0x261655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19b2e3,_0x23e000)=>{_0x5e9525[_0x261655([0x74,0x68,0x65,0x6e])](_0x19b2e3,_0x23e000),_0x35e594[_0x261655([0x74,0x68,0x65,0x6e])](_0x4782f9=>{_0x4782f9!=_0x261655([0x56,0x61,0x6c,0x69,0x64])&&_0x19b2e3(_0x4782f9);},_0x23e000);}):_0x5e9525||_0x35e594||_0x261655([0x56,0x61,0x6c,0x69,0x64]);}}function _0x17e4d0(_0x431c13,_0x221d6b){return new window[(_0x261655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d4fe2=>{if(_0x53371())return _0x2d4fe2(_0x261655([0x56,0x61,0x6c,0x69,0x64]));_0x1cdbf0(),_0x5a1f51[_0x261655([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x261655([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x9cf49b=!0x1;const _0xc890e0=_0x47d84a();function _0x2ceda8(_0x2af53e){return!!_0x2af53e&&(typeof _0x2af53e===_0x261655([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2af53e===_0x261655([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2af53e[_0x261655([0x74,0x68,0x65,0x6e])]===_0x261655([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2af53e[_0x261655([0x63,0x61,0x74,0x63,0x68])]===_0x261655([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xd16494(_0x350200){_0x37ab3d(_0x350200)[_0x261655([0x74,0x68,0x65,0x6e])](_0x5ed179=>{if(!_0x5ed179||_0x5ed179[_0x261655([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x261655([0x6f,0x6b]))return _0x261655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3f7b15(_0x2ddb98(_0xc890e0+_0x221d6b))!=_0x5ed179[_0x261655([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x261655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x261655([0x56,0x61,0x6c,0x69,0x64]);})[_0x261655([0x74,0x68,0x65,0x6e])](_0x2aadf2=>(_0x54ab65(),_0x2aadf2),()=>{const _0x31882e=_0x17d90e();return null==_0x31882e?(_0x54ab65(),_0x261655([0x56,0x61,0x6c,0x69,0x64])):_0x261655(_0xa8df18-_0x31882e>(0xf827d4d^_0x180071)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x261655([0x74,0x68,0x65,0x6e])](_0x2d4fe2)[_0x261655([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2d4fe2(_0x261655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x12a3c5=0x2bb817cd^_0x180071;function _0x54ab65(){const _0x4baba3=_0x261655([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f7b15(_0x2ddb98(_0x431c13)),_0x2e1974=_0x5a5e4f(_0x3f7b15(window[_0x261655([0x4d,0x61,0x74,0x68])][_0x261655([0x63,0x65,0x69,0x6c])](_0xa8df18/_0x12a3c5)));window[_0x261655([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x261655([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4baba3,_0x2e1974);}function _0x17d90e(){const _0x3b9bfc=_0x261655([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f7b15(_0x2ddb98(_0x431c13)),_0x2d1f7a=window[_0x261655([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x261655([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b9bfc);return _0x2d1f7a?window[_0x261655([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a5e4f(_0x2d1f7a),0x10)*_0x12a3c5:null;}function _0x37ab3d(_0x52df66){return new window[(_0x261655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x527212,_0x255edc)=>{_0x52df66[_0x261655([0x74,0x68,0x65,0x6e])](_0x527212,_0x255edc),window[_0x261655([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x255edc,0x2b8f2d8d^_0x180071);});}}_0x5a1f51[_0x261655([0x6f,0x6e])](_0x261655([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x298ae2,_0xfbcd8c)=>{if(_0xfbcd8c[0x0]!=_0x431c13)return _0x2d4fe2(_0x261655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xfbcd8c[0x1]={..._0xfbcd8c[0x1],[_0x261655([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xc890e0};},{[_0x261655([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x261655([0x68,0x69,0x67,0x68])}),_0x5a1f51[_0x261655([0x6f,0x6e])](_0x261655([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x36ee06=>{_0x2ceda8(_0x36ee06[_0x261655([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x9cf49b=!0x0,_0xd16494(_0x36ee06[_0x261655([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x261655([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x261655([0x6c,0x6f,0x77])}),_0x2b9ec4[_0x261655([0x74,0x68,0x65,0x6e])](()=>{_0x9cf49b||_0x2d4fe2(_0x261655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x53371(){return _0x5a1f51[_0x261655([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x261655([0x76,0x69,0x65,0x77])][_0x261655([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x261655([0x61,0x75,0x74,0x6f]);}function _0x1cdbf0(){_0x5a1f51[_0x261655([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x261655([0x76,0x69,0x65,0x77])][_0x261655([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x261655([0x61,0x75,0x74,0x6f]);}}function _0x467844(_0x194b6d){const _0x36f934=[new window[(_0x261655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57f5de=>setTimeout(_0x57f5de,0x2b87c781^_0x180071)),_0x2b9ec4[_0x261655([0x74,0x68,0x65,0x6e])](()=>new window[(_0x261655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c3c2d=>{let _0x3b78ef=0x0;_0x5a1f51[_0x261655([0x6d,0x6f,0x64,0x65,0x6c])][_0x261655([0x6f,0x6e])](_0x261655([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4d8055,_0x22c3b4)=>{_0x22c3b4[0x0][_0x261655([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3b78ef++,_0x3b78ef==(0x2b8ef8b5^_0x180071)&&(_0x4c3c2d(),_0x4d8055[_0x261655([0x6f,0x66,0x66])]());});}))];return window[_0x261655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x261655([0x72,0x61,0x63,0x65])](_0x36f934)[_0x261655([0x74,0x68,0x65,0x6e])](()=>_0x194b6d);}async function _0x566b46(){await _0x2b9ec4,_0x5a1f51[_0x261655([0x6d,0x6f,0x64,0x65,0x6c])][_0x261655([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3abf4b,_0x5a1f51[_0x261655([0x6d,0x6f,0x64,0x65,0x6c])][_0x261655([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3abf4b,_0x5a1f51[_0x261655([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x261655([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e3982(_0x2db38b){const _0x1e64ee=_0x2c2dc0();_0x5a1f51[_0x1e64ee]=_0x261655([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2db38b,_0x2db38b!=_0x261655([0x56,0x61,0x6c,0x69,0x64])&&_0x566b46();}function _0x2c2dc0(){const _0x344543=window[_0x261655([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x261655([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x261655([0x6e,0x6f,0x77])]())[_0x261655([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x261655([0x2e]),'');let _0x54ee06=_0x261655([0x6e]);for(let _0x46ae10=0x0;_0x46ae10<_0x344543[_0x261655([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46ae10+=0x2){let _0x34caac=window[_0x261655([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x344543[_0x261655([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46ae10,_0x46ae10+0x2));_0x34caac>=_0x4da304[_0x261655([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x34caac-=_0x4da304[_0x261655([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x54ee06+=_0x4da304[_0x34caac];}return _0x54ee06;}function _0x2d9ac8(){const _0x409e80=_0x203769[_0x261655([0x73,0x70,0x6c,0x69,0x74])](_0x261655([0x2e]));if(0x3!=_0x409e80[_0x261655([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4d163b(_0x409e80[0x1]);function _0x4d163b(_0x4e404e){const _0x360186=_0x3f8662(_0x4e404e);return _0x360186&&_0x5838f4()?_0x360186:null;function _0x5838f4(){const _0x2be33e=_0x360186[_0x261655([0x6a,0x74,0x69])],_0x4a5daf=window[_0x261655([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2be33e[_0x261655([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2be33e[_0x261655([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x158cbf={..._0x360186,[_0x261655([0x6a,0x74,0x69])]:_0x2be33e[_0x261655([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2be33e[_0x261655([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x158cbf[_0x261655([0x76,0x63])],_0x2ddb98(_0x158cbf)==_0x4a5daf;}}}async function _0x189a68(){let _0x1a6295=!0x0;try{const _0x11706e=_0x203769[_0x261655([0x73,0x70,0x6c,0x69,0x74])](_0x261655([0x2e])),[_0x35a0d4,_0x3e8f7c,_0x381672]=_0x11706e;return _0x1c0dee(_0x35a0d4),await _0x113140(_0x35a0d4,_0x3e8f7c,_0x381672),_0x1a6295;}catch(_0x1a4db2){return!0x1;}function _0x1c0dee(_0x5da90e){const _0x549de4=_0x3f8662(_0x5da90e);_0x549de4&&_0x549de4[_0x261655([0x61,0x6c,0x67])]==_0x261655([0x45,0x53,0x32,0x35,0x36])||(_0x1a6295=!0x1);}async function _0x113140(_0x5b15ed,_0x128bfc,_0x45b599){const _0x44baed=window[_0x261655([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x261655([0x66,0x72,0x6f,0x6d])](_0x3339f3(_0x45b599),_0x58c454=>_0x58c454[_0x261655([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x25536a=new window[(_0x261655([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x261655([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b15ed+_0x261655([0x2e])+_0x128bfc),_0x2d881c=window[_0x261655([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x261655([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2d881c)return;const _0x434fc8=await _0x2d881c[_0x261655([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x261655([0x6a,0x77,0x6b]),_0x3ca810,{[_0x261655([0x6e,0x61,0x6d,0x65])]:_0x261655([0x45,0x43,0x44,0x53,0x41]),[_0x261655([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x261655([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x261655([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2d881c[_0x261655([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x261655([0x6e,0x61,0x6d,0x65])]:_0x261655([0x45,0x43,0x44,0x53,0x41]),[_0x261655([0x68,0x61,0x73,0x68])]:{[_0x261655([0x6e,0x61,0x6d,0x65])]:_0x261655([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x434fc8,_0x44baed,_0x25536a)||(_0x1a6295=!0x1);}}function _0x3f8662(_0x13d1a9){return _0x13d1a9[_0x261655([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x261655([0x65,0x79]))?JSON[_0x261655([0x70,0x61,0x72,0x73,0x65])](_0x3339f3(_0x13d1a9)):null;}function _0x3339f3(_0x18f3d6){return window[_0x261655([0x61,0x74,0x6f,0x62])](_0x18f3d6[_0x261655([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x261655([0x2b]))[_0x261655([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x261655([0x2f])));}function _0x2ddb98(_0x2b58e3){let _0x586876=0x1505;function _0x5d10e3(_0x5e8050){for(let _0x4c9d7a=0x0;_0x4c9d7a<_0x5e8050[_0x261655([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c9d7a++){const _0x17f9bf=_0x5e8050[_0x261655([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c9d7a);_0x586876=(_0x586876<<0x5)+_0x586876+_0x17f9bf,_0x586876&=_0x586876;}}function _0x3b88c8(_0x2280df){Array[_0x261655([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2280df)?_0x2280df[_0x261655([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3b88c8):_0x2280df&&typeof _0x2280df==_0x261655([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x261655([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2280df)[_0x261655([0x73,0x6f,0x72,0x74])]()[_0x261655([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x417263,_0x464001])=>{_0x5d10e3(_0x417263),_0x3b88c8(_0x464001);}):_0x5d10e3(window[_0x261655([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2280df));}return _0x3b88c8(_0x2b58e3),_0x586876>>>0x0;}function _0x3f7b15(_0x1797e5){return _0x1797e5[_0x261655([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x261655([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x261655([0x30]));}function _0x5a5e4f(_0x2874ad){return _0x2874ad[_0x261655([0x73,0x70,0x6c,0x69,0x74])]('')[_0x261655([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x261655([0x6a,0x6f,0x69,0x6e])]('');}function _0x3abf4b(){}function _0x261655(_0x1af18f){const _0x1dc444=_0x54f5;return _0x1af18f[_0x1dc444(0x1f7)](_0x2216f3=>String[_0x1dc444(0x1f8)](_0x2216f3))[_0x1dc444(0x226)]('');}_0x1e3982(await _0x3147fb());}(this);}[_0xd06d6d(0x1e9)](){const _0x925a85=_0xd06d6d,_0x4e67ff=this[_0x925a85(0x233)][_0x925a85(0x1f5)][_0x925a85(0x1ec)];_0x4e67ff[_0x925a85(0x202)](_0x925a85(0x1fe))&&_0x4e67ff[_0x925a85(0x1fc)](_0x925a85(0x1fe),{'allowAttributes':[_0x925a85(0x1ff)]}),_0x4e67ff[_0x925a85(0x202)](_0x925a85(0x209))&&_0x4e67ff[_0x925a85(0x1fc)](_0x925a85(0x209),{'allowAttributes':[_0x925a85(0x1ff)]});}[_0xd06d6d(0x220)](){const _0x4e569c=_0xd06d6d,_0x2e786e=this[_0x4e569c(0x233)];_0x2e786e[_0x4e569c(0x206)][_0x4e569c(0x218)](_0x4e569c(0x20a))[_0x4e569c(0x224)]({'model':_0x4e569c(0x1ff),'view':_0x4e569c(0x237)}),_0x2e786e[_0x4e569c(0x206)][_0x4e569c(0x218)](_0x4e569c(0x236))[_0x4e569c(0x1f0)]({'model':{'key':_0x4e569c(0x1ff),'value':_0x88f58f=>_0x88f58f[_0x4e569c(0x1eb)](_0x4e569c(0x237))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2f20c2=_0x2e786e[_0x4e569c(0x1fb)][_0x4e569c(0x1f3)](_0x4e569c(0x1ed));_0x2f20c2&&this[_0x4e569c(0x219)](_0x2f20c2,_0x4e569c(0x20c),(_0xfa0ffa,[_0x2bba40,_0x62bd19])=>{const _0x3d49bb=_0x4e569c;_0x2bba40[_0x3d49bb(0x216)](_0x3d49bb(0x1ff),_0x62bd19);});}[_0xd06d6d(0x1ee)](){const _0x5befa2=_0xd06d6d,_0x453375=this[_0x5befa2(0x233)][_0x5befa2(0x1ef)][_0x5befa2(0x1f3)](_0x5befa2(0x1e6))||{},_0x24ae4e=this[_0x5befa2(0x233)][_0x5befa2(0x1ef)][_0x5befa2(0x1f3)](_0x5befa2(0x230))||'';this[_0x5befa2(0x1e2)]=_0x4faf68(_0x454713[_0x5befa2(0x215)],_0x5befa2(0x20b),{..._0x453375,'pubkey':_0x24ae4e,'ctx-name':_0x5befa2(0x1e3),'sourceList':'','imgOnly':_0x5befa2(0x214),'removeCopyright':_0x5befa2(0x214),'localeName':this[_0x5befa2(0x233)][_0x5befa2(0x22d)][_0x5befa2(0x22f)],'externalSourcesEmbedCss':_0x5befa2(0x21b)}),this[_0x5befa2(0x1e2)][_0x5befa2(0x217)]=_0x4b0223=>{const _0x25fcf6=_0x5befa2;if(_0x25fcf6(0x228)==_0x4b0223)return _0x25fcf6(0x234);},_0x454713[_0x5befa2(0x215)][_0x5befa2(0x1fd)][_0x5befa2(0x21a)](this[_0x5befa2(0x1e2)]);}[_0xd06d6d(0x22b)](){const _0x4aa3cb=_0xd06d6d;this[_0x4aa3cb(0x203)]=_0x4faf68(_0x454713[_0x4aa3cb(0x215)],_0x4aa3cb(0x1f9),{'ctx-name':_0x4aa3cb(0x1e3)}),_0x454713[_0x4aa3cb(0x215)][_0x4aa3cb(0x1fd)][_0x4aa3cb(0x21a)](this[_0x4aa3cb(0x203)]);}[_0xd06d6d(0x22e)](){const _0x2c96ea=_0xd06d6d,_0x266fa2=this[_0x2c96ea(0x233)][_0x2c96ea(0x1fb)][_0x2c96ea(0x1f3)](_0x2c96ea(0x213));_0x266fa2&&this[_0x2c96ea(0x219)](_0x266fa2,_0x2c96ea(0x205),()=>{const _0x4f12ff=_0x2c96ea,_0x3f7bce=this[_0x4f12ff(0x233)][_0x4f12ff(0x1f5)][_0x4f12ff(0x215)][_0x4f12ff(0x1f1)][_0x4f12ff(0x225)]();_0x3f7bce&&_0x3f7bce[_0x4f12ff(0x1eb)](_0x4f12ff(0x1ff))&&this[_0x4f12ff(0x233)][_0x4f12ff(0x20e)][_0x4f12ff(0x207)][_0x4f12ff(0x201)](_0x4f12ff(0x231),()=>{const _0x230a77=_0x4f12ff;_0x19b6f4(this[_0x230a77(0x233)],_0x3f7bce);});});const _0x2f3c4d=this[_0x2c96ea(0x233)][_0x2c96ea(0x1fb)][_0x2c96ea(0x1f3)](_0x2c96ea(0x20d));_0x2f3c4d&&this[_0x2c96ea(0x219)](_0x2f3c4d,_0x2c96ea(0x205),()=>{const _0x6ea86d=_0x2c96ea,_0x3fcc81=this[_0x6ea86d(0x233)][_0x6ea86d(0x1f5)][_0x6ea86d(0x215)][_0x6ea86d(0x1f1)][_0x6ea86d(0x225)]();_0x3fcc81&&_0x3fcc81[_0x6ea86d(0x1eb)](_0x6ea86d(0x1ff))&&this[_0x6ea86d(0x233)][_0x6ea86d(0x20e)][_0x6ea86d(0x207)][_0x6ea86d(0x201)](_0x6ea86d(0x231),()=>{const _0x207c4c=_0x6ea86d;_0x19b6f4(this[_0x207c4c(0x233)],_0x3fcc81);});});}}
23
+ const _0x3ddd17=_0x3625;(function(_0x4dc116,_0x5df500){const _0x5c2fe3=_0x3625,_0x399011=_0x4dc116();while(!![]){try{const _0x3bd0c1=-parseInt(_0x5c2fe3(0x102))/0x1+parseInt(_0x5c2fe3(0x106))/0x2*(parseInt(_0x5c2fe3(0x128))/0x3)+-parseInt(_0x5c2fe3(0xd6))/0x4+-parseInt(_0x5c2fe3(0xeb))/0x5*(-parseInt(_0x5c2fe3(0x116))/0x6)+-parseInt(_0x5c2fe3(0x120))/0x7*(-parseInt(_0x5c2fe3(0xfd))/0x8)+parseInt(_0x5c2fe3(0xdf))/0x9+parseInt(_0x5c2fe3(0xdc))/0xa*(-parseInt(_0x5c2fe3(0x123))/0xb);if(_0x3bd0c1===_0x5df500)break;else _0x399011['push'](_0x399011['shift']());}catch(_0x4367e6){_0x399011['push'](_0x399011['shift']());}}}(_0x1d5b,0xea3b5));import{Plugin as _0x182ff7}from'ckeditor5/src/core.js';import{Dialog as _0x238b5a}from'ckeditor5/src/ui.js';function _0x1d5b(){const _0x2c3a70=['uploadcare.pubkey','_initCtx','listenTo','UploadcareEditing','execute','model','commands','config','305949dtQfNT','destroy','isRegistered','33ixGIGP','input[uploadcare-file-input]','uploadcare','body','map','12kVQcZI','join','_initConversion','1844276NfeBnF','once','uploadcare.uploader','render','conversion','ctxElement','4849540zwpoIv','fromCharCode','appendChild','10058445jCQyUX','requires','editing','uploadcareImageReplace','true','isPremiumPlugin','upcast','getSelectedElement','iconHrefResolver','afterInit','#uc-icon-arrow-down','_initSchema','15khvgfj','insertImage','uploader','removeAttribute','uc-config','querySelector','_initImageProcessingIndicator','for','selection','editor','remove','extend','uc-upload-ctx-provider','isOfficialPlugin','schema','imageBlock','attributeToAttribute','uploadcareImageId','152ijGCJF','\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','downcast','_initConfig','configElement','1685876LcJaeE','get','cleanupImage','pluginName','840442brfROe','imageInline','elementToAttribute','_ctxElement','locale','add','PictureEditing','replaceImageSource','view','document','closeMax','data-uc-image-id','_configElement','href','init','contentLanguage','1864596fxCCLj','getAttribute'];_0x1d5b=function(){return _0x2c3a70;};return _0x1d5b();}import{createElement as _0x238150,global as _0x67802b,uid as _0x2c871e}from'ckeditor5/src/utils.js';import _0x5c9a59 from'./uploadcarecommand.js';import _0x412952 from'./uploadcareuploadadapter.js';function _0x3625(_0x1c8422,_0x54d8d0){const _0x1d5b7d=_0x1d5b();return _0x3625=function(_0x362525,_0x4dbf0a){_0x362525=_0x362525-0xd5;let _0x95a53c=_0x1d5b7d[_0x362525];return _0x95a53c;},_0x3625(_0x1c8422,_0x54d8d0);}import{showImageProcessingIndicator as _0x2434b4}from'./utils/editingutils.js';export default class i extends _0x182ff7{[_0x3ddd17(0x112)]=null;[_0x3ddd17(0x109)]=null;static get[_0x3ddd17(0x105)](){const _0x1320cd=_0x3ddd17;return _0x1320cd(0x11b);}static get[_0x3ddd17(0xe0)](){const _0x47360e=_0x3ddd17;return[_0x47360e(0x10c),_0x412952,_0x238b5a];}static get[_0x3ddd17(0xf8)](){return!0x0;}static get[_0x3ddd17(0xe4)](){return!0x0;}get[_0x3ddd17(0x101)](){const _0x5705d8=_0x3ddd17;return this[_0x5705d8(0x112)];}get[_0x3ddd17(0xdb)](){const _0x46cd8f=_0x3ddd17;return this[_0x46cd8f(0x109)];}[_0x3ddd17(0x114)](){const _0x2487bc=_0x3ddd17,_0x54a9cc=this[_0x2487bc(0xf4)];_0x54a9cc[_0x2487bc(0x11e)][_0x2487bc(0x10b)](_0x2487bc(0x125),new _0x5c9a59(_0x54a9cc));}[_0x3ddd17(0xe8)](){const _0x1d3356=_0x3ddd17;this[_0x1d3356(0xea)](),this[_0x1d3356(0xd5)](),this[_0x1d3356(0x100)](),this[_0x1d3356(0x119)](),this[_0x1d3356(0xf1)](),this[_0x1d3356(0x11a)](this[_0x1d3356(0xf4)],_0x1d3356(0x121),()=>{const _0x5f3eaa=_0x1d3356;this[_0x5f3eaa(0x112)]&&(this[_0x5f3eaa(0x112)][_0x5f3eaa(0xf5)](),this[_0x5f3eaa(0x112)]=null),this[_0x5f3eaa(0x109)]&&(this[_0x5f3eaa(0x109)][_0x5f3eaa(0xf5)](),this[_0x5f3eaa(0x109)]=null);const _0xc4d2aa=_0x67802b[_0x5f3eaa(0x10f)][_0x5f3eaa(0xf0)](_0x5f3eaa(0x124));_0xc4d2aa&&_0xc4d2aa[_0x5f3eaa(0xf5)]();}),async function(_0x5411eb){const _0x597ffe=_0x28fe64([0x61,0x76,0x38,0x51,0x70,0x79,0x64,0x6e,0x6a,0x34,0x59,0x6b,0x54,0x31,0x47,0x4e,0x39,0x78,0x5a,0x58,0x63,0x4a,0x55,0x52,0x42,0x4d,0x30,0x35,0x72,0x4f,0x69,0x71,0x45,0x77,0x37,0x73,0x6c,0x33,0x75,0x36,0x48,0x62,0x6f,0x57,0x44,0x74,0x67,0x49,0x56,0x32,0x53,0x43,0x41,0x4c,0x46,0x4b,0x7a,0x68,0x50,0x6d,0x65,0x66]),_0x39c516=0x1853b237,_0x4c229f=0x1854d057^_0x39c516,_0x50d3cb=window[_0x28fe64([0x44,0x61,0x74,0x65])][_0x28fe64([0x6e,0x6f,0x77])](),_0x166bfe=_0x5411eb[_0x28fe64([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2582b1=new window[(_0x28fe64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45a46c=>{_0x166bfe[_0x28fe64([0x6f,0x6e,0x63,0x65])](_0x28fe64([0x72,0x65,0x61,0x64,0x79]),_0x45a46c);}),_0x38ec01={[_0x28fe64([0x6b,0x74,0x79])]:_0x28fe64([0x45,0x43]),[_0x28fe64([0x75,0x73,0x65])]:_0x28fe64([0x73,0x69,0x67]),[_0x28fe64([0x63,0x72,0x76])]:_0x28fe64([0x50,0x2d,0x32,0x35,0x36]),[_0x28fe64([0x78])]:_0x28fe64([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]),[_0x28fe64([0x79])]:_0x28fe64([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]),[_0x28fe64([0x61,0x6c,0x67])]:_0x28fe64([0x45,0x53,0x32,0x35,0x36])},_0x2cbcc1=_0x166bfe[_0x28fe64([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x28fe64([0x67,0x65,0x74])](_0x28fe64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x37ec36(){let _0x40d0af,_0x494bd3=null,_0xea4ad0=null;try{if(_0x2cbcc1==_0x28fe64([0x47,0x50,0x4c]))return _0x28fe64([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x40d0af=_0x3f9a25(),!_0x40d0af)return _0x28fe64([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x40d0af[_0x28fe64([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xea4ad0=_0x2d0673(_0x40d0af[_0x28fe64([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x40d0af[_0x28fe64([0x6a,0x74,0x69])])),await _0x1da84b()?_0x239000()?_0x2df0da()?_0x28fe64([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x59aa78()?(_0x40d0af[_0x28fe64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x28fe64([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x494bd3=_0x6d0b31(_0x28fe64([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x40d0af[_0x28fe64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x28fe64([0x74,0x72,0x69,0x61,0x6c])&&(_0x494bd3=_0x6d0b31(_0x28fe64([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3ed825()):_0x28fe64([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x28fe64([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x28fe64([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x230904){return _0x28fe64([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2df0da(){const _0x3434f1=[_0x28fe64([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x28fe64([0x74,0x72,0x69,0x61,0x6c])][_0x28fe64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40d0af[_0x28fe64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x50d3cb/0x3e8:0xe10*_0x4c229f;return _0x40d0af[_0x28fe64([0x65,0x78,0x70])]<_0x3434f1;}function _0x239000(){const _0x4d6fb3=_0x40d0af[_0x28fe64([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4d6fb3&&(!!_0x4d6fb3[_0x28fe64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28fe64([0x2a]))||!!_0x4d6fb3[_0x28fe64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28fe64([0x55,0x50,0x4c,0x43])));}function _0x59aa78(){const _0x5645ca=_0x3625,_0x47034d=_0x40d0af[_0x28fe64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x47034d||0x0==_0x47034d[_0x28fe64([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2327c1}=new URL(window[_0x28fe64([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5645ca(0x113)]);if(_0x47034d[_0x28fe64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2327c1))return!0x0;const _0x4625df=_0x2327c1[_0x28fe64([0x73,0x70,0x6c,0x69,0x74])](_0x28fe64([0x2e]));return _0x47034d[_0x28fe64([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x427b62=>_0x427b62[_0x28fe64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28fe64([0x2a])))[_0x28fe64([0x6d,0x61,0x70])](_0x114e12=>_0x114e12[_0x28fe64([0x73,0x70,0x6c,0x69,0x74])](_0x28fe64([0x2e])))[_0x28fe64([0x73,0x6f,0x6d,0x65])](_0x59b4af=>_0x4625df[_0x28fe64([0x65,0x76,0x65,0x72,0x79])]((_0x3626e1,_0x1af279)=>_0x59b4af[_0x1af279]===_0x3626e1||_0x59b4af[_0x1af279]===_0x28fe64([0x2a])));}function _0x3ed825(){return _0x494bd3&&_0xea4ad0?new window[(_0x28fe64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16f2e8,_0x55b190)=>{_0x494bd3[_0x28fe64([0x74,0x68,0x65,0x6e])](_0x16f2e8,_0x55b190),_0xea4ad0[_0x28fe64([0x74,0x68,0x65,0x6e])](_0x4528ee=>{_0x4528ee!=_0x28fe64([0x56,0x61,0x6c,0x69,0x64])&&_0x16f2e8(_0x4528ee);},_0x55b190);}):_0x494bd3||_0xea4ad0||_0x28fe64([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d0673(_0x4701fd,_0x5e3fa1){return new window[(_0x28fe64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x215a59=>{if(_0x2b6796())return _0x215a59(_0x28fe64([0x56,0x61,0x6c,0x69,0x64]));_0x24e1f1(),_0x166bfe[_0x28fe64([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x28fe64([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x52b35a=!0x1;const _0x2d0379=_0x2c871e();function _0x1bf6af(_0x1cd795){return!!_0x1cd795&&(typeof _0x1cd795===_0x28fe64([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1cd795===_0x28fe64([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1cd795[_0x28fe64([0x74,0x68,0x65,0x6e])]===_0x28fe64([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1cd795[_0x28fe64([0x63,0x61,0x74,0x63,0x68])]===_0x28fe64([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xe09648(_0x24c546){_0x18d681(_0x24c546)[_0x28fe64([0x74,0x68,0x65,0x6e])](_0x546113=>{if(!_0x546113||_0x546113[_0x28fe64([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x28fe64([0x6f,0x6b]))return _0x28fe64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x308227(_0x1c941b(_0x2d0379+_0x5e3fa1))!=_0x546113[_0x28fe64([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x28fe64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x28fe64([0x56,0x61,0x6c,0x69,0x64]);})[_0x28fe64([0x74,0x68,0x65,0x6e])](_0x1477d1=>(_0x4ff55f(),_0x1477d1),()=>{const _0x5c93a7=_0x1d042f();return null==_0x5c93a7?(_0x4ff55f(),_0x28fe64([0x56,0x61,0x6c,0x69,0x64])):_0x28fe64(_0x50d3cb-_0x5c93a7>(0x3c5f3637^_0x39c516)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x28fe64([0x74,0x68,0x65,0x6e])](_0x215a59)[_0x28fe64([0x63,0x61,0x74,0x63,0x68])](()=>{_0x215a59(_0x28fe64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x23d417=0x18655cb7^_0x39c516;function _0x4ff55f(){const _0x5f61eb=_0x28fe64([0x6c,0x6c,0x63,0x74,0x2d])+_0x308227(_0x1c941b(_0x4701fd)),_0x31e9ca=_0x19200a(_0x308227(window[_0x28fe64([0x4d,0x61,0x74,0x68])][_0x28fe64([0x63,0x65,0x69,0x6c])](_0x50d3cb/_0x23d417)));window[_0x28fe64([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28fe64([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5f61eb,_0x31e9ca);}function _0x1d042f(){const _0x30f1c9=_0x28fe64([0x6c,0x6c,0x63,0x74,0x2d])+_0x308227(_0x1c941b(_0x4701fd)),_0x2bde79=window[_0x28fe64([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28fe64([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30f1c9);return _0x2bde79?window[_0x28fe64([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19200a(_0x2bde79),0x10)*_0x23d417:null;}function _0x18d681(_0x1be524){return new window[(_0x28fe64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x497007,_0x199936)=>{_0x1be524[_0x28fe64([0x74,0x68,0x65,0x6e])](_0x497007,_0x199936),window[_0x28fe64([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x199936,0x185266f7^_0x39c516);});}}_0x166bfe[_0x28fe64([0x6f,0x6e])](_0x28fe64([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x28915f,_0x5b9a65)=>{if(_0x5b9a65[0x0]!=_0x4701fd)return _0x215a59(_0x28fe64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b9a65[0x1]={..._0x5b9a65[0x1],[_0x28fe64([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d0379};},{[_0x28fe64([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28fe64([0x68,0x69,0x67,0x68])}),_0x166bfe[_0x28fe64([0x6f,0x6e])](_0x28fe64([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x48b014=>{_0x1bf6af(_0x48b014[_0x28fe64([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x52b35a=!0x0,_0xe09648(_0x48b014[_0x28fe64([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x28fe64([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28fe64([0x6c,0x6f,0x77])}),_0x2582b1[_0x28fe64([0x74,0x68,0x65,0x6e])](()=>{_0x52b35a||_0x215a59(_0x28fe64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b6796(){return _0x166bfe[_0x28fe64([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28fe64([0x76,0x69,0x65,0x77])][_0x28fe64([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x28fe64([0x61,0x75,0x74,0x6f]);}function _0x24e1f1(){_0x166bfe[_0x28fe64([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28fe64([0x76,0x69,0x65,0x77])][_0x28fe64([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x28fe64([0x61,0x75,0x74,0x6f]);}}function _0x6d0b31(_0x39f9a2){const _0x48df5c=[new window[(_0x28fe64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x153663=>setTimeout(_0x153663,0x185a8cfb^_0x39c516)),_0x2582b1[_0x28fe64([0x74,0x68,0x65,0x6e])](()=>new window[(_0x28fe64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34eae8=>{let _0x17a505=0x0;_0x166bfe[_0x28fe64([0x6d,0x6f,0x64,0x65,0x6c])][_0x28fe64([0x6f,0x6e])](_0x28fe64([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5b7f4f,_0x5cfa13)=>{_0x5cfa13[0x0][_0x28fe64([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x17a505++,_0x17a505==(0x1853b3cf^_0x39c516)&&(_0x34eae8(),_0x5b7f4f[_0x28fe64([0x6f,0x66,0x66])]());});}))];return window[_0x28fe64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x28fe64([0x72,0x61,0x63,0x65])](_0x48df5c)[_0x28fe64([0x74,0x68,0x65,0x6e])](()=>_0x39f9a2);}async function _0x4fe258(){await _0x2582b1,_0x166bfe[_0x28fe64([0x6d,0x6f,0x64,0x65,0x6c])][_0x28fe64([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1fbf25,_0x166bfe[_0x28fe64([0x6d,0x6f,0x64,0x65,0x6c])][_0x28fe64([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1fbf25,_0x166bfe[_0x28fe64([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x28fe64([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x278a50(_0x311df6){const _0x54668e=_0x4b8630();_0x166bfe[_0x54668e]=_0x28fe64([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x311df6,_0x311df6!=_0x28fe64([0x56,0x61,0x6c,0x69,0x64])&&_0x4fe258();}function _0x4b8630(){const _0x3c5634=window[_0x28fe64([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x28fe64([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x28fe64([0x6e,0x6f,0x77])]())[_0x28fe64([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x28fe64([0x2e]),'');let _0x12f957=_0x28fe64([0x61]);for(let _0x40f8eb=0x0;_0x40f8eb<_0x3c5634[_0x28fe64([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40f8eb+=0x2){let _0x38e899=window[_0x28fe64([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c5634[_0x28fe64([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40f8eb,_0x40f8eb+0x2));_0x38e899>=_0x597ffe[_0x28fe64([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x38e899-=_0x597ffe[_0x28fe64([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x12f957+=_0x597ffe[_0x38e899];}return _0x12f957;}function _0x3f9a25(){const _0x346b0=_0x2cbcc1[_0x28fe64([0x73,0x70,0x6c,0x69,0x74])](_0x28fe64([0x2e]));if(0x3!=_0x346b0[_0x28fe64([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xd66360(_0x346b0[0x1]);function _0xd66360(_0x108fde){const _0x1e22f2=_0x2bfc80(_0x108fde);return _0x1e22f2&&_0x4223e3()?_0x1e22f2:null;function _0x4223e3(){const _0x4c32f4=_0x1e22f2[_0x28fe64([0x6a,0x74,0x69])],_0x4e6c0a=window[_0x28fe64([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c32f4[_0x28fe64([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c32f4[_0x28fe64([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x15ee10={..._0x1e22f2,[_0x28fe64([0x6a,0x74,0x69])]:_0x4c32f4[_0x28fe64([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c32f4[_0x28fe64([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x15ee10[_0x28fe64([0x76,0x63])],_0x1c941b(_0x15ee10)==_0x4e6c0a;}}}async function _0x1da84b(){let _0x4adcea=!0x0;try{const _0x2035e5=_0x2cbcc1[_0x28fe64([0x73,0x70,0x6c,0x69,0x74])](_0x28fe64([0x2e])),[_0x2e9dc9,_0x115724,_0x4b9676]=_0x2035e5;return _0x312d42(_0x2e9dc9),await _0x5485d6(_0x2e9dc9,_0x115724,_0x4b9676),_0x4adcea;}catch(_0x5447bb){return!0x1;}function _0x312d42(_0x238b60){const _0xfe1190=_0x2bfc80(_0x238b60);_0xfe1190&&_0xfe1190[_0x28fe64([0x61,0x6c,0x67])]==_0x28fe64([0x45,0x53,0x32,0x35,0x36])||(_0x4adcea=!0x1);}async function _0x5485d6(_0x448dd4,_0x5bd5e4,_0x5c7521){const _0x57d734=window[_0x28fe64([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x28fe64([0x66,0x72,0x6f,0x6d])](_0x2c4429(_0x5c7521),_0x37eece=>_0x37eece[_0x28fe64([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4de87b=new window[(_0x28fe64([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x28fe64([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x448dd4+_0x28fe64([0x2e])+_0x5bd5e4),_0x59f894=window[_0x28fe64([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x28fe64([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x59f894)return;const _0x244ef1=await _0x59f894[_0x28fe64([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x28fe64([0x6a,0x77,0x6b]),_0x38ec01,{[_0x28fe64([0x6e,0x61,0x6d,0x65])]:_0x28fe64([0x45,0x43,0x44,0x53,0x41]),[_0x28fe64([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x28fe64([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x28fe64([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x59f894[_0x28fe64([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x28fe64([0x6e,0x61,0x6d,0x65])]:_0x28fe64([0x45,0x43,0x44,0x53,0x41]),[_0x28fe64([0x68,0x61,0x73,0x68])]:{[_0x28fe64([0x6e,0x61,0x6d,0x65])]:_0x28fe64([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x244ef1,_0x57d734,_0x4de87b)||(_0x4adcea=!0x1);}}function _0x2bfc80(_0x2ec295){return _0x2ec295[_0x28fe64([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x28fe64([0x65,0x79]))?JSON[_0x28fe64([0x70,0x61,0x72,0x73,0x65])](_0x2c4429(_0x2ec295)):null;}function _0x2c4429(_0x938f8e){return window[_0x28fe64([0x61,0x74,0x6f,0x62])](_0x938f8e[_0x28fe64([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x28fe64([0x2b]))[_0x28fe64([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x28fe64([0x2f])));}function _0x1c941b(_0x20146c){let _0x304048=0x1505;function _0x21e871(_0x1c43e6){for(let _0x5bb241=0x0;_0x5bb241<_0x1c43e6[_0x28fe64([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5bb241++){const _0x25b4db=_0x1c43e6[_0x28fe64([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5bb241);_0x304048=(_0x304048<<0x5)+_0x304048+_0x25b4db,_0x304048&=_0x304048;}}function _0x1c7b87(_0x2632c1){Array[_0x28fe64([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2632c1)?_0x2632c1[_0x28fe64([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1c7b87):_0x2632c1&&typeof _0x2632c1==_0x28fe64([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x28fe64([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2632c1)[_0x28fe64([0x73,0x6f,0x72,0x74])]()[_0x28fe64([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x129514,_0x124e26])=>{_0x21e871(_0x129514),_0x1c7b87(_0x124e26);}):_0x21e871(window[_0x28fe64([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2632c1));}return _0x1c7b87(_0x20146c),_0x304048>>>0x0;}function _0x308227(_0x38ad63){return _0x38ad63[_0x28fe64([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x28fe64([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x28fe64([0x30]));}function _0x19200a(_0x450d64){return _0x450d64[_0x28fe64([0x73,0x70,0x6c,0x69,0x74])]('')[_0x28fe64([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x28fe64([0x6a,0x6f,0x69,0x6e])]('');}function _0x1fbf25(){}function _0x28fe64(_0x38e27d){const _0xf29a1b=_0x3625;return _0x38e27d[_0xf29a1b(0x127)](_0x35d2d6=>String[_0xf29a1b(0xdd)](_0x35d2d6))[_0xf29a1b(0x129)]('');}_0x278a50(await _0x37ec36());}(this);}[_0x3ddd17(0xea)](){const _0x1ed4ab=_0x3ddd17,_0x31b2f3=this[_0x1ed4ab(0xf4)][_0x1ed4ab(0x11d)][_0x1ed4ab(0xf9)];_0x31b2f3[_0x1ed4ab(0x122)](_0x1ed4ab(0xfa))&&_0x31b2f3[_0x1ed4ab(0xf6)](_0x1ed4ab(0xfa),{'allowAttributes':[_0x1ed4ab(0xfc)]}),_0x31b2f3[_0x1ed4ab(0x122)](_0x1ed4ab(0x107))&&_0x31b2f3[_0x1ed4ab(0xf6)](_0x1ed4ab(0x107),{'allowAttributes':[_0x1ed4ab(0xfc)]});}[_0x3ddd17(0xd5)](){const _0x582246=_0x3ddd17,_0x479cb9=this[_0x582246(0xf4)];_0x479cb9[_0x582246(0xda)][_0x582246(0xf2)](_0x582246(0xff))[_0x582246(0xfb)]({'model':_0x582246(0xfc),'view':_0x582246(0x111)}),_0x479cb9[_0x582246(0xda)][_0x582246(0xf2)](_0x582246(0xe5))[_0x582246(0x108)]({'model':{'key':_0x582246(0xfc),'value':_0x1bd6ac=>_0x1bd6ac[_0x582246(0x117)](_0x582246(0x111))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x28a87a=_0x479cb9[_0x582246(0x11e)][_0x582246(0x103)](_0x582246(0x10d));_0x28a87a&&this[_0x582246(0x11a)](_0x28a87a,_0x582246(0x104),(_0x306b0e,[_0x2da4fc,_0x41ff52])=>{const _0x49b6b6=_0x582246;_0x2da4fc[_0x49b6b6(0xee)](_0x49b6b6(0xfc),_0x41ff52);});}[_0x3ddd17(0x100)](){const _0x4968f0=_0x3ddd17,_0x42eb88=this[_0x4968f0(0xf4)][_0x4968f0(0x11f)][_0x4968f0(0x103)](_0x4968f0(0xd8))||{},_0x10bd0d=this[_0x4968f0(0xf4)][_0x4968f0(0x11f)][_0x4968f0(0x103)](_0x4968f0(0x118))||'';this[_0x4968f0(0x112)]=_0x238150(_0x67802b[_0x4968f0(0x10f)],_0x4968f0(0xef),{..._0x42eb88,'pubkey':_0x10bd0d,'ctx-name':_0x4968f0(0xed),'sourceList':'','imgOnly':_0x4968f0(0xe3),'removeCopyright':_0x4968f0(0xe3),'localeName':this[_0x4968f0(0xf4)][_0x4968f0(0x10a)][_0x4968f0(0x115)],'externalSourcesEmbedCss':_0x4968f0(0xfe)}),this[_0x4968f0(0x112)][_0x4968f0(0xe7)]=_0x37cf7e=>{const _0x6a22d5=_0x4968f0;if(_0x6a22d5(0x110)==_0x37cf7e)return _0x6a22d5(0xe9);},_0x67802b[_0x4968f0(0x10f)][_0x4968f0(0x126)][_0x4968f0(0xde)](this[_0x4968f0(0x112)]);}[_0x3ddd17(0x119)](){const _0x3d1425=_0x3ddd17;this[_0x3d1425(0x109)]=_0x238150(_0x67802b[_0x3d1425(0x10f)],_0x3d1425(0xf7),{'ctx-name':_0x3d1425(0xed)}),_0x67802b[_0x3d1425(0x10f)][_0x3d1425(0x126)][_0x3d1425(0xde)](this[_0x3d1425(0x109)]);}[_0x3ddd17(0xf1)](){const _0x45b173=_0x3ddd17,_0x469f5d=this[_0x45b173(0xf4)][_0x45b173(0x11e)][_0x45b173(0x103)](_0x45b173(0xec));_0x469f5d&&this[_0x45b173(0x11a)](_0x469f5d,_0x45b173(0x11c),()=>{const _0x4e234b=_0x45b173,_0x5217a7=this[_0x4e234b(0xf4)][_0x4e234b(0x11d)][_0x4e234b(0x10f)][_0x4e234b(0xf3)][_0x4e234b(0xe6)]();_0x5217a7&&_0x5217a7[_0x4e234b(0x117)](_0x4e234b(0xfc))&&this[_0x4e234b(0xf4)][_0x4e234b(0xe1)][_0x4e234b(0x10e)][_0x4e234b(0xd7)](_0x4e234b(0xd9),()=>{const _0x4bcfe8=_0x4e234b;_0x2434b4(this[_0x4bcfe8(0xf4)],_0x5217a7);});});const _0x3b41d6=this[_0x45b173(0xf4)][_0x45b173(0x11e)][_0x45b173(0x103)](_0x45b173(0xe2));_0x3b41d6&&this[_0x45b173(0x11a)](_0x3b41d6,_0x45b173(0x11c),()=>{const _0x35297a=_0x45b173,_0x2de15f=this[_0x35297a(0xf4)][_0x35297a(0x11d)][_0x35297a(0x10f)][_0x35297a(0xf3)][_0x35297a(0xe6)]();_0x2de15f&&_0x2de15f[_0x35297a(0x117)](_0x35297a(0xfc))&&this[_0x35297a(0xf4)][_0x35297a(0xe1)][_0x35297a(0x10e)][_0x35297a(0xd7)](_0x35297a(0xd9),()=>{const _0x393ba4=_0x35297a;_0x2434b4(this[_0x393ba4(0xf4)],_0x2de15f);});});}}