@ckeditor/ckeditor5-uploadcare 46.1.1-alpha.1 → 46.1.1-alpha.2
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/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/uploadcareediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x3c8b09,Command as _0x1e9b14}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x273e46,IconGooglePhotos as _0x4f76ce,IconGoogleDrive as _0x159e21,IconFacebook as _0x3bab91,IconDropbox as _0xf90335,IconUploadcareLink as _0x4ce268,IconUploadcareImageUpload as _0x82e1d0,IconError as _0x5cfd40,IconUploadcareImageEdit as _0x1e534e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x31ddd8,MenuBarMenuListItemButtonView as _0x3ed39f,View as _0x393d6c,FocusCycler as _0x55b923,Dialog as _0x563fe3,DialogViewPosition as _0xd31937,SpinnerView as _0x53c3b2,IconView as _0x5baf03,Notification as _0x2f4c69}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x943f1c,DomEmitterMixin as _0x2fb6b0,global as _0x7d8c4c,getAncestors as _0x17466b,ObservableMixin as _0x4c7309,uid as _0x103d12,createElement as _0x2bff64}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3cfb53}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x55bd5e,info as _0x31f98e}from'@uploadcare/upload-client';import*as _0x12dac6 from'@uploadcare/file-uploader';var i=function(_0x5df952){return _0x5df952['Local']='local',_0x5df952['URL']='url',_0x5df952['Dropbox']='dropbox',_0x5df952['GDrive']='gdrive',_0x5df952['Facebook']='facebook',_0x5df952['GPhotos']='gphotos',_0x5df952['OneDrive']='onedrive',_0x5df952;}({});function _(_0x84d70a,_0x35fb3f,_0x44e43b){const t=_0x84d70a['t'],_0xfd31f9=_0x84d70a['t'];switch(_0x35fb3f){case i['Local']:return{'text':_0xfd31f9('Insert'===_0x44e43b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xfd31f9('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x44e43b?_0xfd31f9('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xfd31f9('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x44e43b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x44e43b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x44e43b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x44e43b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x44e43b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x35fb3f;}}class e extends _0x3c8b09{['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 _0x2e98b0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x566275;for(const _0x344e14 in _0x2e98b0){const _0x5635e6=_0x344e14,_0x411a67=_0x2e98b0[_0x5635e6];if('uploadcareLicenseKeyValid'==_0x411a67||'uploadcareLicenseKeyInvalid'==_0x411a67||'uploadcareLicenseKeyExpired'==_0x411a67||'uploadcareLicenseKeyDomainLimit'==_0x411a67||'uploadcareLicenseKeyNotAllowed'==_0x411a67||'uploadcareLicenseKeyEvaluationLimit'==_0x411a67||'uploadcareLicenseKeyTrialLimit'==_0x411a67||'uploadcareLicenseKeyUsageLimit'==_0x411a67){delete _0x2e98b0[_0x5635e6],_0x566275=_0x411a67,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x566275&&_0x2e98b0['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x566275&&_0x2e98b0['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x566275&&_0x2e98b0['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x566275&&_0x2e98b0['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x566275&&_0x2e98b0['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x566275&&_0x2e98b0['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x566275&&_0x2e98b0['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1740ae}=this,_0x49a05a=_0x1740ae['commands']['get']('uploadcare');if(!_0x49a05a)return;const _0x1ade69=this['_normalizeConfigSourceList'](_0x1740ae['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xe968ca,_0x290e03)=>{const _0x319665=this['_getIntegrationKey'](_0x290e03['type']);return _0xe968ca[_0x319665]||(_0xe968ca[_0x319665]=[]),_0xe968ca[_0x319665]['push'](_0x290e03),_0xe968ca;},{});_0x1740ae['plugins']['has']('ImageInsertUI')&&_0x1740ae['commands']['get']('uploadcare')&&Object['entries'](_0x1ade69)['forEach'](([_0x1aef85,_0x447108])=>{_0x1740ae['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1aef85,'observable':()=>_0x49a05a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x447108),'formViewCreator':()=>this['_createDropdownButtons'](_0x447108),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x447108),'override':'assetManager'!==_0x1aef85});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2cb75b){const {locale:_0x31b2f2}=this['editor'];return _0x2cb75b['map'](_0x3e96a5=>{const _0xc7f2ad=_(_0x31b2f2,_0x3e96a5,'Insert');switch(_0x3e96a5){case i['Local']:return{'icon':_0x82e1d0,'type':i['Local'],..._0xc7f2ad};case i['URL']:return{'icon':_0x4ce268,'type':i['URL'],..._0xc7f2ad};case i['Dropbox']:return{'icon':_0xf90335,'type':i['Dropbox'],..._0xc7f2ad};case i['Facebook']:return{'icon':_0x3bab91,'type':i['Facebook'],..._0xc7f2ad};case i['GDrive']:return{'icon':_0x159e21,'type':i['GDrive'],..._0xc7f2ad};case i['GPhotos']:return{'icon':_0x4f76ce,'type':i['GPhotos'],..._0xc7f2ad};case i['OneDrive']:return{'icon':_0x273e46,'type':i['OneDrive'],..._0xc7f2ad};}});}['_getIntegrationKey'](_0x358d22){switch(_0x358d22){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x9d1900,_0x444b09){const _0x389315=this['editor'],_0x1dfd99=new _0x9d1900(_0x389315['locale']),_0x3c0496=_0x389315['commands']['get']('uploadcare');return _0x1dfd99['bind']('isEnabled')['to'](_0x3c0496),_0x1dfd99['on']('execute',()=>{_0x3c0496['execute'](_0x444b09);}),_0x1dfd99;}['_createToolbarButton'](_0x3fcb60){const {locale:_0xd092b3}=this['editor'],_0x8e5f58=this['editor']['plugins']['get']('ImageInsertUI'),_0x3a1af8=_0x3fcb60[0x0],_0x9dd36b=this['_createButton'](_0x31ddd8,_0x3a1af8['type']);return _0x9dd36b['icon']=_0x3a1af8['icon'],_0x9dd36b['bind']('label')['to'](_0x8e5f58,'isImageSelected',_0x1ced8c=>_(_0xd092b3,_0x3a1af8['type'],_0x1ced8c?'Replace':'Insert')['text']),_0x9dd36b['tooltip']=!0x0,_0x9dd36b;}['_createDropdownButtons'](_0x323490){const {locale:_0x7aa0a2}=this['editor'],_0x26d6d8=this['editor']['plugins']['get']('ImageInsertUI');return _0x323490['map'](_0xb31f20=>{const _0x530494=this['_createButton'](_0x31ddd8,_0xb31f20['type']);return _0x530494['withText']=!0x0,_0x530494['icon']=_0xb31f20['icon'],_0x530494['bind']('label')['to'](_0x26d6d8,'isImageSelected',_0x4910cd=>_(_0x7aa0a2,_0xb31f20['type'],_0x4910cd?'Replace':'Insert')['text']),_0x530494;});}['_createMenuBarButtons'](_0x81d1f2){return _0x81d1f2['map'](_0xebf14a=>{const _0x22fbc7=this['_createButton'](_0x3ed39f,_0xebf14a['type']);return _0x22fbc7['icon']=_0xebf14a['icon'],_0x22fbc7['label']=_0xebf14a['shortText'],_0x22fbc7;});}}class F extends _0x393d6c{['focusTracker'];['focusCycler'];constructor(_0x19a0ac){super(_0x19a0ac),this['focusTracker']=new _0x943f1c(),this['focusCycler']=new _0x55b923({'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(_0x4fd238,_0x33898d){super(_0x4fd238),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-'+_0x33898d}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x311c77,_0xa06d65){const _0x4c58ef=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x185ea3=>_0x185ea3<=_0xa06d65)['map'](_0x46b179=>_0x311c77['replace'](/\/$/,'')+'/-/resize/'+_0x46b179+'x/\x20'+_0x46b179+'w');return{'imageFallbackUrl':_0x311c77,'imageSources':[{'srcset':_0x4c58ef['join'](',\x20'),'sizes':'(max-width:\x20'+_0xa06d65+'px)\x20100vw,\x20'+_0xa06d65+'px','type':'image/webp'}]};}function S(_0x58d764,_0x4031df,_0x4bbf81){const _0x4cbd8e=_0x58d764['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4cbd8e?parseInt(_0x4cbd8e[0x1],0xa):_0x4031df,'height':_0x4cbd8e?parseInt(_0x4cbd8e[0x2],0xa):_0x4bbf81};}function p(_0x39864f,_0x2e8cf7){const _0x235ca3=new(_0x2fb6b0())(),_0x2b6496=_0x39864f['plugins']['get']('ImageUtils'),_0x90632c=_0x39864f['editing']['mapper']['toViewElement'](_0x2e8cf7),_0x380bdf=_0x2b6496['findViewImgElement'](_0x90632c),_0xb2cb76=_0x39864f['editing']['view']['domConverter']['viewToDom'](_0x380bdf),_0x2f38bc=_0x2e8cf7['getAttribute']('width'),_0x3c64a5=_0x2e8cf7['getAttribute']('height'),_0x339fed='image-processing';_0x39864f['editing']['view']['change'](_0x59318b=>{_0x59318b['addClass'](_0x339fed,_0x90632c),_0x59318b['setStyle']('aspect-ratio',_0x2f38bc+'/'+_0x3c64a5,_0x380bdf);}),_0x235ca3['listenTo'](_0xb2cb76,'load',()=>{_0x235ca3['stopListening'](_0xb2cb76,'load'),_0x39864f['editing']['view']['change'](_0x421053=>{_0x421053['removeClass'](_0x339fed,_0x90632c),_0x421053['removeStyle']('aspect-ratio',_0x380bdf);});});}function G(_0x366239){if(Array['isArray'](_0x366239)){const _0x433f6b=_0x366239['map'](G);return _0x532424=>_0x433f6b['some'](_0x2836b5=>_0x2836b5(_0x532424));}if('origin'==_0x366239){const _0x52f16e=_0x7d8c4c['window']['location']['origin'];return _0x20f7d8=>new URL(_0x20f7d8,_0x7d8c4c['document']['baseURI'])['origin']==_0x52f16e;}return'function'==typeof _0x366239?_0x366239:_0x366239 instanceof RegExp?_0x3f900b=>!(!_0x3f900b['match'](_0x366239)&&!_0x3f900b['replace'](/^https?:\/\//,'')['match'](_0x366239)):()=>!0x1;}function A(_0x5b76fc,_0x32a897){return _0x17466b(_0x5b76fc['target'])['includes'](_0x32a897);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x4c7309(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5e6576,_0x184efd,_0xef4aad){super(),this['_editor']=_0x5e6576,this['_editing']=_0x184efd,this['_dialog']=_0x5e6576['plugins']['get'](_0x563fe3),this['_api']=_0x184efd['ctxElement']['getAPI'](),this['_type']=_0xef4aad,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:_0x34c79c,model:_0x52045b}=this['_editor'],_0x3e8f56=_0x52045b['document']['selection']['getSelectedElement'](),_0xc1587f=_0x3e8f56&&(_0x3e8f56['is']('element','imageBlock')||_0x3e8f56['is']('element','imageInline'));this['_formView']=new x(_0x34c79c,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x82e1d0,'title':_(_0x34c79c,this['_type'],_0xc1587f?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xd31937['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5cffb9=>!A(_0x5cffb9,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2079c9}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1b34dc=>{const _0xc8fb7a=_0x2079c9['length'];for(const _0x44de6e of _0x2079c9){const _0x6e48b=_0x44de6e===_0x2079c9[_0xc8fb7a-0x1],{cdnUrl:_0x5cfb5d,fileInfo:_0x3bbed5}=_0x44de6e;if(!_0x5cfb5d||!_0x3bbed5)continue;const {width:_0x107712,height:_0x3c966c}=_0x3bbed5['imageInfo'],_0x24e689=S(_0x5cfb5d,_0x107712,_0x3c966c),_0x200a5f=C(_0x5cfb5d,_0x24e689['width']),_0x2e8101={'id':_0x3bbed5['uuid'],'type':'image','attributes':{'imageDimension':_0x24e689,..._0x200a5f}};this['_insertAsset'](_0x2e8101,_0x6e48b,_0x1b34dc);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x380e45=>{'idle'===_0x380e45['detail']['status']&&!_0x380e45['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x592e97,_0x47e4b7,_0x265179){const _0x33dbc6=this['_editor']['model']['document']['selection'],_0xf79970=_0x33dbc6['getSelectedElement'](),_0x15677e=!(!_0xf79970||!_0xf79970['is']('element','imageInline'));_0x265179['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x592e97,_0x15677e),_0x47e4b7||_0x265179['setSelection'](_0x33dbc6['getLastPosition']());}['_insertImage'](_0x26ab92,_0x31e6c0){const _0x5a7559=this['_editor'],{imageDimension:_0xd4c22b,imageFallbackUrl:_0x5daa5e,imageSources:_0x3aeef3}=_0x26ab92['attributes'];_0x5a7559['execute']('insertImage',{'imageType':_0x31e6c0?'imageInline':null,'source':{'uploadcareImageId':_0x26ab92['id'],'src':_0x5daa5e,'sources':_0x3aeef3,..._0xd4c22b}});}}class w extends _0x1e9b14{['_editing'];['_controller']=null;static get['requires'](){return[_0x563fe3,o];}constructor(_0x3f26c){super(_0x3f26c),this['_editing']=_0x3f26c['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x244fbc){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x244fbc);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5966d6,..._0xe6a2a0}){return _0x55bd5e(_0x5966d6,_0xe6a2a0);}static['getInfo'](_0x4fb1e6,_0x492430){return _0x31f98e(_0x4fb1e6,_0x492430);}}class f extends _0x3c8b09{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3cfb53,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1aa5e1=this['editor'];if(!!!_0x1aa5e1['config']['get']('uploadcare'))return;_0x1aa5e1['plugins']['get'](_0x3cfb53)['createUploadAdapter']=_0x2c2ffa=>new k(_0x2c2ffa,_0x1aa5e1),_0x1aa5e1['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2b906b,{imageElement:_0x209444,data:_0x2f74f1})=>{_0x1aa5e1['model']['change'](_0x35df74=>{_0x35df74['setAttribute']('uploadcareImageId',_0x2f74f1['uploadcareImageId'],_0x209444);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x50ac8c,_0x3b64db){this['loader']=_0x50ac8c,this['editor']=_0x3b64db,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3e3719=await this['loader']['file'];return j['upload']({'file':_0x3e3719,'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':_0x2e067a=>{_0x2e067a&&_0x2e067a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2e067a['value']);}})['then'](async _0x218d8b=>{const {imageFallbackUrl:_0x5e3b3f,imageSources:_0x397e7e}=C(_0x218d8b['cdnUrl'],_0x218d8b['imageInfo']['width']);return{'uploadcareImageId':_0x218d8b['uuid'],'default':_0x5e3b3f,'sources':_0x397e7e};})['catch'](()=>{const _0x49b0a6=t('Cannot\x20upload\x20file:')+('\x20'+_0x3e3719['name']+'.');return Promise['reject'](_0x49b0a6);});}['abort'](){this['controller']['abort']();}}class o extends _0x3c8b09{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x563fe3];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2ff0e0){super(_0x2ff0e0),this['ucContextId']=_0x103d12();}['init'](){const _0x13e08e=this['editor'];_0x13e08e['commands']['add']('uploadcare',new w(_0x13e08e));}['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 _0x31d8af=_0x7d8c4c['document']['querySelector']('input[uploadcare-file-input]');_0x31d8af&&_0x31d8af['remove']();}),async function(_0x3addfe){const _0x54af5d=_0x444e43([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]),_0x2c385b=0x3d8d0df,_0x32d527=0x3dfa39f^_0x2c385b,_0x4375c6=window[_0x444e43([0x44,0x61,0x74,0x65])][_0x444e43([0x6e,0x6f,0x77])](),_0x59a305=_0x3addfe[_0x444e43([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x179d8d=new window[(_0x444e43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bce0e=>{_0x59a305[_0x444e43([0x6f,0x6e,0x63,0x65])](_0x444e43([0x72,0x65,0x61,0x64,0x79]),_0x5bce0e);}),_0x554673={[_0x444e43([0x6b,0x74,0x79])]:_0x444e43([0x45,0x43]),[_0x444e43([0x75,0x73,0x65])]:_0x444e43([0x73,0x69,0x67]),[_0x444e43([0x63,0x72,0x76])]:_0x444e43([0x50,0x2d,0x32,0x35,0x36]),[_0x444e43([0x78])]:_0x444e43([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]),[_0x444e43([0x79])]:_0x444e43([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]),[_0x444e43([0x61,0x6c,0x67])]:_0x444e43([0x45,0x53,0x32,0x35,0x36])},_0x159afa=_0x59a305[_0x444e43([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x444e43([0x67,0x65,0x74])](_0x444e43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x76f601(){let _0x2617ca,_0x13f6a2=null,_0x40fb02=null;try{if(_0x159afa==_0x444e43([0x47,0x50,0x4c]))return _0x444e43([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2617ca=_0x21fe5f(),!_0x2617ca)return _0x444e43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2617ca[_0x444e43([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x40fb02=_0x5ed40d(_0x2617ca[_0x444e43([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2617ca[_0x444e43([0x6a,0x74,0x69])])),await _0x4c2b67()?_0x49d86c()?_0x430f29()?_0x444e43([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x56bc23()?(_0x2617ca[_0x444e43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x444e43([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x13f6a2=_0xe329e6(_0x444e43([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2617ca[_0x444e43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x444e43([0x74,0x72,0x69,0x61,0x6c])&&(_0x13f6a2=_0xe329e6(_0x444e43([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x49ede8()):_0x444e43([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x444e43([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x444e43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x444e43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x430f29(){const _0x3f089e=[_0x444e43([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x444e43([0x74,0x72,0x69,0x61,0x6c])][_0x444e43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2617ca[_0x444e43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4375c6/0x3e8:0xe10*_0x32d527;return _0x2617ca[_0x444e43([0x65,0x78,0x70])]<_0x3f089e;}function _0x49d86c(){const _0x4eb797=_0x2617ca[_0x444e43([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4eb797&&(!!_0x4eb797[_0x444e43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x444e43([0x2a]))||!!_0x4eb797[_0x444e43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x444e43([0x55,0x50,0x4c,0x43])));}function _0x56bc23(){const _0xf34c58=_0x2617ca[_0x444e43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xf34c58||0x0==_0xf34c58[_0x444e43([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x50c754}=new URL(window[_0x444e43([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xf34c58[_0x444e43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50c754))return!0x0;const _0x2ae7e0=_0x50c754[_0x444e43([0x73,0x70,0x6c,0x69,0x74])](_0x444e43([0x2e]));return _0xf34c58[_0x444e43([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50107f=>_0x50107f[_0x444e43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x444e43([0x2a])))[_0x444e43([0x6d,0x61,0x70])](_0x337e5b=>_0x337e5b[_0x444e43([0x73,0x70,0x6c,0x69,0x74])](_0x444e43([0x2e])))[_0x444e43([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3917d3=>_0x3917d3[_0x444e43([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2ae7e0[_0x444e43([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x444e43([0x6d,0x61,0x70])](_0x359268=>Array(_0x2ae7e0[_0x444e43([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x359268[_0x444e43([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x444e43([0x66,0x69,0x6c,0x6c])](_0x359268[0x0]===_0x444e43([0x2a])?_0x444e43([0x2a]):'')[_0x444e43([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x359268))[_0x444e43([0x73,0x6f,0x6d,0x65])](_0x57f4d0=>_0x2ae7e0[_0x444e43([0x65,0x76,0x65,0x72,0x79])]((_0x25e980,_0x445b10)=>_0x57f4d0[_0x445b10]===_0x25e980||_0x57f4d0[_0x445b10]===_0x444e43([0x2a])));}function _0x49ede8(){return _0x13f6a2&&_0x40fb02?new window[(_0x444e43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d0574,_0x36eea9)=>{_0x13f6a2[_0x444e43([0x74,0x68,0x65,0x6e])](_0x1d0574,_0x36eea9),_0x40fb02[_0x444e43([0x74,0x68,0x65,0x6e])](_0x4f47b0=>{_0x4f47b0!=_0x444e43([0x56,0x61,0x6c,0x69,0x64])&&_0x1d0574(_0x4f47b0);},_0x36eea9);}):_0x13f6a2||_0x40fb02||_0x444e43([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ed40d(_0x4739d4,_0x4fca3e){return new window[(_0x444e43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24c0b9=>{if(_0x4af5f8())return _0x24c0b9(_0x444e43([0x56,0x61,0x6c,0x69,0x64]));_0x355ac7(),_0x59a305[_0x444e43([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x444e43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a4c25=!0x1;const _0x38fd94=_0x103d12();function _0x5e0b52(_0x50e375){return!!_0x50e375&&(typeof _0x50e375===_0x444e43([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x50e375===_0x444e43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x50e375[_0x444e43([0x74,0x68,0x65,0x6e])]===_0x444e43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x50e375[_0x444e43([0x63,0x61,0x74,0x63,0x68])]===_0x444e43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5cd0ec(_0x8ae650){_0x13d7af(_0x8ae650)[_0x444e43([0x74,0x68,0x65,0x6e])](_0x1e61f8=>{if(!_0x1e61f8||_0x1e61f8[_0x444e43([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x444e43([0x6f,0x6b]))return _0x444e43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xac4b76(_0x539afb(_0x38fd94+_0x4fca3e))!=_0x1e61f8[_0x444e43([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x444e43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x444e43([0x56,0x61,0x6c,0x69,0x64]);})[_0x444e43([0x74,0x68,0x65,0x6e])](_0x3dfe05=>(_0x122d20(),_0x3dfe05),()=>{const _0x5cde77=_0x2ee211();return null==_0x5cde77?(_0x122d20(),_0x444e43([0x56,0x61,0x6c,0x69,0x64])):_0x444e43(_0x4375c6-_0x5cde77>(0x27d454df^_0x2c385b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x444e43([0x74,0x68,0x65,0x6e])](_0x24c0b9)[_0x444e43([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24c0b9(_0x444e43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1c919e=0x3ee3e5f^_0x2c385b;function _0x122d20(){const _0x124aa1=_0x444e43([0x6c,0x6c,0x63,0x74,0x2d])+_0xac4b76(_0x539afb(_0x4739d4)),_0x46ee9f=_0x2f6100(_0xac4b76(window[_0x444e43([0x4d,0x61,0x74,0x68])][_0x444e43([0x63,0x65,0x69,0x6c])](_0x4375c6/_0x1c919e)));window[_0x444e43([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x444e43([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x124aa1,_0x46ee9f);}function _0x2ee211(){const _0x35e022=_0x444e43([0x6c,0x6c,0x63,0x74,0x2d])+_0xac4b76(_0x539afb(_0x4739d4)),_0x11ae41=window[_0x444e43([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x444e43([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35e022);return _0x11ae41?window[_0x444e43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f6100(_0x11ae41),0x10)*_0x1c919e:null;}function _0x13d7af(_0x3d2e1f){return new window[(_0x444e43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d58ea,_0x4eb0cc)=>{_0x3d2e1f[_0x444e43([0x74,0x68,0x65,0x6e])](_0x5d58ea,_0x4eb0cc),window[_0x444e43([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4eb0cc,0x3d9041f^_0x2c385b);});}}_0x59a305[_0x444e43([0x6f,0x6e])](_0x444e43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2a69e7,_0x4cfdef)=>{if(_0x4cfdef[0x0]!=_0x4739d4)return _0x24c0b9(_0x444e43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4cfdef[0x1]={..._0x4cfdef[0x1],[_0x444e43([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x38fd94};},{[_0x444e43([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x444e43([0x68,0x69,0x67,0x68])}),_0x59a305[_0x444e43([0x6f,0x6e])](_0x444e43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2e42ef=>{_0x5e0b52(_0x2e42ef[_0x444e43([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a4c25=!0x0,_0x5cd0ec(_0x2e42ef[_0x444e43([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x444e43([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x444e43([0x6c,0x6f,0x77])}),_0x179d8d[_0x444e43([0x74,0x68,0x65,0x6e])](()=>{_0x4a4c25||_0x24c0b9(_0x444e43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4af5f8(){return _0x59a305[_0x444e43([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x444e43([0x76,0x69,0x65,0x77])][_0x444e43([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x444e43([0x61,0x75,0x74,0x6f]);}function _0x355ac7(){_0x59a305[_0x444e43([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x444e43([0x76,0x69,0x65,0x77])][_0x444e43([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x444e43([0x61,0x75,0x74,0x6f]);}}function _0xe329e6(_0x276b9e){const _0x5b43c8=[new window[(_0x444e43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a91fb=>setTimeout(_0x3a91fb,0x3d1ee13^_0x2c385b)),_0x179d8d[_0x444e43([0x74,0x68,0x65,0x6e])](()=>new window[(_0x444e43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44f157=>{let _0x3d70fa=0x0;_0x59a305[_0x444e43([0x6d,0x6f,0x64,0x65,0x6c])][_0x444e43([0x6f,0x6e])](_0x444e43([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2ae482,_0xe38b3e)=>{_0xe38b3e[0x0][_0x444e43([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3d70fa++,_0x3d70fa==(0x3d8d127^_0x2c385b)&&(_0x44f157(),_0x2ae482[_0x444e43([0x6f,0x66,0x66])]());});}))];return window[_0x444e43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x444e43([0x72,0x61,0x63,0x65])](_0x5b43c8)[_0x444e43([0x74,0x68,0x65,0x6e])](()=>_0x276b9e);}async function _0x10bfc2(){await _0x179d8d,_0x59a305[_0x444e43([0x6d,0x6f,0x64,0x65,0x6c])][_0x444e43([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x34c02f,_0x59a305[_0x444e43([0x6d,0x6f,0x64,0x65,0x6c])][_0x444e43([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x34c02f,_0x59a305[_0x444e43([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x444e43([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2f7d8b(_0x31adc2){const _0x5dc90e=_0x1eb9ec();_0x59a305[_0x5dc90e]=_0x444e43([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x31adc2,_0x31adc2!=_0x444e43([0x56,0x61,0x6c,0x69,0x64])&&_0x10bfc2();}function _0x1eb9ec(){const _0x53df37=window[_0x444e43([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x444e43([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x444e43([0x6e,0x6f,0x77])]())[_0x444e43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x444e43([0x2e]),'');let _0x3b7ab2=_0x444e43([0x52]);for(let _0x353dc9=0x0;_0x353dc9<_0x53df37[_0x444e43([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x353dc9+=0x2){let _0x113d7a=window[_0x444e43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53df37[_0x444e43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x353dc9,_0x353dc9+0x2));_0x113d7a>=_0x54af5d[_0x444e43([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x113d7a-=_0x54af5d[_0x444e43([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3b7ab2+=_0x54af5d[_0x113d7a];}return _0x3b7ab2;}function _0x21fe5f(){const _0x3e4c97=_0x159afa[_0x444e43([0x73,0x70,0x6c,0x69,0x74])](_0x444e43([0x2e]));if(0x3!=_0x3e4c97[_0x444e43([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x387511(_0x3e4c97[0x1]);function _0x387511(_0x4cc489){const _0x20c3ee=_0x15f91f(_0x4cc489);return _0x20c3ee&&_0x541fff()?_0x20c3ee:null;function _0x541fff(){const _0x57f975=_0x20c3ee[_0x444e43([0x6a,0x74,0x69])],_0x1a7609=window[_0x444e43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57f975[_0x444e43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57f975[_0x444e43([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x282bc7={..._0x20c3ee,[_0x444e43([0x6a,0x74,0x69])]:_0x57f975[_0x444e43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x57f975[_0x444e43([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x282bc7[_0x444e43([0x76,0x63])],_0x539afb(_0x282bc7)==_0x1a7609;}}}async function _0x4c2b67(){let _0x23da28=!0x0;try{const _0x4b85e8=_0x159afa[_0x444e43([0x73,0x70,0x6c,0x69,0x74])](_0x444e43([0x2e])),[_0x2d9d8e,_0x27073e,_0x4f62a2]=_0x4b85e8;return _0x3d38a9(_0x2d9d8e),await _0x503e29(_0x2d9d8e,_0x27073e,_0x4f62a2),_0x23da28;}catch{return!0x1;}function _0x3d38a9(_0x354afb){const _0x2440f6=_0x15f91f(_0x354afb);_0x2440f6&&_0x2440f6[_0x444e43([0x61,0x6c,0x67])]==_0x444e43([0x45,0x53,0x32,0x35,0x36])||(_0x23da28=!0x1);}async function _0x503e29(_0x3d05ef,_0x298d5c,_0x5b5fc0){const _0x1ad817=window[_0x444e43([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x444e43([0x66,0x72,0x6f,0x6d])](_0x5b300c(_0x5b5fc0),_0x3de1d3=>_0x3de1d3[_0x444e43([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x419ff1=new window[(_0x444e43([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x444e43([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d05ef+_0x444e43([0x2e])+_0x298d5c),_0x2691e6=window[_0x444e43([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x444e43([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2691e6)return;const _0x2e4834=await _0x2691e6[_0x444e43([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x444e43([0x6a,0x77,0x6b]),_0x554673,{[_0x444e43([0x6e,0x61,0x6d,0x65])]:_0x444e43([0x45,0x43,0x44,0x53,0x41]),[_0x444e43([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x444e43([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x444e43([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2691e6[_0x444e43([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x444e43([0x6e,0x61,0x6d,0x65])]:_0x444e43([0x45,0x43,0x44,0x53,0x41]),[_0x444e43([0x68,0x61,0x73,0x68])]:{[_0x444e43([0x6e,0x61,0x6d,0x65])]:_0x444e43([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2e4834,_0x1ad817,_0x419ff1)||(_0x23da28=!0x1);}}function _0x15f91f(_0x4f6535){return _0x4f6535[_0x444e43([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x444e43([0x65,0x79]))?JSON[_0x444e43([0x70,0x61,0x72,0x73,0x65])](_0x5b300c(_0x4f6535)):null;}function _0x5b300c(_0x3d1d71){return window[_0x444e43([0x61,0x74,0x6f,0x62])](_0x3d1d71[_0x444e43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x444e43([0x2b]))[_0x444e43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x444e43([0x2f])));}function _0x539afb(_0x435d55){let _0x255102=0x1505;function _0x471d8e(_0x23fa82){for(let _0x1cc0e6=0x0;_0x1cc0e6<_0x23fa82[_0x444e43([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1cc0e6++){const _0x573589=_0x23fa82[_0x444e43([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1cc0e6);_0x255102=(_0x255102<<0x5)+_0x255102+_0x573589,_0x255102&=_0x255102;}}function _0x1ebdf8(_0x10f3d9){Array[_0x444e43([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10f3d9)?_0x10f3d9[_0x444e43([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ebdf8):_0x10f3d9&&typeof _0x10f3d9==_0x444e43([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x444e43([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10f3d9)[_0x444e43([0x73,0x6f,0x72,0x74])]()[_0x444e43([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e2010,_0x5ba898])=>{_0x471d8e(_0x2e2010),_0x1ebdf8(_0x5ba898);}):_0x471d8e(window[_0x444e43([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10f3d9));}return _0x1ebdf8(_0x435d55),_0x255102>>>0x0;}function _0xac4b76(_0x2a3d3e){return _0x2a3d3e[_0x444e43([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x444e43([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x444e43([0x30]));}function _0x2f6100(_0x4fd2c4){return _0x4fd2c4[_0x444e43([0x73,0x70,0x6c,0x69,0x74])]('')[_0x444e43([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x444e43([0x6a,0x6f,0x69,0x6e])]('');}function _0x34c02f(){}function _0x444e43(_0xce3ff5){return _0xce3ff5['map'](_0x3c53b7=>String['fromCharCode'](_0x3c53b7))['join']('');}_0x2f7d8b(await _0x76f601());}(this);}['_initSchema'](){const _0x207d8f=this['editor']['model']['schema'];_0x207d8f['isRegistered']('imageBlock')&&_0x207d8f['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x207d8f['isRegistered']('imageInline')&&_0x207d8f['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x44e1c4=this['editor'];_0x44e1c4['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x44e1c4['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x57c373=>_0x57c373['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x230b71=_0x44e1c4['commands']['get']('replaceImageSource');_0x230b71&&this['listenTo'](_0x230b71,'cleanupImage',(_0x19de94,[_0x5f289e,_0x50f399])=>{_0x5f289e['removeAttribute']('uploadcareImageId',_0x50f399);});}['_initConfig'](){const _0x20d853=this['editor']['config']['get']('uploadcare.uploader')||{},_0x170e40=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2bff64(_0x7d8c4c['document'],'uc-config',{..._0x20d853,'pubkey':_0x170e40,'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']=_0x55c299=>{if('closeMax'==_0x55c299)return'#uc-icon-arrow-down';},_0x7d8c4c['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2bff64(_0x7d8c4c['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x7d8c4c['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4846cb=this['editor']['commands']['get']('insertImage');_0x4846cb&&this['listenTo'](_0x4846cb,'execute',()=>{const _0x5d6a19=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5d6a19&&_0x5d6a19['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5d6a19);});});const _0x427112=this['editor']['commands']['get']('uploadcareImageReplace');_0x427112&&this['listenTo'](_0x427112,'execute',()=>{const _0x380791=this['editor']['model']['document']['selection']['getSelectedElement']();_0x380791&&_0x380791['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x380791);});});}}class tt extends _0x3c8b09{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x451f79){super(_0x451f79),_0x451f79['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x12dac6['defineComponents'](_0x12dac6);}}class ii extends _0x393d6c{constructor(_0x568b0d){super(_0x568b0d);const t=_0x568b0d['t'],_0x441911=this['bindTemplate'],_0x2cf6da=new _0x53c3b2();_0x2cf6da['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':[_0x2cf6da,{'text':_0x441911['to']('imageUploadProgress',_0x2e7c27=>t('Loading\x20image...')+'\x20('+(_0x2e7c27||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 _0x393d6c{constructor(_0x4babbf){super(_0x4babbf);const t=_0x4babbf['t'];this['set']('errorType',null);const _0x31265c=new _0x31ddd8(_0x4babbf);_0x31265c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x31265c['withText']=!0x0,_0x31265c['class']='ck-button-action',_0x31265c['on']('execute',()=>{this['fire']('retry');}),_0x31265c['bind']('isVisible')['to'](this,'errorType',_0xa12389=>'NotFound'!==_0xa12389);const _0x53d1a4=new _0x5baf03();_0x53d1a4['content']=_0x5cfd40,_0x53d1a4['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3c22de=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':[_0x53d1a4,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3c22de['to']('errorType',_0x2a3588=>t('NotFound'!==_0x2a3588?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x31265c]},{'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 _0x393d6c{constructor(_0x228622,_0x3793cc){super(_0x228622);const _0x1d1568=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3793cc,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1d1568['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x42e5c0,_0xe018ea,_0x52a435){super(_0x42e5c0),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x42e5c0),this['_errorView']=new ti(_0x42e5c0),this['_editingView']=new ei(_0x42e5c0,_0x52a435),this['_focusableView']=new _0x393d6c(_0x42e5c0),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xe018ea),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'],_0x5a43ee=>{this['_addUploadcareImageEditorListeners'](_0x5a43ee);});}),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'](_0x1fc1ec,_0x39ecf6){const _0x5cb422='uc-cloud-image-editor',_0x2145c4=_0x1fc1ec['querySelector'](_0x5cb422);if(_0x2145c4)return _0x39ecf6(_0x2145c4);const _0x23908f=new MutationObserver(_0xeb8103=>{const _0x4fffb5=_0xeb8103['filter'](_0x11a103=>_0x11a103['target']===_0x1fc1ec&&_0x11a103['addedNodes']['length']>0x0&&_0x11a103['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5cb422);_0x4fffb5['length']&&(_0x23908f['disconnect'](),_0x39ecf6(_0x4fffb5[0x0]['addedNodes'][0x0]));});_0x23908f['observe'](_0x1fc1ec,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x67f6f0){_0x67f6f0['addEventListener']('apply',_0xe8f024=>{this['fire']('apply',{'imageSrc':_0xe8f024['detail']['cdnUrl']});}),_0x67f6f0['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4c7309(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x27ef18,_0xb7b65b,_0x537642){super(),this['_editor']=_0x27ef18,this['_dialog']=_0xb7b65b,this['_imageElement']=_0x537642,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 _0x32271c=this['_imageElement'],_0x9802eb=_0x32271c['getAttribute']('uploadcareImageId'),_0x32851c=_0x32271c['getAttribute']('src');if(_0x9802eb)await this['_loadImageInfo'](_0x9802eb,_0x32851c);else{if(this['_imageCache']['has'](_0x32851c)){const _0x170c9b=this['_imageCache']['get'](_0x32851c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x170c9b['url'],this['imageDimension']=_0x170c9b['dimension'],this['imageId']=_0x170c9b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x37667f}=this['_editor'],t=_0x37667f['t'],_0x2a0b4f=new X(_0x37667f,this['imageStatus'],this['_attributes']);_0x2a0b4f['bind']('status')['to'](this,'imageStatus'),_0x2a0b4f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2a0b4f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2a0b4f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2a0b4f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1e534e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2a0b4f,'position':_0xd31937['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2a0b4f['focus']();},'onHide':()=>{_0x2a0b4f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4a3484=>!A(_0x4a3484,_0x2a0b4f['element'])}});}['_loadImageInfo'](_0x421cc4,_0xe12ef6){return j['getInfo'](_0x421cc4,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x328311=>{const {width:_0x2bffec,height:_0x444981}=_0x328311['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xe12ef6,this['imageDimension']={'width':_0x2bffec,'height':_0x444981},this['imageId']=_0x421cc4;})['catch'](_0x3c0a16=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3c0a16['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1b0e5a,_0x2a9d04){return this['_getImageAsFile'](_0x1b0e5a)['then'](_0x1b8130=>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':_0x2a9d04['signal'],'file':_0x1b8130,'onProgress':_0x66354e=>{_0x66354e&&_0x66354e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x66354e['value']));}}))['then'](_0x28bf7f=>{const {width:_0x429faa,height:_0x5c76a4}=_0x28bf7f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x28bf7f['cdnUrl'],this['imageDimension']={'width':_0x429faa,'height':_0x5c76a4},this['imageId']=_0x28bf7f['uuid'],this['imageUploadProgress']=null;const _0x2ff171=_0x1b0e5a['getAttribute']('src');this['_imageCache']['set'](_0x2ff171,{'id':_0x28bf7f['uuid'],'url':_0x28bf7f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x15dfa9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x15dfa9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x48e80b,_0xdaa995){_0x48e80b['on']('apply',(_0x47cff0,_0x72e2a5)=>{this['_replaceImage'](_0xdaa995,_0x72e2a5['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x48e80b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x48e80b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1caf08,_0x4a6455,_0x3e2944){const _0x1146fc=this['_editor'],{width:_0x20a4dd,height:_0x18d08b}=S(_0x4a6455,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4be2b1,imageSources:_0x51934a}=C(_0x4a6455,_0x20a4dd);_0x1146fc['model']['change'](_0x38b6d2=>{if('$graveyard'===_0x1caf08['root']['rootName']){_0x1146fc['execute']('insertImage',{'imageType':_0x1caf08['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1caf08['getAttributes']()),'uploadcareImageId':_0x3e2944,'src':_0x4be2b1,'sources':_0x51934a,'width':_0x20a4dd,'height':_0x18d08b}});const _0x480705=_0x1caf08['getChildren']();_0x1caf08=_0x1146fc['model']['document']['selection']['getSelectedElement']();for(const _0x49b846 of _0x480705)_0x38b6d2['append'](_0x38b6d2['cloneElement'](_0x49b846),_0x1caf08);}else _0x38b6d2['setSelection'](_0x1caf08,'on'),_0x1146fc['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1caf08['getAttributes']()),'uploadcareImageId':_0x3e2944,'src':_0x4be2b1,'sources':_0x51934a,'width':_0x20a4dd,'height':_0x18d08b},_0x1caf08);_0x38b6d2['setSelection'](_0x1caf08,'on');});}async['_getImageAsFile'](_0x312ecf){const _0x48d8ff=_0x7d8c4c['window'],_0x1d02f5=_0x7d8c4c['document']['location']['href'],_0x1b94e3=new _0x48d8ff['URL'](_0x312ecf['getAttribute']('src'),_0x1d02f5);if('data:'===_0x1b94e3['protocol']){const _0x67150f=_0x1b94e3['href']['split'](','),_0x1ab393=_0x67150f[0x0]['match'](/:(.*?);/)[0x1],_0x347ae0=_0x1ab393['split']('/')[0x1],_0x44ee0e=_0x48d8ff['atob'](_0x67150f[_0x67150f['length']-0x1]);let _0x549bf5=_0x44ee0e['length'];const _0x449e6e=new _0x48d8ff['Uint8Array'](_0x549bf5);for(;_0x549bf5--;)_0x449e6e[_0x549bf5]=_0x44ee0e['charCodeAt'](_0x549bf5);return new _0x48d8ff['File']([_0x449e6e],'image.'+_0x347ae0,{'type':_0x1ab393});}const _0x2e2567=_0x1b94e3['href']['split']('/'),_0x539119=_0x2e2567[_0x2e2567['length']-0x1],_0x512a14=_0x539119['split']('.')[0x1];return _0x48d8ff['fetch'](_0x1b94e3['href'])['then'](_0x21edfb=>_0x21edfb['clone']()['blob']())['then'](_0x1af2ed=>new _0x48d8ff['File']([_0x1af2ed],_0x539119,{'type':'image/'+_0x512a14}));}}class O extends _0x1e9b14{['imageEditController'];static get['requires'](){return[_0x563fe3];}['_isEditable'];constructor(_0x3e731b){super(_0x3e731b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x578d84){const _0x14f708=G(_0x578d84);return _0x3738cd=>!(!_0x3738cd||!_0x3738cd['is']('element','imageBlock')&&!_0x3738cd['is']('element','imageInline'))&&(!!_0x3738cd['hasAttribute']('uploadcareImageId')||!!_0x3738cd['hasAttribute']('src')&&_0x14f708(_0x3738cd['getAttribute']('src')));}(_0x3e731b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x54d3ab=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x54d3ab);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5764eb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5764eb&&(_0x5764eb['is']('element','imageBlock')||_0x5764eb['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x563fe3),_0x5764eb),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x1e9b14{['refresh'](){const _0x13d67b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x13d67b&&(_0x13d67b['is']('element','imageBlock')||_0x13d67b['is']('element','imageInline')));}['execute'](_0x213600){const _0x41edb1=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x152514=>{_0x152514['setAttributes'](_0x213600,_0x41edb1),_0x152514['removeAttribute']('srcset',_0x41edb1),_0x152514['removeAttribute']('sizes',_0x41edb1);});}}class m extends _0x3c8b09{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2f4c69,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xbd5611}=this;_0xbd5611['commands']['add']('uploadcareImageEdit',new O(_0xbd5611)),_0xbd5611['commands']['add']('uploadcareImageReplace',new R(_0xbd5611));}}class g extends _0x3c8b09{['_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 _0x17daf2=this['editor'];_0x17daf2['ui']['componentFactory']['add']('uploadcareImageEdit',_0x54aacf=>{const _0x5bc164=_0x17daf2['commands']['get']('uploadcareImageEdit'),_0x5852f1=new _0x31ddd8(_0x54aacf),t=_0x54aacf['t'];return _0x5852f1['set']({'icon':_0x1e534e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5852f1['bind']('isEnabled')['to'](_0x5bc164),_0x5852f1['bind']('isOn')['to'](_0x5bc164,'isActive'),this['listenTo'](_0x5852f1,'execute',()=>{_0x17daf2['execute']('uploadcareImageEdit'),_0x17daf2['editing']['view']['focus']();}),_0x5852f1;}),this['_initConfig']();}['_initConfig'](){const _0x5258b1=_0x2bff64(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5258b1),this['listenTo'](this['editor'],'destroy',()=>{_0x5258b1['remove']();});}}class et extends _0x3c8b09{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 _0x10c45a,Command as _0x2f344c}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x349db6,IconGooglePhotos as _0x34b44a,IconGoogleDrive as _0x2864a0,IconFacebook as _0x411934,IconDropbox as _0x426b1f,IconUploadcareLink as _0x2970dc,IconUploadcareImageUpload as _0x1d19f1,IconError as _0x3a0171,IconUploadcareImageEdit as _0x13fa14}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4da067,MenuBarMenuListItemButtonView as _0x515bf1,View as _0x4f5ec2,FocusCycler as _0x2442e6,Dialog as _0x33e502,DialogViewPosition as _0x2fd3ba,SpinnerView as _0x343d96,IconView as _0xfc2a90,Notification as _0x1fb565}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2d5cfd,DomEmitterMixin as _0x1e477a,global as _0x3dba28,getAncestors as _0x39fded,ObservableMixin as _0x5145a8,uid as _0x4c2da3,createElement as _0x18d39c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x453e68}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x169483,info as _0xbb9dcf}from'@uploadcare/upload-client';import*as _0x3f3a16 from'@uploadcare/file-uploader';var i=function(_0x300375){return _0x300375['Local']='local',_0x300375['URL']='url',_0x300375['Dropbox']='dropbox',_0x300375['GDrive']='gdrive',_0x300375['Facebook']='facebook',_0x300375['GPhotos']='gphotos',_0x300375['OneDrive']='onedrive',_0x300375;}({});function _(_0xf7ebdc,_0x3d892c,_0x4dd8aa){const t=_0xf7ebdc['t'],_0x346b8a=_0xf7ebdc['t'];switch(_0x3d892c){case i['Local']:return{'text':_0x346b8a('Insert'===_0x4dd8aa?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x346b8a('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x4dd8aa?_0x346b8a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x346b8a('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x4dd8aa?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x4dd8aa?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x4dd8aa?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x4dd8aa?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x4dd8aa?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3d892c;}}class e extends _0x10c45a{['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 _0x42db8b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x350033;for(const _0x367b5c in _0x42db8b){const _0x2ffbad=_0x367b5c,_0x22fb59=_0x42db8b[_0x2ffbad];if('uploadcareLicenseKeyValid'==_0x22fb59||'uploadcareLicenseKeyInvalid'==_0x22fb59||'uploadcareLicenseKeyExpired'==_0x22fb59||'uploadcareLicenseKeyDomainLimit'==_0x22fb59||'uploadcareLicenseKeyNotAllowed'==_0x22fb59||'uploadcareLicenseKeyEvaluationLimit'==_0x22fb59||'uploadcareLicenseKeyTrialLimit'==_0x22fb59||'uploadcareLicenseKeyUsageLimit'==_0x22fb59){delete _0x42db8b[_0x2ffbad],_0x350033=_0x22fb59,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x350033&&_0x42db8b['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x350033&&_0x42db8b['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x350033&&_0x42db8b['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x350033&&_0x42db8b['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x350033&&_0x42db8b['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x350033&&_0x42db8b['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x350033&&_0x42db8b['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4ed22a}=this,_0xa09c54=_0x4ed22a['commands']['get']('uploadcare');if(!_0xa09c54)return;const _0x178229=this['_normalizeConfigSourceList'](_0x4ed22a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1cb969,_0x42fbe2)=>{const _0x2bbbc1=this['_getIntegrationKey'](_0x42fbe2['type']);return _0x1cb969[_0x2bbbc1]||(_0x1cb969[_0x2bbbc1]=[]),_0x1cb969[_0x2bbbc1]['push'](_0x42fbe2),_0x1cb969;},{});_0x4ed22a['plugins']['has']('ImageInsertUI')&&_0x4ed22a['commands']['get']('uploadcare')&&Object['entries'](_0x178229)['forEach'](([_0x3efb69,_0x44753b])=>{_0x4ed22a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3efb69,'observable':()=>_0xa09c54,'buttonViewCreator':()=>this['_createToolbarButton'](_0x44753b),'formViewCreator':()=>this['_createDropdownButtons'](_0x44753b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x44753b),'override':'assetManager'!==_0x3efb69});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x16d204){const {locale:_0xd4fdb6}=this['editor'];return _0x16d204['map'](_0x5e10ea=>{const _0xe6a8a3=_(_0xd4fdb6,_0x5e10ea,'Insert');switch(_0x5e10ea){case i['Local']:return{'icon':_0x1d19f1,'type':i['Local'],..._0xe6a8a3};case i['URL']:return{'icon':_0x2970dc,'type':i['URL'],..._0xe6a8a3};case i['Dropbox']:return{'icon':_0x426b1f,'type':i['Dropbox'],..._0xe6a8a3};case i['Facebook']:return{'icon':_0x411934,'type':i['Facebook'],..._0xe6a8a3};case i['GDrive']:return{'icon':_0x2864a0,'type':i['GDrive'],..._0xe6a8a3};case i['GPhotos']:return{'icon':_0x34b44a,'type':i['GPhotos'],..._0xe6a8a3};case i['OneDrive']:return{'icon':_0x349db6,'type':i['OneDrive'],..._0xe6a8a3};}});}['_getIntegrationKey'](_0x1c0925){switch(_0x1c0925){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3be809,_0x3af8ee){const _0x3ec597=this['editor'],_0x23db31=new _0x3be809(_0x3ec597['locale']),_0x12cac3=_0x3ec597['commands']['get']('uploadcare');return _0x23db31['bind']('isEnabled')['to'](_0x12cac3),_0x23db31['on']('execute',()=>{_0x12cac3['execute'](_0x3af8ee);}),_0x23db31;}['_createToolbarButton'](_0x4e0a7f){const {locale:_0x2bf627}=this['editor'],_0x44c705=this['editor']['plugins']['get']('ImageInsertUI'),_0x54c78b=_0x4e0a7f[0x0],_0x1f63bd=this['_createButton'](_0x4da067,_0x54c78b['type']);return _0x1f63bd['icon']=_0x54c78b['icon'],_0x1f63bd['bind']('label')['to'](_0x44c705,'isImageSelected',_0x522729=>_(_0x2bf627,_0x54c78b['type'],_0x522729?'Replace':'Insert')['text']),_0x1f63bd['tooltip']=!0x0,_0x1f63bd;}['_createDropdownButtons'](_0x50e323){const {locale:_0x4698f2}=this['editor'],_0xb543ea=this['editor']['plugins']['get']('ImageInsertUI');return _0x50e323['map'](_0x202948=>{const _0x3ba7bf=this['_createButton'](_0x4da067,_0x202948['type']);return _0x3ba7bf['withText']=!0x0,_0x3ba7bf['icon']=_0x202948['icon'],_0x3ba7bf['bind']('label')['to'](_0xb543ea,'isImageSelected',_0x38e2d7=>_(_0x4698f2,_0x202948['type'],_0x38e2d7?'Replace':'Insert')['text']),_0x3ba7bf;});}['_createMenuBarButtons'](_0x2a5e9b){return _0x2a5e9b['map'](_0x58061a=>{const _0x149111=this['_createButton'](_0x515bf1,_0x58061a['type']);return _0x149111['icon']=_0x58061a['icon'],_0x149111['label']=_0x58061a['shortText'],_0x149111;});}}class F extends _0x4f5ec2{['focusTracker'];['focusCycler'];constructor(_0xe1dd52){super(_0xe1dd52),this['focusTracker']=new _0x2d5cfd(),this['focusCycler']=new _0x2442e6({'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(_0x5c270d,_0x6a23e4){super(_0x5c270d),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-'+_0x6a23e4}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x6af74d,_0x1c72f7){const _0xe9749=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4ed690=>_0x4ed690<=_0x1c72f7)['map'](_0x50c093=>_0x6af74d['replace'](/\/$/,'')+'/-/resize/'+_0x50c093+'x/\x20'+_0x50c093+'w');return{'imageFallbackUrl':_0x6af74d,'imageSources':[{'srcset':_0xe9749['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1c72f7+'px)\x20100vw,\x20'+_0x1c72f7+'px','type':'image/webp'}]};}function S(_0xb43034,_0x3e6039,_0x498b12){const _0x3a4220=_0xb43034['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3a4220?parseInt(_0x3a4220[0x1],0xa):_0x3e6039,'height':_0x3a4220?parseInt(_0x3a4220[0x2],0xa):_0x498b12};}function p(_0x23b9cb,_0x12301a){const _0x4bf5f3=new(_0x1e477a())(),_0x1f69bb=_0x23b9cb['plugins']['get']('ImageUtils'),_0x32fb8d=_0x23b9cb['editing']['mapper']['toViewElement'](_0x12301a),_0x215c9f=_0x1f69bb['findViewImgElement'](_0x32fb8d),_0x1d3b13=_0x23b9cb['editing']['view']['domConverter']['viewToDom'](_0x215c9f),_0x2fbd59=_0x12301a['getAttribute']('width'),_0x5b0508=_0x12301a['getAttribute']('height'),_0x34362e='image-processing';_0x23b9cb['editing']['view']['change'](_0x45d7ca=>{_0x45d7ca['addClass'](_0x34362e,_0x32fb8d),_0x45d7ca['setStyle']('aspect-ratio',_0x2fbd59+'/'+_0x5b0508,_0x215c9f);}),_0x4bf5f3['listenTo'](_0x1d3b13,'load',()=>{_0x4bf5f3['stopListening'](_0x1d3b13,'load'),_0x23b9cb['editing']['view']['change'](_0x238b88=>{_0x238b88['removeClass'](_0x34362e,_0x32fb8d),_0x238b88['removeStyle']('aspect-ratio',_0x215c9f);});});}function G(_0x22b6f2){if(Array['isArray'](_0x22b6f2)){const _0x5dbe0e=_0x22b6f2['map'](G);return _0x1d576f=>_0x5dbe0e['some'](_0x5df054=>_0x5df054(_0x1d576f));}if('origin'==_0x22b6f2){const _0x6b6a5=_0x3dba28['window']['location']['origin'];return _0x24953b=>new URL(_0x24953b,_0x3dba28['document']['baseURI'])['origin']==_0x6b6a5;}return'function'==typeof _0x22b6f2?_0x22b6f2:_0x22b6f2 instanceof RegExp?_0x3e71d6=>!(!_0x3e71d6['match'](_0x22b6f2)&&!_0x3e71d6['replace'](/^https?:\/\//,'')['match'](_0x22b6f2)):()=>!0x1;}function A(_0x302025,_0x19b2a1){return _0x39fded(_0x302025['target'])['includes'](_0x19b2a1);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5145a8(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1aea7f,_0x7f0ee8,_0x5392c0){super(),this['_editor']=_0x1aea7f,this['_editing']=_0x7f0ee8,this['_dialog']=_0x1aea7f['plugins']['get'](_0x33e502),this['_api']=_0x7f0ee8['ctxElement']['getAPI'](),this['_type']=_0x5392c0,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:_0x756eb9,model:_0x42c19f}=this['_editor'],_0xc83567=_0x42c19f['document']['selection']['getSelectedElement'](),_0x8e7772=_0xc83567&&(_0xc83567['is']('element','imageBlock')||_0xc83567['is']('element','imageInline'));this['_formView']=new x(_0x756eb9,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x1d19f1,'title':_(_0x756eb9,this['_type'],_0x8e7772?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2fd3ba['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1e93bf=>!A(_0x1e93bf,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3437cd}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x556991=>{const _0x5c0a33=_0x3437cd['length'];for(const _0x1cca87 of _0x3437cd){const _0x2d5cb0=_0x1cca87===_0x3437cd[_0x5c0a33-0x1],{cdnUrl:_0x394a48,fileInfo:_0x3c7434}=_0x1cca87;if(!_0x394a48||!_0x3c7434)continue;const {width:_0x4f1437,height:_0x14f55b}=_0x3c7434['imageInfo'],_0x570eea=S(_0x394a48,_0x4f1437,_0x14f55b),_0x4e0c0f=C(_0x394a48,_0x570eea['width']),_0x106361={'id':_0x3c7434['uuid'],'type':'image','attributes':{'imageDimension':_0x570eea,..._0x4e0c0f}};this['_insertAsset'](_0x106361,_0x2d5cb0,_0x556991);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xfec8c=>{'idle'===_0xfec8c['detail']['status']&&!_0xfec8c['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xa15854,_0x5df5b6,_0x3c9449){const _0x21082c=this['_editor']['model']['document']['selection'],_0x100929=_0x21082c['getSelectedElement'](),_0xab0a3f=!(!_0x100929||!_0x100929['is']('element','imageInline'));_0x3c9449['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xa15854,_0xab0a3f),_0x5df5b6||_0x3c9449['setSelection'](_0x21082c['getLastPosition']());}['_insertImage'](_0x26ed3d,_0x1d4cf6){const _0x56cf0c=this['_editor'],{imageDimension:_0x424b47,imageFallbackUrl:_0x4a1646,imageSources:_0x2d113b}=_0x26ed3d['attributes'];_0x56cf0c['execute']('insertImage',{'imageType':_0x1d4cf6?'imageInline':null,'source':{'uploadcareImageId':_0x26ed3d['id'],'src':_0x4a1646,'sources':_0x2d113b,..._0x424b47}});}}class w extends _0x2f344c{['_editing'];['_controller']=null;static get['requires'](){return[_0x33e502,o];}constructor(_0x268262){super(_0x268262),this['_editing']=_0x268262['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1a4c49){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1a4c49);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3584bd,..._0xb89de9}){return _0x169483(_0x3584bd,_0xb89de9);}static['getInfo'](_0x11c2b8,_0x1ca03b){return _0xbb9dcf(_0x11c2b8,_0x1ca03b);}}class f extends _0x10c45a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x453e68,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x11f8c9=this['editor'];if(!!!_0x11f8c9['config']['get']('uploadcare'))return;_0x11f8c9['plugins']['get'](_0x453e68)['createUploadAdapter']=_0x523f36=>new k(_0x523f36,_0x11f8c9),_0x11f8c9['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2422d0,{imageElement:_0x3a3afe,data:_0x31197a})=>{_0x11f8c9['model']['change'](_0x2274d4=>{_0x2274d4['setAttribute']('uploadcareImageId',_0x31197a['uploadcareImageId'],_0x3a3afe);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x423499,_0x396184){this['loader']=_0x423499,this['editor']=_0x396184,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3f62f0=await this['loader']['file'];return j['upload']({'file':_0x3f62f0,'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':_0x13a5c9=>{_0x13a5c9&&_0x13a5c9['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x13a5c9['value']);}})['then'](async _0x498d4e=>{const {imageFallbackUrl:_0x550c30,imageSources:_0x4a295d}=C(_0x498d4e['cdnUrl'],_0x498d4e['imageInfo']['width']);return{'uploadcareImageId':_0x498d4e['uuid'],'default':_0x550c30,'sources':_0x4a295d};})['catch'](()=>{const _0x3f0a4f=t('Cannot\x20upload\x20file:')+('\x20'+_0x3f62f0['name']+'.');return Promise['reject'](_0x3f0a4f);});}['abort'](){this['controller']['abort']();}}class o extends _0x10c45a{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x33e502];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xcb40fa){super(_0xcb40fa),this['ucContextId']=_0x4c2da3();}['init'](){const _0x5b53b9=this['editor'];_0x5b53b9['commands']['add']('uploadcare',new w(_0x5b53b9));}['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 _0xb1292b=_0x3dba28['document']['querySelector']('input[uploadcare-file-input]');_0xb1292b&&_0xb1292b['remove']();}),async function(_0x7db674){const _0x3baf7c=_0x38f672([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]),_0x2fbd48=0x3d8d0df,_0xb1bae7=0x3dfa387^_0x2fbd48,_0x4869ae=window[_0x38f672([0x44,0x61,0x74,0x65])][_0x38f672([0x6e,0x6f,0x77])](),_0x2ad0be=_0x7db674[_0x38f672([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x11412c=new window[(_0x38f672([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2be161=>{_0x2ad0be[_0x38f672([0x6f,0x6e,0x63,0x65])](_0x38f672([0x72,0x65,0x61,0x64,0x79]),_0x2be161);}),_0x14c05b={[_0x38f672([0x6b,0x74,0x79])]:_0x38f672([0x45,0x43]),[_0x38f672([0x75,0x73,0x65])]:_0x38f672([0x73,0x69,0x67]),[_0x38f672([0x63,0x72,0x76])]:_0x38f672([0x50,0x2d,0x32,0x35,0x36]),[_0x38f672([0x78])]:_0x38f672([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]),[_0x38f672([0x79])]:_0x38f672([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]),[_0x38f672([0x61,0x6c,0x67])]:_0x38f672([0x45,0x53,0x32,0x35,0x36])},_0x34c622=_0x2ad0be[_0x38f672([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x38f672([0x67,0x65,0x74])](_0x38f672([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4b9532(){let _0x43da45,_0x159027=null,_0x35ffd8=null;try{if(_0x34c622==_0x38f672([0x47,0x50,0x4c]))return _0x38f672([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x43da45=_0x3d6856(),!_0x43da45)return _0x38f672([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x43da45[_0x38f672([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x35ffd8=_0x1d0bb4(_0x43da45[_0x38f672([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x43da45[_0x38f672([0x6a,0x74,0x69])])),await _0x1cc948()?_0x45b6d2()?_0x5282e6()?_0x38f672([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3f3ff7()?(_0x43da45[_0x38f672([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38f672([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x159027=_0x165a2f(_0x38f672([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x43da45[_0x38f672([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38f672([0x74,0x72,0x69,0x61,0x6c])&&(_0x159027=_0x165a2f(_0x38f672([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x10db97()):_0x38f672([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x38f672([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x38f672([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x38f672([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5282e6(){const _0xed958a=[_0x38f672([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x38f672([0x74,0x72,0x69,0x61,0x6c])][_0x38f672([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43da45[_0x38f672([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4869ae/0x3e8:0xe10*_0xb1bae7;return _0x43da45[_0x38f672([0x65,0x78,0x70])]<_0xed958a;}function _0x45b6d2(){const _0x4de259=_0x43da45[_0x38f672([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4de259&&(!!_0x4de259[_0x38f672([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38f672([0x2a]))||!!_0x4de259[_0x38f672([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38f672([0x55,0x50,0x4c,0x43])));}function _0x3f3ff7(){const _0x1d5359=_0x43da45[_0x38f672([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1d5359||0x0==_0x1d5359[_0x38f672([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5c6a58}=new URL(window[_0x38f672([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1d5359[_0x38f672([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c6a58))return!0x0;const _0x1a36de=_0x5c6a58[_0x38f672([0x73,0x70,0x6c,0x69,0x74])](_0x38f672([0x2e]));return _0x1d5359[_0x38f672([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd5fcb5=>_0xd5fcb5[_0x38f672([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38f672([0x2a])))[_0x38f672([0x6d,0x61,0x70])](_0x3fc87a=>_0x3fc87a[_0x38f672([0x73,0x70,0x6c,0x69,0x74])](_0x38f672([0x2e])))[_0x38f672([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f39f0=>_0x2f39f0[_0x38f672([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1a36de[_0x38f672([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x38f672([0x6d,0x61,0x70])](_0x359b37=>Array(_0x1a36de[_0x38f672([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x359b37[_0x38f672([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x38f672([0x66,0x69,0x6c,0x6c])](_0x359b37[0x0]===_0x38f672([0x2a])?_0x38f672([0x2a]):'')[_0x38f672([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x359b37))[_0x38f672([0x73,0x6f,0x6d,0x65])](_0xc58ba2=>_0x1a36de[_0x38f672([0x65,0x76,0x65,0x72,0x79])]((_0x19053a,_0x57cf05)=>_0xc58ba2[_0x57cf05]===_0x19053a||_0xc58ba2[_0x57cf05]===_0x38f672([0x2a])));}function _0x10db97(){return _0x159027&&_0x35ffd8?new window[(_0x38f672([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x70ea16,_0x36f7b6)=>{_0x159027[_0x38f672([0x74,0x68,0x65,0x6e])](_0x70ea16,_0x36f7b6),_0x35ffd8[_0x38f672([0x74,0x68,0x65,0x6e])](_0xf5f247=>{_0xf5f247!=_0x38f672([0x56,0x61,0x6c,0x69,0x64])&&_0x70ea16(_0xf5f247);},_0x36f7b6);}):_0x159027||_0x35ffd8||_0x38f672([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1d0bb4(_0x2025fe,_0x7718de){return new window[(_0x38f672([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x192959=>{if(_0x265d2b())return _0x192959(_0x38f672([0x56,0x61,0x6c,0x69,0x64]));_0xfca1a3(),_0x2ad0be[_0x38f672([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x38f672([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x199f36=!0x1;const _0x3b34e4=_0x4c2da3();function _0x1b5e1f(_0x56f955){return!!_0x56f955&&(typeof _0x56f955===_0x38f672([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x56f955===_0x38f672([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x56f955[_0x38f672([0x74,0x68,0x65,0x6e])]===_0x38f672([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x56f955[_0x38f672([0x63,0x61,0x74,0x63,0x68])]===_0x38f672([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3a0a34(_0x5af622){_0x1414c2(_0x5af622)[_0x38f672([0x74,0x68,0x65,0x6e])](_0x2f52a2=>{if(!_0x2f52a2||_0x2f52a2[_0x38f672([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x38f672([0x6f,0x6b]))return _0x38f672([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1ad5c2(_0xf13a11(_0x3b34e4+_0x7718de))!=_0x2f52a2[_0x38f672([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x38f672([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x38f672([0x56,0x61,0x6c,0x69,0x64]);})[_0x38f672([0x74,0x68,0x65,0x6e])](_0x4be7b3=>(_0x5bf45f(),_0x4be7b3),()=>{const _0x3241c9=_0x305951();return null==_0x3241c9?(_0x5bf45f(),_0x38f672([0x56,0x61,0x6c,0x69,0x64])):_0x38f672(_0x4869ae-_0x3241c9>(0x27d454df^_0x2fbd48)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x38f672([0x74,0x68,0x65,0x6e])](_0x192959)[_0x38f672([0x63,0x61,0x74,0x63,0x68])](()=>{_0x192959(_0x38f672([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x268137=0x3ee3e5f^_0x2fbd48;function _0x5bf45f(){const _0x57f3c3=_0x38f672([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ad5c2(_0xf13a11(_0x2025fe)),_0x3866c9=_0xd0fbbc(_0x1ad5c2(window[_0x38f672([0x4d,0x61,0x74,0x68])][_0x38f672([0x63,0x65,0x69,0x6c])](_0x4869ae/_0x268137)));window[_0x38f672([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38f672([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57f3c3,_0x3866c9);}function _0x305951(){const _0x917aa7=_0x38f672([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ad5c2(_0xf13a11(_0x2025fe)),_0x931d49=window[_0x38f672([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38f672([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x917aa7);return _0x931d49?window[_0x38f672([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd0fbbc(_0x931d49),0x10)*_0x268137:null;}function _0x1414c2(_0xc9b60f){return new window[(_0x38f672([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5455be,_0x22930e)=>{_0xc9b60f[_0x38f672([0x74,0x68,0x65,0x6e])](_0x5455be,_0x22930e),window[_0x38f672([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22930e,0x3d9041f^_0x2fbd48);});}}_0x2ad0be[_0x38f672([0x6f,0x6e])](_0x38f672([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a72b3,_0x157a7c)=>{if(_0x157a7c[0x0]!=_0x2025fe)return _0x192959(_0x38f672([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x157a7c[0x1]={..._0x157a7c[0x1],[_0x38f672([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3b34e4};},{[_0x38f672([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38f672([0x68,0x69,0x67,0x68])}),_0x2ad0be[_0x38f672([0x6f,0x6e])](_0x38f672([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x518297=>{_0x1b5e1f(_0x518297[_0x38f672([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x199f36=!0x0,_0x3a0a34(_0x518297[_0x38f672([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x38f672([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38f672([0x6c,0x6f,0x77])}),_0x11412c[_0x38f672([0x74,0x68,0x65,0x6e])](()=>{_0x199f36||_0x192959(_0x38f672([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x265d2b(){return _0x2ad0be[_0x38f672([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38f672([0x76,0x69,0x65,0x77])][_0x38f672([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x38f672([0x61,0x75,0x74,0x6f]);}function _0xfca1a3(){_0x2ad0be[_0x38f672([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38f672([0x76,0x69,0x65,0x77])][_0x38f672([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x38f672([0x61,0x75,0x74,0x6f]);}}function _0x165a2f(_0x3d7ec7){const _0x4445e8=[new window[(_0x38f672([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a7b38=>setTimeout(_0x1a7b38,0x3d1ee13^_0x2fbd48)),_0x11412c[_0x38f672([0x74,0x68,0x65,0x6e])](()=>new window[(_0x38f672([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b6a7f=>{let _0x2ef31c=0x0;_0x2ad0be[_0x38f672([0x6d,0x6f,0x64,0x65,0x6c])][_0x38f672([0x6f,0x6e])](_0x38f672([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3f040a,_0x5e2523)=>{_0x5e2523[0x0][_0x38f672([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2ef31c++,_0x2ef31c==(0x3d8d127^_0x2fbd48)&&(_0x2b6a7f(),_0x3f040a[_0x38f672([0x6f,0x66,0x66])]());});}))];return window[_0x38f672([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x38f672([0x72,0x61,0x63,0x65])](_0x4445e8)[_0x38f672([0x74,0x68,0x65,0x6e])](()=>_0x3d7ec7);}async function _0x199c0e(){await _0x11412c,_0x2ad0be[_0x38f672([0x6d,0x6f,0x64,0x65,0x6c])][_0x38f672([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x36e39f,_0x2ad0be[_0x38f672([0x6d,0x6f,0x64,0x65,0x6c])][_0x38f672([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x36e39f,_0x2ad0be[_0x38f672([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x38f672([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4c6ef6(_0xfa39f1){const _0x12d3b0=_0x17e9b2();_0x2ad0be[_0x12d3b0]=_0x38f672([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xfa39f1,_0xfa39f1!=_0x38f672([0x56,0x61,0x6c,0x69,0x64])&&_0x199c0e();}function _0x17e9b2(){const _0x4e9549=window[_0x38f672([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x38f672([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x38f672([0x6e,0x6f,0x77])]())[_0x38f672([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x38f672([0x2e]),'');let _0x49fffe=_0x38f672([0x52]);for(let _0x370c5a=0x0;_0x370c5a<_0x4e9549[_0x38f672([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x370c5a+=0x2){let _0x59ff45=window[_0x38f672([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e9549[_0x38f672([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x370c5a,_0x370c5a+0x2));_0x59ff45>=_0x3baf7c[_0x38f672([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x59ff45-=_0x3baf7c[_0x38f672([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x49fffe+=_0x3baf7c[_0x59ff45];}return _0x49fffe;}function _0x3d6856(){const _0x512e15=_0x34c622[_0x38f672([0x73,0x70,0x6c,0x69,0x74])](_0x38f672([0x2e]));if(0x3!=_0x512e15[_0x38f672([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x10c821(_0x512e15[0x1]);function _0x10c821(_0x48c973){const _0x41fef3=_0x2b5816(_0x48c973);return _0x41fef3&&_0x3394a3()?_0x41fef3:null;function _0x3394a3(){const _0x4523cf=_0x41fef3[_0x38f672([0x6a,0x74,0x69])],_0x3b8a74=window[_0x38f672([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4523cf[_0x38f672([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4523cf[_0x38f672([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4825e4={..._0x41fef3,[_0x38f672([0x6a,0x74,0x69])]:_0x4523cf[_0x38f672([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4523cf[_0x38f672([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4825e4[_0x38f672([0x76,0x63])],_0xf13a11(_0x4825e4)==_0x3b8a74;}}}async function _0x1cc948(){let _0x18b33a=!0x0;try{const _0x1dc5d1=_0x34c622[_0x38f672([0x73,0x70,0x6c,0x69,0x74])](_0x38f672([0x2e])),[_0x43fda4,_0x29a3bd,_0x4f2a78]=_0x1dc5d1;return _0x2ba89a(_0x43fda4),await _0x11c87a(_0x43fda4,_0x29a3bd,_0x4f2a78),_0x18b33a;}catch{return!0x1;}function _0x2ba89a(_0x53a946){const _0x1e9bba=_0x2b5816(_0x53a946);_0x1e9bba&&_0x1e9bba[_0x38f672([0x61,0x6c,0x67])]==_0x38f672([0x45,0x53,0x32,0x35,0x36])||(_0x18b33a=!0x1);}async function _0x11c87a(_0x10188a,_0x50e84d,_0x121ff1){const _0x1e52bb=window[_0x38f672([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x38f672([0x66,0x72,0x6f,0x6d])](_0x468efe(_0x121ff1),_0x1a025c=>_0x1a025c[_0x38f672([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xad520a=new window[(_0x38f672([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x38f672([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x10188a+_0x38f672([0x2e])+_0x50e84d),_0x58153d=window[_0x38f672([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x38f672([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x58153d)return;const _0x59e9c7=await _0x58153d[_0x38f672([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x38f672([0x6a,0x77,0x6b]),_0x14c05b,{[_0x38f672([0x6e,0x61,0x6d,0x65])]:_0x38f672([0x45,0x43,0x44,0x53,0x41]),[_0x38f672([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x38f672([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x38f672([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x58153d[_0x38f672([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x38f672([0x6e,0x61,0x6d,0x65])]:_0x38f672([0x45,0x43,0x44,0x53,0x41]),[_0x38f672([0x68,0x61,0x73,0x68])]:{[_0x38f672([0x6e,0x61,0x6d,0x65])]:_0x38f672([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x59e9c7,_0x1e52bb,_0xad520a)||(_0x18b33a=!0x1);}}function _0x2b5816(_0x42ac4c){return _0x42ac4c[_0x38f672([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x38f672([0x65,0x79]))?JSON[_0x38f672([0x70,0x61,0x72,0x73,0x65])](_0x468efe(_0x42ac4c)):null;}function _0x468efe(_0x4f7658){return window[_0x38f672([0x61,0x74,0x6f,0x62])](_0x4f7658[_0x38f672([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x38f672([0x2b]))[_0x38f672([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x38f672([0x2f])));}function _0xf13a11(_0x528c90){let _0x313879=0x1505;function _0x54aaf3(_0xfb2b29){for(let _0x4ae354=0x0;_0x4ae354<_0xfb2b29[_0x38f672([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ae354++){const _0xbd5417=_0xfb2b29[_0x38f672([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ae354);_0x313879=(_0x313879<<0x5)+_0x313879+_0xbd5417,_0x313879&=_0x313879;}}function _0x1c5420(_0x10c9b6){Array[_0x38f672([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10c9b6)?_0x10c9b6[_0x38f672([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1c5420):_0x10c9b6&&typeof _0x10c9b6==_0x38f672([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x38f672([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10c9b6)[_0x38f672([0x73,0x6f,0x72,0x74])]()[_0x38f672([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x15c5c1,_0x3a7353])=>{_0x54aaf3(_0x15c5c1),_0x1c5420(_0x3a7353);}):_0x54aaf3(window[_0x38f672([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10c9b6));}return _0x1c5420(_0x528c90),_0x313879>>>0x0;}function _0x1ad5c2(_0x39b6f9){return _0x39b6f9[_0x38f672([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x38f672([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x38f672([0x30]));}function _0xd0fbbc(_0x4f15e3){return _0x4f15e3[_0x38f672([0x73,0x70,0x6c,0x69,0x74])]('')[_0x38f672([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x38f672([0x6a,0x6f,0x69,0x6e])]('');}function _0x36e39f(){}function _0x38f672(_0x2bb023){return _0x2bb023['map'](_0x4eefeb=>String['fromCharCode'](_0x4eefeb))['join']('');}_0x4c6ef6(await _0x4b9532());}(this);}['_initSchema'](){const _0x6cd666=this['editor']['model']['schema'];_0x6cd666['isRegistered']('imageBlock')&&_0x6cd666['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x6cd666['isRegistered']('imageInline')&&_0x6cd666['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x640c18=this['editor'];_0x640c18['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x640c18['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x41af44=>_0x41af44['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x6f5d97=_0x640c18['commands']['get']('replaceImageSource');_0x6f5d97&&this['listenTo'](_0x6f5d97,'cleanupImage',(_0x16a423,[_0x32efec,_0x3c2964])=>{_0x32efec['removeAttribute']('uploadcareImageId',_0x3c2964);});}['_initConfig'](){const _0x6b1cd5=this['editor']['config']['get']('uploadcare.uploader')||{},_0x40c22d=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x18d39c(_0x3dba28['document'],'uc-config',{..._0x6b1cd5,'pubkey':_0x40c22d,'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']=_0x200794=>{if('closeMax'==_0x200794)return'#uc-icon-arrow-down';},_0x3dba28['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x18d39c(_0x3dba28['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3dba28['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4a458f=this['editor']['commands']['get']('insertImage');_0x4a458f&&this['listenTo'](_0x4a458f,'execute',()=>{const _0x5837c5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5837c5&&_0x5837c5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5837c5);});});const _0x430bde=this['editor']['commands']['get']('uploadcareImageReplace');_0x430bde&&this['listenTo'](_0x430bde,'execute',()=>{const _0x16a3b8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x16a3b8&&_0x16a3b8['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x16a3b8);});});}}class tt extends _0x10c45a{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x27b9c1){super(_0x27b9c1),_0x27b9c1['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3f3a16['defineComponents'](_0x3f3a16);}}class ii extends _0x4f5ec2{constructor(_0x212d2c){super(_0x212d2c);const t=_0x212d2c['t'],_0x314709=this['bindTemplate'],_0x12da8e=new _0x343d96();_0x12da8e['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':[_0x12da8e,{'text':_0x314709['to']('imageUploadProgress',_0x2c15ab=>t('Loading\x20image...')+'\x20('+(_0x2c15ab||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 _0x4f5ec2{constructor(_0x155d09){super(_0x155d09);const t=_0x155d09['t'];this['set']('errorType',null);const _0x2d8904=new _0x4da067(_0x155d09);_0x2d8904['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2d8904['withText']=!0x0,_0x2d8904['class']='ck-button-action',_0x2d8904['on']('execute',()=>{this['fire']('retry');}),_0x2d8904['bind']('isVisible')['to'](this,'errorType',_0x10a6ab=>'NotFound'!==_0x10a6ab);const _0x59c967=new _0xfc2a90();_0x59c967['content']=_0x3a0171,_0x59c967['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3fe2a6=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':[_0x59c967,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3fe2a6['to']('errorType',_0x50d06e=>t('NotFound'!==_0x50d06e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2d8904]},{'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 _0x4f5ec2{constructor(_0x244307,_0x1efa4a){super(_0x244307);const _0x5ebf75=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1efa4a,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5ebf75['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x15c9b2,_0x534f16,_0x2d96e1){super(_0x15c9b2),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x15c9b2),this['_errorView']=new ti(_0x15c9b2),this['_editingView']=new ei(_0x15c9b2,_0x2d96e1),this['_focusableView']=new _0x4f5ec2(_0x15c9b2),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x534f16),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'],_0x29655a=>{this['_addUploadcareImageEditorListeners'](_0x29655a);});}),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'](_0x384354,_0x50fd65){const _0x5bdebf='uc-cloud-image-editor',_0x106ca1=_0x384354['querySelector'](_0x5bdebf);if(_0x106ca1)return _0x50fd65(_0x106ca1);const _0x5aff2d=new MutationObserver(_0x5cb4b0=>{const _0x1d1889=_0x5cb4b0['filter'](_0x2baf8e=>_0x2baf8e['target']===_0x384354&&_0x2baf8e['addedNodes']['length']>0x0&&_0x2baf8e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5bdebf);_0x1d1889['length']&&(_0x5aff2d['disconnect'](),_0x50fd65(_0x1d1889[0x0]['addedNodes'][0x0]));});_0x5aff2d['observe'](_0x384354,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x16199e){_0x16199e['addEventListener']('apply',_0x3a0982=>{this['fire']('apply',{'imageSrc':_0x3a0982['detail']['cdnUrl']});}),_0x16199e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5145a8(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x376675,_0x1a8d67,_0x4c65f8){super(),this['_editor']=_0x376675,this['_dialog']=_0x1a8d67,this['_imageElement']=_0x4c65f8,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 _0x4f254a=this['_imageElement'],_0x304205=_0x4f254a['getAttribute']('uploadcareImageId'),_0x39d1a2=_0x4f254a['getAttribute']('src');if(_0x304205)await this['_loadImageInfo'](_0x304205,_0x39d1a2);else{if(this['_imageCache']['has'](_0x39d1a2)){const _0x1a25cd=this['_imageCache']['get'](_0x39d1a2);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1a25cd['url'],this['imageDimension']=_0x1a25cd['dimension'],this['imageId']=_0x1a25cd['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x32eb92}=this['_editor'],t=_0x32eb92['t'],_0x1a5245=new X(_0x32eb92,this['imageStatus'],this['_attributes']);_0x1a5245['bind']('status')['to'](this,'imageStatus'),_0x1a5245['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1a5245['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1a5245['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1a5245,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x13fa14,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1a5245,'position':_0x2fd3ba['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1a5245['focus']();},'onHide':()=>{_0x1a5245['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xb6f354=>!A(_0xb6f354,_0x1a5245['element'])}});}['_loadImageInfo'](_0x481018,_0x6fccf0){return j['getInfo'](_0x481018,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x19643e=>{const {width:_0x3f1232,height:_0x265181}=_0x19643e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x6fccf0,this['imageDimension']={'width':_0x3f1232,'height':_0x265181},this['imageId']=_0x481018;})['catch'](_0x4841c6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4841c6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2f84ea,_0x577555){return this['_getImageAsFile'](_0x2f84ea)['then'](_0x1ab6bc=>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':_0x577555['signal'],'file':_0x1ab6bc,'onProgress':_0x2c3b7a=>{_0x2c3b7a&&_0x2c3b7a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2c3b7a['value']));}}))['then'](_0x591df4=>{const {width:_0x506362,height:_0x444d57}=_0x591df4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x591df4['cdnUrl'],this['imageDimension']={'width':_0x506362,'height':_0x444d57},this['imageId']=_0x591df4['uuid'],this['imageUploadProgress']=null;const _0x345127=_0x2f84ea['getAttribute']('src');this['_imageCache']['set'](_0x345127,{'id':_0x591df4['uuid'],'url':_0x591df4['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x362e68=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x362e68['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1a5140,_0xe0d1de){_0x1a5140['on']('apply',(_0x2c51ae,_0x5b86bb)=>{this['_replaceImage'](_0xe0d1de,_0x5b86bb['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1a5140['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1a5140['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xe0379b,_0x9040ca,_0x395a60){const _0x46ade6=this['_editor'],{width:_0x42f09a,height:_0x5a782e}=S(_0x9040ca,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xf8201b,imageSources:_0x1d29f8}=C(_0x9040ca,_0x42f09a);_0x46ade6['model']['change'](_0x14ba62=>{if('$graveyard'===_0xe0379b['root']['rootName']){_0x46ade6['execute']('insertImage',{'imageType':_0xe0379b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xe0379b['getAttributes']()),'uploadcareImageId':_0x395a60,'src':_0xf8201b,'sources':_0x1d29f8,'width':_0x42f09a,'height':_0x5a782e}});const _0x20532d=_0xe0379b['getChildren']();_0xe0379b=_0x46ade6['model']['document']['selection']['getSelectedElement']();for(const _0x4304ab of _0x20532d)_0x14ba62['append'](_0x14ba62['cloneElement'](_0x4304ab),_0xe0379b);}else _0x14ba62['setSelection'](_0xe0379b,'on'),_0x46ade6['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xe0379b['getAttributes']()),'uploadcareImageId':_0x395a60,'src':_0xf8201b,'sources':_0x1d29f8,'width':_0x42f09a,'height':_0x5a782e},_0xe0379b);_0x14ba62['setSelection'](_0xe0379b,'on');});}async['_getImageAsFile'](_0x129908){const _0x518bac=_0x3dba28['window'],_0x4e8d35=_0x3dba28['document']['location']['href'],_0x3021f5=new _0x518bac['URL'](_0x129908['getAttribute']('src'),_0x4e8d35);if('data:'===_0x3021f5['protocol']){const _0x22f950=_0x3021f5['href']['split'](','),_0x415a53=_0x22f950[0x0]['match'](/:(.*?);/)[0x1],_0x4d806d=_0x415a53['split']('/')[0x1],_0x3f4a13=_0x518bac['atob'](_0x22f950[_0x22f950['length']-0x1]);let _0x4326c0=_0x3f4a13['length'];const _0x3c8d8c=new _0x518bac['Uint8Array'](_0x4326c0);for(;_0x4326c0--;)_0x3c8d8c[_0x4326c0]=_0x3f4a13['charCodeAt'](_0x4326c0);return new _0x518bac['File']([_0x3c8d8c],'image.'+_0x4d806d,{'type':_0x415a53});}const _0x414dac=_0x3021f5['href']['split']('/'),_0x57bb3c=_0x414dac[_0x414dac['length']-0x1],_0x1c2323=_0x57bb3c['split']('.')[0x1];return _0x518bac['fetch'](_0x3021f5['href'])['then'](_0x4e3bc9=>_0x4e3bc9['clone']()['blob']())['then'](_0x4948d0=>new _0x518bac['File']([_0x4948d0],_0x57bb3c,{'type':'image/'+_0x1c2323}));}}class O extends _0x2f344c{['imageEditController'];static get['requires'](){return[_0x33e502];}['_isEditable'];constructor(_0x35bcfa){super(_0x35bcfa),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2edc8a){const _0x46133c=G(_0x2edc8a);return _0x50e037=>!(!_0x50e037||!_0x50e037['is']('element','imageBlock')&&!_0x50e037['is']('element','imageInline'))&&(!!_0x50e037['hasAttribute']('uploadcareImageId')||!!_0x50e037['hasAttribute']('src')&&_0x46133c(_0x50e037['getAttribute']('src')));}(_0x35bcfa['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1a5a78=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1a5a78);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3e8c74=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3e8c74&&(_0x3e8c74['is']('element','imageBlock')||_0x3e8c74['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x33e502),_0x3e8c74),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x2f344c{['refresh'](){const _0x3bb5b3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3bb5b3&&(_0x3bb5b3['is']('element','imageBlock')||_0x3bb5b3['is']('element','imageInline')));}['execute'](_0x3e55ca){const _0x59f75a=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2205d6=>{_0x2205d6['setAttributes'](_0x3e55ca,_0x59f75a),_0x2205d6['removeAttribute']('srcset',_0x59f75a),_0x2205d6['removeAttribute']('sizes',_0x59f75a);});}}class m extends _0x10c45a{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1fb565,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x31d880}=this;_0x31d880['commands']['add']('uploadcareImageEdit',new O(_0x31d880)),_0x31d880['commands']['add']('uploadcareImageReplace',new R(_0x31d880));}}class g extends _0x10c45a{['_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 _0x2e9ae0=this['editor'];_0x2e9ae0['ui']['componentFactory']['add']('uploadcareImageEdit',_0x576d38=>{const _0x3ae5b1=_0x2e9ae0['commands']['get']('uploadcareImageEdit'),_0x1b25b2=new _0x4da067(_0x576d38),t=_0x576d38['t'];return _0x1b25b2['set']({'icon':_0x13fa14,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1b25b2['bind']('isEnabled')['to'](_0x3ae5b1),_0x1b25b2['bind']('isOn')['to'](_0x3ae5b1,'isActive'),this['listenTo'](_0x1b25b2,'execute',()=>{_0x2e9ae0['execute']('uploadcareImageEdit'),_0x2e9ae0['editing']['view']['focus']();}),_0x1b25b2;}),this['_initConfig']();}['_initConfig'](){const _0x5a80cd=_0x18d39c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5a80cd),this['listenTo'](this['editor'],'destroy',()=>{_0x5a80cd['remove']();});}}class et extends _0x10c45a{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": "46.1.1-alpha.
|
|
3
|
+
"version": "46.1.1-alpha.2",
|
|
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": "46.1.1-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "46.1.1-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-image": "46.1.1-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "46.1.1-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "46.1.1-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "46.1.1-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "46.1.1-alpha.
|
|
33
|
-
"ckeditor5": "46.1.1-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "46.1.1-alpha.2",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "46.1.1-alpha.2",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "46.1.1-alpha.2",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "46.1.1-alpha.2",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "46.1.1-alpha.2",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "46.1.1-alpha.2",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "46.1.1-alpha.2",
|
|
33
|
+
"ckeditor5": "46.1.1-alpha.2",
|
|
34
34
|
"@uploadcare/file-uploader": "1.19.4",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x4d49(){const _0x5f0e81=['insertImage','listenTo','fromCharCode','configElement','29762wsCzYR','init','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','UploadcareEditing','6mSnToZ','for','render','get','2482375qNiLpi','86196wakYZt','#uc-icon-arrow-down','editor','appendChild','isPremiumPlugin','_initImageProcessingIndicator','iconHrefResolver','_ctxElement','1288pYNYhs','afterInit','264733KrxZng','pluginName','ctxElement','body','PictureEditing','locale','imageInline','attributeToAttribute','extend','selection','ucContextId','_initCtx','isRegistered','uploadcareImageReplace','replaceImageSource','schema','removeAttribute','uc-config','config','true','execute','elementToAttribute','_initSchema','document','1444037OMliqE','uploadcare','isOfficialPlugin','once','querySelector','upcast','conversion','editing','input[uploadcare-file-input]','contentLanguage','_configElement','getSelectedElement','_initConversion','uploader-','49473NKLREY','commands','imageBlock','closeMax','model','_initConfig','uc-upload-ctx-provider','uploadcareImageId','href','requires','data-uc-image-id','add','map','uploadcare.uploader','cleanupImage','getAttribute','downcast','view','destroy','uploadcare.pubkey','1595816sBuetu','join','remove'];_0x4d49=function(){return _0x5f0e81;};return _0x4d49();}function _0x246c(_0x345f4b,_0x2a87fa){const _0x4d497a=_0x4d49();return _0x246c=function(_0x246cd8,_0x48a9c2){_0x246cd8=_0x246cd8-0x16a;let _0x819059=_0x4d497a[_0x246cd8];return _0x819059;},_0x246c(_0x345f4b,_0x2a87fa);}const _0x145032=_0x246c;(function(_0x9e82d4,_0x52d709){const _0x1377b9=_0x246c,_0x21d39d=_0x9e82d4();while(!![]){try{const _0x4adbe3=-parseInt(_0x1377b9(0x195))/0x1+parseInt(_0x1377b9(0x182))/0x2+-parseInt(_0x1377b9(0x18b))/0x3+parseInt(_0x1377b9(0x17b))/0x4+-parseInt(_0x1377b9(0x18a))/0x5*(parseInt(_0x1377b9(0x186))/0x6)+-parseInt(_0x1377b9(0x1ad))/0x7+-parseInt(_0x1377b9(0x193))/0x8*(-parseInt(_0x1377b9(0x1bb))/0x9);if(_0x4adbe3===_0x52d709)break;else _0x21d39d['push'](_0x21d39d['shift']());}catch(_0x5a4374){_0x21d39d['push'](_0x21d39d['shift']());}}}(_0x4d49,0x49e1d));import{Plugin as _0x550a3e}from'ckeditor5/src/core.js';import{Dialog as _0x5c5418}from'ckeditor5/src/ui.js';import{createElement as _0x1e82e0,global as _0x12e3a6,uid as _0x2d75a3}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x7b2e4b}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x8e0037}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x36d461}from'./utils/editingutils.js';export class UploadcareEditing extends _0x550a3e{[_0x145032(0x1b7)]=null;[_0x145032(0x192)]=null;static get[_0x145032(0x196)](){const _0x5b2d13=_0x145032;return _0x5b2d13(0x185);}static get[_0x145032(0x170)](){const _0x22ce6a=_0x145032;return[_0x22ce6a(0x199),_0x8e0037,_0x5c5418];}static get[_0x145032(0x1af)](){return!0x0;}static get[_0x145032(0x18f)](){return!0x0;}[_0x145032(0x19f)];get[_0x145032(0x181)](){const _0xa5703d=_0x145032;return this[_0xa5703d(0x1b7)];}get[_0x145032(0x197)](){const _0x17de52=_0x145032;return this[_0x17de52(0x192)];}constructor(_0xc5ca7c){const _0xb0c4e0=_0x145032;super(_0xc5ca7c),this[_0xb0c4e0(0x19f)]=_0x2d75a3();}[_0x145032(0x183)](){const _0x51d907=_0x145032,_0x2c718e=this[_0x51d907(0x18d)];_0x2c718e[_0x51d907(0x1bc)][_0x51d907(0x172)](_0x51d907(0x1ae),new _0x7b2e4b(_0x2c718e));}[_0x145032(0x194)](){const _0x4a6e83=_0x145032;this[_0x4a6e83(0x1ab)](),this[_0x4a6e83(0x1b9)](),this[_0x4a6e83(0x16c)](),this[_0x4a6e83(0x1a0)](),this[_0x4a6e83(0x190)](),this[_0x4a6e83(0x17f)](this[_0x4a6e83(0x18d)],_0x4a6e83(0x179),()=>{const _0x2c0348=_0x4a6e83;this[_0x2c0348(0x1b7)]&&(this[_0x2c0348(0x1b7)][_0x2c0348(0x17d)](),this[_0x2c0348(0x1b7)]=null),this[_0x2c0348(0x192)]&&(this[_0x2c0348(0x192)][_0x2c0348(0x17d)](),this[_0x2c0348(0x192)]=null);const _0x4411a0=_0x12e3a6[_0x2c0348(0x1ac)][_0x2c0348(0x1b1)](_0x2c0348(0x1b5));_0x4411a0&&_0x4411a0[_0x2c0348(0x17d)]();}),async function(_0x586b0a){const _0x17c257=_0x885fac([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]),_0x152eed=0x3d8d0df,_0x395080=0x3dfa39f^_0x152eed,_0x4c24e1=window[_0x885fac([0x44,0x61,0x74,0x65])][_0x885fac([0x6e,0x6f,0x77])](),_0x1f8d9c=_0x586b0a[_0x885fac([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2bccb4=new window[(_0x885fac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f613c=>{_0x1f8d9c[_0x885fac([0x6f,0x6e,0x63,0x65])](_0x885fac([0x72,0x65,0x61,0x64,0x79]),_0x3f613c);}),_0x21010b={[_0x885fac([0x6b,0x74,0x79])]:_0x885fac([0x45,0x43]),[_0x885fac([0x75,0x73,0x65])]:_0x885fac([0x73,0x69,0x67]),[_0x885fac([0x63,0x72,0x76])]:_0x885fac([0x50,0x2d,0x32,0x35,0x36]),[_0x885fac([0x78])]:_0x885fac([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]),[_0x885fac([0x79])]:_0x885fac([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]),[_0x885fac([0x61,0x6c,0x67])]:_0x885fac([0x45,0x53,0x32,0x35,0x36])},_0x34102f=_0x1f8d9c[_0x885fac([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x885fac([0x67,0x65,0x74])](_0x885fac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x433de4(){let _0x19d3c3,_0x586464=null,_0x58402c=null;try{if(_0x34102f==_0x885fac([0x47,0x50,0x4c]))return _0x885fac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x19d3c3=_0x13ffa9(),!_0x19d3c3)return _0x885fac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x19d3c3[_0x885fac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x58402c=_0x59c586(_0x19d3c3[_0x885fac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x19d3c3[_0x885fac([0x6a,0x74,0x69])])),await _0x1911d2()?_0x411550()?_0x2f4f67()?_0x885fac([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4c69a3()?(_0x19d3c3[_0x885fac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x885fac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x586464=_0x4cc40f(_0x885fac([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x19d3c3[_0x885fac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x885fac([0x74,0x72,0x69,0x61,0x6c])&&(_0x586464=_0x4cc40f(_0x885fac([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4843c2()):_0x885fac([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x885fac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x885fac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x885fac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f4f67(){const _0x2a00ee=[_0x885fac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x885fac([0x74,0x72,0x69,0x61,0x6c])][_0x885fac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19d3c3[_0x885fac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4c24e1/0x3e8:0xe10*_0x395080;return _0x19d3c3[_0x885fac([0x65,0x78,0x70])]<_0x2a00ee;}function _0x411550(){const _0x2b007f=_0x19d3c3[_0x885fac([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2b007f&&(!!_0x2b007f[_0x885fac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x885fac([0x2a]))||!!_0x2b007f[_0x885fac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x885fac([0x55,0x50,0x4c,0x43])));}function _0x4c69a3(){const _0x24f4c7=_0x246c,_0x2809bf=_0x19d3c3[_0x885fac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2809bf||0x0==_0x2809bf[_0x885fac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x360e3c}=new URL(window[_0x885fac([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x24f4c7(0x16f)]);if(_0x2809bf[_0x885fac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x360e3c))return!0x0;const _0x4bd35f=_0x360e3c[_0x885fac([0x73,0x70,0x6c,0x69,0x74])](_0x885fac([0x2e]));return _0x2809bf[_0x885fac([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xed2e0e=>_0xed2e0e[_0x885fac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x885fac([0x2a])))[_0x885fac([0x6d,0x61,0x70])](_0x2c33d8=>_0x2c33d8[_0x885fac([0x73,0x70,0x6c,0x69,0x74])](_0x885fac([0x2e])))[_0x885fac([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e0111=>_0x2e0111[_0x885fac([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4bd35f[_0x885fac([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x885fac([0x6d,0x61,0x70])](_0x877f2d=>Array(_0x4bd35f[_0x885fac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x877f2d[_0x885fac([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x885fac([0x66,0x69,0x6c,0x6c])](_0x877f2d[0x0]===_0x885fac([0x2a])?_0x885fac([0x2a]):'')[_0x885fac([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x877f2d))[_0x885fac([0x73,0x6f,0x6d,0x65])](_0x1e4ec7=>_0x4bd35f[_0x885fac([0x65,0x76,0x65,0x72,0x79])]((_0x1e1c26,_0x4b0c91)=>_0x1e4ec7[_0x4b0c91]===_0x1e1c26||_0x1e4ec7[_0x4b0c91]===_0x885fac([0x2a])));}function _0x4843c2(){return _0x586464&&_0x58402c?new window[(_0x885fac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55ef17,_0x1d202b)=>{_0x586464[_0x885fac([0x74,0x68,0x65,0x6e])](_0x55ef17,_0x1d202b),_0x58402c[_0x885fac([0x74,0x68,0x65,0x6e])](_0x142159=>{_0x142159!=_0x885fac([0x56,0x61,0x6c,0x69,0x64])&&_0x55ef17(_0x142159);},_0x1d202b);}):_0x586464||_0x58402c||_0x885fac([0x56,0x61,0x6c,0x69,0x64]);}}function _0x59c586(_0x320620,_0x5842db){return new window[(_0x885fac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a95cb=>{if(_0x13ae8f())return _0x4a95cb(_0x885fac([0x56,0x61,0x6c,0x69,0x64]));_0x14d062(),_0x1f8d9c[_0x885fac([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x885fac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4c5922=!0x1;const _0x297bc3=_0x2d75a3();function _0x33323b(_0x2e77fb){return!!_0x2e77fb&&(typeof _0x2e77fb===_0x885fac([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2e77fb===_0x885fac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2e77fb[_0x885fac([0x74,0x68,0x65,0x6e])]===_0x885fac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2e77fb[_0x885fac([0x63,0x61,0x74,0x63,0x68])]===_0x885fac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x18ea21(_0x4688f5){_0x2f9cc4(_0x4688f5)[_0x885fac([0x74,0x68,0x65,0x6e])](_0x1a32d7=>{if(!_0x1a32d7||_0x1a32d7[_0x885fac([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x885fac([0x6f,0x6b]))return _0x885fac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x10ffb7(_0x32b4f0(_0x297bc3+_0x5842db))!=_0x1a32d7[_0x885fac([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x885fac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x885fac([0x56,0x61,0x6c,0x69,0x64]);})[_0x885fac([0x74,0x68,0x65,0x6e])](_0x4ac3ac=>(_0x525f02(),_0x4ac3ac),()=>{const _0x31a997=_0x270e95();return null==_0x31a997?(_0x525f02(),_0x885fac([0x56,0x61,0x6c,0x69,0x64])):_0x885fac(_0x4c24e1-_0x31a997>(0x27d454df^_0x152eed)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x885fac([0x74,0x68,0x65,0x6e])](_0x4a95cb)[_0x885fac([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4a95cb(_0x885fac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x28c8d3=0x3ee3e5f^_0x152eed;function _0x525f02(){const _0x4232d9=_0x885fac([0x6c,0x6c,0x63,0x74,0x2d])+_0x10ffb7(_0x32b4f0(_0x320620)),_0x538c11=_0x463292(_0x10ffb7(window[_0x885fac([0x4d,0x61,0x74,0x68])][_0x885fac([0x63,0x65,0x69,0x6c])](_0x4c24e1/_0x28c8d3)));window[_0x885fac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x885fac([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4232d9,_0x538c11);}function _0x270e95(){const _0x2ea71b=_0x885fac([0x6c,0x6c,0x63,0x74,0x2d])+_0x10ffb7(_0x32b4f0(_0x320620)),_0x46577c=window[_0x885fac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x885fac([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ea71b);return _0x46577c?window[_0x885fac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x463292(_0x46577c),0x10)*_0x28c8d3:null;}function _0x2f9cc4(_0x3aa187){return new window[(_0x885fac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x467393,_0x2d0963)=>{_0x3aa187[_0x885fac([0x74,0x68,0x65,0x6e])](_0x467393,_0x2d0963),window[_0x885fac([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d0963,0x3d9041f^_0x152eed);});}}_0x1f8d9c[_0x885fac([0x6f,0x6e])](_0x885fac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4714f2,_0x45b2ca)=>{if(_0x45b2ca[0x0]!=_0x320620)return _0x4a95cb(_0x885fac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x45b2ca[0x1]={..._0x45b2ca[0x1],[_0x885fac([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x297bc3};},{[_0x885fac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x885fac([0x68,0x69,0x67,0x68])}),_0x1f8d9c[_0x885fac([0x6f,0x6e])](_0x885fac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x57643d=>{_0x33323b(_0x57643d[_0x885fac([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4c5922=!0x0,_0x18ea21(_0x57643d[_0x885fac([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x885fac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x885fac([0x6c,0x6f,0x77])}),_0x2bccb4[_0x885fac([0x74,0x68,0x65,0x6e])](()=>{_0x4c5922||_0x4a95cb(_0x885fac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x13ae8f(){return _0x1f8d9c[_0x885fac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x885fac([0x76,0x69,0x65,0x77])][_0x885fac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x885fac([0x61,0x75,0x74,0x6f]);}function _0x14d062(){_0x1f8d9c[_0x885fac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x885fac([0x76,0x69,0x65,0x77])][_0x885fac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x885fac([0x61,0x75,0x74,0x6f]);}}function _0x4cc40f(_0x4d0ccf){const _0x18bd5f=[new window[(_0x885fac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x373b19=>setTimeout(_0x373b19,0x3d1ee13^_0x152eed)),_0x2bccb4[_0x885fac([0x74,0x68,0x65,0x6e])](()=>new window[(_0x885fac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4795f7=>{let _0x31e986=0x0;_0x1f8d9c[_0x885fac([0x6d,0x6f,0x64,0x65,0x6c])][_0x885fac([0x6f,0x6e])](_0x885fac([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1decb6,_0x1af2f4)=>{_0x1af2f4[0x0][_0x885fac([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x31e986++,_0x31e986==(0x3d8d127^_0x152eed)&&(_0x4795f7(),_0x1decb6[_0x885fac([0x6f,0x66,0x66])]());});}))];return window[_0x885fac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x885fac([0x72,0x61,0x63,0x65])](_0x18bd5f)[_0x885fac([0x74,0x68,0x65,0x6e])](()=>_0x4d0ccf);}async function _0x16cd19(){await _0x2bccb4,_0x1f8d9c[_0x885fac([0x6d,0x6f,0x64,0x65,0x6c])][_0x885fac([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5b0e07,_0x1f8d9c[_0x885fac([0x6d,0x6f,0x64,0x65,0x6c])][_0x885fac([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5b0e07,_0x1f8d9c[_0x885fac([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x885fac([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1b4444(_0x479b4b){const _0x66f957=_0x5bddb1();_0x1f8d9c[_0x66f957]=_0x885fac([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x479b4b,_0x479b4b!=_0x885fac([0x56,0x61,0x6c,0x69,0x64])&&_0x16cd19();}function _0x5bddb1(){const _0x3f3eae=window[_0x885fac([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x885fac([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x885fac([0x6e,0x6f,0x77])]())[_0x885fac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x885fac([0x2e]),'');let _0x225fff=_0x885fac([0x52]);for(let _0x4e21ae=0x0;_0x4e21ae<_0x3f3eae[_0x885fac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e21ae+=0x2){let _0x556a8b=window[_0x885fac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f3eae[_0x885fac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e21ae,_0x4e21ae+0x2));_0x556a8b>=_0x17c257[_0x885fac([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x556a8b-=_0x17c257[_0x885fac([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x225fff+=_0x17c257[_0x556a8b];}return _0x225fff;}function _0x13ffa9(){const _0x1ae70d=_0x34102f[_0x885fac([0x73,0x70,0x6c,0x69,0x74])](_0x885fac([0x2e]));if(0x3!=_0x1ae70d[_0x885fac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1e9c6d(_0x1ae70d[0x1]);function _0x1e9c6d(_0xdced0b){const _0x7292c8=_0x465de5(_0xdced0b);return _0x7292c8&&_0x38f286()?_0x7292c8:null;function _0x38f286(){const _0x6d1ec0=_0x7292c8[_0x885fac([0x6a,0x74,0x69])],_0x3751be=window[_0x885fac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6d1ec0[_0x885fac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6d1ec0[_0x885fac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5d8ab1={..._0x7292c8,[_0x885fac([0x6a,0x74,0x69])]:_0x6d1ec0[_0x885fac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x6d1ec0[_0x885fac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5d8ab1[_0x885fac([0x76,0x63])],_0x32b4f0(_0x5d8ab1)==_0x3751be;}}}async function _0x1911d2(){let _0x3664ec=!0x0;try{const _0x491152=_0x34102f[_0x885fac([0x73,0x70,0x6c,0x69,0x74])](_0x885fac([0x2e])),[_0x349624,_0x4f1606,_0x2c9007]=_0x491152;return _0x18c7fb(_0x349624),await _0x7e3e01(_0x349624,_0x4f1606,_0x2c9007),_0x3664ec;}catch{return!0x1;}function _0x18c7fb(_0xcbbbeb){const _0x2c59cd=_0x465de5(_0xcbbbeb);_0x2c59cd&&_0x2c59cd[_0x885fac([0x61,0x6c,0x67])]==_0x885fac([0x45,0x53,0x32,0x35,0x36])||(_0x3664ec=!0x1);}async function _0x7e3e01(_0xceb2fb,_0x376aa0,_0x3c9cf5){const _0x34d4fe=window[_0x885fac([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x885fac([0x66,0x72,0x6f,0x6d])](_0x7ef95b(_0x3c9cf5),_0x3902f1=>_0x3902f1[_0x885fac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x294a9c=new window[(_0x885fac([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x885fac([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xceb2fb+_0x885fac([0x2e])+_0x376aa0),_0x57aaab=window[_0x885fac([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x885fac([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x57aaab)return;const _0x3ca815=await _0x57aaab[_0x885fac([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x885fac([0x6a,0x77,0x6b]),_0x21010b,{[_0x885fac([0x6e,0x61,0x6d,0x65])]:_0x885fac([0x45,0x43,0x44,0x53,0x41]),[_0x885fac([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x885fac([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x885fac([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x57aaab[_0x885fac([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x885fac([0x6e,0x61,0x6d,0x65])]:_0x885fac([0x45,0x43,0x44,0x53,0x41]),[_0x885fac([0x68,0x61,0x73,0x68])]:{[_0x885fac([0x6e,0x61,0x6d,0x65])]:_0x885fac([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3ca815,_0x34d4fe,_0x294a9c)||(_0x3664ec=!0x1);}}function _0x465de5(_0x7b4eda){return _0x7b4eda[_0x885fac([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x885fac([0x65,0x79]))?JSON[_0x885fac([0x70,0x61,0x72,0x73,0x65])](_0x7ef95b(_0x7b4eda)):null;}function _0x7ef95b(_0x46b0b0){return window[_0x885fac([0x61,0x74,0x6f,0x62])](_0x46b0b0[_0x885fac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x885fac([0x2b]))[_0x885fac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x885fac([0x2f])));}function _0x32b4f0(_0x52c0b5){let _0x3fa2ff=0x1505;function _0x39c086(_0x13cd79){for(let _0x2bcf40=0x0;_0x2bcf40<_0x13cd79[_0x885fac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bcf40++){const _0x5077a2=_0x13cd79[_0x885fac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2bcf40);_0x3fa2ff=(_0x3fa2ff<<0x5)+_0x3fa2ff+_0x5077a2,_0x3fa2ff&=_0x3fa2ff;}}function _0x3ecb69(_0x149f4d){Array[_0x885fac([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x149f4d)?_0x149f4d[_0x885fac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3ecb69):_0x149f4d&&typeof _0x149f4d==_0x885fac([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x885fac([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x149f4d)[_0x885fac([0x73,0x6f,0x72,0x74])]()[_0x885fac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x52fa4c,_0x1b8356])=>{_0x39c086(_0x52fa4c),_0x3ecb69(_0x1b8356);}):_0x39c086(window[_0x885fac([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x149f4d));}return _0x3ecb69(_0x52c0b5),_0x3fa2ff>>>0x0;}function _0x10ffb7(_0x514dbf){return _0x514dbf[_0x885fac([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x885fac([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x885fac([0x30]));}function _0x463292(_0x448cc6){return _0x448cc6[_0x885fac([0x73,0x70,0x6c,0x69,0x74])]('')[_0x885fac([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x885fac([0x6a,0x6f,0x69,0x6e])]('');}function _0x5b0e07(){}function _0x885fac(_0x4d1eae){const _0x22ae24=_0x246c;return _0x4d1eae[_0x22ae24(0x173)](_0x45abb7=>String[_0x22ae24(0x180)](_0x45abb7))[_0x22ae24(0x17c)]('');}_0x1b4444(await _0x433de4());}(this);}[_0x145032(0x1ab)](){const _0x69f4b2=_0x145032,_0xb2a112=this[_0x69f4b2(0x18d)][_0x69f4b2(0x16b)][_0x69f4b2(0x1a4)];_0xb2a112[_0x69f4b2(0x1a1)](_0x69f4b2(0x1bd))&&_0xb2a112[_0x69f4b2(0x19d)](_0x69f4b2(0x1bd),{'allowAttributes':[_0x69f4b2(0x16e)]}),_0xb2a112[_0x69f4b2(0x1a1)](_0x69f4b2(0x19b))&&_0xb2a112[_0x69f4b2(0x19d)](_0x69f4b2(0x19b),{'allowAttributes':[_0x69f4b2(0x16e)]});}[_0x145032(0x1b9)](){const _0x11801c=_0x145032,_0x486b27=this[_0x11801c(0x18d)];_0x486b27[_0x11801c(0x1b3)][_0x11801c(0x187)](_0x11801c(0x177))[_0x11801c(0x19c)]({'model':_0x11801c(0x16e),'view':_0x11801c(0x171)}),_0x486b27[_0x11801c(0x1b3)][_0x11801c(0x187)](_0x11801c(0x1b2))[_0x11801c(0x1aa)]({'model':{'key':_0x11801c(0x16e),'value':_0x291473=>_0x291473[_0x11801c(0x176)](_0x11801c(0x171))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4f20fd=_0x486b27[_0x11801c(0x1bc)][_0x11801c(0x189)](_0x11801c(0x1a3));_0x4f20fd&&this[_0x11801c(0x17f)](_0x4f20fd,_0x11801c(0x175),(_0x46991d,[_0x27f9cc,_0x302d6c])=>{const _0x438bb6=_0x11801c;_0x27f9cc[_0x438bb6(0x1a5)](_0x438bb6(0x16e),_0x302d6c);});}[_0x145032(0x16c)](){const _0x30d12a=_0x145032,_0x5c1720=this[_0x30d12a(0x18d)][_0x30d12a(0x1a7)][_0x30d12a(0x189)](_0x30d12a(0x174))||{},_0x5ce324=this[_0x30d12a(0x18d)][_0x30d12a(0x1a7)][_0x30d12a(0x189)](_0x30d12a(0x17a))||'';this[_0x30d12a(0x1b7)]=_0x1e82e0(_0x12e3a6[_0x30d12a(0x1ac)],_0x30d12a(0x1a6),{..._0x5c1720,'pubkey':_0x5ce324,'ctx-name':_0x30d12a(0x1ba)+this[_0x30d12a(0x19f)],'sourceList':'','imgOnly':_0x30d12a(0x1a8),'removeCopyright':_0x30d12a(0x1a8),'localeName':this[_0x30d12a(0x18d)][_0x30d12a(0x19a)][_0x30d12a(0x1b6)],'externalSourcesEmbedCss':_0x30d12a(0x184)}),this[_0x30d12a(0x1b7)][_0x30d12a(0x191)]=_0x460efb=>{const _0x2e51ab=_0x30d12a;if(_0x2e51ab(0x16a)==_0x460efb)return _0x2e51ab(0x18c);},_0x12e3a6[_0x30d12a(0x1ac)][_0x30d12a(0x198)][_0x30d12a(0x18e)](this[_0x30d12a(0x1b7)]);}[_0x145032(0x1a0)](){const _0x2c87aa=_0x145032;this[_0x2c87aa(0x192)]=_0x1e82e0(_0x12e3a6[_0x2c87aa(0x1ac)],_0x2c87aa(0x16d),{'ctx-name':_0x2c87aa(0x1ba)+this[_0x2c87aa(0x19f)]}),_0x12e3a6[_0x2c87aa(0x1ac)][_0x2c87aa(0x198)][_0x2c87aa(0x18e)](this[_0x2c87aa(0x192)]);}[_0x145032(0x190)](){const _0x440b57=_0x145032,_0x2a6c38=this[_0x440b57(0x18d)][_0x440b57(0x1bc)][_0x440b57(0x189)](_0x440b57(0x17e));_0x2a6c38&&this[_0x440b57(0x17f)](_0x2a6c38,_0x440b57(0x1a9),()=>{const _0x50e8e2=_0x440b57,_0x14d329=this[_0x50e8e2(0x18d)][_0x50e8e2(0x16b)][_0x50e8e2(0x1ac)][_0x50e8e2(0x19e)][_0x50e8e2(0x1b8)]();_0x14d329&&_0x14d329[_0x50e8e2(0x176)](_0x50e8e2(0x16e))&&this[_0x50e8e2(0x18d)][_0x50e8e2(0x1b4)][_0x50e8e2(0x178)][_0x50e8e2(0x1b0)](_0x50e8e2(0x188),()=>{const _0x35aa33=_0x50e8e2;_0x36d461(this[_0x35aa33(0x18d)],_0x14d329);});});const _0x316a32=this[_0x440b57(0x18d)][_0x440b57(0x1bc)][_0x440b57(0x189)](_0x440b57(0x1a2));_0x316a32&&this[_0x440b57(0x17f)](_0x316a32,_0x440b57(0x1a9),()=>{const _0x230c68=_0x440b57,_0x2978c4=this[_0x230c68(0x18d)][_0x230c68(0x16b)][_0x230c68(0x1ac)][_0x230c68(0x19e)][_0x230c68(0x1b8)]();_0x2978c4&&_0x2978c4[_0x230c68(0x176)](_0x230c68(0x16e))&&this[_0x230c68(0x18d)][_0x230c68(0x1b4)][_0x230c68(0x178)][_0x230c68(0x1b0)](_0x230c68(0x188),()=>{const _0xbbbe83=_0x230c68;_0x36d461(this[_0xbbbe83(0x18d)],_0x2978c4);});});}}
|
|
23
|
+
const _0x4182d7=_0x1ac0;function _0xa8f0(){const _0x1be95b=['true','_ctxElement','\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','getAttribute','isOfficialPlugin','fromCharCode','input[uploadcare-file-input]','3032557ZwsShI','isRegistered','commands','3025122NPpOQZ','execute','add','once','_initImageProcessingIndicator','conversion','config','remove','editor','for','UploadcareEditing','82385ItefXx','uploader-','appendChild','9567387qGqbtE','requires','#uc-icon-arrow-down','isPremiumPlugin','getSelectedElement','iconHrefResolver','1180976oJataX','uploadcareImageId','removeAttribute','_configElement','closeMax','querySelector','_initSchema','_initConversion','58167936CnJbIi','10VBwDfo','destroy','uploadcare.uploader','38276JilTtf','configElement','replaceImageSource','1RyePFn','locale','ucContextId','cleanupImage','PictureEditing','view','uc-config','href','extend','uc-upload-ctx-provider','534kQwGUq','uploadcareImageReplace','contentLanguage','uploadcare','attributeToAttribute','data-uc-image-id','ctxElement','downcast','editing','537tykPOA','imageBlock','selection','init','schema','listenTo','get','91sloOFh','_initCtx','_initConfig','upcast','join','uploadcare.pubkey','insertImage','body','model','render','map','imageInline','elementToAttribute','document','pluginName','afterInit'];_0xa8f0=function(){return _0x1be95b;};return _0xa8f0();}(function(_0x122c39,_0x59dc4e){const _0x50b43a=_0x1ac0,_0x166aae=_0x122c39();while(!![]){try{const _0x4e9e5b=-parseInt(_0x50b43a(0x184))/0x1*(-parseInt(_0x50b43a(0x1b8))/0x2)+parseInt(_0x50b43a(0x197))/0x3*(parseInt(_0x50b43a(0x1d8))/0x4)+-parseInt(_0x50b43a(0x1c3))/0x5*(-parseInt(_0x50b43a(0x18e))/0x6)+parseInt(_0x50b43a(0x19e))/0x7*(parseInt(_0x50b43a(0x1cc))/0x8)+-parseInt(_0x50b43a(0x1c6))/0x9+-parseInt(_0x50b43a(0x1d5))/0xa*(-parseInt(_0x50b43a(0x1b5))/0xb)+-parseInt(_0x50b43a(0x1d4))/0xc;if(_0x4e9e5b===_0x59dc4e)break;else _0x166aae['push'](_0x166aae['shift']());}catch(_0x2384b5){_0x166aae['push'](_0x166aae['shift']());}}}(_0xa8f0,0xee58b));import{Plugin as _0x2d125d}from'ckeditor5/src/core.js';import{Dialog as _0x45d110}from'ckeditor5/src/ui.js';function _0x1ac0(_0x46b55b,_0x5bfa75){const _0xa8f031=_0xa8f0();return _0x1ac0=function(_0x1ac05d,_0x3b1b9e){_0x1ac05d=_0x1ac05d-0x183;let _0x15c709=_0xa8f031[_0x1ac05d];return _0x15c709;},_0x1ac0(_0x46b55b,_0x5bfa75);}import{createElement as _0x2cf997,global as _0x16e81f,uid as _0x32878c}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3f88f4}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x249094}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5e36bc}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2d125d{[_0x4182d7(0x1cf)]=null;[_0x4182d7(0x1af)]=null;static get[_0x4182d7(0x1ac)](){const _0x39ac04=_0x4182d7;return _0x39ac04(0x1c2);}static get[_0x4182d7(0x1c7)](){const _0x20da4d=_0x4182d7;return[_0x20da4d(0x188),_0x249094,_0x45d110];}static get[_0x4182d7(0x1b2)](){return!0x0;}static get[_0x4182d7(0x1c9)](){return!0x0;}[_0x4182d7(0x186)];get[_0x4182d7(0x1d9)](){const _0x5ab9d0=_0x4182d7;return this[_0x5ab9d0(0x1cf)];}get[_0x4182d7(0x194)](){const _0x401c56=_0x4182d7;return this[_0x401c56(0x1af)];}constructor(_0x4b2b72){const _0x4d34e0=_0x4182d7;super(_0x4b2b72),this[_0x4d34e0(0x186)]=_0x32878c();}[_0x4182d7(0x19a)](){const _0x36b194=_0x4182d7,_0x27b212=this[_0x36b194(0x1c0)];_0x27b212[_0x36b194(0x1b7)][_0x36b194(0x1ba)](_0x36b194(0x191),new _0x3f88f4(_0x27b212));}[_0x4182d7(0x1ad)](){const _0x357141=_0x4182d7;this[_0x357141(0x1d2)](),this[_0x357141(0x1d3)](),this[_0x357141(0x1a0)](),this[_0x357141(0x19f)](),this[_0x357141(0x1bc)](),this[_0x357141(0x19c)](this[_0x357141(0x1c0)],_0x357141(0x1d6),()=>{const _0x43d903=_0x357141;this[_0x43d903(0x1cf)]&&(this[_0x43d903(0x1cf)][_0x43d903(0x1bf)](),this[_0x43d903(0x1cf)]=null),this[_0x43d903(0x1af)]&&(this[_0x43d903(0x1af)][_0x43d903(0x1bf)](),this[_0x43d903(0x1af)]=null);const _0x5818aa=_0x16e81f[_0x43d903(0x1ab)][_0x43d903(0x1d1)](_0x43d903(0x1b4));_0x5818aa&&_0x5818aa[_0x43d903(0x1bf)]();}),async function(_0xe7028a){const _0x5af7d7=_0x489258([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]),_0x1454c0=0x3d8d0df,_0x59ab15=0x3dfa387^_0x1454c0,_0x448832=window[_0x489258([0x44,0x61,0x74,0x65])][_0x489258([0x6e,0x6f,0x77])](),_0x284ee0=_0xe7028a[_0x489258([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b6a49=new window[(_0x489258([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38e24e=>{_0x284ee0[_0x489258([0x6f,0x6e,0x63,0x65])](_0x489258([0x72,0x65,0x61,0x64,0x79]),_0x38e24e);}),_0x4fc908={[_0x489258([0x6b,0x74,0x79])]:_0x489258([0x45,0x43]),[_0x489258([0x75,0x73,0x65])]:_0x489258([0x73,0x69,0x67]),[_0x489258([0x63,0x72,0x76])]:_0x489258([0x50,0x2d,0x32,0x35,0x36]),[_0x489258([0x78])]:_0x489258([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]),[_0x489258([0x79])]:_0x489258([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]),[_0x489258([0x61,0x6c,0x67])]:_0x489258([0x45,0x53,0x32,0x35,0x36])},_0x252b32=_0x284ee0[_0x489258([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x489258([0x67,0x65,0x74])](_0x489258([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xdd8c8(){let _0x451650,_0x284304=null,_0xcfe099=null;try{if(_0x252b32==_0x489258([0x47,0x50,0x4c]))return _0x489258([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x451650=_0x524622(),!_0x451650)return _0x489258([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x451650[_0x489258([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xcfe099=_0x17a712(_0x451650[_0x489258([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x451650[_0x489258([0x6a,0x74,0x69])])),await _0x45d7cf()?_0x3309b3()?_0x4147ef()?_0x489258([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x422125()?(_0x451650[_0x489258([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x489258([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x284304=_0x13a97e(_0x489258([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x451650[_0x489258([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x489258([0x74,0x72,0x69,0x61,0x6c])&&(_0x284304=_0x13a97e(_0x489258([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xace580()):_0x489258([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x489258([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x489258([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x489258([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4147ef(){const _0x521f34=[_0x489258([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x489258([0x74,0x72,0x69,0x61,0x6c])][_0x489258([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x451650[_0x489258([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x448832/0x3e8:0xe10*_0x59ab15;return _0x451650[_0x489258([0x65,0x78,0x70])]<_0x521f34;}function _0x3309b3(){const _0x35eb7d=_0x451650[_0x489258([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x35eb7d&&(!!_0x35eb7d[_0x489258([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x489258([0x2a]))||!!_0x35eb7d[_0x489258([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x489258([0x55,0x50,0x4c,0x43])));}function _0x422125(){const _0x35f1b8=_0x1ac0,_0x5b244e=_0x451650[_0x489258([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b244e||0x0==_0x5b244e[_0x489258([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e528c}=new URL(window[_0x489258([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x35f1b8(0x18b)]);if(_0x5b244e[_0x489258([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e528c))return!0x0;const _0x2b3a46=_0x5e528c[_0x489258([0x73,0x70,0x6c,0x69,0x74])](_0x489258([0x2e]));return _0x5b244e[_0x489258([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ce58a=>_0x4ce58a[_0x489258([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x489258([0x2a])))[_0x489258([0x6d,0x61,0x70])](_0x39537f=>_0x39537f[_0x489258([0x73,0x70,0x6c,0x69,0x74])](_0x489258([0x2e])))[_0x489258([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a3897=>_0x3a3897[_0x489258([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2b3a46[_0x489258([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x489258([0x6d,0x61,0x70])](_0x211a87=>Array(_0x2b3a46[_0x489258([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x211a87[_0x489258([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x489258([0x66,0x69,0x6c,0x6c])](_0x211a87[0x0]===_0x489258([0x2a])?_0x489258([0x2a]):'')[_0x489258([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x211a87))[_0x489258([0x73,0x6f,0x6d,0x65])](_0x5b8501=>_0x2b3a46[_0x489258([0x65,0x76,0x65,0x72,0x79])]((_0xa109b1,_0x3627c2)=>_0x5b8501[_0x3627c2]===_0xa109b1||_0x5b8501[_0x3627c2]===_0x489258([0x2a])));}function _0xace580(){return _0x284304&&_0xcfe099?new window[(_0x489258([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35eb24,_0x5eeed2)=>{_0x284304[_0x489258([0x74,0x68,0x65,0x6e])](_0x35eb24,_0x5eeed2),_0xcfe099[_0x489258([0x74,0x68,0x65,0x6e])](_0x38d5c5=>{_0x38d5c5!=_0x489258([0x56,0x61,0x6c,0x69,0x64])&&_0x35eb24(_0x38d5c5);},_0x5eeed2);}):_0x284304||_0xcfe099||_0x489258([0x56,0x61,0x6c,0x69,0x64]);}}function _0x17a712(_0x3582ec,_0x26839d){return new window[(_0x489258([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4077cd=>{if(_0x2c3c63())return _0x4077cd(_0x489258([0x56,0x61,0x6c,0x69,0x64]));_0xdacfda(),_0x284ee0[_0x489258([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x489258([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4187e3=!0x1;const _0x15f42=_0x32878c();function _0x38646a(_0x153840){return!!_0x153840&&(typeof _0x153840===_0x489258([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x153840===_0x489258([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x153840[_0x489258([0x74,0x68,0x65,0x6e])]===_0x489258([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x153840[_0x489258([0x63,0x61,0x74,0x63,0x68])]===_0x489258([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ea702(_0x1c0158){_0x4b74bb(_0x1c0158)[_0x489258([0x74,0x68,0x65,0x6e])](_0x949b55=>{if(!_0x949b55||_0x949b55[_0x489258([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x489258([0x6f,0x6b]))return _0x489258([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2161b9(_0xbd7f10(_0x15f42+_0x26839d))!=_0x949b55[_0x489258([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x489258([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x489258([0x56,0x61,0x6c,0x69,0x64]);})[_0x489258([0x74,0x68,0x65,0x6e])](_0x23048b=>(_0x3dc34d(),_0x23048b),()=>{const _0x409f57=_0x42bf05();return null==_0x409f57?(_0x3dc34d(),_0x489258([0x56,0x61,0x6c,0x69,0x64])):_0x489258(_0x448832-_0x409f57>(0x27d454df^_0x1454c0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x489258([0x74,0x68,0x65,0x6e])](_0x4077cd)[_0x489258([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4077cd(_0x489258([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b2f6b=0x3ee3e5f^_0x1454c0;function _0x3dc34d(){const _0x1e5d40=_0x489258([0x6c,0x6c,0x63,0x74,0x2d])+_0x2161b9(_0xbd7f10(_0x3582ec)),_0x44a3a4=_0x1efeaf(_0x2161b9(window[_0x489258([0x4d,0x61,0x74,0x68])][_0x489258([0x63,0x65,0x69,0x6c])](_0x448832/_0x3b2f6b)));window[_0x489258([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x489258([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e5d40,_0x44a3a4);}function _0x42bf05(){const _0x5243af=_0x489258([0x6c,0x6c,0x63,0x74,0x2d])+_0x2161b9(_0xbd7f10(_0x3582ec)),_0x5aea17=window[_0x489258([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x489258([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5243af);return _0x5aea17?window[_0x489258([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1efeaf(_0x5aea17),0x10)*_0x3b2f6b:null;}function _0x4b74bb(_0x876f53){return new window[(_0x489258([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3f063b,_0x18b647)=>{_0x876f53[_0x489258([0x74,0x68,0x65,0x6e])](_0x3f063b,_0x18b647),window[_0x489258([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x18b647,0x3d9041f^_0x1454c0);});}}_0x284ee0[_0x489258([0x6f,0x6e])](_0x489258([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41186e,_0x9d8738)=>{if(_0x9d8738[0x0]!=_0x3582ec)return _0x4077cd(_0x489258([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x9d8738[0x1]={..._0x9d8738[0x1],[_0x489258([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x15f42};},{[_0x489258([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x489258([0x68,0x69,0x67,0x68])}),_0x284ee0[_0x489258([0x6f,0x6e])](_0x489258([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x58c237=>{_0x38646a(_0x58c237[_0x489258([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4187e3=!0x0,_0x4ea702(_0x58c237[_0x489258([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x489258([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x489258([0x6c,0x6f,0x77])}),_0x4b6a49[_0x489258([0x74,0x68,0x65,0x6e])](()=>{_0x4187e3||_0x4077cd(_0x489258([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c3c63(){return _0x284ee0[_0x489258([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x489258([0x76,0x69,0x65,0x77])][_0x489258([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x489258([0x61,0x75,0x74,0x6f]);}function _0xdacfda(){_0x284ee0[_0x489258([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x489258([0x76,0x69,0x65,0x77])][_0x489258([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x489258([0x61,0x75,0x74,0x6f]);}}function _0x13a97e(_0x22db8f){const _0x1563a7=[new window[(_0x489258([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1dab56=>setTimeout(_0x1dab56,0x3d1ee13^_0x1454c0)),_0x4b6a49[_0x489258([0x74,0x68,0x65,0x6e])](()=>new window[(_0x489258([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25ff46=>{let _0x1e7d16=0x0;_0x284ee0[_0x489258([0x6d,0x6f,0x64,0x65,0x6c])][_0x489258([0x6f,0x6e])](_0x489258([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xa80160,_0xba1931)=>{_0xba1931[0x0][_0x489258([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1e7d16++,_0x1e7d16==(0x3d8d127^_0x1454c0)&&(_0x25ff46(),_0xa80160[_0x489258([0x6f,0x66,0x66])]());});}))];return window[_0x489258([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x489258([0x72,0x61,0x63,0x65])](_0x1563a7)[_0x489258([0x74,0x68,0x65,0x6e])](()=>_0x22db8f);}async function _0x3cfa86(){await _0x4b6a49,_0x284ee0[_0x489258([0x6d,0x6f,0x64,0x65,0x6c])][_0x489258([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2f650e,_0x284ee0[_0x489258([0x6d,0x6f,0x64,0x65,0x6c])][_0x489258([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2f650e,_0x284ee0[_0x489258([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x489258([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x360ef0(_0x432eaf){const _0x1170b5=_0x161520();_0x284ee0[_0x1170b5]=_0x489258([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x432eaf,_0x432eaf!=_0x489258([0x56,0x61,0x6c,0x69,0x64])&&_0x3cfa86();}function _0x161520(){const _0x59da69=window[_0x489258([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x489258([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x489258([0x6e,0x6f,0x77])]())[_0x489258([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x489258([0x2e]),'');let _0x1b2a7b=_0x489258([0x52]);for(let _0x35f756=0x0;_0x35f756<_0x59da69[_0x489258([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35f756+=0x2){let _0x3c0a40=window[_0x489258([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59da69[_0x489258([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35f756,_0x35f756+0x2));_0x3c0a40>=_0x5af7d7[_0x489258([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3c0a40-=_0x5af7d7[_0x489258([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1b2a7b+=_0x5af7d7[_0x3c0a40];}return _0x1b2a7b;}function _0x524622(){const _0x28454b=_0x252b32[_0x489258([0x73,0x70,0x6c,0x69,0x74])](_0x489258([0x2e]));if(0x3!=_0x28454b[_0x489258([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f2fbe(_0x28454b[0x1]);function _0x2f2fbe(_0x2524cb){const _0x1826da=_0x4877d7(_0x2524cb);return _0x1826da&&_0x3fcfd3()?_0x1826da:null;function _0x3fcfd3(){const _0x249dc6=_0x1826da[_0x489258([0x6a,0x74,0x69])],_0x282d18=window[_0x489258([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x249dc6[_0x489258([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x249dc6[_0x489258([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1be2fb={..._0x1826da,[_0x489258([0x6a,0x74,0x69])]:_0x249dc6[_0x489258([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x249dc6[_0x489258([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1be2fb[_0x489258([0x76,0x63])],_0xbd7f10(_0x1be2fb)==_0x282d18;}}}async function _0x45d7cf(){let _0x389ca7=!0x0;try{const _0x44ad48=_0x252b32[_0x489258([0x73,0x70,0x6c,0x69,0x74])](_0x489258([0x2e])),[_0x4ae977,_0x474b59,_0x5b8f6c]=_0x44ad48;return _0x1c94b8(_0x4ae977),await _0xa389eb(_0x4ae977,_0x474b59,_0x5b8f6c),_0x389ca7;}catch{return!0x1;}function _0x1c94b8(_0x45942a){const _0x1586cb=_0x4877d7(_0x45942a);_0x1586cb&&_0x1586cb[_0x489258([0x61,0x6c,0x67])]==_0x489258([0x45,0x53,0x32,0x35,0x36])||(_0x389ca7=!0x1);}async function _0xa389eb(_0x41072f,_0x3a7c9b,_0x4f1ed6){const _0x4e3fdb=window[_0x489258([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x489258([0x66,0x72,0x6f,0x6d])](_0x4412b2(_0x4f1ed6),_0x53dc66=>_0x53dc66[_0x489258([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5ccd34=new window[(_0x489258([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x489258([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x41072f+_0x489258([0x2e])+_0x3a7c9b),_0x4306c2=window[_0x489258([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x489258([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4306c2)return;const _0x542117=await _0x4306c2[_0x489258([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x489258([0x6a,0x77,0x6b]),_0x4fc908,{[_0x489258([0x6e,0x61,0x6d,0x65])]:_0x489258([0x45,0x43,0x44,0x53,0x41]),[_0x489258([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x489258([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x489258([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4306c2[_0x489258([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x489258([0x6e,0x61,0x6d,0x65])]:_0x489258([0x45,0x43,0x44,0x53,0x41]),[_0x489258([0x68,0x61,0x73,0x68])]:{[_0x489258([0x6e,0x61,0x6d,0x65])]:_0x489258([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x542117,_0x4e3fdb,_0x5ccd34)||(_0x389ca7=!0x1);}}function _0x4877d7(_0x49c226){return _0x49c226[_0x489258([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x489258([0x65,0x79]))?JSON[_0x489258([0x70,0x61,0x72,0x73,0x65])](_0x4412b2(_0x49c226)):null;}function _0x4412b2(_0x115d2e){return window[_0x489258([0x61,0x74,0x6f,0x62])](_0x115d2e[_0x489258([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x489258([0x2b]))[_0x489258([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x489258([0x2f])));}function _0xbd7f10(_0x50acc6){let _0x11bca0=0x1505;function _0xdd191c(_0x58d7ac){for(let _0x274809=0x0;_0x274809<_0x58d7ac[_0x489258([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x274809++){const _0x1ce0c8=_0x58d7ac[_0x489258([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x274809);_0x11bca0=(_0x11bca0<<0x5)+_0x11bca0+_0x1ce0c8,_0x11bca0&=_0x11bca0;}}function _0x5c1b22(_0x253157){Array[_0x489258([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x253157)?_0x253157[_0x489258([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c1b22):_0x253157&&typeof _0x253157==_0x489258([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x489258([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x253157)[_0x489258([0x73,0x6f,0x72,0x74])]()[_0x489258([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x10c2dd,_0x9af98b])=>{_0xdd191c(_0x10c2dd),_0x5c1b22(_0x9af98b);}):_0xdd191c(window[_0x489258([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x253157));}return _0x5c1b22(_0x50acc6),_0x11bca0>>>0x0;}function _0x2161b9(_0x187a30){return _0x187a30[_0x489258([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x489258([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x489258([0x30]));}function _0x1efeaf(_0x560ef6){return _0x560ef6[_0x489258([0x73,0x70,0x6c,0x69,0x74])]('')[_0x489258([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x489258([0x6a,0x6f,0x69,0x6e])]('');}function _0x2f650e(){}function _0x489258(_0x1fd760){const _0x1a016b=_0x1ac0;return _0x1fd760[_0x1a016b(0x1a8)](_0x5b72ce=>String[_0x1a016b(0x1b3)](_0x5b72ce))[_0x1a016b(0x1a2)]('');}_0x360ef0(await _0xdd8c8());}(this);}[_0x4182d7(0x1d2)](){const _0x45d10f=_0x4182d7,_0x4c2573=this[_0x45d10f(0x1c0)][_0x45d10f(0x1a6)][_0x45d10f(0x19b)];_0x4c2573[_0x45d10f(0x1b6)](_0x45d10f(0x198))&&_0x4c2573[_0x45d10f(0x18c)](_0x45d10f(0x198),{'allowAttributes':[_0x45d10f(0x1cd)]}),_0x4c2573[_0x45d10f(0x1b6)](_0x45d10f(0x1a9))&&_0x4c2573[_0x45d10f(0x18c)](_0x45d10f(0x1a9),{'allowAttributes':[_0x45d10f(0x1cd)]});}[_0x4182d7(0x1d3)](){const _0x23f662=_0x4182d7,_0x43b055=this[_0x23f662(0x1c0)];_0x43b055[_0x23f662(0x1bd)][_0x23f662(0x1c1)](_0x23f662(0x195))[_0x23f662(0x192)]({'model':_0x23f662(0x1cd),'view':_0x23f662(0x193)}),_0x43b055[_0x23f662(0x1bd)][_0x23f662(0x1c1)](_0x23f662(0x1a1))[_0x23f662(0x1aa)]({'model':{'key':_0x23f662(0x1cd),'value':_0x473a14=>_0x473a14[_0x23f662(0x1b1)](_0x23f662(0x193))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xf9bc18=_0x43b055[_0x23f662(0x1b7)][_0x23f662(0x19d)](_0x23f662(0x183));_0xf9bc18&&this[_0x23f662(0x19c)](_0xf9bc18,_0x23f662(0x187),(_0xb2f269,[_0x4d43da,_0x51d32c])=>{const _0x539ff0=_0x23f662;_0x4d43da[_0x539ff0(0x1ce)](_0x539ff0(0x1cd),_0x51d32c);});}[_0x4182d7(0x1a0)](){const _0x359fe0=_0x4182d7,_0x5b6bba=this[_0x359fe0(0x1c0)][_0x359fe0(0x1be)][_0x359fe0(0x19d)](_0x359fe0(0x1d7))||{},_0x5a0032=this[_0x359fe0(0x1c0)][_0x359fe0(0x1be)][_0x359fe0(0x19d)](_0x359fe0(0x1a3))||'';this[_0x359fe0(0x1cf)]=_0x2cf997(_0x16e81f[_0x359fe0(0x1ab)],_0x359fe0(0x18a),{..._0x5b6bba,'pubkey':_0x5a0032,'ctx-name':_0x359fe0(0x1c4)+this[_0x359fe0(0x186)],'sourceList':'','imgOnly':_0x359fe0(0x1ae),'removeCopyright':_0x359fe0(0x1ae),'localeName':this[_0x359fe0(0x1c0)][_0x359fe0(0x185)][_0x359fe0(0x190)],'externalSourcesEmbedCss':_0x359fe0(0x1b0)}),this[_0x359fe0(0x1cf)][_0x359fe0(0x1cb)]=_0x2f06a4=>{const _0x1c77eb=_0x359fe0;if(_0x1c77eb(0x1d0)==_0x2f06a4)return _0x1c77eb(0x1c8);},_0x16e81f[_0x359fe0(0x1ab)][_0x359fe0(0x1a5)][_0x359fe0(0x1c5)](this[_0x359fe0(0x1cf)]);}[_0x4182d7(0x19f)](){const _0x217994=_0x4182d7;this[_0x217994(0x1af)]=_0x2cf997(_0x16e81f[_0x217994(0x1ab)],_0x217994(0x18d),{'ctx-name':_0x217994(0x1c4)+this[_0x217994(0x186)]}),_0x16e81f[_0x217994(0x1ab)][_0x217994(0x1a5)][_0x217994(0x1c5)](this[_0x217994(0x1af)]);}[_0x4182d7(0x1bc)](){const _0x5f4220=_0x4182d7,_0x108ca1=this[_0x5f4220(0x1c0)][_0x5f4220(0x1b7)][_0x5f4220(0x19d)](_0x5f4220(0x1a4));_0x108ca1&&this[_0x5f4220(0x19c)](_0x108ca1,_0x5f4220(0x1b9),()=>{const _0x8a4a28=_0x5f4220,_0x2ce2b9=this[_0x8a4a28(0x1c0)][_0x8a4a28(0x1a6)][_0x8a4a28(0x1ab)][_0x8a4a28(0x199)][_0x8a4a28(0x1ca)]();_0x2ce2b9&&_0x2ce2b9[_0x8a4a28(0x1b1)](_0x8a4a28(0x1cd))&&this[_0x8a4a28(0x1c0)][_0x8a4a28(0x196)][_0x8a4a28(0x189)][_0x8a4a28(0x1bb)](_0x8a4a28(0x1a7),()=>{const _0x2db495=_0x8a4a28;_0x5e36bc(this[_0x2db495(0x1c0)],_0x2ce2b9);});});const _0x3a8dac=this[_0x5f4220(0x1c0)][_0x5f4220(0x1b7)][_0x5f4220(0x19d)](_0x5f4220(0x18f));_0x3a8dac&&this[_0x5f4220(0x19c)](_0x3a8dac,_0x5f4220(0x1b9),()=>{const _0x42a470=_0x5f4220,_0x26435d=this[_0x42a470(0x1c0)][_0x42a470(0x1a6)][_0x42a470(0x1ab)][_0x42a470(0x199)][_0x42a470(0x1ca)]();_0x26435d&&_0x26435d[_0x42a470(0x1b1)](_0x42a470(0x1cd))&&this[_0x42a470(0x1c0)][_0x42a470(0x196)][_0x42a470(0x189)][_0x42a470(0x1bb)](_0x42a470(0x1a7),()=>{const _0x31223d=_0x42a470;_0x5e36bc(this[_0x31223d(0x1c0)],_0x26435d);});});}}
|