@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251122.0 → 0.0.0-nightly-20251123.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x591147,Command as _0x130986}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xc2ad5b,IconGooglePhotos as _0x24de46,IconGoogleDrive as _0x202a7e,IconFacebook as _0x2e91ea,IconDropbox as _0x202267,IconUploadcareLink as _0x1a139f,IconUploadcareImageUpload as _0x32fcb2,IconError as _0x4d5ce6,IconUploadcareImageEdit as _0x166e76}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2ad41a,MenuBarMenuListItemButtonView as _0x58f1f5,View as _0xe784cc,FocusCycler as _0x1a93fb,Dialog as _0x166b41,DialogViewPosition as _0x54da96,SpinnerView as _0xe5c68a,IconView as _0x3c2139,Notification as _0x5c25f5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1c20bf,DomEmitterMixin as _0x653c37,global as _0x5d7562,getAncestors as _0x3e791f,ObservableMixin as _0x46efc5,uid as _0x59d2ba,createElement as _0x426134}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5b6e2f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x29d312,info as _0x37f536}from'@uploadcare/upload-client';import*as _0x4d39d4 from'@uploadcare/file-uploader';var i=function(_0x32fb98){return _0x32fb98['Local']='local',_0x32fb98['URL']='url',_0x32fb98['Dropbox']='dropbox',_0x32fb98['GDrive']='gdrive',_0x32fb98['Facebook']='facebook',_0x32fb98['GPhotos']='gphotos',_0x32fb98['OneDrive']='onedrive',_0x32fb98;}({});function _(_0x1c6386,_0x5aa299,_0x180872){const t=_0x1c6386['t'],_0x4c0721=_0x1c6386['t'];switch(_0x5aa299){case i['Local']:return{'text':_0x4c0721('Insert'===_0x180872?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4c0721('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x180872?_0x4c0721('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4c0721('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x180872?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x180872?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x180872?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x180872?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x180872?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5aa299;}}class e extends _0x591147{['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 _0x5e868c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5e5a5f;for(const _0xc6dfd9 in _0x5e868c){const _0x5a6cc0=_0xc6dfd9,_0x2a0b24=_0x5e868c[_0x5a6cc0];if('uploadcareLicenseKeyValid'==_0x2a0b24||'uploadcareLicenseKeyInvalid'==_0x2a0b24||'uploadcareLicenseKeyExpired'==_0x2a0b24||'uploadcareLicenseKeyDomainLimit'==_0x2a0b24||'uploadcareLicenseKeyNotAllowed'==_0x2a0b24||'uploadcareLicenseKeyEvaluationLimit'==_0x2a0b24||'uploadcareLicenseKeyTrialLimit'==_0x2a0b24||'uploadcareLicenseKeyUsageLimit'==_0x2a0b24){delete _0x5e868c[_0x5a6cc0],_0x5e5a5f=_0x2a0b24,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5e5a5f&&_0x5e868c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5e5a5f&&_0x5e868c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5e5a5f&&_0x5e868c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5e5a5f&&_0x5e868c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5e5a5f&&_0x5e868c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5e5a5f&&_0x5e868c['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5e5a5f&&_0x5e868c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x264268}=this,_0x20676e=_0x264268['commands']['get']('uploadcare');if(!_0x20676e)return;const _0x211e74=this['_normalizeConfigSourceList'](_0x264268['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x40d8c8,_0x16de78)=>{const _0x11f949=this['_getIntegrationKey'](_0x16de78['type']);return _0x40d8c8[_0x11f949]||(_0x40d8c8[_0x11f949]=[]),_0x40d8c8[_0x11f949]['push'](_0x16de78),_0x40d8c8;},{});_0x264268['plugins']['has']('ImageInsertUI')&&_0x264268['commands']['get']('uploadcare')&&Object['entries'](_0x211e74)['forEach'](([_0x195c41,_0x4b94fd])=>{_0x264268['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x195c41,'observable':()=>_0x20676e,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4b94fd),'formViewCreator':()=>this['_createDropdownButtons'](_0x4b94fd),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4b94fd),'override':'assetManager'!==_0x195c41});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x43586a){const {locale:_0xa10a43}=this['editor'];return _0x43586a['map'](_0x1f23b5=>{const _0x41faa4=_(_0xa10a43,_0x1f23b5,'Insert');switch(_0x1f23b5){case i['Local']:return{'icon':_0x32fcb2,'type':i['Local'],..._0x41faa4};case i['URL']:return{'icon':_0x1a139f,'type':i['URL'],..._0x41faa4};case i['Dropbox']:return{'icon':_0x202267,'type':i['Dropbox'],..._0x41faa4};case i['Facebook']:return{'icon':_0x2e91ea,'type':i['Facebook'],..._0x41faa4};case i['GDrive']:return{'icon':_0x202a7e,'type':i['GDrive'],..._0x41faa4};case i['GPhotos']:return{'icon':_0x24de46,'type':i['GPhotos'],..._0x41faa4};case i['OneDrive']:return{'icon':_0xc2ad5b,'type':i['OneDrive'],..._0x41faa4};}});}['_getIntegrationKey'](_0x442f1c){switch(_0x442f1c){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4e78ee,_0x37827a){const _0x5acaac=this['editor'],_0x1899ed=new _0x4e78ee(_0x5acaac['locale']),_0x516132=_0x5acaac['commands']['get']('uploadcare');return _0x1899ed['bind']('isEnabled')['to'](_0x516132),_0x1899ed['on']('execute',()=>{_0x516132['execute'](_0x37827a);}),_0x1899ed;}['_createToolbarButton'](_0x270431){const {locale:_0x3ffcd3}=this['editor'],_0x398641=this['editor']['plugins']['get']('ImageInsertUI'),_0x7dc80=_0x270431[0x0],_0x529de7=this['_createButton'](_0x2ad41a,_0x7dc80['type']);return _0x529de7['icon']=_0x7dc80['icon'],_0x529de7['bind']('label')['to'](_0x398641,'isImageSelected',_0x167e97=>_(_0x3ffcd3,_0x7dc80['type'],_0x167e97?'Replace':'Insert')['text']),_0x529de7['tooltip']=!0x0,_0x529de7;}['_createDropdownButtons'](_0x444373){const {locale:_0x1a56eb}=this['editor'],_0x207903=this['editor']['plugins']['get']('ImageInsertUI');return _0x444373['map'](_0x34375a=>{const _0x562c16=this['_createButton'](_0x2ad41a,_0x34375a['type']);return _0x562c16['withText']=!0x0,_0x562c16['icon']=_0x34375a['icon'],_0x562c16['bind']('label')['to'](_0x207903,'isImageSelected',_0x189b85=>_(_0x1a56eb,_0x34375a['type'],_0x189b85?'Replace':'Insert')['text']),_0x562c16;});}['_createMenuBarButtons'](_0x45e5e2){return _0x45e5e2['map'](_0x534da6=>{const _0x3d7e1f=this['_createButton'](_0x58f1f5,_0x534da6['type']);return _0x3d7e1f['icon']=_0x534da6['icon'],_0x3d7e1f['label']=_0x534da6['shortText'],_0x3d7e1f;});}}class V extends _0xe784cc{['focusTracker'];['focusCycler'];constructor(_0x48bea2){super(_0x48bea2),this['focusTracker']=new _0x1c20bf(),this['focusCycler']=new _0x1a93fb({'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 V{constructor(_0x12f1d2,_0x57805a){super(_0x12f1d2),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-'+_0x57805a}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x52903a,_0x116178){const _0x1a89a2=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x694cbd=>_0x694cbd<=_0x116178)['map'](_0x1073ef=>_0x52903a['replace'](/\/$/,'')+'/-/resize/'+_0x1073ef+'x/\x20'+_0x1073ef+'w');return{'imageFallbackUrl':_0x52903a,'imageSources':[{'srcset':_0x1a89a2['join'](',\x20'),'sizes':'(max-width:\x20'+_0x116178+'px)\x20100vw,\x20'+_0x116178+'px','type':'image/webp'}]};}function F(_0x2ba9ac,_0xaaeb23,_0x1d7b62){const _0x2edfd1=_0x2ba9ac['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2edfd1?parseInt(_0x2edfd1[0x1],0xa):_0xaaeb23,'height':_0x2edfd1?parseInt(_0x2edfd1[0x2],0xa):_0x1d7b62};}function p(_0x156e3c,_0x1bdb1f){const _0x81a55d=new(_0x653c37())(),_0x114b35=_0x156e3c['plugins']['get']('ImageUtils'),_0x46613e=_0x156e3c['editing']['mapper']['toViewElement'](_0x1bdb1f),_0x3364c0=_0x114b35['findViewImgElement'](_0x46613e),_0x1e7852=_0x156e3c['editing']['view']['domConverter']['viewToDom'](_0x3364c0),_0x3ee342=_0x1bdb1f['getAttribute']('width'),_0x115fe7=_0x1bdb1f['getAttribute']('height'),_0x1ce951='image-processing';_0x156e3c['editing']['view']['change'](_0x1c84fb=>{_0x1c84fb['addClass'](_0x1ce951,_0x46613e),_0x1c84fb['setStyle']('aspect-ratio',_0x3ee342+'/'+_0x115fe7,_0x3364c0);}),_0x81a55d['listenTo'](_0x1e7852,'load',()=>{_0x81a55d['stopListening'](_0x1e7852,'load'),_0x156e3c['editing']['view']['change'](_0x3e73c2=>{_0x3e73c2['removeClass'](_0x1ce951,_0x46613e),_0x3e73c2['removeStyle']('aspect-ratio',_0x3364c0);});});}function R(_0x40f09e){if(Array['isArray'](_0x40f09e)){const _0x26ff7f=_0x40f09e['map'](R);return _0x59c9c1=>_0x26ff7f['some'](_0x71d565=>_0x71d565(_0x59c9c1));}if('origin'==_0x40f09e){const _0x52bab3=_0x5d7562['window']['location']['origin'];return _0x5455e9=>new URL(_0x5455e9,_0x5d7562['document']['baseURI'])['origin']==_0x52bab3;}return'function'==typeof _0x40f09e?_0x40f09e:_0x40f09e instanceof RegExp?_0x39a810=>!(!_0x39a810['match'](_0x40f09e)&&!_0x39a810['replace'](/^https?:\/\//,'')['match'](_0x40f09e)):()=>!0x1;}function M(_0x73db7d,_0x3e4e05){return _0x3e791f(_0x73db7d['target'])['includes'](_0x3e4e05);}class n extends/* #__PURE__ -- @preserve */
24
- _0x46efc5(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3be863,_0x2c2ed8,_0x12ce72){super(),this['_editor']=_0x3be863,this['_editing']=_0x2c2ed8,this['_dialog']=_0x3be863['plugins']['get'](_0x166b41),this['_api']=_0x2c2ed8['ctxElement']['getAPI'](),this['_type']=_0x12ce72,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:_0xf17426,model:_0x1a6145}=this['_editor'],_0x518343=_0x1a6145['document']['selection']['getSelectedElement'](),_0x176fc5=_0x518343&&(_0x518343['is']('element','imageBlock')||_0x518343['is']('element','imageInline'));this['_formView']=new S(_0xf17426,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x32fcb2,'title':_(_0xf17426,this['_type'],_0x176fc5?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x54da96['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x14b0df=>!M(_0x14b0df,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xa39dcd}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x263406=>{const _0x190993=_0xa39dcd['length'];for(const _0x9cb0a8 of _0xa39dcd){const _0x583e11=_0x9cb0a8===_0xa39dcd[_0x190993-0x1],{cdnUrl:_0x387d53,fileInfo:_0x123363}=_0x9cb0a8;if(!_0x387d53||!_0x123363)continue;const {width:_0x58a8f6,height:_0x2d890c}=_0x123363['imageInfo'],_0x1e6261=F(_0x387d53,_0x58a8f6,_0x2d890c),_0x15d99b=C(_0x387d53,_0x1e6261['width']),_0x566dcb={'id':_0x123363['uuid'],'type':'image','attributes':{'imageDimension':_0x1e6261,..._0x15d99b}};this['_insertAsset'](_0x566dcb,_0x583e11,_0x263406);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3a399d=>{'idle'===_0x3a399d['detail']['status']&&!_0x3a399d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3e9a4b,_0x1f958c,_0x348ce6){const _0x727e38=this['_editor']['model']['document']['selection'],_0x4ff890=_0x727e38['getSelectedElement'](),_0x2e8779=!(!_0x4ff890||!_0x4ff890['is']('element','imageInline'));_0x348ce6['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3e9a4b,_0x2e8779),_0x1f958c||_0x348ce6['setSelection'](_0x727e38['getLastPosition']());}['_insertImage'](_0x13bf10,_0x1edb52){const _0x5869ff=this['_editor'],{imageDimension:_0x4e1bc2,imageFallbackUrl:_0x15b397,imageSources:_0x3e14b5}=_0x13bf10['attributes'];_0x5869ff['execute']('insertImage',{'imageType':_0x1edb52?'imageInline':null,'source':{'uploadcareImageId':_0x13bf10['id'],'src':_0x15b397,'sources':_0x3e14b5,..._0x4e1bc2}});}}class w extends _0x130986{['_editing'];['_controller']=null;static get['requires'](){return[_0x166b41,o];}constructor(_0xea1660){super(_0xea1660),this['_editing']=_0xea1660['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2bf0a2){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2bf0a2);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xcde0f9,..._0x3507e7}){return _0x29d312(_0xcde0f9,_0x3507e7);}static['getInfo'](_0x21402e,_0x239a09){return _0x37f536(_0x21402e,_0x239a09);}}class f extends _0x591147{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5b6e2f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x531a9d=this['editor'];if(!!!_0x531a9d['config']['get']('uploadcare'))return;_0x531a9d['plugins']['get'](_0x5b6e2f)['createUploadAdapter']=_0x12474c=>new k(_0x12474c,_0x531a9d),_0x531a9d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2c93b0,{imageElement:_0x4749c1,data:_0x699bca})=>{_0x531a9d['model']['change'](_0x2b8293=>{_0x2b8293['setAttribute']('uploadcareImageId',_0x699bca['uploadcareImageId'],_0x4749c1);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5d548f,_0x339a81){this['loader']=_0x5d548f,this['editor']=_0x339a81,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x47b100=await this['loader']['file'];return j['upload']({'file':_0x47b100,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x75ece0=>{_0x75ece0&&_0x75ece0['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x75ece0['value']);}})['then'](async _0x28966b=>{const {imageFallbackUrl:_0x15f724,imageSources:_0x2beb66}=C(_0x28966b['cdnUrl'],_0x28966b['imageInfo']['width']);return{'uploadcareImageId':_0x28966b['uuid'],'default':_0x15f724,'sources':_0x2beb66};})['catch'](()=>{const _0x44b769=t('Cannot\x20upload\x20file:')+('\x20'+_0x47b100['name']+'.');return Promise['reject'](_0x44b769);});}['abort'](){this['controller']['abort']();}}class o extends _0x591147{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x166b41];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x20ab0b){super(_0x20ab0b),this['ucContextId']=_0x59d2ba();}['init'](){const _0x4f38e1=this['editor'];_0x4f38e1['commands']['add']('uploadcare',new w(_0x4f38e1));}['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 _0x577554=_0x5d7562['document']['querySelector']('input[uploadcare-file-input]');_0x577554&&_0x577554['remove']();}),async function(_0x32b2a0){const _0xe781d4=_0x4700a4([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1deeec=0x535f8c3a,_0x1fbf9a=0x5358f5ea^_0x1deeec,_0x11c276=window[_0x4700a4([0x44,0x61,0x74,0x65])][_0x4700a4([0x6e,0x6f,0x77])](),_0x6b5b0=_0x32b2a0[_0x4700a4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6d8f01=new window[(_0x4700a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x568d1f=>{_0x6b5b0[_0x4700a4([0x6f,0x6e,0x63,0x65])](_0x4700a4([0x72,0x65,0x61,0x64,0x79]),_0x568d1f);}),_0x2b0a4f={[_0x4700a4([0x6b,0x74,0x79])]:_0x4700a4([0x45,0x43]),[_0x4700a4([0x75,0x73,0x65])]:_0x4700a4([0x73,0x69,0x67]),[_0x4700a4([0x63,0x72,0x76])]:_0x4700a4([0x50,0x2d,0x32,0x35,0x36]),[_0x4700a4([0x78])]:_0x4700a4([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]),[_0x4700a4([0x79])]:_0x4700a4([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]),[_0x4700a4([0x61,0x6c,0x67])]:_0x4700a4([0x45,0x53,0x32,0x35,0x36])},_0xb640de=_0x6b5b0[_0x4700a4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4700a4([0x67,0x65,0x74])](_0x4700a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x272d28(){let _0x508e80,_0x97d78f=null,_0x177997=null;try{if(_0xb640de==_0x4700a4([0x47,0x50,0x4c]))return _0x4700a4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x508e80=_0x2fa670(),!_0x508e80)return _0x4700a4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x508e80[_0x4700a4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x177997=_0x587770(_0x508e80[_0x4700a4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x508e80[_0x4700a4([0x6a,0x74,0x69])])),await _0x2dd2ff()?_0x3841cf()?_0x596700()?_0x4700a4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2de82d()?(_0x508e80[_0x4700a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4700a4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x97d78f=_0x4a873d(_0x4700a4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x508e80[_0x4700a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4700a4([0x74,0x72,0x69,0x61,0x6c])&&(_0x97d78f=_0x4a873d(_0x4700a4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x35c7f7()):_0x4700a4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4700a4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4700a4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4700a4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x596700(){const _0x5b8a39=[_0x4700a4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4700a4([0x74,0x72,0x69,0x61,0x6c])][_0x4700a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x508e80[_0x4700a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x11c276/0x3e8:0xe10*_0x1fbf9a;return _0x508e80[_0x4700a4([0x65,0x78,0x70])]<_0x5b8a39;}function _0x3841cf(){const _0x41ae14=_0x508e80[_0x4700a4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x41ae14&&(!!_0x41ae14[_0x4700a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4700a4([0x2a]))||!!_0x41ae14[_0x4700a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4700a4([0x55,0x50,0x4c,0x43])));}function _0x2de82d(){const _0x2b4b00=_0x508e80[_0x4700a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b4b00||0x0==_0x2b4b00[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x46c92c}=new URL(window[_0x4700a4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2b4b00[_0x4700a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46c92c))return!0x0;const _0x4f89fd=_0x46c92c[_0x4700a4([0x73,0x70,0x6c,0x69,0x74])](_0x4700a4([0x2e]));return _0x2b4b00[_0x4700a4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4849ca=>_0x4849ca[_0x4700a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4700a4([0x2a])))[_0x4700a4([0x6d,0x61,0x70])](_0x19875d=>_0x19875d[_0x4700a4([0x73,0x70,0x6c,0x69,0x74])](_0x4700a4([0x2e])))[_0x4700a4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43ead1=>_0x43ead1[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4f89fd[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4700a4([0x6d,0x61,0x70])](_0x1cc99a=>Array(_0x4f89fd[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1cc99a[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4700a4([0x66,0x69,0x6c,0x6c])](_0x1cc99a[0x0]===_0x4700a4([0x2a])?_0x4700a4([0x2a]):'')[_0x4700a4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1cc99a))[_0x4700a4([0x73,0x6f,0x6d,0x65])](_0x5af592=>_0x4f89fd[_0x4700a4([0x65,0x76,0x65,0x72,0x79])]((_0x3ca6e4,_0x5c457c)=>_0x5af592[_0x5c457c]===_0x3ca6e4||_0x5af592[_0x5c457c]===_0x4700a4([0x2a])));}function _0x35c7f7(){return _0x97d78f&&_0x177997?new window[(_0x4700a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5bd6f7,_0x3410f0)=>{_0x97d78f[_0x4700a4([0x74,0x68,0x65,0x6e])](_0x5bd6f7,_0x3410f0),_0x177997[_0x4700a4([0x74,0x68,0x65,0x6e])](_0x658865=>{_0x658865!=_0x4700a4([0x56,0x61,0x6c,0x69,0x64])&&_0x5bd6f7(_0x658865);},_0x3410f0);}):_0x97d78f||_0x177997||_0x4700a4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x587770(_0x33cc28,_0x2b522b){return new window[(_0x4700a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a075b=>{if(_0x6ef1a2())return _0x3a075b(_0x4700a4([0x56,0x61,0x6c,0x69,0x64]));_0x589a63(),_0x6b5b0[_0x4700a4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4700a4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x32e8e7=!0x1;const _0x4a287f=_0x59d2ba();function _0x2bcb7d(_0x444a9f){return!!_0x444a9f&&(typeof _0x444a9f===_0x4700a4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x444a9f===_0x4700a4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x444a9f[_0x4700a4([0x74,0x68,0x65,0x6e])]===_0x4700a4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x444a9f[_0x4700a4([0x63,0x61,0x74,0x63,0x68])]===_0x4700a4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x316244(_0x29fa4e){_0x32c0c5(_0x29fa4e)[_0x4700a4([0x74,0x68,0x65,0x6e])](_0x2dddac=>{if(!_0x2dddac||_0x2dddac[_0x4700a4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4700a4([0x6f,0x6b]))return _0x4700a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b1a67(_0x2c0079(_0x4a287f+_0x2b522b))!=_0x2dddac[_0x4700a4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4700a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4700a4([0x56,0x61,0x6c,0x69,0x64]);})[_0x4700a4([0x74,0x68,0x65,0x6e])](_0x5406b4=>(_0x8156d8(),_0x5406b4),()=>{const _0x5e1c45=_0x388b10();return null==_0x5e1c45?(_0x8156d8(),_0x4700a4([0x56,0x61,0x6c,0x69,0x64])):_0x4700a4(_0x11c276-_0x5e1c45>(0x7753083a^_0x1deeec)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4700a4([0x74,0x68,0x65,0x6e])](_0x3a075b)[_0x4700a4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3a075b(_0x4700a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xdf2ed0=0x536962ba^_0x1deeec;function _0x8156d8(){const _0x21330=_0x4700a4([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b1a67(_0x2c0079(_0x33cc28)),_0x5e51d7=_0x4304af(_0x1b1a67(window[_0x4700a4([0x4d,0x61,0x74,0x68])][_0x4700a4([0x63,0x65,0x69,0x6c])](_0x11c276/_0xdf2ed0)));window[_0x4700a4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4700a4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21330,_0x5e51d7);}function _0x388b10(){const _0x5627b2=_0x4700a4([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b1a67(_0x2c0079(_0x33cc28)),_0x35fdae=window[_0x4700a4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4700a4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5627b2);return _0x35fdae?window[_0x4700a4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4304af(_0x35fdae),0x10)*_0xdf2ed0:null;}function _0x32c0c5(_0x30d109){return new window[(_0x4700a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14f76e,_0x2747eb)=>{_0x30d109[_0x4700a4([0x74,0x68,0x65,0x6e])](_0x14f76e,_0x2747eb),window[_0x4700a4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2747eb,0x535e58fa^_0x1deeec);});}}_0x6b5b0[_0x4700a4([0x6f,0x6e])](_0x4700a4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e98a4,_0x35d354)=>{if(_0x35d354[0x0]!=_0x33cc28)return _0x3a075b(_0x4700a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x35d354[0x1]={..._0x35d354[0x1],[_0x4700a4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4a287f};},{[_0x4700a4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4700a4([0x68,0x69,0x67,0x68])}),_0x6b5b0[_0x4700a4([0x6f,0x6e])](_0x4700a4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3602c5=>{_0x2bcb7d(_0x3602c5[_0x4700a4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x32e8e7=!0x0,_0x316244(_0x3602c5[_0x4700a4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4700a4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4700a4([0x6c,0x6f,0x77])}),_0x6d8f01[_0x4700a4([0x74,0x68,0x65,0x6e])](()=>{_0x32e8e7||_0x3a075b(_0x4700a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x6ef1a2(){return _0x6b5b0[_0x4700a4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4700a4([0x76,0x69,0x65,0x77])][_0x4700a4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4700a4([0x61,0x75,0x74,0x6f]);}function _0x589a63(){_0x6b5b0[_0x4700a4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4700a4([0x76,0x69,0x65,0x77])][_0x4700a4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4700a4([0x61,0x75,0x74,0x6f]);}}function _0x4a873d(_0x243e99){const _0x158d94=[new window[(_0x4700a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x215d5d=>setTimeout(_0x215d5d,0x5356b2f6^_0x1deeec)),_0x6d8f01[_0x4700a4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4700a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8ea423=>{let _0xa57bec=0x0;_0x6b5b0[_0x4700a4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4700a4([0x6f,0x6e])](_0x4700a4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xce1291,_0x213f60)=>{_0x213f60[0x0][_0x4700a4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xa57bec++,_0xa57bec==(0x535f8dc2^_0x1deeec)&&(_0x8ea423(),_0xce1291[_0x4700a4([0x6f,0x66,0x66])]());});}))];return window[_0x4700a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4700a4([0x72,0x61,0x63,0x65])](_0x158d94)[_0x4700a4([0x74,0x68,0x65,0x6e])](()=>_0x243e99);}async function _0xe781bd(){await _0x6d8f01,_0x6b5b0[_0x4700a4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4700a4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x205284,_0x6b5b0[_0x4700a4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4700a4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x205284,_0x6b5b0[_0x4700a4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4700a4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x320d00(_0x58e628){const _0x38b5ff=_0x30f25d();_0x6b5b0[_0x38b5ff]=_0x4700a4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x58e628,_0x58e628!=_0x4700a4([0x56,0x61,0x6c,0x69,0x64])&&_0xe781bd();}function _0x30f25d(){const _0x51b622=window[_0x4700a4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4700a4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4700a4([0x6e,0x6f,0x77])]())[_0x4700a4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4700a4([0x2e]),'');let _0x18f64b=_0x4700a4([0x68]);for(let _0xf4bf98=0x0;_0xf4bf98<_0x51b622[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf4bf98+=0x2){let _0x114566=window[_0x4700a4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51b622[_0x4700a4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf4bf98,_0xf4bf98+0x2));_0x114566>=_0xe781d4[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x114566-=_0xe781d4[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x18f64b+=_0xe781d4[_0x114566];}return _0x18f64b;}function _0x2fa670(){const _0x3dc47d=_0xb640de[_0x4700a4([0x73,0x70,0x6c,0x69,0x74])](_0x4700a4([0x2e]));if(0x3!=_0x3dc47d[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4b2bf0(_0x3dc47d[0x1]);function _0x4b2bf0(_0x38def7){const _0x669aee=_0x3b66e7(_0x38def7);return _0x669aee&&_0x4e89d1()?_0x669aee:null;function _0x4e89d1(){const _0xfeedf8=_0x669aee[_0x4700a4([0x6a,0x74,0x69])],_0x108007=window[_0x4700a4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfeedf8[_0x4700a4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xfeedf8[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5ce822={..._0x669aee,[_0x4700a4([0x6a,0x74,0x69])]:_0xfeedf8[_0x4700a4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xfeedf8[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5ce822[_0x4700a4([0x76,0x63])],_0x2c0079(_0x5ce822)==_0x108007;}}}async function _0x2dd2ff(){let _0x532fd5=!0x0;try{const _0x27bfeb=_0xb640de[_0x4700a4([0x73,0x70,0x6c,0x69,0x74])](_0x4700a4([0x2e])),[_0x2bdf7e,_0x5616b5,_0x195714]=_0x27bfeb;return _0x20b2cb(_0x2bdf7e),await _0x13d133(_0x2bdf7e,_0x5616b5,_0x195714),_0x532fd5;}catch{return!0x1;}function _0x20b2cb(_0x192710){const _0x3c031b=_0x3b66e7(_0x192710);_0x3c031b&&_0x3c031b[_0x4700a4([0x61,0x6c,0x67])]==_0x4700a4([0x45,0x53,0x32,0x35,0x36])||(_0x532fd5=!0x1);}async function _0x13d133(_0x1b08b9,_0x1d66e6,_0x42a414){const _0x18f842=window[_0x4700a4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4700a4([0x66,0x72,0x6f,0x6d])](_0x52a4ad(_0x42a414),_0x2a584e=>_0x2a584e[_0x4700a4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x28f433=new window[(_0x4700a4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4700a4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1b08b9+_0x4700a4([0x2e])+_0x1d66e6),_0x169436=window[_0x4700a4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4700a4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x169436)return;const _0x29e80e=await _0x169436[_0x4700a4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4700a4([0x6a,0x77,0x6b]),_0x2b0a4f,{[_0x4700a4([0x6e,0x61,0x6d,0x65])]:_0x4700a4([0x45,0x43,0x44,0x53,0x41]),[_0x4700a4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4700a4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4700a4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x169436[_0x4700a4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4700a4([0x6e,0x61,0x6d,0x65])]:_0x4700a4([0x45,0x43,0x44,0x53,0x41]),[_0x4700a4([0x68,0x61,0x73,0x68])]:{[_0x4700a4([0x6e,0x61,0x6d,0x65])]:_0x4700a4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x29e80e,_0x18f842,_0x28f433)||(_0x532fd5=!0x1);}}function _0x3b66e7(_0x28cdee){return _0x28cdee[_0x4700a4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4700a4([0x65,0x79]))?JSON[_0x4700a4([0x70,0x61,0x72,0x73,0x65])](_0x52a4ad(_0x28cdee)):null;}function _0x52a4ad(_0x44bfc3){return window[_0x4700a4([0x61,0x74,0x6f,0x62])](_0x44bfc3[_0x4700a4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4700a4([0x2b]))[_0x4700a4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4700a4([0x2f])));}function _0x2c0079(_0x3223d0){let _0x1d2668=0x1505;function _0xf17cf(_0x5d9a3f){for(let _0x55e4a1=0x0;_0x55e4a1<_0x5d9a3f[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55e4a1++){const _0x541d98=_0x5d9a3f[_0x4700a4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55e4a1);_0x1d2668=(_0x1d2668<<0x5)+_0x1d2668+_0x541d98,_0x1d2668&=_0x1d2668;}}function _0x248f0e(_0x3c9f12){Array[_0x4700a4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c9f12)?_0x3c9f12[_0x4700a4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x248f0e):_0x3c9f12&&typeof _0x3c9f12==_0x4700a4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4700a4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c9f12)[_0x4700a4([0x73,0x6f,0x72,0x74])]()[_0x4700a4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5f2d70,_0x5dbe19])=>{_0xf17cf(_0x5f2d70),_0x248f0e(_0x5dbe19);}):_0xf17cf(window[_0x4700a4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c9f12));}return _0x248f0e(_0x3223d0),_0x1d2668>>>0x0;}function _0x1b1a67(_0x1851e7){return _0x1851e7[_0x4700a4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4700a4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4700a4([0x30]));}function _0x4304af(_0x180333){return _0x180333[_0x4700a4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4700a4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4700a4([0x6a,0x6f,0x69,0x6e])]('');}function _0x205284(){}function _0x4700a4(_0x1685a3){return _0x1685a3['map'](_0x17777b=>String['fromCharCode'](_0x17777b))['join']('');}_0x320d00(await _0x272d28());}(this);}['_initSchema'](){const _0x14afd1=this['editor']['model']['schema'];_0x14afd1['isRegistered']('imageBlock')&&_0x14afd1['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x14afd1['isRegistered']('imageInline')&&_0x14afd1['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3b9b3d=this['editor'];_0x3b9b3d['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3b9b3d['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x17183e=>_0x17183e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x178cfc=_0x3b9b3d['commands']['get']('replaceImageSource');_0x178cfc&&this['listenTo'](_0x178cfc,'cleanupImage',(_0x383d84,[_0x418825,_0x55f724])=>{_0x418825['removeAttribute']('uploadcareImageId',_0x55f724);});}['_initConfig'](){const _0x1b7e0e=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2f7701=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x426134(_0x5d7562['document'],'uc-config',{..._0x1b7e0e,'pubkey':_0x2f7701,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4c4649=>{if('closeMax'==_0x4c4649)return'#uc-icon-arrow-down';},_0x5d7562['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x426134(_0x5d7562['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5d7562['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x45902a=this['editor']['commands']['get']('insertImage');_0x45902a&&this['listenTo'](_0x45902a,'execute',()=>{const _0x556205=this['editor']['model']['document']['selection']['getSelectedElement']();_0x556205&&_0x556205['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x556205);});});const _0x387e3d=this['editor']['commands']['get']('uploadcareImageReplace');_0x387e3d&&this['listenTo'](_0x387e3d,'execute',()=>{const _0x37cd6b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x37cd6b&&_0x37cd6b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x37cd6b);});});}}class tt extends _0x591147{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x374149){super(_0x374149),_0x374149['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4d39d4['defineComponents'](_0x4d39d4),this['_defineLocale']();}['_defineLocale'](){const _0x15cd18=this['editor']['config']['get']('uploadcare.locale'),_0x3aca5d=this['editor']['locale']['contentLanguage'];_0x15cd18&&_0x4d39d4['defineLocale'](_0x3aca5d,_0x15cd18);}}class ii extends _0xe784cc{constructor(_0x5b0537){super(_0x5b0537);const t=_0x5b0537['t'],_0x4ee64a=this['bindTemplate'],_0x57c33f=new _0xe5c68a();_0x57c33f['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':[_0x57c33f,{'text':_0x4ee64a['to']('imageUploadProgress',_0x1bfacc=>t('Loading\x20image...')+'\x20('+(_0x1bfacc||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0xe784cc{constructor(_0x189773){super(_0x189773);const t=_0x189773['t'];this['set']('errorType',null);const _0x419d11=new _0x2ad41a(_0x189773);_0x419d11['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x419d11['withText']=!0x0,_0x419d11['class']='ck-button-action',_0x419d11['on']('execute',()=>{this['fire']('retry');}),_0x419d11['bind']('isVisible')['to'](this,'errorType',_0x51c15c=>'NotFound'!==_0x51c15c);const _0x2987b6=new _0x3c2139();_0x2987b6['content']=_0x4d5ce6,_0x2987b6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4da778=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':[_0x2987b6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4da778['to']('errorType',_0x31ebc9=>t('NotFound'!==_0x31ebc9?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x419d11]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0xe784cc{constructor(_0x1ce7d4,_0x475d6b){super(_0x1ce7d4);const _0x4c45a4=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x475d6b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4c45a4['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2ee425,_0x2bf158,_0x239fb1){super(_0x2ee425),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2ee425),this['_errorView']=new ti(_0x2ee425),this['_editingView']=new ei(_0x2ee425,_0x239fb1),this['_focusableView']=new _0xe784cc(_0x2ee425),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2bf158),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'],_0x55913f=>{this['_addUploadcareImageEditorListeners'](_0x55913f);});}),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'](_0x59b51f,_0xb3d12e){const _0x607670='uc-cloud-image-editor',_0x31d240=_0x59b51f['querySelector'](_0x607670);if(_0x31d240)return _0xb3d12e(_0x31d240);const _0x486081=new MutationObserver(_0x1f43ad=>{const _0x346342=_0x1f43ad['filter'](_0x26996a=>_0x26996a['target']===_0x59b51f&&_0x26996a['addedNodes']['length']>0x0&&_0x26996a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x607670);_0x346342['length']&&(_0x486081['disconnect'](),_0xb3d12e(_0x346342[0x0]['addedNodes'][0x0]));});_0x486081['observe'](_0x59b51f,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1284f7){_0x1284f7['addEventListener']('apply',_0xa1f0ec=>{this['fire']('apply',{'imageSrc':_0xa1f0ec['detail']['cdnUrl']});}),_0x1284f7['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x46efc5(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x291468,_0xbfe40d,_0x491ba0){super(),this['_editor']=_0x291468,this['_dialog']=_0xbfe40d,this['_imageElement']=_0x491ba0,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 _0xadd773=this['_imageElement'],_0x5db9e0=_0xadd773['getAttribute']('uploadcareImageId'),_0xa437f6=_0xadd773['getAttribute']('src');if(_0x5db9e0)await this['_loadImageInfo'](_0x5db9e0,_0xa437f6);else{if(this['_imageCache']['has'](_0xa437f6)){const _0x5d6102=this['_imageCache']['get'](_0xa437f6);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5d6102['url'],this['imageDimension']=_0x5d6102['dimension'],this['imageId']=_0x5d6102['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x159500}=this['_editor'],t=_0x159500['t'],_0x461b84=new X(_0x159500,this['imageStatus'],this['_attributes']);_0x461b84['bind']('status')['to'](this,'imageStatus'),_0x461b84['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x461b84['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x461b84['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x461b84,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x166e76,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x461b84,'position':_0x54da96['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x461b84['focus']();},'onHide':()=>{_0x461b84['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x56c518=>!M(_0x56c518,_0x461b84['element'])}});}['_loadImageInfo'](_0x51e7e7,_0x4d2298){return j['getInfo'](_0x51e7e7,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4484ac=>{const {width:_0x18f13a,height:_0x1ba01b}=_0x4484ac['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4d2298,this['imageDimension']={'width':_0x18f13a,'height':_0x1ba01b},this['imageId']=_0x51e7e7;})['catch'](_0x1143c6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1143c6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x258cde,_0x1336cf){return this['_getImageAsFile'](_0x258cde)['then'](_0x3980bb=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x1336cf['signal'],'file':_0x3980bb,'onProgress':_0x21caec=>{_0x21caec&&_0x21caec['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x21caec['value']));}}))['then'](_0x5985c4=>{const {width:_0x2cd10f,height:_0x139ab3}=_0x5985c4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5985c4['cdnUrl'],this['imageDimension']={'width':_0x2cd10f,'height':_0x139ab3},this['imageId']=_0x5985c4['uuid'],this['imageUploadProgress']=null;const _0x10b404=_0x258cde['getAttribute']('src');this['_imageCache']['set'](_0x10b404,{'id':_0x5985c4['uuid'],'url':_0x5985c4['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1bffae=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1bffae['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x341e2f,_0x34d964){_0x341e2f['on']('apply',(_0x36c525,_0x21241a)=>{this['_replaceImage'](_0x34d964,_0x21241a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x341e2f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x341e2f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4ea477,_0x43afea,_0x3f97fc){const _0x5601c2=this['_editor'],{width:_0x257ed7,height:_0xdf9b5b}=F(_0x43afea,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x888c91,imageSources:_0x4bc266}=C(_0x43afea,_0x257ed7);_0x5601c2['model']['change'](_0x261540=>{if('$graveyard'===_0x4ea477['root']['rootName']){_0x5601c2['execute']('insertImage',{'imageType':_0x4ea477['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4ea477['getAttributes']()),'uploadcareImageId':_0x3f97fc,'src':_0x888c91,'sources':_0x4bc266,'width':_0x257ed7,'height':_0xdf9b5b}});const _0x312a05=_0x4ea477['getChildren']();_0x4ea477=_0x5601c2['model']['document']['selection']['getSelectedElement']();for(const _0x3ed745 of _0x312a05)_0x261540['append'](_0x261540['cloneElement'](_0x3ed745),_0x4ea477);}else _0x261540['setSelection'](_0x4ea477,'on'),_0x5601c2['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4ea477['getAttributes']()),'uploadcareImageId':_0x3f97fc,'src':_0x888c91,'sources':_0x4bc266,'width':_0x257ed7,'height':_0xdf9b5b},_0x4ea477);_0x261540['setSelection'](_0x4ea477,'on');});}async['_getImageAsFile'](_0x257b47){const _0x576dc9=_0x5d7562['window'],_0xe1ebde=_0x5d7562['document']['location']['href'],_0x273887=new _0x576dc9['URL'](_0x257b47['getAttribute']('src'),_0xe1ebde);if('data:'===_0x273887['protocol']){const _0xbc7309=_0x273887['href']['split'](','),_0x13b1d4=_0xbc7309[0x0]['match'](/:(.*?);/)[0x1],_0x20d45b=_0x13b1d4['split']('/')[0x1],_0x9f9d0c=_0x576dc9['atob'](_0xbc7309[_0xbc7309['length']-0x1]);let _0x3290ec=_0x9f9d0c['length'];const _0x1b577e=new _0x576dc9['Uint8Array'](_0x3290ec);for(;_0x3290ec--;)_0x1b577e[_0x3290ec]=_0x9f9d0c['charCodeAt'](_0x3290ec);return new _0x576dc9['File']([_0x1b577e],'image.'+_0x20d45b,{'type':_0x13b1d4});}const _0x397a5e=_0x273887['href']['split']('/'),_0x5d27a2=_0x397a5e[_0x397a5e['length']-0x1],_0x44bf57=_0x5d27a2['split']('.')[0x1];return _0x576dc9['fetch'](_0x273887['href'])['then'](_0x8406b7=>_0x8406b7['clone']()['blob']())['then'](_0x27bb67=>new _0x576dc9['File']([_0x27bb67],_0x5d27a2,{'type':'image/'+_0x44bf57}));}}class N extends _0x130986{['imageEditController'];static get['requires'](){return[_0x166b41];}['_isEditable'];constructor(_0x4010de){super(_0x4010de),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x34c5e9){const _0x52c9d7=R(_0x34c5e9);return _0x147a18=>!(!_0x147a18||!_0x147a18['is']('element','imageBlock')&&!_0x147a18['is']('element','imageInline'))&&(!!_0x147a18['hasAttribute']('uploadcareImageId')||!!_0x147a18['hasAttribute']('src')&&_0x52c9d7(_0x147a18['getAttribute']('src')));}(_0x4010de['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x9cc1a0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x9cc1a0);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2752f5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2752f5&&(_0x2752f5['is']('element','imageBlock')||_0x2752f5['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x166b41),_0x2752f5),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x130986{['refresh'](){const _0x2efd9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2efd9&&(_0x2efd9['is']('element','imageBlock')||_0x2efd9['is']('element','imageInline')));}['execute'](_0x5b6f9e){const _0x3cd409=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x472350=>{_0x472350['setAttributes'](_0x5b6f9e,_0x3cd409),_0x472350['removeAttribute']('srcset',_0x3cd409),_0x472350['removeAttribute']('sizes',_0x3cd409);});}}class m extends _0x591147{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x5c25f5,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3d93de}=this;_0x3d93de['commands']['add']('uploadcareImageEdit',new N(_0x3d93de)),_0x3d93de['commands']['add']('uploadcareImageReplace',new O(_0x3d93de));}}class g extends _0x591147{['_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 _0x168cbb=this['editor'];_0x168cbb['ui']['componentFactory']['add']('uploadcareImageEdit',_0x542c36=>{const _0x28e5d6=_0x168cbb['commands']['get']('uploadcareImageEdit'),_0x359092=new _0x2ad41a(_0x542c36),t=_0x542c36['t'];return _0x359092['set']({'icon':_0x166e76,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x359092['bind']('isEnabled')['to'](_0x28e5d6),_0x359092['bind']('isOn')['to'](_0x28e5d6,'isActive'),this['listenTo'](_0x359092,'execute',()=>{_0x168cbb['execute']('uploadcareImageEdit'),_0x168cbb['editing']['view']['focus']();}),_0x359092;}),this['_initConfig']();}['_initConfig'](){const _0x2bc8c5=_0x426134(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2bc8c5),this['listenTo'](this['editor'],'destroy',()=>{_0x2bc8c5['remove']();});}}class et extends _0x591147{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0x1e6ece,Command as _0x3c3ce8}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3c0060,IconGooglePhotos as _0x1d169d,IconGoogleDrive as _0x18316a,IconFacebook as _0x129811,IconDropbox as _0x18bb0c,IconUploadcareLink as _0x476590,IconUploadcareImageUpload as _0x335e0f,IconError as _0x3141a3,IconUploadcareImageEdit as _0x4c1bb5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xdd8139,MenuBarMenuListItemButtonView as _0x59db1d,View as _0x56727e,FocusCycler as _0x343a3c,Dialog as _0x429fed,DialogViewPosition as _0xe9f42c,SpinnerView as _0x541244,IconView as _0x57aae3,Notification as _0x50e817}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x370aba,DomEmitterMixin as _0x2b9d4f,global as _0x13c771,getAncestors as _0x53f3fe,ObservableMixin as _0x2ce3f3,uid as _0x55fef8,createElement as _0x3d35be}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x28695e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x13afdd,info as _0x2a12ad}from'@uploadcare/upload-client';import*as _0x33ffae from'@uploadcare/file-uploader';var i=function(_0x3c2efb){return _0x3c2efb['Local']='local',_0x3c2efb['URL']='url',_0x3c2efb['Dropbox']='dropbox',_0x3c2efb['GDrive']='gdrive',_0x3c2efb['Facebook']='facebook',_0x3c2efb['GPhotos']='gphotos',_0x3c2efb['OneDrive']='onedrive',_0x3c2efb;}({});function _(_0x3a238d,_0xa5a635,_0x1f0948){const t=_0x3a238d['t'],_0x4c8b31=_0x3a238d['t'];switch(_0xa5a635){case i['Local']:return{'text':_0x4c8b31('Insert'===_0x1f0948?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4c8b31('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x1f0948?_0x4c8b31('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4c8b31('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x1f0948?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x1f0948?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x1f0948?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x1f0948?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x1f0948?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xa5a635;}}class e extends _0x1e6ece{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x13dccd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f8d7f;for(const _0x505bf0 in _0x13dccd){const _0x48fdc8=_0x505bf0,_0x455160=_0x13dccd[_0x48fdc8];if('uploadcareLicenseKeyValid'==_0x455160||'uploadcareLicenseKeyInvalid'==_0x455160||'uploadcareLicenseKeyExpired'==_0x455160||'uploadcareLicenseKeyDomainLimit'==_0x455160||'uploadcareLicenseKeyNotAllowed'==_0x455160||'uploadcareLicenseKeyEvaluationLimit'==_0x455160||'uploadcareLicenseKeyTrialLimit'==_0x455160||'uploadcareLicenseKeyUsageLimit'==_0x455160){delete _0x13dccd[_0x48fdc8],_0x2f8d7f=_0x455160,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2f8d7f&&_0x13dccd['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2f8d7f&&_0x13dccd['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2f8d7f&&_0x13dccd['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2f8d7f&&_0x13dccd['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2f8d7f&&_0x13dccd['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2f8d7f&&_0x13dccd['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2f8d7f&&_0x13dccd['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2e6dd1}=this,_0xc17c9=_0x2e6dd1['commands']['get']('uploadcare');if(!_0xc17c9)return;const _0x97800f=this['_normalizeConfigSourceList'](_0x2e6dd1['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x74f13a,_0x3abeed)=>{const _0xb33774=this['_getIntegrationKey'](_0x3abeed['type']);return _0x74f13a[_0xb33774]||(_0x74f13a[_0xb33774]=[]),_0x74f13a[_0xb33774]['push'](_0x3abeed),_0x74f13a;},{});_0x2e6dd1['plugins']['has']('ImageInsertUI')&&_0x2e6dd1['commands']['get']('uploadcare')&&Object['entries'](_0x97800f)['forEach'](([_0x4ce092,_0x35619e])=>{_0x2e6dd1['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4ce092,'observable':()=>_0xc17c9,'buttonViewCreator':()=>this['_createToolbarButton'](_0x35619e),'formViewCreator':()=>this['_createDropdownButtons'](_0x35619e),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x35619e),'override':'assetManager'!==_0x4ce092});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1f1829){const {locale:_0x2a8be7}=this['editor'];return _0x1f1829['map'](_0x2ff2ab=>{const _0x5561c2=_(_0x2a8be7,_0x2ff2ab,'Insert');switch(_0x2ff2ab){case i['Local']:return{'icon':_0x335e0f,'type':i['Local'],..._0x5561c2};case i['URL']:return{'icon':_0x476590,'type':i['URL'],..._0x5561c2};case i['Dropbox']:return{'icon':_0x18bb0c,'type':i['Dropbox'],..._0x5561c2};case i['Facebook']:return{'icon':_0x129811,'type':i['Facebook'],..._0x5561c2};case i['GDrive']:return{'icon':_0x18316a,'type':i['GDrive'],..._0x5561c2};case i['GPhotos']:return{'icon':_0x1d169d,'type':i['GPhotos'],..._0x5561c2};case i['OneDrive']:return{'icon':_0x3c0060,'type':i['OneDrive'],..._0x5561c2};}});}['_getIntegrationKey'](_0x446572){switch(_0x446572){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x94eb6,_0x4ecb9){const _0x5862f3=this['editor'],_0x318572=new _0x94eb6(_0x5862f3['locale']),_0x330d78=_0x5862f3['commands']['get']('uploadcare');return _0x318572['bind']('isEnabled')['to'](_0x330d78),_0x318572['on']('execute',()=>{_0x330d78['execute'](_0x4ecb9);}),_0x318572;}['_createToolbarButton'](_0xc9ed8a){const {locale:_0x3f712b}=this['editor'],_0x360937=this['editor']['plugins']['get']('ImageInsertUI'),_0xc86c4f=_0xc9ed8a[0x0],_0x129c1f=this['_createButton'](_0xdd8139,_0xc86c4f['type']);return _0x129c1f['icon']=_0xc86c4f['icon'],_0x129c1f['bind']('label')['to'](_0x360937,'isImageSelected',_0x5aeeb5=>_(_0x3f712b,_0xc86c4f['type'],_0x5aeeb5?'Replace':'Insert')['text']),_0x129c1f['tooltip']=!0x0,_0x129c1f;}['_createDropdownButtons'](_0x1cb25c){const {locale:_0x212995}=this['editor'],_0x2850cf=this['editor']['plugins']['get']('ImageInsertUI');return _0x1cb25c['map'](_0x53aa82=>{const _0xa40ff2=this['_createButton'](_0xdd8139,_0x53aa82['type']);return _0xa40ff2['withText']=!0x0,_0xa40ff2['icon']=_0x53aa82['icon'],_0xa40ff2['bind']('label')['to'](_0x2850cf,'isImageSelected',_0x44c3c6=>_(_0x212995,_0x53aa82['type'],_0x44c3c6?'Replace':'Insert')['text']),_0xa40ff2;});}['_createMenuBarButtons'](_0x205186){return _0x205186['map'](_0x3a0ed8=>{const _0x2dcfd3=this['_createButton'](_0x59db1d,_0x3a0ed8['type']);return _0x2dcfd3['icon']=_0x3a0ed8['icon'],_0x2dcfd3['label']=_0x3a0ed8['shortText'],_0x2dcfd3;});}}class F extends _0x56727e{['focusTracker'];['focusCycler'];constructor(_0x3c9c60){super(_0x3c9c60),this['focusTracker']=new _0x370aba(),this['focusCycler']=new _0x343a3c({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x1e9a1a,_0x2ec76f){super(_0x1e9a1a),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader-'+_0x2ec76f}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x4b7c4b,_0xf73a83){const _0x5924ec=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x118ff2=>_0x118ff2<=_0xf73a83)['map'](_0x2fdcd4=>_0x4b7c4b['replace'](/\/$/,'')+'/-/resize/'+_0x2fdcd4+'x/\x20'+_0x2fdcd4+'w');return{'imageFallbackUrl':_0x4b7c4b,'imageSources':[{'srcset':_0x5924ec['join'](',\x20'),'sizes':'(max-width:\x20'+_0xf73a83+'px)\x20100vw,\x20'+_0xf73a83+'px','type':'image/webp'}]};}function S(_0x19ce8e,_0x241286,_0x484823){const _0x42f168=_0x19ce8e['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x42f168?parseInt(_0x42f168[0x1],0xa):_0x241286,'height':_0x42f168?parseInt(_0x42f168[0x2],0xa):_0x484823};}function p(_0x52d5f5,_0x249278){const _0x37b6ba=new(_0x2b9d4f())(),_0x31aa25=_0x52d5f5['plugins']['get']('ImageUtils'),_0x42d974=_0x52d5f5['editing']['mapper']['toViewElement'](_0x249278),_0x5357d6=_0x31aa25['findViewImgElement'](_0x42d974),_0x29c0cc=_0x52d5f5['editing']['view']['domConverter']['viewToDom'](_0x5357d6),_0x2c6134=_0x249278['getAttribute']('width'),_0x3570b1=_0x249278['getAttribute']('height'),_0x228caa='image-processing';_0x52d5f5['editing']['view']['change'](_0x3f2d28=>{_0x3f2d28['addClass'](_0x228caa,_0x42d974),_0x3f2d28['setStyle']('aspect-ratio',_0x2c6134+'/'+_0x3570b1,_0x5357d6);}),_0x37b6ba['listenTo'](_0x29c0cc,'load',()=>{_0x37b6ba['stopListening'](_0x29c0cc,'load'),_0x52d5f5['editing']['view']['change'](_0x509d22=>{_0x509d22['removeClass'](_0x228caa,_0x42d974),_0x509d22['removeStyle']('aspect-ratio',_0x5357d6);});});}function G(_0x501765){if(Array['isArray'](_0x501765)){const _0x7e4aa4=_0x501765['map'](G);return _0x56a710=>_0x7e4aa4['some'](_0x265ce6=>_0x265ce6(_0x56a710));}if('origin'==_0x501765){const _0x312cf0=_0x13c771['window']['location']['origin'];return _0x26b5a4=>new URL(_0x26b5a4,_0x13c771['document']['baseURI'])['origin']==_0x312cf0;}return'function'==typeof _0x501765?_0x501765:_0x501765 instanceof RegExp?_0x48ff07=>!(!_0x48ff07['match'](_0x501765)&&!_0x48ff07['replace'](/^https?:\/\//,'')['match'](_0x501765)):()=>!0x1;}function A(_0x11a0be,_0xcfa528){return _0x53f3fe(_0x11a0be['target'])['includes'](_0xcfa528);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x2ce3f3(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x26b563,_0x4c5ef9,_0x4a1a61){super(),this['_editor']=_0x26b563,this['_editing']=_0x4c5ef9,this['_dialog']=_0x26b563['plugins']['get'](_0x429fed),this['_api']=_0x4c5ef9['ctxElement']['getAPI'](),this['_type']=_0x4a1a61,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x2194be,model:_0x5b4e83}=this['_editor'],_0x37c51d=_0x5b4e83['document']['selection']['getSelectedElement'](),_0x167cb4=_0x37c51d&&(_0x37c51d['is']('element','imageBlock')||_0x37c51d['is']('element','imageInline'));this['_formView']=new x(_0x2194be,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x335e0f,'title':_(_0x2194be,this['_type'],_0x167cb4?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xe9f42c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2f98ac=>!A(_0x2f98ac,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1d7ea4}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3d8329=>{const _0x302204=_0x1d7ea4['length'];for(const _0x5a273b of _0x1d7ea4){const _0x8c86ad=_0x5a273b===_0x1d7ea4[_0x302204-0x1],{cdnUrl:_0x3c934f,fileInfo:_0x4ca7b7}=_0x5a273b;if(!_0x3c934f||!_0x4ca7b7)continue;const {width:_0x2e59ef,height:_0x4d4556}=_0x4ca7b7['imageInfo'],_0x13e427=S(_0x3c934f,_0x2e59ef,_0x4d4556),_0x7003bf=C(_0x3c934f,_0x13e427['width']),_0x30020b={'id':_0x4ca7b7['uuid'],'type':'image','attributes':{'imageDimension':_0x13e427,..._0x7003bf}};this['_insertAsset'](_0x30020b,_0x8c86ad,_0x3d8329);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x186597=>{'idle'===_0x186597['detail']['status']&&!_0x186597['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2a2255,_0x3e07ac,_0x40f6bf){const _0x7ea83c=this['_editor']['model']['document']['selection'],_0x1d550d=_0x7ea83c['getSelectedElement'](),_0x333f5f=!(!_0x1d550d||!_0x1d550d['is']('element','imageInline'));_0x40f6bf['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2a2255,_0x333f5f),_0x3e07ac||_0x40f6bf['setSelection'](_0x7ea83c['getLastPosition']());}['_insertImage'](_0x120757,_0x4276ea){const _0x464eed=this['_editor'],{imageDimension:_0x4f0f10,imageFallbackUrl:_0x5483be,imageSources:_0x35ac48}=_0x120757['attributes'];_0x464eed['execute']('insertImage',{'imageType':_0x4276ea?'imageInline':null,'source':{'uploadcareImageId':_0x120757['id'],'src':_0x5483be,'sources':_0x35ac48,..._0x4f0f10}});}}class w extends _0x3c3ce8{['_editing'];['_controller']=null;static get['requires'](){return[_0x429fed,o];}constructor(_0x51dfc7){super(_0x51dfc7),this['_editing']=_0x51dfc7['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x7e1f7f){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x7e1f7f);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5ee472,..._0x513bf9}){return _0x13afdd(_0x5ee472,_0x513bf9);}static['getInfo'](_0x3fa507,_0x1dc1b1){return _0x2a12ad(_0x3fa507,_0x1dc1b1);}}class f extends _0x1e6ece{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x28695e,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x206d51=this['editor'];if(!!!_0x206d51['config']['get']('uploadcare'))return;_0x206d51['plugins']['get'](_0x28695e)['createUploadAdapter']=_0x2a5dd3=>new k(_0x2a5dd3,_0x206d51),_0x206d51['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xd086d3,{imageElement:_0x1c0aa3,data:_0x1e05eb})=>{_0x206d51['model']['change'](_0x2129be=>{_0x2129be['setAttribute']('uploadcareImageId',_0x1e05eb['uploadcareImageId'],_0x1c0aa3);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xff05a2,_0x355cea){this['loader']=_0xff05a2,this['editor']=_0x355cea,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5bdbce=await this['loader']['file'];return j['upload']({'file':_0x5bdbce,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x474a2a=>{_0x474a2a&&_0x474a2a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x474a2a['value']);}})['then'](async _0x1b813b=>{const {imageFallbackUrl:_0xca0a08,imageSources:_0x5dbcd3}=C(_0x1b813b['cdnUrl'],_0x1b813b['imageInfo']['width']);return{'uploadcareImageId':_0x1b813b['uuid'],'default':_0xca0a08,'sources':_0x5dbcd3};})['catch'](()=>{const _0x1c9e02=t('Cannot\x20upload\x20file:')+('\x20'+_0x5bdbce['name']+'.');return Promise['reject'](_0x1c9e02);});}['abort'](){this['controller']['abort']();}}class o extends _0x1e6ece{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x429fed];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x56dbf5){super(_0x56dbf5),this['ucContextId']=_0x55fef8();}['init'](){const _0x28b4bd=this['editor'];_0x28b4bd['commands']['add']('uploadcare',new w(_0x28b4bd));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x313034=_0x13c771['document']['querySelector']('input[uploadcare-file-input]');_0x313034&&_0x313034['remove']();}),async function(_0x3df6ec){const _0x5134bd=_0x31c27b([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1cd1e1=0x535f8c3a,_0x468ccd=0x5358f5d2^_0x1cd1e1,_0x137d19=window[_0x31c27b([0x44,0x61,0x74,0x65])][_0x31c27b([0x6e,0x6f,0x77])](),_0x4c581b=_0x3df6ec[_0x31c27b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2232a7=new window[(_0x31c27b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5db1dd=>{_0x4c581b[_0x31c27b([0x6f,0x6e,0x63,0x65])](_0x31c27b([0x72,0x65,0x61,0x64,0x79]),_0x5db1dd);}),_0x2b4d38={[_0x31c27b([0x6b,0x74,0x79])]:_0x31c27b([0x45,0x43]),[_0x31c27b([0x75,0x73,0x65])]:_0x31c27b([0x73,0x69,0x67]),[_0x31c27b([0x63,0x72,0x76])]:_0x31c27b([0x50,0x2d,0x32,0x35,0x36]),[_0x31c27b([0x78])]:_0x31c27b([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x31c27b([0x79])]:_0x31c27b([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x31c27b([0x61,0x6c,0x67])]:_0x31c27b([0x45,0x53,0x32,0x35,0x36])},_0x552f3c=_0x4c581b[_0x31c27b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x31c27b([0x67,0x65,0x74])](_0x31c27b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3060c6(){let _0xdaaba7,_0x4e2f6b=null,_0xeec287=null;try{if(_0x552f3c==_0x31c27b([0x47,0x50,0x4c]))return _0x31c27b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xdaaba7=_0x8629f5(),!_0xdaaba7)return _0x31c27b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xdaaba7[_0x31c27b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xeec287=_0x3ff8f2(_0xdaaba7[_0x31c27b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xdaaba7[_0x31c27b([0x6a,0x74,0x69])])),await _0x2b1ffc()?_0x4756fa()?_0xdd52d7()?_0x31c27b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4d21f6()?(_0xdaaba7[_0x31c27b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31c27b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e2f6b=_0x108284(_0x31c27b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xdaaba7[_0x31c27b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31c27b([0x74,0x72,0x69,0x61,0x6c])&&(_0x4e2f6b=_0x108284(_0x31c27b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3dd0a0()):_0x31c27b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x31c27b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x31c27b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x31c27b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xdd52d7(){const _0x2096c8=[_0x31c27b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x31c27b([0x74,0x72,0x69,0x61,0x6c])][_0x31c27b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdaaba7[_0x31c27b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x137d19/0x3e8:0xe10*_0x468ccd;return _0xdaaba7[_0x31c27b([0x65,0x78,0x70])]<_0x2096c8;}function _0x4756fa(){const _0x2e1534=_0xdaaba7[_0x31c27b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2e1534&&(!!_0x2e1534[_0x31c27b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31c27b([0x2a]))||!!_0x2e1534[_0x31c27b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31c27b([0x55,0x50,0x4c,0x43])));}function _0x4d21f6(){const _0x27d01e=_0xdaaba7[_0x31c27b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x27d01e||0x0==_0x27d01e[_0x31c27b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x29cbc0}=new URL(window[_0x31c27b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x27d01e[_0x31c27b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29cbc0))return!0x0;const _0x28e2d0=_0x29cbc0[_0x31c27b([0x73,0x70,0x6c,0x69,0x74])](_0x31c27b([0x2e]));return _0x27d01e[_0x31c27b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x160690=>_0x160690[_0x31c27b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31c27b([0x2a])))[_0x31c27b([0x6d,0x61,0x70])](_0x1bd2ab=>_0x1bd2ab[_0x31c27b([0x73,0x70,0x6c,0x69,0x74])](_0x31c27b([0x2e])))[_0x31c27b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x419d29=>_0x419d29[_0x31c27b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x28e2d0[_0x31c27b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x31c27b([0x6d,0x61,0x70])](_0x505475=>Array(_0x28e2d0[_0x31c27b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x505475[_0x31c27b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x31c27b([0x66,0x69,0x6c,0x6c])](_0x505475[0x0]===_0x31c27b([0x2a])?_0x31c27b([0x2a]):'')[_0x31c27b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x505475))[_0x31c27b([0x73,0x6f,0x6d,0x65])](_0x237ad6=>_0x28e2d0[_0x31c27b([0x65,0x76,0x65,0x72,0x79])]((_0x2678b6,_0x615516)=>_0x237ad6[_0x615516]===_0x2678b6||_0x237ad6[_0x615516]===_0x31c27b([0x2a])));}function _0x3dd0a0(){return _0x4e2f6b&&_0xeec287?new window[(_0x31c27b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e9d4d,_0x1ce850)=>{_0x4e2f6b[_0x31c27b([0x74,0x68,0x65,0x6e])](_0x2e9d4d,_0x1ce850),_0xeec287[_0x31c27b([0x74,0x68,0x65,0x6e])](_0x4b05a5=>{_0x4b05a5!=_0x31c27b([0x56,0x61,0x6c,0x69,0x64])&&_0x2e9d4d(_0x4b05a5);},_0x1ce850);}):_0x4e2f6b||_0xeec287||_0x31c27b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3ff8f2(_0x5acedd,_0x498ed8){return new window[(_0x31c27b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5795fc=>{if(_0x40f78c())return _0x5795fc(_0x31c27b([0x56,0x61,0x6c,0x69,0x64]));_0x297f6b(),_0x4c581b[_0x31c27b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x31c27b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x37a972=!0x1;const _0xce3c1c=_0x55fef8();function _0x44ee54(_0x39c7d4){return!!_0x39c7d4&&(typeof _0x39c7d4===_0x31c27b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x39c7d4===_0x31c27b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x39c7d4[_0x31c27b([0x74,0x68,0x65,0x6e])]===_0x31c27b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x39c7d4[_0x31c27b([0x63,0x61,0x74,0x63,0x68])]===_0x31c27b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x55adac(_0x596607){_0xb9bca8(_0x596607)[_0x31c27b([0x74,0x68,0x65,0x6e])](_0x3907d2=>{if(!_0x3907d2||_0x3907d2[_0x31c27b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x31c27b([0x6f,0x6b]))return _0x31c27b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x29e851(_0x22fd85(_0xce3c1c+_0x498ed8))!=_0x3907d2[_0x31c27b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x31c27b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x31c27b([0x56,0x61,0x6c,0x69,0x64]);})[_0x31c27b([0x74,0x68,0x65,0x6e])](_0x1d602a=>(_0x2bd69b(),_0x1d602a),()=>{const _0x26f2b6=_0x320b3e();return null==_0x26f2b6?(_0x2bd69b(),_0x31c27b([0x56,0x61,0x6c,0x69,0x64])):_0x31c27b(_0x137d19-_0x26f2b6>(0x7753083a^_0x1cd1e1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x31c27b([0x74,0x68,0x65,0x6e])](_0x5795fc)[_0x31c27b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5795fc(_0x31c27b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3863d8=0x536962ba^_0x1cd1e1;function _0x2bd69b(){const _0x2388f9=_0x31c27b([0x6c,0x6c,0x63,0x74,0x2d])+_0x29e851(_0x22fd85(_0x5acedd)),_0x2e733c=_0x24e9a6(_0x29e851(window[_0x31c27b([0x4d,0x61,0x74,0x68])][_0x31c27b([0x63,0x65,0x69,0x6c])](_0x137d19/_0x3863d8)));window[_0x31c27b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31c27b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2388f9,_0x2e733c);}function _0x320b3e(){const _0x3ce3aa=_0x31c27b([0x6c,0x6c,0x63,0x74,0x2d])+_0x29e851(_0x22fd85(_0x5acedd)),_0x5de6e4=window[_0x31c27b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31c27b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ce3aa);return _0x5de6e4?window[_0x31c27b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24e9a6(_0x5de6e4),0x10)*_0x3863d8:null;}function _0xb9bca8(_0x261e97){return new window[(_0x31c27b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c5211,_0x1f38ad)=>{_0x261e97[_0x31c27b([0x74,0x68,0x65,0x6e])](_0x3c5211,_0x1f38ad),window[_0x31c27b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1f38ad,0x535e58fa^_0x1cd1e1);});}}_0x4c581b[_0x31c27b([0x6f,0x6e])](_0x31c27b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2d878a,_0x39b048)=>{if(_0x39b048[0x0]!=_0x5acedd)return _0x5795fc(_0x31c27b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x39b048[0x1]={..._0x39b048[0x1],[_0x31c27b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xce3c1c};},{[_0x31c27b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31c27b([0x68,0x69,0x67,0x68])}),_0x4c581b[_0x31c27b([0x6f,0x6e])](_0x31c27b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x36d1ec=>{_0x44ee54(_0x36d1ec[_0x31c27b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x37a972=!0x0,_0x55adac(_0x36d1ec[_0x31c27b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x31c27b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31c27b([0x6c,0x6f,0x77])}),_0x2232a7[_0x31c27b([0x74,0x68,0x65,0x6e])](()=>{_0x37a972||_0x5795fc(_0x31c27b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x40f78c(){return _0x4c581b[_0x31c27b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31c27b([0x76,0x69,0x65,0x77])][_0x31c27b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x31c27b([0x61,0x75,0x74,0x6f]);}function _0x297f6b(){_0x4c581b[_0x31c27b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31c27b([0x76,0x69,0x65,0x77])][_0x31c27b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31c27b([0x61,0x75,0x74,0x6f]);}}function _0x108284(_0x3a23ad){const _0x2ecf8a=[new window[(_0x31c27b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42d1ea=>setTimeout(_0x42d1ea,0x5356b2f6^_0x1cd1e1)),_0x2232a7[_0x31c27b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x31c27b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b60b4=>{let _0x3be5f5=0x0;_0x4c581b[_0x31c27b([0x6d,0x6f,0x64,0x65,0x6c])][_0x31c27b([0x6f,0x6e])](_0x31c27b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4ae4a6,_0x2d04f4)=>{_0x2d04f4[0x0][_0x31c27b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3be5f5++,_0x3be5f5==(0x535f8dc2^_0x1cd1e1)&&(_0x4b60b4(),_0x4ae4a6[_0x31c27b([0x6f,0x66,0x66])]());});}))];return window[_0x31c27b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31c27b([0x72,0x61,0x63,0x65])](_0x2ecf8a)[_0x31c27b([0x74,0x68,0x65,0x6e])](()=>_0x3a23ad);}async function _0x3b87d6(){await _0x2232a7,_0x4c581b[_0x31c27b([0x6d,0x6f,0x64,0x65,0x6c])][_0x31c27b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1420be,_0x4c581b[_0x31c27b([0x6d,0x6f,0x64,0x65,0x6c])][_0x31c27b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1420be,_0x4c581b[_0x31c27b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x31c27b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x42de97(_0xaf91ea){const _0x4a237c=_0x1e1a4d();_0x4c581b[_0x4a237c]=_0x31c27b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xaf91ea,_0xaf91ea!=_0x31c27b([0x56,0x61,0x6c,0x69,0x64])&&_0x3b87d6();}function _0x1e1a4d(){const _0x305083=window[_0x31c27b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x31c27b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x31c27b([0x6e,0x6f,0x77])]())[_0x31c27b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x31c27b([0x2e]),'');let _0x34393a=_0x31c27b([0x68]);for(let _0x388a04=0x0;_0x388a04<_0x305083[_0x31c27b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x388a04+=0x2){let _0x415d31=window[_0x31c27b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x305083[_0x31c27b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x388a04,_0x388a04+0x2));_0x415d31>=_0x5134bd[_0x31c27b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x415d31-=_0x5134bd[_0x31c27b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x34393a+=_0x5134bd[_0x415d31];}return _0x34393a;}function _0x8629f5(){const _0x2ff1d2=_0x552f3c[_0x31c27b([0x73,0x70,0x6c,0x69,0x74])](_0x31c27b([0x2e]));if(0x3!=_0x2ff1d2[_0x31c27b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2c09e5(_0x2ff1d2[0x1]);function _0x2c09e5(_0x410b1f){const _0xaea7c=_0x526591(_0x410b1f);return _0xaea7c&&_0xda4a66()?_0xaea7c:null;function _0xda4a66(){const _0x3c1c48=_0xaea7c[_0x31c27b([0x6a,0x74,0x69])],_0x3fcfe3=window[_0x31c27b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c1c48[_0x31c27b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c1c48[_0x31c27b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2c759d={..._0xaea7c,[_0x31c27b([0x6a,0x74,0x69])]:_0x3c1c48[_0x31c27b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3c1c48[_0x31c27b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2c759d[_0x31c27b([0x76,0x63])],_0x22fd85(_0x2c759d)==_0x3fcfe3;}}}async function _0x2b1ffc(){let _0x24d96d=!0x0;try{const _0xbd3116=_0x552f3c[_0x31c27b([0x73,0x70,0x6c,0x69,0x74])](_0x31c27b([0x2e])),[_0x405308,_0xfad101,_0x4cd944]=_0xbd3116;return _0x239d2e(_0x405308),await _0x1c18ae(_0x405308,_0xfad101,_0x4cd944),_0x24d96d;}catch{return!0x1;}function _0x239d2e(_0x5a9981){const _0x523775=_0x526591(_0x5a9981);_0x523775&&_0x523775[_0x31c27b([0x61,0x6c,0x67])]==_0x31c27b([0x45,0x53,0x32,0x35,0x36])||(_0x24d96d=!0x1);}async function _0x1c18ae(_0x1b10a8,_0x3ab25a,_0x56e11b){const _0x26afed=window[_0x31c27b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x31c27b([0x66,0x72,0x6f,0x6d])](_0x5a07ed(_0x56e11b),_0x49dbbe=>_0x49dbbe[_0x31c27b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x40d192=new window[(_0x31c27b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x31c27b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1b10a8+_0x31c27b([0x2e])+_0x3ab25a),_0x5e2fcc=window[_0x31c27b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x31c27b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5e2fcc)return;const _0x4b2de8=await _0x5e2fcc[_0x31c27b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x31c27b([0x6a,0x77,0x6b]),_0x2b4d38,{[_0x31c27b([0x6e,0x61,0x6d,0x65])]:_0x31c27b([0x45,0x43,0x44,0x53,0x41]),[_0x31c27b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x31c27b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x31c27b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5e2fcc[_0x31c27b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x31c27b([0x6e,0x61,0x6d,0x65])]:_0x31c27b([0x45,0x43,0x44,0x53,0x41]),[_0x31c27b([0x68,0x61,0x73,0x68])]:{[_0x31c27b([0x6e,0x61,0x6d,0x65])]:_0x31c27b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4b2de8,_0x26afed,_0x40d192)||(_0x24d96d=!0x1);}}function _0x526591(_0xb06441){return _0xb06441[_0x31c27b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x31c27b([0x65,0x79]))?JSON[_0x31c27b([0x70,0x61,0x72,0x73,0x65])](_0x5a07ed(_0xb06441)):null;}function _0x5a07ed(_0x2c414e){return window[_0x31c27b([0x61,0x74,0x6f,0x62])](_0x2c414e[_0x31c27b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x31c27b([0x2b]))[_0x31c27b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x31c27b([0x2f])));}function _0x22fd85(_0x2521f3){let _0x2b6b26=0x1505;function _0x5a23ff(_0x57ed02){for(let _0x556f03=0x0;_0x556f03<_0x57ed02[_0x31c27b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x556f03++){const _0x304dce=_0x57ed02[_0x31c27b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x556f03);_0x2b6b26=(_0x2b6b26<<0x5)+_0x2b6b26+_0x304dce,_0x2b6b26&=_0x2b6b26;}}function _0x5bc558(_0x56563d){Array[_0x31c27b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x56563d)?_0x56563d[_0x31c27b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5bc558):_0x56563d&&typeof _0x56563d==_0x31c27b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x31c27b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x56563d)[_0x31c27b([0x73,0x6f,0x72,0x74])]()[_0x31c27b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40bd01,_0x16f1d4])=>{_0x5a23ff(_0x40bd01),_0x5bc558(_0x16f1d4);}):_0x5a23ff(window[_0x31c27b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x56563d));}return _0x5bc558(_0x2521f3),_0x2b6b26>>>0x0;}function _0x29e851(_0x2d7f56){return _0x2d7f56[_0x31c27b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x31c27b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x31c27b([0x30]));}function _0x24e9a6(_0x24bea2){return _0x24bea2[_0x31c27b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x31c27b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x31c27b([0x6a,0x6f,0x69,0x6e])]('');}function _0x1420be(){}function _0x31c27b(_0x334a8c){return _0x334a8c['map'](_0x11fb67=>String['fromCharCode'](_0x11fb67))['join']('');}_0x42de97(await _0x3060c6());}(this);}['_initSchema'](){const _0x82b35d=this['editor']['model']['schema'];_0x82b35d['isRegistered']('imageBlock')&&_0x82b35d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x82b35d['isRegistered']('imageInline')&&_0x82b35d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2c507e=this['editor'];_0x2c507e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2c507e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x10d439=>_0x10d439['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3ab45d=_0x2c507e['commands']['get']('replaceImageSource');_0x3ab45d&&this['listenTo'](_0x3ab45d,'cleanupImage',(_0x564007,[_0x422de6,_0x45d50a])=>{_0x422de6['removeAttribute']('uploadcareImageId',_0x45d50a);});}['_initConfig'](){const _0x50b703=this['editor']['config']['get']('uploadcare.uploader')||{},_0x573ede=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3d35be(_0x13c771['document'],'uc-config',{..._0x50b703,'pubkey':_0x573ede,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x2320ec=>{if('closeMax'==_0x2320ec)return'#uc-icon-arrow-down';},_0x13c771['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3d35be(_0x13c771['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x13c771['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xc2333b=this['editor']['commands']['get']('insertImage');_0xc2333b&&this['listenTo'](_0xc2333b,'execute',()=>{const _0x524808=this['editor']['model']['document']['selection']['getSelectedElement']();_0x524808&&_0x524808['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x524808);});});const _0x4187ca=this['editor']['commands']['get']('uploadcareImageReplace');_0x4187ca&&this['listenTo'](_0x4187ca,'execute',()=>{const _0x40aef6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x40aef6&&_0x40aef6['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x40aef6);});});}}class tt extends _0x1e6ece{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x503ace){super(_0x503ace),_0x503ace['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x33ffae['defineComponents'](_0x33ffae),this['_defineLocale']();}['_defineLocale'](){const _0x3709c4=this['editor']['config']['get']('uploadcare.locale'),_0x4f4a74=this['editor']['locale']['contentLanguage'];_0x3709c4&&_0x33ffae['defineLocale'](_0x4f4a74,_0x3709c4);}}class ii extends _0x56727e{constructor(_0x4b5a88){super(_0x4b5a88);const t=_0x4b5a88['t'],_0x530327=this['bindTemplate'],_0x57e4f6=new _0x541244();_0x57e4f6['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x57e4f6,{'text':_0x530327['to']('imageUploadProgress',_0x58531c=>t('Loading\x20image...')+'\x20('+(_0x58531c||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x56727e{constructor(_0x14aeed){super(_0x14aeed);const t=_0x14aeed['t'];this['set']('errorType',null);const _0x1891de=new _0xdd8139(_0x14aeed);_0x1891de['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1891de['withText']=!0x0,_0x1891de['class']='ck-button-action',_0x1891de['on']('execute',()=>{this['fire']('retry');}),_0x1891de['bind']('isVisible')['to'](this,'errorType',_0x4dbe22=>'NotFound'!==_0x4dbe22);const _0x1fb456=new _0x57aae3();_0x1fb456['content']=_0x3141a3,_0x1fb456['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xd13555=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x1fb456,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xd13555['to']('errorType',_0x164e6f=>t('NotFound'!==_0x164e6f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1891de]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x56727e{constructor(_0x3635fa,_0x5b9166){super(_0x3635fa);const _0x4824a1=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5b9166,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4824a1['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x418501,_0x290d40,_0x412546){super(_0x418501),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x418501),this['_errorView']=new ti(_0x418501),this['_editingView']=new ei(_0x418501,_0x412546),this['_focusableView']=new _0x56727e(_0x418501),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x290d40),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x506870=>{this['_addUploadcareImageEditorListeners'](_0x506870);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x1a5012,_0x5c7d45){const _0x4e4dfa='uc-cloud-image-editor',_0x455cac=_0x1a5012['querySelector'](_0x4e4dfa);if(_0x455cac)return _0x5c7d45(_0x455cac);const _0x463435=new MutationObserver(_0x518b51=>{const _0x101c49=_0x518b51['filter'](_0x825935=>_0x825935['target']===_0x1a5012&&_0x825935['addedNodes']['length']>0x0&&_0x825935['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4e4dfa);_0x101c49['length']&&(_0x463435['disconnect'](),_0x5c7d45(_0x101c49[0x0]['addedNodes'][0x0]));});_0x463435['observe'](_0x1a5012,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x36621a){_0x36621a['addEventListener']('apply',_0x565b0a=>{this['fire']('apply',{'imageSrc':_0x565b0a['detail']['cdnUrl']});}),_0x36621a['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x2ce3f3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3fa193,_0x519806,_0x134133){super(),this['_editor']=_0x3fa193,this['_dialog']=_0x519806,this['_imageElement']=_0x134133,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x5b52df=this['_imageElement'],_0x41c670=_0x5b52df['getAttribute']('uploadcareImageId'),_0x48d871=_0x5b52df['getAttribute']('src');if(_0x41c670)await this['_loadImageInfo'](_0x41c670,_0x48d871);else{if(this['_imageCache']['has'](_0x48d871)){const _0x549903=this['_imageCache']['get'](_0x48d871);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x549903['url'],this['imageDimension']=_0x549903['dimension'],this['imageId']=_0x549903['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x126eec}=this['_editor'],t=_0x126eec['t'],_0x5b46da=new X(_0x126eec,this['imageStatus'],this['_attributes']);_0x5b46da['bind']('status')['to'](this,'imageStatus'),_0x5b46da['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5b46da['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5b46da['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5b46da,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4c1bb5,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5b46da,'position':_0xe9f42c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5b46da['focus']();},'onHide':()=>{_0x5b46da['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2df7dc=>!A(_0x2df7dc,_0x5b46da['element'])}});}['_loadImageInfo'](_0x333033,_0x24f536){return j['getInfo'](_0x333033,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x8cc896=>{const {width:_0x1c3a3a,height:_0x55d17a}=_0x8cc896['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x24f536,this['imageDimension']={'width':_0x1c3a3a,'height':_0x55d17a},this['imageId']=_0x333033;})['catch'](_0x3b1e1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3b1e1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5bc7b3,_0x3c3247){return this['_getImageAsFile'](_0x5bc7b3)['then'](_0x2a8c6c=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x3c3247['signal'],'file':_0x2a8c6c,'onProgress':_0x165bf6=>{_0x165bf6&&_0x165bf6['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x165bf6['value']));}}))['then'](_0x3a5b6a=>{const {width:_0x4c1f19,height:_0x54b51b}=_0x3a5b6a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3a5b6a['cdnUrl'],this['imageDimension']={'width':_0x4c1f19,'height':_0x54b51b},this['imageId']=_0x3a5b6a['uuid'],this['imageUploadProgress']=null;const _0x422152=_0x5bc7b3['getAttribute']('src');this['_imageCache']['set'](_0x422152,{'id':_0x3a5b6a['uuid'],'url':_0x3a5b6a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x187dfc=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x187dfc['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1f806a,_0x524b31){_0x1f806a['on']('apply',(_0x3ed77b,_0x43679c)=>{this['_replaceImage'](_0x524b31,_0x43679c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1f806a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1f806a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x47cba0,_0x326d45,_0x582169){const _0x365049=this['_editor'],{width:_0x5c3545,height:_0x4f750a}=S(_0x326d45,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5aa79c,imageSources:_0x28057d}=C(_0x326d45,_0x5c3545);_0x365049['model']['change'](_0x5c33fc=>{if('$graveyard'===_0x47cba0['root']['rootName']){_0x365049['execute']('insertImage',{'imageType':_0x47cba0['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x47cba0['getAttributes']()),'uploadcareImageId':_0x582169,'src':_0x5aa79c,'sources':_0x28057d,'width':_0x5c3545,'height':_0x4f750a}});const _0x3b6fe0=_0x47cba0['getChildren']();_0x47cba0=_0x365049['model']['document']['selection']['getSelectedElement']();for(const _0x1243b5 of _0x3b6fe0)_0x5c33fc['append'](_0x5c33fc['cloneElement'](_0x1243b5),_0x47cba0);}else _0x5c33fc['setSelection'](_0x47cba0,'on'),_0x365049['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x47cba0['getAttributes']()),'uploadcareImageId':_0x582169,'src':_0x5aa79c,'sources':_0x28057d,'width':_0x5c3545,'height':_0x4f750a},_0x47cba0);_0x5c33fc['setSelection'](_0x47cba0,'on');});}async['_getImageAsFile'](_0x4f0461){const _0x23a681=_0x13c771['window'],_0x1cde5a=_0x13c771['document']['location']['href'],_0xc0a02f=new _0x23a681['URL'](_0x4f0461['getAttribute']('src'),_0x1cde5a);if('data:'===_0xc0a02f['protocol']){const _0x1123ac=_0xc0a02f['href']['split'](','),_0x127b13=_0x1123ac[0x0]['match'](/:(.*?);/)[0x1],_0x31a7b2=_0x127b13['split']('/')[0x1],_0x29537c=_0x23a681['atob'](_0x1123ac[_0x1123ac['length']-0x1]);let _0x521e35=_0x29537c['length'];const _0x4c5a68=new _0x23a681['Uint8Array'](_0x521e35);for(;_0x521e35--;)_0x4c5a68[_0x521e35]=_0x29537c['charCodeAt'](_0x521e35);return new _0x23a681['File']([_0x4c5a68],'image.'+_0x31a7b2,{'type':_0x127b13});}const _0x2124b6=_0xc0a02f['href']['split']('/'),_0x40c714=_0x2124b6[_0x2124b6['length']-0x1],_0x26ffe9=_0x40c714['split']('.')[0x1];return _0x23a681['fetch'](_0xc0a02f['href'])['then'](_0x593a1a=>_0x593a1a['clone']()['blob']())['then'](_0xef7d17=>new _0x23a681['File']([_0xef7d17],_0x40c714,{'type':'image/'+_0x26ffe9}));}}class O extends _0x3c3ce8{['imageEditController'];static get['requires'](){return[_0x429fed];}['_isEditable'];constructor(_0x4cffcf){super(_0x4cffcf),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5bd615){const _0x5e6e1e=G(_0x5bd615);return _0x1b9e69=>!(!_0x1b9e69||!_0x1b9e69['is']('element','imageBlock')&&!_0x1b9e69['is']('element','imageInline'))&&(!!_0x1b9e69['hasAttribute']('uploadcareImageId')||!!_0x1b9e69['hasAttribute']('src')&&_0x5e6e1e(_0x1b9e69['getAttribute']('src')));}(_0x4cffcf['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1925d2=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1925d2);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4c1ea4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4c1ea4&&(_0x4c1ea4['is']('element','imageBlock')||_0x4c1ea4['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x429fed),_0x4c1ea4),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x3c3ce8{['refresh'](){const _0x4049e1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4049e1&&(_0x4049e1['is']('element','imageBlock')||_0x4049e1['is']('element','imageInline')));}['execute'](_0x4c74a3){const _0x11b113=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x33ce68=>{_0x33ce68['setAttributes'](_0x4c74a3,_0x11b113),_0x33ce68['removeAttribute']('srcset',_0x11b113),_0x33ce68['removeAttribute']('sizes',_0x11b113);});}}class m extends _0x1e6ece{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x50e817,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3fa1ec}=this;_0x3fa1ec['commands']['add']('uploadcareImageEdit',new O(_0x3fa1ec)),_0x3fa1ec['commands']['add']('uploadcareImageReplace',new R(_0x3fa1ec));}}class g extends _0x1e6ece{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x330a5d=this['editor'];_0x330a5d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x35a973=>{const _0x50d281=_0x330a5d['commands']['get']('uploadcareImageEdit'),_0x2d38a6=new _0xdd8139(_0x35a973),t=_0x35a973['t'];return _0x2d38a6['set']({'icon':_0x4c1bb5,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2d38a6['bind']('isEnabled')['to'](_0x50d281),_0x2d38a6['bind']('isOn')['to'](_0x50d281,'isActive'),this['listenTo'](_0x2d38a6,'execute',()=>{_0x330a5d['execute']('uploadcareImageEdit'),_0x330a5d['editing']['view']['focus']();}),_0x2d38a6;}),this['_initConfig']();}['_initConfig'](){const _0x1098f4=_0x3d35be(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1098f4),this['listenTo'](this['editor'],'destroy',()=>{_0x1098f4['remove']();});}}class et extends _0x1e6ece{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20251122.0",
3
+ "version": "0.0.0-nightly-20251123.0",
4
4
  "description": "Uploadcare feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,14 +23,14 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251122.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251122.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251122.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251122.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251122.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251122.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251122.0",
33
- "ckeditor5": "0.0.0-nightly-20251122.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251123.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251123.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251123.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251123.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251123.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251123.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251123.0",
33
+ "ckeditor5": "0.0.0-nightly-20251123.0",
34
34
  "@uploadcare/file-uploader": "1.19.4",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2a2e(){const _0x5a121a=['get','document','6ipVayu','getSelectedElement','hide','detail','ucContextId','getOutputCollectionState','setAttribute','_initListeners','length','_editing','104350xspeGL','show','1309246VIGNls','idle','getAPI','removeSelectionAttribute','image','imageBlock','removeAllFiles','done-click','_dialog','element','6170YzpNxT','_initDialog','change','_formView','selection','initFlow','linkHref','status','252eOuElx','editing','destroy','setCurrentActivity','configElement','imageInfo','9238638VIOqst','uuid','7947379rDTLID','focus','attributes','allEntries','_editor','model','insertImage','_type','ctxElement','_insertAsset','Local','doneFlow','addEventListener','width','stopListening','EDITOR_TOP_CENTER','view','isOpen','404619yfRkcu','plugins','Replace','stopDelegating','72bkubgY','uploadCare','source-list','7aBUkBI','_insertImage','imageInline','setSelection','text','2588dCpEba','getLastPosition','Insert','execute','7034832ZysPIG','_api'];_0x2a2e=function(){return _0x5a121a;};return _0x2a2e();}const _0x49808c=_0x5309;function _0x5309(_0x2e7f69,_0x5679e5){const _0x2a2eb6=_0x2a2e();return _0x5309=function(_0x530936,_0x4f9e7b){_0x530936=_0x530936-0x8c;let _0xaac1d9=_0x2a2eb6[_0x530936];return _0xaac1d9;},_0x5309(_0x2e7f69,_0x5679e5);}(function(_0x4f366b,_0x4466a3){const _0xb8fb=_0x5309,_0x435082=_0x4f366b();while(!![]){try{const _0x5c99e8=parseInt(_0xb8fb(0xcb))/0x1+-parseInt(_0xb8fb(0x9f))/0x2*(-parseInt(_0xb8fb(0x93))/0x3)+-parseInt(_0xb8fb(0xd7))/0x4*(-parseInt(_0xb8fb(0xa9))/0x5)+parseInt(_0xb8fb(0xb7))/0x6*(parseInt(_0xb8fb(0xd2))/0x7)+parseInt(_0xb8fb(0x8f))/0x8+-parseInt(_0xb8fb(0xb1))/0x9*(-parseInt(_0xb8fb(0x9d))/0xa)+-parseInt(_0xb8fb(0xb9))/0xb*(parseInt(_0xb8fb(0xcf))/0xc);if(_0x5c99e8===_0x4466a3)break;else _0x435082['push'](_0x435082['shift']());}catch(_0x341946){_0x435082['push'](_0x435082['shift']());}}}(_0x2a2e,0xd8f3c));import{IconUploadcareImageUpload as _0x1079f3}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x57b8af}from'ckeditor5/src/utils.js';import{Dialog as _0x53478a,DialogViewPosition as _0x3d3632}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x4a5d89}from'./uploadcareformview.js';import{UploadcareSource as _0x5f109a}from'../uploadcareconfig.js';import{getTranslation as _0x4d78e4}from'../utils/common-translations.js';import{getImageUrls as _0x57a339,getImageDimension as _0x3a05b0}from'../utils/editingutils.js';import{isAncestor as _0x3a7885}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
- _0x57b8af(){[_0x49808c(0xbd)];[_0x49808c(0xa7)];[_0x49808c(0x9c)];[_0x49808c(0x90)];[_0x49808c(0xc0)]=null;[_0x49808c(0xac)]=null;constructor(_0x2cc968,_0x1a3dae,_0x4eedf1){const _0x2be3bf=_0x49808c;super(),this[_0x2be3bf(0xbd)]=_0x2cc968,this[_0x2be3bf(0x9c)]=_0x1a3dae,this[_0x2be3bf(0xa7)]=_0x2cc968[_0x2be3bf(0xcc)][_0x2be3bf(0x91)](_0x53478a),this[_0x2be3bf(0x90)]=_0x1a3dae[_0x2be3bf(0xc1)][_0x2be3bf(0xa1)](),this[_0x2be3bf(0xc0)]=_0x4eedf1,this[_0x2be3bf(0x9c)][_0x2be3bf(0xb5)][_0x2be3bf(0x99)](_0x2be3bf(0xd1),this[_0x2be3bf(0xc0)]),this[_0x2be3bf(0xaa)](),this[_0x2be3bf(0x9a)](),this[_0x2be3bf(0x90)][_0x2be3bf(0xae)]();}[_0x49808c(0xb3)](){const _0x2b6473=_0x49808c;this[_0x2b6473(0xac)]&&(this[_0x2b6473(0xac)][_0x2b6473(0xb3)](),this[_0x2b6473(0xac)]=null),this[_0x2b6473(0x90)]&&this[_0x2b6473(0x90)][_0x2b6473(0xc4)](),this[_0x2b6473(0xc7)](),this[_0x2b6473(0xce)]();}[_0x49808c(0xaa)](){const _0x22ba13=_0x49808c,{locale:_0x3ea5fc,model:_0x2ec062}=this[_0x22ba13(0xbd)],_0xb5315b=_0x2ec062[_0x22ba13(0x92)][_0x22ba13(0xad)][_0x22ba13(0x94)](),_0x14e43d=_0xb5315b&&(_0xb5315b['is'](_0x22ba13(0xa8),_0x22ba13(0xa4))||_0xb5315b['is'](_0x22ba13(0xa8),_0x22ba13(0xd4)));this[_0x22ba13(0xac)]=new _0x4a5d89(_0x3ea5fc,this[_0x22ba13(0x9c)][_0x22ba13(0x97)]),this[_0x22ba13(0xa7)][_0x22ba13(0x9e)]({'id':_0x22ba13(0xd0),'icon':_0x1079f3,'title':_0x4d78e4(_0x3ea5fc,this[_0x22ba13(0xc0)],_0x14e43d?_0x22ba13(0xcd):_0x22ba13(0x8d))[_0x22ba13(0xd6)],'content':this[_0x22ba13(0xac)],'position':_0x3d3632[_0x22ba13(0xc8)],'isModal':!0x0,'onShow':()=>{const _0x443266=_0x22ba13;this[_0x443266(0xac)][_0x443266(0xba)]();},'onHide':()=>{const _0x14ce2a=_0x22ba13;this[_0x14ce2a(0x90)][_0x14ce2a(0xa5)](),this[_0x14ce2a(0xbd)][_0x14ce2a(0xb2)][_0x14ce2a(0xc9)][_0x14ce2a(0xba)](),this[_0x14ce2a(0xb3)]();},'keystrokeHandlerOptions':{'filter':_0x32b266=>!_0x3a7885(_0x32b266,this[_0x22ba13(0xac)][_0x22ba13(0xa8)])}});}[_0x49808c(0x9a)](){const _0x150084=_0x49808c;this[_0x150084(0x9c)][_0x150084(0xc1)][_0x150084(0xc5)](_0x150084(0xa6),()=>{const _0x89476c=_0x150084,{allEntries:_0x55608a}=this[_0x89476c(0x90)][_0x89476c(0x98)]();this[_0x89476c(0xbd)][_0x89476c(0xbe)][_0x89476c(0xab)](_0x531045=>{const _0x2fd46d=_0x89476c,_0x39f9f6=_0x55608a[_0x2fd46d(0x9b)];for(const _0x519c67 of _0x55608a){const _0x4cec89=_0x519c67===_0x55608a[_0x39f9f6-0x1],{cdnUrl:_0x93cf62,fileInfo:_0x3c34fa}=_0x519c67;if(!_0x93cf62||!_0x3c34fa)continue;const {width:_0x18e79c,height:_0x50e26a}=_0x3c34fa[_0x2fd46d(0xb6)],_0x34793c=_0x3a05b0(_0x93cf62,_0x18e79c,_0x50e26a),_0x365a0f=_0x57a339(_0x93cf62,_0x34793c[_0x2fd46d(0xc6)]),_0x43949f={'id':_0x3c34fa[_0x2fd46d(0xb8)],'type':_0x2fd46d(0xa3),'attributes':{'imageDimension':_0x34793c,..._0x365a0f}};this[_0x2fd46d(0xc2)](_0x43949f,_0x4cec89,_0x531045);}}),this[_0x89476c(0xa7)][_0x89476c(0x95)]();}),this[_0x150084(0x9c)][_0x150084(0xc1)][_0x150084(0xc5)](_0x150084(0xab),_0x51c7b3=>{const _0x24ae7d=_0x150084;_0x24ae7d(0xa0)===_0x51c7b3[_0x24ae7d(0x96)][_0x24ae7d(0xb0)]&&!_0x51c7b3[_0x24ae7d(0x96)][_0x24ae7d(0xbc)][_0x24ae7d(0x9b)]&&this[_0x24ae7d(0xa7)][_0x24ae7d(0xca)]&&(this[_0x24ae7d(0xc0)]===_0x5f109a[_0x24ae7d(0xc3)]?this[_0x24ae7d(0x90)][_0x24ae7d(0xb4)](_0x5f109a[_0x24ae7d(0xc3)]):this[_0x24ae7d(0x90)][_0x24ae7d(0xae)]());});}[_0x49808c(0xc2)](_0x24ba69,_0x2dd3fe,_0x5d5ba3){const _0x15030c=_0x49808c,_0x4c75aa=this[_0x15030c(0xbd)][_0x15030c(0xbe)][_0x15030c(0x92)][_0x15030c(0xad)],_0x6b88df=_0x4c75aa[_0x15030c(0x94)](),_0x2bd5e5=!(!_0x6b88df||!_0x6b88df['is'](_0x15030c(0xa8),_0x15030c(0xd4)));_0x5d5ba3[_0x15030c(0xa2)](_0x15030c(0xaf)),this[_0x15030c(0xd3)](_0x24ba69,_0x2bd5e5),_0x2dd3fe||_0x5d5ba3[_0x15030c(0xd5)](_0x4c75aa[_0x15030c(0x8c)]());}[_0x49808c(0xd3)](_0x2e80d7,_0x3308b7){const _0x270a8a=_0x49808c,_0x258594=this[_0x270a8a(0xbd)],{imageDimension:_0xdee58c,imageFallbackUrl:_0x5ef912,imageSources:_0x54bf48}=_0x2e80d7[_0x270a8a(0xbb)];_0x258594[_0x270a8a(0x8e)](_0x270a8a(0xbf),{'imageType':_0x3308b7?_0x270a8a(0xd4):null,'source':{'uploadcareImageId':_0x2e80d7['id'],'src':_0x5ef912,'sources':_0x54bf48,..._0xdee58c}});}}
23
+ const _0x846da3=_0x31d1;(function(_0xd2bb3d,_0x53cde2){const _0x138bd8=_0x31d1,_0x55d8f7=_0xd2bb3d();while(!![]){try{const _0x32598e=parseInt(_0x138bd8(0x15a))/0x1+-parseInt(_0x138bd8(0x154))/0x2*(parseInt(_0x138bd8(0x165))/0x3)+parseInt(_0x138bd8(0x177))/0x4+-parseInt(_0x138bd8(0x160))/0x5*(-parseInt(_0x138bd8(0x148))/0x6)+parseInt(_0x138bd8(0x171))/0x7+-parseInt(_0x138bd8(0x14d))/0x8+-parseInt(_0x138bd8(0x147))/0x9*(parseInt(_0x138bd8(0x187))/0xa);if(_0x32598e===_0x53cde2)break;else _0x55d8f7['push'](_0x55d8f7['shift']());}catch(_0x105a0e){_0x55d8f7['push'](_0x55d8f7['shift']());}}}(_0x864b,0xb34ea));import{IconUploadcareImageUpload as _0x5bb5df}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x46e7c6}from'ckeditor5/src/utils.js';import{Dialog as _0x487278,DialogViewPosition as _0x1a43e5}from'ckeditor5/src/ui.js';function _0x31d1(_0x3ad88e,_0x5305cf){const _0x864b46=_0x864b();return _0x31d1=function(_0x31d1ce,_0x17c271){_0x31d1ce=_0x31d1ce-0x147;let _0x4a79b3=_0x864b46[_0x31d1ce];return _0x4a79b3;},_0x31d1(_0x3ad88e,_0x5305cf);}import{UploadcareFormView as _0x1501c6}from'./uploadcareformview.js';import{UploadcareSource as _0x1457e9}from'../uploadcareconfig.js';function _0x864b(){const _0x4dfe02=['Replace','_api','configElement','_formView','stopDelegating','_initDialog','2263797NIkUTY','297498ClRgUH','_type','ctxElement','length','imageBlock','117216sneaiP','removeSelectionAttribute','setSelection','imageInfo','text','done-click','allEntries','2511942ZDsYYg','get','detail','isOpen','stopListening','view','303311aUUbeS','show','destroy','doneFlow','getOutputCollectionState','_editing','95DoOoit','setAttribute','setCurrentActivity','image','getSelectedElement','3fKrxMq','ucContextId','editing','Insert','imageInline','_insertAsset','source-list','element','addEventListener','removeAllFiles','linkHref','getAPI','3692542rFJCOJ','EDITOR_TOP_CENTER','focus','uuid','width','Local','2940948WDnGrT','execute','attributes','initFlow','selection','uploadCare','idle','_insertImage','_initListeners','insertImage','model','plugins','change','hide','document','_dialog','20xdOimk','status','_editor','getLastPosition'];_0x864b=function(){return _0x4dfe02;};return _0x864b();}import{getTranslation as _0x2a401d}from'../utils/common-translations.js';import{getImageUrls as _0x1a8705,getImageDimension as _0x101460}from'../utils/editingutils.js';import{isAncestor as _0x54b216}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
+ _0x46e7c6(){[_0x846da3(0x189)];[_0x846da3(0x186)];[_0x846da3(0x15f)];[_0x846da3(0x18c)];[_0x846da3(0x149)]=null;[_0x846da3(0x18e)]=null;constructor(_0x33117e,_0x37282b,_0x55ba94){const _0x200927=_0x846da3;super(),this[_0x200927(0x189)]=_0x33117e,this[_0x200927(0x15f)]=_0x37282b,this[_0x200927(0x186)]=_0x33117e[_0x200927(0x182)][_0x200927(0x155)](_0x487278),this[_0x200927(0x18c)]=_0x37282b[_0x200927(0x14a)][_0x200927(0x170)](),this[_0x200927(0x149)]=_0x55ba94,this[_0x200927(0x15f)][_0x200927(0x18d)][_0x200927(0x161)](_0x200927(0x16b),this[_0x200927(0x149)]),this[_0x200927(0x190)](),this[_0x200927(0x17f)](),this[_0x200927(0x18c)][_0x200927(0x17a)]();}[_0x846da3(0x15c)](){const _0x1d045e=_0x846da3;this[_0x1d045e(0x18e)]&&(this[_0x1d045e(0x18e)][_0x1d045e(0x15c)](),this[_0x1d045e(0x18e)]=null),this[_0x1d045e(0x18c)]&&this[_0x1d045e(0x18c)][_0x1d045e(0x15d)](),this[_0x1d045e(0x158)](),this[_0x1d045e(0x18f)]();}[_0x846da3(0x190)](){const _0x41b252=_0x846da3,{locale:_0x587df3,model:_0x5266fe}=this[_0x41b252(0x189)],_0x193da5=_0x5266fe[_0x41b252(0x185)][_0x41b252(0x17b)][_0x41b252(0x164)](),_0x17cac7=_0x193da5&&(_0x193da5['is'](_0x41b252(0x16c),_0x41b252(0x14c))||_0x193da5['is'](_0x41b252(0x16c),_0x41b252(0x169)));this[_0x41b252(0x18e)]=new _0x1501c6(_0x587df3,this[_0x41b252(0x15f)][_0x41b252(0x166)]),this[_0x41b252(0x186)][_0x41b252(0x15b)]({'id':_0x41b252(0x17c),'icon':_0x5bb5df,'title':_0x2a401d(_0x587df3,this[_0x41b252(0x149)],_0x17cac7?_0x41b252(0x18b):_0x41b252(0x168))[_0x41b252(0x151)],'content':this[_0x41b252(0x18e)],'position':_0x1a43e5[_0x41b252(0x172)],'isModal':!0x0,'onShow':()=>{const _0x2b21e7=_0x41b252;this[_0x2b21e7(0x18e)][_0x2b21e7(0x173)]();},'onHide':()=>{const _0x5b19b9=_0x41b252;this[_0x5b19b9(0x18c)][_0x5b19b9(0x16e)](),this[_0x5b19b9(0x189)][_0x5b19b9(0x167)][_0x5b19b9(0x159)][_0x5b19b9(0x173)](),this[_0x5b19b9(0x15c)]();},'keystrokeHandlerOptions':{'filter':_0xe4cc36=>!_0x54b216(_0xe4cc36,this[_0x41b252(0x18e)][_0x41b252(0x16c)])}});}[_0x846da3(0x17f)](){const _0x121665=_0x846da3;this[_0x121665(0x15f)][_0x121665(0x14a)][_0x121665(0x16d)](_0x121665(0x152),()=>{const _0x230fa3=_0x121665,{allEntries:_0x1483cd}=this[_0x230fa3(0x18c)][_0x230fa3(0x15e)]();this[_0x230fa3(0x189)][_0x230fa3(0x181)][_0x230fa3(0x183)](_0x49a511=>{const _0x344650=_0x230fa3,_0x30a62f=_0x1483cd[_0x344650(0x14b)];for(const _0x47b644 of _0x1483cd){const _0x3ce233=_0x47b644===_0x1483cd[_0x30a62f-0x1],{cdnUrl:_0x3eda5e,fileInfo:_0x376974}=_0x47b644;if(!_0x3eda5e||!_0x376974)continue;const {width:_0x47973f,height:_0x1142fb}=_0x376974[_0x344650(0x150)],_0x54a059=_0x101460(_0x3eda5e,_0x47973f,_0x1142fb),_0x2a7eb9=_0x1a8705(_0x3eda5e,_0x54a059[_0x344650(0x175)]),_0xa5e33={'id':_0x376974[_0x344650(0x174)],'type':_0x344650(0x163),'attributes':{'imageDimension':_0x54a059,..._0x2a7eb9}};this[_0x344650(0x16a)](_0xa5e33,_0x3ce233,_0x49a511);}}),this[_0x230fa3(0x186)][_0x230fa3(0x184)]();}),this[_0x121665(0x15f)][_0x121665(0x14a)][_0x121665(0x16d)](_0x121665(0x183),_0x5f0f14=>{const _0x13dde1=_0x121665;_0x13dde1(0x17d)===_0x5f0f14[_0x13dde1(0x156)][_0x13dde1(0x188)]&&!_0x5f0f14[_0x13dde1(0x156)][_0x13dde1(0x153)][_0x13dde1(0x14b)]&&this[_0x13dde1(0x186)][_0x13dde1(0x157)]&&(this[_0x13dde1(0x149)]===_0x1457e9[_0x13dde1(0x176)]?this[_0x13dde1(0x18c)][_0x13dde1(0x162)](_0x1457e9[_0x13dde1(0x176)]):this[_0x13dde1(0x18c)][_0x13dde1(0x17a)]());});}[_0x846da3(0x16a)](_0x1c72f4,_0x5a2ab2,_0x3e053e){const _0x4e5a4d=_0x846da3,_0x19762a=this[_0x4e5a4d(0x189)][_0x4e5a4d(0x181)][_0x4e5a4d(0x185)][_0x4e5a4d(0x17b)],_0x35b6b3=_0x19762a[_0x4e5a4d(0x164)](),_0x536287=!(!_0x35b6b3||!_0x35b6b3['is'](_0x4e5a4d(0x16c),_0x4e5a4d(0x169)));_0x3e053e[_0x4e5a4d(0x14e)](_0x4e5a4d(0x16f)),this[_0x4e5a4d(0x17e)](_0x1c72f4,_0x536287),_0x5a2ab2||_0x3e053e[_0x4e5a4d(0x14f)](_0x19762a[_0x4e5a4d(0x18a)]());}[_0x846da3(0x17e)](_0x4b1796,_0x2b6e56){const _0x303b72=_0x846da3,_0xc51756=this[_0x303b72(0x189)],{imageDimension:_0x340c21,imageFallbackUrl:_0x5b86c7,imageSources:_0x131e4c}=_0x4b1796[_0x303b72(0x179)];_0xc51756[_0x303b72(0x178)](_0x303b72(0x180),{'imageType':_0x2b6e56?_0x303b72(0x169):null,'source':{'uploadcareImageId':_0x4b1796['id'],'src':_0x5b86c7,'sources':_0x131e4c,..._0x340c21}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xb410d3=_0x2f63;(function(_0x1a7875,_0x3b0b22){var _0x1055be=_0x2f63,_0x25eaf2=_0x1a7875();while(!![]){try{var _0x11b476=-parseInt(_0x1055be(0x108))/0x1+parseInt(_0x1055be(0xfc))/0x2*(-parseInt(_0x1055be(0x100))/0x3)+-parseInt(_0x1055be(0x103))/0x4*(-parseInt(_0x1055be(0x10a))/0x5)+parseInt(_0x1055be(0x104))/0x6*(-parseInt(_0x1055be(0x106))/0x7)+parseInt(_0x1055be(0x109))/0x8+-parseInt(_0x1055be(0x105))/0x9*(-parseInt(_0x1055be(0x10b))/0xa)+-parseInt(_0x1055be(0x10f))/0xb*(parseInt(_0x1055be(0xfe))/0xc);if(_0x11b476===_0x3b0b22)break;else _0x25eaf2['push'](_0x25eaf2['shift']());}catch(_0x37b446){_0x25eaf2['push'](_0x25eaf2['shift']());}}}(_0xfc15,0xf1c6d));function _0x2f63(_0x134ecc,_0x59a794){var _0xfc151a=_0xfc15();return _0x2f63=function(_0x2f6330,_0x49113a){_0x2f6330=_0x2f6330-0xfc;var _0x55679f=_0xfc151a[_0x2f6330];return _0x55679f;},_0x2f63(_0x134ecc,_0x59a794);}import{DialogFocusManagerView as _0x26ce94}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';function _0xfc15(){var _0x4f7112=['getFocusableElement','focus','2191629xnaJUh','element','uc-file-uploader-inline','uc-light','2dSDSIc','div','12vTJlDu','setTemplate','2838078VvfuCm','ck-uploadcare-theme','uploader-','24jXmZgv','1757424hJjhCv','14076poECbJ','14SWPnmS','ck-reset_all-excluded','1355426dcYPyy','10719008knRjJH','1626510AtdNtP','5020BkxSwP','ck-uploadcare-form'];_0xfc15=function(){return _0x4f7112;};return _0xfc15();}export class UploadcareFormView extends _0x26ce94{constructor(_0x5b6cb4,_0x4b57d2){var _0x1571d1=_0x2f63;super(_0x5b6cb4),this[_0x1571d1(0xff)]({'tag':_0x1571d1(0xfd),'attributes':{'class':['ck',_0x1571d1(0x107),_0x1571d1(0x10c)],'tabindex':'-1'},'children':[{'tag':_0x1571d1(0x111),'attributes':{'class':[_0x1571d1(0x112),_0x1571d1(0x101)],'ctx-name':_0x1571d1(0x102)+_0x4b57d2}},this[_0x1571d1(0x10d)]()]});}[_0xb410d3(0x10e)](){var _0x39dc6a=_0xb410d3;this[_0x39dc6a(0x110)][_0x39dc6a(0x10e)]();}}
23
+ function _0x5d02(_0x57f8cb,_0x293d51){var _0x4358a5=_0x4358();return _0x5d02=function(_0x5d02cf,_0x4c0d9b){_0x5d02cf=_0x5d02cf-0xc5;var _0x2af6dc=_0x4358a5[_0x5d02cf];return _0x2af6dc;},_0x5d02(_0x57f8cb,_0x293d51);}function _0x4358(){var _0x2a64de=['ck-uploadcare-form','uc-light','2245188qSJird','focus','83304NdYeai','1034286lIVyqF','ck-uploadcare-theme','4718202zOspOV','15HYaEiz','2390sCVHXU','element','setTemplate','147707FyETmw','14742736KfmCyp','uploader-','uc-file-uploader-inline','7IACLpp','div','ck-reset_all-excluded','4454408lmeUuW','getFocusableElement'];_0x4358=function(){return _0x2a64de;};return _0x4358();}var _0x4847e9=_0x5d02;(function(_0x17bf62,_0x47afc9){var _0x1cd75a=_0x5d02,_0x3f8df1=_0x17bf62();while(!![]){try{var _0x400c43=parseInt(_0x1cd75a(0xd5))/0x1+parseInt(_0x1cd75a(0xcb))/0x2+-parseInt(_0x1cd75a(0xd0))/0x3+parseInt(_0x1cd75a(0xc7))/0x4+-parseInt(_0x1cd75a(0xd1))/0x5*(-parseInt(_0x1cd75a(0xce))/0x6)+-parseInt(_0x1cd75a(0xd9))/0x7*(-parseInt(_0x1cd75a(0xd6))/0x8)+parseInt(_0x1cd75a(0xcd))/0x9*(-parseInt(_0x1cd75a(0xd2))/0xa);if(_0x400c43===_0x47afc9)break;else _0x3f8df1['push'](_0x3f8df1['shift']());}catch(_0x33b6eb){_0x3f8df1['push'](_0x3f8df1['shift']());}}}(_0x4358,0xea1fa));import{DialogFocusManagerView as _0x5807fa}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x5807fa{constructor(_0x36e3e1,_0x2e08a2){var _0x42529f=_0x5d02;super(_0x36e3e1),this[_0x42529f(0xd4)]({'tag':_0x42529f(0xc5),'attributes':{'class':['ck',_0x42529f(0xc6),_0x42529f(0xc9)],'tabindex':'-1'},'children':[{'tag':_0x42529f(0xd8),'attributes':{'class':[_0x42529f(0xca),_0x42529f(0xcf)],'ctx-name':_0x42529f(0xd7)+_0x2e08a2}},this[_0x42529f(0xc8)]()]});}[_0x4847e9(0xcc)](){var _0x31be79=_0x4847e9;this[_0x31be79(0xd3)][_0x31be79(0xcc)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x28eaef=_0x299d;(function(_0x24185b,_0xeab6cb){const _0x200ee1=_0x299d,_0x2e90f5=_0x24185b();while(!![]){try{const _0x41f43c=parseInt(_0x200ee1(0x10f))/0x1*(-parseInt(_0x200ee1(0x162))/0x2)+parseInt(_0x200ee1(0x146))/0x3*(parseInt(_0x200ee1(0x13a))/0x4)+-parseInt(_0x200ee1(0x127))/0x5+-parseInt(_0x200ee1(0x157))/0x6+parseInt(_0x200ee1(0x117))/0x7*(-parseInt(_0x200ee1(0x138))/0x8)+parseInt(_0x200ee1(0x11a))/0x9+parseInt(_0x200ee1(0x11e))/0xa;if(_0x41f43c===_0xeab6cb)break;else _0x2e90f5['push'](_0x2e90f5['shift']());}catch(_0x1badb4){_0x2e90f5['push'](_0x2e90f5['shift']());}}}(_0x3f2c,0x96e15));function _0x3f2c(){const _0x161083=['true','requires','8167446yalfrd','selection','isOfficialPlugin','add','19347670gmfvmE','uc-upload-ctx-provider','listenTo','destroy','join','iconHrefResolver','commands','remove','data-uc-image-id','4588130typnaK','document','body','\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','UploadcareEditing','_ctxElement','_configElement','isPremiumPlugin','_initSchema','configElement','imageBlock','editor','fromCharCode','config','_initConfig','map','locale','16opWkTt','getAttribute','3808532bHixLu','once','getSelectedElement','imageInline','href','elementToAttribute','ucContextId','input[uploadcare-file-input]','uc-config','conversion','render','uploadcare.uploader','3cQnjkd','ctxElement','uploader-','execute','uploadcare.pubkey','upcast','_initImageProcessingIndicator','schema','editing','cleanupImage','removeAttribute','init','replaceImageSource','view','downcast','extend','PictureEditing','6830862qdEHft','closeMax','model','isRegistered','get','_initCtx','appendChild','uploadcareImageReplace','afterInit','contentLanguage','insertImage','216iLROvT','attributeToAttribute','5082LkojZD','pluginName','for','#uc-icon-arrow-down','uploadcare','uploadcareImageId','_initConversion','querySelector','2000005qfPYoh'];_0x3f2c=function(){return _0x161083;};return _0x3f2c();}import{Plugin as _0x2bed9c}from'ckeditor5/src/core.js';import{Dialog as _0x176802}from'ckeditor5/src/ui.js';import{createElement as _0xadc071,global as _0x4cce95,uid as _0xbc8fc9}from'ckeditor5/src/utils.js';function _0x299d(_0x45c7a4,_0x44c546){const _0x3f2cfc=_0x3f2c();return _0x299d=function(_0x299de5,_0x25fa7f){_0x299de5=_0x299de5-0x10f;let _0x59af63=_0x3f2cfc[_0x299de5];return _0x59af63;},_0x299d(_0x45c7a4,_0x44c546);}import{UploadcareCommand as _0x4a38f9}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x589663}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2aa37d}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2bed9c{[_0x28eaef(0x12d)]=null;[_0x28eaef(0x12c)]=null;static get[_0x28eaef(0x110)](){const _0x2c2ffe=_0x28eaef;return _0x2c2ffe(0x12b);}static get[_0x28eaef(0x119)](){const _0x21732d=_0x28eaef;return[_0x21732d(0x156),_0x589663,_0x176802];}static get[_0x28eaef(0x11c)](){return!0x0;}static get[_0x28eaef(0x12e)](){return!0x0;}[_0x28eaef(0x140)];get[_0x28eaef(0x130)](){const _0x1f5b0d=_0x28eaef;return this[_0x1f5b0d(0x12d)];}get[_0x28eaef(0x147)](){const _0x1898e0=_0x28eaef;return this[_0x1898e0(0x12c)];}constructor(_0x14c3e5){const _0x92ee72=_0x28eaef;super(_0x14c3e5),this[_0x92ee72(0x140)]=_0xbc8fc9();}[_0x28eaef(0x151)](){const _0x4dc99b=_0x28eaef,_0xfd9d86=this[_0x4dc99b(0x132)];_0xfd9d86[_0x4dc99b(0x124)][_0x4dc99b(0x11d)](_0x4dc99b(0x113),new _0x4a38f9(_0xfd9d86));}[_0x28eaef(0x15f)](){const _0x3f856f=_0x28eaef;this[_0x3f856f(0x12f)](),this[_0x3f856f(0x115)](),this[_0x3f856f(0x135)](),this[_0x3f856f(0x15c)](),this[_0x3f856f(0x14c)](),this[_0x3f856f(0x120)](this[_0x3f856f(0x132)],_0x3f856f(0x121),()=>{const _0x4957c2=_0x3f856f;this[_0x4957c2(0x12d)]&&(this[_0x4957c2(0x12d)][_0x4957c2(0x125)](),this[_0x4957c2(0x12d)]=null),this[_0x4957c2(0x12c)]&&(this[_0x4957c2(0x12c)][_0x4957c2(0x125)](),this[_0x4957c2(0x12c)]=null);const _0x2a4720=_0x4cce95[_0x4957c2(0x128)][_0x4957c2(0x116)](_0x4957c2(0x141));_0x2a4720&&_0x2a4720[_0x4957c2(0x125)]();}),async function(_0x52f556){const _0x2a1f07=_0x293d22([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0xf97fe3=0x535f8c3a,_0xe115d4=0x5358f5ea^_0xf97fe3,_0x32c631=window[_0x293d22([0x44,0x61,0x74,0x65])][_0x293d22([0x6e,0x6f,0x77])](),_0x11f969=_0x52f556[_0x293d22([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x57f071=new window[(_0x293d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b1016=>{_0x11f969[_0x293d22([0x6f,0x6e,0x63,0x65])](_0x293d22([0x72,0x65,0x61,0x64,0x79]),_0x1b1016);}),_0x4ea2fe={[_0x293d22([0x6b,0x74,0x79])]:_0x293d22([0x45,0x43]),[_0x293d22([0x75,0x73,0x65])]:_0x293d22([0x73,0x69,0x67]),[_0x293d22([0x63,0x72,0x76])]:_0x293d22([0x50,0x2d,0x32,0x35,0x36]),[_0x293d22([0x78])]:_0x293d22([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]),[_0x293d22([0x79])]:_0x293d22([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]),[_0x293d22([0x61,0x6c,0x67])]:_0x293d22([0x45,0x53,0x32,0x35,0x36])},_0x2a2446=_0x11f969[_0x293d22([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x293d22([0x67,0x65,0x74])](_0x293d22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x23bfd4(){let _0x4ef8d1,_0x35cd11=null,_0x5e19e7=null;try{if(_0x2a2446==_0x293d22([0x47,0x50,0x4c]))return _0x293d22([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4ef8d1=_0x36cd8a(),!_0x4ef8d1)return _0x293d22([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4ef8d1[_0x293d22([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e19e7=_0x239110(_0x4ef8d1[_0x293d22([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4ef8d1[_0x293d22([0x6a,0x74,0x69])])),await _0x20602a()?_0x3cc358()?_0x28ccbf()?_0x293d22([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x13987b()?(_0x4ef8d1[_0x293d22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x293d22([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x35cd11=_0x34d1bd(_0x293d22([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4ef8d1[_0x293d22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x293d22([0x74,0x72,0x69,0x61,0x6c])&&(_0x35cd11=_0x34d1bd(_0x293d22([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4bc031()):_0x293d22([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x293d22([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x293d22([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x293d22([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x28ccbf(){const _0x3f96d4=[_0x293d22([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x293d22([0x74,0x72,0x69,0x61,0x6c])][_0x293d22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ef8d1[_0x293d22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x32c631/0x3e8:0xe10*_0xe115d4;return _0x4ef8d1[_0x293d22([0x65,0x78,0x70])]<_0x3f96d4;}function _0x3cc358(){const _0x90838=_0x4ef8d1[_0x293d22([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x90838&&(!!_0x90838[_0x293d22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x293d22([0x2a]))||!!_0x90838[_0x293d22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x293d22([0x55,0x50,0x4c,0x43])));}function _0x13987b(){const _0x3a692f=_0x299d,_0x429d75=_0x4ef8d1[_0x293d22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x429d75||0x0==_0x429d75[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2edd03}=new URL(window[_0x293d22([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3a692f(0x13e)]);if(_0x429d75[_0x293d22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2edd03))return!0x0;const _0x3a9765=_0x2edd03[_0x293d22([0x73,0x70,0x6c,0x69,0x74])](_0x293d22([0x2e]));return _0x429d75[_0x293d22([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43005d=>_0x43005d[_0x293d22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x293d22([0x2a])))[_0x293d22([0x6d,0x61,0x70])](_0x9af507=>_0x9af507[_0x293d22([0x73,0x70,0x6c,0x69,0x74])](_0x293d22([0x2e])))[_0x293d22([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57f166=>_0x57f166[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3a9765[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x293d22([0x6d,0x61,0x70])](_0x42cf4a=>Array(_0x3a9765[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x42cf4a[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x293d22([0x66,0x69,0x6c,0x6c])](_0x42cf4a[0x0]===_0x293d22([0x2a])?_0x293d22([0x2a]):'')[_0x293d22([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x42cf4a))[_0x293d22([0x73,0x6f,0x6d,0x65])](_0x511432=>_0x3a9765[_0x293d22([0x65,0x76,0x65,0x72,0x79])]((_0x155679,_0x47eaff)=>_0x511432[_0x47eaff]===_0x155679||_0x511432[_0x47eaff]===_0x293d22([0x2a])));}function _0x4bc031(){return _0x35cd11&&_0x5e19e7?new window[(_0x293d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48505e,_0x555bd8)=>{_0x35cd11[_0x293d22([0x74,0x68,0x65,0x6e])](_0x48505e,_0x555bd8),_0x5e19e7[_0x293d22([0x74,0x68,0x65,0x6e])](_0x24b57d=>{_0x24b57d!=_0x293d22([0x56,0x61,0x6c,0x69,0x64])&&_0x48505e(_0x24b57d);},_0x555bd8);}):_0x35cd11||_0x5e19e7||_0x293d22([0x56,0x61,0x6c,0x69,0x64]);}}function _0x239110(_0x8a9e0d,_0x6275d1){return new window[(_0x293d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2abba6=>{if(_0x231b6e())return _0x2abba6(_0x293d22([0x56,0x61,0x6c,0x69,0x64]));_0x2d5c1d(),_0x11f969[_0x293d22([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x293d22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3ff29c=!0x1;const _0x6afd60=_0xbc8fc9();function _0xbf2ef5(_0x456ddb){return!!_0x456ddb&&(typeof _0x456ddb===_0x293d22([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x456ddb===_0x293d22([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x456ddb[_0x293d22([0x74,0x68,0x65,0x6e])]===_0x293d22([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x456ddb[_0x293d22([0x63,0x61,0x74,0x63,0x68])]===_0x293d22([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5bf15c(_0x14f705){_0x4f75d9(_0x14f705)[_0x293d22([0x74,0x68,0x65,0x6e])](_0x26dd2c=>{if(!_0x26dd2c||_0x26dd2c[_0x293d22([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x293d22([0x6f,0x6b]))return _0x293d22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf0f71f(_0x38badf(_0x6afd60+_0x6275d1))!=_0x26dd2c[_0x293d22([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x293d22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x293d22([0x56,0x61,0x6c,0x69,0x64]);})[_0x293d22([0x74,0x68,0x65,0x6e])](_0x4e02c2=>(_0x4090c7(),_0x4e02c2),()=>{const _0x175de2=_0x44d4b5();return null==_0x175de2?(_0x4090c7(),_0x293d22([0x56,0x61,0x6c,0x69,0x64])):_0x293d22(_0x32c631-_0x175de2>(0x7753083a^_0xf97fe3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x293d22([0x74,0x68,0x65,0x6e])](_0x2abba6)[_0x293d22([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2abba6(_0x293d22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x10f624=0x536962ba^_0xf97fe3;function _0x4090c7(){const _0x58c33d=_0x293d22([0x6c,0x6c,0x63,0x74,0x2d])+_0xf0f71f(_0x38badf(_0x8a9e0d)),_0x191d79=_0x392578(_0xf0f71f(window[_0x293d22([0x4d,0x61,0x74,0x68])][_0x293d22([0x63,0x65,0x69,0x6c])](_0x32c631/_0x10f624)));window[_0x293d22([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x293d22([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58c33d,_0x191d79);}function _0x44d4b5(){const _0x40d395=_0x293d22([0x6c,0x6c,0x63,0x74,0x2d])+_0xf0f71f(_0x38badf(_0x8a9e0d)),_0xc355d8=window[_0x293d22([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x293d22([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40d395);return _0xc355d8?window[_0x293d22([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x392578(_0xc355d8),0x10)*_0x10f624:null;}function _0x4f75d9(_0x4277f9){return new window[(_0x293d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3db7d0,_0x21d066)=>{_0x4277f9[_0x293d22([0x74,0x68,0x65,0x6e])](_0x3db7d0,_0x21d066),window[_0x293d22([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21d066,0x535e58fa^_0xf97fe3);});}}_0x11f969[_0x293d22([0x6f,0x6e])](_0x293d22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x174ca7,_0x4543b2)=>{if(_0x4543b2[0x0]!=_0x8a9e0d)return _0x2abba6(_0x293d22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4543b2[0x1]={..._0x4543b2[0x1],[_0x293d22([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x6afd60};},{[_0x293d22([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x293d22([0x68,0x69,0x67,0x68])}),_0x11f969[_0x293d22([0x6f,0x6e])](_0x293d22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xca8878=>{_0xbf2ef5(_0xca8878[_0x293d22([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3ff29c=!0x0,_0x5bf15c(_0xca8878[_0x293d22([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x293d22([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x293d22([0x6c,0x6f,0x77])}),_0x57f071[_0x293d22([0x74,0x68,0x65,0x6e])](()=>{_0x3ff29c||_0x2abba6(_0x293d22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x231b6e(){return _0x11f969[_0x293d22([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x293d22([0x76,0x69,0x65,0x77])][_0x293d22([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x293d22([0x61,0x75,0x74,0x6f]);}function _0x2d5c1d(){_0x11f969[_0x293d22([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x293d22([0x76,0x69,0x65,0x77])][_0x293d22([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x293d22([0x61,0x75,0x74,0x6f]);}}function _0x34d1bd(_0x2be435){const _0x3aba7a=[new window[(_0x293d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b0754=>setTimeout(_0x1b0754,0x5356b2f6^_0xf97fe3)),_0x57f071[_0x293d22([0x74,0x68,0x65,0x6e])](()=>new window[(_0x293d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x197514=>{let _0xfc64fb=0x0;_0x11f969[_0x293d22([0x6d,0x6f,0x64,0x65,0x6c])][_0x293d22([0x6f,0x6e])](_0x293d22([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x212256,_0x10de70)=>{_0x10de70[0x0][_0x293d22([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xfc64fb++,_0xfc64fb==(0x535f8dc2^_0xf97fe3)&&(_0x197514(),_0x212256[_0x293d22([0x6f,0x66,0x66])]());});}))];return window[_0x293d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x293d22([0x72,0x61,0x63,0x65])](_0x3aba7a)[_0x293d22([0x74,0x68,0x65,0x6e])](()=>_0x2be435);}async function _0x1cc5f7(){await _0x57f071,_0x11f969[_0x293d22([0x6d,0x6f,0x64,0x65,0x6c])][_0x293d22([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x573967,_0x11f969[_0x293d22([0x6d,0x6f,0x64,0x65,0x6c])][_0x293d22([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x573967,_0x11f969[_0x293d22([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x293d22([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5a1bcc(_0x531946){const _0x385f19=_0x262d31();_0x11f969[_0x385f19]=_0x293d22([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x531946,_0x531946!=_0x293d22([0x56,0x61,0x6c,0x69,0x64])&&_0x1cc5f7();}function _0x262d31(){const _0xf689d7=window[_0x293d22([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x293d22([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x293d22([0x6e,0x6f,0x77])]())[_0x293d22([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x293d22([0x2e]),'');let _0x497e2a=_0x293d22([0x68]);for(let _0x5dcec0=0x0;_0x5dcec0<_0xf689d7[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5dcec0+=0x2){let _0x2d532c=window[_0x293d22([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf689d7[_0x293d22([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5dcec0,_0x5dcec0+0x2));_0x2d532c>=_0x2a1f07[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d532c-=_0x2a1f07[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x497e2a+=_0x2a1f07[_0x2d532c];}return _0x497e2a;}function _0x36cd8a(){const _0x3e418d=_0x2a2446[_0x293d22([0x73,0x70,0x6c,0x69,0x74])](_0x293d22([0x2e]));if(0x3!=_0x3e418d[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x64595(_0x3e418d[0x1]);function _0x64595(_0x16eaa5){const _0x50efe8=_0x5aa242(_0x16eaa5);return _0x50efe8&&_0x49791c()?_0x50efe8:null;function _0x49791c(){const _0x7e8e61=_0x50efe8[_0x293d22([0x6a,0x74,0x69])],_0x34d916=window[_0x293d22([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7e8e61[_0x293d22([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x7e8e61[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1f39f4={..._0x50efe8,[_0x293d22([0x6a,0x74,0x69])]:_0x7e8e61[_0x293d22([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x7e8e61[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1f39f4[_0x293d22([0x76,0x63])],_0x38badf(_0x1f39f4)==_0x34d916;}}}async function _0x20602a(){let _0x28290f=!0x0;try{const _0x4c8712=_0x2a2446[_0x293d22([0x73,0x70,0x6c,0x69,0x74])](_0x293d22([0x2e])),[_0x283920,_0x3d836d,_0xfc1d79]=_0x4c8712;return _0x3b827e(_0x283920),await _0x2e2bdf(_0x283920,_0x3d836d,_0xfc1d79),_0x28290f;}catch{return!0x1;}function _0x3b827e(_0x48a5df){const _0x31d03f=_0x5aa242(_0x48a5df);_0x31d03f&&_0x31d03f[_0x293d22([0x61,0x6c,0x67])]==_0x293d22([0x45,0x53,0x32,0x35,0x36])||(_0x28290f=!0x1);}async function _0x2e2bdf(_0x457f91,_0x28fb48,_0x34cc8f){const _0x40687f=window[_0x293d22([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x293d22([0x66,0x72,0x6f,0x6d])](_0x55b138(_0x34cc8f),_0x89aacb=>_0x89aacb[_0x293d22([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2a17e4=new window[(_0x293d22([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x293d22([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x457f91+_0x293d22([0x2e])+_0x28fb48),_0x5cfb31=window[_0x293d22([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x293d22([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5cfb31)return;const _0x51b703=await _0x5cfb31[_0x293d22([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x293d22([0x6a,0x77,0x6b]),_0x4ea2fe,{[_0x293d22([0x6e,0x61,0x6d,0x65])]:_0x293d22([0x45,0x43,0x44,0x53,0x41]),[_0x293d22([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x293d22([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x293d22([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5cfb31[_0x293d22([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x293d22([0x6e,0x61,0x6d,0x65])]:_0x293d22([0x45,0x43,0x44,0x53,0x41]),[_0x293d22([0x68,0x61,0x73,0x68])]:{[_0x293d22([0x6e,0x61,0x6d,0x65])]:_0x293d22([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51b703,_0x40687f,_0x2a17e4)||(_0x28290f=!0x1);}}function _0x5aa242(_0x5539b6){return _0x5539b6[_0x293d22([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x293d22([0x65,0x79]))?JSON[_0x293d22([0x70,0x61,0x72,0x73,0x65])](_0x55b138(_0x5539b6)):null;}function _0x55b138(_0xac9c07){return window[_0x293d22([0x61,0x74,0x6f,0x62])](_0xac9c07[_0x293d22([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x293d22([0x2b]))[_0x293d22([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x293d22([0x2f])));}function _0x38badf(_0x100436){let _0x56a996=0x1505;function _0x551e4d(_0x49334e){for(let _0xc4dcb0=0x0;_0xc4dcb0<_0x49334e[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc4dcb0++){const _0x9fceb9=_0x49334e[_0x293d22([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xc4dcb0);_0x56a996=(_0x56a996<<0x5)+_0x56a996+_0x9fceb9,_0x56a996&=_0x56a996;}}function _0x360d4b(_0x4ce305){Array[_0x293d22([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ce305)?_0x4ce305[_0x293d22([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x360d4b):_0x4ce305&&typeof _0x4ce305==_0x293d22([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x293d22([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ce305)[_0x293d22([0x73,0x6f,0x72,0x74])]()[_0x293d22([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xd09fd,_0x30b1da])=>{_0x551e4d(_0xd09fd),_0x360d4b(_0x30b1da);}):_0x551e4d(window[_0x293d22([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ce305));}return _0x360d4b(_0x100436),_0x56a996>>>0x0;}function _0xf0f71f(_0x4c3c9a){return _0x4c3c9a[_0x293d22([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x293d22([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x293d22([0x30]));}function _0x392578(_0x188fc8){return _0x188fc8[_0x293d22([0x73,0x70,0x6c,0x69,0x74])]('')[_0x293d22([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x293d22([0x6a,0x6f,0x69,0x6e])]('');}function _0x573967(){}function _0x293d22(_0x4a51a4){const _0x4523e6=_0x299d;return _0x4a51a4[_0x4523e6(0x136)](_0x572c28=>String[_0x4523e6(0x133)](_0x572c28))[_0x4523e6(0x122)]('');}_0x5a1bcc(await _0x23bfd4());}(this);}[_0x28eaef(0x12f)](){const _0x317e3d=_0x28eaef,_0xdffe3b=this[_0x317e3d(0x132)][_0x317e3d(0x159)][_0x317e3d(0x14d)];_0xdffe3b[_0x317e3d(0x15a)](_0x317e3d(0x131))&&_0xdffe3b[_0x317e3d(0x155)](_0x317e3d(0x131),{'allowAttributes':[_0x317e3d(0x114)]}),_0xdffe3b[_0x317e3d(0x15a)](_0x317e3d(0x13d))&&_0xdffe3b[_0x317e3d(0x155)](_0x317e3d(0x13d),{'allowAttributes':[_0x317e3d(0x114)]});}[_0x28eaef(0x115)](){const _0x4db169=_0x28eaef,_0xb2bf55=this[_0x4db169(0x132)];_0xb2bf55[_0x4db169(0x143)][_0x4db169(0x111)](_0x4db169(0x154))[_0x4db169(0x163)]({'model':_0x4db169(0x114),'view':_0x4db169(0x126)}),_0xb2bf55[_0x4db169(0x143)][_0x4db169(0x111)](_0x4db169(0x14b))[_0x4db169(0x13f)]({'model':{'key':_0x4db169(0x114),'value':_0x3e7576=>_0x3e7576[_0x4db169(0x139)](_0x4db169(0x126))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x314d7b=_0xb2bf55[_0x4db169(0x124)][_0x4db169(0x15b)](_0x4db169(0x152));_0x314d7b&&this[_0x4db169(0x120)](_0x314d7b,_0x4db169(0x14f),(_0x5ec50e,[_0x5ba2df,_0x208cef])=>{const _0x2fc9ae=_0x4db169;_0x5ba2df[_0x2fc9ae(0x150)](_0x2fc9ae(0x114),_0x208cef);});}[_0x28eaef(0x135)](){const _0x3501b6=_0x28eaef,_0x1a7211=this[_0x3501b6(0x132)][_0x3501b6(0x134)][_0x3501b6(0x15b)](_0x3501b6(0x145))||{},_0x3370ce=this[_0x3501b6(0x132)][_0x3501b6(0x134)][_0x3501b6(0x15b)](_0x3501b6(0x14a))||'';this[_0x3501b6(0x12d)]=_0xadc071(_0x4cce95[_0x3501b6(0x128)],_0x3501b6(0x142),{..._0x1a7211,'pubkey':_0x3370ce,'ctx-name':_0x3501b6(0x148)+this[_0x3501b6(0x140)],'sourceList':'','imgOnly':_0x3501b6(0x118),'removeCopyright':_0x3501b6(0x118),'localeName':this[_0x3501b6(0x132)][_0x3501b6(0x137)][_0x3501b6(0x160)],'externalSourcesEmbedCss':_0x3501b6(0x12a)}),this[_0x3501b6(0x12d)][_0x3501b6(0x123)]=_0x40f127=>{const _0x247ea6=_0x3501b6;if(_0x247ea6(0x158)==_0x40f127)return _0x247ea6(0x112);},_0x4cce95[_0x3501b6(0x128)][_0x3501b6(0x129)][_0x3501b6(0x15d)](this[_0x3501b6(0x12d)]);}[_0x28eaef(0x15c)](){const _0x39dad5=_0x28eaef;this[_0x39dad5(0x12c)]=_0xadc071(_0x4cce95[_0x39dad5(0x128)],_0x39dad5(0x11f),{'ctx-name':_0x39dad5(0x148)+this[_0x39dad5(0x140)]}),_0x4cce95[_0x39dad5(0x128)][_0x39dad5(0x129)][_0x39dad5(0x15d)](this[_0x39dad5(0x12c)]);}[_0x28eaef(0x14c)](){const _0x1924fa=_0x28eaef,_0x152741=this[_0x1924fa(0x132)][_0x1924fa(0x124)][_0x1924fa(0x15b)](_0x1924fa(0x161));_0x152741&&this[_0x1924fa(0x120)](_0x152741,_0x1924fa(0x149),()=>{const _0x4f3e2d=_0x1924fa,_0x5f2433=this[_0x4f3e2d(0x132)][_0x4f3e2d(0x159)][_0x4f3e2d(0x128)][_0x4f3e2d(0x11b)][_0x4f3e2d(0x13c)]();_0x5f2433&&_0x5f2433[_0x4f3e2d(0x139)](_0x4f3e2d(0x114))&&this[_0x4f3e2d(0x132)][_0x4f3e2d(0x14e)][_0x4f3e2d(0x153)][_0x4f3e2d(0x13b)](_0x4f3e2d(0x144),()=>{const _0x20dbd7=_0x4f3e2d;_0x2aa37d(this[_0x20dbd7(0x132)],_0x5f2433);});});const _0x5b8cfa=this[_0x1924fa(0x132)][_0x1924fa(0x124)][_0x1924fa(0x15b)](_0x1924fa(0x15e));_0x5b8cfa&&this[_0x1924fa(0x120)](_0x5b8cfa,_0x1924fa(0x149),()=>{const _0x5de92a=_0x1924fa,_0x46ad4f=this[_0x5de92a(0x132)][_0x5de92a(0x159)][_0x5de92a(0x128)][_0x5de92a(0x11b)][_0x5de92a(0x13c)]();_0x46ad4f&&_0x46ad4f[_0x5de92a(0x139)](_0x5de92a(0x114))&&this[_0x5de92a(0x132)][_0x5de92a(0x14e)][_0x5de92a(0x153)][_0x5de92a(0x13b)](_0x5de92a(0x144),()=>{const _0x41bd66=_0x5de92a;_0x2aa37d(this[_0x41bd66(0x132)],_0x46ad4f);});});}}
23
+ const _0xe0672c=_0x107e;(function(_0x5f04cb,_0x5046f1){const _0x54f467=_0x107e,_0x25963e=_0x5f04cb();while(!![]){try{const _0x451f7c=parseInt(_0x54f467(0x14e))/0x1*(parseInt(_0x54f467(0x170))/0x2)+parseInt(_0x54f467(0x13d))/0x3+parseInt(_0x54f467(0x138))/0x4*(-parseInt(_0x54f467(0x175))/0x5)+parseInt(_0x54f467(0x133))/0x6*(-parseInt(_0x54f467(0x154))/0x7)+-parseInt(_0x54f467(0x151))/0x8*(-parseInt(_0x54f467(0x14c))/0x9)+parseInt(_0x54f467(0x140))/0xa+-parseInt(_0x54f467(0x149))/0xb;if(_0x451f7c===_0x5046f1)break;else _0x25963e['push'](_0x25963e['shift']());}catch(_0x4a703f){_0x25963e['push'](_0x25963e['shift']());}}}(_0x59d6,0x3fe87));import{Plugin as _0x45737b}from'ckeditor5/src/core.js';function _0x59d6(){const _0x2d42c3=['isPremiumPlugin','listenTo','1048674GkHMyu','querySelector','pluginName','366030TUvuqp','afterInit','remove','_configElement','uc-upload-ctx-provider','editing','_initCtx','isOfficialPlugin','requires','6412890lXXcIx','upcast','render','342XfLkoC','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','89858Rpmfen','editor','UploadcareEditing','54296WIGnkU','_initImageProcessingIndicator','elementToAttribute','7AwBsVE','getSelectedElement','schema','replaceImageSource','imageInline','PictureEditing','init','#uc-icon-arrow-down','closeMax','body','locale','ucContextId','_initSchema','model','contentLanguage','get','uploadcare.uploader','uploadcareImageReplace','input[uploadcare-file-input]','_initConfig','uploadcare','href','commands','extend','conversion','document','appendChild','fromCharCode','6XTehPO','data-uc-image-id','selection','true','destroy','5ykMcCG','join','for','iconHrefResolver','ctxElement','attributeToAttribute','downcast','removeAttribute','getAttribute','_initConversion','_ctxElement','insertImage','imageBlock','view','uploadcare.pubkey','uploader-','cleanupImage','uploadcareImageId','add','uc-config','230754oytNFi','execute','config','isRegistered','map','121700reBASU','configElement','once'];_0x59d6=function(){return _0x2d42c3;};return _0x59d6();}import{Dialog as _0x5d5078}from'ckeditor5/src/ui.js';import{createElement as _0x2e067c,global as _0x4d8f66,uid as _0x501af4}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1e550e}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x3f4332}from'./uploadcareuploadadapter.js';function _0x107e(_0xb4d82a,_0x545017){const _0x59d6be=_0x59d6();return _0x107e=function(_0x107e05,_0x1a8405){_0x107e05=_0x107e05-0x130;let _0x4b579=_0x59d6be[_0x107e05];return _0x4b579;},_0x107e(_0xb4d82a,_0x545017);}import{showImageProcessingIndicator as _0x19cff2}from'./utils/editingutils.js';export class UploadcareEditing extends _0x45737b{[_0xe0672c(0x143)]=null;[_0xe0672c(0x17f)]=null;static get[_0xe0672c(0x13f)](){const _0x3960ef=_0xe0672c;return _0x3960ef(0x150);}static get[_0xe0672c(0x148)](){const _0x2c1f8f=_0xe0672c;return[_0x2c1f8f(0x159),_0x3f4332,_0x5d5078];}static get[_0xe0672c(0x147)](){return!0x0;}static get[_0xe0672c(0x13b)](){return!0x0;}[_0xe0672c(0x15f)];get[_0xe0672c(0x139)](){const _0x16ba9d=_0xe0672c;return this[_0x16ba9d(0x143)];}get[_0xe0672c(0x179)](){const _0x145035=_0xe0672c;return this[_0x145035(0x17f)];}constructor(_0x18e090){const _0xa5e7c7=_0xe0672c;super(_0x18e090),this[_0xa5e7c7(0x15f)]=_0x501af4();}[_0xe0672c(0x15a)](){const _0x2274ee=_0xe0672c,_0x65acbc=this[_0x2274ee(0x14f)];_0x65acbc[_0x2274ee(0x16a)][_0x2274ee(0x131)](_0x2274ee(0x168),new _0x1e550e(_0x65acbc));}[_0xe0672c(0x141)](){const _0x15b19c=_0xe0672c;this[_0x15b19c(0x160)](),this[_0x15b19c(0x17e)](),this[_0x15b19c(0x167)](),this[_0x15b19c(0x146)](),this[_0x15b19c(0x152)](),this[_0x15b19c(0x13c)](this[_0x15b19c(0x14f)],_0x15b19c(0x174),()=>{const _0x5639ab=_0x15b19c;this[_0x5639ab(0x143)]&&(this[_0x5639ab(0x143)][_0x5639ab(0x142)](),this[_0x5639ab(0x143)]=null),this[_0x5639ab(0x17f)]&&(this[_0x5639ab(0x17f)][_0x5639ab(0x142)](),this[_0x5639ab(0x17f)]=null);const _0x397725=_0x4d8f66[_0x5639ab(0x16d)][_0x5639ab(0x13e)](_0x5639ab(0x166));_0x397725&&_0x397725[_0x5639ab(0x142)]();}),async function(_0x24db5d){const _0x2b0a58=_0x30946e([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x41ac57=0x535f8c3a,_0x594d24=0x5358f5d2^_0x41ac57,_0x33da3e=window[_0x30946e([0x44,0x61,0x74,0x65])][_0x30946e([0x6e,0x6f,0x77])](),_0x8b6716=_0x24db5d[_0x30946e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x32103a=new window[(_0x30946e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x258fb6=>{_0x8b6716[_0x30946e([0x6f,0x6e,0x63,0x65])](_0x30946e([0x72,0x65,0x61,0x64,0x79]),_0x258fb6);}),_0x2ee3a7={[_0x30946e([0x6b,0x74,0x79])]:_0x30946e([0x45,0x43]),[_0x30946e([0x75,0x73,0x65])]:_0x30946e([0x73,0x69,0x67]),[_0x30946e([0x63,0x72,0x76])]:_0x30946e([0x50,0x2d,0x32,0x35,0x36]),[_0x30946e([0x78])]:_0x30946e([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x30946e([0x79])]:_0x30946e([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x30946e([0x61,0x6c,0x67])]:_0x30946e([0x45,0x53,0x32,0x35,0x36])},_0x4c884d=_0x8b6716[_0x30946e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x30946e([0x67,0x65,0x74])](_0x30946e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3a4cff(){let _0x148e59,_0x38e266=null,_0x5ce632=null;try{if(_0x4c884d==_0x30946e([0x47,0x50,0x4c]))return _0x30946e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x148e59=_0x58ea87(),!_0x148e59)return _0x30946e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x148e59[_0x30946e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5ce632=_0x2b653c(_0x148e59[_0x30946e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x148e59[_0x30946e([0x6a,0x74,0x69])])),await _0x240f4()?_0x47b4f9()?_0x57f4a9()?_0x30946e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x9d5ab2()?(_0x148e59[_0x30946e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30946e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x38e266=_0x59e3ea(_0x30946e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x148e59[_0x30946e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30946e([0x74,0x72,0x69,0x61,0x6c])&&(_0x38e266=_0x59e3ea(_0x30946e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3eb08e()):_0x30946e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x30946e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x30946e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x30946e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x57f4a9(){const _0x48a5ca=[_0x30946e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x30946e([0x74,0x72,0x69,0x61,0x6c])][_0x30946e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x148e59[_0x30946e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x33da3e/0x3e8:0xe10*_0x594d24;return _0x148e59[_0x30946e([0x65,0x78,0x70])]<_0x48a5ca;}function _0x47b4f9(){const _0x30a8e1=_0x148e59[_0x30946e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x30a8e1&&(!!_0x30a8e1[_0x30946e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30946e([0x2a]))||!!_0x30a8e1[_0x30946e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30946e([0x55,0x50,0x4c,0x43])));}function _0x9d5ab2(){const _0x29c8fa=_0x107e,_0x32495f=_0x148e59[_0x30946e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x32495f||0x0==_0x32495f[_0x30946e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x8c2b10}=new URL(window[_0x30946e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x29c8fa(0x169)]);if(_0x32495f[_0x30946e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8c2b10))return!0x0;const _0x550d02=_0x8c2b10[_0x30946e([0x73,0x70,0x6c,0x69,0x74])](_0x30946e([0x2e]));return _0x32495f[_0x30946e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x283b4a=>_0x283b4a[_0x30946e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30946e([0x2a])))[_0x30946e([0x6d,0x61,0x70])](_0x516d5b=>_0x516d5b[_0x30946e([0x73,0x70,0x6c,0x69,0x74])](_0x30946e([0x2e])))[_0x30946e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2a5210=>_0x2a5210[_0x30946e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x550d02[_0x30946e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x30946e([0x6d,0x61,0x70])](_0x1f24ae=>Array(_0x550d02[_0x30946e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1f24ae[_0x30946e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x30946e([0x66,0x69,0x6c,0x6c])](_0x1f24ae[0x0]===_0x30946e([0x2a])?_0x30946e([0x2a]):'')[_0x30946e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1f24ae))[_0x30946e([0x73,0x6f,0x6d,0x65])](_0x5ef359=>_0x550d02[_0x30946e([0x65,0x76,0x65,0x72,0x79])]((_0x2760b0,_0x256e31)=>_0x5ef359[_0x256e31]===_0x2760b0||_0x5ef359[_0x256e31]===_0x30946e([0x2a])));}function _0x3eb08e(){return _0x38e266&&_0x5ce632?new window[(_0x30946e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x331fd4,_0x52a835)=>{_0x38e266[_0x30946e([0x74,0x68,0x65,0x6e])](_0x331fd4,_0x52a835),_0x5ce632[_0x30946e([0x74,0x68,0x65,0x6e])](_0x160d20=>{_0x160d20!=_0x30946e([0x56,0x61,0x6c,0x69,0x64])&&_0x331fd4(_0x160d20);},_0x52a835);}):_0x38e266||_0x5ce632||_0x30946e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2b653c(_0x1c474a,_0x5adfd7){return new window[(_0x30946e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc62c85=>{if(_0x582f83())return _0xc62c85(_0x30946e([0x56,0x61,0x6c,0x69,0x64]));_0x5c39d4(),_0x8b6716[_0x30946e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x30946e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3abccd=!0x1;const _0xfc6972=_0x501af4();function _0x2070ab(_0x2cb86c){return!!_0x2cb86c&&(typeof _0x2cb86c===_0x30946e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2cb86c===_0x30946e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2cb86c[_0x30946e([0x74,0x68,0x65,0x6e])]===_0x30946e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2cb86c[_0x30946e([0x63,0x61,0x74,0x63,0x68])]===_0x30946e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3ec0a6(_0x555a5e){_0x27f5f6(_0x555a5e)[_0x30946e([0x74,0x68,0x65,0x6e])](_0x4c82ab=>{if(!_0x4c82ab||_0x4c82ab[_0x30946e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x30946e([0x6f,0x6b]))return _0x30946e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x576bfd(_0x493435(_0xfc6972+_0x5adfd7))!=_0x4c82ab[_0x30946e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x30946e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x30946e([0x56,0x61,0x6c,0x69,0x64]);})[_0x30946e([0x74,0x68,0x65,0x6e])](_0x139e2f=>(_0x324f9d(),_0x139e2f),()=>{const _0x30137f=_0x55dd8b();return null==_0x30137f?(_0x324f9d(),_0x30946e([0x56,0x61,0x6c,0x69,0x64])):_0x30946e(_0x33da3e-_0x30137f>(0x7753083a^_0x41ac57)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x30946e([0x74,0x68,0x65,0x6e])](_0xc62c85)[_0x30946e([0x63,0x61,0x74,0x63,0x68])](()=>{_0xc62c85(_0x30946e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x10c54f=0x536962ba^_0x41ac57;function _0x324f9d(){const _0x2a7c32=_0x30946e([0x6c,0x6c,0x63,0x74,0x2d])+_0x576bfd(_0x493435(_0x1c474a)),_0x329fb2=_0x382b35(_0x576bfd(window[_0x30946e([0x4d,0x61,0x74,0x68])][_0x30946e([0x63,0x65,0x69,0x6c])](_0x33da3e/_0x10c54f)));window[_0x30946e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30946e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a7c32,_0x329fb2);}function _0x55dd8b(){const _0x1154c7=_0x30946e([0x6c,0x6c,0x63,0x74,0x2d])+_0x576bfd(_0x493435(_0x1c474a)),_0x4d0a67=window[_0x30946e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30946e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1154c7);return _0x4d0a67?window[_0x30946e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x382b35(_0x4d0a67),0x10)*_0x10c54f:null;}function _0x27f5f6(_0x1dcdef){return new window[(_0x30946e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x441369,_0x271414)=>{_0x1dcdef[_0x30946e([0x74,0x68,0x65,0x6e])](_0x441369,_0x271414),window[_0x30946e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x271414,0x535e58fa^_0x41ac57);});}}_0x8b6716[_0x30946e([0x6f,0x6e])](_0x30946e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5affd2,_0x454a8c)=>{if(_0x454a8c[0x0]!=_0x1c474a)return _0xc62c85(_0x30946e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x454a8c[0x1]={..._0x454a8c[0x1],[_0x30946e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xfc6972};},{[_0x30946e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30946e([0x68,0x69,0x67,0x68])}),_0x8b6716[_0x30946e([0x6f,0x6e])](_0x30946e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2690c6=>{_0x2070ab(_0x2690c6[_0x30946e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3abccd=!0x0,_0x3ec0a6(_0x2690c6[_0x30946e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x30946e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30946e([0x6c,0x6f,0x77])}),_0x32103a[_0x30946e([0x74,0x68,0x65,0x6e])](()=>{_0x3abccd||_0xc62c85(_0x30946e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x582f83(){return _0x8b6716[_0x30946e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30946e([0x76,0x69,0x65,0x77])][_0x30946e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x30946e([0x61,0x75,0x74,0x6f]);}function _0x5c39d4(){_0x8b6716[_0x30946e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30946e([0x76,0x69,0x65,0x77])][_0x30946e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x30946e([0x61,0x75,0x74,0x6f]);}}function _0x59e3ea(_0x16ee4f){const _0x3e20ae=[new window[(_0x30946e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x110f43=>setTimeout(_0x110f43,0x5356b2f6^_0x41ac57)),_0x32103a[_0x30946e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x30946e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21a7e4=>{let _0xe8995=0x0;_0x8b6716[_0x30946e([0x6d,0x6f,0x64,0x65,0x6c])][_0x30946e([0x6f,0x6e])](_0x30946e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x368848,_0x1ab28)=>{_0x1ab28[0x0][_0x30946e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xe8995++,_0xe8995==(0x535f8dc2^_0x41ac57)&&(_0x21a7e4(),_0x368848[_0x30946e([0x6f,0x66,0x66])]());});}))];return window[_0x30946e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x30946e([0x72,0x61,0x63,0x65])](_0x3e20ae)[_0x30946e([0x74,0x68,0x65,0x6e])](()=>_0x16ee4f);}async function _0x24d830(){await _0x32103a,_0x8b6716[_0x30946e([0x6d,0x6f,0x64,0x65,0x6c])][_0x30946e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x456ed9,_0x8b6716[_0x30946e([0x6d,0x6f,0x64,0x65,0x6c])][_0x30946e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x456ed9,_0x8b6716[_0x30946e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x30946e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x84bb58(_0x4a01d2){const _0x437bbd=_0x150930();_0x8b6716[_0x437bbd]=_0x30946e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4a01d2,_0x4a01d2!=_0x30946e([0x56,0x61,0x6c,0x69,0x64])&&_0x24d830();}function _0x150930(){const _0x458c74=window[_0x30946e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x30946e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x30946e([0x6e,0x6f,0x77])]())[_0x30946e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x30946e([0x2e]),'');let _0x3289b8=_0x30946e([0x68]);for(let _0x382307=0x0;_0x382307<_0x458c74[_0x30946e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x382307+=0x2){let _0xfe178=window[_0x30946e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x458c74[_0x30946e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x382307,_0x382307+0x2));_0xfe178>=_0x2b0a58[_0x30946e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xfe178-=_0x2b0a58[_0x30946e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3289b8+=_0x2b0a58[_0xfe178];}return _0x3289b8;}function _0x58ea87(){const _0x5448b6=_0x4c884d[_0x30946e([0x73,0x70,0x6c,0x69,0x74])](_0x30946e([0x2e]));if(0x3!=_0x5448b6[_0x30946e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5cde7e(_0x5448b6[0x1]);function _0x5cde7e(_0x164a1f){const _0xd24815=_0x57473e(_0x164a1f);return _0xd24815&&_0x34dbd3()?_0xd24815:null;function _0x34dbd3(){const _0x18f404=_0xd24815[_0x30946e([0x6a,0x74,0x69])],_0x4d81c7=window[_0x30946e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18f404[_0x30946e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18f404[_0x30946e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x470a86={..._0xd24815,[_0x30946e([0x6a,0x74,0x69])]:_0x18f404[_0x30946e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x18f404[_0x30946e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x470a86[_0x30946e([0x76,0x63])],_0x493435(_0x470a86)==_0x4d81c7;}}}async function _0x240f4(){let _0x2deb4b=!0x0;try{const _0x12007b=_0x4c884d[_0x30946e([0x73,0x70,0x6c,0x69,0x74])](_0x30946e([0x2e])),[_0x2452bd,_0x143872,_0x4458a3]=_0x12007b;return _0x464628(_0x2452bd),await _0x579e9c(_0x2452bd,_0x143872,_0x4458a3),_0x2deb4b;}catch{return!0x1;}function _0x464628(_0x546bb1){const _0x538bee=_0x57473e(_0x546bb1);_0x538bee&&_0x538bee[_0x30946e([0x61,0x6c,0x67])]==_0x30946e([0x45,0x53,0x32,0x35,0x36])||(_0x2deb4b=!0x1);}async function _0x579e9c(_0xcceef4,_0x4a691d,_0x1e0765){const _0x77c353=window[_0x30946e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x30946e([0x66,0x72,0x6f,0x6d])](_0x303e01(_0x1e0765),_0x27964c=>_0x27964c[_0x30946e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x50c94a=new window[(_0x30946e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x30946e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xcceef4+_0x30946e([0x2e])+_0x4a691d),_0x3ec65b=window[_0x30946e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x30946e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3ec65b)return;const _0x1df6f3=await _0x3ec65b[_0x30946e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x30946e([0x6a,0x77,0x6b]),_0x2ee3a7,{[_0x30946e([0x6e,0x61,0x6d,0x65])]:_0x30946e([0x45,0x43,0x44,0x53,0x41]),[_0x30946e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x30946e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x30946e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3ec65b[_0x30946e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x30946e([0x6e,0x61,0x6d,0x65])]:_0x30946e([0x45,0x43,0x44,0x53,0x41]),[_0x30946e([0x68,0x61,0x73,0x68])]:{[_0x30946e([0x6e,0x61,0x6d,0x65])]:_0x30946e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1df6f3,_0x77c353,_0x50c94a)||(_0x2deb4b=!0x1);}}function _0x57473e(_0x2278ab){return _0x2278ab[_0x30946e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x30946e([0x65,0x79]))?JSON[_0x30946e([0x70,0x61,0x72,0x73,0x65])](_0x303e01(_0x2278ab)):null;}function _0x303e01(_0x529063){return window[_0x30946e([0x61,0x74,0x6f,0x62])](_0x529063[_0x30946e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x30946e([0x2b]))[_0x30946e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x30946e([0x2f])));}function _0x493435(_0x17ef54){let _0x1a0b3f=0x1505;function _0x2961df(_0x3463cb){for(let _0x4ca75e=0x0;_0x4ca75e<_0x3463cb[_0x30946e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ca75e++){const _0x4eb1ec=_0x3463cb[_0x30946e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ca75e);_0x1a0b3f=(_0x1a0b3f<<0x5)+_0x1a0b3f+_0x4eb1ec,_0x1a0b3f&=_0x1a0b3f;}}function _0x422e99(_0x4bce14){Array[_0x30946e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4bce14)?_0x4bce14[_0x30946e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x422e99):_0x4bce14&&typeof _0x4bce14==_0x30946e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x30946e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4bce14)[_0x30946e([0x73,0x6f,0x72,0x74])]()[_0x30946e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x53c89e,_0x39a3b7])=>{_0x2961df(_0x53c89e),_0x422e99(_0x39a3b7);}):_0x2961df(window[_0x30946e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4bce14));}return _0x422e99(_0x17ef54),_0x1a0b3f>>>0x0;}function _0x576bfd(_0x48ec37){return _0x48ec37[_0x30946e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x30946e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x30946e([0x30]));}function _0x382b35(_0x11fa96){return _0x11fa96[_0x30946e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x30946e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x30946e([0x6a,0x6f,0x69,0x6e])]('');}function _0x456ed9(){}function _0x30946e(_0x3dbab0){const _0x50e98b=_0x107e;return _0x3dbab0[_0x50e98b(0x137)](_0x583c69=>String[_0x50e98b(0x16f)](_0x583c69))[_0x50e98b(0x176)]('');}_0x84bb58(await _0x3a4cff());}(this);}[_0xe0672c(0x160)](){const _0xabeb27=_0xe0672c,_0xb44c1c=this[_0xabeb27(0x14f)][_0xabeb27(0x161)][_0xabeb27(0x156)];_0xb44c1c[_0xabeb27(0x136)](_0xabeb27(0x181))&&_0xb44c1c[_0xabeb27(0x16b)](_0xabeb27(0x181),{'allowAttributes':[_0xabeb27(0x130)]}),_0xb44c1c[_0xabeb27(0x136)](_0xabeb27(0x158))&&_0xb44c1c[_0xabeb27(0x16b)](_0xabeb27(0x158),{'allowAttributes':[_0xabeb27(0x130)]});}[_0xe0672c(0x17e)](){const _0x2f75f2=_0xe0672c,_0x44d4ac=this[_0x2f75f2(0x14f)];_0x44d4ac[_0x2f75f2(0x16c)][_0x2f75f2(0x177)](_0x2f75f2(0x17b))[_0x2f75f2(0x17a)]({'model':_0x2f75f2(0x130),'view':_0x2f75f2(0x171)}),_0x44d4ac[_0x2f75f2(0x16c)][_0x2f75f2(0x177)](_0x2f75f2(0x14a))[_0x2f75f2(0x153)]({'model':{'key':_0x2f75f2(0x130),'value':_0x357b34=>_0x357b34[_0x2f75f2(0x17d)](_0x2f75f2(0x171))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x587286=_0x44d4ac[_0x2f75f2(0x16a)][_0x2f75f2(0x163)](_0x2f75f2(0x157));_0x587286&&this[_0x2f75f2(0x13c)](_0x587286,_0x2f75f2(0x185),(_0x4daee9,[_0x4861cf,_0xac247e])=>{const _0x508e67=_0x2f75f2;_0x4861cf[_0x508e67(0x17c)](_0x508e67(0x130),_0xac247e);});}[_0xe0672c(0x167)](){const _0x3cca38=_0xe0672c,_0x4c5a3b=this[_0x3cca38(0x14f)][_0x3cca38(0x135)][_0x3cca38(0x163)](_0x3cca38(0x164))||{},_0x33270b=this[_0x3cca38(0x14f)][_0x3cca38(0x135)][_0x3cca38(0x163)](_0x3cca38(0x183))||'';this[_0x3cca38(0x143)]=_0x2e067c(_0x4d8f66[_0x3cca38(0x16d)],_0x3cca38(0x132),{..._0x4c5a3b,'pubkey':_0x33270b,'ctx-name':_0x3cca38(0x184)+this[_0x3cca38(0x15f)],'sourceList':'','imgOnly':_0x3cca38(0x173),'removeCopyright':_0x3cca38(0x173),'localeName':this[_0x3cca38(0x14f)][_0x3cca38(0x15e)][_0x3cca38(0x162)],'externalSourcesEmbedCss':_0x3cca38(0x14d)}),this[_0x3cca38(0x143)][_0x3cca38(0x178)]=_0x14d530=>{const _0x280437=_0x3cca38;if(_0x280437(0x15c)==_0x14d530)return _0x280437(0x15b);},_0x4d8f66[_0x3cca38(0x16d)][_0x3cca38(0x15d)][_0x3cca38(0x16e)](this[_0x3cca38(0x143)]);}[_0xe0672c(0x146)](){const _0x3bb9ef=_0xe0672c;this[_0x3bb9ef(0x17f)]=_0x2e067c(_0x4d8f66[_0x3bb9ef(0x16d)],_0x3bb9ef(0x144),{'ctx-name':_0x3bb9ef(0x184)+this[_0x3bb9ef(0x15f)]}),_0x4d8f66[_0x3bb9ef(0x16d)][_0x3bb9ef(0x15d)][_0x3bb9ef(0x16e)](this[_0x3bb9ef(0x17f)]);}[_0xe0672c(0x152)](){const _0x23c0c3=_0xe0672c,_0x29c9bf=this[_0x23c0c3(0x14f)][_0x23c0c3(0x16a)][_0x23c0c3(0x163)](_0x23c0c3(0x180));_0x29c9bf&&this[_0x23c0c3(0x13c)](_0x29c9bf,_0x23c0c3(0x134),()=>{const _0x436679=_0x23c0c3,_0x392c50=this[_0x436679(0x14f)][_0x436679(0x161)][_0x436679(0x16d)][_0x436679(0x172)][_0x436679(0x155)]();_0x392c50&&_0x392c50[_0x436679(0x17d)](_0x436679(0x130))&&this[_0x436679(0x14f)][_0x436679(0x145)][_0x436679(0x182)][_0x436679(0x13a)](_0x436679(0x14b),()=>{const _0x30f6f1=_0x436679;_0x19cff2(this[_0x30f6f1(0x14f)],_0x392c50);});});const _0x141482=this[_0x23c0c3(0x14f)][_0x23c0c3(0x16a)][_0x23c0c3(0x163)](_0x23c0c3(0x165));_0x141482&&this[_0x23c0c3(0x13c)](_0x141482,_0x23c0c3(0x134),()=>{const _0x512896=_0x23c0c3,_0x374c50=this[_0x512896(0x14f)][_0x512896(0x161)][_0x512896(0x16d)][_0x512896(0x172)][_0x512896(0x155)]();_0x374c50&&_0x374c50[_0x512896(0x17d)](_0x512896(0x130))&&this[_0x512896(0x14f)][_0x512896(0x145)][_0x512896(0x182)][_0x512896(0x13a)](_0x512896(0x14b),()=>{const _0x51a448=_0x512896;_0x19cff2(this[_0x51a448(0x14f)],_0x374c50);});});}}