@ckeditor/ckeditor5-uploadcare 47.0.0-alpha.3 → 47.0.0-alpha.4

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 _0x47bb67,Command as _0x330377}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1162a8,IconGooglePhotos as _0x49acab,IconGoogleDrive as _0x203d8b,IconFacebook as _0x3a6d29,IconDropbox as _0x3d13d0,IconUploadcareLink as _0x307349,IconUploadcareImageUpload as _0x3d4fa7,IconError as _0x2992eb,IconUploadcareImageEdit as _0xe7efea}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x154fa4,MenuBarMenuListItemButtonView as _0x852674,View as _0xcf99be,FocusCycler as _0x30242d,Dialog as _0x145263,DialogViewPosition as _0xe0a98f,SpinnerView as _0x303e36,IconView as _0x1478af,Notification as _0x402c1e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x45b66f,DomEmitterMixin as _0x5a183c,global as _0x218d30,getAncestors as _0x592e8d,ObservableMixin as _0x39823a,uid as _0x2717a9,createElement as _0x1004e0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x54ba01}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5734e0,info as _0x2976a8}from'@uploadcare/upload-client';import*as _0x442ec4 from'@uploadcare/file-uploader';var i=function(_0x50c0f5){return _0x50c0f5['Local']='local',_0x50c0f5['URL']='url',_0x50c0f5['Dropbox']='dropbox',_0x50c0f5['GDrive']='gdrive',_0x50c0f5['Facebook']='facebook',_0x50c0f5['GPhotos']='gphotos',_0x50c0f5['OneDrive']='onedrive',_0x50c0f5;}({});function _(_0x41023c,_0xfe2a62,_0x18a2b8){const t=_0x41023c['t'],_0x4d1713=_0x41023c['t'];switch(_0xfe2a62){case i['Local']:return{'text':_0x4d1713('Insert'===_0x18a2b8?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4d1713('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x18a2b8?_0x4d1713('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4d1713('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x18a2b8?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x18a2b8?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x18a2b8?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x18a2b8?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x18a2b8?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xfe2a62;}}class e extends _0x47bb67{['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 _0x1ece4a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2dbb00;for(const _0x5062a2 in _0x1ece4a){const _0xd56f98=_0x5062a2,_0x38f14d=_0x1ece4a[_0xd56f98];if('uploadcareLicenseKeyValid'==_0x38f14d||'uploadcareLicenseKeyInvalid'==_0x38f14d||'uploadcareLicenseKeyExpired'==_0x38f14d||'uploadcareLicenseKeyDomainLimit'==_0x38f14d||'uploadcareLicenseKeyNotAllowed'==_0x38f14d||'uploadcareLicenseKeyEvaluationLimit'==_0x38f14d||'uploadcareLicenseKeyTrialLimit'==_0x38f14d||'uploadcareLicenseKeyUsageLimit'==_0x38f14d){delete _0x1ece4a[_0xd56f98],_0x2dbb00=_0x38f14d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2dbb00&&_0x1ece4a['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2dbb00&&_0x1ece4a['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2dbb00&&_0x1ece4a['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2dbb00&&_0x1ece4a['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2dbb00&&_0x1ece4a['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2dbb00&&_0x1ece4a['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2dbb00&&_0x1ece4a['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4bdd0a}=this,_0x39f409=_0x4bdd0a['commands']['get']('uploadcare');if(!_0x39f409)return;const _0x3f3d37=this['_normalizeConfigSourceList'](_0x4bdd0a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2a10a2,_0xa1df78)=>{const _0x6d0244=this['_getIntegrationKey'](_0xa1df78['type']);return _0x2a10a2[_0x6d0244]||(_0x2a10a2[_0x6d0244]=[]),_0x2a10a2[_0x6d0244]['push'](_0xa1df78),_0x2a10a2;},{});_0x4bdd0a['plugins']['has']('ImageInsertUI')&&_0x4bdd0a['commands']['get']('uploadcare')&&Object['entries'](_0x3f3d37)['forEach'](([_0x1ece18,_0x3615f8])=>{_0x4bdd0a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1ece18,'observable':()=>_0x39f409,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3615f8),'formViewCreator':()=>this['_createDropdownButtons'](_0x3615f8),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3615f8),'override':'assetManager'!==_0x1ece18});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x9d8807){const {locale:_0x4b02fa}=this['editor'];return _0x9d8807['map'](_0x17fd67=>{const _0x390198=_(_0x4b02fa,_0x17fd67,'Insert');switch(_0x17fd67){case i['Local']:return{'icon':_0x3d4fa7,'type':i['Local'],..._0x390198};case i['URL']:return{'icon':_0x307349,'type':i['URL'],..._0x390198};case i['Dropbox']:return{'icon':_0x3d13d0,'type':i['Dropbox'],..._0x390198};case i['Facebook']:return{'icon':_0x3a6d29,'type':i['Facebook'],..._0x390198};case i['GDrive']:return{'icon':_0x203d8b,'type':i['GDrive'],..._0x390198};case i['GPhotos']:return{'icon':_0x49acab,'type':i['GPhotos'],..._0x390198};case i['OneDrive']:return{'icon':_0x1162a8,'type':i['OneDrive'],..._0x390198};}});}['_getIntegrationKey'](_0x206fd5){switch(_0x206fd5){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4ddb5b,_0x2dce81){const _0x4d749b=this['editor'],_0x482c14=new _0x4ddb5b(_0x4d749b['locale']),_0x5c4ba1=_0x4d749b['commands']['get']('uploadcare');return _0x482c14['bind']('isEnabled')['to'](_0x5c4ba1),_0x482c14['on']('execute',()=>{_0x5c4ba1['execute'](_0x2dce81);}),_0x482c14;}['_createToolbarButton'](_0x301f44){const {locale:_0x1f480e}=this['editor'],_0x5dc6cb=this['editor']['plugins']['get']('ImageInsertUI'),_0x1cc724=_0x301f44[0x0],_0x2965e7=this['_createButton'](_0x154fa4,_0x1cc724['type']);return _0x2965e7['icon']=_0x1cc724['icon'],_0x2965e7['bind']('label')['to'](_0x5dc6cb,'isImageSelected',_0x6227b2=>_(_0x1f480e,_0x1cc724['type'],_0x6227b2?'Replace':'Insert')['text']),_0x2965e7['tooltip']=!0x0,_0x2965e7;}['_createDropdownButtons'](_0x3f2316){const {locale:_0x53b3cb}=this['editor'],_0x543395=this['editor']['plugins']['get']('ImageInsertUI');return _0x3f2316['map'](_0x15d619=>{const _0x4f03be=this['_createButton'](_0x154fa4,_0x15d619['type']);return _0x4f03be['withText']=!0x0,_0x4f03be['icon']=_0x15d619['icon'],_0x4f03be['bind']('label')['to'](_0x543395,'isImageSelected',_0xe5c832=>_(_0x53b3cb,_0x15d619['type'],_0xe5c832?'Replace':'Insert')['text']),_0x4f03be;});}['_createMenuBarButtons'](_0x1298a1){return _0x1298a1['map'](_0x3fd76f=>{const _0x222c06=this['_createButton'](_0x852674,_0x3fd76f['type']);return _0x222c06['icon']=_0x3fd76f['icon'],_0x222c06['label']=_0x3fd76f['shortText'],_0x222c06;});}}class F extends _0xcf99be{['focusTracker'];['focusCycler'];constructor(_0x40600b){super(_0x40600b),this['focusTracker']=new _0x45b66f(),this['focusCycler']=new _0x30242d({'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(_0x581b65,_0x5f4ba6){super(_0x581b65),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-'+_0x5f4ba6}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3efa64,_0x49c0b4){const _0xfd0242=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x40baf4=>_0x40baf4<=_0x49c0b4)['map'](_0x1fe9e2=>_0x3efa64['replace'](/\/$/,'')+'/-/resize/'+_0x1fe9e2+'x/\x20'+_0x1fe9e2+'w');return{'imageFallbackUrl':_0x3efa64,'imageSources':[{'srcset':_0xfd0242['join'](',\x20'),'sizes':'(max-width:\x20'+_0x49c0b4+'px)\x20100vw,\x20'+_0x49c0b4+'px','type':'image/webp'}]};}function S(_0x4573a1,_0xd6f838,_0xeb0ade){const _0x34c9a6=_0x4573a1['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x34c9a6?parseInt(_0x34c9a6[0x1],0xa):_0xd6f838,'height':_0x34c9a6?parseInt(_0x34c9a6[0x2],0xa):_0xeb0ade};}function p(_0x380501,_0x14d74b){const _0x3502c9=new(_0x5a183c())(),_0x15a936=_0x380501['plugins']['get']('ImageUtils'),_0x583aad=_0x380501['editing']['mapper']['toViewElement'](_0x14d74b),_0x1141a4=_0x15a936['findViewImgElement'](_0x583aad),_0x59e4a1=_0x380501['editing']['view']['domConverter']['viewToDom'](_0x1141a4),_0x1b0d6e=_0x14d74b['getAttribute']('width'),_0x17a082=_0x14d74b['getAttribute']('height'),_0x1922c0='image-processing';_0x380501['editing']['view']['change'](_0x5df768=>{_0x5df768['addClass'](_0x1922c0,_0x583aad),_0x5df768['setStyle']('aspect-ratio',_0x1b0d6e+'/'+_0x17a082,_0x1141a4);}),_0x3502c9['listenTo'](_0x59e4a1,'load',()=>{_0x3502c9['stopListening'](_0x59e4a1,'load'),_0x380501['editing']['view']['change'](_0x1876ae=>{_0x1876ae['removeClass'](_0x1922c0,_0x583aad),_0x1876ae['removeStyle']('aspect-ratio',_0x1141a4);});});}function G(_0x487e69){if(Array['isArray'](_0x487e69)){const _0x294ff4=_0x487e69['map'](G);return _0x51ba3d=>_0x294ff4['some'](_0x3119e6=>_0x3119e6(_0x51ba3d));}if('origin'==_0x487e69){const _0xeec376=_0x218d30['window']['location']['origin'];return _0xf12f1c=>new URL(_0xf12f1c,_0x218d30['document']['baseURI'])['origin']==_0xeec376;}return'function'==typeof _0x487e69?_0x487e69:_0x487e69 instanceof RegExp?_0x1840c9=>!(!_0x1840c9['match'](_0x487e69)&&!_0x1840c9['replace'](/^https?:\/\//,'')['match'](_0x487e69)):()=>!0x1;}function A(_0x5db839,_0x45ea54){return _0x592e8d(_0x5db839['target'])['includes'](_0x45ea54);}class n extends/* #__PURE__ -- @preserve */
24
- _0x39823a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x44f553,_0x3488e4,_0x253f9c){super(),this['_editor']=_0x44f553,this['_editing']=_0x3488e4,this['_dialog']=_0x44f553['plugins']['get'](_0x145263),this['_api']=_0x3488e4['ctxElement']['getAPI'](),this['_type']=_0x253f9c,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:_0x512843,model:_0x129e4c}=this['_editor'],_0x30c3c3=_0x129e4c['document']['selection']['getSelectedElement'](),_0x5ce6f4=_0x30c3c3&&(_0x30c3c3['is']('element','imageBlock')||_0x30c3c3['is']('element','imageInline'));this['_formView']=new x(_0x512843,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3d4fa7,'title':_(_0x512843,this['_type'],_0x5ce6f4?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xe0a98f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4551ec=>!A(_0x4551ec,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4d9376}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x295a95=>{const _0x96f40c=_0x4d9376['length'];for(const _0x578b1e of _0x4d9376){const _0x93cdb=_0x578b1e===_0x4d9376[_0x96f40c-0x1],{cdnUrl:_0x49726e,fileInfo:_0x45671b}=_0x578b1e;if(!_0x49726e||!_0x45671b)continue;const {width:_0x4784aa,height:_0x1e7b37}=_0x45671b['imageInfo'],_0x1032b1=S(_0x49726e,_0x4784aa,_0x1e7b37),_0x2d12bb=C(_0x49726e,_0x1032b1['width']),_0x3e173c={'id':_0x45671b['uuid'],'type':'image','attributes':{'imageDimension':_0x1032b1,..._0x2d12bb}};this['_insertAsset'](_0x3e173c,_0x93cdb,_0x295a95);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x7878d3=>{'idle'===_0x7878d3['detail']['status']&&!_0x7878d3['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2de71d,_0x2d1726,_0x40f183){const _0x3bccb0=this['_editor']['model']['document']['selection'],_0x41ce85=_0x3bccb0['getSelectedElement'](),_0x4caef5=!(!_0x41ce85||!_0x41ce85['is']('element','imageInline'));_0x40f183['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2de71d,_0x4caef5),_0x2d1726||_0x40f183['setSelection'](_0x3bccb0['getLastPosition']());}['_insertImage'](_0x36a1e6,_0x4db19d){const _0x586dd8=this['_editor'],{imageDimension:_0x19500f,imageFallbackUrl:_0x2df59e,imageSources:_0x3fa48b}=_0x36a1e6['attributes'];_0x586dd8['execute']('insertImage',{'imageType':_0x4db19d?'imageInline':null,'source':{'uploadcareImageId':_0x36a1e6['id'],'src':_0x2df59e,'sources':_0x3fa48b,..._0x19500f}});}}class w extends _0x330377{['_editing'];['_controller']=null;static get['requires'](){return[_0x145263,o];}constructor(_0x1bdc53){super(_0x1bdc53),this['_editing']=_0x1bdc53['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5ed174){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5ed174);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x967b85,..._0x5841b6}){return _0x5734e0(_0x967b85,_0x5841b6);}static['getInfo'](_0x47e569,_0x9aa548){return _0x2976a8(_0x47e569,_0x9aa548);}}class f extends _0x47bb67{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x54ba01,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2a15b5=this['editor'];if(!!!_0x2a15b5['config']['get']('uploadcare'))return;_0x2a15b5['plugins']['get'](_0x54ba01)['createUploadAdapter']=_0x41834f=>new k(_0x41834f,_0x2a15b5),_0x2a15b5['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x29d9b0,{imageElement:_0x3fede0,data:_0x287f23})=>{_0x2a15b5['model']['change'](_0x37cd1c=>{_0x37cd1c['setAttribute']('uploadcareImageId',_0x287f23['uploadcareImageId'],_0x3fede0);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xeac193,_0x27a069){this['loader']=_0xeac193,this['editor']=_0x27a069,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xd0e17b=await this['loader']['file'];return j['upload']({'file':_0xd0e17b,'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':_0x289182=>{_0x289182&&_0x289182['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x289182['value']);}})['then'](async _0x165a3c=>{const {imageFallbackUrl:_0x2d3abf,imageSources:_0x5eab3d}=C(_0x165a3c['cdnUrl'],_0x165a3c['imageInfo']['width']);return{'uploadcareImageId':_0x165a3c['uuid'],'default':_0x2d3abf,'sources':_0x5eab3d};})['catch'](()=>{const _0x327853=t('Cannot\x20upload\x20file:')+('\x20'+_0xd0e17b['name']+'.');return Promise['reject'](_0x327853);});}['abort'](){this['controller']['abort']();}}class o extends _0x47bb67{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x145263];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1daae3){super(_0x1daae3),this['ucContextId']=_0x2717a9();}['init'](){const _0x5da9b8=this['editor'];_0x5da9b8['commands']['add']('uploadcare',new w(_0x5da9b8));}['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 _0x40afa0=_0x218d30['document']['querySelector']('input[uploadcare-file-input]');_0x40afa0&&_0x40afa0['remove']();}),async function(_0x348677){const _0x49bdea=_0x286365([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x18d82d=0x3d8d0df,_0x31a98e=0x3dfa44f^_0x18d82d,_0x1c5768=window[_0x286365([0x44,0x61,0x74,0x65])][_0x286365([0x6e,0x6f,0x77])](),_0x3cd501=_0x348677[_0x286365([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c9351=new window[(_0x286365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a3201=>{_0x3cd501[_0x286365([0x6f,0x6e,0x63,0x65])](_0x286365([0x72,0x65,0x61,0x64,0x79]),_0x5a3201);}),_0x57f459={[_0x286365([0x6b,0x74,0x79])]:_0x286365([0x45,0x43]),[_0x286365([0x75,0x73,0x65])]:_0x286365([0x73,0x69,0x67]),[_0x286365([0x63,0x72,0x76])]:_0x286365([0x50,0x2d,0x32,0x35,0x36]),[_0x286365([0x78])]:_0x286365([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]),[_0x286365([0x79])]:_0x286365([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]),[_0x286365([0x61,0x6c,0x67])]:_0x286365([0x45,0x53,0x32,0x35,0x36])},_0x4eb100=_0x3cd501[_0x286365([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x286365([0x67,0x65,0x74])](_0x286365([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5f173f(){let _0x5f26e0,_0x4cab67=null,_0x33fc0c=null;try{if(_0x4eb100==_0x286365([0x47,0x50,0x4c]))return _0x286365([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5f26e0=_0x3e21d2(),!_0x5f26e0)return _0x286365([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5f26e0[_0x286365([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x33fc0c=_0xa02c01(_0x5f26e0[_0x286365([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5f26e0[_0x286365([0x6a,0x74,0x69])])),await _0x23d7dd()?_0x2259ce()?_0x50ef22()?_0x286365([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xda69f2()?(_0x5f26e0[_0x286365([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x286365([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4cab67=_0x2d8d35(_0x286365([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5f26e0[_0x286365([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x286365([0x74,0x72,0x69,0x61,0x6c])&&(_0x4cab67=_0x2d8d35(_0x286365([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x9c83b6()):_0x286365([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x286365([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x286365([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x286365([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x50ef22(){const _0x3baf8c=[_0x286365([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x286365([0x74,0x72,0x69,0x61,0x6c])][_0x286365([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f26e0[_0x286365([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1c5768/0x3e8:0xe10*_0x31a98e;return _0x5f26e0[_0x286365([0x65,0x78,0x70])]<_0x3baf8c;}function _0x2259ce(){const _0x15e0ac=_0x5f26e0[_0x286365([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x15e0ac&&(!!_0x15e0ac[_0x286365([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x286365([0x2a]))||!!_0x15e0ac[_0x286365([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x286365([0x55,0x50,0x4c,0x43])));}function _0xda69f2(){const _0x50c826=_0x5f26e0[_0x286365([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x50c826||0x0==_0x50c826[_0x286365([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3815f7}=new URL(window[_0x286365([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x50c826[_0x286365([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3815f7))return!0x0;const _0x27c9c4=_0x3815f7[_0x286365([0x73,0x70,0x6c,0x69,0x74])](_0x286365([0x2e]));return _0x50c826[_0x286365([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58b6a2=>_0x58b6a2[_0x286365([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x286365([0x2a])))[_0x286365([0x6d,0x61,0x70])](_0x53ebc5=>_0x53ebc5[_0x286365([0x73,0x70,0x6c,0x69,0x74])](_0x286365([0x2e])))[_0x286365([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x258ad5=>_0x258ad5[_0x286365([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x27c9c4[_0x286365([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x286365([0x6d,0x61,0x70])](_0x3e452c=>Array(_0x27c9c4[_0x286365([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3e452c[_0x286365([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x286365([0x66,0x69,0x6c,0x6c])](_0x3e452c[0x0]===_0x286365([0x2a])?_0x286365([0x2a]):'')[_0x286365([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3e452c))[_0x286365([0x73,0x6f,0x6d,0x65])](_0x7d2c8f=>_0x27c9c4[_0x286365([0x65,0x76,0x65,0x72,0x79])]((_0x363d89,_0x5d61af)=>_0x7d2c8f[_0x5d61af]===_0x363d89||_0x7d2c8f[_0x5d61af]===_0x286365([0x2a])));}function _0x9c83b6(){return _0x4cab67&&_0x33fc0c?new window[(_0x286365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6ddb29,_0x25bed6)=>{_0x4cab67[_0x286365([0x74,0x68,0x65,0x6e])](_0x6ddb29,_0x25bed6),_0x33fc0c[_0x286365([0x74,0x68,0x65,0x6e])](_0xf405d9=>{_0xf405d9!=_0x286365([0x56,0x61,0x6c,0x69,0x64])&&_0x6ddb29(_0xf405d9);},_0x25bed6);}):_0x4cab67||_0x33fc0c||_0x286365([0x56,0x61,0x6c,0x69,0x64]);}}function _0xa02c01(_0x53b613,_0x233203){return new window[(_0x286365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dbe9c=>{if(_0x3736bf())return _0x2dbe9c(_0x286365([0x56,0x61,0x6c,0x69,0x64]));_0x7d958f(),_0x3cd501[_0x286365([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x286365([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x426a85=!0x1;const _0x5a9d19=_0x2717a9();function _0xf8bbed(_0x5849c0){return!!_0x5849c0&&(typeof _0x5849c0===_0x286365([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5849c0===_0x286365([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5849c0[_0x286365([0x74,0x68,0x65,0x6e])]===_0x286365([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5849c0[_0x286365([0x63,0x61,0x74,0x63,0x68])]===_0x286365([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x149e65(_0x382f47){_0x30388c(_0x382f47)[_0x286365([0x74,0x68,0x65,0x6e])](_0xdf51b9=>{if(!_0xdf51b9||_0xdf51b9[_0x286365([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x286365([0x6f,0x6b]))return _0x286365([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1c7240(_0xec3054(_0x5a9d19+_0x233203))!=_0xdf51b9[_0x286365([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x286365([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x286365([0x56,0x61,0x6c,0x69,0x64]);})[_0x286365([0x74,0x68,0x65,0x6e])](_0x5241e6=>(_0x52cf74(),_0x5241e6),()=>{const _0x2c9885=_0x40a15f();return null==_0x2c9885?(_0x52cf74(),_0x286365([0x56,0x61,0x6c,0x69,0x64])):_0x286365(_0x1c5768-_0x2c9885>(0x27d454df^_0x18d82d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x286365([0x74,0x68,0x65,0x6e])](_0x2dbe9c)[_0x286365([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2dbe9c(_0x286365([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4a976c=0x3ee3e5f^_0x18d82d;function _0x52cf74(){const _0x2acef1=_0x286365([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c7240(_0xec3054(_0x53b613)),_0x26154a=_0x2db772(_0x1c7240(window[_0x286365([0x4d,0x61,0x74,0x68])][_0x286365([0x63,0x65,0x69,0x6c])](_0x1c5768/_0x4a976c)));window[_0x286365([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x286365([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2acef1,_0x26154a);}function _0x40a15f(){const _0x358e02=_0x286365([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c7240(_0xec3054(_0x53b613)),_0x5048e2=window[_0x286365([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x286365([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x358e02);return _0x5048e2?window[_0x286365([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2db772(_0x5048e2),0x10)*_0x4a976c:null;}function _0x30388c(_0x159088){return new window[(_0x286365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x83a249,_0x3af955)=>{_0x159088[_0x286365([0x74,0x68,0x65,0x6e])](_0x83a249,_0x3af955),window[_0x286365([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3af955,0x3d9041f^_0x18d82d);});}}_0x3cd501[_0x286365([0x6f,0x6e])](_0x286365([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3b2c75,_0x1f6016)=>{if(_0x1f6016[0x0]!=_0x53b613)return _0x2dbe9c(_0x286365([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1f6016[0x1]={..._0x1f6016[0x1],[_0x286365([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5a9d19};},{[_0x286365([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x286365([0x68,0x69,0x67,0x68])}),_0x3cd501[_0x286365([0x6f,0x6e])](_0x286365([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x23b54a=>{_0xf8bbed(_0x23b54a[_0x286365([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x426a85=!0x0,_0x149e65(_0x23b54a[_0x286365([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x286365([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x286365([0x6c,0x6f,0x77])}),_0x5c9351[_0x286365([0x74,0x68,0x65,0x6e])](()=>{_0x426a85||_0x2dbe9c(_0x286365([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3736bf(){return _0x3cd501[_0x286365([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x286365([0x76,0x69,0x65,0x77])][_0x286365([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x286365([0x61,0x75,0x74,0x6f]);}function _0x7d958f(){_0x3cd501[_0x286365([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x286365([0x76,0x69,0x65,0x77])][_0x286365([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x286365([0x61,0x75,0x74,0x6f]);}}function _0x2d8d35(_0x2c69fd){const _0x323955=[new window[(_0x286365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19d664=>setTimeout(_0x19d664,0x3d1ee13^_0x18d82d)),_0x5c9351[_0x286365([0x74,0x68,0x65,0x6e])](()=>new window[(_0x286365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d70a9=>{let _0x5cd452=0x0;_0x3cd501[_0x286365([0x6d,0x6f,0x64,0x65,0x6c])][_0x286365([0x6f,0x6e])](_0x286365([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1498a6,_0x58ddce)=>{_0x58ddce[0x0][_0x286365([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5cd452++,_0x5cd452==(0x3d8d127^_0x18d82d)&&(_0x5d70a9(),_0x1498a6[_0x286365([0x6f,0x66,0x66])]());});}))];return window[_0x286365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x286365([0x72,0x61,0x63,0x65])](_0x323955)[_0x286365([0x74,0x68,0x65,0x6e])](()=>_0x2c69fd);}async function _0x1bf3f0(){await _0x5c9351,_0x3cd501[_0x286365([0x6d,0x6f,0x64,0x65,0x6c])][_0x286365([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1bed62,_0x3cd501[_0x286365([0x6d,0x6f,0x64,0x65,0x6c])][_0x286365([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1bed62,_0x3cd501[_0x286365([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x286365([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1a4d0a(_0x3f2708){const _0x112dda=_0x473e5c();_0x3cd501[_0x112dda]=_0x286365([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3f2708,_0x3f2708!=_0x286365([0x56,0x61,0x6c,0x69,0x64])&&_0x1bf3f0();}function _0x473e5c(){const _0x3afa98=window[_0x286365([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x286365([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x286365([0x6e,0x6f,0x77])]())[_0x286365([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x286365([0x2e]),'');let _0x2b0dc0=_0x286365([0x52]);for(let _0x3e965d=0x0;_0x3e965d<_0x3afa98[_0x286365([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e965d+=0x2){let _0xe2996=window[_0x286365([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3afa98[_0x286365([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e965d,_0x3e965d+0x2));_0xe2996>=_0x49bdea[_0x286365([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe2996-=_0x49bdea[_0x286365([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b0dc0+=_0x49bdea[_0xe2996];}return _0x2b0dc0;}function _0x3e21d2(){const _0x353de0=_0x4eb100[_0x286365([0x73,0x70,0x6c,0x69,0x74])](_0x286365([0x2e]));if(0x3!=_0x353de0[_0x286365([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40b033(_0x353de0[0x1]);function _0x40b033(_0x3f2d1a){const _0x25b054=_0x155da7(_0x3f2d1a);return _0x25b054&&_0x11540e()?_0x25b054:null;function _0x11540e(){const _0x2a0aec=_0x25b054[_0x286365([0x6a,0x74,0x69])],_0x2932fa=window[_0x286365([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a0aec[_0x286365([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2a0aec[_0x286365([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1948de={..._0x25b054,[_0x286365([0x6a,0x74,0x69])]:_0x2a0aec[_0x286365([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2a0aec[_0x286365([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1948de[_0x286365([0x76,0x63])],_0xec3054(_0x1948de)==_0x2932fa;}}}async function _0x23d7dd(){let _0x27ab05=!0x0;try{const _0x27a2a0=_0x4eb100[_0x286365([0x73,0x70,0x6c,0x69,0x74])](_0x286365([0x2e])),[_0xb4053a,_0x5134e4,_0x51349a]=_0x27a2a0;return _0x22fe47(_0xb4053a),await _0x3fd587(_0xb4053a,_0x5134e4,_0x51349a),_0x27ab05;}catch{return!0x1;}function _0x22fe47(_0x39bee6){const _0x545736=_0x155da7(_0x39bee6);_0x545736&&_0x545736[_0x286365([0x61,0x6c,0x67])]==_0x286365([0x45,0x53,0x32,0x35,0x36])||(_0x27ab05=!0x1);}async function _0x3fd587(_0x4e8e4b,_0x193924,_0x2e9417){const _0x345601=window[_0x286365([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x286365([0x66,0x72,0x6f,0x6d])](_0x4ddcd6(_0x2e9417),_0x3603cc=>_0x3603cc[_0x286365([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32c4f9=new window[(_0x286365([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x286365([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e8e4b+_0x286365([0x2e])+_0x193924),_0x53a40b=window[_0x286365([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x286365([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x53a40b)return;const _0x46767f=await _0x53a40b[_0x286365([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x286365([0x6a,0x77,0x6b]),_0x57f459,{[_0x286365([0x6e,0x61,0x6d,0x65])]:_0x286365([0x45,0x43,0x44,0x53,0x41]),[_0x286365([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x286365([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x286365([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x53a40b[_0x286365([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x286365([0x6e,0x61,0x6d,0x65])]:_0x286365([0x45,0x43,0x44,0x53,0x41]),[_0x286365([0x68,0x61,0x73,0x68])]:{[_0x286365([0x6e,0x61,0x6d,0x65])]:_0x286365([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x46767f,_0x345601,_0x32c4f9)||(_0x27ab05=!0x1);}}function _0x155da7(_0x2c194b){return _0x2c194b[_0x286365([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x286365([0x65,0x79]))?JSON[_0x286365([0x70,0x61,0x72,0x73,0x65])](_0x4ddcd6(_0x2c194b)):null;}function _0x4ddcd6(_0x3724b0){return window[_0x286365([0x61,0x74,0x6f,0x62])](_0x3724b0[_0x286365([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x286365([0x2b]))[_0x286365([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x286365([0x2f])));}function _0xec3054(_0x35b596){let _0x3e9368=0x1505;function _0x28d248(_0x2f389d){for(let _0x3254ef=0x0;_0x3254ef<_0x2f389d[_0x286365([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3254ef++){const _0x284d5b=_0x2f389d[_0x286365([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3254ef);_0x3e9368=(_0x3e9368<<0x5)+_0x3e9368+_0x284d5b,_0x3e9368&=_0x3e9368;}}function _0x32973f(_0x3b701f){Array[_0x286365([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3b701f)?_0x3b701f[_0x286365([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x32973f):_0x3b701f&&typeof _0x3b701f==_0x286365([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x286365([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3b701f)[_0x286365([0x73,0x6f,0x72,0x74])]()[_0x286365([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x56c28a,_0x197252])=>{_0x28d248(_0x56c28a),_0x32973f(_0x197252);}):_0x28d248(window[_0x286365([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3b701f));}return _0x32973f(_0x35b596),_0x3e9368>>>0x0;}function _0x1c7240(_0x85e5cc){return _0x85e5cc[_0x286365([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x286365([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x286365([0x30]));}function _0x2db772(_0x5274a4){return _0x5274a4[_0x286365([0x73,0x70,0x6c,0x69,0x74])]('')[_0x286365([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x286365([0x6a,0x6f,0x69,0x6e])]('');}function _0x1bed62(){}function _0x286365(_0x12ece5){return _0x12ece5['map'](_0x204ea5=>String['fromCharCode'](_0x204ea5))['join']('');}_0x1a4d0a(await _0x5f173f());}(this);}['_initSchema'](){const _0xef49df=this['editor']['model']['schema'];_0xef49df['isRegistered']('imageBlock')&&_0xef49df['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xef49df['isRegistered']('imageInline')&&_0xef49df['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3cb67b=this['editor'];_0x3cb67b['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3cb67b['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x30a921=>_0x30a921['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x549104=_0x3cb67b['commands']['get']('replaceImageSource');_0x549104&&this['listenTo'](_0x549104,'cleanupImage',(_0x53cc19,[_0x27036e,_0x26a05c])=>{_0x27036e['removeAttribute']('uploadcareImageId',_0x26a05c);});}['_initConfig'](){const _0x490d90=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2b79a6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1004e0(_0x218d30['document'],'uc-config',{..._0x490d90,'pubkey':_0x2b79a6,'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']=_0xf697b=>{if('closeMax'==_0xf697b)return'#uc-icon-arrow-down';},_0x218d30['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1004e0(_0x218d30['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x218d30['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2802f0=this['editor']['commands']['get']('insertImage');_0x2802f0&&this['listenTo'](_0x2802f0,'execute',()=>{const _0x1a6dc9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1a6dc9&&_0x1a6dc9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1a6dc9);});});const _0x3ee446=this['editor']['commands']['get']('uploadcareImageReplace');_0x3ee446&&this['listenTo'](_0x3ee446,'execute',()=>{const _0x2f6f03=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2f6f03&&_0x2f6f03['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2f6f03);});});}}class tt extends _0x47bb67{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x158381){super(_0x158381),_0x158381['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x442ec4['defineComponents'](_0x442ec4);}}class ii extends _0xcf99be{constructor(_0x2ffe9f){super(_0x2ffe9f);const t=_0x2ffe9f['t'],_0x5f56c7=this['bindTemplate'],_0x41fcca=new _0x303e36();_0x41fcca['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':[_0x41fcca,{'text':_0x5f56c7['to']('imageUploadProgress',_0x51b30a=>t('Loading\x20image...')+'\x20('+(_0x51b30a||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 _0xcf99be{constructor(_0x1fac35){super(_0x1fac35);const t=_0x1fac35['t'];this['set']('errorType',null);const _0x389850=new _0x154fa4(_0x1fac35);_0x389850['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x389850['withText']=!0x0,_0x389850['class']='ck-button-action',_0x389850['on']('execute',()=>{this['fire']('retry');}),_0x389850['bind']('isVisible')['to'](this,'errorType',_0x243d89=>'NotFound'!==_0x243d89);const _0x21f07a=new _0x1478af();_0x21f07a['content']=_0x2992eb,_0x21f07a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x374f70=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':[_0x21f07a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x374f70['to']('errorType',_0x36ffda=>t('NotFound'!==_0x36ffda?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x389850]},{'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 _0xcf99be{constructor(_0x9397e0,_0x594741){super(_0x9397e0);const _0x201fe7=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x594741,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x201fe7['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x526dfb,_0x2edb72,_0x44e409){super(_0x526dfb),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x526dfb),this['_errorView']=new ti(_0x526dfb),this['_editingView']=new ei(_0x526dfb,_0x44e409),this['_focusableView']=new _0xcf99be(_0x526dfb),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2edb72),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'],_0x45d51c=>{this['_addUploadcareImageEditorListeners'](_0x45d51c);});}),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'](_0x5eda09,_0x3f6cb2){const _0x18553c='uc-cloud-image-editor',_0x5593d5=_0x5eda09['querySelector'](_0x18553c);if(_0x5593d5)return _0x3f6cb2(_0x5593d5);const _0x1185e8=new MutationObserver(_0x411016=>{const _0x1481e6=_0x411016['filter'](_0x169c03=>_0x169c03['target']===_0x5eda09&&_0x169c03['addedNodes']['length']>0x0&&_0x169c03['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x18553c);_0x1481e6['length']&&(_0x1185e8['disconnect'](),_0x3f6cb2(_0x1481e6[0x0]['addedNodes'][0x0]));});_0x1185e8['observe'](_0x5eda09,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5c5656){_0x5c5656['addEventListener']('apply',_0xd90c25=>{this['fire']('apply',{'imageSrc':_0xd90c25['detail']['cdnUrl']});}),_0x5c5656['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x39823a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x593b02,_0x1a0f99,_0x3d31be){super(),this['_editor']=_0x593b02,this['_dialog']=_0x1a0f99,this['_imageElement']=_0x3d31be,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 _0xa6094f=this['_imageElement'],_0x15564d=_0xa6094f['getAttribute']('uploadcareImageId'),_0x450569=_0xa6094f['getAttribute']('src');if(_0x15564d)await this['_loadImageInfo'](_0x15564d,_0x450569);else{if(this['_imageCache']['has'](_0x450569)){const _0x562981=this['_imageCache']['get'](_0x450569);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x562981['url'],this['imageDimension']=_0x562981['dimension'],this['imageId']=_0x562981['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5a4d48}=this['_editor'],t=_0x5a4d48['t'],_0x4df7d1=new X(_0x5a4d48,this['imageStatus'],this['_attributes']);_0x4df7d1['bind']('status')['to'](this,'imageStatus'),_0x4df7d1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4df7d1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4df7d1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4df7d1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xe7efea,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4df7d1,'position':_0xe0a98f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4df7d1['focus']();},'onHide':()=>{_0x4df7d1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x300393=>!A(_0x300393,_0x4df7d1['element'])}});}['_loadImageInfo'](_0xb8b686,_0x4057e2){return j['getInfo'](_0xb8b686,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2c2d59=>{const {width:_0x2340bb,height:_0x24ef0f}=_0x2c2d59['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4057e2,this['imageDimension']={'width':_0x2340bb,'height':_0x24ef0f},this['imageId']=_0xb8b686;})['catch'](_0x34d044=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x34d044['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4f8752,_0x3d0870){return this['_getImageAsFile'](_0x4f8752)['then'](_0x2222a7=>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':_0x3d0870['signal'],'file':_0x2222a7,'onProgress':_0x22a9d8=>{_0x22a9d8&&_0x22a9d8['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x22a9d8['value']));}}))['then'](_0x443a32=>{const {width:_0x456565,height:_0x3fe90b}=_0x443a32['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x443a32['cdnUrl'],this['imageDimension']={'width':_0x456565,'height':_0x3fe90b},this['imageId']=_0x443a32['uuid'],this['imageUploadProgress']=null;const _0x78290=_0x4f8752['getAttribute']('src');this['_imageCache']['set'](_0x78290,{'id':_0x443a32['uuid'],'url':_0x443a32['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x43216a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x43216a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x579f09,_0x567ed4){_0x579f09['on']('apply',(_0x454bd3,_0x24a4ef)=>{this['_replaceImage'](_0x567ed4,_0x24a4ef['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x579f09['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x579f09['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x44543c,_0x39b820,_0x3f02dd){const _0x24ee4d=this['_editor'],{width:_0x45823c,height:_0xc01158}=S(_0x39b820,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xa101ea,imageSources:_0x49c679}=C(_0x39b820,_0x45823c);_0x24ee4d['model']['change'](_0x176042=>{if('$graveyard'===_0x44543c['root']['rootName']){_0x24ee4d['execute']('insertImage',{'imageType':_0x44543c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x44543c['getAttributes']()),'uploadcareImageId':_0x3f02dd,'src':_0xa101ea,'sources':_0x49c679,'width':_0x45823c,'height':_0xc01158}});const _0xfc1436=_0x44543c['getChildren']();_0x44543c=_0x24ee4d['model']['document']['selection']['getSelectedElement']();for(const _0x5a998c of _0xfc1436)_0x176042['append'](_0x176042['cloneElement'](_0x5a998c),_0x44543c);}else _0x176042['setSelection'](_0x44543c,'on'),_0x24ee4d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x44543c['getAttributes']()),'uploadcareImageId':_0x3f02dd,'src':_0xa101ea,'sources':_0x49c679,'width':_0x45823c,'height':_0xc01158},_0x44543c);_0x176042['setSelection'](_0x44543c,'on');});}async['_getImageAsFile'](_0x5e562c){const _0x1e6564=_0x218d30['window'],_0x1d62ce=_0x218d30['document']['location']['href'],_0x5ce026=new _0x1e6564['URL'](_0x5e562c['getAttribute']('src'),_0x1d62ce);if('data:'===_0x5ce026['protocol']){const _0x415bc1=_0x5ce026['href']['split'](','),_0x1392c6=_0x415bc1[0x0]['match'](/:(.*?);/)[0x1],_0x8278ac=_0x1392c6['split']('/')[0x1],_0x32286=_0x1e6564['atob'](_0x415bc1[_0x415bc1['length']-0x1]);let _0x593d0=_0x32286['length'];const _0x114823=new _0x1e6564['Uint8Array'](_0x593d0);for(;_0x593d0--;)_0x114823[_0x593d0]=_0x32286['charCodeAt'](_0x593d0);return new _0x1e6564['File']([_0x114823],'image.'+_0x8278ac,{'type':_0x1392c6});}const _0x1317df=_0x5ce026['href']['split']('/'),_0x215521=_0x1317df[_0x1317df['length']-0x1],_0x2dd12f=_0x215521['split']('.')[0x1];return _0x1e6564['fetch'](_0x5ce026['href'])['then'](_0xf3e7a7=>_0xf3e7a7['clone']()['blob']())['then'](_0x5c6f4a=>new _0x1e6564['File']([_0x5c6f4a],_0x215521,{'type':'image/'+_0x2dd12f}));}}class O extends _0x330377{['imageEditController'];static get['requires'](){return[_0x145263];}['_isEditable'];constructor(_0x587651){super(_0x587651),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5af476){const _0x41adb2=G(_0x5af476);return _0x2730fd=>!(!_0x2730fd||!_0x2730fd['is']('element','imageBlock')&&!_0x2730fd['is']('element','imageInline'))&&(!!_0x2730fd['hasAttribute']('uploadcareImageId')||!!_0x2730fd['hasAttribute']('src')&&_0x41adb2(_0x2730fd['getAttribute']('src')));}(_0x587651['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x210d77=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x210d77);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x52168d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x52168d&&(_0x52168d['is']('element','imageBlock')||_0x52168d['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x145263),_0x52168d),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x330377{['refresh'](){const _0x136dbe=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x136dbe&&(_0x136dbe['is']('element','imageBlock')||_0x136dbe['is']('element','imageInline')));}['execute'](_0x5ec3da){const _0x4ff6cd=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4b1c07=>{_0x4b1c07['setAttributes'](_0x5ec3da,_0x4ff6cd),_0x4b1c07['removeAttribute']('srcset',_0x4ff6cd),_0x4b1c07['removeAttribute']('sizes',_0x4ff6cd);});}}class m extends _0x47bb67{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x402c1e,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4c4f1f}=this;_0x4c4f1f['commands']['add']('uploadcareImageEdit',new O(_0x4c4f1f)),_0x4c4f1f['commands']['add']('uploadcareImageReplace',new R(_0x4c4f1f));}}class g extends _0x47bb67{['_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 _0x32336d=this['editor'];_0x32336d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1db284=>{const _0xa36bb2=_0x32336d['commands']['get']('uploadcareImageEdit'),_0x4d0462=new _0x154fa4(_0x1db284),t=_0x1db284['t'];return _0x4d0462['set']({'icon':_0xe7efea,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4d0462['bind']('isEnabled')['to'](_0xa36bb2),_0x4d0462['bind']('isOn')['to'](_0xa36bb2,'isActive'),this['listenTo'](_0x4d0462,'execute',()=>{_0x32336d['execute']('uploadcareImageEdit'),_0x32336d['editing']['view']['focus']();}),_0x4d0462;}),this['_initConfig']();}['_initConfig'](){const _0x213f9f=_0x1004e0(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x213f9f),this['listenTo'](this['editor'],'destroy',()=>{_0x213f9f['remove']();});}}class et extends _0x47bb67{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0x1bae7e,Command as _0x28c4b4}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5ee4f1,IconGooglePhotos as _0x23ee03,IconGoogleDrive as _0x1834ed,IconFacebook as _0x54324f,IconDropbox as _0x20cf40,IconUploadcareLink as _0x243198,IconUploadcareImageUpload as _0x46b15b,IconError as _0x5dcfc2,IconUploadcareImageEdit as _0x3d8c3a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3f01e9,MenuBarMenuListItemButtonView as _0x10c3d0,View as _0x141753,FocusCycler as _0x267c9f,Dialog as _0x2f3d2e,DialogViewPosition as _0x20fb12,SpinnerView as _0x3b0e3c,IconView as _0x5239a3,Notification as _0x12d5af}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x40dffd,DomEmitterMixin as _0x1050d9,global as _0x2b470d,getAncestors as _0x3ffdd6,ObservableMixin as _0x13bc85,uid as _0x1c76e0,createElement as _0x228c9f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x57b69b}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xd25e25,info as _0x17ca5c}from'@uploadcare/upload-client';import*as _0x1600e9 from'@uploadcare/file-uploader';var i=function(_0x5ae17b){return _0x5ae17b['Local']='local',_0x5ae17b['URL']='url',_0x5ae17b['Dropbox']='dropbox',_0x5ae17b['GDrive']='gdrive',_0x5ae17b['Facebook']='facebook',_0x5ae17b['GPhotos']='gphotos',_0x5ae17b['OneDrive']='onedrive',_0x5ae17b;}({});function _(_0x15422b,_0x4ae625,_0x428398){const t=_0x15422b['t'],_0xdb9e1=_0x15422b['t'];switch(_0x4ae625){case i['Local']:return{'text':_0xdb9e1('Insert'===_0x428398?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xdb9e1('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x428398?_0xdb9e1('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xdb9e1('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x428398?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x428398?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x428398?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x428398?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x428398?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4ae625;}}class e extends _0x1bae7e{['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 _0x216933=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5c7b1c;for(const _0x5e146f in _0x216933){const _0x1cd7da=_0x5e146f,_0x3ec604=_0x216933[_0x1cd7da];if('uploadcareLicenseKeyValid'==_0x3ec604||'uploadcareLicenseKeyInvalid'==_0x3ec604||'uploadcareLicenseKeyExpired'==_0x3ec604||'uploadcareLicenseKeyDomainLimit'==_0x3ec604||'uploadcareLicenseKeyNotAllowed'==_0x3ec604||'uploadcareLicenseKeyEvaluationLimit'==_0x3ec604||'uploadcareLicenseKeyTrialLimit'==_0x3ec604||'uploadcareLicenseKeyUsageLimit'==_0x3ec604){delete _0x216933[_0x1cd7da],_0x5c7b1c=_0x3ec604,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5c7b1c&&_0x216933['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5c7b1c&&_0x216933['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5c7b1c&&_0x216933['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5c7b1c&&_0x216933['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5c7b1c&&_0x216933['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5c7b1c&&_0x216933['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5c7b1c&&_0x216933['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4ce636}=this,_0x51e385=_0x4ce636['commands']['get']('uploadcare');if(!_0x51e385)return;const _0x55b421=this['_normalizeConfigSourceList'](_0x4ce636['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4f227b,_0x474793)=>{const _0xe9e91=this['_getIntegrationKey'](_0x474793['type']);return _0x4f227b[_0xe9e91]||(_0x4f227b[_0xe9e91]=[]),_0x4f227b[_0xe9e91]['push'](_0x474793),_0x4f227b;},{});_0x4ce636['plugins']['has']('ImageInsertUI')&&_0x4ce636['commands']['get']('uploadcare')&&Object['entries'](_0x55b421)['forEach'](([_0x1240da,_0x516af4])=>{_0x4ce636['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1240da,'observable':()=>_0x51e385,'buttonViewCreator':()=>this['_createToolbarButton'](_0x516af4),'formViewCreator':()=>this['_createDropdownButtons'](_0x516af4),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x516af4),'override':'assetManager'!==_0x1240da});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x451db8){const {locale:_0x41c2e0}=this['editor'];return _0x451db8['map'](_0x2afbdd=>{const _0x5c26ad=_(_0x41c2e0,_0x2afbdd,'Insert');switch(_0x2afbdd){case i['Local']:return{'icon':_0x46b15b,'type':i['Local'],..._0x5c26ad};case i['URL']:return{'icon':_0x243198,'type':i['URL'],..._0x5c26ad};case i['Dropbox']:return{'icon':_0x20cf40,'type':i['Dropbox'],..._0x5c26ad};case i['Facebook']:return{'icon':_0x54324f,'type':i['Facebook'],..._0x5c26ad};case i['GDrive']:return{'icon':_0x1834ed,'type':i['GDrive'],..._0x5c26ad};case i['GPhotos']:return{'icon':_0x23ee03,'type':i['GPhotos'],..._0x5c26ad};case i['OneDrive']:return{'icon':_0x5ee4f1,'type':i['OneDrive'],..._0x5c26ad};}});}['_getIntegrationKey'](_0x5ea770){switch(_0x5ea770){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x39ca41,_0x3b972a){const _0x30196c=this['editor'],_0x41a14f=new _0x39ca41(_0x30196c['locale']),_0x11725d=_0x30196c['commands']['get']('uploadcare');return _0x41a14f['bind']('isEnabled')['to'](_0x11725d),_0x41a14f['on']('execute',()=>{_0x11725d['execute'](_0x3b972a);}),_0x41a14f;}['_createToolbarButton'](_0x4d3710){const {locale:_0x1d1caf}=this['editor'],_0x3f2a3f=this['editor']['plugins']['get']('ImageInsertUI'),_0x1b8ede=_0x4d3710[0x0],_0x55dfa3=this['_createButton'](_0x3f01e9,_0x1b8ede['type']);return _0x55dfa3['icon']=_0x1b8ede['icon'],_0x55dfa3['bind']('label')['to'](_0x3f2a3f,'isImageSelected',_0x6db21a=>_(_0x1d1caf,_0x1b8ede['type'],_0x6db21a?'Replace':'Insert')['text']),_0x55dfa3['tooltip']=!0x0,_0x55dfa3;}['_createDropdownButtons'](_0x12e8c4){const {locale:_0x1ae2ae}=this['editor'],_0x5deb31=this['editor']['plugins']['get']('ImageInsertUI');return _0x12e8c4['map'](_0xf0287d=>{const _0x1a1b42=this['_createButton'](_0x3f01e9,_0xf0287d['type']);return _0x1a1b42['withText']=!0x0,_0x1a1b42['icon']=_0xf0287d['icon'],_0x1a1b42['bind']('label')['to'](_0x5deb31,'isImageSelected',_0x2d1258=>_(_0x1ae2ae,_0xf0287d['type'],_0x2d1258?'Replace':'Insert')['text']),_0x1a1b42;});}['_createMenuBarButtons'](_0x43a403){return _0x43a403['map'](_0x3336e4=>{const _0x5a04c8=this['_createButton'](_0x10c3d0,_0x3336e4['type']);return _0x5a04c8['icon']=_0x3336e4['icon'],_0x5a04c8['label']=_0x3336e4['shortText'],_0x5a04c8;});}}class F extends _0x141753{['focusTracker'];['focusCycler'];constructor(_0x189119){super(_0x189119),this['focusTracker']=new _0x40dffd(),this['focusCycler']=new _0x267c9f({'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(_0x3d59e6,_0x5b8bcf){super(_0x3d59e6),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-'+_0x5b8bcf}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x559221,_0x536cd9){const _0x5e50f3=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x598c3b=>_0x598c3b<=_0x536cd9)['map'](_0x3e8ba2=>_0x559221['replace'](/\/$/,'')+'/-/resize/'+_0x3e8ba2+'x/\x20'+_0x3e8ba2+'w');return{'imageFallbackUrl':_0x559221,'imageSources':[{'srcset':_0x5e50f3['join'](',\x20'),'sizes':'(max-width:\x20'+_0x536cd9+'px)\x20100vw,\x20'+_0x536cd9+'px','type':'image/webp'}]};}function S(_0x1ec367,_0x121ec2,_0xafc0c0){const _0x5ea9b1=_0x1ec367['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5ea9b1?parseInt(_0x5ea9b1[0x1],0xa):_0x121ec2,'height':_0x5ea9b1?parseInt(_0x5ea9b1[0x2],0xa):_0xafc0c0};}function p(_0x2dc866,_0x129f43){const _0x165f72=new(_0x1050d9())(),_0x628214=_0x2dc866['plugins']['get']('ImageUtils'),_0x4775ed=_0x2dc866['editing']['mapper']['toViewElement'](_0x129f43),_0x3955e0=_0x628214['findViewImgElement'](_0x4775ed),_0x1e42db=_0x2dc866['editing']['view']['domConverter']['viewToDom'](_0x3955e0),_0x54fc71=_0x129f43['getAttribute']('width'),_0x30c18b=_0x129f43['getAttribute']('height'),_0x2c5fa8='image-processing';_0x2dc866['editing']['view']['change'](_0x1e2e9a=>{_0x1e2e9a['addClass'](_0x2c5fa8,_0x4775ed),_0x1e2e9a['setStyle']('aspect-ratio',_0x54fc71+'/'+_0x30c18b,_0x3955e0);}),_0x165f72['listenTo'](_0x1e42db,'load',()=>{_0x165f72['stopListening'](_0x1e42db,'load'),_0x2dc866['editing']['view']['change'](_0x41a874=>{_0x41a874['removeClass'](_0x2c5fa8,_0x4775ed),_0x41a874['removeStyle']('aspect-ratio',_0x3955e0);});});}function G(_0x2d00c1){if(Array['isArray'](_0x2d00c1)){const _0x2e07b3=_0x2d00c1['map'](G);return _0xa5629e=>_0x2e07b3['some'](_0x5afa5a=>_0x5afa5a(_0xa5629e));}if('origin'==_0x2d00c1){const _0x3498ba=_0x2b470d['window']['location']['origin'];return _0x475980=>new URL(_0x475980,_0x2b470d['document']['baseURI'])['origin']==_0x3498ba;}return'function'==typeof _0x2d00c1?_0x2d00c1:_0x2d00c1 instanceof RegExp?_0x283e9f=>!(!_0x283e9f['match'](_0x2d00c1)&&!_0x283e9f['replace'](/^https?:\/\//,'')['match'](_0x2d00c1)):()=>!0x1;}function A(_0x4bb250,_0x1ac274){return _0x3ffdd6(_0x4bb250['target'])['includes'](_0x1ac274);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x13bc85(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1f5a97,_0xb69d8b,_0x568903){super(),this['_editor']=_0x1f5a97,this['_editing']=_0xb69d8b,this['_dialog']=_0x1f5a97['plugins']['get'](_0x2f3d2e),this['_api']=_0xb69d8b['ctxElement']['getAPI'](),this['_type']=_0x568903,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:_0x183951,model:_0x12b8fb}=this['_editor'],_0x1c1b71=_0x12b8fb['document']['selection']['getSelectedElement'](),_0x2e1acb=_0x1c1b71&&(_0x1c1b71['is']('element','imageBlock')||_0x1c1b71['is']('element','imageInline'));this['_formView']=new x(_0x183951,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x46b15b,'title':_(_0x183951,this['_type'],_0x2e1acb?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x20fb12['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x25ad94=>!A(_0x25ad94,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3b1b47}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x744333=>{const _0x4a574a=_0x3b1b47['length'];for(const _0x49b9fa of _0x3b1b47){const _0x29edda=_0x49b9fa===_0x3b1b47[_0x4a574a-0x1],{cdnUrl:_0xd77ae0,fileInfo:_0x298451}=_0x49b9fa;if(!_0xd77ae0||!_0x298451)continue;const {width:_0x34b380,height:_0x4ac757}=_0x298451['imageInfo'],_0x1ccefa=S(_0xd77ae0,_0x34b380,_0x4ac757),_0x2b9952=C(_0xd77ae0,_0x1ccefa['width']),_0x519b93={'id':_0x298451['uuid'],'type':'image','attributes':{'imageDimension':_0x1ccefa,..._0x2b9952}};this['_insertAsset'](_0x519b93,_0x29edda,_0x744333);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x544a81=>{'idle'===_0x544a81['detail']['status']&&!_0x544a81['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x922802,_0x20028d,_0x2c2566){const _0x44c1aa=this['_editor']['model']['document']['selection'],_0x5943e1=_0x44c1aa['getSelectedElement'](),_0x4a4103=!(!_0x5943e1||!_0x5943e1['is']('element','imageInline'));_0x2c2566['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x922802,_0x4a4103),_0x20028d||_0x2c2566['setSelection'](_0x44c1aa['getLastPosition']());}['_insertImage'](_0x2c4c5b,_0x41da0f){const _0x543a08=this['_editor'],{imageDimension:_0x305563,imageFallbackUrl:_0x68045a,imageSources:_0x357760}=_0x2c4c5b['attributes'];_0x543a08['execute']('insertImage',{'imageType':_0x41da0f?'imageInline':null,'source':{'uploadcareImageId':_0x2c4c5b['id'],'src':_0x68045a,'sources':_0x357760,..._0x305563}});}}class w extends _0x28c4b4{['_editing'];['_controller']=null;static get['requires'](){return[_0x2f3d2e,o];}constructor(_0x5584e2){super(_0x5584e2),this['_editing']=_0x5584e2['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1239a9){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1239a9);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x4f57ab,..._0x411468}){return _0xd25e25(_0x4f57ab,_0x411468);}static['getInfo'](_0x4ae379,_0x42c805){return _0x17ca5c(_0x4ae379,_0x42c805);}}class f extends _0x1bae7e{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x57b69b,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x49415d=this['editor'];if(!!!_0x49415d['config']['get']('uploadcare'))return;_0x49415d['plugins']['get'](_0x57b69b)['createUploadAdapter']=_0x30f72b=>new k(_0x30f72b,_0x49415d),_0x49415d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4555bd,{imageElement:_0x352e1f,data:_0x598400})=>{_0x49415d['model']['change'](_0x417d6a=>{_0x417d6a['setAttribute']('uploadcareImageId',_0x598400['uploadcareImageId'],_0x352e1f);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4ccc56,_0xba23c6){this['loader']=_0x4ccc56,this['editor']=_0xba23c6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4318b0=await this['loader']['file'];return j['upload']({'file':_0x4318b0,'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':_0x574ae7=>{_0x574ae7&&_0x574ae7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x574ae7['value']);}})['then'](async _0x2d6d19=>{const {imageFallbackUrl:_0x1098ea,imageSources:_0x3f923f}=C(_0x2d6d19['cdnUrl'],_0x2d6d19['imageInfo']['width']);return{'uploadcareImageId':_0x2d6d19['uuid'],'default':_0x1098ea,'sources':_0x3f923f};})['catch'](()=>{const _0x49bb63=t('Cannot\x20upload\x20file:')+('\x20'+_0x4318b0['name']+'.');return Promise['reject'](_0x49bb63);});}['abort'](){this['controller']['abort']();}}class o extends _0x1bae7e{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2f3d2e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3a1280){super(_0x3a1280),this['ucContextId']=_0x1c76e0();}['init'](){const _0x14e2c4=this['editor'];_0x14e2c4['commands']['add']('uploadcare',new w(_0x14e2c4));}['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 _0x1c3193=_0x2b470d['document']['querySelector']('input[uploadcare-file-input]');_0x1c3193&&_0x1c3193['remove']();}),async function(_0x5a8c1b){const _0xcc6999=_0x2cd8b7([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x125384=0x3d8d0df,_0x2d6869=0x3dfa477^_0x125384,_0x26adcf=window[_0x2cd8b7([0x44,0x61,0x74,0x65])][_0x2cd8b7([0x6e,0x6f,0x77])](),_0x17b809=_0x5a8c1b[_0x2cd8b7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e6aa1=new window[(_0x2cd8b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bddac=>{_0x17b809[_0x2cd8b7([0x6f,0x6e,0x63,0x65])](_0x2cd8b7([0x72,0x65,0x61,0x64,0x79]),_0x3bddac);}),_0x528726={[_0x2cd8b7([0x6b,0x74,0x79])]:_0x2cd8b7([0x45,0x43]),[_0x2cd8b7([0x75,0x73,0x65])]:_0x2cd8b7([0x73,0x69,0x67]),[_0x2cd8b7([0x63,0x72,0x76])]:_0x2cd8b7([0x50,0x2d,0x32,0x35,0x36]),[_0x2cd8b7([0x78])]:_0x2cd8b7([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]),[_0x2cd8b7([0x79])]:_0x2cd8b7([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]),[_0x2cd8b7([0x61,0x6c,0x67])]:_0x2cd8b7([0x45,0x53,0x32,0x35,0x36])},_0x56ae0e=_0x17b809[_0x2cd8b7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2cd8b7([0x67,0x65,0x74])](_0x2cd8b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x30e7a4(){let _0x1de7b3,_0x29214d=null,_0x1cd610=null;try{if(_0x56ae0e==_0x2cd8b7([0x47,0x50,0x4c]))return _0x2cd8b7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1de7b3=_0x4d6b31(),!_0x1de7b3)return _0x2cd8b7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1de7b3[_0x2cd8b7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1cd610=_0x1441bf(_0x1de7b3[_0x2cd8b7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1de7b3[_0x2cd8b7([0x6a,0x74,0x69])])),await _0x54f9e7()?_0x306700()?_0x2b3e7d()?_0x2cd8b7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3bb82f()?(_0x1de7b3[_0x2cd8b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cd8b7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29214d=_0x52088a(_0x2cd8b7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1de7b3[_0x2cd8b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cd8b7([0x74,0x72,0x69,0x61,0x6c])&&(_0x29214d=_0x52088a(_0x2cd8b7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5bdbbb()):_0x2cd8b7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2cd8b7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2cd8b7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2cd8b7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b3e7d(){const _0x48aeb0=[_0x2cd8b7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2cd8b7([0x74,0x72,0x69,0x61,0x6c])][_0x2cd8b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1de7b3[_0x2cd8b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x26adcf/0x3e8:0xe10*_0x2d6869;return _0x1de7b3[_0x2cd8b7([0x65,0x78,0x70])]<_0x48aeb0;}function _0x306700(){const _0x254706=_0x1de7b3[_0x2cd8b7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x254706&&(!!_0x254706[_0x2cd8b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cd8b7([0x2a]))||!!_0x254706[_0x2cd8b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cd8b7([0x55,0x50,0x4c,0x43])));}function _0x3bb82f(){const _0x28991b=_0x1de7b3[_0x2cd8b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x28991b||0x0==_0x28991b[_0x2cd8b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a9e27}=new URL(window[_0x2cd8b7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x28991b[_0x2cd8b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a9e27))return!0x0;const _0x3be733=_0x4a9e27[_0x2cd8b7([0x73,0x70,0x6c,0x69,0x74])](_0x2cd8b7([0x2e]));return _0x28991b[_0x2cd8b7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x72da36=>_0x72da36[_0x2cd8b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cd8b7([0x2a])))[_0x2cd8b7([0x6d,0x61,0x70])](_0x94b924=>_0x94b924[_0x2cd8b7([0x73,0x70,0x6c,0x69,0x74])](_0x2cd8b7([0x2e])))[_0x2cd8b7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x55fab3=>_0x55fab3[_0x2cd8b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3be733[_0x2cd8b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2cd8b7([0x6d,0x61,0x70])](_0x420ea5=>Array(_0x3be733[_0x2cd8b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x420ea5[_0x2cd8b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2cd8b7([0x66,0x69,0x6c,0x6c])](_0x420ea5[0x0]===_0x2cd8b7([0x2a])?_0x2cd8b7([0x2a]):'')[_0x2cd8b7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x420ea5))[_0x2cd8b7([0x73,0x6f,0x6d,0x65])](_0x46d64f=>_0x3be733[_0x2cd8b7([0x65,0x76,0x65,0x72,0x79])]((_0x1f1d1d,_0x56db5e)=>_0x46d64f[_0x56db5e]===_0x1f1d1d||_0x46d64f[_0x56db5e]===_0x2cd8b7([0x2a])));}function _0x5bdbbb(){return _0x29214d&&_0x1cd610?new window[(_0x2cd8b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f6f99,_0x460e8f)=>{_0x29214d[_0x2cd8b7([0x74,0x68,0x65,0x6e])](_0x4f6f99,_0x460e8f),_0x1cd610[_0x2cd8b7([0x74,0x68,0x65,0x6e])](_0x1bc4d0=>{_0x1bc4d0!=_0x2cd8b7([0x56,0x61,0x6c,0x69,0x64])&&_0x4f6f99(_0x1bc4d0);},_0x460e8f);}):_0x29214d||_0x1cd610||_0x2cd8b7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1441bf(_0x10d027,_0x34aa01){return new window[(_0x2cd8b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x90a8a7=>{if(_0x17bb51())return _0x90a8a7(_0x2cd8b7([0x56,0x61,0x6c,0x69,0x64]));_0x26965c(),_0x17b809[_0x2cd8b7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2cd8b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x49eb7f=!0x1;const _0x2f4e50=_0x1c76e0();function _0x1aef50(_0x16ccaf){return!!_0x16ccaf&&(typeof _0x16ccaf===_0x2cd8b7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x16ccaf===_0x2cd8b7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x16ccaf[_0x2cd8b7([0x74,0x68,0x65,0x6e])]===_0x2cd8b7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x16ccaf[_0x2cd8b7([0x63,0x61,0x74,0x63,0x68])]===_0x2cd8b7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x554eca(_0xd3d574){_0x43e021(_0xd3d574)[_0x2cd8b7([0x74,0x68,0x65,0x6e])](_0x5079a9=>{if(!_0x5079a9||_0x5079a9[_0x2cd8b7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2cd8b7([0x6f,0x6b]))return _0x2cd8b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x255490(_0x4ff29b(_0x2f4e50+_0x34aa01))!=_0x5079a9[_0x2cd8b7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2cd8b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2cd8b7([0x56,0x61,0x6c,0x69,0x64]);})[_0x2cd8b7([0x74,0x68,0x65,0x6e])](_0x16af07=>(_0x3d3307(),_0x16af07),()=>{const _0x10d03d=_0x4a054a();return null==_0x10d03d?(_0x3d3307(),_0x2cd8b7([0x56,0x61,0x6c,0x69,0x64])):_0x2cd8b7(_0x26adcf-_0x10d03d>(0x27d454df^_0x125384)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2cd8b7([0x74,0x68,0x65,0x6e])](_0x90a8a7)[_0x2cd8b7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x90a8a7(_0x2cd8b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3632ee=0x3ee3e5f^_0x125384;function _0x3d3307(){const _0x5af518=_0x2cd8b7([0x6c,0x6c,0x63,0x74,0x2d])+_0x255490(_0x4ff29b(_0x10d027)),_0x49cf10=_0x5941a4(_0x255490(window[_0x2cd8b7([0x4d,0x61,0x74,0x68])][_0x2cd8b7([0x63,0x65,0x69,0x6c])](_0x26adcf/_0x3632ee)));window[_0x2cd8b7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cd8b7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5af518,_0x49cf10);}function _0x4a054a(){const _0x2b0793=_0x2cd8b7([0x6c,0x6c,0x63,0x74,0x2d])+_0x255490(_0x4ff29b(_0x10d027)),_0x22d03d=window[_0x2cd8b7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cd8b7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b0793);return _0x22d03d?window[_0x2cd8b7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5941a4(_0x22d03d),0x10)*_0x3632ee:null;}function _0x43e021(_0x334cbd){return new window[(_0x2cd8b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c002a,_0x54fdbf)=>{_0x334cbd[_0x2cd8b7([0x74,0x68,0x65,0x6e])](_0x2c002a,_0x54fdbf),window[_0x2cd8b7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x54fdbf,0x3d9041f^_0x125384);});}}_0x17b809[_0x2cd8b7([0x6f,0x6e])](_0x2cd8b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51196b,_0x1707ac)=>{if(_0x1707ac[0x0]!=_0x10d027)return _0x90a8a7(_0x2cd8b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1707ac[0x1]={..._0x1707ac[0x1],[_0x2cd8b7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f4e50};},{[_0x2cd8b7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cd8b7([0x68,0x69,0x67,0x68])}),_0x17b809[_0x2cd8b7([0x6f,0x6e])](_0x2cd8b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x561915=>{_0x1aef50(_0x561915[_0x2cd8b7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x49eb7f=!0x0,_0x554eca(_0x561915[_0x2cd8b7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2cd8b7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cd8b7([0x6c,0x6f,0x77])}),_0x3e6aa1[_0x2cd8b7([0x74,0x68,0x65,0x6e])](()=>{_0x49eb7f||_0x90a8a7(_0x2cd8b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x17bb51(){return _0x17b809[_0x2cd8b7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cd8b7([0x76,0x69,0x65,0x77])][_0x2cd8b7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2cd8b7([0x61,0x75,0x74,0x6f]);}function _0x26965c(){_0x17b809[_0x2cd8b7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cd8b7([0x76,0x69,0x65,0x77])][_0x2cd8b7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2cd8b7([0x61,0x75,0x74,0x6f]);}}function _0x52088a(_0x1efef6){const _0x9606f5=[new window[(_0x2cd8b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7ef7d6=>setTimeout(_0x7ef7d6,0x3d1ee13^_0x125384)),_0x3e6aa1[_0x2cd8b7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2cd8b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a04ef=>{let _0x326122=0x0;_0x17b809[_0x2cd8b7([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cd8b7([0x6f,0x6e])](_0x2cd8b7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5797da,_0x51a576)=>{_0x51a576[0x0][_0x2cd8b7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x326122++,_0x326122==(0x3d8d127^_0x125384)&&(_0x2a04ef(),_0x5797da[_0x2cd8b7([0x6f,0x66,0x66])]());});}))];return window[_0x2cd8b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2cd8b7([0x72,0x61,0x63,0x65])](_0x9606f5)[_0x2cd8b7([0x74,0x68,0x65,0x6e])](()=>_0x1efef6);}async function _0xf4bbb8(){await _0x3e6aa1,_0x17b809[_0x2cd8b7([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cd8b7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a3e7a,_0x17b809[_0x2cd8b7([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cd8b7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a3e7a,_0x17b809[_0x2cd8b7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2cd8b7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x499374(_0x25bae4){const _0x41f98e=_0x5bde61();_0x17b809[_0x41f98e]=_0x2cd8b7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x25bae4,_0x25bae4!=_0x2cd8b7([0x56,0x61,0x6c,0x69,0x64])&&_0xf4bbb8();}function _0x5bde61(){const _0x3e03b5=window[_0x2cd8b7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2cd8b7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2cd8b7([0x6e,0x6f,0x77])]())[_0x2cd8b7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2cd8b7([0x2e]),'');let _0x55d6c0=_0x2cd8b7([0x52]);for(let _0x254784=0x0;_0x254784<_0x3e03b5[_0x2cd8b7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x254784+=0x2){let _0x3348fb=window[_0x2cd8b7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e03b5[_0x2cd8b7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x254784,_0x254784+0x2));_0x3348fb>=_0xcc6999[_0x2cd8b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3348fb-=_0xcc6999[_0x2cd8b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x55d6c0+=_0xcc6999[_0x3348fb];}return _0x55d6c0;}function _0x4d6b31(){const _0x48f690=_0x56ae0e[_0x2cd8b7([0x73,0x70,0x6c,0x69,0x74])](_0x2cd8b7([0x2e]));if(0x3!=_0x48f690[_0x2cd8b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4ccf7c(_0x48f690[0x1]);function _0x4ccf7c(_0x316b0e){const _0xe4e407=_0x5a208f(_0x316b0e);return _0xe4e407&&_0x50fcfe()?_0xe4e407:null;function _0x50fcfe(){const _0x4be1ca=_0xe4e407[_0x2cd8b7([0x6a,0x74,0x69])],_0x59663=window[_0x2cd8b7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4be1ca[_0x2cd8b7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4be1ca[_0x2cd8b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3994fd={..._0xe4e407,[_0x2cd8b7([0x6a,0x74,0x69])]:_0x4be1ca[_0x2cd8b7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4be1ca[_0x2cd8b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3994fd[_0x2cd8b7([0x76,0x63])],_0x4ff29b(_0x3994fd)==_0x59663;}}}async function _0x54f9e7(){let _0x16ef0c=!0x0;try{const _0x354878=_0x56ae0e[_0x2cd8b7([0x73,0x70,0x6c,0x69,0x74])](_0x2cd8b7([0x2e])),[_0x40f011,_0xc906b7,_0xcb176c]=_0x354878;return _0x20aec2(_0x40f011),await _0x2d4598(_0x40f011,_0xc906b7,_0xcb176c),_0x16ef0c;}catch{return!0x1;}function _0x20aec2(_0x16216a){const _0x41191f=_0x5a208f(_0x16216a);_0x41191f&&_0x41191f[_0x2cd8b7([0x61,0x6c,0x67])]==_0x2cd8b7([0x45,0x53,0x32,0x35,0x36])||(_0x16ef0c=!0x1);}async function _0x2d4598(_0x46a189,_0x134d97,_0x57d460){const _0x393073=window[_0x2cd8b7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2cd8b7([0x66,0x72,0x6f,0x6d])](_0x2bec55(_0x57d460),_0xd703db=>_0xd703db[_0x2cd8b7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x57d81e=new window[(_0x2cd8b7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2cd8b7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x46a189+_0x2cd8b7([0x2e])+_0x134d97),_0x4632e3=window[_0x2cd8b7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2cd8b7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4632e3)return;const _0x3f7de4=await _0x4632e3[_0x2cd8b7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2cd8b7([0x6a,0x77,0x6b]),_0x528726,{[_0x2cd8b7([0x6e,0x61,0x6d,0x65])]:_0x2cd8b7([0x45,0x43,0x44,0x53,0x41]),[_0x2cd8b7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2cd8b7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2cd8b7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4632e3[_0x2cd8b7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2cd8b7([0x6e,0x61,0x6d,0x65])]:_0x2cd8b7([0x45,0x43,0x44,0x53,0x41]),[_0x2cd8b7([0x68,0x61,0x73,0x68])]:{[_0x2cd8b7([0x6e,0x61,0x6d,0x65])]:_0x2cd8b7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3f7de4,_0x393073,_0x57d81e)||(_0x16ef0c=!0x1);}}function _0x5a208f(_0x28fc38){return _0x28fc38[_0x2cd8b7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2cd8b7([0x65,0x79]))?JSON[_0x2cd8b7([0x70,0x61,0x72,0x73,0x65])](_0x2bec55(_0x28fc38)):null;}function _0x2bec55(_0x36f6ae){return window[_0x2cd8b7([0x61,0x74,0x6f,0x62])](_0x36f6ae[_0x2cd8b7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2cd8b7([0x2b]))[_0x2cd8b7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2cd8b7([0x2f])));}function _0x4ff29b(_0x26b51f){let _0x761461=0x1505;function _0x28257b(_0xe3bd2a){for(let _0x550644=0x0;_0x550644<_0xe3bd2a[_0x2cd8b7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x550644++){const _0x282cc7=_0xe3bd2a[_0x2cd8b7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x550644);_0x761461=(_0x761461<<0x5)+_0x761461+_0x282cc7,_0x761461&=_0x761461;}}function _0x40072b(_0x131e1b){Array[_0x2cd8b7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x131e1b)?_0x131e1b[_0x2cd8b7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x40072b):_0x131e1b&&typeof _0x131e1b==_0x2cd8b7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2cd8b7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x131e1b)[_0x2cd8b7([0x73,0x6f,0x72,0x74])]()[_0x2cd8b7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2ee840,_0x51ff32])=>{_0x28257b(_0x2ee840),_0x40072b(_0x51ff32);}):_0x28257b(window[_0x2cd8b7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x131e1b));}return _0x40072b(_0x26b51f),_0x761461>>>0x0;}function _0x255490(_0x124ccf){return _0x124ccf[_0x2cd8b7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2cd8b7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2cd8b7([0x30]));}function _0x5941a4(_0x489cb5){return _0x489cb5[_0x2cd8b7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2cd8b7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2cd8b7([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a3e7a(){}function _0x2cd8b7(_0x40bc3e){return _0x40bc3e['map'](_0x79305a=>String['fromCharCode'](_0x79305a))['join']('');}_0x499374(await _0x30e7a4());}(this);}['_initSchema'](){const _0x35db78=this['editor']['model']['schema'];_0x35db78['isRegistered']('imageBlock')&&_0x35db78['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x35db78['isRegistered']('imageInline')&&_0x35db78['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x55851d=this['editor'];_0x55851d['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x55851d['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x462fba=>_0x462fba['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3969f1=_0x55851d['commands']['get']('replaceImageSource');_0x3969f1&&this['listenTo'](_0x3969f1,'cleanupImage',(_0x185efb,[_0x1e6fbb,_0x2fc7dd])=>{_0x1e6fbb['removeAttribute']('uploadcareImageId',_0x2fc7dd);});}['_initConfig'](){const _0x3dd229=this['editor']['config']['get']('uploadcare.uploader')||{},_0xeccfcf=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x228c9f(_0x2b470d['document'],'uc-config',{..._0x3dd229,'pubkey':_0xeccfcf,'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']=_0xd792e0=>{if('closeMax'==_0xd792e0)return'#uc-icon-arrow-down';},_0x2b470d['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x228c9f(_0x2b470d['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2b470d['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x59bfc7=this['editor']['commands']['get']('insertImage');_0x59bfc7&&this['listenTo'](_0x59bfc7,'execute',()=>{const _0x2ef8ba=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2ef8ba&&_0x2ef8ba['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2ef8ba);});});const _0x39c71c=this['editor']['commands']['get']('uploadcareImageReplace');_0x39c71c&&this['listenTo'](_0x39c71c,'execute',()=>{const _0x521202=this['editor']['model']['document']['selection']['getSelectedElement']();_0x521202&&_0x521202['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x521202);});});}}class tt extends _0x1bae7e{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x227cd1){super(_0x227cd1),_0x227cd1['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x1600e9['defineComponents'](_0x1600e9);}}class ii extends _0x141753{constructor(_0x25ed2f){super(_0x25ed2f);const t=_0x25ed2f['t'],_0x15f9d1=this['bindTemplate'],_0x456fde=new _0x3b0e3c();_0x456fde['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':[_0x456fde,{'text':_0x15f9d1['to']('imageUploadProgress',_0x180582=>t('Loading\x20image...')+'\x20('+(_0x180582||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 _0x141753{constructor(_0x34440c){super(_0x34440c);const t=_0x34440c['t'];this['set']('errorType',null);const _0x1bbe79=new _0x3f01e9(_0x34440c);_0x1bbe79['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1bbe79['withText']=!0x0,_0x1bbe79['class']='ck-button-action',_0x1bbe79['on']('execute',()=>{this['fire']('retry');}),_0x1bbe79['bind']('isVisible')['to'](this,'errorType',_0x4a14e0=>'NotFound'!==_0x4a14e0);const _0x13c472=new _0x5239a3();_0x13c472['content']=_0x5dcfc2,_0x13c472['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xffb36e=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':[_0x13c472,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xffb36e['to']('errorType',_0x345ad8=>t('NotFound'!==_0x345ad8?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1bbe79]},{'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 _0x141753{constructor(_0x365a27,_0x3abe75){super(_0x365a27);const _0x30612f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3abe75,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x30612f['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x29a6da,_0x3ab423,_0x29cfc3){super(_0x29a6da),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x29a6da),this['_errorView']=new ti(_0x29a6da),this['_editingView']=new ei(_0x29a6da,_0x29cfc3),this['_focusableView']=new _0x141753(_0x29a6da),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3ab423),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'],_0x33346e=>{this['_addUploadcareImageEditorListeners'](_0x33346e);});}),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'](_0x31069a,_0x21ada1){const _0x40e0af='uc-cloud-image-editor',_0x17cd48=_0x31069a['querySelector'](_0x40e0af);if(_0x17cd48)return _0x21ada1(_0x17cd48);const _0x4358d3=new MutationObserver(_0x5ea9b2=>{const _0x31e572=_0x5ea9b2['filter'](_0x199702=>_0x199702['target']===_0x31069a&&_0x199702['addedNodes']['length']>0x0&&_0x199702['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x40e0af);_0x31e572['length']&&(_0x4358d3['disconnect'](),_0x21ada1(_0x31e572[0x0]['addedNodes'][0x0]));});_0x4358d3['observe'](_0x31069a,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1f31f3){_0x1f31f3['addEventListener']('apply',_0x4e4aa5=>{this['fire']('apply',{'imageSrc':_0x4e4aa5['detail']['cdnUrl']});}),_0x1f31f3['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x13bc85(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3d2504,_0x1cb782,_0x3b9d52){super(),this['_editor']=_0x3d2504,this['_dialog']=_0x1cb782,this['_imageElement']=_0x3b9d52,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 _0x12097c=this['_imageElement'],_0x30896d=_0x12097c['getAttribute']('uploadcareImageId'),_0x39446c=_0x12097c['getAttribute']('src');if(_0x30896d)await this['_loadImageInfo'](_0x30896d,_0x39446c);else{if(this['_imageCache']['has'](_0x39446c)){const _0x165277=this['_imageCache']['get'](_0x39446c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x165277['url'],this['imageDimension']=_0x165277['dimension'],this['imageId']=_0x165277['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1d03dc}=this['_editor'],t=_0x1d03dc['t'],_0x3ee513=new X(_0x1d03dc,this['imageStatus'],this['_attributes']);_0x3ee513['bind']('status')['to'](this,'imageStatus'),_0x3ee513['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3ee513['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3ee513['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3ee513,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3d8c3a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3ee513,'position':_0x20fb12['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3ee513['focus']();},'onHide':()=>{_0x3ee513['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x28b570=>!A(_0x28b570,_0x3ee513['element'])}});}['_loadImageInfo'](_0x3deb0e,_0x1c5e7e){return j['getInfo'](_0x3deb0e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1517e3=>{const {width:_0x16cd28,height:_0x4f548d}=_0x1517e3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1c5e7e,this['imageDimension']={'width':_0x16cd28,'height':_0x4f548d},this['imageId']=_0x3deb0e;})['catch'](_0x3caf78=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3caf78['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xbe8245,_0x4689c3){return this['_getImageAsFile'](_0xbe8245)['then'](_0x4f21f6=>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':_0x4689c3['signal'],'file':_0x4f21f6,'onProgress':_0x28eee4=>{_0x28eee4&&_0x28eee4['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x28eee4['value']));}}))['then'](_0x50801f=>{const {width:_0x17c862,height:_0x1929b0}=_0x50801f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x50801f['cdnUrl'],this['imageDimension']={'width':_0x17c862,'height':_0x1929b0},this['imageId']=_0x50801f['uuid'],this['imageUploadProgress']=null;const _0x46860a=_0xbe8245['getAttribute']('src');this['_imageCache']['set'](_0x46860a,{'id':_0x50801f['uuid'],'url':_0x50801f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x9f1fab=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x9f1fab['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4d65a0,_0xe65943){_0x4d65a0['on']('apply',(_0x39cda9,_0x8ea411)=>{this['_replaceImage'](_0xe65943,_0x8ea411['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4d65a0['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4d65a0['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5abb30,_0x3eef22,_0x2477f2){const _0x365ea2=this['_editor'],{width:_0x4fa78f,height:_0x5e47c9}=S(_0x3eef22,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1d54a4,imageSources:_0x47d86f}=C(_0x3eef22,_0x4fa78f);_0x365ea2['model']['change'](_0x2994d5=>{if('$graveyard'===_0x5abb30['root']['rootName']){_0x365ea2['execute']('insertImage',{'imageType':_0x5abb30['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5abb30['getAttributes']()),'uploadcareImageId':_0x2477f2,'src':_0x1d54a4,'sources':_0x47d86f,'width':_0x4fa78f,'height':_0x5e47c9}});const _0x35b5fa=_0x5abb30['getChildren']();_0x5abb30=_0x365ea2['model']['document']['selection']['getSelectedElement']();for(const _0x1bf58b of _0x35b5fa)_0x2994d5['append'](_0x2994d5['cloneElement'](_0x1bf58b),_0x5abb30);}else _0x2994d5['setSelection'](_0x5abb30,'on'),_0x365ea2['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5abb30['getAttributes']()),'uploadcareImageId':_0x2477f2,'src':_0x1d54a4,'sources':_0x47d86f,'width':_0x4fa78f,'height':_0x5e47c9},_0x5abb30);_0x2994d5['setSelection'](_0x5abb30,'on');});}async['_getImageAsFile'](_0x503f2b){const _0x4cb76f=_0x2b470d['window'],_0x354307=_0x2b470d['document']['location']['href'],_0x3f35a0=new _0x4cb76f['URL'](_0x503f2b['getAttribute']('src'),_0x354307);if('data:'===_0x3f35a0['protocol']){const _0x4954bb=_0x3f35a0['href']['split'](','),_0x410cd1=_0x4954bb[0x0]['match'](/:(.*?);/)[0x1],_0x2e9f35=_0x410cd1['split']('/')[0x1],_0x3c92c2=_0x4cb76f['atob'](_0x4954bb[_0x4954bb['length']-0x1]);let _0x5ac0d0=_0x3c92c2['length'];const _0x422544=new _0x4cb76f['Uint8Array'](_0x5ac0d0);for(;_0x5ac0d0--;)_0x422544[_0x5ac0d0]=_0x3c92c2['charCodeAt'](_0x5ac0d0);return new _0x4cb76f['File']([_0x422544],'image.'+_0x2e9f35,{'type':_0x410cd1});}const _0x43aac7=_0x3f35a0['href']['split']('/'),_0x527971=_0x43aac7[_0x43aac7['length']-0x1],_0x1c0070=_0x527971['split']('.')[0x1];return _0x4cb76f['fetch'](_0x3f35a0['href'])['then'](_0x50161=>_0x50161['clone']()['blob']())['then'](_0x4dad82=>new _0x4cb76f['File']([_0x4dad82],_0x527971,{'type':'image/'+_0x1c0070}));}}class O extends _0x28c4b4{['imageEditController'];static get['requires'](){return[_0x2f3d2e];}['_isEditable'];constructor(_0x3d7fe7){super(_0x3d7fe7),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x50e538){const _0x216c31=G(_0x50e538);return _0x222e72=>!(!_0x222e72||!_0x222e72['is']('element','imageBlock')&&!_0x222e72['is']('element','imageInline'))&&(!!_0x222e72['hasAttribute']('uploadcareImageId')||!!_0x222e72['hasAttribute']('src')&&_0x216c31(_0x222e72['getAttribute']('src')));}(_0x3d7fe7['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2021c7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2021c7);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xa75689=this['editor']['model']['document']['selection']['getSelectedElement']();_0xa75689&&(_0xa75689['is']('element','imageBlock')||_0xa75689['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x2f3d2e),_0xa75689),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x28c4b4{['refresh'](){const _0x14993a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x14993a&&(_0x14993a['is']('element','imageBlock')||_0x14993a['is']('element','imageInline')));}['execute'](_0x308245){const _0x5adf75=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x18b840=>{_0x18b840['setAttributes'](_0x308245,_0x5adf75),_0x18b840['removeAttribute']('srcset',_0x5adf75),_0x18b840['removeAttribute']('sizes',_0x5adf75);});}}class m extends _0x1bae7e{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x12d5af,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x26b26b}=this;_0x26b26b['commands']['add']('uploadcareImageEdit',new O(_0x26b26b)),_0x26b26b['commands']['add']('uploadcareImageReplace',new R(_0x26b26b));}}class g extends _0x1bae7e{['_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 _0x10a69c=this['editor'];_0x10a69c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x8f212e=>{const _0x58c1ec=_0x10a69c['commands']['get']('uploadcareImageEdit'),_0x217608=new _0x3f01e9(_0x8f212e),t=_0x8f212e['t'];return _0x217608['set']({'icon':_0x3d8c3a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x217608['bind']('isEnabled')['to'](_0x58c1ec),_0x217608['bind']('isOn')['to'](_0x58c1ec,'isActive'),this['listenTo'](_0x217608,'execute',()=>{_0x10a69c['execute']('uploadcareImageEdit'),_0x10a69c['editing']['view']['focus']();}),_0x217608;}),this['_initConfig']();}['_initConfig'](){const _0x50d5a8=_0x228c9f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x50d5a8),this['listenTo'](this['editor'],'destroy',()=>{_0x50d5a8['remove']();});}}class et extends _0x1bae7e{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "47.0.0-alpha.3",
3
+ "version": "47.0.0-alpha.4",
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": "47.0.0-alpha.3",
27
- "@ckeditor/ckeditor5-icons": "47.0.0-alpha.3",
28
- "@ckeditor/ckeditor5-image": "47.0.0-alpha.3",
29
- "@ckeditor/ckeditor5-theme-lark": "47.0.0-alpha.3",
30
- "@ckeditor/ckeditor5-ui": "47.0.0-alpha.3",
31
- "@ckeditor/ckeditor5-upload": "47.0.0-alpha.3",
32
- "@ckeditor/ckeditor5-utils": "47.0.0-alpha.3",
33
- "ckeditor5": "47.0.0-alpha.3",
26
+ "@ckeditor/ckeditor5-core": "47.0.0-alpha.4",
27
+ "@ckeditor/ckeditor5-icons": "47.0.0-alpha.4",
28
+ "@ckeditor/ckeditor5-image": "47.0.0-alpha.4",
29
+ "@ckeditor/ckeditor5-theme-lark": "47.0.0-alpha.4",
30
+ "@ckeditor/ckeditor5-ui": "47.0.0-alpha.4",
31
+ "@ckeditor/ckeditor5-upload": "47.0.0-alpha.4",
32
+ "@ckeditor/ckeditor5-utils": "47.0.0-alpha.4",
33
+ "ckeditor5": "47.0.0-alpha.4",
34
34
  "@uploadcare/file-uploader": "1.19.4",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x185b52=_0x463a;(function(_0x4a4a2b,_0x28120a){const _0x4fb0cb=_0x463a,_0x12d4bb=_0x4a4a2b();while(!![]){try{const _0x404926=parseInt(_0x4fb0cb(0x18e))/0x1*(-parseInt(_0x4fb0cb(0x194))/0x2)+-parseInt(_0x4fb0cb(0x17b))/0x3+-parseInt(_0x4fb0cb(0x149))/0x4*(parseInt(_0x4fb0cb(0x171))/0x5)+parseInt(_0x4fb0cb(0x180))/0x6*(-parseInt(_0x4fb0cb(0x14e))/0x7)+parseInt(_0x4fb0cb(0x166))/0x8*(parseInt(_0x4fb0cb(0x159))/0x9)+-parseInt(_0x4fb0cb(0x187))/0xa*(-parseInt(_0x4fb0cb(0x145))/0xb)+parseInt(_0x4fb0cb(0x16c))/0xc*(parseInt(_0x4fb0cb(0x14c))/0xd);if(_0x404926===_0x28120a)break;else _0x12d4bb['push'](_0x12d4bb['shift']());}catch(_0x644c19){_0x12d4bb['push'](_0x12d4bb['shift']());}}}(_0x5c40,0x923fb));import{Plugin as _0x56c916}from'ckeditor5/src/core.js';import{Dialog as _0x3b4442}from'ckeditor5/src/ui.js';import{createElement as _0x48a536,global as _0x46d330,uid as _0x41eb71}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3f928c}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x53683d}from'./uploadcareuploadadapter.js';function _0x463a(_0x12e646,_0x249e48){const _0x5c40af=_0x5c40();return _0x463a=function(_0x463a47,_0x43809a){_0x463a47=_0x463a47-0x141;let _0xd4f941=_0x5c40af[_0x463a47];return _0xd4f941;},_0x463a(_0x12e646,_0x249e48);}import{showImageProcessingIndicator as _0x59f880}from'./utils/editingutils.js';function _0x5c40(){const _0x5bd969=['ucContextId','1896wMPNGu','requires','_initConversion','afterInit','uploadcare','36745VdFTtf','iconHrefResolver','href','input[uploadcare-file-input]','getAttribute','map','uploadcare.pubkey','querySelector','editing','imageInline','3043821TvGuXb','conversion','uploadcareImageReplace','isPremiumPlugin','listenTo','12bZdYQH','true','_initConfig','upcast','model','for','downcast','3800TMAKXu','destroy','replaceImageSource','config','_initImageProcessingIndicator','uploadcare.uploader','selection','852439vSTzte','ctxElement','removeAttribute','remove','body','join','2TpTeMQ','attributeToAttribute','_initCtx','document','#uc-icon-arrow-down','\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','commands','elementToAttribute','_configElement','25003xuskUN','PictureEditing','locale','uc-upload-ctx-provider','244YTInSa','imageBlock','_ctxElement','121381OvggAF','once','1500422vkzHLu','uc-config','isRegistered','closeMax','data-uc-image-id','getSelectedElement','view','UploadcareEditing','_initSchema','uploadcareImageId','insertImage','4518342SSevoM','editor','cleanupImage','contentLanguage','get','extend','configElement','isOfficialPlugin','pluginName','schema','execute','uploader-','fromCharCode','16alMqPM','add','init','render','appendChild'];_0x5c40=function(){return _0x5bd969;};return _0x5c40();}export class UploadcareEditing extends _0x56c916{[_0x185b52(0x144)]=null;[_0x185b52(0x14b)]=null;static get[_0x185b52(0x161)](){const _0x3f880e=_0x185b52;return _0x3f880e(0x155);}static get[_0x185b52(0x16d)](){const _0x3fd18b=_0x185b52;return[_0x3fd18b(0x146),_0x53683d,_0x3b4442];}static get[_0x185b52(0x160)](){return!0x0;}static get[_0x185b52(0x17e)](){return!0x0;}[_0x185b52(0x16b)];get[_0x185b52(0x15f)](){const _0x159b4f=_0x185b52;return this[_0x159b4f(0x144)];}get[_0x185b52(0x18f)](){const _0x5f5293=_0x185b52;return this[_0x5f5293(0x14b)];}constructor(_0x5b4d3a){const _0x2a5038=_0x185b52;super(_0x5b4d3a),this[_0x2a5038(0x16b)]=_0x41eb71();}[_0x185b52(0x168)](){const _0x539109=_0x185b52,_0x2bbe5b=this[_0x539109(0x15a)];_0x2bbe5b[_0x539109(0x142)][_0x539109(0x167)](_0x539109(0x170),new _0x3f928c(_0x2bbe5b));}[_0x185b52(0x16f)](){const _0x36a984=_0x185b52;this[_0x36a984(0x156)](),this[_0x36a984(0x16e)](),this[_0x36a984(0x182)](),this[_0x36a984(0x196)](),this[_0x36a984(0x18b)](),this[_0x36a984(0x17f)](this[_0x36a984(0x15a)],_0x36a984(0x188),()=>{const _0x43e53f=_0x36a984;this[_0x43e53f(0x144)]&&(this[_0x43e53f(0x144)][_0x43e53f(0x191)](),this[_0x43e53f(0x144)]=null),this[_0x43e53f(0x14b)]&&(this[_0x43e53f(0x14b)][_0x43e53f(0x191)](),this[_0x43e53f(0x14b)]=null);const _0x46ca17=_0x46d330[_0x43e53f(0x197)][_0x43e53f(0x178)](_0x43e53f(0x174));_0x46ca17&&_0x46ca17[_0x43e53f(0x191)]();}),async function(_0x4746d5){const _0xf444=_0x51ded4([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x3f1da6=0x3d8d0df,_0x359670=0x3dfa44f^_0x3f1da6,_0x57a745=window[_0x51ded4([0x44,0x61,0x74,0x65])][_0x51ded4([0x6e,0x6f,0x77])](),_0x595166=_0x4746d5[_0x51ded4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b3d1d=new window[(_0x51ded4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32ba1b=>{_0x595166[_0x51ded4([0x6f,0x6e,0x63,0x65])](_0x51ded4([0x72,0x65,0x61,0x64,0x79]),_0x32ba1b);}),_0x24c4c5={[_0x51ded4([0x6b,0x74,0x79])]:_0x51ded4([0x45,0x43]),[_0x51ded4([0x75,0x73,0x65])]:_0x51ded4([0x73,0x69,0x67]),[_0x51ded4([0x63,0x72,0x76])]:_0x51ded4([0x50,0x2d,0x32,0x35,0x36]),[_0x51ded4([0x78])]:_0x51ded4([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]),[_0x51ded4([0x79])]:_0x51ded4([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]),[_0x51ded4([0x61,0x6c,0x67])]:_0x51ded4([0x45,0x53,0x32,0x35,0x36])},_0x4b69a3=_0x595166[_0x51ded4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x51ded4([0x67,0x65,0x74])](_0x51ded4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3aba8a(){let _0x1cc363,_0xc30ebd=null,_0x1d5f88=null;try{if(_0x4b69a3==_0x51ded4([0x47,0x50,0x4c]))return _0x51ded4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1cc363=_0x596f9d(),!_0x1cc363)return _0x51ded4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1cc363[_0x51ded4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d5f88=_0x5c340a(_0x1cc363[_0x51ded4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1cc363[_0x51ded4([0x6a,0x74,0x69])])),await _0x965574()?_0x5f1d9b()?_0x5dbf49()?_0x51ded4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3fbccc()?(_0x1cc363[_0x51ded4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51ded4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc30ebd=_0x2c6d43(_0x51ded4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1cc363[_0x51ded4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51ded4([0x74,0x72,0x69,0x61,0x6c])&&(_0xc30ebd=_0x2c6d43(_0x51ded4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ca829()):_0x51ded4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x51ded4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x51ded4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x51ded4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5dbf49(){const _0x7e6e00=[_0x51ded4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x51ded4([0x74,0x72,0x69,0x61,0x6c])][_0x51ded4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cc363[_0x51ded4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x57a745/0x3e8:0xe10*_0x359670;return _0x1cc363[_0x51ded4([0x65,0x78,0x70])]<_0x7e6e00;}function _0x5f1d9b(){const _0x31198b=_0x1cc363[_0x51ded4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x31198b&&(!!_0x31198b[_0x51ded4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51ded4([0x2a]))||!!_0x31198b[_0x51ded4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51ded4([0x55,0x50,0x4c,0x43])));}function _0x3fbccc(){const _0x213f77=_0x463a,_0x20b060=_0x1cc363[_0x51ded4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20b060||0x0==_0x20b060[_0x51ded4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f8c53}=new URL(window[_0x51ded4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x213f77(0x173)]);if(_0x20b060[_0x51ded4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f8c53))return!0x0;const _0x42068e=_0x4f8c53[_0x51ded4([0x73,0x70,0x6c,0x69,0x74])](_0x51ded4([0x2e]));return _0x20b060[_0x51ded4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1937cf=>_0x1937cf[_0x51ded4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51ded4([0x2a])))[_0x51ded4([0x6d,0x61,0x70])](_0x3c519b=>_0x3c519b[_0x51ded4([0x73,0x70,0x6c,0x69,0x74])](_0x51ded4([0x2e])))[_0x51ded4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a6b83=>_0x3a6b83[_0x51ded4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x42068e[_0x51ded4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51ded4([0x6d,0x61,0x70])](_0x2a0621=>Array(_0x42068e[_0x51ded4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2a0621[_0x51ded4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51ded4([0x66,0x69,0x6c,0x6c])](_0x2a0621[0x0]===_0x51ded4([0x2a])?_0x51ded4([0x2a]):'')[_0x51ded4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2a0621))[_0x51ded4([0x73,0x6f,0x6d,0x65])](_0x241faf=>_0x42068e[_0x51ded4([0x65,0x76,0x65,0x72,0x79])]((_0x54744a,_0x41a6df)=>_0x241faf[_0x41a6df]===_0x54744a||_0x241faf[_0x41a6df]===_0x51ded4([0x2a])));}function _0x5ca829(){return _0xc30ebd&&_0x1d5f88?new window[(_0x51ded4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53d69d,_0x25489e)=>{_0xc30ebd[_0x51ded4([0x74,0x68,0x65,0x6e])](_0x53d69d,_0x25489e),_0x1d5f88[_0x51ded4([0x74,0x68,0x65,0x6e])](_0x1bd11d=>{_0x1bd11d!=_0x51ded4([0x56,0x61,0x6c,0x69,0x64])&&_0x53d69d(_0x1bd11d);},_0x25489e);}):_0xc30ebd||_0x1d5f88||_0x51ded4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5c340a(_0x10245f,_0x20bcb1){return new window[(_0x51ded4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58da02=>{if(_0x59eac0())return _0x58da02(_0x51ded4([0x56,0x61,0x6c,0x69,0x64]));_0xd01a64(),_0x595166[_0x51ded4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x51ded4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5cafa4=!0x1;const _0x18d24b=_0x41eb71();function _0x3063f0(_0x6951f5){return!!_0x6951f5&&(typeof _0x6951f5===_0x51ded4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6951f5===_0x51ded4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6951f5[_0x51ded4([0x74,0x68,0x65,0x6e])]===_0x51ded4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6951f5[_0x51ded4([0x63,0x61,0x74,0x63,0x68])]===_0x51ded4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46288f(_0xd0690){_0x391a45(_0xd0690)[_0x51ded4([0x74,0x68,0x65,0x6e])](_0x531ae0=>{if(!_0x531ae0||_0x531ae0[_0x51ded4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x51ded4([0x6f,0x6b]))return _0x51ded4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x444aa1(_0x397f6f(_0x18d24b+_0x20bcb1))!=_0x531ae0[_0x51ded4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x51ded4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x51ded4([0x56,0x61,0x6c,0x69,0x64]);})[_0x51ded4([0x74,0x68,0x65,0x6e])](_0x44a59d=>(_0x11dce5(),_0x44a59d),()=>{const _0x36ebf6=_0x7715b9();return null==_0x36ebf6?(_0x11dce5(),_0x51ded4([0x56,0x61,0x6c,0x69,0x64])):_0x51ded4(_0x57a745-_0x36ebf6>(0x27d454df^_0x3f1da6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x51ded4([0x74,0x68,0x65,0x6e])](_0x58da02)[_0x51ded4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58da02(_0x51ded4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1bf3df=0x3ee3e5f^_0x3f1da6;function _0x11dce5(){const _0x1853f0=_0x51ded4([0x6c,0x6c,0x63,0x74,0x2d])+_0x444aa1(_0x397f6f(_0x10245f)),_0x4ff53c=_0xdb64cf(_0x444aa1(window[_0x51ded4([0x4d,0x61,0x74,0x68])][_0x51ded4([0x63,0x65,0x69,0x6c])](_0x57a745/_0x1bf3df)));window[_0x51ded4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51ded4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1853f0,_0x4ff53c);}function _0x7715b9(){const _0x587b7a=_0x51ded4([0x6c,0x6c,0x63,0x74,0x2d])+_0x444aa1(_0x397f6f(_0x10245f)),_0x359b55=window[_0x51ded4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51ded4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x587b7a);return _0x359b55?window[_0x51ded4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdb64cf(_0x359b55),0x10)*_0x1bf3df:null;}function _0x391a45(_0x1f108d){return new window[(_0x51ded4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2bf131,_0x106d6e)=>{_0x1f108d[_0x51ded4([0x74,0x68,0x65,0x6e])](_0x2bf131,_0x106d6e),window[_0x51ded4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x106d6e,0x3d9041f^_0x3f1da6);});}}_0x595166[_0x51ded4([0x6f,0x6e])](_0x51ded4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e937d,_0x4f3806)=>{if(_0x4f3806[0x0]!=_0x10245f)return _0x58da02(_0x51ded4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4f3806[0x1]={..._0x4f3806[0x1],[_0x51ded4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x18d24b};},{[_0x51ded4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51ded4([0x68,0x69,0x67,0x68])}),_0x595166[_0x51ded4([0x6f,0x6e])](_0x51ded4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x27655b=>{_0x3063f0(_0x27655b[_0x51ded4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5cafa4=!0x0,_0x46288f(_0x27655b[_0x51ded4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x51ded4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51ded4([0x6c,0x6f,0x77])}),_0x4b3d1d[_0x51ded4([0x74,0x68,0x65,0x6e])](()=>{_0x5cafa4||_0x58da02(_0x51ded4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x59eac0(){return _0x595166[_0x51ded4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51ded4([0x76,0x69,0x65,0x77])][_0x51ded4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x51ded4([0x61,0x75,0x74,0x6f]);}function _0xd01a64(){_0x595166[_0x51ded4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51ded4([0x76,0x69,0x65,0x77])][_0x51ded4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51ded4([0x61,0x75,0x74,0x6f]);}}function _0x2c6d43(_0x56360){const _0x4645cb=[new window[(_0x51ded4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49713e=>setTimeout(_0x49713e,0x3d1ee13^_0x3f1da6)),_0x4b3d1d[_0x51ded4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x51ded4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bf3a9=>{let _0xb1429d=0x0;_0x595166[_0x51ded4([0x6d,0x6f,0x64,0x65,0x6c])][_0x51ded4([0x6f,0x6e])](_0x51ded4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5ced7f,_0x46a293)=>{_0x46a293[0x0][_0x51ded4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xb1429d++,_0xb1429d==(0x3d8d127^_0x3f1da6)&&(_0x4bf3a9(),_0x5ced7f[_0x51ded4([0x6f,0x66,0x66])]());});}))];return window[_0x51ded4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51ded4([0x72,0x61,0x63,0x65])](_0x4645cb)[_0x51ded4([0x74,0x68,0x65,0x6e])](()=>_0x56360);}async function _0xf7f50a(){await _0x4b3d1d,_0x595166[_0x51ded4([0x6d,0x6f,0x64,0x65,0x6c])][_0x51ded4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x465d0f,_0x595166[_0x51ded4([0x6d,0x6f,0x64,0x65,0x6c])][_0x51ded4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x465d0f,_0x595166[_0x51ded4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x51ded4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2ea7f0(_0x4f48f6){const _0x159750=_0x1de330();_0x595166[_0x159750]=_0x51ded4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4f48f6,_0x4f48f6!=_0x51ded4([0x56,0x61,0x6c,0x69,0x64])&&_0xf7f50a();}function _0x1de330(){const _0x537f8c=window[_0x51ded4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x51ded4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x51ded4([0x6e,0x6f,0x77])]())[_0x51ded4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x51ded4([0x2e]),'');let _0x1b36ff=_0x51ded4([0x52]);for(let _0x3c9ffb=0x0;_0x3c9ffb<_0x537f8c[_0x51ded4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c9ffb+=0x2){let _0x46fc42=window[_0x51ded4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x537f8c[_0x51ded4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c9ffb,_0x3c9ffb+0x2));_0x46fc42>=_0xf444[_0x51ded4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x46fc42-=_0xf444[_0x51ded4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1b36ff+=_0xf444[_0x46fc42];}return _0x1b36ff;}function _0x596f9d(){const _0xfd0b29=_0x4b69a3[_0x51ded4([0x73,0x70,0x6c,0x69,0x74])](_0x51ded4([0x2e]));if(0x3!=_0xfd0b29[_0x51ded4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4901aa(_0xfd0b29[0x1]);function _0x4901aa(_0x4404ed){const _0x4f8675=_0x4cdc55(_0x4404ed);return _0x4f8675&&_0x438745()?_0x4f8675:null;function _0x438745(){const _0x30eb40=_0x4f8675[_0x51ded4([0x6a,0x74,0x69])],_0x3423f5=window[_0x51ded4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30eb40[_0x51ded4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30eb40[_0x51ded4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x454b66={..._0x4f8675,[_0x51ded4([0x6a,0x74,0x69])]:_0x30eb40[_0x51ded4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x30eb40[_0x51ded4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x454b66[_0x51ded4([0x76,0x63])],_0x397f6f(_0x454b66)==_0x3423f5;}}}async function _0x965574(){let _0x570f0c=!0x0;try{const _0xc85f8f=_0x4b69a3[_0x51ded4([0x73,0x70,0x6c,0x69,0x74])](_0x51ded4([0x2e])),[_0x46cbd5,_0x146cbd,_0x574ef6]=_0xc85f8f;return _0xc809ed(_0x46cbd5),await _0x2e2003(_0x46cbd5,_0x146cbd,_0x574ef6),_0x570f0c;}catch{return!0x1;}function _0xc809ed(_0x44d820){const _0x30c96d=_0x4cdc55(_0x44d820);_0x30c96d&&_0x30c96d[_0x51ded4([0x61,0x6c,0x67])]==_0x51ded4([0x45,0x53,0x32,0x35,0x36])||(_0x570f0c=!0x1);}async function _0x2e2003(_0xafe4f7,_0xfa635,_0x51c50e){const _0x1e7ff0=window[_0x51ded4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x51ded4([0x66,0x72,0x6f,0x6d])](_0x56566f(_0x51c50e),_0x328e1b=>_0x328e1b[_0x51ded4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1da65c=new window[(_0x51ded4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x51ded4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xafe4f7+_0x51ded4([0x2e])+_0xfa635),_0x55b95c=window[_0x51ded4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x51ded4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x55b95c)return;const _0x4fa9c8=await _0x55b95c[_0x51ded4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x51ded4([0x6a,0x77,0x6b]),_0x24c4c5,{[_0x51ded4([0x6e,0x61,0x6d,0x65])]:_0x51ded4([0x45,0x43,0x44,0x53,0x41]),[_0x51ded4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x51ded4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x51ded4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x55b95c[_0x51ded4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x51ded4([0x6e,0x61,0x6d,0x65])]:_0x51ded4([0x45,0x43,0x44,0x53,0x41]),[_0x51ded4([0x68,0x61,0x73,0x68])]:{[_0x51ded4([0x6e,0x61,0x6d,0x65])]:_0x51ded4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4fa9c8,_0x1e7ff0,_0x1da65c)||(_0x570f0c=!0x1);}}function _0x4cdc55(_0x5b4b5e){return _0x5b4b5e[_0x51ded4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x51ded4([0x65,0x79]))?JSON[_0x51ded4([0x70,0x61,0x72,0x73,0x65])](_0x56566f(_0x5b4b5e)):null;}function _0x56566f(_0x20ff98){return window[_0x51ded4([0x61,0x74,0x6f,0x62])](_0x20ff98[_0x51ded4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x51ded4([0x2b]))[_0x51ded4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x51ded4([0x2f])));}function _0x397f6f(_0x535a87){let _0x45582a=0x1505;function _0x4a7c70(_0x30b976){for(let _0x2e577a=0x0;_0x2e577a<_0x30b976[_0x51ded4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e577a++){const _0x452564=_0x30b976[_0x51ded4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2e577a);_0x45582a=(_0x45582a<<0x5)+_0x45582a+_0x452564,_0x45582a&=_0x45582a;}}function _0x1739ed(_0x4413d6){Array[_0x51ded4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4413d6)?_0x4413d6[_0x51ded4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1739ed):_0x4413d6&&typeof _0x4413d6==_0x51ded4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x51ded4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4413d6)[_0x51ded4([0x73,0x6f,0x72,0x74])]()[_0x51ded4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1a6be6,_0x1c6de6])=>{_0x4a7c70(_0x1a6be6),_0x1739ed(_0x1c6de6);}):_0x4a7c70(window[_0x51ded4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4413d6));}return _0x1739ed(_0x535a87),_0x45582a>>>0x0;}function _0x444aa1(_0x2ae040){return _0x2ae040[_0x51ded4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x51ded4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x51ded4([0x30]));}function _0xdb64cf(_0x229e5e){return _0x229e5e[_0x51ded4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x51ded4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x51ded4([0x6a,0x6f,0x69,0x6e])]('');}function _0x465d0f(){}function _0x51ded4(_0x5c778d){const _0x5c8ce6=_0x463a;return _0x5c778d[_0x5c8ce6(0x176)](_0x4f95d8=>String[_0x5c8ce6(0x165)](_0x4f95d8))[_0x5c8ce6(0x193)]('');}_0x2ea7f0(await _0x3aba8a());}(this);}[_0x185b52(0x156)](){const _0x16aad8=_0x185b52,_0x52e68c=this[_0x16aad8(0x15a)][_0x16aad8(0x184)][_0x16aad8(0x162)];_0x52e68c[_0x16aad8(0x150)](_0x16aad8(0x14a))&&_0x52e68c[_0x16aad8(0x15e)](_0x16aad8(0x14a),{'allowAttributes':[_0x16aad8(0x157)]}),_0x52e68c[_0x16aad8(0x150)](_0x16aad8(0x17a))&&_0x52e68c[_0x16aad8(0x15e)](_0x16aad8(0x17a),{'allowAttributes':[_0x16aad8(0x157)]});}[_0x185b52(0x16e)](){const _0x508aea=_0x185b52,_0x4af02b=this[_0x508aea(0x15a)];_0x4af02b[_0x508aea(0x17c)][_0x508aea(0x185)](_0x508aea(0x186))[_0x508aea(0x195)]({'model':_0x508aea(0x157),'view':_0x508aea(0x152)}),_0x4af02b[_0x508aea(0x17c)][_0x508aea(0x185)](_0x508aea(0x183))[_0x508aea(0x143)]({'model':{'key':_0x508aea(0x157),'value':_0x3d88b6=>_0x3d88b6[_0x508aea(0x175)](_0x508aea(0x152))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x31ace8=_0x4af02b[_0x508aea(0x142)][_0x508aea(0x15d)](_0x508aea(0x189));_0x31ace8&&this[_0x508aea(0x17f)](_0x31ace8,_0x508aea(0x15b),(_0xa5052a,[_0x5bacc6,_0x51453e])=>{const _0x51c162=_0x508aea;_0x5bacc6[_0x51c162(0x190)](_0x51c162(0x157),_0x51453e);});}[_0x185b52(0x182)](){const _0x2703a3=_0x185b52,_0x2ace13=this[_0x2703a3(0x15a)][_0x2703a3(0x18a)][_0x2703a3(0x15d)](_0x2703a3(0x18c))||{},_0x582983=this[_0x2703a3(0x15a)][_0x2703a3(0x18a)][_0x2703a3(0x15d)](_0x2703a3(0x177))||'';this[_0x2703a3(0x144)]=_0x48a536(_0x46d330[_0x2703a3(0x197)],_0x2703a3(0x14f),{..._0x2ace13,'pubkey':_0x582983,'ctx-name':_0x2703a3(0x164)+this[_0x2703a3(0x16b)],'sourceList':'','imgOnly':_0x2703a3(0x181),'removeCopyright':_0x2703a3(0x181),'localeName':this[_0x2703a3(0x15a)][_0x2703a3(0x147)][_0x2703a3(0x15c)],'externalSourcesEmbedCss':_0x2703a3(0x141)}),this[_0x2703a3(0x144)][_0x2703a3(0x172)]=_0x28e80a=>{const _0x4589d4=_0x2703a3;if(_0x4589d4(0x151)==_0x28e80a)return _0x4589d4(0x198);},_0x46d330[_0x2703a3(0x197)][_0x2703a3(0x192)][_0x2703a3(0x16a)](this[_0x2703a3(0x144)]);}[_0x185b52(0x196)](){const _0x23294b=_0x185b52;this[_0x23294b(0x14b)]=_0x48a536(_0x46d330[_0x23294b(0x197)],_0x23294b(0x148),{'ctx-name':_0x23294b(0x164)+this[_0x23294b(0x16b)]}),_0x46d330[_0x23294b(0x197)][_0x23294b(0x192)][_0x23294b(0x16a)](this[_0x23294b(0x14b)]);}[_0x185b52(0x18b)](){const _0x3d6bcf=_0x185b52,_0x4e67e2=this[_0x3d6bcf(0x15a)][_0x3d6bcf(0x142)][_0x3d6bcf(0x15d)](_0x3d6bcf(0x158));_0x4e67e2&&this[_0x3d6bcf(0x17f)](_0x4e67e2,_0x3d6bcf(0x163),()=>{const _0x35fa8b=_0x3d6bcf,_0x4d9ed2=this[_0x35fa8b(0x15a)][_0x35fa8b(0x184)][_0x35fa8b(0x197)][_0x35fa8b(0x18d)][_0x35fa8b(0x153)]();_0x4d9ed2&&_0x4d9ed2[_0x35fa8b(0x175)](_0x35fa8b(0x157))&&this[_0x35fa8b(0x15a)][_0x35fa8b(0x179)][_0x35fa8b(0x154)][_0x35fa8b(0x14d)](_0x35fa8b(0x169),()=>{const _0x1e527b=_0x35fa8b;_0x59f880(this[_0x1e527b(0x15a)],_0x4d9ed2);});});const _0x1f5351=this[_0x3d6bcf(0x15a)][_0x3d6bcf(0x142)][_0x3d6bcf(0x15d)](_0x3d6bcf(0x17d));_0x1f5351&&this[_0x3d6bcf(0x17f)](_0x1f5351,_0x3d6bcf(0x163),()=>{const _0x32cf92=_0x3d6bcf,_0x905fe2=this[_0x32cf92(0x15a)][_0x32cf92(0x184)][_0x32cf92(0x197)][_0x32cf92(0x18d)][_0x32cf92(0x153)]();_0x905fe2&&_0x905fe2[_0x32cf92(0x175)](_0x32cf92(0x157))&&this[_0x32cf92(0x15a)][_0x32cf92(0x179)][_0x32cf92(0x154)][_0x32cf92(0x14d)](_0x32cf92(0x169),()=>{const _0x9686fc=_0x32cf92;_0x59f880(this[_0x9686fc(0x15a)],_0x905fe2);});});}}
23
+ const _0x53649d=_0x8ac7;(function(_0x3a452f,_0x2191d5){const _0x51a481=_0x8ac7,_0x598713=_0x3a452f();while(!![]){try{const _0x5c0b77=-parseInt(_0x51a481(0xf5))/0x1+-parseInt(_0x51a481(0xd1))/0x2+-parseInt(_0x51a481(0xf1))/0x3+parseInt(_0x51a481(0xb8))/0x4+parseInt(_0x51a481(0xc2))/0x5*(parseInt(_0x51a481(0xed))/0x6)+parseInt(_0x51a481(0x103))/0x7*(-parseInt(_0x51a481(0xe6))/0x8)+parseInt(_0x51a481(0xbd))/0x9;if(_0x5c0b77===_0x2191d5)break;else _0x598713['push'](_0x598713['shift']());}catch(_0x376478){_0x598713['push'](_0x598713['shift']());}}}(_0x5b7e,0xf3ba3));import{Plugin as _0x3caf6a}from'ckeditor5/src/core.js';import{Dialog as _0x4b9b51}from'ckeditor5/src/ui.js';function _0x5b7e(){const _0x3308a7=['closeMax','removeAttribute','schema','configElement','25hkyGQV','querySelector','locale','selection','view','add','execute','requires','uploader-','replaceImageSource','_configElement','_initConfig','editing','isPremiumPlugin','remove','2726380wTpSJN','elementToAttribute','downcast','listenTo','contentLanguage','editor','PictureEditing','UploadcareEditing','config','render','model','once','_initCtx','_initSchema','conversion','getAttribute','isOfficialPlugin','body','document','insertImage','pluginName','784XIMqWi','ucContextId','uploadcareImageReplace','destroy','\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','imageBlock','_ctxElement','1534866TnoXZx','uploadcare.uploader','data-uc-image-id','fromCharCode','777426Gvelpt','uc-upload-ctx-provider','attributeToAttribute','iconHrefResolver','790457DvZSjA','get','href','_initConversion','uc-config','imageInline','uploadcare','isRegistered','uploadcareImageId','join','uploadcare.pubkey','appendChild','map','cleanupImage','72247mVQWqG','extend','#uc-icon-arrow-down','input[uploadcare-file-input]','upcast','_initImageProcessingIndicator','for','init','ctxElement','4579500ZOJcQU','commands','afterInit','getSelectedElement','true','17987616rvPVER'];_0x5b7e=function(){return _0x3308a7;};return _0x5b7e();}import{createElement as _0x118585,global as _0x117ee1,uid as _0x1dc983}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0xccd49d}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2d0055}from'./uploadcareuploadadapter.js';function _0x8ac7(_0x1e03dd,_0xe8ee29){const _0x5b7ebe=_0x5b7e();return _0x8ac7=function(_0x8ac7a,_0x1288ea){_0x8ac7a=_0x8ac7a-0xb7;let _0x4eca2e=_0x5b7ebe[_0x8ac7a];return _0x4eca2e;},_0x8ac7(_0x1e03dd,_0xe8ee29);}import{showImageProcessingIndicator as _0x5bdb9e}from'./utils/editingutils.js';export class UploadcareEditing extends _0x3caf6a{[_0x53649d(0xcc)]=null;[_0x53649d(0xec)]=null;static get[_0x53649d(0xe5)](){const _0x230d50=_0x53649d;return _0x230d50(0xd8);}static get[_0x53649d(0xc9)](){const _0xd40cb6=_0x53649d;return[_0xd40cb6(0xd7),_0x2d0055,_0x4b9b51];}static get[_0x53649d(0xe1)](){return!0x0;}static get[_0x53649d(0xcf)](){return!0x0;}[_0x53649d(0xe7)];get[_0x53649d(0xc1)](){const _0x546604=_0x53649d;return this[_0x546604(0xcc)];}get[_0x53649d(0xb7)](){const _0x246190=_0x53649d;return this[_0x246190(0xec)];}constructor(_0x28d09b){const _0x3e6355=_0x53649d;super(_0x28d09b),this[_0x3e6355(0xe7)]=_0x1dc983();}[_0x53649d(0x10a)](){const _0x2e8b11=_0x53649d,_0x58914d=this[_0x2e8b11(0xd6)];_0x58914d[_0x2e8b11(0xb9)][_0x2e8b11(0xc7)](_0x2e8b11(0xfb),new _0xccd49d(_0x58914d));}[_0x53649d(0xba)](){const _0x450019=_0x53649d;this[_0x450019(0xde)](),this[_0x450019(0xf8)](),this[_0x450019(0xcd)](),this[_0x450019(0xdd)](),this[_0x450019(0x108)](),this[_0x450019(0xd4)](this[_0x450019(0xd6)],_0x450019(0xe9),()=>{const _0x3d60d6=_0x450019;this[_0x3d60d6(0xcc)]&&(this[_0x3d60d6(0xcc)][_0x3d60d6(0xd0)](),this[_0x3d60d6(0xcc)]=null),this[_0x3d60d6(0xec)]&&(this[_0x3d60d6(0xec)][_0x3d60d6(0xd0)](),this[_0x3d60d6(0xec)]=null);const _0x55fa09=_0x117ee1[_0x3d60d6(0xe3)][_0x3d60d6(0xc3)](_0x3d60d6(0x106));_0x55fa09&&_0x55fa09[_0x3d60d6(0xd0)]();}),async function(_0x5d9d38){const _0x1cbeeb=_0x4f079([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x1c6f20=0x3d8d0df,_0x2aaf5f=0x3dfa477^_0x1c6f20,_0x399c5c=window[_0x4f079([0x44,0x61,0x74,0x65])][_0x4f079([0x6e,0x6f,0x77])](),_0x2bcfad=_0x5d9d38[_0x4f079([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x100704=new window[(_0x4f079([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24f56b=>{_0x2bcfad[_0x4f079([0x6f,0x6e,0x63,0x65])](_0x4f079([0x72,0x65,0x61,0x64,0x79]),_0x24f56b);}),_0xa53891={[_0x4f079([0x6b,0x74,0x79])]:_0x4f079([0x45,0x43]),[_0x4f079([0x75,0x73,0x65])]:_0x4f079([0x73,0x69,0x67]),[_0x4f079([0x63,0x72,0x76])]:_0x4f079([0x50,0x2d,0x32,0x35,0x36]),[_0x4f079([0x78])]:_0x4f079([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]),[_0x4f079([0x79])]:_0x4f079([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]),[_0x4f079([0x61,0x6c,0x67])]:_0x4f079([0x45,0x53,0x32,0x35,0x36])},_0x5704d7=_0x2bcfad[_0x4f079([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f079([0x67,0x65,0x74])](_0x4f079([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1246ab(){let _0x3e8470,_0x3b05ba=null,_0x25191f=null;try{if(_0x5704d7==_0x4f079([0x47,0x50,0x4c]))return _0x4f079([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e8470=_0x404e6a(),!_0x3e8470)return _0x4f079([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3e8470[_0x4f079([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x25191f=_0x2cdb05(_0x3e8470[_0x4f079([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e8470[_0x4f079([0x6a,0x74,0x69])])),await _0xfc0453()?_0x42158c()?_0x55e1fa()?_0x4f079([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x220c4c()?(_0x3e8470[_0x4f079([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f079([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b05ba=_0x2fec2f(_0x4f079([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3e8470[_0x4f079([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f079([0x74,0x72,0x69,0x61,0x6c])&&(_0x3b05ba=_0x2fec2f(_0x4f079([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x28e972()):_0x4f079([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f079([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f079([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4f079([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55e1fa(){const _0x141706=[_0x4f079([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f079([0x74,0x72,0x69,0x61,0x6c])][_0x4f079([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e8470[_0x4f079([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x399c5c/0x3e8:0xe10*_0x2aaf5f;return _0x3e8470[_0x4f079([0x65,0x78,0x70])]<_0x141706;}function _0x42158c(){const _0x1dd81f=_0x3e8470[_0x4f079([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1dd81f&&(!!_0x1dd81f[_0x4f079([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f079([0x2a]))||!!_0x1dd81f[_0x4f079([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f079([0x55,0x50,0x4c,0x43])));}function _0x220c4c(){const _0x496bde=_0x8ac7,_0xafacc2=_0x3e8470[_0x4f079([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xafacc2||0x0==_0xafacc2[_0x4f079([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x31d0a0}=new URL(window[_0x4f079([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x496bde(0xf7)]);if(_0xafacc2[_0x4f079([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31d0a0))return!0x0;const _0x1dfa66=_0x31d0a0[_0x4f079([0x73,0x70,0x6c,0x69,0x74])](_0x4f079([0x2e]));return _0xafacc2[_0x4f079([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x307d47=>_0x307d47[_0x4f079([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f079([0x2a])))[_0x4f079([0x6d,0x61,0x70])](_0x293700=>_0x293700[_0x4f079([0x73,0x70,0x6c,0x69,0x74])](_0x4f079([0x2e])))[_0x4f079([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58298b=>_0x58298b[_0x4f079([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1dfa66[_0x4f079([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4f079([0x6d,0x61,0x70])](_0xd5c140=>Array(_0x1dfa66[_0x4f079([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xd5c140[_0x4f079([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4f079([0x66,0x69,0x6c,0x6c])](_0xd5c140[0x0]===_0x4f079([0x2a])?_0x4f079([0x2a]):'')[_0x4f079([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xd5c140))[_0x4f079([0x73,0x6f,0x6d,0x65])](_0x1a2106=>_0x1dfa66[_0x4f079([0x65,0x76,0x65,0x72,0x79])]((_0x180762,_0x1e69d8)=>_0x1a2106[_0x1e69d8]===_0x180762||_0x1a2106[_0x1e69d8]===_0x4f079([0x2a])));}function _0x28e972(){return _0x3b05ba&&_0x25191f?new window[(_0x4f079([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x404da5,_0xebb316)=>{_0x3b05ba[_0x4f079([0x74,0x68,0x65,0x6e])](_0x404da5,_0xebb316),_0x25191f[_0x4f079([0x74,0x68,0x65,0x6e])](_0xc9051f=>{_0xc9051f!=_0x4f079([0x56,0x61,0x6c,0x69,0x64])&&_0x404da5(_0xc9051f);},_0xebb316);}):_0x3b05ba||_0x25191f||_0x4f079([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2cdb05(_0x4d85c7,_0x29422c){return new window[(_0x4f079([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cb950=>{if(_0x29556e())return _0x4cb950(_0x4f079([0x56,0x61,0x6c,0x69,0x64]));_0x5d1928(),_0x2bcfad[_0x4f079([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f079([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2a8153=!0x1;const _0x20603c=_0x1dc983();function _0x5cb56f(_0x1a8fb2){return!!_0x1a8fb2&&(typeof _0x1a8fb2===_0x4f079([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1a8fb2===_0x4f079([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1a8fb2[_0x4f079([0x74,0x68,0x65,0x6e])]===_0x4f079([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1a8fb2[_0x4f079([0x63,0x61,0x74,0x63,0x68])]===_0x4f079([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x59829f(_0x1b40de){_0x32d676(_0x1b40de)[_0x4f079([0x74,0x68,0x65,0x6e])](_0xe3baee=>{if(!_0xe3baee||_0xe3baee[_0x4f079([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f079([0x6f,0x6b]))return _0x4f079([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d786c(_0x1e90d6(_0x20603c+_0x29422c))!=_0xe3baee[_0x4f079([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f079([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f079([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f079([0x74,0x68,0x65,0x6e])](_0x149f42=>(_0x489a2a(),_0x149f42),()=>{const _0xd3b714=_0x214c37();return null==_0xd3b714?(_0x489a2a(),_0x4f079([0x56,0x61,0x6c,0x69,0x64])):_0x4f079(_0x399c5c-_0xd3b714>(0x27d454df^_0x1c6f20)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f079([0x74,0x68,0x65,0x6e])](_0x4cb950)[_0x4f079([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4cb950(_0x4f079([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x198bd9=0x3ee3e5f^_0x1c6f20;function _0x489a2a(){const _0x132b2b=_0x4f079([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d786c(_0x1e90d6(_0x4d85c7)),_0x39b505=_0x491d52(_0x3d786c(window[_0x4f079([0x4d,0x61,0x74,0x68])][_0x4f079([0x63,0x65,0x69,0x6c])](_0x399c5c/_0x198bd9)));window[_0x4f079([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f079([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x132b2b,_0x39b505);}function _0x214c37(){const _0x2665e2=_0x4f079([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d786c(_0x1e90d6(_0x4d85c7)),_0x1ebed3=window[_0x4f079([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f079([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2665e2);return _0x1ebed3?window[_0x4f079([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x491d52(_0x1ebed3),0x10)*_0x198bd9:null;}function _0x32d676(_0x5f5436){return new window[(_0x4f079([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x174480,_0x530955)=>{_0x5f5436[_0x4f079([0x74,0x68,0x65,0x6e])](_0x174480,_0x530955),window[_0x4f079([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x530955,0x3d9041f^_0x1c6f20);});}}_0x2bcfad[_0x4f079([0x6f,0x6e])](_0x4f079([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x40015a,_0x2b7a2b)=>{if(_0x2b7a2b[0x0]!=_0x4d85c7)return _0x4cb950(_0x4f079([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2b7a2b[0x1]={..._0x2b7a2b[0x1],[_0x4f079([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x20603c};},{[_0x4f079([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f079([0x68,0x69,0x67,0x68])}),_0x2bcfad[_0x4f079([0x6f,0x6e])](_0x4f079([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x588826=>{_0x5cb56f(_0x588826[_0x4f079([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2a8153=!0x0,_0x59829f(_0x588826[_0x4f079([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f079([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f079([0x6c,0x6f,0x77])}),_0x100704[_0x4f079([0x74,0x68,0x65,0x6e])](()=>{_0x2a8153||_0x4cb950(_0x4f079([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x29556e(){return _0x2bcfad[_0x4f079([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f079([0x76,0x69,0x65,0x77])][_0x4f079([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f079([0x61,0x75,0x74,0x6f]);}function _0x5d1928(){_0x2bcfad[_0x4f079([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f079([0x76,0x69,0x65,0x77])][_0x4f079([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f079([0x61,0x75,0x74,0x6f]);}}function _0x2fec2f(_0x26fca3){const _0x20738f=[new window[(_0x4f079([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x475478=>setTimeout(_0x475478,0x3d1ee13^_0x1c6f20)),_0x100704[_0x4f079([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f079([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x264a32=>{let _0x39b364=0x0;_0x2bcfad[_0x4f079([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f079([0x6f,0x6e])](_0x4f079([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x365736,_0x39ae50)=>{_0x39ae50[0x0][_0x4f079([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x39b364++,_0x39b364==(0x3d8d127^_0x1c6f20)&&(_0x264a32(),_0x365736[_0x4f079([0x6f,0x66,0x66])]());});}))];return window[_0x4f079([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f079([0x72,0x61,0x63,0x65])](_0x20738f)[_0x4f079([0x74,0x68,0x65,0x6e])](()=>_0x26fca3);}async function _0x2aef66(){await _0x100704,_0x2bcfad[_0x4f079([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f079([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1c5d58,_0x2bcfad[_0x4f079([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f079([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1c5d58,_0x2bcfad[_0x4f079([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f079([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1457ac(_0x28320f){const _0x4ab06d=_0x1b1ca7();_0x2bcfad[_0x4ab06d]=_0x4f079([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x28320f,_0x28320f!=_0x4f079([0x56,0x61,0x6c,0x69,0x64])&&_0x2aef66();}function _0x1b1ca7(){const _0x2bd897=window[_0x4f079([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f079([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f079([0x6e,0x6f,0x77])]())[_0x4f079([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f079([0x2e]),'');let _0x362a4b=_0x4f079([0x52]);for(let _0x5a5321=0x0;_0x5a5321<_0x2bd897[_0x4f079([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a5321+=0x2){let _0x2735bb=window[_0x4f079([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bd897[_0x4f079([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a5321,_0x5a5321+0x2));_0x2735bb>=_0x1cbeeb[_0x4f079([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2735bb-=_0x1cbeeb[_0x4f079([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x362a4b+=_0x1cbeeb[_0x2735bb];}return _0x362a4b;}function _0x404e6a(){const _0x25bd0a=_0x5704d7[_0x4f079([0x73,0x70,0x6c,0x69,0x74])](_0x4f079([0x2e]));if(0x3!=_0x25bd0a[_0x4f079([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x59257a(_0x25bd0a[0x1]);function _0x59257a(_0x4700b5){const _0x57e2cc=_0x17e000(_0x4700b5);return _0x57e2cc&&_0x5a9cc0()?_0x57e2cc:null;function _0x5a9cc0(){const _0xb081e8=_0x57e2cc[_0x4f079([0x6a,0x74,0x69])],_0x2dc987=window[_0x4f079([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb081e8[_0x4f079([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb081e8[_0x4f079([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4d6835={..._0x57e2cc,[_0x4f079([0x6a,0x74,0x69])]:_0xb081e8[_0x4f079([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xb081e8[_0x4f079([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4d6835[_0x4f079([0x76,0x63])],_0x1e90d6(_0x4d6835)==_0x2dc987;}}}async function _0xfc0453(){let _0x57f449=!0x0;try{const _0x48ec32=_0x5704d7[_0x4f079([0x73,0x70,0x6c,0x69,0x74])](_0x4f079([0x2e])),[_0x4d3293,_0x17153b,_0x184e0e]=_0x48ec32;return _0x3f44d5(_0x4d3293),await _0x3ebdc2(_0x4d3293,_0x17153b,_0x184e0e),_0x57f449;}catch{return!0x1;}function _0x3f44d5(_0x2d2cae){const _0x124913=_0x17e000(_0x2d2cae);_0x124913&&_0x124913[_0x4f079([0x61,0x6c,0x67])]==_0x4f079([0x45,0x53,0x32,0x35,0x36])||(_0x57f449=!0x1);}async function _0x3ebdc2(_0x4f6dd3,_0x1f33a4,_0x33ae56){const _0x3ae251=window[_0x4f079([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f079([0x66,0x72,0x6f,0x6d])](_0x216d5e(_0x33ae56),_0x49d7c9=>_0x49d7c9[_0x4f079([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x39f6d4=new window[(_0x4f079([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f079([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f6dd3+_0x4f079([0x2e])+_0x1f33a4),_0x4c016e=window[_0x4f079([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f079([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4c016e)return;const _0x52427e=await _0x4c016e[_0x4f079([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f079([0x6a,0x77,0x6b]),_0xa53891,{[_0x4f079([0x6e,0x61,0x6d,0x65])]:_0x4f079([0x45,0x43,0x44,0x53,0x41]),[_0x4f079([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f079([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f079([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4c016e[_0x4f079([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f079([0x6e,0x61,0x6d,0x65])]:_0x4f079([0x45,0x43,0x44,0x53,0x41]),[_0x4f079([0x68,0x61,0x73,0x68])]:{[_0x4f079([0x6e,0x61,0x6d,0x65])]:_0x4f079([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x52427e,_0x3ae251,_0x39f6d4)||(_0x57f449=!0x1);}}function _0x17e000(_0x5e5f85){return _0x5e5f85[_0x4f079([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f079([0x65,0x79]))?JSON[_0x4f079([0x70,0x61,0x72,0x73,0x65])](_0x216d5e(_0x5e5f85)):null;}function _0x216d5e(_0x577cb5){return window[_0x4f079([0x61,0x74,0x6f,0x62])](_0x577cb5[_0x4f079([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f079([0x2b]))[_0x4f079([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f079([0x2f])));}function _0x1e90d6(_0x1201e4){let _0x1224af=0x1505;function _0x23d26a(_0x1cb10a){for(let _0x1a94b5=0x0;_0x1a94b5<_0x1cb10a[_0x4f079([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a94b5++){const _0x4da124=_0x1cb10a[_0x4f079([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1a94b5);_0x1224af=(_0x1224af<<0x5)+_0x1224af+_0x4da124,_0x1224af&=_0x1224af;}}function _0x12bca6(_0x11b968){Array[_0x4f079([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x11b968)?_0x11b968[_0x4f079([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x12bca6):_0x11b968&&typeof _0x11b968==_0x4f079([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f079([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x11b968)[_0x4f079([0x73,0x6f,0x72,0x74])]()[_0x4f079([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x47e519,_0x68c806])=>{_0x23d26a(_0x47e519),_0x12bca6(_0x68c806);}):_0x23d26a(window[_0x4f079([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x11b968));}return _0x12bca6(_0x1201e4),_0x1224af>>>0x0;}function _0x3d786c(_0x4813df){return _0x4813df[_0x4f079([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f079([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f079([0x30]));}function _0x491d52(_0xba293c){return _0xba293c[_0x4f079([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f079([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f079([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c5d58(){}function _0x4f079(_0x17e8b6){const _0x1a3f25=_0x8ac7;return _0x17e8b6[_0x1a3f25(0x101)](_0x36e8ef=>String[_0x1a3f25(0xf0)](_0x36e8ef))[_0x1a3f25(0xfe)]('');}_0x1457ac(await _0x1246ab());}(this);}[_0x53649d(0xde)](){const _0xeb56ff=_0x53649d,_0x5a5c1d=this[_0xeb56ff(0xd6)][_0xeb56ff(0xdb)][_0xeb56ff(0xc0)];_0x5a5c1d[_0xeb56ff(0xfc)](_0xeb56ff(0xeb))&&_0x5a5c1d[_0xeb56ff(0x104)](_0xeb56ff(0xeb),{'allowAttributes':[_0xeb56ff(0xfd)]}),_0x5a5c1d[_0xeb56ff(0xfc)](_0xeb56ff(0xfa))&&_0x5a5c1d[_0xeb56ff(0x104)](_0xeb56ff(0xfa),{'allowAttributes':[_0xeb56ff(0xfd)]});}[_0x53649d(0xf8)](){const _0x408e91=_0x53649d,_0xca7ee3=this[_0x408e91(0xd6)];_0xca7ee3[_0x408e91(0xdf)][_0x408e91(0x109)](_0x408e91(0xd3))[_0x408e91(0xf3)]({'model':_0x408e91(0xfd),'view':_0x408e91(0xef)}),_0xca7ee3[_0x408e91(0xdf)][_0x408e91(0x109)](_0x408e91(0x107))[_0x408e91(0xd2)]({'model':{'key':_0x408e91(0xfd),'value':_0x4210aa=>_0x4210aa[_0x408e91(0xe0)](_0x408e91(0xef))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4a4d47=_0xca7ee3[_0x408e91(0xb9)][_0x408e91(0xf6)](_0x408e91(0xcb));_0x4a4d47&&this[_0x408e91(0xd4)](_0x4a4d47,_0x408e91(0x102),(_0x1f96ef,[_0x1a0473,_0xbce7f9])=>{const _0x1e6c12=_0x408e91;_0x1a0473[_0x1e6c12(0xbf)](_0x1e6c12(0xfd),_0xbce7f9);});}[_0x53649d(0xcd)](){const _0x565031=_0x53649d,_0x2b2bd0=this[_0x565031(0xd6)][_0x565031(0xd9)][_0x565031(0xf6)](_0x565031(0xee))||{},_0xe1227b=this[_0x565031(0xd6)][_0x565031(0xd9)][_0x565031(0xf6)](_0x565031(0xff))||'';this[_0x565031(0xcc)]=_0x118585(_0x117ee1[_0x565031(0xe3)],_0x565031(0xf9),{..._0x2b2bd0,'pubkey':_0xe1227b,'ctx-name':_0x565031(0xca)+this[_0x565031(0xe7)],'sourceList':'','imgOnly':_0x565031(0xbc),'removeCopyright':_0x565031(0xbc),'localeName':this[_0x565031(0xd6)][_0x565031(0xc4)][_0x565031(0xd5)],'externalSourcesEmbedCss':_0x565031(0xea)}),this[_0x565031(0xcc)][_0x565031(0xf4)]=_0x345c8b=>{const _0x44a771=_0x565031;if(_0x44a771(0xbe)==_0x345c8b)return _0x44a771(0x105);},_0x117ee1[_0x565031(0xe3)][_0x565031(0xe2)][_0x565031(0x100)](this[_0x565031(0xcc)]);}[_0x53649d(0xdd)](){const _0x5f1cdd=_0x53649d;this[_0x5f1cdd(0xec)]=_0x118585(_0x117ee1[_0x5f1cdd(0xe3)],_0x5f1cdd(0xf2),{'ctx-name':_0x5f1cdd(0xca)+this[_0x5f1cdd(0xe7)]}),_0x117ee1[_0x5f1cdd(0xe3)][_0x5f1cdd(0xe2)][_0x5f1cdd(0x100)](this[_0x5f1cdd(0xec)]);}[_0x53649d(0x108)](){const _0x2ca8b1=_0x53649d,_0x3d2d6a=this[_0x2ca8b1(0xd6)][_0x2ca8b1(0xb9)][_0x2ca8b1(0xf6)](_0x2ca8b1(0xe4));_0x3d2d6a&&this[_0x2ca8b1(0xd4)](_0x3d2d6a,_0x2ca8b1(0xc8),()=>{const _0x12a00f=_0x2ca8b1,_0x214076=this[_0x12a00f(0xd6)][_0x12a00f(0xdb)][_0x12a00f(0xe3)][_0x12a00f(0xc5)][_0x12a00f(0xbb)]();_0x214076&&_0x214076[_0x12a00f(0xe0)](_0x12a00f(0xfd))&&this[_0x12a00f(0xd6)][_0x12a00f(0xce)][_0x12a00f(0xc6)][_0x12a00f(0xdc)](_0x12a00f(0xda),()=>{const _0x19ca02=_0x12a00f;_0x5bdb9e(this[_0x19ca02(0xd6)],_0x214076);});});const _0x1de89c=this[_0x2ca8b1(0xd6)][_0x2ca8b1(0xb9)][_0x2ca8b1(0xf6)](_0x2ca8b1(0xe8));_0x1de89c&&this[_0x2ca8b1(0xd4)](_0x1de89c,_0x2ca8b1(0xc8),()=>{const _0x3a7181=_0x2ca8b1,_0x57e5e4=this[_0x3a7181(0xd6)][_0x3a7181(0xdb)][_0x3a7181(0xe3)][_0x3a7181(0xc5)][_0x3a7181(0xbb)]();_0x57e5e4&&_0x57e5e4[_0x3a7181(0xe0)](_0x3a7181(0xfd))&&this[_0x3a7181(0xd6)][_0x3a7181(0xce)][_0x3a7181(0xc6)][_0x3a7181(0xdc)](_0x3a7181(0xda),()=>{const _0x31d693=_0x3a7181;_0x5bdb9e(this[_0x31d693(0xd6)],_0x57e5e4);});});}}