@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250621.0 → 0.0.0-nightly-20250622.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 _0x180771,Command as _0x21c05b}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4abe2d,IconGooglePhotos as _0x540326,IconGoogleDrive as _0x16ed7c,IconFacebook as _0x5c8db5,IconDropbox as _0x3498e2,IconUploadcareLink as _0x3a186e,IconUploadcareImageUpload as _0x5e8796,IconError as _0x1f4132,IconUploadcareImageEdit as _0xbc9925}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3e33ba,MenuBarMenuListItemButtonView as _0x503f46,View as _0x4517d6,FocusCycler as _0x7417ef,Dialog as _0x257f15,DialogViewPosition as _0x8bd1d1,SpinnerView as _0x106ac0,IconView as _0x30aa8d,Notification as _0x30826e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x21ae59,DomEmitterMixin as _0x3a0846,global as _0x551b4f,getAncestors as _0x2dcdac,ObservableMixin as _0x3ce896,uid as _0x2a1a0d,createElement as _0x538b64}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x20029c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x55ab4a,info as _0x30a2a9}from'@uploadcare/upload-client';import*as _0x2e2afe from'@uploadcare/file-uploader';var i=function(_0x510f70){return _0x510f70['Local']='local',_0x510f70['URL']='url',_0x510f70['Dropbox']='dropbox',_0x510f70['GDrive']='gdrive',_0x510f70['Facebook']='facebook',_0x510f70['GPhotos']='gphotos',_0x510f70['OneDrive']='onedrive',_0x510f70;}({});function _(_0x4004ea,_0x59735e,_0x3f63c3){const t=_0x4004ea['t'],_0x1e8537=_0x4004ea['t'];switch(_0x59735e){case i['Local']:return{'text':_0x1e8537('Insert'===_0x3f63c3?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1e8537('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3f63c3?_0x1e8537('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1e8537('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3f63c3?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3f63c3?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3f63c3?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3f63c3?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3f63c3?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x59735e;}}class e extends _0x180771{['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 _0x4eab8e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x38eedd;for(const _0x207ab6 in _0x4eab8e){const _0xa39963=_0x207ab6,_0x3ed2d6=_0x4eab8e[_0xa39963];if('uploadcareLicenseKeyValid'==_0x3ed2d6||'uploadcareLicenseKeyInvalid'==_0x3ed2d6||'uploadcareLicenseKeyExpired'==_0x3ed2d6||'uploadcareLicenseKeyDomainLimit'==_0x3ed2d6||'uploadcareLicenseKeyNotAllowed'==_0x3ed2d6||'uploadcareLicenseKeyEvaluationLimit'==_0x3ed2d6||'uploadcareLicenseKeyTrialLimit'==_0x3ed2d6||'uploadcareLicenseKeyUsageLimit'==_0x3ed2d6){delete _0x4eab8e[_0xa39963],_0x38eedd=_0x3ed2d6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x38eedd&&_0x4eab8e['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x38eedd&&_0x4eab8e['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x38eedd&&_0x4eab8e['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x38eedd&&_0x4eab8e['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x38eedd&&_0x4eab8e['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x38eedd&&_0x4eab8e['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x38eedd&&_0x4eab8e['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x33f9f5}=this,_0x5bb1b4=_0x33f9f5['commands']['get']('uploadcare');if(!_0x5bb1b4)return;const _0x239439=this['_normalizeConfigSourceList'](_0x33f9f5['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x432071,_0x44cef6)=>{const _0x40f91b=this['_getIntegrationKey'](_0x44cef6['type']);return _0x432071[_0x40f91b]||(_0x432071[_0x40f91b]=[]),_0x432071[_0x40f91b]['push'](_0x44cef6),_0x432071;},{});_0x33f9f5['plugins']['has']('ImageInsertUI')&&_0x33f9f5['commands']['get']('uploadcare')&&Object['entries'](_0x239439)['forEach'](([_0x29984e,_0x5eba30])=>{_0x33f9f5['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x29984e,'observable':()=>_0x5bb1b4,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5eba30),'formViewCreator':()=>this['_createDropdownButtons'](_0x5eba30),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5eba30),'override':'assetManager'!==_0x29984e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x6ae54d){const {locale:_0x40a0e3}=this['editor'];return _0x6ae54d['map'](_0x5db0b1=>{const _0x5e335f=_(_0x40a0e3,_0x5db0b1,'Insert');switch(_0x5db0b1){case i['Local']:return{'icon':_0x5e8796,'type':i['Local'],..._0x5e335f};case i['URL']:return{'icon':_0x3a186e,'type':i['URL'],..._0x5e335f};case i['Dropbox']:return{'icon':_0x3498e2,'type':i['Dropbox'],..._0x5e335f};case i['Facebook']:return{'icon':_0x5c8db5,'type':i['Facebook'],..._0x5e335f};case i['GDrive']:return{'icon':_0x16ed7c,'type':i['GDrive'],..._0x5e335f};case i['GPhotos']:return{'icon':_0x540326,'type':i['GPhotos'],..._0x5e335f};case i['OneDrive']:return{'icon':_0x4abe2d,'type':i['OneDrive'],..._0x5e335f};}});}['_getIntegrationKey'](_0x3c1e4c){switch(_0x3c1e4c){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x13dd58,_0x5cf6c1){const _0x4514fd=this['editor'],_0x2ec3d4=new _0x13dd58(_0x4514fd['locale']),_0x297826=_0x4514fd['commands']['get']('uploadcare');return _0x2ec3d4['bind']('isEnabled')['to'](_0x297826),_0x2ec3d4['on']('execute',()=>{_0x297826['execute'](_0x5cf6c1);}),_0x2ec3d4;}['_createToolbarButton'](_0x59bc79){const {locale:_0x3143c6}=this['editor'],_0x2e283d=this['editor']['plugins']['get']('ImageInsertUI'),_0xfee68=_0x59bc79[0x0],_0x55393a=this['_createButton'](_0x3e33ba,_0xfee68['type']);return _0x55393a['icon']=_0xfee68['icon'],_0x55393a['bind']('label')['to'](_0x2e283d,'isImageSelected',_0x285215=>_(_0x3143c6,_0xfee68['type'],_0x285215?'Replace':'Insert')['text']),_0x55393a['tooltip']=!0x0,_0x55393a;}['_createDropdownButtons'](_0x5e4bcc){const {locale:_0x2b76a9}=this['editor'],_0x31e106=this['editor']['plugins']['get']('ImageInsertUI');return _0x5e4bcc['map'](_0x5bc7af=>{const _0x5d21bc=this['_createButton'](_0x3e33ba,_0x5bc7af['type']);return _0x5d21bc['withText']=!0x0,_0x5d21bc['icon']=_0x5bc7af['icon'],_0x5d21bc['bind']('label')['to'](_0x31e106,'isImageSelected',_0x4f18fb=>_(_0x2b76a9,_0x5bc7af['type'],_0x4f18fb?'Replace':'Insert')['text']),_0x5d21bc;});}['_createMenuBarButtons'](_0x4858d3){return _0x4858d3['map'](_0xb5bd2d=>{const _0x336775=this['_createButton'](_0x503f46,_0xb5bd2d['type']);return _0x336775['icon']=_0xb5bd2d['icon'],_0x336775['label']=_0xb5bd2d['shortText'],_0x336775;});}}class F extends _0x4517d6{['focusTracker'];['focusCycler'];constructor(_0x4192c7){super(_0x4192c7),this['focusTracker']=new _0x21ae59(),this['focusCycler']=new _0x7417ef({'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(_0x5befaa,_0x3b2008){super(_0x5befaa),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-'+_0x3b2008}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x2fb0d3,_0x5cb913){const _0x155ba0=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3004c1=>_0x3004c1<=_0x5cb913)['map'](_0x26957c=>_0x2fb0d3['replace'](/\/$/,'')+'/-/resize/'+_0x26957c+'x/\x20'+_0x26957c+'w');return{'imageFallbackUrl':_0x2fb0d3,'imageSources':[{'srcset':_0x155ba0['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5cb913+'px)\x20100vw,\x20'+_0x5cb913+'px','type':'image/webp'}]};}function C(_0x314de1,_0x555635,_0x353b2e){const _0x38d71d=_0x314de1['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x38d71d?parseInt(_0x38d71d[0x1],0xa):_0x555635,'height':_0x38d71d?parseInt(_0x38d71d[0x2],0xa):_0x353b2e};}function p(_0x396b9a,_0x2e7cec){const _0x477fd8=new(_0x3a0846())(),_0x1d47c4=_0x396b9a['plugins']['get']('ImageUtils'),_0xddaa09=_0x396b9a['editing']['mapper']['toViewElement'](_0x2e7cec),_0x4c1fdc=_0x1d47c4['findViewImgElement'](_0xddaa09),_0x34384c=_0x396b9a['editing']['view']['domConverter']['viewToDom'](_0x4c1fdc),_0x59c830=_0x2e7cec['getAttribute']('width'),_0x56e082=_0x2e7cec['getAttribute']('height'),_0x12d2f2='image-processing';_0x396b9a['editing']['view']['change'](_0x5a35bf=>{_0x5a35bf['addClass'](_0x12d2f2,_0xddaa09),_0x5a35bf['setStyle']('aspect-ratio',_0x59c830+'/'+_0x56e082,_0x4c1fdc);}),_0x477fd8['listenTo'](_0x34384c,'load',()=>{_0x477fd8['stopListening'](_0x34384c,'load'),_0x396b9a['editing']['view']['change'](_0xcdaf0=>{_0xcdaf0['removeClass'](_0x12d2f2,_0xddaa09),_0xcdaf0['removeStyle']('aspect-ratio',_0x4c1fdc);});});}function G(_0x2c6d9f){if(Array['isArray'](_0x2c6d9f)){const _0x42e658=_0x2c6d9f['map'](G);return _0x2b8172=>_0x42e658['some'](_0x34e904=>_0x34e904(_0x2b8172));}if('origin'==_0x2c6d9f){const _0x8f45c=_0x551b4f['window']['location']['origin'];return _0x1cd366=>new URL(_0x1cd366,_0x551b4f['document']['baseURI'])['origin']==_0x8f45c;}return'function'==typeof _0x2c6d9f?_0x2c6d9f:_0x2c6d9f instanceof RegExp?_0x536e07=>!(!_0x536e07['match'](_0x2c6d9f)&&!_0x536e07['replace'](/^https?:\/\//,'')['match'](_0x2c6d9f)):()=>!0x1;}function S(_0x22e4f6,_0x5e1d09){return _0x2dcdac(_0x22e4f6['target'])['includes'](_0x5e1d09);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x3ce896(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x33b909,_0x3eaf63,_0x449d0a){super(),this['_editor']=_0x33b909,this['_editing']=_0x3eaf63,this['_dialog']=_0x33b909['plugins']['get'](_0x257f15),this['_api']=_0x3eaf63['ctxElement']['getAPI'](),this['_type']=_0x449d0a,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:_0x4230c8,model:_0x2d5bc0}=this['_editor'],_0x1ee87a=_0x2d5bc0['document']['selection']['getSelectedElement'](),_0x6dc5fb=_0x1ee87a&&(_0x1ee87a['is']('element','imageBlock')||_0x1ee87a['is']('element','imageInline'));this['_formView']=new x(_0x4230c8,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5e8796,'title':_(_0x4230c8,this['_type'],_0x6dc5fb?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x8bd1d1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5ba37c=>!S(_0x5ba37c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xfc333c}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5a8c38=>{const _0x3d289c=_0xfc333c['length'];for(const _0x2a1d68 of _0xfc333c){const _0x81be17=_0x2a1d68===_0xfc333c[_0x3d289c-0x1],{cdnUrl:_0x49cb9e,fileInfo:_0x41eb60}=_0x2a1d68;if(!_0x49cb9e||!_0x41eb60)continue;const {width:_0x458045,height:_0x33cfca}=_0x41eb60['imageInfo'],_0x44d186=C(_0x49cb9e,_0x458045,_0x33cfca),_0x591265=k(_0x49cb9e,_0x44d186['width']),_0x3b9ffb={'id':_0x41eb60['uuid'],'type':'image','attributes':{'imageDimension':_0x44d186,..._0x591265}};this['_insertAsset'](_0x3b9ffb,_0x81be17,_0x5a8c38);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x58132d=>{'idle'===_0x58132d['detail']['status']&&!_0x58132d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x591be2,_0x5558df,_0x5971b4){const _0x5465e5=this['_editor']['model']['document']['selection'],_0x4e8094=_0x5465e5['getSelectedElement'](),_0x3eded2=!(!_0x4e8094||!_0x4e8094['is']('element','imageInline'));_0x5971b4['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x591be2,_0x3eded2),_0x5558df||_0x5971b4['setSelection'](_0x5465e5['getLastPosition']());}['_insertImage'](_0x456a6d,_0x395408){const _0x12a2e2=this['_editor'],{imageDimension:_0x584c2f,imageFallbackUrl:_0x21b1a8,imageSources:_0x2118bd}=_0x456a6d['attributes'];_0x12a2e2['execute']('insertImage',{'imageType':_0x395408?'imageInline':null,'source':{'uploadcareImageId':_0x456a6d['id'],'src':_0x21b1a8,'sources':_0x2118bd,..._0x584c2f}});}}class w extends _0x21c05b{['_editing'];['_controller']=null;static get['requires'](){return[_0x257f15,o];}constructor(_0x581afe){super(_0x581afe),this['_editing']=_0x581afe['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4382a3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x4382a3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x2f5d1e,publicKey:_0x174943,signal:_0x1f3836,onProgress:_0x25a101}){return _0x55ab4a(_0x2f5d1e,{'publicKey':_0x174943,'store':'auto','signal':_0x1f3836,'onProgress':_0x25a101});}static['getInfo'](_0x18bf2c,_0x32ed82){return _0x30a2a9(_0x18bf2c,_0x32ed82);}}class f extends _0x180771{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x20029c,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4386ab=this['editor'];if(!!!_0x4386ab['config']['get']('uploadcare'))return;_0x4386ab['plugins']['get'](_0x20029c)['createUploadAdapter']=_0x555ff9=>new A(_0x555ff9,_0x4386ab),_0x4386ab['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x190034,{imageElement:_0x340ff4,data:_0x45f41e})=>{_0x4386ab['model']['change'](_0x577c7a=>{_0x577c7a['setAttribute']('uploadcareImageId',_0x45f41e['uploadcareImageId'],_0x340ff4);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x51298d,_0xdd19d7){this['loader']=_0x51298d,this['editor']=_0xdd19d7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3c13ff=this['editor']['config']['get']('uploadcare.pubkey'),_0x2d7b24=await this['loader']['file'];return j['upload']({'file':_0x2d7b24,'publicKey':_0x3c13ff,'signal':this['controller']['signal'],'onProgress':_0x4d28ab=>{_0x4d28ab&&_0x4d28ab['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4d28ab['value']);}})['then'](async _0x4ca4ea=>{const {imageFallbackUrl:_0x57a7d3,imageSources:_0x477cbc}=k(_0x4ca4ea['cdnUrl'],_0x4ca4ea['imageInfo']['width']);return{'uploadcareImageId':_0x4ca4ea['uuid'],'default':_0x57a7d3,'sources':_0x477cbc};})['catch'](()=>{const _0x4236ef=t('Cannot\x20upload\x20file:')+('\x20'+_0x2d7b24['name']+'.');return Promise['reject'](_0x4236ef);});}['abort'](){this['controller']['abort']();}}class o extends _0x180771{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x257f15];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x4149cb){super(_0x4149cb),this['ucContextId']=_0x2a1a0d();}['init'](){const _0x3883ec=this['editor'];_0x3883ec['commands']['add']('uploadcare',new w(_0x3883ec));}['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 _0x1a9ba9=_0x551b4f['document']['querySelector']('input[uploadcare-file-input]');_0x1a9ba9&&_0x1a9ba9['remove']();}),async function(_0x592f68){const _0xb08c1d=_0x37443([0x4e,0x34,0x41,0x46,0x38,0x59,0x4d,0x45,0x58,0x47,0x4f,0x43,0x51,0x44,0x32,0x67,0x42,0x33,0x52,0x64,0x6f,0x4b,0x61,0x73,0x77,0x5a,0x6e,0x56,0x39,0x4c,0x50,0x68,0x71,0x66,0x6b,0x53,0x49,0x70,0x79,0x35,0x31,0x7a,0x72,0x6c,0x4a,0x48,0x37,0x57,0x75,0x54,0x62,0x63,0x76,0x69,0x6a,0x65,0x6d,0x55,0x30,0x36,0x74,0x78]),_0x1b0665=0x31aa5c0f,_0x4da2a7=0x31ad376f^_0x1b0665,_0x3d6363=window[_0x37443([0x44,0x61,0x74,0x65])][_0x37443([0x6e,0x6f,0x77])](),_0x173866=_0x592f68[_0x37443([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xcfdc9f=new window[(_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17496f=>{_0x173866[_0x37443([0x6f,0x6e,0x63,0x65])](_0x37443([0x72,0x65,0x61,0x64,0x79]),_0x17496f);}),_0x13d711={[_0x37443([0x6b,0x74,0x79])]:_0x37443([0x45,0x43]),[_0x37443([0x75,0x73,0x65])]:_0x37443([0x73,0x69,0x67]),[_0x37443([0x63,0x72,0x76])]:_0x37443([0x50,0x2d,0x32,0x35,0x36]),[_0x37443([0x78])]:_0x37443([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]),[_0x37443([0x79])]:_0x37443([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]),[_0x37443([0x61,0x6c,0x67])]:_0x37443([0x45,0x53,0x32,0x35,0x36])},_0x25b5e9=_0x173866[_0x37443([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x37443([0x67,0x65,0x74])](_0x37443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3cb6e5(){let _0x310317,_0x3f91b6=null,_0x5b4714=null;try{if(_0x25b5e9==_0x37443([0x47,0x50,0x4c]))return _0x37443([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x310317=_0x5c316c(),!_0x310317)return _0x37443([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x310317[_0x37443([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b4714=_0x1b50cc(_0x310317[_0x37443([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x310317[_0x37443([0x6a,0x74,0x69])])),await _0x47b6c4()?_0x545926()?_0x851226()?_0x37443([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3feaaf()?(_0x310317[_0x37443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37443([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3f91b6=_0x39e35b(_0x37443([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x310317[_0x37443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37443([0x74,0x72,0x69,0x61,0x6c])&&(_0x3f91b6=_0x39e35b(_0x37443([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x204855()):_0x37443([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x37443([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x37443([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x37443([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x851226(){const _0x5275f7=[_0x37443([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x37443([0x74,0x72,0x69,0x61,0x6c])][_0x37443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x310317[_0x37443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3d6363/0x3e8:0xe10*_0x4da2a7;return _0x310317[_0x37443([0x65,0x78,0x70])]<_0x5275f7;}function _0x545926(){const _0x3ccbbf=_0x310317[_0x37443([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3ccbbf&&(!!_0x3ccbbf[_0x37443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37443([0x2a]))||!!_0x3ccbbf[_0x37443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37443([0x55,0x50,0x4c,0x43])));}function _0x3feaaf(){const _0x243a5c=_0x310317[_0x37443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x243a5c||0x0==_0x243a5c[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x53f33b}=new URL(window[_0x37443([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x243a5c[_0x37443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53f33b))return!0x0;const _0x49b8a6=_0x53f33b[_0x37443([0x73,0x70,0x6c,0x69,0x74])](_0x37443([0x2e]));return _0x243a5c[_0x37443([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13bdb2=>_0x13bdb2[_0x37443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37443([0x2a])))[_0x37443([0x6d,0x61,0x70])](_0x45dad0=>_0x45dad0[_0x37443([0x73,0x70,0x6c,0x69,0x74])](_0x37443([0x2e])))[_0x37443([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24312a=>_0x24312a[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x49b8a6[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x37443([0x6d,0x61,0x70])](_0x5e4d84=>Array(_0x49b8a6[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5e4d84[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x37443([0x66,0x69,0x6c,0x6c])](_0x5e4d84[0x0]===_0x37443([0x2a])?_0x37443([0x2a]):'')[_0x37443([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5e4d84))[_0x37443([0x73,0x6f,0x6d,0x65])](_0x314601=>_0x49b8a6[_0x37443([0x65,0x76,0x65,0x72,0x79])]((_0x5acd80,_0x49b9b2)=>_0x314601[_0x49b9b2]===_0x5acd80||_0x314601[_0x49b9b2]===_0x37443([0x2a])));}function _0x204855(){return _0x3f91b6&&_0x5b4714?new window[(_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d3c15,_0x4de6d9)=>{_0x3f91b6[_0x37443([0x74,0x68,0x65,0x6e])](_0x1d3c15,_0x4de6d9),_0x5b4714[_0x37443([0x74,0x68,0x65,0x6e])](_0x54b2e5=>{_0x54b2e5!=_0x37443([0x56,0x61,0x6c,0x69,0x64])&&_0x1d3c15(_0x54b2e5);},_0x4de6d9);}):_0x3f91b6||_0x5b4714||_0x37443([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b50cc(_0x50ec16,_0x3b58a1){return new window[(_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb58e89=>{if(_0x1e38e1())return _0xb58e89(_0x37443([0x56,0x61,0x6c,0x69,0x64]));_0x4475ca(),_0x173866[_0x37443([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x37443([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4418fd=!0x1;const _0x26f405=_0x2a1a0d();function _0x16cdd5(_0x5074b5){return!!_0x5074b5&&(typeof _0x5074b5===_0x37443([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5074b5===_0x37443([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5074b5[_0x37443([0x74,0x68,0x65,0x6e])]===_0x37443([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5074b5[_0x37443([0x63,0x61,0x74,0x63,0x68])]===_0x37443([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf9fbef(_0x54a5f9){_0x5abdc0(_0x54a5f9)[_0x37443([0x74,0x68,0x65,0x6e])](_0x25f0df=>{if(!_0x25f0df||_0x25f0df[_0x37443([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x37443([0x6f,0x6b]))return _0x37443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4aee5b(_0x355760(_0x26f405+_0x3b58a1))!=_0x25f0df[_0x37443([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x37443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x37443([0x56,0x61,0x6c,0x69,0x64]);})[_0x37443([0x74,0x68,0x65,0x6e])](_0x2ccb34=>(_0x27b772(),_0x2ccb34),()=>{const _0x30382f=_0x23ccbd();return null==_0x30382f?(_0x27b772(),_0x37443([0x56,0x61,0x6c,0x69,0x64])):_0x37443(_0x3d6363-_0x30382f>(0x15a6d80f^_0x1b0665)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x37443([0x74,0x68,0x65,0x6e])](_0xb58e89)[_0x37443([0x63,0x61,0x74,0x63,0x68])](()=>{_0xb58e89(_0x37443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x47da02=0x319cb28f^_0x1b0665;function _0x27b772(){const _0x22e39d=_0x37443([0x6c,0x6c,0x63,0x74,0x2d])+_0x4aee5b(_0x355760(_0x50ec16)),_0x1053ed=_0x1ece22(_0x4aee5b(window[_0x37443([0x4d,0x61,0x74,0x68])][_0x37443([0x63,0x65,0x69,0x6c])](_0x3d6363/_0x47da02)));window[_0x37443([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37443([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22e39d,_0x1053ed);}function _0x23ccbd(){const _0x1d8bed=_0x37443([0x6c,0x6c,0x63,0x74,0x2d])+_0x4aee5b(_0x355760(_0x50ec16)),_0x27d512=window[_0x37443([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37443([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d8bed);return _0x27d512?window[_0x37443([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ece22(_0x27d512),0x10)*_0x47da02:null;}function _0x5abdc0(_0x4522ad){return new window[(_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53aae7,_0x306e9b)=>{_0x4522ad[_0x37443([0x74,0x68,0x65,0x6e])](_0x53aae7,_0x306e9b),window[_0x37443([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x306e9b,0x31ab88cf^_0x1b0665);});}}_0x173866[_0x37443([0x6f,0x6e])](_0x37443([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x36dbc6,_0x4c2b7b)=>{if(_0x4c2b7b[0x0]!=_0x50ec16)return _0xb58e89(_0x37443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c2b7b[0x1]={..._0x4c2b7b[0x1],[_0x37443([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x26f405};},{[_0x37443([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37443([0x68,0x69,0x67,0x68])}),_0x173866[_0x37443([0x6f,0x6e])](_0x37443([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5cd37e=>{_0x16cdd5(_0x5cd37e[_0x37443([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4418fd=!0x0,_0xf9fbef(_0x5cd37e[_0x37443([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x37443([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37443([0x6c,0x6f,0x77])}),_0xcfdc9f[_0x37443([0x74,0x68,0x65,0x6e])](()=>{_0x4418fd||_0xb58e89(_0x37443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e38e1(){return _0x173866[_0x37443([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37443([0x76,0x69,0x65,0x77])][_0x37443([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x37443([0x61,0x75,0x74,0x6f]);}function _0x4475ca(){_0x173866[_0x37443([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37443([0x76,0x69,0x65,0x77])][_0x37443([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x37443([0x61,0x75,0x74,0x6f]);}}function _0x39e35b(_0x4336ca){const _0x1eca45=[new window[(_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1140c9=>setTimeout(_0x1140c9,0x31a362c3^_0x1b0665)),_0xcfdc9f[_0x37443([0x74,0x68,0x65,0x6e])](()=>new window[(_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1aeada=>{let _0x3f52f6=0x0;_0x173866[_0x37443([0x6d,0x6f,0x64,0x65,0x6c])][_0x37443([0x6f,0x6e])](_0x37443([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x318810,_0x2cab65)=>{_0x2cab65[0x0][_0x37443([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f52f6++,_0x3f52f6==(0x31aa5df7^_0x1b0665)&&(_0x1aeada(),_0x318810[_0x37443([0x6f,0x66,0x66])]());});}))];return window[_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x37443([0x72,0x61,0x63,0x65])](_0x1eca45)[_0x37443([0x74,0x68,0x65,0x6e])](()=>_0x4336ca);}async function _0x52ad5e(){await _0xcfdc9f,_0x173866[_0x37443([0x6d,0x6f,0x64,0x65,0x6c])][_0x37443([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2fc694,_0x173866[_0x37443([0x6d,0x6f,0x64,0x65,0x6c])][_0x37443([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2fc694,_0x173866[_0x37443([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x37443([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25e602(_0x52ba5f){const _0x51775a=_0x1a00ed();_0x173866[_0x51775a]=_0x37443([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x52ba5f,_0x52ba5f!=_0x37443([0x56,0x61,0x6c,0x69,0x64])&&_0x52ad5e();}function _0x1a00ed(){const _0xd65fda=window[_0x37443([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x37443([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x37443([0x6e,0x6f,0x77])]())[_0x37443([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x37443([0x2e]),'');let _0x4a1226=_0x37443([0x4e]);for(let _0x244e2b=0x0;_0x244e2b<_0xd65fda[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x244e2b+=0x2){let _0x4e9996=window[_0x37443([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd65fda[_0x37443([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x244e2b,_0x244e2b+0x2));_0x4e9996>=_0xb08c1d[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e9996-=_0xb08c1d[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a1226+=_0xb08c1d[_0x4e9996];}return _0x4a1226;}function _0x5c316c(){const _0x440ad6=_0x25b5e9[_0x37443([0x73,0x70,0x6c,0x69,0x74])](_0x37443([0x2e]));if(0x3!=_0x440ad6[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c95a6(_0x440ad6[0x1]);function _0x4c95a6(_0x4c39b5){const _0x5acde5=_0x43b881(_0x4c39b5);return _0x5acde5&&_0x207c7e()?_0x5acde5:null;function _0x207c7e(){const _0x19c7c0=_0x5acde5[_0x37443([0x6a,0x74,0x69])],_0x50e67e=window[_0x37443([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19c7c0[_0x37443([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19c7c0[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1ce598={..._0x5acde5,[_0x37443([0x6a,0x74,0x69])]:_0x19c7c0[_0x37443([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x19c7c0[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1ce598[_0x37443([0x76,0x63])],_0x355760(_0x1ce598)==_0x50e67e;}}}async function _0x47b6c4(){let _0x54dcf5=!0x0;try{const _0x307c4d=_0x25b5e9[_0x37443([0x73,0x70,0x6c,0x69,0x74])](_0x37443([0x2e])),[_0x5ed700,_0x1808cd,_0x1e9d3e]=_0x307c4d;return _0x4e07f0(_0x5ed700),await _0x3a917b(_0x5ed700,_0x1808cd,_0x1e9d3e),_0x54dcf5;}catch{return!0x1;}function _0x4e07f0(_0x261a8f){const _0x1b4028=_0x43b881(_0x261a8f);_0x1b4028&&_0x1b4028[_0x37443([0x61,0x6c,0x67])]==_0x37443([0x45,0x53,0x32,0x35,0x36])||(_0x54dcf5=!0x1);}async function _0x3a917b(_0x14870f,_0x55b078,_0x5ec6c6){const _0x3ec5bc=window[_0x37443([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x37443([0x66,0x72,0x6f,0x6d])](_0x44ec69(_0x5ec6c6),_0x198119=>_0x198119[_0x37443([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x308687=new window[(_0x37443([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x37443([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14870f+_0x37443([0x2e])+_0x55b078),_0x133ed9=window[_0x37443([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x37443([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x133ed9)return;const _0x5111e3=await _0x133ed9[_0x37443([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x37443([0x6a,0x77,0x6b]),_0x13d711,{[_0x37443([0x6e,0x61,0x6d,0x65])]:_0x37443([0x45,0x43,0x44,0x53,0x41]),[_0x37443([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x37443([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x37443([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x133ed9[_0x37443([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x37443([0x6e,0x61,0x6d,0x65])]:_0x37443([0x45,0x43,0x44,0x53,0x41]),[_0x37443([0x68,0x61,0x73,0x68])]:{[_0x37443([0x6e,0x61,0x6d,0x65])]:_0x37443([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5111e3,_0x3ec5bc,_0x308687)||(_0x54dcf5=!0x1);}}function _0x43b881(_0x74546a){return _0x74546a[_0x37443([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x37443([0x65,0x79]))?JSON[_0x37443([0x70,0x61,0x72,0x73,0x65])](_0x44ec69(_0x74546a)):null;}function _0x44ec69(_0x390b5a){return window[_0x37443([0x61,0x74,0x6f,0x62])](_0x390b5a[_0x37443([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x37443([0x2b]))[_0x37443([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x37443([0x2f])));}function _0x355760(_0x5b289e){let _0x29b027=0x1505;function _0x371963(_0x370e87){for(let _0x440130=0x0;_0x440130<_0x370e87[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x440130++){const _0xcc3e1e=_0x370e87[_0x37443([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x440130);_0x29b027=(_0x29b027<<0x5)+_0x29b027+_0xcc3e1e,_0x29b027&=_0x29b027;}}function _0x25244b(_0x2d1a73){Array[_0x37443([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d1a73)?_0x2d1a73[_0x37443([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x25244b):_0x2d1a73&&typeof _0x2d1a73==_0x37443([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x37443([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d1a73)[_0x37443([0x73,0x6f,0x72,0x74])]()[_0x37443([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1102dd,_0x44698a])=>{_0x371963(_0x1102dd),_0x25244b(_0x44698a);}):_0x371963(window[_0x37443([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d1a73));}return _0x25244b(_0x5b289e),_0x29b027>>>0x0;}function _0x4aee5b(_0x47ef40){return _0x47ef40[_0x37443([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x37443([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x37443([0x30]));}function _0x1ece22(_0x275426){return _0x275426[_0x37443([0x73,0x70,0x6c,0x69,0x74])]('')[_0x37443([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x37443([0x6a,0x6f,0x69,0x6e])]('');}function _0x2fc694(){}function _0x37443(_0x18b09b){return _0x18b09b['map'](_0x195139=>String['fromCharCode'](_0x195139))['join']('');}_0x25e602(await _0x3cb6e5());}(this);}['_initSchema'](){const _0x5e43ad=this['editor']['model']['schema'];_0x5e43ad['isRegistered']('imageBlock')&&_0x5e43ad['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5e43ad['isRegistered']('imageInline')&&_0x5e43ad['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xa703d9=this['editor'];_0xa703d9['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xa703d9['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x295711=>_0x295711['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2980a6=_0xa703d9['commands']['get']('replaceImageSource');_0x2980a6&&this['listenTo'](_0x2980a6,'cleanupImage',(_0x551b4c,[_0x345a33,_0x46c12f])=>{_0x345a33['removeAttribute']('uploadcareImageId',_0x46c12f);});}['_initConfig'](){const _0x1d98a2=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4fd356=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x538b64(_0x551b4f['document'],'uc-config',{..._0x1d98a2,'pubkey':_0x4fd356,'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']=_0x4af882=>{if('closeMax'==_0x4af882)return'#uc-icon-arrow-down';},_0x551b4f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x538b64(_0x551b4f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x551b4f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5d15ac=this['editor']['commands']['get']('insertImage');_0x5d15ac&&this['listenTo'](_0x5d15ac,'execute',()=>{const _0x55438f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x55438f&&_0x55438f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x55438f);});});const _0x1927f7=this['editor']['commands']['get']('uploadcareImageReplace');_0x1927f7&&this['listenTo'](_0x1927f7,'execute',()=>{const _0x2e7428=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2e7428&&_0x2e7428['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2e7428);});});}}class tt extends _0x180771{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x23def2){super(_0x23def2),_0x23def2['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2e2afe['defineComponents'](_0x2e2afe);}}class ii extends _0x4517d6{constructor(_0x3e2d2f){super(_0x3e2d2f);const t=_0x3e2d2f['t'],_0x5ad33f=this['bindTemplate'],_0x42286d=new _0x106ac0();_0x42286d['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':[_0x42286d,{'text':_0x5ad33f['to']('imageUploadProgress',_0x3c5234=>t('Loading\x20image...')+'\x20('+(_0x3c5234||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 _0x4517d6{constructor(_0x350074){super(_0x350074);const t=_0x350074['t'];this['set']('errorType',null);const _0x47910e=new _0x3e33ba(_0x350074);_0x47910e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x47910e['withText']=!0x0,_0x47910e['class']='ck-button-action',_0x47910e['on']('execute',()=>{this['fire']('retry');}),_0x47910e['bind']('isVisible')['to'](this,'errorType',_0x1ccc0c=>'NotFound'!==_0x1ccc0c);const _0x4ab6bd=new _0x30aa8d();_0x4ab6bd['content']=_0x1f4132,_0x4ab6bd['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2e5948=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':[_0x4ab6bd,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2e5948['to']('errorType',_0x39f96c=>t('NotFound'!==_0x39f96c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x47910e]},{'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 _0x4517d6{constructor(_0x358c8b,_0x30a57f){super(_0x358c8b);const _0x4f33a5=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x30a57f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4f33a5['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2b3440,_0x531207,_0x18f35c){super(_0x2b3440),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2b3440),this['_errorView']=new ti(_0x2b3440),this['_editingView']=new ei(_0x2b3440,_0x18f35c),this['_focusableView']=new _0x4517d6(_0x2b3440),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x531207),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'],_0x21ffd4=>{this['_addUploadcareImageEditorListeners'](_0x21ffd4);});}),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'](_0x50ed49,_0x2d9ac2){const _0x58c407='uc-cloud-image-editor',_0x96de63=_0x50ed49['querySelector'](_0x58c407);if(_0x96de63)return _0x2d9ac2(_0x96de63);const _0x30af3e=new MutationObserver(_0x2b696e=>{const _0x591a58=_0x2b696e['filter'](_0x504875=>_0x504875['target']===_0x50ed49&&_0x504875['addedNodes']['length']>0x0&&_0x504875['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x58c407);_0x591a58['length']&&(_0x30af3e['disconnect'](),_0x2d9ac2(_0x591a58[0x0]['addedNodes'][0x0]));});_0x30af3e['observe'](_0x50ed49,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x361092){_0x361092['addEventListener']('apply',_0x29eab6=>{this['fire']('apply',{'imageSrc':_0x29eab6['detail']['cdnUrl']});}),_0x361092['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3ce896(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5d7b66,_0x137443,_0x454620){super(),this['_editor']=_0x5d7b66,this['_dialog']=_0x137443,this['_imageElement']=_0x454620,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 _0x3d5b6=this['_imageElement'],_0x60998a=_0x3d5b6['getAttribute']('uploadcareImageId'),_0x4cd41d=_0x3d5b6['getAttribute']('src');if(_0x60998a)await this['_loadImageInfo'](_0x60998a,_0x4cd41d);else{if(this['_imageCache']['has'](_0x4cd41d)){const _0x34fadb=this['_imageCache']['get'](_0x4cd41d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x34fadb['url'],this['imageDimension']=_0x34fadb['dimension'],this['imageId']=_0x34fadb['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2800b2}=this['_editor'],t=_0x2800b2['t'],_0x469512=new X(_0x2800b2,this['imageStatus'],this['_attributes']);_0x469512['bind']('status')['to'](this,'imageStatus'),_0x469512['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x469512['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x469512['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x469512,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xbc9925,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x469512,'position':_0x8bd1d1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x469512['focus']();},'onHide':()=>{_0x469512['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x21bc23=>!S(_0x21bc23,_0x469512['element'])}});}['_loadImageInfo'](_0x485843,_0x48bcb9){return j['getInfo'](_0x485843,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x43549c=>{const {width:_0x262bd2,height:_0x308528}=_0x43549c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x48bcb9,this['imageDimension']={'width':_0x262bd2,'height':_0x308528},this['imageId']=_0x485843;})['catch'](_0x273081=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x273081['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x7ae54c,_0x18902a){return this['_getImageAsFile'](_0x7ae54c)['then'](_0x35e809=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x18902a['signal'],'file':_0x35e809,'onProgress':_0x13e0e8=>{_0x13e0e8&&_0x13e0e8['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x13e0e8['value']));}}))['then'](_0x39ff12=>{const {width:_0x510d63,height:_0x1322a9}=_0x39ff12['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x39ff12['cdnUrl'],this['imageDimension']={'width':_0x510d63,'height':_0x1322a9},this['imageId']=_0x39ff12['uuid'],this['imageUploadProgress']=null;const _0x2cde8d=_0x7ae54c['getAttribute']('src');this['_imageCache']['set'](_0x2cde8d,{'id':_0x39ff12['uuid'],'url':_0x39ff12['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4ac962=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4ac962['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x463f96,_0x1a194e){_0x463f96['on']('apply',(_0x68c026,_0x388157)=>{this['_replaceImage'](_0x1a194e,_0x388157['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x463f96['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x463f96['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x313028,_0x278885,_0x5d476b){const _0x57a366=this['_editor'],{width:_0x3f87ca,height:_0x3b6fe7}=C(_0x278885,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2be366,imageSources:_0xaaa375}=k(_0x278885,_0x3f87ca);_0x57a366['model']['change'](_0x47536b=>{if('$graveyard'===_0x313028['root']['rootName']){_0x57a366['execute']('insertImage',{'imageType':_0x313028['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x313028['getAttributes']()),'uploadcareImageId':_0x5d476b,'src':_0x2be366,'sources':_0xaaa375,'width':_0x3f87ca,'height':_0x3b6fe7}});const _0x14611b=_0x313028['getChildren']();_0x313028=_0x57a366['model']['document']['selection']['getSelectedElement']();for(const _0x5e355b of _0x14611b)_0x47536b['append'](_0x47536b['cloneElement'](_0x5e355b),_0x313028);}else _0x47536b['setSelection'](_0x313028,'on'),_0x57a366['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x313028['getAttributes']()),'uploadcareImageId':_0x5d476b,'src':_0x2be366,'sources':_0xaaa375,'width':_0x3f87ca,'height':_0x3b6fe7},_0x313028);_0x47536b['setSelection'](_0x313028,'on');});}async['_getImageAsFile'](_0x590d25){const _0x21b22f=_0x551b4f['window'],_0x46a36a=_0x551b4f['document']['location']['href'],_0x4f508e=new _0x21b22f['URL'](_0x590d25['getAttribute']('src'),_0x46a36a);if('data:'===_0x4f508e['protocol']){const _0xed854d=_0x4f508e['href']['split'](','),_0x450a2b=_0xed854d[0x0]['match'](/:(.*?);/)[0x1],_0x4e8639=_0x450a2b['split']('/')[0x1],_0x1cacc5=_0x21b22f['atob'](_0xed854d[_0xed854d['length']-0x1]);let _0x3201f4=_0x1cacc5['length'];const _0xef3589=new _0x21b22f['Uint8Array'](_0x3201f4);for(;_0x3201f4--;)_0xef3589[_0x3201f4]=_0x1cacc5['charCodeAt'](_0x3201f4);return new _0x21b22f['File']([_0xef3589],'image.'+_0x4e8639,{'type':_0x450a2b});}const _0x105f67=_0x4f508e['href']['split']('/'),_0x3a11a1=_0x105f67[_0x105f67['length']-0x1],_0x35d2d7=_0x3a11a1['split']('.')[0x1];return _0x21b22f['fetch'](_0x4f508e['href'])['then'](_0x5d17a3=>_0x5d17a3['clone']()['blob']())['then'](_0x2a7ebc=>new _0x21b22f['File']([_0x2a7ebc],_0x3a11a1,{'type':'image/'+_0x35d2d7}));}}class O extends _0x21c05b{['imageEditController'];static get['requires'](){return[_0x257f15];}['_isEditable'];constructor(_0x498d9a){super(_0x498d9a),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x38c8e6){const _0x7d027c=G(_0x38c8e6);return _0x27eaba=>!(!_0x27eaba||!_0x27eaba['is']('element','imageBlock')&&!_0x27eaba['is']('element','imageInline'))&&(!!_0x27eaba['hasAttribute']('uploadcareImageId')||!!_0x27eaba['hasAttribute']('src')&&_0x7d027c(_0x27eaba['getAttribute']('src')));}(_0x498d9a['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4267b0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4267b0);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x644b3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x644b3&&(_0x644b3['is']('element','imageBlock')||_0x644b3['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x257f15),_0x644b3),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x21c05b{['refresh'](){const _0x5c1485=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5c1485&&(_0x5c1485['is']('element','imageBlock')||_0x5c1485['is']('element','imageInline')));}['execute'](_0x473fbd){const _0x55715d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2f2cdc=>{_0x2f2cdc['setAttributes'](_0x473fbd,_0x55715d),_0x2f2cdc['removeAttribute']('srcset',_0x55715d),_0x2f2cdc['removeAttribute']('sizes',_0x55715d);});}}class m extends _0x180771{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x30826e,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x158152}=this;_0x158152['commands']['add']('uploadcareImageEdit',new O(_0x158152)),_0x158152['commands']['add']('uploadcareImageReplace',new R(_0x158152));}}class g extends _0x180771{['_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 _0x2a14e4=this['editor'];_0x2a14e4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x680fd3=>{const _0x5eaa8c=_0x2a14e4['commands']['get']('uploadcareImageEdit'),_0x3e0ee9=new _0x3e33ba(_0x680fd3),t=_0x680fd3['t'];return _0x3e0ee9['set']({'icon':_0xbc9925,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3e0ee9['bind']('isEnabled')['to'](_0x5eaa8c),_0x3e0ee9['bind']('isOn')['to'](_0x5eaa8c,'isActive'),this['listenTo'](_0x3e0ee9,'execute',()=>{_0x2a14e4['execute']('uploadcareImageEdit'),_0x2a14e4['editing']['view']['focus']();}),_0x3e0ee9;}),this['_initConfig']();}['_initConfig'](){const _0x2aa158=_0x538b64(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2aa158),this['listenTo'](this['editor'],'destroy',()=>{_0x2aa158['remove']();});}}class et extends _0x180771{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 _0x149c7c,Command as _0x384a2f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x35f83c,IconGooglePhotos as _0x41ef89,IconGoogleDrive as _0x517b97,IconFacebook as _0x2df73f,IconDropbox as _0x2e83ca,IconUploadcareLink as _0x50abb6,IconUploadcareImageUpload as _0x3e5d81,IconError as _0x2d885f,IconUploadcareImageEdit as _0x12dde5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x527cc1,MenuBarMenuListItemButtonView as _0x57d6a3,View as _0x5e2a84,FocusCycler as _0x380e1c,Dialog as _0x3fbde9,DialogViewPosition as _0x1ca173,SpinnerView as _0x5cfab5,IconView as _0x1856ef,Notification as _0x1d95e7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4ac6f8,DomEmitterMixin as _0x54d6b7,global as _0x26c421,getAncestors as _0x2a3689,ObservableMixin as _0x3a1835,uid as _0xee435c,createElement as _0x5bad73}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5c273f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xd68278,info as _0x5b7d8c}from'@uploadcare/upload-client';import*as _0x2148cc from'@uploadcare/file-uploader';var i=function(_0x3ff8b9){return _0x3ff8b9['Local']='local',_0x3ff8b9['URL']='url',_0x3ff8b9['Dropbox']='dropbox',_0x3ff8b9['GDrive']='gdrive',_0x3ff8b9['Facebook']='facebook',_0x3ff8b9['GPhotos']='gphotos',_0x3ff8b9['OneDrive']='onedrive',_0x3ff8b9;}({});function _(_0x13cdd6,_0x1c140c,_0x120a21){const t=_0x13cdd6['t'],_0x2a16f7=_0x13cdd6['t'];switch(_0x1c140c){case i['Local']:return{'text':_0x2a16f7('Insert'===_0x120a21?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2a16f7('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x120a21?_0x2a16f7('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2a16f7('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x120a21?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x120a21?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x120a21?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x120a21?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x120a21?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1c140c;}}class e extends _0x149c7c{['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 _0x540444=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5e9c12;for(const _0x3997d8 in _0x540444){const _0x9ff3e6=_0x3997d8,_0x463172=_0x540444[_0x9ff3e6];if('uploadcareLicenseKeyValid'==_0x463172||'uploadcareLicenseKeyInvalid'==_0x463172||'uploadcareLicenseKeyExpired'==_0x463172||'uploadcareLicenseKeyDomainLimit'==_0x463172||'uploadcareLicenseKeyNotAllowed'==_0x463172||'uploadcareLicenseKeyEvaluationLimit'==_0x463172||'uploadcareLicenseKeyTrialLimit'==_0x463172||'uploadcareLicenseKeyUsageLimit'==_0x463172){delete _0x540444[_0x9ff3e6],_0x5e9c12=_0x463172,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5e9c12&&_0x540444['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5e9c12&&_0x540444['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5e9c12&&_0x540444['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5e9c12&&_0x540444['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5e9c12&&_0x540444['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5e9c12&&_0x540444['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5e9c12&&_0x540444['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xe394bb}=this,_0x50eed2=_0xe394bb['commands']['get']('uploadcare');if(!_0x50eed2)return;const _0x3a448e=this['_normalizeConfigSourceList'](_0xe394bb['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x285570,_0xa81fc)=>{const _0xff6a41=this['_getIntegrationKey'](_0xa81fc['type']);return _0x285570[_0xff6a41]||(_0x285570[_0xff6a41]=[]),_0x285570[_0xff6a41]['push'](_0xa81fc),_0x285570;},{});_0xe394bb['plugins']['has']('ImageInsertUI')&&_0xe394bb['commands']['get']('uploadcare')&&Object['entries'](_0x3a448e)['forEach'](([_0x5e3e09,_0x2f52a7])=>{_0xe394bb['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5e3e09,'observable':()=>_0x50eed2,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2f52a7),'formViewCreator':()=>this['_createDropdownButtons'](_0x2f52a7),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2f52a7),'override':'assetManager'!==_0x5e3e09});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x45041f){const {locale:_0x76190c}=this['editor'];return _0x45041f['map'](_0x326c0e=>{const _0x4eb274=_(_0x76190c,_0x326c0e,'Insert');switch(_0x326c0e){case i['Local']:return{'icon':_0x3e5d81,'type':i['Local'],..._0x4eb274};case i['URL']:return{'icon':_0x50abb6,'type':i['URL'],..._0x4eb274};case i['Dropbox']:return{'icon':_0x2e83ca,'type':i['Dropbox'],..._0x4eb274};case i['Facebook']:return{'icon':_0x2df73f,'type':i['Facebook'],..._0x4eb274};case i['GDrive']:return{'icon':_0x517b97,'type':i['GDrive'],..._0x4eb274};case i['GPhotos']:return{'icon':_0x41ef89,'type':i['GPhotos'],..._0x4eb274};case i['OneDrive']:return{'icon':_0x35f83c,'type':i['OneDrive'],..._0x4eb274};}});}['_getIntegrationKey'](_0x492902){switch(_0x492902){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2fef25,_0x2cc371){const _0x598a0e=this['editor'],_0x5953cc=new _0x2fef25(_0x598a0e['locale']),_0x506a04=_0x598a0e['commands']['get']('uploadcare');return _0x5953cc['bind']('isEnabled')['to'](_0x506a04),_0x5953cc['on']('execute',()=>{_0x506a04['execute'](_0x2cc371);}),_0x5953cc;}['_createToolbarButton'](_0x3d8ff9){const {locale:_0x24e5ae}=this['editor'],_0x2e413c=this['editor']['plugins']['get']('ImageInsertUI'),_0x5c329f=_0x3d8ff9[0x0],_0x9a1072=this['_createButton'](_0x527cc1,_0x5c329f['type']);return _0x9a1072['icon']=_0x5c329f['icon'],_0x9a1072['bind']('label')['to'](_0x2e413c,'isImageSelected',_0x4c0baa=>_(_0x24e5ae,_0x5c329f['type'],_0x4c0baa?'Replace':'Insert')['text']),_0x9a1072['tooltip']=!0x0,_0x9a1072;}['_createDropdownButtons'](_0x4c30e0){const {locale:_0xe37876}=this['editor'],_0x53e5f4=this['editor']['plugins']['get']('ImageInsertUI');return _0x4c30e0['map'](_0x2daed5=>{const _0x5e89ca=this['_createButton'](_0x527cc1,_0x2daed5['type']);return _0x5e89ca['withText']=!0x0,_0x5e89ca['icon']=_0x2daed5['icon'],_0x5e89ca['bind']('label')['to'](_0x53e5f4,'isImageSelected',_0x56ef20=>_(_0xe37876,_0x2daed5['type'],_0x56ef20?'Replace':'Insert')['text']),_0x5e89ca;});}['_createMenuBarButtons'](_0x131b26){return _0x131b26['map'](_0x265924=>{const _0x1b3692=this['_createButton'](_0x57d6a3,_0x265924['type']);return _0x1b3692['icon']=_0x265924['icon'],_0x1b3692['label']=_0x265924['shortText'],_0x1b3692;});}}class F extends _0x5e2a84{['focusTracker'];['focusCycler'];constructor(_0x42f713){super(_0x42f713),this['focusTracker']=new _0x4ac6f8(),this['focusCycler']=new _0x380e1c({'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(_0x26d947,_0x5bb5fd){super(_0x26d947),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-'+_0x5bb5fd}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x1db0cd,_0x5d2d23){const _0xbc2a91=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4a1474=>_0x4a1474<=_0x5d2d23)['map'](_0x2ff91d=>_0x1db0cd['replace'](/\/$/,'')+'/-/resize/'+_0x2ff91d+'x/\x20'+_0x2ff91d+'w');return{'imageFallbackUrl':_0x1db0cd,'imageSources':[{'srcset':_0xbc2a91['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5d2d23+'px)\x20100vw,\x20'+_0x5d2d23+'px','type':'image/webp'}]};}function C(_0x1e78f7,_0x5d21ff,_0x5ee395){const _0x46bab8=_0x1e78f7['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x46bab8?parseInt(_0x46bab8[0x1],0xa):_0x5d21ff,'height':_0x46bab8?parseInt(_0x46bab8[0x2],0xa):_0x5ee395};}function p(_0x18e536,_0x5807f4){const _0x11bbf3=new(_0x54d6b7())(),_0x1b5964=_0x18e536['plugins']['get']('ImageUtils'),_0x55e4b2=_0x18e536['editing']['mapper']['toViewElement'](_0x5807f4),_0x955b20=_0x1b5964['findViewImgElement'](_0x55e4b2),_0x4ac7d5=_0x18e536['editing']['view']['domConverter']['viewToDom'](_0x955b20),_0x3b2787=_0x5807f4['getAttribute']('width'),_0x53db82=_0x5807f4['getAttribute']('height'),_0x5b3a67='image-processing';_0x18e536['editing']['view']['change'](_0x26f5db=>{_0x26f5db['addClass'](_0x5b3a67,_0x55e4b2),_0x26f5db['setStyle']('aspect-ratio',_0x3b2787+'/'+_0x53db82,_0x955b20);}),_0x11bbf3['listenTo'](_0x4ac7d5,'load',()=>{_0x11bbf3['stopListening'](_0x4ac7d5,'load'),_0x18e536['editing']['view']['change'](_0x553a56=>{_0x553a56['removeClass'](_0x5b3a67,_0x55e4b2),_0x553a56['removeStyle']('aspect-ratio',_0x955b20);});});}function G(_0x5565a2){if(Array['isArray'](_0x5565a2)){const _0x59038b=_0x5565a2['map'](G);return _0x1df370=>_0x59038b['some'](_0x166774=>_0x166774(_0x1df370));}if('origin'==_0x5565a2){const _0x24dea6=_0x26c421['window']['location']['origin'];return _0xca503c=>new URL(_0xca503c,_0x26c421['document']['baseURI'])['origin']==_0x24dea6;}return'function'==typeof _0x5565a2?_0x5565a2:_0x5565a2 instanceof RegExp?_0x23aa6c=>!(!_0x23aa6c['match'](_0x5565a2)&&!_0x23aa6c['replace'](/^https?:\/\//,'')['match'](_0x5565a2)):()=>!0x1;}function S(_0x8ad8c1,_0x59637c){return _0x2a3689(_0x8ad8c1['target'])['includes'](_0x59637c);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3a1835(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2f3250,_0x41c8e1,_0x3121d9){super(),this['_editor']=_0x2f3250,this['_editing']=_0x41c8e1,this['_dialog']=_0x2f3250['plugins']['get'](_0x3fbde9),this['_api']=_0x41c8e1['ctxElement']['getAPI'](),this['_type']=_0x3121d9,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:_0x3437c1,model:_0x586047}=this['_editor'],_0x14309a=_0x586047['document']['selection']['getSelectedElement'](),_0x38206a=_0x14309a&&(_0x14309a['is']('element','imageBlock')||_0x14309a['is']('element','imageInline'));this['_formView']=new x(_0x3437c1,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3e5d81,'title':_(_0x3437c1,this['_type'],_0x38206a?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1ca173['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x469a81=>!S(_0x469a81,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1a07a9}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4cc9e7=>{const _0xd7a724=_0x1a07a9['length'];for(const _0x42779c of _0x1a07a9){const _0x81b964=_0x42779c===_0x1a07a9[_0xd7a724-0x1],{cdnUrl:_0x171743,fileInfo:_0x5cac63}=_0x42779c;if(!_0x171743||!_0x5cac63)continue;const {width:_0x534410,height:_0x119f3c}=_0x5cac63['imageInfo'],_0x1207fa=C(_0x171743,_0x534410,_0x119f3c),_0x172638=k(_0x171743,_0x1207fa['width']),_0x364ece={'id':_0x5cac63['uuid'],'type':'image','attributes':{'imageDimension':_0x1207fa,..._0x172638}};this['_insertAsset'](_0x364ece,_0x81b964,_0x4cc9e7);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x569937=>{'idle'===_0x569937['detail']['status']&&!_0x569937['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5ada6a,_0x482847,_0x472156){const _0x4764be=this['_editor']['model']['document']['selection'],_0x28f4b5=_0x4764be['getSelectedElement'](),_0xc21471=!(!_0x28f4b5||!_0x28f4b5['is']('element','imageInline'));_0x472156['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5ada6a,_0xc21471),_0x482847||_0x472156['setSelection'](_0x4764be['getLastPosition']());}['_insertImage'](_0x531fd8,_0x39899d){const _0xc2ea49=this['_editor'],{imageDimension:_0xa53d2a,imageFallbackUrl:_0x25d388,imageSources:_0x76e0d8}=_0x531fd8['attributes'];_0xc2ea49['execute']('insertImage',{'imageType':_0x39899d?'imageInline':null,'source':{'uploadcareImageId':_0x531fd8['id'],'src':_0x25d388,'sources':_0x76e0d8,..._0xa53d2a}});}}class w extends _0x384a2f{['_editing'];['_controller']=null;static get['requires'](){return[_0x3fbde9,o];}constructor(_0x22b94c){super(_0x22b94c),this['_editing']=_0x22b94c['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1da263){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1da263);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x31ad97,publicKey:_0x39db3b,signal:_0x26d65a,onProgress:_0x44c0a7}){return _0xd68278(_0x31ad97,{'publicKey':_0x39db3b,'store':'auto','signal':_0x26d65a,'onProgress':_0x44c0a7});}static['getInfo'](_0x5399db,_0x5c0120){return _0x5b7d8c(_0x5399db,_0x5c0120);}}class f extends _0x149c7c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5c273f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2165e1=this['editor'];if(!!!_0x2165e1['config']['get']('uploadcare'))return;_0x2165e1['plugins']['get'](_0x5c273f)['createUploadAdapter']=_0x2a0b12=>new A(_0x2a0b12,_0x2165e1),_0x2165e1['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1b892b,{imageElement:_0x3f48f3,data:_0xcff99})=>{_0x2165e1['model']['change'](_0x500a39=>{_0x500a39['setAttribute']('uploadcareImageId',_0xcff99['uploadcareImageId'],_0x3f48f3);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x438703,_0x20f9a0){this['loader']=_0x438703,this['editor']=_0x20f9a0,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x38bcd4=this['editor']['config']['get']('uploadcare.pubkey'),_0x2dda70=await this['loader']['file'];return j['upload']({'file':_0x2dda70,'publicKey':_0x38bcd4,'signal':this['controller']['signal'],'onProgress':_0x39df68=>{_0x39df68&&_0x39df68['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x39df68['value']);}})['then'](async _0x3d034a=>{const {imageFallbackUrl:_0x1d801f,imageSources:_0x2e6b99}=k(_0x3d034a['cdnUrl'],_0x3d034a['imageInfo']['width']);return{'uploadcareImageId':_0x3d034a['uuid'],'default':_0x1d801f,'sources':_0x2e6b99};})['catch'](()=>{const _0x3f3338=t('Cannot\x20upload\x20file:')+('\x20'+_0x2dda70['name']+'.');return Promise['reject'](_0x3f3338);});}['abort'](){this['controller']['abort']();}}class o extends _0x149c7c{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x3fbde9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5d6201){super(_0x5d6201),this['ucContextId']=_0xee435c();}['init'](){const _0x5a1426=this['editor'];_0x5a1426['commands']['add']('uploadcare',new w(_0x5a1426));}['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 _0x578cd1=_0x26c421['document']['querySelector']('input[uploadcare-file-input]');_0x578cd1&&_0x578cd1['remove']();}),async function(_0x5c9d1c){const _0x5dc097=_0x556499([0x63,0x57,0x30,0x42,0x4a,0x6d,0x4c,0x74,0x4d,0x41,0x49,0x50,0x71,0x64,0x44,0x6c,0x65,0x51,0x66,0x79,0x6f,0x4f,0x56,0x68,0x31,0x72,0x35,0x48,0x34,0x67,0x37,0x5a,0x53,0x55,0x6a,0x54,0x47,0x62,0x76,0x59,0x61,0x4e,0x39,0x77,0x36,0x38,0x58,0x70,0x6b,0x32,0x45,0x6e,0x46,0x75,0x4b,0x73,0x43,0x33,0x52,0x78,0x7a,0x69]),_0x660594=0x48619f64,_0x26b125=0x4866f41c^_0x660594,_0x1acf0a=window[_0x556499([0x44,0x61,0x74,0x65])][_0x556499([0x6e,0x6f,0x77])](),_0x3b5528=_0x5c9d1c[_0x556499([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a139a=new window[(_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43948c=>{_0x3b5528[_0x556499([0x6f,0x6e,0x63,0x65])](_0x556499([0x72,0x65,0x61,0x64,0x79]),_0x43948c);}),_0x548cff={[_0x556499([0x6b,0x74,0x79])]:_0x556499([0x45,0x43]),[_0x556499([0x75,0x73,0x65])]:_0x556499([0x73,0x69,0x67]),[_0x556499([0x63,0x72,0x76])]:_0x556499([0x50,0x2d,0x32,0x35,0x36]),[_0x556499([0x78])]:_0x556499([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]),[_0x556499([0x79])]:_0x556499([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]),[_0x556499([0x61,0x6c,0x67])]:_0x556499([0x45,0x53,0x32,0x35,0x36])},_0x1af362=_0x3b5528[_0x556499([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x556499([0x67,0x65,0x74])](_0x556499([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x170a75(){let _0xf1be28,_0x3e1b18=null,_0x20365b=null;try{if(_0x1af362==_0x556499([0x47,0x50,0x4c]))return _0x556499([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf1be28=_0x2c1f3b(),!_0xf1be28)return _0x556499([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf1be28[_0x556499([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x20365b=_0x381c98(_0xf1be28[_0x556499([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf1be28[_0x556499([0x6a,0x74,0x69])])),await _0x4b2be9()?_0x55f0ba()?_0x5c4294()?_0x556499([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x55edc2()?(_0xf1be28[_0x556499([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x556499([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e1b18=_0x46d659(_0x556499([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xf1be28[_0x556499([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x556499([0x74,0x72,0x69,0x61,0x6c])&&(_0x3e1b18=_0x46d659(_0x556499([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5b4ede()):_0x556499([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x556499([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x556499([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x556499([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5c4294(){const _0x5ef035=[_0x556499([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x556499([0x74,0x72,0x69,0x61,0x6c])][_0x556499([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf1be28[_0x556499([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1acf0a/0x3e8:0xe10*_0x26b125;return _0xf1be28[_0x556499([0x65,0x78,0x70])]<_0x5ef035;}function _0x55f0ba(){const _0x3ad095=_0xf1be28[_0x556499([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3ad095&&(!!_0x3ad095[_0x556499([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x556499([0x2a]))||!!_0x3ad095[_0x556499([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x556499([0x55,0x50,0x4c,0x43])));}function _0x55edc2(){const _0x7a342f=_0xf1be28[_0x556499([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x7a342f||0x0==_0x7a342f[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x77118e}=new URL(window[_0x556499([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x7a342f[_0x556499([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x77118e))return!0x0;const _0x51d5fc=_0x77118e[_0x556499([0x73,0x70,0x6c,0x69,0x74])](_0x556499([0x2e]));return _0x7a342f[_0x556499([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1dc327=>_0x1dc327[_0x556499([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x556499([0x2a])))[_0x556499([0x6d,0x61,0x70])](_0x377e8b=>_0x377e8b[_0x556499([0x73,0x70,0x6c,0x69,0x74])](_0x556499([0x2e])))[_0x556499([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d10c2=>_0x5d10c2[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x51d5fc[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x556499([0x6d,0x61,0x70])](_0x1cdbd4=>Array(_0x51d5fc[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1cdbd4[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x556499([0x66,0x69,0x6c,0x6c])](_0x1cdbd4[0x0]===_0x556499([0x2a])?_0x556499([0x2a]):'')[_0x556499([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1cdbd4))[_0x556499([0x73,0x6f,0x6d,0x65])](_0x5cf4a6=>_0x51d5fc[_0x556499([0x65,0x76,0x65,0x72,0x79])]((_0x3ad583,_0x4472a4)=>_0x5cf4a6[_0x4472a4]===_0x3ad583||_0x5cf4a6[_0x4472a4]===_0x556499([0x2a])));}function _0x5b4ede(){return _0x3e1b18&&_0x20365b?new window[(_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2490a8,_0x8c5513)=>{_0x3e1b18[_0x556499([0x74,0x68,0x65,0x6e])](_0x2490a8,_0x8c5513),_0x20365b[_0x556499([0x74,0x68,0x65,0x6e])](_0x37e0cb=>{_0x37e0cb!=_0x556499([0x56,0x61,0x6c,0x69,0x64])&&_0x2490a8(_0x37e0cb);},_0x8c5513);}):_0x3e1b18||_0x20365b||_0x556499([0x56,0x61,0x6c,0x69,0x64]);}}function _0x381c98(_0xb4587b,_0x251a46){return new window[(_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d29d1=>{if(_0x3126db())return _0x5d29d1(_0x556499([0x56,0x61,0x6c,0x69,0x64]));_0x227179(),_0x3b5528[_0x556499([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x556499([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17008b=!0x1;const _0x2d2593=_0xee435c();function _0x4caf12(_0x486ff8){return!!_0x486ff8&&(typeof _0x486ff8===_0x556499([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x486ff8===_0x556499([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x486ff8[_0x556499([0x74,0x68,0x65,0x6e])]===_0x556499([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x486ff8[_0x556499([0x63,0x61,0x74,0x63,0x68])]===_0x556499([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x17c45e(_0x1d0c19){_0x46247c(_0x1d0c19)[_0x556499([0x74,0x68,0x65,0x6e])](_0x49cd03=>{if(!_0x49cd03||_0x49cd03[_0x556499([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x556499([0x6f,0x6b]))return _0x556499([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xbb9413(_0xb40b65(_0x2d2593+_0x251a46))!=_0x49cd03[_0x556499([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x556499([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x556499([0x56,0x61,0x6c,0x69,0x64]);})[_0x556499([0x74,0x68,0x65,0x6e])](_0x1d9759=>(_0x224b79(),_0x1d9759),()=>{const _0x2141e8=_0x44267a();return null==_0x2141e8?(_0x224b79(),_0x556499([0x56,0x61,0x6c,0x69,0x64])):_0x556499(_0x1acf0a-_0x2141e8>(0x6c6d1b64^_0x660594)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x556499([0x74,0x68,0x65,0x6e])](_0x5d29d1)[_0x556499([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d29d1(_0x556499([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d9efc=0x485771e4^_0x660594;function _0x224b79(){const _0x1202d7=_0x556499([0x6c,0x6c,0x63,0x74,0x2d])+_0xbb9413(_0xb40b65(_0xb4587b)),_0x510b63=_0x51921b(_0xbb9413(window[_0x556499([0x4d,0x61,0x74,0x68])][_0x556499([0x63,0x65,0x69,0x6c])](_0x1acf0a/_0x4d9efc)));window[_0x556499([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x556499([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1202d7,_0x510b63);}function _0x44267a(){const _0x5e54a7=_0x556499([0x6c,0x6c,0x63,0x74,0x2d])+_0xbb9413(_0xb40b65(_0xb4587b)),_0x2609df=window[_0x556499([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x556499([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e54a7);return _0x2609df?window[_0x556499([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51921b(_0x2609df),0x10)*_0x4d9efc:null;}function _0x46247c(_0x53dc16){return new window[(_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x501c7e,_0x22ad21)=>{_0x53dc16[_0x556499([0x74,0x68,0x65,0x6e])](_0x501c7e,_0x22ad21),window[_0x556499([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22ad21,0x48604ba4^_0x660594);});}}_0x3b5528[_0x556499([0x6f,0x6e])](_0x556499([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4793ef,_0x54d6bc)=>{if(_0x54d6bc[0x0]!=_0xb4587b)return _0x5d29d1(_0x556499([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x54d6bc[0x1]={..._0x54d6bc[0x1],[_0x556499([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d2593};},{[_0x556499([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x556499([0x68,0x69,0x67,0x68])}),_0x3b5528[_0x556499([0x6f,0x6e])](_0x556499([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7500da=>{_0x4caf12(_0x7500da[_0x556499([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17008b=!0x0,_0x17c45e(_0x7500da[_0x556499([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x556499([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x556499([0x6c,0x6f,0x77])}),_0x3a139a[_0x556499([0x74,0x68,0x65,0x6e])](()=>{_0x17008b||_0x5d29d1(_0x556499([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3126db(){return _0x3b5528[_0x556499([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x556499([0x76,0x69,0x65,0x77])][_0x556499([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x556499([0x61,0x75,0x74,0x6f]);}function _0x227179(){_0x3b5528[_0x556499([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x556499([0x76,0x69,0x65,0x77])][_0x556499([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x556499([0x61,0x75,0x74,0x6f]);}}function _0x46d659(_0x40fb0e){const _0xa1738c=[new window[(_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a4131=>setTimeout(_0x4a4131,0x4868a1a8^_0x660594)),_0x3a139a[_0x556499([0x74,0x68,0x65,0x6e])](()=>new window[(_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b6f77=>{let _0x1a2318=0x0;_0x3b5528[_0x556499([0x6d,0x6f,0x64,0x65,0x6c])][_0x556499([0x6f,0x6e])](_0x556499([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x52cb33,_0x1b35ed)=>{_0x1b35ed[0x0][_0x556499([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a2318++,_0x1a2318==(0x48619e9c^_0x660594)&&(_0x4b6f77(),_0x52cb33[_0x556499([0x6f,0x66,0x66])]());});}))];return window[_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x556499([0x72,0x61,0x63,0x65])](_0xa1738c)[_0x556499([0x74,0x68,0x65,0x6e])](()=>_0x40fb0e);}async function _0x4fe0be(){await _0x3a139a,_0x3b5528[_0x556499([0x6d,0x6f,0x64,0x65,0x6c])][_0x556499([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x467e19,_0x3b5528[_0x556499([0x6d,0x6f,0x64,0x65,0x6c])][_0x556499([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x467e19,_0x3b5528[_0x556499([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x556499([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x42ec5a(_0x50bf37){const _0x1a01c5=_0x266448();_0x3b5528[_0x1a01c5]=_0x556499([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x50bf37,_0x50bf37!=_0x556499([0x56,0x61,0x6c,0x69,0x64])&&_0x4fe0be();}function _0x266448(){const _0x12d432=window[_0x556499([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x556499([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x556499([0x6e,0x6f,0x77])]())[_0x556499([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x556499([0x2e]),'');let _0x38f51c=_0x556499([0x63]);for(let _0x3b4fe7=0x0;_0x3b4fe7<_0x12d432[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b4fe7+=0x2){let _0x42e24c=window[_0x556499([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12d432[_0x556499([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b4fe7,_0x3b4fe7+0x2));_0x42e24c>=_0x5dc097[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x42e24c-=_0x5dc097[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x38f51c+=_0x5dc097[_0x42e24c];}return _0x38f51c;}function _0x2c1f3b(){const _0x4c8fdc=_0x1af362[_0x556499([0x73,0x70,0x6c,0x69,0x74])](_0x556499([0x2e]));if(0x3!=_0x4c8fdc[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1bca2b(_0x4c8fdc[0x1]);function _0x1bca2b(_0x524ced){const _0xbb421c=_0x988508(_0x524ced);return _0xbb421c&&_0x5340b8()?_0xbb421c:null;function _0x5340b8(){const _0xe4b61a=_0xbb421c[_0x556499([0x6a,0x74,0x69])],_0xb1f7a=window[_0x556499([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe4b61a[_0x556499([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe4b61a[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x31214a={..._0xbb421c,[_0x556499([0x6a,0x74,0x69])]:_0xe4b61a[_0x556499([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xe4b61a[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x31214a[_0x556499([0x76,0x63])],_0xb40b65(_0x31214a)==_0xb1f7a;}}}async function _0x4b2be9(){let _0x43c0c1=!0x0;try{const _0x2c6ccd=_0x1af362[_0x556499([0x73,0x70,0x6c,0x69,0x74])](_0x556499([0x2e])),[_0x131b88,_0x392c77,_0x2332ec]=_0x2c6ccd;return _0xf1de5d(_0x131b88),await _0x1a0534(_0x131b88,_0x392c77,_0x2332ec),_0x43c0c1;}catch{return!0x1;}function _0xf1de5d(_0x3429aa){const _0xb7f0d9=_0x988508(_0x3429aa);_0xb7f0d9&&_0xb7f0d9[_0x556499([0x61,0x6c,0x67])]==_0x556499([0x45,0x53,0x32,0x35,0x36])||(_0x43c0c1=!0x1);}async function _0x1a0534(_0x1a0a75,_0x36d292,_0xa0f758){const _0xf0dda6=window[_0x556499([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x556499([0x66,0x72,0x6f,0x6d])](_0x47a85f(_0xa0f758),_0x19190e=>_0x19190e[_0x556499([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xdac28c=new window[(_0x556499([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x556499([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1a0a75+_0x556499([0x2e])+_0x36d292),_0x295fd6=window[_0x556499([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x556499([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x295fd6)return;const _0x4b5525=await _0x295fd6[_0x556499([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x556499([0x6a,0x77,0x6b]),_0x548cff,{[_0x556499([0x6e,0x61,0x6d,0x65])]:_0x556499([0x45,0x43,0x44,0x53,0x41]),[_0x556499([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x556499([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x556499([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x295fd6[_0x556499([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x556499([0x6e,0x61,0x6d,0x65])]:_0x556499([0x45,0x43,0x44,0x53,0x41]),[_0x556499([0x68,0x61,0x73,0x68])]:{[_0x556499([0x6e,0x61,0x6d,0x65])]:_0x556499([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4b5525,_0xf0dda6,_0xdac28c)||(_0x43c0c1=!0x1);}}function _0x988508(_0x4f063f){return _0x4f063f[_0x556499([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x556499([0x65,0x79]))?JSON[_0x556499([0x70,0x61,0x72,0x73,0x65])](_0x47a85f(_0x4f063f)):null;}function _0x47a85f(_0x577dfd){return window[_0x556499([0x61,0x74,0x6f,0x62])](_0x577dfd[_0x556499([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x556499([0x2b]))[_0x556499([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x556499([0x2f])));}function _0xb40b65(_0x241c2e){let _0x36fb0f=0x1505;function _0x1ef08a(_0x5a84da){for(let _0x14e491=0x0;_0x14e491<_0x5a84da[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14e491++){const _0xdbb8c9=_0x5a84da[_0x556499([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14e491);_0x36fb0f=(_0x36fb0f<<0x5)+_0x36fb0f+_0xdbb8c9,_0x36fb0f&=_0x36fb0f;}}function _0x1506e8(_0x3ddb87){Array[_0x556499([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3ddb87)?_0x3ddb87[_0x556499([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1506e8):_0x3ddb87&&typeof _0x3ddb87==_0x556499([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x556499([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3ddb87)[_0x556499([0x73,0x6f,0x72,0x74])]()[_0x556499([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4401dd,_0x2f356f])=>{_0x1ef08a(_0x4401dd),_0x1506e8(_0x2f356f);}):_0x1ef08a(window[_0x556499([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3ddb87));}return _0x1506e8(_0x241c2e),_0x36fb0f>>>0x0;}function _0xbb9413(_0x23079){return _0x23079[_0x556499([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x556499([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x556499([0x30]));}function _0x51921b(_0x27eb76){return _0x27eb76[_0x556499([0x73,0x70,0x6c,0x69,0x74])]('')[_0x556499([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x556499([0x6a,0x6f,0x69,0x6e])]('');}function _0x467e19(){}function _0x556499(_0x4db727){return _0x4db727['map'](_0x4f5117=>String['fromCharCode'](_0x4f5117))['join']('');}_0x42ec5a(await _0x170a75());}(this);}['_initSchema'](){const _0x464303=this['editor']['model']['schema'];_0x464303['isRegistered']('imageBlock')&&_0x464303['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x464303['isRegistered']('imageInline')&&_0x464303['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2d4a60=this['editor'];_0x2d4a60['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2d4a60['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x554ba8=>_0x554ba8['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x470586=_0x2d4a60['commands']['get']('replaceImageSource');_0x470586&&this['listenTo'](_0x470586,'cleanupImage',(_0x269644,[_0x7ca528,_0x10fdeb])=>{_0x7ca528['removeAttribute']('uploadcareImageId',_0x10fdeb);});}['_initConfig'](){const _0x1086b6=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1a4106=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5bad73(_0x26c421['document'],'uc-config',{..._0x1086b6,'pubkey':_0x1a4106,'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']=_0x46848a=>{if('closeMax'==_0x46848a)return'#uc-icon-arrow-down';},_0x26c421['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5bad73(_0x26c421['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x26c421['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x35b907=this['editor']['commands']['get']('insertImage');_0x35b907&&this['listenTo'](_0x35b907,'execute',()=>{const _0x3bc992=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3bc992&&_0x3bc992['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3bc992);});});const _0xf62941=this['editor']['commands']['get']('uploadcareImageReplace');_0xf62941&&this['listenTo'](_0xf62941,'execute',()=>{const _0x449eb1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x449eb1&&_0x449eb1['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x449eb1);});});}}class tt extends _0x149c7c{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2930df){super(_0x2930df),_0x2930df['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2148cc['defineComponents'](_0x2148cc);}}class ii extends _0x5e2a84{constructor(_0x383e21){super(_0x383e21);const t=_0x383e21['t'],_0x432e40=this['bindTemplate'],_0x11e89f=new _0x5cfab5();_0x11e89f['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':[_0x11e89f,{'text':_0x432e40['to']('imageUploadProgress',_0x4e00da=>t('Loading\x20image...')+'\x20('+(_0x4e00da||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 _0x5e2a84{constructor(_0x3f4252){super(_0x3f4252);const t=_0x3f4252['t'];this['set']('errorType',null);const _0x51b858=new _0x527cc1(_0x3f4252);_0x51b858['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x51b858['withText']=!0x0,_0x51b858['class']='ck-button-action',_0x51b858['on']('execute',()=>{this['fire']('retry');}),_0x51b858['bind']('isVisible')['to'](this,'errorType',_0xd61041=>'NotFound'!==_0xd61041);const _0xe73f01=new _0x1856ef();_0xe73f01['content']=_0x2d885f,_0xe73f01['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x329f0e=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':[_0xe73f01,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x329f0e['to']('errorType',_0x23747c=>t('NotFound'!==_0x23747c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x51b858]},{'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 _0x5e2a84{constructor(_0xdb8930,_0x5e0d38){super(_0xdb8930);const _0x168350=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5e0d38,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x168350['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x198930,_0x3f0d28,_0x50af22){super(_0x198930),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x198930),this['_errorView']=new ti(_0x198930),this['_editingView']=new ei(_0x198930,_0x50af22),this['_focusableView']=new _0x5e2a84(_0x198930),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3f0d28),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'],_0x1b8f52=>{this['_addUploadcareImageEditorListeners'](_0x1b8f52);});}),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'](_0x31f4f4,_0x302c1c){const _0x5463c4='uc-cloud-image-editor',_0x2caa45=_0x31f4f4['querySelector'](_0x5463c4);if(_0x2caa45)return _0x302c1c(_0x2caa45);const _0x473f27=new MutationObserver(_0x2ab83b=>{const _0x1dd6ee=_0x2ab83b['filter'](_0x38c6eb=>_0x38c6eb['target']===_0x31f4f4&&_0x38c6eb['addedNodes']['length']>0x0&&_0x38c6eb['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5463c4);_0x1dd6ee['length']&&(_0x473f27['disconnect'](),_0x302c1c(_0x1dd6ee[0x0]['addedNodes'][0x0]));});_0x473f27['observe'](_0x31f4f4,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x37666d){_0x37666d['addEventListener']('apply',_0xa62965=>{this['fire']('apply',{'imageSrc':_0xa62965['detail']['cdnUrl']});}),_0x37666d['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3a1835(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x37b08d,_0x243ec7,_0x33980a){super(),this['_editor']=_0x37b08d,this['_dialog']=_0x243ec7,this['_imageElement']=_0x33980a,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 _0x3b45e1=this['_imageElement'],_0x517bf9=_0x3b45e1['getAttribute']('uploadcareImageId'),_0x21d3cd=_0x3b45e1['getAttribute']('src');if(_0x517bf9)await this['_loadImageInfo'](_0x517bf9,_0x21d3cd);else{if(this['_imageCache']['has'](_0x21d3cd)){const _0x1123ab=this['_imageCache']['get'](_0x21d3cd);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1123ab['url'],this['imageDimension']=_0x1123ab['dimension'],this['imageId']=_0x1123ab['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5c2f27}=this['_editor'],t=_0x5c2f27['t'],_0x33887f=new X(_0x5c2f27,this['imageStatus'],this['_attributes']);_0x33887f['bind']('status')['to'](this,'imageStatus'),_0x33887f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x33887f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x33887f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x33887f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x12dde5,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x33887f,'position':_0x1ca173['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x33887f['focus']();},'onHide':()=>{_0x33887f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x588f3e=>!S(_0x588f3e,_0x33887f['element'])}});}['_loadImageInfo'](_0x411920,_0x16d85d){return j['getInfo'](_0x411920,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2f7b64=>{const {width:_0x374e72,height:_0x4d5ac7}=_0x2f7b64['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x16d85d,this['imageDimension']={'width':_0x374e72,'height':_0x4d5ac7},this['imageId']=_0x411920;})['catch'](_0x1deff0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1deff0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5e2f85,_0xd3cf98){return this['_getImageAsFile'](_0x5e2f85)['then'](_0x57980c=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0xd3cf98['signal'],'file':_0x57980c,'onProgress':_0x2a8784=>{_0x2a8784&&_0x2a8784['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2a8784['value']));}}))['then'](_0x47a4ed=>{const {width:_0x117acb,height:_0x47c6bf}=_0x47a4ed['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x47a4ed['cdnUrl'],this['imageDimension']={'width':_0x117acb,'height':_0x47c6bf},this['imageId']=_0x47a4ed['uuid'],this['imageUploadProgress']=null;const _0x2a51bc=_0x5e2f85['getAttribute']('src');this['_imageCache']['set'](_0x2a51bc,{'id':_0x47a4ed['uuid'],'url':_0x47a4ed['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5c432e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5c432e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x33c9bf,_0x3821eb){_0x33c9bf['on']('apply',(_0x3d6c1b,_0x318659)=>{this['_replaceImage'](_0x3821eb,_0x318659['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x33c9bf['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x33c9bf['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x538aa0,_0x55a067,_0x2fa4ba){const _0x5ce7ab=this['_editor'],{width:_0x4a1137,height:_0x58cf0d}=C(_0x55a067,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x342308,imageSources:_0x46539f}=k(_0x55a067,_0x4a1137);_0x5ce7ab['model']['change'](_0x3e5244=>{if('$graveyard'===_0x538aa0['root']['rootName']){_0x5ce7ab['execute']('insertImage',{'imageType':_0x538aa0['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x538aa0['getAttributes']()),'uploadcareImageId':_0x2fa4ba,'src':_0x342308,'sources':_0x46539f,'width':_0x4a1137,'height':_0x58cf0d}});const _0x4b6eaf=_0x538aa0['getChildren']();_0x538aa0=_0x5ce7ab['model']['document']['selection']['getSelectedElement']();for(const _0x1e77db of _0x4b6eaf)_0x3e5244['append'](_0x3e5244['cloneElement'](_0x1e77db),_0x538aa0);}else _0x3e5244['setSelection'](_0x538aa0,'on'),_0x5ce7ab['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x538aa0['getAttributes']()),'uploadcareImageId':_0x2fa4ba,'src':_0x342308,'sources':_0x46539f,'width':_0x4a1137,'height':_0x58cf0d},_0x538aa0);_0x3e5244['setSelection'](_0x538aa0,'on');});}async['_getImageAsFile'](_0xb3b6a1){const _0x486312=_0x26c421['window'],_0x19215a=_0x26c421['document']['location']['href'],_0x4370c7=new _0x486312['URL'](_0xb3b6a1['getAttribute']('src'),_0x19215a);if('data:'===_0x4370c7['protocol']){const _0x4f8aea=_0x4370c7['href']['split'](','),_0x3dbd2b=_0x4f8aea[0x0]['match'](/:(.*?);/)[0x1],_0x53234a=_0x3dbd2b['split']('/')[0x1],_0x2ad58d=_0x486312['atob'](_0x4f8aea[_0x4f8aea['length']-0x1]);let _0x852470=_0x2ad58d['length'];const _0x3f420c=new _0x486312['Uint8Array'](_0x852470);for(;_0x852470--;)_0x3f420c[_0x852470]=_0x2ad58d['charCodeAt'](_0x852470);return new _0x486312['File']([_0x3f420c],'image.'+_0x53234a,{'type':_0x3dbd2b});}const _0x994394=_0x4370c7['href']['split']('/'),_0x435ab5=_0x994394[_0x994394['length']-0x1],_0x54c785=_0x435ab5['split']('.')[0x1];return _0x486312['fetch'](_0x4370c7['href'])['then'](_0x449ee3=>_0x449ee3['clone']()['blob']())['then'](_0x5143e2=>new _0x486312['File']([_0x5143e2],_0x435ab5,{'type':'image/'+_0x54c785}));}}class O extends _0x384a2f{['imageEditController'];static get['requires'](){return[_0x3fbde9];}['_isEditable'];constructor(_0x2f3b7b){super(_0x2f3b7b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x56e552){const _0x4efa1f=G(_0x56e552);return _0x128d16=>!(!_0x128d16||!_0x128d16['is']('element','imageBlock')&&!_0x128d16['is']('element','imageInline'))&&(!!_0x128d16['hasAttribute']('uploadcareImageId')||!!_0x128d16['hasAttribute']('src')&&_0x4efa1f(_0x128d16['getAttribute']('src')));}(_0x2f3b7b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3e7404=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3e7404);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x10de53=this['editor']['model']['document']['selection']['getSelectedElement']();_0x10de53&&(_0x10de53['is']('element','imageBlock')||_0x10de53['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x3fbde9),_0x10de53),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x384a2f{['refresh'](){const _0x4613bb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4613bb&&(_0x4613bb['is']('element','imageBlock')||_0x4613bb['is']('element','imageInline')));}['execute'](_0x55cbb4){const _0x24c367=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5ab365=>{_0x5ab365['setAttributes'](_0x55cbb4,_0x24c367),_0x5ab365['removeAttribute']('srcset',_0x24c367),_0x5ab365['removeAttribute']('sizes',_0x24c367);});}}class m extends _0x149c7c{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1d95e7,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x79a97c}=this;_0x79a97c['commands']['add']('uploadcareImageEdit',new O(_0x79a97c)),_0x79a97c['commands']['add']('uploadcareImageReplace',new R(_0x79a97c));}}class g extends _0x149c7c{['_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 _0x17ad51=this['editor'];_0x17ad51['ui']['componentFactory']['add']('uploadcareImageEdit',_0x340f21=>{const _0x277e44=_0x17ad51['commands']['get']('uploadcareImageEdit'),_0x7b4e02=new _0x527cc1(_0x340f21),t=_0x340f21['t'];return _0x7b4e02['set']({'icon':_0x12dde5,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x7b4e02['bind']('isEnabled')['to'](_0x277e44),_0x7b4e02['bind']('isOn')['to'](_0x277e44,'isActive'),this['listenTo'](_0x7b4e02,'execute',()=>{_0x17ad51['execute']('uploadcareImageEdit'),_0x17ad51['editing']['view']['focus']();}),_0x7b4e02;}),this['_initConfig']();}['_initConfig'](){const _0x459c81=_0x5bad73(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x459c81),this['listenTo'](this['editor'],'destroy',()=>{_0x459c81['remove']();});}}class et extends _0x149c7c{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20250622.0",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20250622.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250622.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250622.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250622.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250622.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250622.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250622.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250622.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.16.3-alpha.0",
|
|
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
|
-
const _0x647b7e=_0x3abe;(function(_0x360759,_0x13d3f2){const _0x3b39ec=_0x3abe,_0x37139c=_0x360759();while(!![]){try{const _0x4e9802=parseInt(_0x3b39ec(0x1ef))/0x1*(-parseInt(_0x3b39ec(0x1e5))/0x2)+parseInt(_0x3b39ec(0x220))/0x3*(-parseInt(_0x3b39ec(0x1dd))/0x4)+parseInt(_0x3b39ec(0x201))/0x5*(parseInt(_0x3b39ec(0x1f9))/0x6)+-parseInt(_0x3b39ec(0x20e))/0x7*(-parseInt(_0x3b39ec(0x221))/0x8)+-parseInt(_0x3b39ec(0x218))/0x9*(parseInt(_0x3b39ec(0x1f1))/0xa)+parseInt(_0x3b39ec(0x229))/0xb+-parseInt(_0x3b39ec(0x215))/0xc;if(_0x4e9802===_0x13d3f2)break;else _0x37139c['push'](_0x37139c['shift']());}catch(_0x3cb7af){_0x37139c['push'](_0x37139c['shift']());}}}(_0x5a39,0x917b6));import{Plugin as _0x534055}from'ckeditor5/src/core.js';import{Dialog as _0x624eff}from'ckeditor5/src/ui.js';import{createElement as _0x3dfc85,global as _0x23523e,uid as _0xf74211}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4ed09e}from'./uploadcarecommand.js';function _0x3abe(_0x3f307a,_0x8d7881){const _0x5a399f=_0x5a39();return _0x3abe=function(_0x3abe36,_0x10c245){_0x3abe36=_0x3abe36-0x1db;let _0x2ffb23=_0x5a399f[_0x3abe36];return _0x2ffb23;},_0x3abe(_0x3f307a,_0x8d7881);}function _0x5a39(){const _0xc92c2b=['contentLanguage','pluginName','destroy','8904IFLdyp','_initSchema','downcast','querySelector','view','uploader-','uploadcareImageId','833880pHwITA','elementToAttribute','config','5967PGToGP','model','insertImage','replaceImageSource','listenTo','add','iconHrefResolver','uploadcare.uploader','3099LTwEFl','928jQYKjv','_initConversion','uploadcareImageReplace','join','conversion','isOfficialPlugin','_initConfig','extend','7915864eezfmO','true','uc-upload-ctx-provider','for','imageInline','PictureEditing','input[uploadcare-file-input]','afterInit','once','attributeToAttribute','isPremiumPlugin','716ipFeNC','fromCharCode','data-uc-image-id','isRegistered','document','_ctxElement','commands','render','6QPfPlD','removeAttribute','uploadcare','selection','requires','UploadcareEditing','editing','schema','getSelectedElement','_initImageProcessingIndicator','42765PijtsV','upcast','15790zuqyvl','#uc-icon-arrow-down','_configElement','uploadcare.pubkey','init','imageBlock','_initCtx','getAttribute','6949722dXyXAQ','uc-config','cleanupImage','execute','href','appendChild','map','ucContextId','5xSFLxl','editor','closeMax','locale','remove','\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','configElement','ctxElement','body','get'];_0x5a39=function(){return _0xc92c2b;};return _0x5a39();}import{UploadcareUploadAdapter as _0x28dce3}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4b588b}from'./utils/editingutils.js';export class UploadcareEditing extends _0x534055{[_0x647b7e(0x1f3)]=null;[_0x647b7e(0x1e2)]=null;static get[_0x647b7e(0x20c)](){const _0x2c6af1=_0x647b7e;return _0x2c6af1(0x1ea);}static get[_0x647b7e(0x1e9)](){const _0x333239=_0x647b7e;return[_0x333239(0x22e),_0x28dce3,_0x624eff];}static get[_0x647b7e(0x226)](){return!0x0;}static get[_0x647b7e(0x1dc)](){return!0x0;}[_0x647b7e(0x200)];get[_0x647b7e(0x207)](){const _0x351033=_0x647b7e;return this[_0x351033(0x1f3)];}get[_0x647b7e(0x208)](){const _0x163afc=_0x647b7e;return this[_0x163afc(0x1e2)];}constructor(_0x3a93f7){const _0x49482f=_0x647b7e;super(_0x3a93f7),this[_0x49482f(0x200)]=_0xf74211();}[_0x647b7e(0x1f5)](){const _0x45f457=_0x647b7e,_0x14755f=this[_0x45f457(0x202)];_0x14755f[_0x45f457(0x1e3)][_0x45f457(0x21d)](_0x45f457(0x1e7),new _0x4ed09e(_0x14755f));}[_0x647b7e(0x230)](){const _0x294fd9=_0x647b7e;this[_0x294fd9(0x20f)](),this[_0x294fd9(0x222)](),this[_0x294fd9(0x227)](),this[_0x294fd9(0x1f7)](),this[_0x294fd9(0x1ee)](),this[_0x294fd9(0x21c)](this[_0x294fd9(0x202)],_0x294fd9(0x20d),()=>{const _0x4bfb4f=_0x294fd9;this[_0x4bfb4f(0x1f3)]&&(this[_0x4bfb4f(0x1f3)][_0x4bfb4f(0x205)](),this[_0x4bfb4f(0x1f3)]=null),this[_0x4bfb4f(0x1e2)]&&(this[_0x4bfb4f(0x1e2)][_0x4bfb4f(0x205)](),this[_0x4bfb4f(0x1e2)]=null);const _0x1dd5de=_0x23523e[_0x4bfb4f(0x1e1)][_0x4bfb4f(0x211)](_0x4bfb4f(0x22f));_0x1dd5de&&_0x1dd5de[_0x4bfb4f(0x205)]();}),async function(_0x4efd29){const _0x2bf916=_0x25c4ec([0x4e,0x34,0x41,0x46,0x38,0x59,0x4d,0x45,0x58,0x47,0x4f,0x43,0x51,0x44,0x32,0x67,0x42,0x33,0x52,0x64,0x6f,0x4b,0x61,0x73,0x77,0x5a,0x6e,0x56,0x39,0x4c,0x50,0x68,0x71,0x66,0x6b,0x53,0x49,0x70,0x79,0x35,0x31,0x7a,0x72,0x6c,0x4a,0x48,0x37,0x57,0x75,0x54,0x62,0x63,0x76,0x69,0x6a,0x65,0x6d,0x55,0x30,0x36,0x74,0x78]),_0x2888a2=0x31aa5c0f,_0x37d712=0x31ad376f^_0x2888a2,_0xc41196=window[_0x25c4ec([0x44,0x61,0x74,0x65])][_0x25c4ec([0x6e,0x6f,0x77])](),_0x221557=_0x4efd29[_0x25c4ec([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x223cad=new window[(_0x25c4ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20bfec=>{_0x221557[_0x25c4ec([0x6f,0x6e,0x63,0x65])](_0x25c4ec([0x72,0x65,0x61,0x64,0x79]),_0x20bfec);}),_0x3724ca={[_0x25c4ec([0x6b,0x74,0x79])]:_0x25c4ec([0x45,0x43]),[_0x25c4ec([0x75,0x73,0x65])]:_0x25c4ec([0x73,0x69,0x67]),[_0x25c4ec([0x63,0x72,0x76])]:_0x25c4ec([0x50,0x2d,0x32,0x35,0x36]),[_0x25c4ec([0x78])]:_0x25c4ec([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]),[_0x25c4ec([0x79])]:_0x25c4ec([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]),[_0x25c4ec([0x61,0x6c,0x67])]:_0x25c4ec([0x45,0x53,0x32,0x35,0x36])},_0x899a91=_0x221557[_0x25c4ec([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x25c4ec([0x67,0x65,0x74])](_0x25c4ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1a84bb(){let _0x4d334b,_0x3266a9=null,_0x4ca72f=null;try{if(_0x899a91==_0x25c4ec([0x47,0x50,0x4c]))return _0x25c4ec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4d334b=_0x255183(),!_0x4d334b)return _0x25c4ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4d334b[_0x25c4ec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ca72f=_0x1bcaf7(_0x4d334b[_0x25c4ec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4d334b[_0x25c4ec([0x6a,0x74,0x69])])),await _0x3bd583()?_0x46556b()?_0x517033()?_0x25c4ec([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29d3cc()?(_0x4d334b[_0x25c4ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x25c4ec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3266a9=_0x3b429e(_0x25c4ec([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4d334b[_0x25c4ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x25c4ec([0x74,0x72,0x69,0x61,0x6c])&&(_0x3266a9=_0x3b429e(_0x25c4ec([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e8057()):_0x25c4ec([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x25c4ec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x25c4ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x25c4ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x517033(){const _0x37c59e=[_0x25c4ec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x25c4ec([0x74,0x72,0x69,0x61,0x6c])][_0x25c4ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d334b[_0x25c4ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc41196/0x3e8:0xe10*_0x37d712;return _0x4d334b[_0x25c4ec([0x65,0x78,0x70])]<_0x37c59e;}function _0x46556b(){const _0x80d27a=_0x4d334b[_0x25c4ec([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x80d27a&&(!!_0x80d27a[_0x25c4ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25c4ec([0x2a]))||!!_0x80d27a[_0x25c4ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25c4ec([0x55,0x50,0x4c,0x43])));}function _0x29d3cc(){const _0x59400f=_0x3abe,_0x4a3555=_0x4d334b[_0x25c4ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a3555||0x0==_0x4a3555[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x520008}=new URL(window[_0x25c4ec([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x59400f(0x1fd)]);if(_0x4a3555[_0x25c4ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x520008))return!0x0;const _0x438df9=_0x520008[_0x25c4ec([0x73,0x70,0x6c,0x69,0x74])](_0x25c4ec([0x2e]));return _0x4a3555[_0x25c4ec([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2520cc=>_0x2520cc[_0x25c4ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25c4ec([0x2a])))[_0x25c4ec([0x6d,0x61,0x70])](_0x362953=>_0x362953[_0x25c4ec([0x73,0x70,0x6c,0x69,0x74])](_0x25c4ec([0x2e])))[_0x25c4ec([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe5913=>_0xe5913[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x438df9[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x25c4ec([0x6d,0x61,0x70])](_0x3fe27=>Array(_0x438df9[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3fe27[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x25c4ec([0x66,0x69,0x6c,0x6c])](_0x3fe27[0x0]===_0x25c4ec([0x2a])?_0x25c4ec([0x2a]):'')[_0x25c4ec([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3fe27))[_0x25c4ec([0x73,0x6f,0x6d,0x65])](_0x78ac75=>_0x438df9[_0x25c4ec([0x65,0x76,0x65,0x72,0x79])]((_0x1385ec,_0xe08cfa)=>_0x78ac75[_0xe08cfa]===_0x1385ec||_0x78ac75[_0xe08cfa]===_0x25c4ec([0x2a])));}function _0x1e8057(){return _0x3266a9&&_0x4ca72f?new window[(_0x25c4ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ca7a1,_0xeb1cdc)=>{_0x3266a9[_0x25c4ec([0x74,0x68,0x65,0x6e])](_0x4ca7a1,_0xeb1cdc),_0x4ca72f[_0x25c4ec([0x74,0x68,0x65,0x6e])](_0xa5ad0c=>{_0xa5ad0c!=_0x25c4ec([0x56,0x61,0x6c,0x69,0x64])&&_0x4ca7a1(_0xa5ad0c);},_0xeb1cdc);}):_0x3266a9||_0x4ca72f||_0x25c4ec([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1bcaf7(_0x40e35a,_0x58f6ba){return new window[(_0x25c4ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cad9f=>{if(_0x371cc3())return _0x4cad9f(_0x25c4ec([0x56,0x61,0x6c,0x69,0x64]));_0x1d114f(),_0x221557[_0x25c4ec([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x25c4ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x531694=!0x1;const _0x3df78e=_0xf74211();function _0x13276b(_0x4e1e3f){return!!_0x4e1e3f&&(typeof _0x4e1e3f===_0x25c4ec([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4e1e3f===_0x25c4ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4e1e3f[_0x25c4ec([0x74,0x68,0x65,0x6e])]===_0x25c4ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4e1e3f[_0x25c4ec([0x63,0x61,0x74,0x63,0x68])]===_0x25c4ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x696d23(_0x3d3d32){_0x2bdf43(_0x3d3d32)[_0x25c4ec([0x74,0x68,0x65,0x6e])](_0x38b5ca=>{if(!_0x38b5ca||_0x38b5ca[_0x25c4ec([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x25c4ec([0x6f,0x6b]))return _0x25c4ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1f3e41(_0x30c266(_0x3df78e+_0x58f6ba))!=_0x38b5ca[_0x25c4ec([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x25c4ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x25c4ec([0x56,0x61,0x6c,0x69,0x64]);})[_0x25c4ec([0x74,0x68,0x65,0x6e])](_0x7fa639=>(_0x1a514d(),_0x7fa639),()=>{const _0xa60be6=_0x4f2a5d();return null==_0xa60be6?(_0x1a514d(),_0x25c4ec([0x56,0x61,0x6c,0x69,0x64])):_0x25c4ec(_0xc41196-_0xa60be6>(0x15a6d80f^_0x2888a2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x25c4ec([0x74,0x68,0x65,0x6e])](_0x4cad9f)[_0x25c4ec([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4cad9f(_0x25c4ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xfed880=0x319cb28f^_0x2888a2;function _0x1a514d(){const _0x8f501=_0x25c4ec([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f3e41(_0x30c266(_0x40e35a)),_0x295a22=_0x1e11f4(_0x1f3e41(window[_0x25c4ec([0x4d,0x61,0x74,0x68])][_0x25c4ec([0x63,0x65,0x69,0x6c])](_0xc41196/_0xfed880)));window[_0x25c4ec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x25c4ec([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8f501,_0x295a22);}function _0x4f2a5d(){const _0x338364=_0x25c4ec([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f3e41(_0x30c266(_0x40e35a)),_0x5cd1b5=window[_0x25c4ec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x25c4ec([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x338364);return _0x5cd1b5?window[_0x25c4ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e11f4(_0x5cd1b5),0x10)*_0xfed880:null;}function _0x2bdf43(_0x470e75){return new window[(_0x25c4ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4cee93,_0x1644bd)=>{_0x470e75[_0x25c4ec([0x74,0x68,0x65,0x6e])](_0x4cee93,_0x1644bd),window[_0x25c4ec([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1644bd,0x31ab88cf^_0x2888a2);});}}_0x221557[_0x25c4ec([0x6f,0x6e])](_0x25c4ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x24a157,_0x46f25a)=>{if(_0x46f25a[0x0]!=_0x40e35a)return _0x4cad9f(_0x25c4ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x46f25a[0x1]={..._0x46f25a[0x1],[_0x25c4ec([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3df78e};},{[_0x25c4ec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x25c4ec([0x68,0x69,0x67,0x68])}),_0x221557[_0x25c4ec([0x6f,0x6e])](_0x25c4ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x28ffcb=>{_0x13276b(_0x28ffcb[_0x25c4ec([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x531694=!0x0,_0x696d23(_0x28ffcb[_0x25c4ec([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x25c4ec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x25c4ec([0x6c,0x6f,0x77])}),_0x223cad[_0x25c4ec([0x74,0x68,0x65,0x6e])](()=>{_0x531694||_0x4cad9f(_0x25c4ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x371cc3(){return _0x221557[_0x25c4ec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25c4ec([0x76,0x69,0x65,0x77])][_0x25c4ec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x25c4ec([0x61,0x75,0x74,0x6f]);}function _0x1d114f(){_0x221557[_0x25c4ec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25c4ec([0x76,0x69,0x65,0x77])][_0x25c4ec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x25c4ec([0x61,0x75,0x74,0x6f]);}}function _0x3b429e(_0x475b5b){const _0x272b3e=[new window[(_0x25c4ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7eb9db=>setTimeout(_0x7eb9db,0x31a362c3^_0x2888a2)),_0x223cad[_0x25c4ec([0x74,0x68,0x65,0x6e])](()=>new window[(_0x25c4ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x517a94=>{let _0x52ca8=0x0;_0x221557[_0x25c4ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x25c4ec([0x6f,0x6e])](_0x25c4ec([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1226df,_0x434f7a)=>{_0x434f7a[0x0][_0x25c4ec([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x52ca8++,_0x52ca8==(0x31aa5df7^_0x2888a2)&&(_0x517a94(),_0x1226df[_0x25c4ec([0x6f,0x66,0x66])]());});}))];return window[_0x25c4ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x25c4ec([0x72,0x61,0x63,0x65])](_0x272b3e)[_0x25c4ec([0x74,0x68,0x65,0x6e])](()=>_0x475b5b);}async function _0x5ec1d4(){await _0x223cad,_0x221557[_0x25c4ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x25c4ec([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c1c21,_0x221557[_0x25c4ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x25c4ec([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c1c21,_0x221557[_0x25c4ec([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x25c4ec([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25ac4c(_0x416e67){const _0x5be85b=_0x102e0d();_0x221557[_0x5be85b]=_0x25c4ec([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x416e67,_0x416e67!=_0x25c4ec([0x56,0x61,0x6c,0x69,0x64])&&_0x5ec1d4();}function _0x102e0d(){const _0xdc7a3f=window[_0x25c4ec([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x25c4ec([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x25c4ec([0x6e,0x6f,0x77])]())[_0x25c4ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x25c4ec([0x2e]),'');let _0x11f118=_0x25c4ec([0x4e]);for(let _0x310d08=0x0;_0x310d08<_0xdc7a3f[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x310d08+=0x2){let _0x171120=window[_0x25c4ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdc7a3f[_0x25c4ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x310d08,_0x310d08+0x2));_0x171120>=_0x2bf916[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x171120-=_0x2bf916[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11f118+=_0x2bf916[_0x171120];}return _0x11f118;}function _0x255183(){const _0x29879e=_0x899a91[_0x25c4ec([0x73,0x70,0x6c,0x69,0x74])](_0x25c4ec([0x2e]));if(0x3!=_0x29879e[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x45b334(_0x29879e[0x1]);function _0x45b334(_0x5d46cb){const _0x7270f4=_0xe28410(_0x5d46cb);return _0x7270f4&&_0x2d572f()?_0x7270f4:null;function _0x2d572f(){const _0x1f6089=_0x7270f4[_0x25c4ec([0x6a,0x74,0x69])],_0x5608b1=window[_0x25c4ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f6089[_0x25c4ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f6089[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2959a8={..._0x7270f4,[_0x25c4ec([0x6a,0x74,0x69])]:_0x1f6089[_0x25c4ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1f6089[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2959a8[_0x25c4ec([0x76,0x63])],_0x30c266(_0x2959a8)==_0x5608b1;}}}async function _0x3bd583(){let _0x1b1037=!0x0;try{const _0x430f5d=_0x899a91[_0x25c4ec([0x73,0x70,0x6c,0x69,0x74])](_0x25c4ec([0x2e])),[_0x1c3763,_0x12f3da,_0x2d7d56]=_0x430f5d;return _0x31c3b2(_0x1c3763),await _0x348065(_0x1c3763,_0x12f3da,_0x2d7d56),_0x1b1037;}catch{return!0x1;}function _0x31c3b2(_0x3ad3ab){const _0x9b37ad=_0xe28410(_0x3ad3ab);_0x9b37ad&&_0x9b37ad[_0x25c4ec([0x61,0x6c,0x67])]==_0x25c4ec([0x45,0x53,0x32,0x35,0x36])||(_0x1b1037=!0x1);}async function _0x348065(_0xf8a247,_0x4a4b7f,_0x4161cc){const _0x29d356=window[_0x25c4ec([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x25c4ec([0x66,0x72,0x6f,0x6d])](_0x3e62d6(_0x4161cc),_0x413cc3=>_0x413cc3[_0x25c4ec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2a1132=new window[(_0x25c4ec([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x25c4ec([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xf8a247+_0x25c4ec([0x2e])+_0x4a4b7f),_0x1d85ac=window[_0x25c4ec([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x25c4ec([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1d85ac)return;const _0x47ee71=await _0x1d85ac[_0x25c4ec([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x25c4ec([0x6a,0x77,0x6b]),_0x3724ca,{[_0x25c4ec([0x6e,0x61,0x6d,0x65])]:_0x25c4ec([0x45,0x43,0x44,0x53,0x41]),[_0x25c4ec([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x25c4ec([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x25c4ec([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1d85ac[_0x25c4ec([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x25c4ec([0x6e,0x61,0x6d,0x65])]:_0x25c4ec([0x45,0x43,0x44,0x53,0x41]),[_0x25c4ec([0x68,0x61,0x73,0x68])]:{[_0x25c4ec([0x6e,0x61,0x6d,0x65])]:_0x25c4ec([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x47ee71,_0x29d356,_0x2a1132)||(_0x1b1037=!0x1);}}function _0xe28410(_0x4916cc){return _0x4916cc[_0x25c4ec([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x25c4ec([0x65,0x79]))?JSON[_0x25c4ec([0x70,0x61,0x72,0x73,0x65])](_0x3e62d6(_0x4916cc)):null;}function _0x3e62d6(_0x57683d){return window[_0x25c4ec([0x61,0x74,0x6f,0x62])](_0x57683d[_0x25c4ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x25c4ec([0x2b]))[_0x25c4ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x25c4ec([0x2f])));}function _0x30c266(_0x80ed3a){let _0x25795b=0x1505;function _0x248528(_0x15f795){for(let _0x33cf00=0x0;_0x33cf00<_0x15f795[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33cf00++){const _0x4bec40=_0x15f795[_0x25c4ec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x33cf00);_0x25795b=(_0x25795b<<0x5)+_0x25795b+_0x4bec40,_0x25795b&=_0x25795b;}}function _0xa026de(_0x8cc4fd){Array[_0x25c4ec([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x8cc4fd)?_0x8cc4fd[_0x25c4ec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa026de):_0x8cc4fd&&typeof _0x8cc4fd==_0x25c4ec([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x25c4ec([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x8cc4fd)[_0x25c4ec([0x73,0x6f,0x72,0x74])]()[_0x25c4ec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1243a9,_0x212d55])=>{_0x248528(_0x1243a9),_0xa026de(_0x212d55);}):_0x248528(window[_0x25c4ec([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x8cc4fd));}return _0xa026de(_0x80ed3a),_0x25795b>>>0x0;}function _0x1f3e41(_0x1b838a){return _0x1b838a[_0x25c4ec([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x25c4ec([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x25c4ec([0x30]));}function _0x1e11f4(_0x4f96d0){return _0x4f96d0[_0x25c4ec([0x73,0x70,0x6c,0x69,0x74])]('')[_0x25c4ec([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x25c4ec([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c1c21(){}function _0x25c4ec(_0xbec39c){const _0x4810ad=_0x3abe;return _0xbec39c[_0x4810ad(0x1ff)](_0x2c487e=>String[_0x4810ad(0x1de)](_0x2c487e))[_0x4810ad(0x224)]('');}_0x25ac4c(await _0x1a84bb());}(this);}[_0x647b7e(0x20f)](){const _0x5cab71=_0x647b7e,_0x4b4bb5=this[_0x5cab71(0x202)][_0x5cab71(0x219)][_0x5cab71(0x1ec)];_0x4b4bb5[_0x5cab71(0x1e0)](_0x5cab71(0x1f6))&&_0x4b4bb5[_0x5cab71(0x228)](_0x5cab71(0x1f6),{'allowAttributes':[_0x5cab71(0x214)]}),_0x4b4bb5[_0x5cab71(0x1e0)](_0x5cab71(0x22d))&&_0x4b4bb5[_0x5cab71(0x228)](_0x5cab71(0x22d),{'allowAttributes':[_0x5cab71(0x214)]});}[_0x647b7e(0x222)](){const _0x1e79d5=_0x647b7e,_0x6a1777=this[_0x1e79d5(0x202)];_0x6a1777[_0x1e79d5(0x225)][_0x1e79d5(0x22c)](_0x1e79d5(0x210))[_0x1e79d5(0x1db)]({'model':_0x1e79d5(0x214),'view':_0x1e79d5(0x1df)}),_0x6a1777[_0x1e79d5(0x225)][_0x1e79d5(0x22c)](_0x1e79d5(0x1f0))[_0x1e79d5(0x216)]({'model':{'key':_0x1e79d5(0x214),'value':_0x2de14b=>_0x2de14b[_0x1e79d5(0x1f8)](_0x1e79d5(0x1df))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x20e550=_0x6a1777[_0x1e79d5(0x1e3)][_0x1e79d5(0x20a)](_0x1e79d5(0x21b));_0x20e550&&this[_0x1e79d5(0x21c)](_0x20e550,_0x1e79d5(0x1fb),(_0x2efca7,[_0x28455d,_0x129b82])=>{const _0x401d09=_0x1e79d5;_0x28455d[_0x401d09(0x1e6)](_0x401d09(0x214),_0x129b82);});}[_0x647b7e(0x227)](){const _0x17e5aa=_0x647b7e,_0x292641=this[_0x17e5aa(0x202)][_0x17e5aa(0x217)][_0x17e5aa(0x20a)](_0x17e5aa(0x21f))||{},_0xdd76b0=this[_0x17e5aa(0x202)][_0x17e5aa(0x217)][_0x17e5aa(0x20a)](_0x17e5aa(0x1f4))||'';this[_0x17e5aa(0x1f3)]=_0x3dfc85(_0x23523e[_0x17e5aa(0x1e1)],_0x17e5aa(0x1fa),{..._0x292641,'pubkey':_0xdd76b0,'ctx-name':_0x17e5aa(0x213)+this[_0x17e5aa(0x200)],'sourceList':'','imgOnly':_0x17e5aa(0x22a),'removeCopyright':_0x17e5aa(0x22a),'localeName':this[_0x17e5aa(0x202)][_0x17e5aa(0x204)][_0x17e5aa(0x20b)],'externalSourcesEmbedCss':_0x17e5aa(0x206)}),this[_0x17e5aa(0x1f3)][_0x17e5aa(0x21e)]=_0x436c80=>{const _0x1eec13=_0x17e5aa;if(_0x1eec13(0x203)==_0x436c80)return _0x1eec13(0x1f2);},_0x23523e[_0x17e5aa(0x1e1)][_0x17e5aa(0x209)][_0x17e5aa(0x1fe)](this[_0x17e5aa(0x1f3)]);}[_0x647b7e(0x1f7)](){const _0x4ca5f3=_0x647b7e;this[_0x4ca5f3(0x1e2)]=_0x3dfc85(_0x23523e[_0x4ca5f3(0x1e1)],_0x4ca5f3(0x22b),{'ctx-name':_0x4ca5f3(0x213)+this[_0x4ca5f3(0x200)]}),_0x23523e[_0x4ca5f3(0x1e1)][_0x4ca5f3(0x209)][_0x4ca5f3(0x1fe)](this[_0x4ca5f3(0x1e2)]);}[_0x647b7e(0x1ee)](){const _0x58991c=_0x647b7e,_0x34647d=this[_0x58991c(0x202)][_0x58991c(0x1e3)][_0x58991c(0x20a)](_0x58991c(0x21a));_0x34647d&&this[_0x58991c(0x21c)](_0x34647d,_0x58991c(0x1fc),()=>{const _0x43ec2c=_0x58991c,_0x4413c1=this[_0x43ec2c(0x202)][_0x43ec2c(0x219)][_0x43ec2c(0x1e1)][_0x43ec2c(0x1e8)][_0x43ec2c(0x1ed)]();_0x4413c1&&_0x4413c1[_0x43ec2c(0x1f8)](_0x43ec2c(0x214))&&this[_0x43ec2c(0x202)][_0x43ec2c(0x1eb)][_0x43ec2c(0x212)][_0x43ec2c(0x231)](_0x43ec2c(0x1e4),()=>{const _0x16cb7d=_0x43ec2c;_0x4b588b(this[_0x16cb7d(0x202)],_0x4413c1);});});const _0x2ff9d6=this[_0x58991c(0x202)][_0x58991c(0x1e3)][_0x58991c(0x20a)](_0x58991c(0x223));_0x2ff9d6&&this[_0x58991c(0x21c)](_0x2ff9d6,_0x58991c(0x1fc),()=>{const _0x2dbf8f=_0x58991c,_0x45400e=this[_0x2dbf8f(0x202)][_0x2dbf8f(0x219)][_0x2dbf8f(0x1e1)][_0x2dbf8f(0x1e8)][_0x2dbf8f(0x1ed)]();_0x45400e&&_0x45400e[_0x2dbf8f(0x1f8)](_0x2dbf8f(0x214))&&this[_0x2dbf8f(0x202)][_0x2dbf8f(0x1eb)][_0x2dbf8f(0x212)][_0x2dbf8f(0x231)](_0x2dbf8f(0x1e4),()=>{const _0x5d13fe=_0x2dbf8f;_0x4b588b(this[_0x5d13fe(0x202)],_0x45400e);});});}}
|
|
23
|
+
const _0x2bf272=_0x169a;function _0x169a(_0x4856b1,_0x5a41db){const _0x201584=_0x2015();return _0x169a=function(_0x169a02,_0x2d7588){_0x169a02=_0x169a02-0x19f;let _0x1e322e=_0x201584[_0x169a02];return _0x1e322e;},_0x169a(_0x4856b1,_0x5a41db);}(function(_0x30c335,_0x30af51){const _0x7f8bae=_0x169a,_0x5820a6=_0x30c335();while(!![]){try{const _0x31bd62=-parseInt(_0x7f8bae(0x1a1))/0x1+parseInt(_0x7f8bae(0x1c9))/0x2*(parseInt(_0x7f8bae(0x1c2))/0x3)+-parseInt(_0x7f8bae(0x1a3))/0x4+parseInt(_0x7f8bae(0x1e6))/0x5+parseInt(_0x7f8bae(0x1a8))/0x6+parseInt(_0x7f8bae(0x1e9))/0x7+parseInt(_0x7f8bae(0x1a0))/0x8;if(_0x31bd62===_0x30af51)break;else _0x5820a6['push'](_0x5820a6['shift']());}catch(_0x28eeed){_0x5820a6['push'](_0x5820a6['shift']());}}}(_0x2015,0xa5230));import{Plugin as _0x5c04af}from'ckeditor5/src/core.js';import{Dialog as _0x3a592b}from'ckeditor5/src/ui.js';import{createElement as _0x32092a,global as _0x533126,uid as _0x3ca465}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x31dd41}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x52fd1f}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4d05e5}from'./utils/editingutils.js';function _0x2015(){const _0x4724a6=['3015792OsPfnb','563209pmgZUq','uc-config','5190036SszTAE','body','appendChild','render','remove','4190118reQduZ','requires','uc-upload-ctx-provider','config','uploader-','input[uploadcare-file-input]','init','afterInit','\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','join','map','cleanupImage','add','imageBlock','extend','UploadcareEditing','elementToAttribute','schema','pluginName','_ctxElement','_initImageProcessingIndicator','href','_initCtx','PictureEditing','ctxElement','editing','6VlqRbw','get','isPremiumPlugin','once','removeAttribute','imageInline','_initSchema','19976mKLard','editor','upcast','isOfficialPlugin','fromCharCode','true','configElement','model','querySelector','data-uc-image-id','isRegistered','execute','getSelectedElement','_configElement','getAttribute','iconHrefResolver','closeMax','destroy','uploadcare.pubkey','attributeToAttribute','insertImage','for','replaceImageSource','contentLanguage','selection','uploadcareImageId','document','ucContextId','_initConfig','2682360iWwUjx','commands','downcast','6337401OxcCHk','locale','_initConversion','uploadcareImageReplace','uploadcare','#uc-icon-arrow-down','uploadcare.uploader','listenTo','view','conversion'];_0x2015=function(){return _0x4724a6;};return _0x2015();}export class UploadcareEditing extends _0x5c04af{[_0x2bf272(0x1d6)]=null;[_0x2bf272(0x1bb)]=null;static get[_0x2bf272(0x1ba)](){const _0x1e9905=_0x2bf272;return _0x1e9905(0x1b7);}static get[_0x2bf272(0x1a9)](){const _0x1ed22d=_0x2bf272;return[_0x1ed22d(0x1bf),_0x52fd1f,_0x3a592b];}static get[_0x2bf272(0x1cc)](){return!0x0;}static get[_0x2bf272(0x1c4)](){return!0x0;}[_0x2bf272(0x1e4)];get[_0x2bf272(0x1cf)](){const _0xbc62a6=_0x2bf272;return this[_0xbc62a6(0x1d6)];}get[_0x2bf272(0x1c0)](){const _0x20f809=_0x2bf272;return this[_0x20f809(0x1bb)];}constructor(_0x1e80a3){const _0x26b12a=_0x2bf272;super(_0x1e80a3),this[_0x26b12a(0x1e4)]=_0x3ca465();}[_0x2bf272(0x1ae)](){const _0x5762b2=_0x2bf272,_0x8a4a24=this[_0x5762b2(0x1ca)];_0x8a4a24[_0x5762b2(0x1e7)][_0x5762b2(0x1b4)](_0x5762b2(0x1ed),new _0x31dd41(_0x8a4a24));}[_0x2bf272(0x1af)](){const _0x4c00bb=_0x2bf272;this[_0x4c00bb(0x1c8)](),this[_0x4c00bb(0x1eb)](),this[_0x4c00bb(0x1e5)](),this[_0x4c00bb(0x1be)](),this[_0x4c00bb(0x1bc)](),this[_0x4c00bb(0x1f0)](this[_0x4c00bb(0x1ca)],_0x4c00bb(0x1da),()=>{const _0x5788c4=_0x4c00bb;this[_0x5788c4(0x1d6)]&&(this[_0x5788c4(0x1d6)][_0x5788c4(0x1a7)](),this[_0x5788c4(0x1d6)]=null),this[_0x5788c4(0x1bb)]&&(this[_0x5788c4(0x1bb)][_0x5788c4(0x1a7)](),this[_0x5788c4(0x1bb)]=null);const _0x4c583f=_0x533126[_0x5788c4(0x1e3)][_0x5788c4(0x1d1)](_0x5788c4(0x1ad));_0x4c583f&&_0x4c583f[_0x5788c4(0x1a7)]();}),async function(_0x332e6e){const _0x182eeb=_0x9b7fc0([0x63,0x57,0x30,0x42,0x4a,0x6d,0x4c,0x74,0x4d,0x41,0x49,0x50,0x71,0x64,0x44,0x6c,0x65,0x51,0x66,0x79,0x6f,0x4f,0x56,0x68,0x31,0x72,0x35,0x48,0x34,0x67,0x37,0x5a,0x53,0x55,0x6a,0x54,0x47,0x62,0x76,0x59,0x61,0x4e,0x39,0x77,0x36,0x38,0x58,0x70,0x6b,0x32,0x45,0x6e,0x46,0x75,0x4b,0x73,0x43,0x33,0x52,0x78,0x7a,0x69]),_0x50f778=0x48619f64,_0x2f8b65=0x4866f41c^_0x50f778,_0x5e5960=window[_0x9b7fc0([0x44,0x61,0x74,0x65])][_0x9b7fc0([0x6e,0x6f,0x77])](),_0x44938e=_0x332e6e[_0x9b7fc0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59728a=new window[(_0x9b7fc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa6c422=>{_0x44938e[_0x9b7fc0([0x6f,0x6e,0x63,0x65])](_0x9b7fc0([0x72,0x65,0x61,0x64,0x79]),_0xa6c422);}),_0x573697={[_0x9b7fc0([0x6b,0x74,0x79])]:_0x9b7fc0([0x45,0x43]),[_0x9b7fc0([0x75,0x73,0x65])]:_0x9b7fc0([0x73,0x69,0x67]),[_0x9b7fc0([0x63,0x72,0x76])]:_0x9b7fc0([0x50,0x2d,0x32,0x35,0x36]),[_0x9b7fc0([0x78])]:_0x9b7fc0([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]),[_0x9b7fc0([0x79])]:_0x9b7fc0([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]),[_0x9b7fc0([0x61,0x6c,0x67])]:_0x9b7fc0([0x45,0x53,0x32,0x35,0x36])},_0x410985=_0x44938e[_0x9b7fc0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x9b7fc0([0x67,0x65,0x74])](_0x9b7fc0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x45b607(){let _0x41098c,_0x191f73=null,_0x16d2f2=null;try{if(_0x410985==_0x9b7fc0([0x47,0x50,0x4c]))return _0x9b7fc0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x41098c=_0x38a855(),!_0x41098c)return _0x9b7fc0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x41098c[_0x9b7fc0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x16d2f2=_0x274b62(_0x41098c[_0x9b7fc0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x41098c[_0x9b7fc0([0x6a,0x74,0x69])])),await _0x32a080()?_0x4a5316()?_0x399a62()?_0x9b7fc0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x127c27()?(_0x41098c[_0x9b7fc0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9b7fc0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x191f73=_0x586dd3(_0x9b7fc0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x41098c[_0x9b7fc0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9b7fc0([0x74,0x72,0x69,0x61,0x6c])&&(_0x191f73=_0x586dd3(_0x9b7fc0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e6aa9()):_0x9b7fc0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x9b7fc0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x9b7fc0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x9b7fc0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x399a62(){const _0x190b84=[_0x9b7fc0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x9b7fc0([0x74,0x72,0x69,0x61,0x6c])][_0x9b7fc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41098c[_0x9b7fc0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5e5960/0x3e8:0xe10*_0x2f8b65;return _0x41098c[_0x9b7fc0([0x65,0x78,0x70])]<_0x190b84;}function _0x4a5316(){const _0x17861a=_0x41098c[_0x9b7fc0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x17861a&&(!!_0x17861a[_0x9b7fc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b7fc0([0x2a]))||!!_0x17861a[_0x9b7fc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b7fc0([0x55,0x50,0x4c,0x43])));}function _0x127c27(){const _0x359f9e=_0x169a,_0x5523a4=_0x41098c[_0x9b7fc0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5523a4||0x0==_0x5523a4[_0x9b7fc0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3158b4}=new URL(window[_0x9b7fc0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x359f9e(0x1bd)]);if(_0x5523a4[_0x9b7fc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3158b4))return!0x0;const _0x3c54d=_0x3158b4[_0x9b7fc0([0x73,0x70,0x6c,0x69,0x74])](_0x9b7fc0([0x2e]));return _0x5523a4[_0x9b7fc0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c4d69=>_0x2c4d69[_0x9b7fc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b7fc0([0x2a])))[_0x9b7fc0([0x6d,0x61,0x70])](_0x4a03f4=>_0x4a03f4[_0x9b7fc0([0x73,0x70,0x6c,0x69,0x74])](_0x9b7fc0([0x2e])))[_0x9b7fc0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43ae5f=>_0x43ae5f[_0x9b7fc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3c54d[_0x9b7fc0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9b7fc0([0x6d,0x61,0x70])](_0x12d246=>Array(_0x3c54d[_0x9b7fc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x12d246[_0x9b7fc0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9b7fc0([0x66,0x69,0x6c,0x6c])](_0x12d246[0x0]===_0x9b7fc0([0x2a])?_0x9b7fc0([0x2a]):'')[_0x9b7fc0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x12d246))[_0x9b7fc0([0x73,0x6f,0x6d,0x65])](_0x30d923=>_0x3c54d[_0x9b7fc0([0x65,0x76,0x65,0x72,0x79])]((_0x46c8a0,_0x5e7b3e)=>_0x30d923[_0x5e7b3e]===_0x46c8a0||_0x30d923[_0x5e7b3e]===_0x9b7fc0([0x2a])));}function _0x2e6aa9(){return _0x191f73&&_0x16d2f2?new window[(_0x9b7fc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c0b9a,_0x578d84)=>{_0x191f73[_0x9b7fc0([0x74,0x68,0x65,0x6e])](_0x2c0b9a,_0x578d84),_0x16d2f2[_0x9b7fc0([0x74,0x68,0x65,0x6e])](_0x30fb2e=>{_0x30fb2e!=_0x9b7fc0([0x56,0x61,0x6c,0x69,0x64])&&_0x2c0b9a(_0x30fb2e);},_0x578d84);}):_0x191f73||_0x16d2f2||_0x9b7fc0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x274b62(_0x4ca96d,_0x27260f){return new window[(_0x9b7fc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b7273=>{if(_0x1a3474())return _0x4b7273(_0x9b7fc0([0x56,0x61,0x6c,0x69,0x64]));_0x4c7812(),_0x44938e[_0x9b7fc0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x9b7fc0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xa23b90=!0x1;const _0x253c22=_0x3ca465();function _0x3addd1(_0x3e1fa7){return!!_0x3e1fa7&&(typeof _0x3e1fa7===_0x9b7fc0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3e1fa7===_0x9b7fc0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3e1fa7[_0x9b7fc0([0x74,0x68,0x65,0x6e])]===_0x9b7fc0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3e1fa7[_0x9b7fc0([0x63,0x61,0x74,0x63,0x68])]===_0x9b7fc0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3cbe9b(_0x1002b5){_0x329746(_0x1002b5)[_0x9b7fc0([0x74,0x68,0x65,0x6e])](_0x1f5d90=>{if(!_0x1f5d90||_0x1f5d90[_0x9b7fc0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x9b7fc0([0x6f,0x6b]))return _0x9b7fc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5a79b2(_0x257605(_0x253c22+_0x27260f))!=_0x1f5d90[_0x9b7fc0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x9b7fc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x9b7fc0([0x56,0x61,0x6c,0x69,0x64]);})[_0x9b7fc0([0x74,0x68,0x65,0x6e])](_0xa16db3=>(_0xc5b36c(),_0xa16db3),()=>{const _0x3dcfbb=_0x4df1e8();return null==_0x3dcfbb?(_0xc5b36c(),_0x9b7fc0([0x56,0x61,0x6c,0x69,0x64])):_0x9b7fc0(_0x5e5960-_0x3dcfbb>(0x6c6d1b64^_0x50f778)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x9b7fc0([0x74,0x68,0x65,0x6e])](_0x4b7273)[_0x9b7fc0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b7273(_0x9b7fc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x97bd8=0x485771e4^_0x50f778;function _0xc5b36c(){const _0x1114be=_0x9b7fc0([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a79b2(_0x257605(_0x4ca96d)),_0x15c86d=_0x76e234(_0x5a79b2(window[_0x9b7fc0([0x4d,0x61,0x74,0x68])][_0x9b7fc0([0x63,0x65,0x69,0x6c])](_0x5e5960/_0x97bd8)));window[_0x9b7fc0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9b7fc0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1114be,_0x15c86d);}function _0x4df1e8(){const _0x24c0e7=_0x9b7fc0([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a79b2(_0x257605(_0x4ca96d)),_0x120cf4=window[_0x9b7fc0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9b7fc0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24c0e7);return _0x120cf4?window[_0x9b7fc0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x76e234(_0x120cf4),0x10)*_0x97bd8:null;}function _0x329746(_0x5501b4){return new window[(_0x9b7fc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6c25eb,_0x55e5d6)=>{_0x5501b4[_0x9b7fc0([0x74,0x68,0x65,0x6e])](_0x6c25eb,_0x55e5d6),window[_0x9b7fc0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x55e5d6,0x48604ba4^_0x50f778);});}}_0x44938e[_0x9b7fc0([0x6f,0x6e])](_0x9b7fc0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x43d619,_0x3c5812)=>{if(_0x3c5812[0x0]!=_0x4ca96d)return _0x4b7273(_0x9b7fc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3c5812[0x1]={..._0x3c5812[0x1],[_0x9b7fc0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x253c22};},{[_0x9b7fc0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9b7fc0([0x68,0x69,0x67,0x68])}),_0x44938e[_0x9b7fc0([0x6f,0x6e])](_0x9b7fc0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7257c5=>{_0x3addd1(_0x7257c5[_0x9b7fc0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xa23b90=!0x0,_0x3cbe9b(_0x7257c5[_0x9b7fc0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x9b7fc0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9b7fc0([0x6c,0x6f,0x77])}),_0x59728a[_0x9b7fc0([0x74,0x68,0x65,0x6e])](()=>{_0xa23b90||_0x4b7273(_0x9b7fc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1a3474(){return _0x44938e[_0x9b7fc0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9b7fc0([0x76,0x69,0x65,0x77])][_0x9b7fc0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x9b7fc0([0x61,0x75,0x74,0x6f]);}function _0x4c7812(){_0x44938e[_0x9b7fc0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9b7fc0([0x76,0x69,0x65,0x77])][_0x9b7fc0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x9b7fc0([0x61,0x75,0x74,0x6f]);}}function _0x586dd3(_0x4f4601){const _0x1c3f73=[new window[(_0x9b7fc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e7b0d=>setTimeout(_0x1e7b0d,0x4868a1a8^_0x50f778)),_0x59728a[_0x9b7fc0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x9b7fc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdad2eb=>{let _0x32c541=0x0;_0x44938e[_0x9b7fc0([0x6d,0x6f,0x64,0x65,0x6c])][_0x9b7fc0([0x6f,0x6e])](_0x9b7fc0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x59b381,_0x1d174d)=>{_0x1d174d[0x0][_0x9b7fc0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x32c541++,_0x32c541==(0x48619e9c^_0x50f778)&&(_0xdad2eb(),_0x59b381[_0x9b7fc0([0x6f,0x66,0x66])]());});}))];return window[_0x9b7fc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x9b7fc0([0x72,0x61,0x63,0x65])](_0x1c3f73)[_0x9b7fc0([0x74,0x68,0x65,0x6e])](()=>_0x4f4601);}async function _0x816e59(){await _0x59728a,_0x44938e[_0x9b7fc0([0x6d,0x6f,0x64,0x65,0x6c])][_0x9b7fc0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2c5b5a,_0x44938e[_0x9b7fc0([0x6d,0x6f,0x64,0x65,0x6c])][_0x9b7fc0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2c5b5a,_0x44938e[_0x9b7fc0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x9b7fc0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2e884f(_0x500976){const _0x59c664=_0x3c4426();_0x44938e[_0x59c664]=_0x9b7fc0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x500976,_0x500976!=_0x9b7fc0([0x56,0x61,0x6c,0x69,0x64])&&_0x816e59();}function _0x3c4426(){const _0x3b6242=window[_0x9b7fc0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x9b7fc0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x9b7fc0([0x6e,0x6f,0x77])]())[_0x9b7fc0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x9b7fc0([0x2e]),'');let _0x35afb8=_0x9b7fc0([0x63]);for(let _0x1c84d4=0x0;_0x1c84d4<_0x3b6242[_0x9b7fc0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c84d4+=0x2){let _0x5e9dc9=window[_0x9b7fc0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b6242[_0x9b7fc0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c84d4,_0x1c84d4+0x2));_0x5e9dc9>=_0x182eeb[_0x9b7fc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e9dc9-=_0x182eeb[_0x9b7fc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x35afb8+=_0x182eeb[_0x5e9dc9];}return _0x35afb8;}function _0x38a855(){const _0x43172f=_0x410985[_0x9b7fc0([0x73,0x70,0x6c,0x69,0x74])](_0x9b7fc0([0x2e]));if(0x3!=_0x43172f[_0x9b7fc0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3c1263(_0x43172f[0x1]);function _0x3c1263(_0x353c42){const _0x483511=_0x2b9ee3(_0x353c42);return _0x483511&&_0x3530be()?_0x483511:null;function _0x3530be(){const _0x6d91b0=_0x483511[_0x9b7fc0([0x6a,0x74,0x69])],_0x1fdc3d=window[_0x9b7fc0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6d91b0[_0x9b7fc0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6d91b0[_0x9b7fc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x49b04f={..._0x483511,[_0x9b7fc0([0x6a,0x74,0x69])]:_0x6d91b0[_0x9b7fc0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x6d91b0[_0x9b7fc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x49b04f[_0x9b7fc0([0x76,0x63])],_0x257605(_0x49b04f)==_0x1fdc3d;}}}async function _0x32a080(){let _0x15ffc8=!0x0;try{const _0x5d6484=_0x410985[_0x9b7fc0([0x73,0x70,0x6c,0x69,0x74])](_0x9b7fc0([0x2e])),[_0x3e0517,_0x135a55,_0x36a731]=_0x5d6484;return _0x44c300(_0x3e0517),await _0x2bb5a6(_0x3e0517,_0x135a55,_0x36a731),_0x15ffc8;}catch{return!0x1;}function _0x44c300(_0x27a71e){const _0x1ac2b2=_0x2b9ee3(_0x27a71e);_0x1ac2b2&&_0x1ac2b2[_0x9b7fc0([0x61,0x6c,0x67])]==_0x9b7fc0([0x45,0x53,0x32,0x35,0x36])||(_0x15ffc8=!0x1);}async function _0x2bb5a6(_0xfeaca9,_0x2fd436,_0x470951){const _0x4f3fbe=window[_0x9b7fc0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x9b7fc0([0x66,0x72,0x6f,0x6d])](_0x26f09e(_0x470951),_0x2ef043=>_0x2ef043[_0x9b7fc0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3e700a=new window[(_0x9b7fc0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x9b7fc0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xfeaca9+_0x9b7fc0([0x2e])+_0x2fd436),_0x5266c4=window[_0x9b7fc0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x9b7fc0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5266c4)return;const _0x21cdb7=await _0x5266c4[_0x9b7fc0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x9b7fc0([0x6a,0x77,0x6b]),_0x573697,{[_0x9b7fc0([0x6e,0x61,0x6d,0x65])]:_0x9b7fc0([0x45,0x43,0x44,0x53,0x41]),[_0x9b7fc0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x9b7fc0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x9b7fc0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5266c4[_0x9b7fc0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x9b7fc0([0x6e,0x61,0x6d,0x65])]:_0x9b7fc0([0x45,0x43,0x44,0x53,0x41]),[_0x9b7fc0([0x68,0x61,0x73,0x68])]:{[_0x9b7fc0([0x6e,0x61,0x6d,0x65])]:_0x9b7fc0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x21cdb7,_0x4f3fbe,_0x3e700a)||(_0x15ffc8=!0x1);}}function _0x2b9ee3(_0x43729c){return _0x43729c[_0x9b7fc0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x9b7fc0([0x65,0x79]))?JSON[_0x9b7fc0([0x70,0x61,0x72,0x73,0x65])](_0x26f09e(_0x43729c)):null;}function _0x26f09e(_0x1f8e07){return window[_0x9b7fc0([0x61,0x74,0x6f,0x62])](_0x1f8e07[_0x9b7fc0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x9b7fc0([0x2b]))[_0x9b7fc0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x9b7fc0([0x2f])));}function _0x257605(_0x3d80de){let _0x45543b=0x1505;function _0x30cd48(_0x5ede0c){for(let _0x155f5d=0x0;_0x155f5d<_0x5ede0c[_0x9b7fc0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x155f5d++){const _0x388cb5=_0x5ede0c[_0x9b7fc0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x155f5d);_0x45543b=(_0x45543b<<0x5)+_0x45543b+_0x388cb5,_0x45543b&=_0x45543b;}}function _0x153e33(_0x34a2b5){Array[_0x9b7fc0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x34a2b5)?_0x34a2b5[_0x9b7fc0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x153e33):_0x34a2b5&&typeof _0x34a2b5==_0x9b7fc0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x9b7fc0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x34a2b5)[_0x9b7fc0([0x73,0x6f,0x72,0x74])]()[_0x9b7fc0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3316d5,_0x1748dd])=>{_0x30cd48(_0x3316d5),_0x153e33(_0x1748dd);}):_0x30cd48(window[_0x9b7fc0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x34a2b5));}return _0x153e33(_0x3d80de),_0x45543b>>>0x0;}function _0x5a79b2(_0x18aca6){return _0x18aca6[_0x9b7fc0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x9b7fc0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x9b7fc0([0x30]));}function _0x76e234(_0x827d10){return _0x827d10[_0x9b7fc0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x9b7fc0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x9b7fc0([0x6a,0x6f,0x69,0x6e])]('');}function _0x2c5b5a(){}function _0x9b7fc0(_0x1d3fba){const _0x4d7a9c=_0x169a;return _0x1d3fba[_0x4d7a9c(0x1b2)](_0x337fd5=>String[_0x4d7a9c(0x1cd)](_0x337fd5))[_0x4d7a9c(0x1b1)]('');}_0x2e884f(await _0x45b607());}(this);}[_0x2bf272(0x1c8)](){const _0x916a5d=_0x2bf272,_0x1179f3=this[_0x916a5d(0x1ca)][_0x916a5d(0x1d0)][_0x916a5d(0x1b9)];_0x1179f3[_0x916a5d(0x1d3)](_0x916a5d(0x1b5))&&_0x1179f3[_0x916a5d(0x1b6)](_0x916a5d(0x1b5),{'allowAttributes':[_0x916a5d(0x1e2)]}),_0x1179f3[_0x916a5d(0x1d3)](_0x916a5d(0x1c7))&&_0x1179f3[_0x916a5d(0x1b6)](_0x916a5d(0x1c7),{'allowAttributes':[_0x916a5d(0x1e2)]});}[_0x2bf272(0x1eb)](){const _0x2d1546=_0x2bf272,_0x304f83=this[_0x2d1546(0x1ca)];_0x304f83[_0x2d1546(0x19f)][_0x2d1546(0x1de)](_0x2d1546(0x1e8))[_0x2d1546(0x1dc)]({'model':_0x2d1546(0x1e2),'view':_0x2d1546(0x1d2)}),_0x304f83[_0x2d1546(0x19f)][_0x2d1546(0x1de)](_0x2d1546(0x1cb))[_0x2d1546(0x1b8)]({'model':{'key':_0x2d1546(0x1e2),'value':_0x1ac811=>_0x1ac811[_0x2d1546(0x1d7)](_0x2d1546(0x1d2))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3279d9=_0x304f83[_0x2d1546(0x1e7)][_0x2d1546(0x1c3)](_0x2d1546(0x1df));_0x3279d9&&this[_0x2d1546(0x1f0)](_0x3279d9,_0x2d1546(0x1b3),(_0x1dc649,[_0x31f83e,_0x2e8500])=>{const _0x2a7e2c=_0x2d1546;_0x31f83e[_0x2a7e2c(0x1c6)](_0x2a7e2c(0x1e2),_0x2e8500);});}[_0x2bf272(0x1e5)](){const _0x5c6c68=_0x2bf272,_0x487d75=this[_0x5c6c68(0x1ca)][_0x5c6c68(0x1ab)][_0x5c6c68(0x1c3)](_0x5c6c68(0x1ef))||{},_0x5b7755=this[_0x5c6c68(0x1ca)][_0x5c6c68(0x1ab)][_0x5c6c68(0x1c3)](_0x5c6c68(0x1db))||'';this[_0x5c6c68(0x1d6)]=_0x32092a(_0x533126[_0x5c6c68(0x1e3)],_0x5c6c68(0x1a2),{..._0x487d75,'pubkey':_0x5b7755,'ctx-name':_0x5c6c68(0x1ac)+this[_0x5c6c68(0x1e4)],'sourceList':'','imgOnly':_0x5c6c68(0x1ce),'removeCopyright':_0x5c6c68(0x1ce),'localeName':this[_0x5c6c68(0x1ca)][_0x5c6c68(0x1ea)][_0x5c6c68(0x1e0)],'externalSourcesEmbedCss':_0x5c6c68(0x1b0)}),this[_0x5c6c68(0x1d6)][_0x5c6c68(0x1d8)]=_0x63a5a=>{const _0x592b77=_0x5c6c68;if(_0x592b77(0x1d9)==_0x63a5a)return _0x592b77(0x1ee);},_0x533126[_0x5c6c68(0x1e3)][_0x5c6c68(0x1a4)][_0x5c6c68(0x1a5)](this[_0x5c6c68(0x1d6)]);}[_0x2bf272(0x1be)](){const _0x21d74e=_0x2bf272;this[_0x21d74e(0x1bb)]=_0x32092a(_0x533126[_0x21d74e(0x1e3)],_0x21d74e(0x1aa),{'ctx-name':_0x21d74e(0x1ac)+this[_0x21d74e(0x1e4)]}),_0x533126[_0x21d74e(0x1e3)][_0x21d74e(0x1a4)][_0x21d74e(0x1a5)](this[_0x21d74e(0x1bb)]);}[_0x2bf272(0x1bc)](){const _0x1c6af4=_0x2bf272,_0x49a848=this[_0x1c6af4(0x1ca)][_0x1c6af4(0x1e7)][_0x1c6af4(0x1c3)](_0x1c6af4(0x1dd));_0x49a848&&this[_0x1c6af4(0x1f0)](_0x49a848,_0x1c6af4(0x1d4),()=>{const _0x366e1a=_0x1c6af4,_0x79cd69=this[_0x366e1a(0x1ca)][_0x366e1a(0x1d0)][_0x366e1a(0x1e3)][_0x366e1a(0x1e1)][_0x366e1a(0x1d5)]();_0x79cd69&&_0x79cd69[_0x366e1a(0x1d7)](_0x366e1a(0x1e2))&&this[_0x366e1a(0x1ca)][_0x366e1a(0x1c1)][_0x366e1a(0x1f1)][_0x366e1a(0x1c5)](_0x366e1a(0x1a6),()=>{const _0x5a4f70=_0x366e1a;_0x4d05e5(this[_0x5a4f70(0x1ca)],_0x79cd69);});});const _0x4877de=this[_0x1c6af4(0x1ca)][_0x1c6af4(0x1e7)][_0x1c6af4(0x1c3)](_0x1c6af4(0x1ec));_0x4877de&&this[_0x1c6af4(0x1f0)](_0x4877de,_0x1c6af4(0x1d4),()=>{const _0x536198=_0x1c6af4,_0x1bad4b=this[_0x536198(0x1ca)][_0x536198(0x1d0)][_0x536198(0x1e3)][_0x536198(0x1e1)][_0x536198(0x1d5)]();_0x1bad4b&&_0x1bad4b[_0x536198(0x1d7)](_0x536198(0x1e2))&&this[_0x536198(0x1ca)][_0x536198(0x1c1)][_0x536198(0x1f1)][_0x536198(0x1c5)](_0x536198(0x1a6),()=>{const _0x1716fe=_0x536198;_0x4d05e5(this[_0x1716fe(0x1ca)],_0x1bad4b);});});}}
|