@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251122.0 → 0.0.0-nightly-20251124.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 _0x2b0850,Command as _0x8d5551}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3ad99c,IconGooglePhotos as _0x4002db,IconGoogleDrive as _0x37fa75,IconFacebook as _0x3959d8,IconDropbox as _0x210101,IconUploadcareLink as _0x10d99a,IconUploadcareImageUpload as _0x5d4fd7,IconError as _0x426d82,IconUploadcareImageEdit as _0x117f88}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3565e8,MenuBarMenuListItemButtonView as _0x3c9985,View as _0x2aea28,FocusCycler as _0x3a9837,Dialog as _0x5b01d3,DialogViewPosition as _0x2eb6ad,SpinnerView as _0x1872e0,IconView as _0x24f00d,Notification as _0x3e2df5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4ace88,DomEmitterMixin as _0x27e3b3,global as _0x15bdb4,getAncestors as _0x258571,ObservableMixin as _0x1f1b7b,uid as _0x2b5637,createElement as _0x3e63ff}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1db946}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4a03ae,info as _0x5054bf}from'@uploadcare/upload-client';import*as _0xfb2bf4 from'@uploadcare/file-uploader';var i=function(_0x41fe83){return _0x41fe83['Local']='local',_0x41fe83['URL']='url',_0x41fe83['Dropbox']='dropbox',_0x41fe83['GDrive']='gdrive',_0x41fe83['Facebook']='facebook',_0x41fe83['GPhotos']='gphotos',_0x41fe83['OneDrive']='onedrive',_0x41fe83;}({});function _(_0x183276,_0x24353a,_0x1f60ac){const t=_0x183276['t'],_0x3ffed8=_0x183276['t'];switch(_0x24353a){case i['Local']:return{'text':_0x3ffed8('Insert'===_0x1f60ac?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3ffed8('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x1f60ac?_0x3ffed8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3ffed8('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x1f60ac?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x1f60ac?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x1f60ac?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x1f60ac?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x1f60ac?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x24353a;}}class e extends _0x2b0850{['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 _0x377c6f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4d267e;for(const _0xebeb5f in _0x377c6f){const _0x1e2332=_0xebeb5f,_0x374c64=_0x377c6f[_0x1e2332];if('uploadcareLicenseKeyValid'==_0x374c64||'uploadcareLicenseKeyInvalid'==_0x374c64||'uploadcareLicenseKeyExpired'==_0x374c64||'uploadcareLicenseKeyDomainLimit'==_0x374c64||'uploadcareLicenseKeyNotAllowed'==_0x374c64||'uploadcareLicenseKeyEvaluationLimit'==_0x374c64||'uploadcareLicenseKeyTrialLimit'==_0x374c64||'uploadcareLicenseKeyUsageLimit'==_0x374c64){delete _0x377c6f[_0x1e2332],_0x4d267e=_0x374c64,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4d267e&&_0x377c6f['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4d267e&&_0x377c6f['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4d267e&&_0x377c6f['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4d267e&&_0x377c6f['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4d267e&&_0x377c6f['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4d267e&&_0x377c6f['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4d267e&&_0x377c6f['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4940be}=this,_0x632100=_0x4940be['commands']['get']('uploadcare');if(!_0x632100)return;const _0x69d838=this['_normalizeConfigSourceList'](_0x4940be['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1ee152,_0x1d3b82)=>{const _0x2f3729=this['_getIntegrationKey'](_0x1d3b82['type']);return _0x1ee152[_0x2f3729]||(_0x1ee152[_0x2f3729]=[]),_0x1ee152[_0x2f3729]['push'](_0x1d3b82),_0x1ee152;},{});_0x4940be['plugins']['has']('ImageInsertUI')&&_0x4940be['commands']['get']('uploadcare')&&Object['entries'](_0x69d838)['forEach'](([_0x53a1ec,_0x4625be])=>{_0x4940be['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x53a1ec,'observable':()=>_0x632100,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4625be),'formViewCreator':()=>this['_createDropdownButtons'](_0x4625be),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4625be),'override':'assetManager'!==_0x53a1ec});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x9e40f7){const {locale:_0x5bd14f}=this['editor'];return _0x9e40f7['map'](_0x2a9077=>{const _0x23eeae=_(_0x5bd14f,_0x2a9077,'Insert');switch(_0x2a9077){case i['Local']:return{'icon':_0x5d4fd7,'type':i['Local'],..._0x23eeae};case i['URL']:return{'icon':_0x10d99a,'type':i['URL'],..._0x23eeae};case i['Dropbox']:return{'icon':_0x210101,'type':i['Dropbox'],..._0x23eeae};case i['Facebook']:return{'icon':_0x3959d8,'type':i['Facebook'],..._0x23eeae};case i['GDrive']:return{'icon':_0x37fa75,'type':i['GDrive'],..._0x23eeae};case i['GPhotos']:return{'icon':_0x4002db,'type':i['GPhotos'],..._0x23eeae};case i['OneDrive']:return{'icon':_0x3ad99c,'type':i['OneDrive'],..._0x23eeae};}});}['_getIntegrationKey'](_0x5e1f3e){switch(_0x5e1f3e){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x371846,_0xcafe52){const _0x8ce302=this['editor'],_0x4ac651=new _0x371846(_0x8ce302['locale']),_0x20af68=_0x8ce302['commands']['get']('uploadcare');return _0x4ac651['bind']('isEnabled')['to'](_0x20af68),_0x4ac651['on']('execute',()=>{_0x20af68['execute'](_0xcafe52);}),_0x4ac651;}['_createToolbarButton'](_0x2932b4){const {locale:_0x16697a}=this['editor'],_0x5568d6=this['editor']['plugins']['get']('ImageInsertUI'),_0x10aa08=_0x2932b4[0x0],_0xc276d1=this['_createButton'](_0x3565e8,_0x10aa08['type']);return _0xc276d1['icon']=_0x10aa08['icon'],_0xc276d1['bind']('label')['to'](_0x5568d6,'isImageSelected',_0x1c8202=>_(_0x16697a,_0x10aa08['type'],_0x1c8202?'Replace':'Insert')['text']),_0xc276d1['tooltip']=!0x0,_0xc276d1;}['_createDropdownButtons'](_0x592505){const {locale:_0x38f835}=this['editor'],_0x3134dc=this['editor']['plugins']['get']('ImageInsertUI');return _0x592505['map'](_0x81dd98=>{const _0x455b90=this['_createButton'](_0x3565e8,_0x81dd98['type']);return _0x455b90['withText']=!0x0,_0x455b90['icon']=_0x81dd98['icon'],_0x455b90['bind']('label')['to'](_0x3134dc,'isImageSelected',_0x51cf95=>_(_0x38f835,_0x81dd98['type'],_0x51cf95?'Replace':'Insert')['text']),_0x455b90;});}['_createMenuBarButtons'](_0x3559a6){return _0x3559a6['map'](_0x15b572=>{const _0x2bbeb2=this['_createButton'](_0x3c9985,_0x15b572['type']);return _0x2bbeb2['icon']=_0x15b572['icon'],_0x2bbeb2['label']=_0x15b572['shortText'],_0x2bbeb2;});}}class F extends _0x2aea28{['focusTracker'];['focusCycler'];constructor(_0x257941){super(_0x257941),this['focusTracker']=new _0x4ace88(),this['focusCycler']=new _0x3a9837({'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(_0x510dc0,_0x44f346){super(_0x510dc0),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-'+_0x44f346}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3292c1,_0x2ddfb1){const _0x2b4cf9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x347336=>_0x347336<=_0x2ddfb1)['map'](_0x23b42c=>_0x3292c1['replace'](/\/$/,'')+'/-/resize/'+_0x23b42c+'x/\x20'+_0x23b42c+'w');return{'imageFallbackUrl':_0x3292c1,'imageSources':[{'srcset':_0x2b4cf9['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2ddfb1+'px)\x20100vw,\x20'+_0x2ddfb1+'px','type':'image/webp'}]};}function S(_0x4b868b,_0x37d94b,_0x5591ae){const _0x44c5a4=_0x4b868b['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x44c5a4?parseInt(_0x44c5a4[0x1],0xa):_0x37d94b,'height':_0x44c5a4?parseInt(_0x44c5a4[0x2],0xa):_0x5591ae};}function p(_0x23127,_0x26139b){const _0x542fbf=new(_0x27e3b3())(),_0x297981=_0x23127['plugins']['get']('ImageUtils'),_0x460a38=_0x23127['editing']['mapper']['toViewElement'](_0x26139b),_0x4256a1=_0x297981['findViewImgElement'](_0x460a38),_0x2c5c0b=_0x23127['editing']['view']['domConverter']['viewToDom'](_0x4256a1),_0x2b4aab=_0x26139b['getAttribute']('width'),_0x13d564=_0x26139b['getAttribute']('height'),_0x25c510='image-processing';_0x23127['editing']['view']['change'](_0x1ae21d=>{_0x1ae21d['addClass'](_0x25c510,_0x460a38),_0x1ae21d['setStyle']('aspect-ratio',_0x2b4aab+'/'+_0x13d564,_0x4256a1);}),_0x542fbf['listenTo'](_0x2c5c0b,'load',()=>{_0x542fbf['stopListening'](_0x2c5c0b,'load'),_0x23127['editing']['view']['change'](_0x4550cf=>{_0x4550cf['removeClass'](_0x25c510,_0x460a38),_0x4550cf['removeStyle']('aspect-ratio',_0x4256a1);});});}function z(_0x11da17){if(Array['isArray'](_0x11da17)){const _0x5e0792=_0x11da17['map'](z);return _0x6292e3=>_0x5e0792['some'](_0x16f528=>_0x16f528(_0x6292e3));}if('origin'==_0x11da17){const _0x1afa6f=_0x15bdb4['window']['location']['origin'];return _0x37d226=>new URL(_0x37d226,_0x15bdb4['document']['baseURI'])['origin']==_0x1afa6f;}return'function'==typeof _0x11da17?_0x11da17:_0x11da17 instanceof RegExp?_0x1aa2eb=>!(!_0x1aa2eb['match'](_0x11da17)&&!_0x1aa2eb['replace'](/^https?:\/\//,'')['match'](_0x11da17)):()=>!0x1;}function A(_0x40fcd2,_0x43e49){return _0x258571(_0x40fcd2['target'])['includes'](_0x43e49);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x1f1b7b(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2b2446,_0x44fcea,_0x42d17b){super(),this['_editor']=_0x2b2446,this['_editing']=_0x44fcea,this['_dialog']=_0x2b2446['plugins']['get'](_0x5b01d3),this['_api']=_0x44fcea['ctxElement']['getAPI'](),this['_type']=_0x42d17b,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:_0x523b9e,model:_0x1e5c6d}=this['_editor'],_0x3ad538=_0x1e5c6d['document']['selection']['getSelectedElement'](),_0x121297=_0x3ad538&&(_0x3ad538['is']('element','imageBlock')||_0x3ad538['is']('element','imageInline'));this['_formView']=new x(_0x523b9e,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5d4fd7,'title':_(_0x523b9e,this['_type'],_0x121297?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2eb6ad['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2a41e0=>!A(_0x2a41e0,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2588d5}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1c5c44=>{const _0xbccbcf=_0x2588d5['length'];for(const _0x29a1de of _0x2588d5){const _0x454bd7=_0x29a1de===_0x2588d5[_0xbccbcf-0x1],{cdnUrl:_0x1b4cde,fileInfo:_0x1c417b}=_0x29a1de;if(!_0x1b4cde||!_0x1c417b)continue;const {width:_0x483220,height:_0x45aedb}=_0x1c417b['imageInfo'],_0x4868fb=S(_0x1b4cde,_0x483220,_0x45aedb),_0x2aa6f1=C(_0x1b4cde,_0x4868fb['width']),_0x3a99b6={'id':_0x1c417b['uuid'],'type':'image','attributes':{'imageDimension':_0x4868fb,..._0x2aa6f1}};this['_insertAsset'](_0x3a99b6,_0x454bd7,_0x1c5c44);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x487462=>{'idle'===_0x487462['detail']['status']&&!_0x487462['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x373d21,_0x388e7a,_0x3aa0c3){const _0x551641=this['_editor']['model']['document']['selection'],_0x10b2c7=_0x551641['getSelectedElement'](),_0x4d99c0=!(!_0x10b2c7||!_0x10b2c7['is']('element','imageInline'));_0x3aa0c3['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x373d21,_0x4d99c0),_0x388e7a||_0x3aa0c3['setSelection'](_0x551641['getLastPosition']());}['_insertImage'](_0x419c44,_0x44c4bb){const _0xac8057=this['_editor'],{imageDimension:_0x2a4be8,imageFallbackUrl:_0x4724f6,imageSources:_0x2910b8}=_0x419c44['attributes'];_0xac8057['execute']('insertImage',{'imageType':_0x44c4bb?'imageInline':null,'source':{'uploadcareImageId':_0x419c44['id'],'src':_0x4724f6,'sources':_0x2910b8,..._0x2a4be8}});}}class w extends _0x8d5551{['_editing'];['_controller']=null;static get['requires'](){return[_0x5b01d3,o];}constructor(_0x582d9f){super(_0x582d9f),this['_editing']=_0x582d9f['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3d8ab4){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x3d8ab4);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3f9d06,..._0x43f357}){return _0x4a03ae(_0x3f9d06,_0x43f357);}static['getInfo'](_0x408ff6,_0x4f9132){return _0x5054bf(_0x408ff6,_0x4f9132);}}class f extends _0x2b0850{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1db946,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x437b61=this['editor'];if(!!!_0x437b61['config']['get']('uploadcare'))return;_0x437b61['plugins']['get'](_0x1db946)['createUploadAdapter']=_0x4a0e3b=>new k(_0x4a0e3b,_0x437b61),_0x437b61['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x402854,{imageElement:_0x20fe10,data:_0x202dce})=>{_0x437b61['model']['change'](_0x427829=>{_0x427829['setAttribute']('uploadcareImageId',_0x202dce['uploadcareImageId'],_0x20fe10);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2852b0,_0x3be389){this['loader']=_0x2852b0,this['editor']=_0x3be389,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x51a626=await this['loader']['file'];return j['upload']({'file':_0x51a626,'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':_0x15ea09=>{_0x15ea09&&_0x15ea09['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x15ea09['value']);}})['then'](async _0x16e26d=>{const {imageFallbackUrl:_0x191d71,imageSources:_0xdf03bd}=C(_0x16e26d['cdnUrl'],_0x16e26d['imageInfo']['width']);return{'uploadcareImageId':_0x16e26d['uuid'],'default':_0x191d71,'sources':_0xdf03bd};})['catch'](()=>{const _0x59849b=t('Cannot\x20upload\x20file:')+('\x20'+_0x51a626['name']+'.');return Promise['reject'](_0x59849b);});}['abort'](){this['controller']['abort']();}}class o extends _0x2b0850{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x5b01d3];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x546c48){super(_0x546c48),this['ucContextId']=_0x2b5637();}['init'](){const _0x39c09b=this['editor'];_0x39c09b['commands']['add']('uploadcare',new w(_0x39c09b));}['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 _0x16ac5c=_0x15bdb4['document']['querySelector']('input[uploadcare-file-input]');_0x16ac5c&&_0x16ac5c['remove']();}),async function(_0x5bf005){const _0x3671e4=_0x34c44a([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]),_0x17e759=0x535f8c3a,_0x5aecd1=0x5358f63a^_0x17e759,_0x517874=window[_0x34c44a([0x44,0x61,0x74,0x65])][_0x34c44a([0x6e,0x6f,0x77])](),_0x587912=_0x5bf005[_0x34c44a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x19e0fa=new window[(_0x34c44a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x288377=>{_0x587912[_0x34c44a([0x6f,0x6e,0x63,0x65])](_0x34c44a([0x72,0x65,0x61,0x64,0x79]),_0x288377);}),_0x318e2c={[_0x34c44a([0x6b,0x74,0x79])]:_0x34c44a([0x45,0x43]),[_0x34c44a([0x75,0x73,0x65])]:_0x34c44a([0x73,0x69,0x67]),[_0x34c44a([0x63,0x72,0x76])]:_0x34c44a([0x50,0x2d,0x32,0x35,0x36]),[_0x34c44a([0x78])]:_0x34c44a([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]),[_0x34c44a([0x79])]:_0x34c44a([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]),[_0x34c44a([0x61,0x6c,0x67])]:_0x34c44a([0x45,0x53,0x32,0x35,0x36])},_0x913dbc=_0x587912[_0x34c44a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x34c44a([0x67,0x65,0x74])](_0x34c44a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x66193e(){let _0x5e256f,_0x145af7=null,_0x329a65=null;try{if(_0x913dbc==_0x34c44a([0x47,0x50,0x4c]))return _0x34c44a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5e256f=_0x36a4db(),!_0x5e256f)return _0x34c44a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5e256f[_0x34c44a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x329a65=_0x4b9f14(_0x5e256f[_0x34c44a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5e256f[_0x34c44a([0x6a,0x74,0x69])])),await _0x5b2ca8()?_0x204c83()?_0x5644ae()?_0x34c44a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x579ddd()?(_0x5e256f[_0x34c44a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34c44a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x145af7=_0x3e9aef(_0x34c44a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5e256f[_0x34c44a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34c44a([0x74,0x72,0x69,0x61,0x6c])&&(_0x145af7=_0x3e9aef(_0x34c44a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e3a38()):_0x34c44a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x34c44a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x34c44a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x34c44a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5644ae(){const _0x41015a=[_0x34c44a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x34c44a([0x74,0x72,0x69,0x61,0x6c])][_0x34c44a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e256f[_0x34c44a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x517874/0x3e8:0xe10*_0x5aecd1;return _0x5e256f[_0x34c44a([0x65,0x78,0x70])]<_0x41015a;}function _0x204c83(){const _0x16c398=_0x5e256f[_0x34c44a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x16c398&&(!!_0x16c398[_0x34c44a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34c44a([0x2a]))||!!_0x16c398[_0x34c44a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34c44a([0x55,0x50,0x4c,0x43])));}function _0x579ddd(){const _0x1de44e=_0x5e256f[_0x34c44a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1de44e||0x0==_0x1de44e[_0x34c44a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x412b2c}=new URL(window[_0x34c44a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1de44e[_0x34c44a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x412b2c))return!0x0;const _0x3e7c4f=_0x412b2c[_0x34c44a([0x73,0x70,0x6c,0x69,0x74])](_0x34c44a([0x2e]));return _0x1de44e[_0x34c44a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x524f90=>_0x524f90[_0x34c44a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34c44a([0x2a])))[_0x34c44a([0x6d,0x61,0x70])](_0x12ad4b=>_0x12ad4b[_0x34c44a([0x73,0x70,0x6c,0x69,0x74])](_0x34c44a([0x2e])))[_0x34c44a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2693cf=>_0x2693cf[_0x34c44a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3e7c4f[_0x34c44a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x34c44a([0x6d,0x61,0x70])](_0x36563d=>Array(_0x3e7c4f[_0x34c44a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x36563d[_0x34c44a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x34c44a([0x66,0x69,0x6c,0x6c])](_0x36563d[0x0]===_0x34c44a([0x2a])?_0x34c44a([0x2a]):'')[_0x34c44a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x36563d))[_0x34c44a([0x73,0x6f,0x6d,0x65])](_0x3c2a9a=>_0x3e7c4f[_0x34c44a([0x65,0x76,0x65,0x72,0x79])]((_0xea4e18,_0x54330f)=>_0x3c2a9a[_0x54330f]===_0xea4e18||_0x3c2a9a[_0x54330f]===_0x34c44a([0x2a])));}function _0x5e3a38(){return _0x145af7&&_0x329a65?new window[(_0x34c44a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x598759,_0x1f1ad1)=>{_0x145af7[_0x34c44a([0x74,0x68,0x65,0x6e])](_0x598759,_0x1f1ad1),_0x329a65[_0x34c44a([0x74,0x68,0x65,0x6e])](_0x5e2377=>{_0x5e2377!=_0x34c44a([0x56,0x61,0x6c,0x69,0x64])&&_0x598759(_0x5e2377);},_0x1f1ad1);}):_0x145af7||_0x329a65||_0x34c44a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4b9f14(_0x4660d2,_0x550504){return new window[(_0x34c44a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d9041=>{if(_0x562c7c())return _0x5d9041(_0x34c44a([0x56,0x61,0x6c,0x69,0x64]));_0x4cf6ea(),_0x587912[_0x34c44a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x34c44a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x13ee52=!0x1;const _0x47af0c=_0x2b5637();function _0x1cc2ce(_0x33cd20){return!!_0x33cd20&&(typeof _0x33cd20===_0x34c44a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x33cd20===_0x34c44a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x33cd20[_0x34c44a([0x74,0x68,0x65,0x6e])]===_0x34c44a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x33cd20[_0x34c44a([0x63,0x61,0x74,0x63,0x68])]===_0x34c44a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1e3d0e(_0x13ebe5){_0x552a30(_0x13ebe5)[_0x34c44a([0x74,0x68,0x65,0x6e])](_0x11f685=>{if(!_0x11f685||_0x11f685[_0x34c44a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x34c44a([0x6f,0x6b]))return _0x34c44a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x407c69(_0x4c957a(_0x47af0c+_0x550504))!=_0x11f685[_0x34c44a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x34c44a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x34c44a([0x56,0x61,0x6c,0x69,0x64]);})[_0x34c44a([0x74,0x68,0x65,0x6e])](_0x16e239=>(_0x19e08a(),_0x16e239),()=>{const _0x2576bc=_0x5d821a();return null==_0x2576bc?(_0x19e08a(),_0x34c44a([0x56,0x61,0x6c,0x69,0x64])):_0x34c44a(_0x517874-_0x2576bc>(0x7753083a^_0x17e759)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x34c44a([0x74,0x68,0x65,0x6e])](_0x5d9041)[_0x34c44a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d9041(_0x34c44a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x163151=0x536962ba^_0x17e759;function _0x19e08a(){const _0x561215=_0x34c44a([0x6c,0x6c,0x63,0x74,0x2d])+_0x407c69(_0x4c957a(_0x4660d2)),_0x2be793=_0x170699(_0x407c69(window[_0x34c44a([0x4d,0x61,0x74,0x68])][_0x34c44a([0x63,0x65,0x69,0x6c])](_0x517874/_0x163151)));window[_0x34c44a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34c44a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x561215,_0x2be793);}function _0x5d821a(){const _0x40f339=_0x34c44a([0x6c,0x6c,0x63,0x74,0x2d])+_0x407c69(_0x4c957a(_0x4660d2)),_0x1d0ea3=window[_0x34c44a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34c44a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40f339);return _0x1d0ea3?window[_0x34c44a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x170699(_0x1d0ea3),0x10)*_0x163151:null;}function _0x552a30(_0x3d2666){return new window[(_0x34c44a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7f2094,_0x39d4ed)=>{_0x3d2666[_0x34c44a([0x74,0x68,0x65,0x6e])](_0x7f2094,_0x39d4ed),window[_0x34c44a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39d4ed,0x535e58fa^_0x17e759);});}}_0x587912[_0x34c44a([0x6f,0x6e])](_0x34c44a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x434087,_0x1f7776)=>{if(_0x1f7776[0x0]!=_0x4660d2)return _0x5d9041(_0x34c44a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1f7776[0x1]={..._0x1f7776[0x1],[_0x34c44a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x47af0c};},{[_0x34c44a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34c44a([0x68,0x69,0x67,0x68])}),_0x587912[_0x34c44a([0x6f,0x6e])](_0x34c44a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x265515=>{_0x1cc2ce(_0x265515[_0x34c44a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x13ee52=!0x0,_0x1e3d0e(_0x265515[_0x34c44a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x34c44a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34c44a([0x6c,0x6f,0x77])}),_0x19e0fa[_0x34c44a([0x74,0x68,0x65,0x6e])](()=>{_0x13ee52||_0x5d9041(_0x34c44a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x562c7c(){return _0x587912[_0x34c44a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34c44a([0x76,0x69,0x65,0x77])][_0x34c44a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x34c44a([0x61,0x75,0x74,0x6f]);}function _0x4cf6ea(){_0x587912[_0x34c44a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34c44a([0x76,0x69,0x65,0x77])][_0x34c44a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x34c44a([0x61,0x75,0x74,0x6f]);}}function _0x3e9aef(_0xdebf9e){const _0x580c35=[new window[(_0x34c44a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21de94=>setTimeout(_0x21de94,0x5356b2f6^_0x17e759)),_0x19e0fa[_0x34c44a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x34c44a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a3fcd=>{let _0x3747ab=0x0;_0x587912[_0x34c44a([0x6d,0x6f,0x64,0x65,0x6c])][_0x34c44a([0x6f,0x6e])](_0x34c44a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5a8d07,_0x3c221c)=>{_0x3c221c[0x0][_0x34c44a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3747ab++,_0x3747ab==(0x535f8dc2^_0x17e759)&&(_0x1a3fcd(),_0x5a8d07[_0x34c44a([0x6f,0x66,0x66])]());});}))];return window[_0x34c44a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x34c44a([0x72,0x61,0x63,0x65])](_0x580c35)[_0x34c44a([0x74,0x68,0x65,0x6e])](()=>_0xdebf9e);}async function _0x54296d(){await _0x19e0fa,_0x587912[_0x34c44a([0x6d,0x6f,0x64,0x65,0x6c])][_0x34c44a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1be1f2,_0x587912[_0x34c44a([0x6d,0x6f,0x64,0x65,0x6c])][_0x34c44a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1be1f2,_0x587912[_0x34c44a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x34c44a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45ce05(_0x3fcb35){const _0x38ed2c=_0x30b836();_0x587912[_0x38ed2c]=_0x34c44a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3fcb35,_0x3fcb35!=_0x34c44a([0x56,0x61,0x6c,0x69,0x64])&&_0x54296d();}function _0x30b836(){const _0x4288f6=window[_0x34c44a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x34c44a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x34c44a([0x6e,0x6f,0x77])]())[_0x34c44a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x34c44a([0x2e]),'');let _0x111e68=_0x34c44a([0x68]);for(let _0x2ae3ec=0x0;_0x2ae3ec<_0x4288f6[_0x34c44a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ae3ec+=0x2){let _0x3b7ba0=window[_0x34c44a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4288f6[_0x34c44a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ae3ec,_0x2ae3ec+0x2));_0x3b7ba0>=_0x3671e4[_0x34c44a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3b7ba0-=_0x3671e4[_0x34c44a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x111e68+=_0x3671e4[_0x3b7ba0];}return _0x111e68;}function _0x36a4db(){const _0x3a8e05=_0x913dbc[_0x34c44a([0x73,0x70,0x6c,0x69,0x74])](_0x34c44a([0x2e]));if(0x3!=_0x3a8e05[_0x34c44a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x276c45(_0x3a8e05[0x1]);function _0x276c45(_0x1c4599){const _0x3b2a43=_0x1b0fef(_0x1c4599);return _0x3b2a43&&_0xc21684()?_0x3b2a43:null;function _0xc21684(){const _0x3730d4=_0x3b2a43[_0x34c44a([0x6a,0x74,0x69])],_0x4f3f8=window[_0x34c44a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3730d4[_0x34c44a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3730d4[_0x34c44a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e4679={..._0x3b2a43,[_0x34c44a([0x6a,0x74,0x69])]:_0x3730d4[_0x34c44a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3730d4[_0x34c44a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e4679[_0x34c44a([0x76,0x63])],_0x4c957a(_0x4e4679)==_0x4f3f8;}}}async function _0x5b2ca8(){let _0x431dad=!0x0;try{const _0x25bd97=_0x913dbc[_0x34c44a([0x73,0x70,0x6c,0x69,0x74])](_0x34c44a([0x2e])),[_0x1c19a3,_0x3cb696,_0x2d7b6d]=_0x25bd97;return _0x2d8b88(_0x1c19a3),await _0x5a2963(_0x1c19a3,_0x3cb696,_0x2d7b6d),_0x431dad;}catch{return!0x1;}function _0x2d8b88(_0x36c596){const _0x3918ef=_0x1b0fef(_0x36c596);_0x3918ef&&_0x3918ef[_0x34c44a([0x61,0x6c,0x67])]==_0x34c44a([0x45,0x53,0x32,0x35,0x36])||(_0x431dad=!0x1);}async function _0x5a2963(_0x159d2f,_0x5c202e,_0x5ef09a){const _0x353e69=window[_0x34c44a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x34c44a([0x66,0x72,0x6f,0x6d])](_0x242ca7(_0x5ef09a),_0xcbbe6b=>_0xcbbe6b[_0x34c44a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x814603=new window[(_0x34c44a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x34c44a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x159d2f+_0x34c44a([0x2e])+_0x5c202e),_0x17bc69=window[_0x34c44a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x34c44a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x17bc69)return;const _0x55568a=await _0x17bc69[_0x34c44a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x34c44a([0x6a,0x77,0x6b]),_0x318e2c,{[_0x34c44a([0x6e,0x61,0x6d,0x65])]:_0x34c44a([0x45,0x43,0x44,0x53,0x41]),[_0x34c44a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x34c44a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x34c44a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x17bc69[_0x34c44a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x34c44a([0x6e,0x61,0x6d,0x65])]:_0x34c44a([0x45,0x43,0x44,0x53,0x41]),[_0x34c44a([0x68,0x61,0x73,0x68])]:{[_0x34c44a([0x6e,0x61,0x6d,0x65])]:_0x34c44a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x55568a,_0x353e69,_0x814603)||(_0x431dad=!0x1);}}function _0x1b0fef(_0x3e4e34){return _0x3e4e34[_0x34c44a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x34c44a([0x65,0x79]))?JSON[_0x34c44a([0x70,0x61,0x72,0x73,0x65])](_0x242ca7(_0x3e4e34)):null;}function _0x242ca7(_0x34f679){return window[_0x34c44a([0x61,0x74,0x6f,0x62])](_0x34f679[_0x34c44a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x34c44a([0x2b]))[_0x34c44a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x34c44a([0x2f])));}function _0x4c957a(_0x5719da){let _0x251330=0x1505;function _0x9c1efd(_0x541fb6){for(let _0x1f8731=0x0;_0x1f8731<_0x541fb6[_0x34c44a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f8731++){const _0xd3c07d=_0x541fb6[_0x34c44a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f8731);_0x251330=(_0x251330<<0x5)+_0x251330+_0xd3c07d,_0x251330&=_0x251330;}}function _0x3f608a(_0x19d0ea){Array[_0x34c44a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x19d0ea)?_0x19d0ea[_0x34c44a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f608a):_0x19d0ea&&typeof _0x19d0ea==_0x34c44a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x34c44a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x19d0ea)[_0x34c44a([0x73,0x6f,0x72,0x74])]()[_0x34c44a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5542a5,_0x4d5913])=>{_0x9c1efd(_0x5542a5),_0x3f608a(_0x4d5913);}):_0x9c1efd(window[_0x34c44a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x19d0ea));}return _0x3f608a(_0x5719da),_0x251330>>>0x0;}function _0x407c69(_0x2ea272){return _0x2ea272[_0x34c44a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x34c44a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x34c44a([0x30]));}function _0x170699(_0x465d12){return _0x465d12[_0x34c44a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x34c44a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x34c44a([0x6a,0x6f,0x69,0x6e])]('');}function _0x1be1f2(){}function _0x34c44a(_0x1cb494){return _0x1cb494['map'](_0x5933b3=>String['fromCharCode'](_0x5933b3))['join']('');}_0x45ce05(await _0x66193e());}(this);}['_initSchema'](){const _0x3cce6e=this['editor']['model']['schema'];_0x3cce6e['isRegistered']('imageBlock')&&_0x3cce6e['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3cce6e['isRegistered']('imageInline')&&_0x3cce6e['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x31437d=this['editor'];_0x31437d['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x31437d['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x6612e2=>_0x6612e2['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2b0560=_0x31437d['commands']['get']('replaceImageSource');_0x2b0560&&this['listenTo'](_0x2b0560,'cleanupImage',(_0x500c1f,[_0x1d45a3,_0x6d79c8])=>{_0x1d45a3['removeAttribute']('uploadcareImageId',_0x6d79c8);});}['_initConfig'](){const _0x187f4d=this['editor']['config']['get']('uploadcare.uploader')||{},_0xcd8d2d=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3e63ff(_0x15bdb4['document'],'uc-config',{..._0x187f4d,'pubkey':_0xcd8d2d,'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']=_0x5dd552=>{if('closeMax'==_0x5dd552)return'#uc-icon-arrow-down';},_0x15bdb4['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3e63ff(_0x15bdb4['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x15bdb4['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xa7a283=this['editor']['commands']['get']('insertImage');_0xa7a283&&this['listenTo'](_0xa7a283,'execute',()=>{const _0x1d7766=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1d7766&&_0x1d7766['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1d7766);});});const _0x4dd11c=this['editor']['commands']['get']('uploadcareImageReplace');_0x4dd11c&&this['listenTo'](_0x4dd11c,'execute',()=>{const _0x171a6d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x171a6d&&_0x171a6d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x171a6d);});});}}class tt extends _0x2b0850{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x566a8a){super(_0x566a8a),_0x566a8a['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xfb2bf4['defineComponents'](_0xfb2bf4),this['_defineLocale']();}['_defineLocale'](){const _0x11705f=this['editor']['config']['get']('uploadcare.locale'),_0x3b218a=this['editor']['locale']['contentLanguage'];_0x11705f&&_0xfb2bf4['defineLocale'](_0x3b218a,_0x11705f);}}class ii extends _0x2aea28{constructor(_0xb6b482){super(_0xb6b482);const t=_0xb6b482['t'],_0x39f6a4=this['bindTemplate'],_0x5d90fd=new _0x1872e0();_0x5d90fd['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':[_0x5d90fd,{'text':_0x39f6a4['to']('imageUploadProgress',_0x105549=>t('Loading\x20image...')+'\x20('+(_0x105549||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 _0x2aea28{constructor(_0x4640a6){super(_0x4640a6);const t=_0x4640a6['t'];this['set']('errorType',null);const _0x4cd9c2=new _0x3565e8(_0x4640a6);_0x4cd9c2['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4cd9c2['withText']=!0x0,_0x4cd9c2['class']='ck-button-action',_0x4cd9c2['on']('execute',()=>{this['fire']('retry');}),_0x4cd9c2['bind']('isVisible')['to'](this,'errorType',_0x5ae1a2=>'NotFound'!==_0x5ae1a2);const _0x4427de=new _0x24f00d();_0x4427de['content']=_0x426d82,_0x4427de['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x459f67=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':[_0x4427de,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x459f67['to']('errorType',_0x1c3205=>t('NotFound'!==_0x1c3205?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4cd9c2]},{'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 _0x2aea28{constructor(_0xf9135,_0x135973){super(_0xf9135);const _0x22c9a5=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x135973,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x22c9a5['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x37f400,_0x5d8f1c,_0x3b5df1){super(_0x37f400),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x37f400),this['_errorView']=new ti(_0x37f400),this['_editingView']=new ei(_0x37f400,_0x3b5df1),this['_focusableView']=new _0x2aea28(_0x37f400),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5d8f1c),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'],_0x127661=>{this['_addUploadcareImageEditorListeners'](_0x127661);});}),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'](_0xf937ea,_0x160089){const _0x585c8f='uc-cloud-image-editor',_0x4a3f56=_0xf937ea['querySelector'](_0x585c8f);if(_0x4a3f56)return _0x160089(_0x4a3f56);const _0x569957=new MutationObserver(_0x2fa27e=>{const _0x4adad4=_0x2fa27e['filter'](_0x10c5c3=>_0x10c5c3['target']===_0xf937ea&&_0x10c5c3['addedNodes']['length']>0x0&&_0x10c5c3['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x585c8f);_0x4adad4['length']&&(_0x569957['disconnect'](),_0x160089(_0x4adad4[0x0]['addedNodes'][0x0]));});_0x569957['observe'](_0xf937ea,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1a5e12){_0x1a5e12['addEventListener']('apply',_0x4c635d=>{this['fire']('apply',{'imageSrc':_0x4c635d['detail']['cdnUrl']});}),_0x1a5e12['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
25
+ _0x1f1b7b(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1736a2,_0x49385f,_0x241b2a){super(),this['_editor']=_0x1736a2,this['_dialog']=_0x49385f,this['_imageElement']=_0x241b2a,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 _0x4e93ec=this['_imageElement'],_0x32f4b8=_0x4e93ec['getAttribute']('uploadcareImageId'),_0xcd3e1e=_0x4e93ec['getAttribute']('src');if(_0x32f4b8)await this['_loadImageInfo'](_0x32f4b8,_0xcd3e1e);else{if(this['_imageCache']['has'](_0xcd3e1e)){const _0x5668b0=this['_imageCache']['get'](_0xcd3e1e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5668b0['url'],this['imageDimension']=_0x5668b0['dimension'],this['imageId']=_0x5668b0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1ae45c}=this['_editor'],t=_0x1ae45c['t'],_0x890c41=new X(_0x1ae45c,this['imageStatus'],this['_attributes']);_0x890c41['bind']('status')['to'](this,'imageStatus'),_0x890c41['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x890c41['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x890c41['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x890c41,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x117f88,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x890c41,'position':_0x2eb6ad['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x890c41['focus']();},'onHide':()=>{_0x890c41['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x36ee20=>!A(_0x36ee20,_0x890c41['element'])}});}['_loadImageInfo'](_0x3e9d72,_0x43ea86){return j['getInfo'](_0x3e9d72,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x217726=>{const {width:_0x1c2c7d,height:_0x24ab51}=_0x217726['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x43ea86,this['imageDimension']={'width':_0x1c2c7d,'height':_0x24ab51},this['imageId']=_0x3e9d72;})['catch'](_0x3ed38e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3ed38e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x403426,_0x549bfc){return this['_getImageAsFile'](_0x403426)['then'](_0x43e853=>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':_0x549bfc['signal'],'file':_0x43e853,'onProgress':_0x1f5cb6=>{_0x1f5cb6&&_0x1f5cb6['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1f5cb6['value']));}}))['then'](_0x5bb75f=>{const {width:_0x3658c6,height:_0x2df272}=_0x5bb75f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5bb75f['cdnUrl'],this['imageDimension']={'width':_0x3658c6,'height':_0x2df272},this['imageId']=_0x5bb75f['uuid'],this['imageUploadProgress']=null;const _0x267516=_0x403426['getAttribute']('src');this['_imageCache']['set'](_0x267516,{'id':_0x5bb75f['uuid'],'url':_0x5bb75f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2c626d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2c626d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1a2951,_0x8bb843){_0x1a2951['on']('apply',(_0x683c96,_0x5d3958)=>{this['_replaceImage'](_0x8bb843,_0x5d3958['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1a2951['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1a2951['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x424c5d,_0x4dedc2,_0x4ca92f){const _0x31160f=this['_editor'],{width:_0x567737,height:_0x590108}=S(_0x4dedc2,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3a7b71,imageSources:_0x55ba55}=C(_0x4dedc2,_0x567737);_0x31160f['model']['change'](_0x1dfea6=>{if('$graveyard'===_0x424c5d['root']['rootName']){_0x31160f['execute']('insertImage',{'imageType':_0x424c5d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x424c5d['getAttributes']()),'uploadcareImageId':_0x4ca92f,'src':_0x3a7b71,'sources':_0x55ba55,'width':_0x567737,'height':_0x590108}});const _0x438eb7=_0x424c5d['getChildren']();_0x424c5d=_0x31160f['model']['document']['selection']['getSelectedElement']();for(const _0x5321ed of _0x438eb7)_0x1dfea6['append'](_0x1dfea6['cloneElement'](_0x5321ed),_0x424c5d);}else _0x1dfea6['setSelection'](_0x424c5d,'on'),_0x31160f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x424c5d['getAttributes']()),'uploadcareImageId':_0x4ca92f,'src':_0x3a7b71,'sources':_0x55ba55,'width':_0x567737,'height':_0x590108},_0x424c5d);_0x1dfea6['setSelection'](_0x424c5d,'on');});}async['_getImageAsFile'](_0x5be1cc){const _0x1ca87d=_0x15bdb4['window'],_0x49558e=_0x15bdb4['document']['location']['href'],_0xed7c1c=new _0x1ca87d['URL'](_0x5be1cc['getAttribute']('src'),_0x49558e);if('data:'===_0xed7c1c['protocol']){const _0xefe89c=_0xed7c1c['href']['split'](','),_0x141790=_0xefe89c[0x0]['match'](/:(.*?);/)[0x1],_0x22b1bc=_0x141790['split']('/')[0x1],_0x12f925=_0x1ca87d['atob'](_0xefe89c[_0xefe89c['length']-0x1]);let _0xebb210=_0x12f925['length'];const _0x79c618=new _0x1ca87d['Uint8Array'](_0xebb210);for(;_0xebb210--;)_0x79c618[_0xebb210]=_0x12f925['charCodeAt'](_0xebb210);return new _0x1ca87d['File']([_0x79c618],'image.'+_0x22b1bc,{'type':_0x141790});}const _0x572449=_0xed7c1c['href']['split']('/'),_0x5bbb7f=_0x572449[_0x572449['length']-0x1],_0xd7798=_0x5bbb7f['split']('.')[0x1];return _0x1ca87d['fetch'](_0xed7c1c['href'])['then'](_0x44596e=>_0x44596e['clone']()['blob']())['then'](_0x5c530a=>new _0x1ca87d['File']([_0x5c530a],_0x5bbb7f,{'type':'image/'+_0xd7798}));}}class Q extends _0x8d5551{['imageEditController'];static get['requires'](){return[_0x5b01d3];}['_isEditable'];constructor(_0x34b7c3){super(_0x34b7c3),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x434f36){const _0x1ed0d1=z(_0x434f36);return _0x521633=>!(!_0x521633||!_0x521633['is']('element','imageBlock')&&!_0x521633['is']('element','imageInline'))&&(!!_0x521633['hasAttribute']('uploadcareImageId')||!!_0x521633['hasAttribute']('src')&&_0x1ed0d1(_0x521633['getAttribute']('src')));}(_0x34b7c3['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xb1ef51=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xb1ef51);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x170a3e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x170a3e&&(_0x170a3e['is']('element','imageBlock')||_0x170a3e['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x5b01d3),_0x170a3e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x8d5551{['refresh'](){const _0x5adaaa=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5adaaa&&(_0x5adaaa['is']('element','imageBlock')||_0x5adaaa['is']('element','imageInline')));}['execute'](_0x31bbd8){const _0x2a10bd=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1bea21=>{_0x1bea21['setAttributes'](_0x31bbd8,_0x2a10bd),_0x1bea21['removeAttribute']('srcset',_0x2a10bd),_0x1bea21['removeAttribute']('sizes',_0x2a10bd);});}}class m extends _0x2b0850{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3e2df5,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x16069c}=this;_0x16069c['commands']['add']('uploadcareImageEdit',new Q(_0x16069c)),_0x16069c['commands']['add']('uploadcareImageReplace',new V(_0x16069c));}}class g extends _0x2b0850{['_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 _0x4d52be=this['editor'];_0x4d52be['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3ee611=>{const _0x5fe28a=_0x4d52be['commands']['get']('uploadcareImageEdit'),_0x282266=new _0x3565e8(_0x3ee611),t=_0x3ee611['t'];return _0x282266['set']({'icon':_0x117f88,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x282266['bind']('isEnabled')['to'](_0x5fe28a),_0x282266['bind']('isOn')['to'](_0x5fe28a,'isActive'),this['listenTo'](_0x282266,'execute',()=>{_0x4d52be['execute']('uploadcareImageEdit'),_0x4d52be['editing']['view']['focus']();}),_0x282266;}),this['_initConfig']();}['_initConfig'](){const _0xa85960=_0x3e63ff(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xa85960),this['listenTo'](this['editor'],'destroy',()=>{_0xa85960['remove']();});}}class et extends _0x2b0850{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,Q 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-20251124.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-20251124.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251124.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251124.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251124.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251124.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251124.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251124.0",
33
+ "ckeditor5": "0.0.0-nightly-20251124.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 _0x29535f=_0x5610;(function(_0x13e156,_0x4fe896){const _0x475803=_0x5610,_0x5a756=_0x13e156();while(!![]){try{const _0x1fc487=parseInt(_0x475803(0x91))/0x1*(parseInt(_0x475803(0x84))/0x2)+parseInt(_0x475803(0x97))/0x3+-parseInt(_0x475803(0x82))/0x4+parseInt(_0x475803(0x75))/0x5+parseInt(_0x475803(0x87))/0x6*(-parseInt(_0x475803(0x7b))/0x7)+parseInt(_0x475803(0xba))/0x8*(parseInt(_0x475803(0x7c))/0x9)+-parseInt(_0x475803(0x8b))/0xa*(parseInt(_0x475803(0xb9))/0xb);if(_0x1fc487===_0x4fe896)break;else _0x5a756['push'](_0x5a756['shift']());}catch(_0x5ed2d5){_0x5a756['push'](_0x5a756['shift']());}}}(_0x8973,0xd8809));import{Plugin as _0xc7663}from'ckeditor5/src/core.js';import{Dialog as _0xd4667d}from'ckeditor5/src/ui.js';function _0x5610(_0x1f4d1f,_0x5b7b2f){const _0x897382=_0x8973();return _0x5610=function(_0x56107a,_0x286b89){_0x56107a=_0x56107a-0x66;let _0x910991=_0x897382[_0x56107a];return _0x910991;},_0x5610(_0x1f4d1f,_0x5b7b2f);}import{createElement as _0x4cb8e5,global as _0x2f2126,uid as _0x4ab8ca}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x12e499}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x441ab8}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x28ec01}from'./utils/editingutils.js';function _0x8973(){const _0x35cdfa=['isOfficialPlugin','render','join','contentLanguage','iconHrefResolver','attributeToAttribute','_ctxElement','UploadcareEditing','listenTo','commands','for','replaceImageSource','editor','isPremiumPlugin','destroy','cleanupImage','_initCtx','data-uc-image-id','conversion','add','_initConfig','ctxElement','afterInit','querySelector','map','uploadcareImageReplace','elementToAttribute','2398uvuPlj','232CdXZcR','uploadcareImageId','configElement','appendChild','imageInline','input[uploadcare-file-input]','uploadcare.uploader','ucContextId','upcast','true','body','closeMax','uploadcare','imageBlock','config','removeAttribute','view','1618765wkFyWH','once','init','uploadcare.pubkey','execute','downcast','7nERmYL','23031ShZfef','schema','document','getAttribute','getSelectedElement','model','91760epPlMK','insertImage','50cuDwop','href','pluginName','6066276tvpQIH','uc-upload-ctx-provider','requires','remove','33060TGhWDY','_configElement','locale','_initImageProcessingIndicator','_initSchema','editing','30715LrnDpK','uploader-','_initConversion','isRegistered','fromCharCode','extend','4426944vgglyv','selection','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','PictureEditing','#uc-icon-arrow-down','uc-config','get'];_0x8973=function(){return _0x35cdfa;};return _0x8973();}export class UploadcareEditing extends _0xc7663{[_0x29535f(0x8c)]=null;[_0x29535f(0xa4)]=null;static get[_0x29535f(0x86)](){const _0x496384=_0x29535f;return _0x496384(0xa5);}static get[_0x29535f(0x89)](){const _0x1819e6=_0x29535f;return[_0x1819e6(0x9a),_0x441ab8,_0xd4667d];}static get[_0x29535f(0x9e)](){return!0x0;}static get[_0x29535f(0xab)](){return!0x0;}[_0x29535f(0x6b)];get[_0x29535f(0x66)](){const _0x457705=_0x29535f;return this[_0x457705(0x8c)];}get[_0x29535f(0xb3)](){const _0x189d0f=_0x29535f;return this[_0x189d0f(0xa4)];}constructor(_0x2c44b5){const _0x468685=_0x29535f;super(_0x2c44b5),this[_0x468685(0x6b)]=_0x4ab8ca();}[_0x29535f(0x77)](){const _0x3d6db1=_0x29535f,_0x12dc49=this[_0x3d6db1(0xaa)];_0x12dc49[_0x3d6db1(0xa7)][_0x3d6db1(0xb1)](_0x3d6db1(0x70),new _0x12e499(_0x12dc49));}[_0x29535f(0xb4)](){const _0x199aaf=_0x29535f;this[_0x199aaf(0x8f)](),this[_0x199aaf(0x93)](),this[_0x199aaf(0xb2)](),this[_0x199aaf(0xae)](),this[_0x199aaf(0x8e)](),this[_0x199aaf(0xa6)](this[_0x199aaf(0xaa)],_0x199aaf(0xac),()=>{const _0x19321b=_0x199aaf;this[_0x19321b(0x8c)]&&(this[_0x19321b(0x8c)][_0x19321b(0x8a)](),this[_0x19321b(0x8c)]=null),this[_0x19321b(0xa4)]&&(this[_0x19321b(0xa4)][_0x19321b(0x8a)](),this[_0x19321b(0xa4)]=null);const _0x1a5418=_0x2f2126[_0x19321b(0x7e)][_0x19321b(0xb5)](_0x19321b(0x69));_0x1a5418&&_0x1a5418[_0x19321b(0x8a)]();}),async function(_0x5e8a35){const _0x7fabe1=_0x166426([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]),_0x2b6e32=0x535f8c3a,_0x1509de=0x5358f63a^_0x2b6e32,_0x34148a=window[_0x166426([0x44,0x61,0x74,0x65])][_0x166426([0x6e,0x6f,0x77])](),_0x415b00=_0x5e8a35[_0x166426([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4e7607=new window[(_0x166426([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1371a3=>{_0x415b00[_0x166426([0x6f,0x6e,0x63,0x65])](_0x166426([0x72,0x65,0x61,0x64,0x79]),_0x1371a3);}),_0x2810b0={[_0x166426([0x6b,0x74,0x79])]:_0x166426([0x45,0x43]),[_0x166426([0x75,0x73,0x65])]:_0x166426([0x73,0x69,0x67]),[_0x166426([0x63,0x72,0x76])]:_0x166426([0x50,0x2d,0x32,0x35,0x36]),[_0x166426([0x78])]:_0x166426([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]),[_0x166426([0x79])]:_0x166426([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]),[_0x166426([0x61,0x6c,0x67])]:_0x166426([0x45,0x53,0x32,0x35,0x36])},_0x33ac0d=_0x415b00[_0x166426([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x166426([0x67,0x65,0x74])](_0x166426([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x46c538(){let _0x8d8cd8,_0x2f8848=null,_0x25d610=null;try{if(_0x33ac0d==_0x166426([0x47,0x50,0x4c]))return _0x166426([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x8d8cd8=_0x3eac84(),!_0x8d8cd8)return _0x166426([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x8d8cd8[_0x166426([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x25d610=_0x4559a0(_0x8d8cd8[_0x166426([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x8d8cd8[_0x166426([0x6a,0x74,0x69])])),await _0x3e9b76()?_0x206ac5()?_0x18ba2b()?_0x166426([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4123bb()?(_0x8d8cd8[_0x166426([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x166426([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2f8848=_0x160081(_0x166426([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x8d8cd8[_0x166426([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x166426([0x74,0x72,0x69,0x61,0x6c])&&(_0x2f8848=_0x160081(_0x166426([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x19db52()):_0x166426([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x166426([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x166426([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x166426([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x18ba2b(){const _0x5d9823=[_0x166426([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x166426([0x74,0x72,0x69,0x61,0x6c])][_0x166426([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8d8cd8[_0x166426([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x34148a/0x3e8:0xe10*_0x1509de;return _0x8d8cd8[_0x166426([0x65,0x78,0x70])]<_0x5d9823;}function _0x206ac5(){const _0x17d898=_0x8d8cd8[_0x166426([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x17d898&&(!!_0x17d898[_0x166426([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x166426([0x2a]))||!!_0x17d898[_0x166426([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x166426([0x55,0x50,0x4c,0x43])));}function _0x4123bb(){const _0x24167e=_0x5610,_0x159a49=_0x8d8cd8[_0x166426([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x159a49||0x0==_0x159a49[_0x166426([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e3dc0}=new URL(window[_0x166426([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x24167e(0x85)]);if(_0x159a49[_0x166426([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e3dc0))return!0x0;const _0x5dcb52=_0x2e3dc0[_0x166426([0x73,0x70,0x6c,0x69,0x74])](_0x166426([0x2e]));return _0x159a49[_0x166426([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x384710=>_0x384710[_0x166426([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x166426([0x2a])))[_0x166426([0x6d,0x61,0x70])](_0x320fea=>_0x320fea[_0x166426([0x73,0x70,0x6c,0x69,0x74])](_0x166426([0x2e])))[_0x166426([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4707be=>_0x4707be[_0x166426([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5dcb52[_0x166426([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x166426([0x6d,0x61,0x70])](_0x5a6a0f=>Array(_0x5dcb52[_0x166426([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5a6a0f[_0x166426([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x166426([0x66,0x69,0x6c,0x6c])](_0x5a6a0f[0x0]===_0x166426([0x2a])?_0x166426([0x2a]):'')[_0x166426([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5a6a0f))[_0x166426([0x73,0x6f,0x6d,0x65])](_0x138171=>_0x5dcb52[_0x166426([0x65,0x76,0x65,0x72,0x79])]((_0x47ddb7,_0x57fc66)=>_0x138171[_0x57fc66]===_0x47ddb7||_0x138171[_0x57fc66]===_0x166426([0x2a])));}function _0x19db52(){return _0x2f8848&&_0x25d610?new window[(_0x166426([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f9566,_0x2a40dd)=>{_0x2f8848[_0x166426([0x74,0x68,0x65,0x6e])](_0x1f9566,_0x2a40dd),_0x25d610[_0x166426([0x74,0x68,0x65,0x6e])](_0x4a0782=>{_0x4a0782!=_0x166426([0x56,0x61,0x6c,0x69,0x64])&&_0x1f9566(_0x4a0782);},_0x2a40dd);}):_0x2f8848||_0x25d610||_0x166426([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4559a0(_0x597694,_0x3b1792){return new window[(_0x166426([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5243d7=>{if(_0x2b62db())return _0x5243d7(_0x166426([0x56,0x61,0x6c,0x69,0x64]));_0x41ab49(),_0x415b00[_0x166426([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x166426([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x46ac00=!0x1;const _0x2b0f02=_0x4ab8ca();function _0x89a830(_0x3fc9a8){return!!_0x3fc9a8&&(typeof _0x3fc9a8===_0x166426([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3fc9a8===_0x166426([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3fc9a8[_0x166426([0x74,0x68,0x65,0x6e])]===_0x166426([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3fc9a8[_0x166426([0x63,0x61,0x74,0x63,0x68])]===_0x166426([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x57dd74(_0x265f44){_0x367b59(_0x265f44)[_0x166426([0x74,0x68,0x65,0x6e])](_0x4058f8=>{if(!_0x4058f8||_0x4058f8[_0x166426([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x166426([0x6f,0x6b]))return _0x166426([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xafd3d3(_0x26e99d(_0x2b0f02+_0x3b1792))!=_0x4058f8[_0x166426([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x166426([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x166426([0x56,0x61,0x6c,0x69,0x64]);})[_0x166426([0x74,0x68,0x65,0x6e])](_0x222cf0=>(_0x2422c0(),_0x222cf0),()=>{const _0xafc0e6=_0x41a3f1();return null==_0xafc0e6?(_0x2422c0(),_0x166426([0x56,0x61,0x6c,0x69,0x64])):_0x166426(_0x34148a-_0xafc0e6>(0x7753083a^_0x2b6e32)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x166426([0x74,0x68,0x65,0x6e])](_0x5243d7)[_0x166426([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5243d7(_0x166426([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x68d709=0x536962ba^_0x2b6e32;function _0x2422c0(){const _0x1e99a3=_0x166426([0x6c,0x6c,0x63,0x74,0x2d])+_0xafd3d3(_0x26e99d(_0x597694)),_0x11fa3e=_0x10d2c5(_0xafd3d3(window[_0x166426([0x4d,0x61,0x74,0x68])][_0x166426([0x63,0x65,0x69,0x6c])](_0x34148a/_0x68d709)));window[_0x166426([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x166426([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e99a3,_0x11fa3e);}function _0x41a3f1(){const _0x32a9ce=_0x166426([0x6c,0x6c,0x63,0x74,0x2d])+_0xafd3d3(_0x26e99d(_0x597694)),_0x745bcc=window[_0x166426([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x166426([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32a9ce);return _0x745bcc?window[_0x166426([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10d2c5(_0x745bcc),0x10)*_0x68d709:null;}function _0x367b59(_0x4d2d6a){return new window[(_0x166426([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x168763,_0x8e5334)=>{_0x4d2d6a[_0x166426([0x74,0x68,0x65,0x6e])](_0x168763,_0x8e5334),window[_0x166426([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x8e5334,0x535e58fa^_0x2b6e32);});}}_0x415b00[_0x166426([0x6f,0x6e])](_0x166426([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5c746d,_0x5180fb)=>{if(_0x5180fb[0x0]!=_0x597694)return _0x5243d7(_0x166426([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5180fb[0x1]={..._0x5180fb[0x1],[_0x166426([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b0f02};},{[_0x166426([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x166426([0x68,0x69,0x67,0x68])}),_0x415b00[_0x166426([0x6f,0x6e])](_0x166426([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x47ad0f=>{_0x89a830(_0x47ad0f[_0x166426([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x46ac00=!0x0,_0x57dd74(_0x47ad0f[_0x166426([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x166426([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x166426([0x6c,0x6f,0x77])}),_0x4e7607[_0x166426([0x74,0x68,0x65,0x6e])](()=>{_0x46ac00||_0x5243d7(_0x166426([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b62db(){return _0x415b00[_0x166426([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x166426([0x76,0x69,0x65,0x77])][_0x166426([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x166426([0x61,0x75,0x74,0x6f]);}function _0x41ab49(){_0x415b00[_0x166426([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x166426([0x76,0x69,0x65,0x77])][_0x166426([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x166426([0x61,0x75,0x74,0x6f]);}}function _0x160081(_0x2ae9e4){const _0x23f871=[new window[(_0x166426([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b8b7c=>setTimeout(_0x3b8b7c,0x5356b2f6^_0x2b6e32)),_0x4e7607[_0x166426([0x74,0x68,0x65,0x6e])](()=>new window[(_0x166426([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c8707=>{let _0x3ff0d7=0x0;_0x415b00[_0x166426([0x6d,0x6f,0x64,0x65,0x6c])][_0x166426([0x6f,0x6e])](_0x166426([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e8824,_0xfe801f)=>{_0xfe801f[0x0][_0x166426([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3ff0d7++,_0x3ff0d7==(0x535f8dc2^_0x2b6e32)&&(_0x5c8707(),_0x1e8824[_0x166426([0x6f,0x66,0x66])]());});}))];return window[_0x166426([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x166426([0x72,0x61,0x63,0x65])](_0x23f871)[_0x166426([0x74,0x68,0x65,0x6e])](()=>_0x2ae9e4);}async function _0x189366(){await _0x4e7607,_0x415b00[_0x166426([0x6d,0x6f,0x64,0x65,0x6c])][_0x166426([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x529a12,_0x415b00[_0x166426([0x6d,0x6f,0x64,0x65,0x6c])][_0x166426([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x529a12,_0x415b00[_0x166426([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x166426([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3b46d9(_0x4126cd){const _0x30e299=_0x3e1246();_0x415b00[_0x30e299]=_0x166426([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4126cd,_0x4126cd!=_0x166426([0x56,0x61,0x6c,0x69,0x64])&&_0x189366();}function _0x3e1246(){const _0x4c1442=window[_0x166426([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x166426([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x166426([0x6e,0x6f,0x77])]())[_0x166426([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x166426([0x2e]),'');let _0x165da2=_0x166426([0x68]);for(let _0xb6b010=0x0;_0xb6b010<_0x4c1442[_0x166426([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb6b010+=0x2){let _0x5e3f1c=window[_0x166426([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c1442[_0x166426([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb6b010,_0xb6b010+0x2));_0x5e3f1c>=_0x7fabe1[_0x166426([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e3f1c-=_0x7fabe1[_0x166426([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x165da2+=_0x7fabe1[_0x5e3f1c];}return _0x165da2;}function _0x3eac84(){const _0x1402bc=_0x33ac0d[_0x166426([0x73,0x70,0x6c,0x69,0x74])](_0x166426([0x2e]));if(0x3!=_0x1402bc[_0x166426([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x20104d(_0x1402bc[0x1]);function _0x20104d(_0x3de697){const _0x388a0a=_0x372ba2(_0x3de697);return _0x388a0a&&_0x4338af()?_0x388a0a:null;function _0x4338af(){const _0x477ba8=_0x388a0a[_0x166426([0x6a,0x74,0x69])],_0xfd2049=window[_0x166426([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x477ba8[_0x166426([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x477ba8[_0x166426([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x7a9dae={..._0x388a0a,[_0x166426([0x6a,0x74,0x69])]:_0x477ba8[_0x166426([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x477ba8[_0x166426([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x7a9dae[_0x166426([0x76,0x63])],_0x26e99d(_0x7a9dae)==_0xfd2049;}}}async function _0x3e9b76(){let _0x4b6e1b=!0x0;try{const _0x396957=_0x33ac0d[_0x166426([0x73,0x70,0x6c,0x69,0x74])](_0x166426([0x2e])),[_0x354b28,_0x3daee1,_0x27cd91]=_0x396957;return _0xdd6fa6(_0x354b28),await _0xdb3173(_0x354b28,_0x3daee1,_0x27cd91),_0x4b6e1b;}catch{return!0x1;}function _0xdd6fa6(_0x3e444b){const _0x173eca=_0x372ba2(_0x3e444b);_0x173eca&&_0x173eca[_0x166426([0x61,0x6c,0x67])]==_0x166426([0x45,0x53,0x32,0x35,0x36])||(_0x4b6e1b=!0x1);}async function _0xdb3173(_0x491a38,_0xd2b5e2,_0x56be92){const _0x10e12e=window[_0x166426([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x166426([0x66,0x72,0x6f,0x6d])](_0x97e393(_0x56be92),_0x3f5f6b=>_0x3f5f6b[_0x166426([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1053e7=new window[(_0x166426([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x166426([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x491a38+_0x166426([0x2e])+_0xd2b5e2),_0xe01fcb=window[_0x166426([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x166426([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xe01fcb)return;const _0x31daab=await _0xe01fcb[_0x166426([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x166426([0x6a,0x77,0x6b]),_0x2810b0,{[_0x166426([0x6e,0x61,0x6d,0x65])]:_0x166426([0x45,0x43,0x44,0x53,0x41]),[_0x166426([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x166426([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x166426([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xe01fcb[_0x166426([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x166426([0x6e,0x61,0x6d,0x65])]:_0x166426([0x45,0x43,0x44,0x53,0x41]),[_0x166426([0x68,0x61,0x73,0x68])]:{[_0x166426([0x6e,0x61,0x6d,0x65])]:_0x166426([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x31daab,_0x10e12e,_0x1053e7)||(_0x4b6e1b=!0x1);}}function _0x372ba2(_0x3ab4a7){return _0x3ab4a7[_0x166426([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x166426([0x65,0x79]))?JSON[_0x166426([0x70,0x61,0x72,0x73,0x65])](_0x97e393(_0x3ab4a7)):null;}function _0x97e393(_0x1efb50){return window[_0x166426([0x61,0x74,0x6f,0x62])](_0x1efb50[_0x166426([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x166426([0x2b]))[_0x166426([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x166426([0x2f])));}function _0x26e99d(_0x255b51){let _0x23bf15=0x1505;function _0x30e8c8(_0x49e1f0){for(let _0x9bd397=0x0;_0x9bd397<_0x49e1f0[_0x166426([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9bd397++){const _0x34a341=_0x49e1f0[_0x166426([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x9bd397);_0x23bf15=(_0x23bf15<<0x5)+_0x23bf15+_0x34a341,_0x23bf15&=_0x23bf15;}}function _0x233136(_0x8f032){Array[_0x166426([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x8f032)?_0x8f032[_0x166426([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x233136):_0x8f032&&typeof _0x8f032==_0x166426([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x166426([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x8f032)[_0x166426([0x73,0x6f,0x72,0x74])]()[_0x166426([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3ae898,_0x23d71b])=>{_0x30e8c8(_0x3ae898),_0x233136(_0x23d71b);}):_0x30e8c8(window[_0x166426([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x8f032));}return _0x233136(_0x255b51),_0x23bf15>>>0x0;}function _0xafd3d3(_0x2c287a){return _0x2c287a[_0x166426([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x166426([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x166426([0x30]));}function _0x10d2c5(_0x475abd){return _0x475abd[_0x166426([0x73,0x70,0x6c,0x69,0x74])]('')[_0x166426([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x166426([0x6a,0x6f,0x69,0x6e])]('');}function _0x529a12(){}function _0x166426(_0x5d0fbb){const _0x3298db=_0x5610;return _0x5d0fbb[_0x3298db(0xb6)](_0x5dbbcb=>String[_0x3298db(0x95)](_0x5dbbcb))[_0x3298db(0xa0)]('');}_0x3b46d9(await _0x46c538());}(this);}[_0x29535f(0x8f)](){const _0x5714a0=_0x29535f,_0x38138d=this[_0x5714a0(0xaa)][_0x5714a0(0x81)][_0x5714a0(0x7d)];_0x38138d[_0x5714a0(0x94)](_0x5714a0(0x71))&&_0x38138d[_0x5714a0(0x96)](_0x5714a0(0x71),{'allowAttributes':[_0x5714a0(0xbb)]}),_0x38138d[_0x5714a0(0x94)](_0x5714a0(0x68))&&_0x38138d[_0x5714a0(0x96)](_0x5714a0(0x68),{'allowAttributes':[_0x5714a0(0xbb)]});}[_0x29535f(0x93)](){const _0x302c1a=_0x29535f,_0x5f1c27=this[_0x302c1a(0xaa)];_0x5f1c27[_0x302c1a(0xb0)][_0x302c1a(0xa8)](_0x302c1a(0x7a))[_0x302c1a(0xa3)]({'model':_0x302c1a(0xbb),'view':_0x302c1a(0xaf)}),_0x5f1c27[_0x302c1a(0xb0)][_0x302c1a(0xa8)](_0x302c1a(0x6c))[_0x302c1a(0xb8)]({'model':{'key':_0x302c1a(0xbb),'value':_0x47907f=>_0x47907f[_0x302c1a(0x7f)](_0x302c1a(0xaf))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xf60923=_0x5f1c27[_0x302c1a(0xa7)][_0x302c1a(0x9d)](_0x302c1a(0xa9));_0xf60923&&this[_0x302c1a(0xa6)](_0xf60923,_0x302c1a(0xad),(_0x4076ff,[_0x240c6d,_0x2d6a2c])=>{const _0x2c73f2=_0x302c1a;_0x240c6d[_0x2c73f2(0x73)](_0x2c73f2(0xbb),_0x2d6a2c);});}[_0x29535f(0xb2)](){const _0x4cc037=_0x29535f,_0x275082=this[_0x4cc037(0xaa)][_0x4cc037(0x72)][_0x4cc037(0x9d)](_0x4cc037(0x6a))||{},_0x317d39=this[_0x4cc037(0xaa)][_0x4cc037(0x72)][_0x4cc037(0x9d)](_0x4cc037(0x78))||'';this[_0x4cc037(0x8c)]=_0x4cb8e5(_0x2f2126[_0x4cc037(0x7e)],_0x4cc037(0x9c),{..._0x275082,'pubkey':_0x317d39,'ctx-name':_0x4cc037(0x92)+this[_0x4cc037(0x6b)],'sourceList':'','imgOnly':_0x4cc037(0x6d),'removeCopyright':_0x4cc037(0x6d),'localeName':this[_0x4cc037(0xaa)][_0x4cc037(0x8d)][_0x4cc037(0xa1)],'externalSourcesEmbedCss':_0x4cc037(0x99)}),this[_0x4cc037(0x8c)][_0x4cc037(0xa2)]=_0x5864de=>{const _0x496584=_0x4cc037;if(_0x496584(0x6f)==_0x5864de)return _0x496584(0x9b);},_0x2f2126[_0x4cc037(0x7e)][_0x4cc037(0x6e)][_0x4cc037(0x67)](this[_0x4cc037(0x8c)]);}[_0x29535f(0xae)](){const _0x22c6ec=_0x29535f;this[_0x22c6ec(0xa4)]=_0x4cb8e5(_0x2f2126[_0x22c6ec(0x7e)],_0x22c6ec(0x88),{'ctx-name':_0x22c6ec(0x92)+this[_0x22c6ec(0x6b)]}),_0x2f2126[_0x22c6ec(0x7e)][_0x22c6ec(0x6e)][_0x22c6ec(0x67)](this[_0x22c6ec(0xa4)]);}[_0x29535f(0x8e)](){const _0x1cb087=_0x29535f,_0x4ecdca=this[_0x1cb087(0xaa)][_0x1cb087(0xa7)][_0x1cb087(0x9d)](_0x1cb087(0x83));_0x4ecdca&&this[_0x1cb087(0xa6)](_0x4ecdca,_0x1cb087(0x79),()=>{const _0x3b60b7=_0x1cb087,_0x466f09=this[_0x3b60b7(0xaa)][_0x3b60b7(0x81)][_0x3b60b7(0x7e)][_0x3b60b7(0x98)][_0x3b60b7(0x80)]();_0x466f09&&_0x466f09[_0x3b60b7(0x7f)](_0x3b60b7(0xbb))&&this[_0x3b60b7(0xaa)][_0x3b60b7(0x90)][_0x3b60b7(0x74)][_0x3b60b7(0x76)](_0x3b60b7(0x9f),()=>{const _0x2e5830=_0x3b60b7;_0x28ec01(this[_0x2e5830(0xaa)],_0x466f09);});});const _0xd11711=this[_0x1cb087(0xaa)][_0x1cb087(0xa7)][_0x1cb087(0x9d)](_0x1cb087(0xb7));_0xd11711&&this[_0x1cb087(0xa6)](_0xd11711,_0x1cb087(0x79),()=>{const _0x1bbf8f=_0x1cb087,_0x5d4848=this[_0x1bbf8f(0xaa)][_0x1bbf8f(0x81)][_0x1bbf8f(0x7e)][_0x1bbf8f(0x98)][_0x1bbf8f(0x80)]();_0x5d4848&&_0x5d4848[_0x1bbf8f(0x7f)](_0x1bbf8f(0xbb))&&this[_0x1bbf8f(0xaa)][_0x1bbf8f(0x90)][_0x1bbf8f(0x74)][_0x1bbf8f(0x76)](_0x1bbf8f(0x9f),()=>{const _0x41e6d7=_0x1bbf8f;_0x28ec01(this[_0x41e6d7(0xaa)],_0x5d4848);});});}}