@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250328.0 → 0.0.0-nightly-20250329.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/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x250316,Command as _0xd68474}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1c5f58,IconGooglePhotos as _0x42269b,IconGoogleDrive as _0x5ce73b,IconFacebook as _0x23f888,IconDropbox as _0x192ecb,IconUploadcareLink as _0xc973a0,IconUploadcareImageUpload as _0x52d343,IconError as et,IconUploadcareImageEdit as _0x32d3a7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x10621d,MenuBarMenuListItemButtonView as _0x2f099b,View as _0x44669b,FocusCycler as _0x1c7fa4,Dialog as _0x4ae455,DialogViewPosition as _0x57e5b7,SpinnerView as _0x1088d0,IconView as at,Notification as _0x12a662}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x227277,DomEmitterMixin as _0x4d9018,global as _0x1c8818,getAncestors as _0x46eac6,ObservableMixin as _0xfc0757,createElement as _0x378640,uid as _0x4dc1d8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x39dc6c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4ebb7e,info as _0x2fffbe}from'@uploadcare/upload-client';import*as _0x4b7c85 from'@uploadcare/file-uploader';var o=function(_0x2a06c6){return _0x2a06c6['Local']='local',_0x2a06c6['URL']='url',_0x2a06c6['Dropbox']='dropbox',_0x2a06c6['GDrive']='gdrive',_0x2a06c6['Facebook']='facebook',_0x2a06c6['GPhotos']='gphotos',_0x2a06c6['OneDrive']='onedrive',_0x2a06c6;}({});function _(_0x4e1da1,_0x233283,_0x14a468){const t=_0x4e1da1['t'],_0x38042b=_0x4e1da1['t'];switch(_0x233283){case o['Local']:return{'text':_0x38042b('Insert'===_0x14a468?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x38042b('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x14a468?_0x38042b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x38042b('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x14a468?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x14a468?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x14a468?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x14a468?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x14a468?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x233283;}}class e extends _0x250316{['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 _0x54b581=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3c0d70;for(const _0x1004fc in _0x54b581){const _0x52cac3=_0x1004fc,_0x3d82b8=_0x54b581[_0x52cac3];if('uploadcareLicenseKeyValid'==_0x3d82b8||'uploadcareLicenseKeyInvalid'==_0x3d82b8||'uploadcareLicenseKeyExpired'==_0x3d82b8||'uploadcareLicenseKeyDomainLimit'==_0x3d82b8||'uploadcareLicenseKeyNotAllowed'==_0x3d82b8||'uploadcareLicenseKeyEvaluationLimit'==_0x3d82b8||'uploadcareLicenseKeyTrialLimit'==_0x3d82b8||'uploadcareLicenseKeyUsageLimit'==_0x3d82b8){delete _0x54b581[_0x52cac3],_0x3c0d70=_0x3d82b8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3c0d70&&_0x54b581['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3c0d70&&_0x54b581['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3c0d70&&_0x54b581['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3c0d70&&_0x54b581['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3c0d70&&_0x54b581['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3c0d70&&_0x54b581['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3c0d70&&_0x54b581['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xa77d96}=this,_0x45cb4a=_0xa77d96['commands']['get']('uploadcare');if(!_0x45cb4a)return;const _0x1f2fb7=this['_normalizeConfigSourceList'](_0xa77d96['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x356041,_0x34980a)=>{const _0x307b92=this['_getIntegrationKey'](_0x34980a['type']);return _0x356041[_0x307b92]||(_0x356041[_0x307b92]=[]),_0x356041[_0x307b92]['push'](_0x34980a),_0x356041;},{});_0xa77d96['plugins']['has']('ImageInsertUI')&&_0xa77d96['commands']['get']('uploadcare')&&Object['entries'](_0x1f2fb7)['forEach'](([_0x36683b,_0x606e67])=>{_0xa77d96['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x36683b,'observable':()=>_0x45cb4a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x606e67),'formViewCreator':()=>this['_createDropdownButtons'](_0x606e67),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x606e67),'override':'assetManager'!==_0x36683b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1f1104){const {locale:_0x23e30c}=this['editor'];return _0x1f1104['map'](_0x40d548=>{const _0x4f8a74=_(_0x23e30c,_0x40d548,'Insert');switch(_0x40d548){case o['Local']:return{'icon':_0x52d343,'type':o['Local'],..._0x4f8a74};case o['URL']:return{'icon':_0xc973a0,'type':o['URL'],..._0x4f8a74};case o['Dropbox']:return{'icon':_0x192ecb,'type':o['Dropbox'],..._0x4f8a74};case o['Facebook']:return{'icon':_0x23f888,'type':o['Facebook'],..._0x4f8a74};case o['GDrive']:return{'icon':_0x5ce73b,'type':o['GDrive'],..._0x4f8a74};case o['GPhotos']:return{'icon':_0x42269b,'type':o['GPhotos'],..._0x4f8a74};case o['OneDrive']:return{'icon':_0x1c5f58,'type':o['OneDrive'],..._0x4f8a74};}});}['_getIntegrationKey'](_0x4b5d86){switch(_0x4b5d86){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xfe8984,_0x5255cc){const _0x2f9f0a=this['editor'],_0x3d1ba9=new _0xfe8984(_0x2f9f0a['locale']),_0x34c0ca=_0x2f9f0a['commands']['get']('uploadcare');return _0x3d1ba9['bind']('isEnabled')['to'](_0x34c0ca),_0x3d1ba9['on']('execute',()=>{_0x34c0ca['execute'](_0x5255cc);}),_0x3d1ba9;}['_createToolbarButton'](_0xe0e6b4){const {locale:_0x467368}=this['editor'],_0xc45a1b=this['editor']['plugins']['get']('ImageInsertUI'),_0x2eda37=_0xe0e6b4[0x0],_0x35a2f4=this['_createButton'](_0x10621d,_0x2eda37['type']);return _0x35a2f4['icon']=_0x2eda37['icon'],_0x35a2f4['bind']('label')['to'](_0xc45a1b,'isImageSelected',_0x1b19c1=>_(_0x467368,_0x2eda37['type'],_0x1b19c1?'Replace':'Insert')['text']),_0x35a2f4['tooltip']=!0x0,_0x35a2f4;}['_createDropdownButtons'](_0x3cfcb7){const {locale:_0x5bdfa1}=this['editor'],_0x2242d3=this['editor']['plugins']['get']('ImageInsertUI');return _0x3cfcb7['map'](_0xbc01c7=>{const _0x37d5e9=this['_createButton'](_0x10621d,_0xbc01c7['type']);return _0x37d5e9['withText']=!0x0,_0x37d5e9['icon']=_0xbc01c7['icon'],_0x37d5e9['bind']('label')['to'](_0x2242d3,'isImageSelected',_0x1257db=>_(_0x5bdfa1,_0xbc01c7['type'],_0x1257db?'Replace':'Insert')['text']),_0x37d5e9;});}['_createMenuBarButtons'](_0x3f1b2e){return _0x3f1b2e['map'](_0x3d3b5b=>{const _0x3a4235=this['_createButton'](_0x2f099b,_0x3d3b5b['type']);return _0x3a4235['icon']=_0x3d3b5b['icon'],_0x3a4235['label']=_0x3d3b5b['shortText'],_0x3a4235;});}}class q extends _0x44669b{['focusTracker'];['focusCycler'];constructor(_0x4d4bf9){super(_0x4d4bf9),this['focusTracker']=new _0x227277(),this['focusCycler']=new _0x1c7fa4({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x27c14a){super(_0x27c14a),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x215a9e,_0x1b20f7){const _0x501fb9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x58f3e0=>_0x58f3e0<=_0x1b20f7)['map'](_0x239aa0=>_0x215a9e['replace'](/\/$/,'')+'/-/resize/'+_0x239aa0+'x/\x20'+_0x239aa0+'w');return{'imageFallbackUrl':_0x215a9e,'imageSources':[{'srcset':_0x501fb9['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1b20f7+'px)\x20100vw,\x20'+_0x1b20f7+'px','type':'image/webp'}]};}function A(_0x5a2ef4,_0x23466f,_0x3da603){const _0x244139=_0x5a2ef4['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x244139?parseInt(_0x244139[0x1],0xa):_0x23466f,'height':_0x244139?parseInt(_0x244139[0x2],0xa):_0x3da603};}function m(_0xe09a52,_0x2d669b){const _0x471d06=Object['create'](_0x4d9018),_0x4b55c1=_0xe09a52['plugins']['get']('ImageUtils'),_0x31d739=_0xe09a52['editing']['mapper']['toViewElement'](_0x2d669b),_0x75aa7c=_0x4b55c1['findViewImgElement'](_0x31d739),_0x310501=_0xe09a52['editing']['view']['domConverter']['viewToDom'](_0x75aa7c),_0x4c6f89=_0x2d669b['getAttribute']('width'),_0x349d03=_0x2d669b['getAttribute']('height'),_0x41491b='image-processing';_0xe09a52['editing']['view']['change'](_0x16779e=>{_0x16779e['addClass'](_0x41491b,_0x31d739),_0x16779e['setStyle']('aspect-ratio',_0x4c6f89+'/'+_0x349d03,_0x75aa7c);}),_0x471d06['listenTo'](_0x310501,'load',()=>{_0x471d06['stopListening'](_0x310501,'load'),_0xe09a52['editing']['view']['change'](_0x35e4c5=>{_0x35e4c5['removeClass'](_0x41491b,_0x31d739),_0x35e4c5['removeStyle']('aspect-ratio',_0x75aa7c);});});}function R(_0x3631ad){if(Array['isArray'](_0x3631ad)){const _0x1240c0=_0x3631ad['map'](R);return _0x5a6c86=>_0x1240c0['some'](_0x15c45e=>_0x15c45e(_0x5a6c86));}if('origin'==_0x3631ad){const _0x15ff28=_0x1c8818['window']['location']['origin'];return _0x38d3ca=>new URL(_0x38d3ca,_0x1c8818['document']['baseURI'])['origin']==_0x15ff28;}return'function'==typeof _0x3631ad?_0x3631ad:_0x3631ad instanceof RegExp?_0x357749=>!(!_0x357749['match'](_0x3631ad)&&!_0x357749['replace'](/^https?:\/\//,'')['match'](_0x3631ad)):()=>!0x1;}function F(_0x268aca,_0x336fa0){return _0x46eac6(_0x268aca['target'])['includes'](_0x336fa0);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0xfc0757(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x121319,_0x3ba5ae,_0x305e63){super(),this['_editor']=_0x121319,this['_editing']=_0x3ba5ae,this['_dialog']=_0x121319['plugins']['get'](_0x4ae455),this['_api']=_0x3ba5ae['ctxElement']['getAPI'](),this['_type']=_0x305e63,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:_0x148e61,model:_0xe6c43b}=this['_editor'],_0x15112e=_0xe6c43b['document']['selection']['getSelectedElement'](),_0x282532=_0x15112e&&(_0x15112e['is']('element','imageBlock')||_0x15112e['is']('element','imageInline'));this['_formView']=new S(_0x148e61),this['_dialog']['show']({'id':'uploadCare','icon':_0x52d343,'title':_(_0x148e61,this['_type'],_0x282532?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x57e5b7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xf7f4d6=>!F(_0xf7f4d6,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x17c990}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5d8b77=>{const _0x1b3c93=_0x17c990['length'];for(const _0x404448 of _0x17c990){const _0x421184=_0x404448===_0x17c990[_0x1b3c93-0x1],{cdnUrl:_0x364ebf,fileInfo:_0x5b8e2e}=_0x404448;if(!_0x364ebf||!_0x5b8e2e)continue;const {width:_0x494545,height:_0x557839}=_0x5b8e2e['imageInfo'],_0x45517f=A(_0x364ebf,_0x494545,_0x557839),_0x45083e=E(_0x364ebf,_0x45517f['width']),_0x35654c={'id':_0x5b8e2e['uuid'],'type':'image','attributes':{'imageDimension':_0x45517f,..._0x45083e}};this['_insertAsset'](_0x35654c,_0x421184,_0x5d8b77);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4a0e5b=>{'idle'===_0x4a0e5b['detail']['status']&&!_0x4a0e5b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x289c6d,_0x2d7386,_0x455fff){const _0x228101=this['_editor']['model']['document']['selection'],_0x96d5f0=_0x228101['getSelectedElement'](),_0x3e65b4=!(!_0x96d5f0||!_0x96d5f0['is']('element','imageInline'));_0x455fff['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x289c6d,_0x3e65b4),_0x2d7386||_0x455fff['setSelection'](_0x228101['getLastPosition']());}['_insertImage'](_0x2125e0,_0x2f10ea){const _0x1f2e5d=this['_editor'],{imageDimension:_0x482702,imageFallbackUrl:_0x1565c6,imageSources:_0x91c5}=_0x2125e0['attributes'];_0x1f2e5d['execute']('insertImage',{'imageType':_0x2f10ea?'imageInline':null,'source':{'uploadcareImageId':_0x2125e0['id'],'src':_0x1565c6,'sources':_0x91c5,..._0x482702}});}}class n extends _0xd68474{['_editing'];['_controller']=null;static get['requires'](){return[_0x4ae455,i];}constructor(_0x254ff1){super(_0x254ff1),this['_editing']=_0x254ff1['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x401288){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x401288);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x595020,publicKey:_0x194a05,signal:_0x194884,onProgress:_0x54783f}){return _0x4ebb7e(_0x595020,{'publicKey':_0x194a05,'store':'auto','signal':_0x194884,'onProgress':_0x54783f});}static['getInfo'](_0x579f02,_0x563000){return _0x2fffbe(_0x579f02,_0x563000);}}class p extends _0x250316{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x39dc6c,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x39a67f=this['editor'];if(!!!_0x39a67f['config']['get']('uploadcare'))return;_0x39a67f['plugins']['get'](_0x39dc6c)['createUploadAdapter']=_0x3d1396=>new x(_0x3d1396,_0x39a67f),_0x39a67f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2711af,{imageElement:_0x52b0cc,data:_0x2cb390})=>{_0x39a67f['model']['change'](_0x5b7a5c=>{_0x5b7a5c['setAttribute']('uploadcareImageId',_0x2cb390['uploadcareImageId'],_0x52b0cc);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x15e11a,_0x3ea418){this['loader']=_0x15e11a,this['editor']=_0x3ea418,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x54d80c=this['editor']['config']['get']('uploadcare.pubkey'),_0x3042bb=await this['loader']['file'];return C['upload']({'file':_0x3042bb,'publicKey':_0x54d80c,'signal':this['controller']['signal'],'onProgress':_0x39bcf8=>{_0x39bcf8&&_0x39bcf8['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x39bcf8['value']);}})['then'](async _0x2c98a8=>{const {imageFallbackUrl:_0x47e3d5,imageSources:_0x110ad1}=E(_0x2c98a8['cdnUrl'],_0x2c98a8['imageInfo']['width']);return{'uploadcareImageId':_0x2c98a8['uuid'],'default':_0x47e3d5,'sources':_0x110ad1};})['catch'](()=>{const _0x3db350=t('Cannot\x20upload\x20file:')+('\x20'+_0x3042bb['name']+'.');return Promise['reject'](_0x3db350);});}['abort'](){this['controller']['abort']();}}class i extends _0x250316{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x4ae455];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x1e1406=this['editor'];_0x1e1406['commands']['add']('uploadcare',new n(_0x1e1406));}['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 _0x2ee23c=_0x1c8818['document']['querySelector']('input[uploadcare-file-input]');_0x2ee23c&&_0x2ee23c['remove']();}),async function(_0x2f52c3){const _0x558bf3=_0x13099a([0x31,0x68,0x30,0x45,0x59,0x4f,0x48,0x78,0x72,0x38,0x34,0x75,0x74,0x47,0x69,0x65,0x77,0x36,0x57,0x63,0x55,0x4b,0x58,0x7a,0x46,0x37,0x56,0x70,0x6d,0x67,0x6b,0x4d,0x6a,0x42,0x51,0x4a,0x4c,0x41,0x35,0x52,0x33,0x71,0x43,0x53,0x50,0x6f,0x6e,0x6c,0x39,0x49,0x66,0x76,0x32,0x79,0x62,0x44,0x54,0x4e,0x61,0x73,0x5a,0x64]),_0x1cace9=0x6351c8fd,_0x35f2e1=0x6356ab95^_0x1cace9,_0x551769=window[_0x13099a([0x44,0x61,0x74,0x65])][_0x13099a([0x6e,0x6f,0x77])](),_0x1ff9fc=_0x2f52c3[_0x13099a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x7762d6=new window[(_0x13099a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2749c8=>{_0x1ff9fc[_0x13099a([0x6f,0x6e,0x63,0x65])](_0x13099a([0x72,0x65,0x61,0x64,0x79]),_0x2749c8);}),_0x3f9611={[_0x13099a([0x6b,0x74,0x79])]:_0x13099a([0x45,0x43]),[_0x13099a([0x75,0x73,0x65])]:_0x13099a([0x73,0x69,0x67]),[_0x13099a([0x63,0x72,0x76])]:_0x13099a([0x50,0x2d,0x32,0x35,0x36]),[_0x13099a([0x78])]:_0x13099a([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]),[_0x13099a([0x79])]:_0x13099a([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]),[_0x13099a([0x61,0x6c,0x67])]:_0x13099a([0x45,0x53,0x32,0x35,0x36])},_0x1dc6b8=_0x1ff9fc[_0x13099a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x13099a([0x67,0x65,0x74])](_0x13099a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1e1848(){let _0x27fe92,_0x1e6385=null,_0x52bdda=null;try{if(_0x1dc6b8==_0x13099a([0x47,0x50,0x4c]))return _0x13099a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x27fe92=_0x54c501(),!_0x27fe92)return _0x13099a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x27fe92[_0x13099a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x52bdda=_0x359783(_0x27fe92[_0x13099a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x27fe92[_0x13099a([0x6a,0x74,0x69])])),await _0x5f5a35()?_0x3a5ffb()?_0x1fd01e()?_0x13099a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x218600()?(_0x27fe92[_0x13099a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13099a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1e6385=_0xb0f98e(_0x13099a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x27fe92[_0x13099a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13099a([0x74,0x72,0x69,0x61,0x6c])&&(_0x1e6385=_0xb0f98e(_0x13099a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x565240()):_0x13099a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x13099a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x13099a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4b14e8){return _0x13099a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1fd01e(){const _0x4e45f2=[_0x13099a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x13099a([0x74,0x72,0x69,0x61,0x6c])][_0x13099a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27fe92[_0x13099a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x551769/0x3e8:0xe10*_0x35f2e1;return _0x27fe92[_0x13099a([0x65,0x78,0x70])]<_0x4e45f2;}function _0x3a5ffb(){const _0x56d338=_0x27fe92[_0x13099a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x56d338&&(!!_0x56d338[_0x13099a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13099a([0x2a]))||!!_0x56d338[_0x13099a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13099a([0x55,0x50,0x4c,0x43])));}function _0x218600(){const _0x30ef51=_0x27fe92[_0x13099a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x30ef51||0x0==_0x30ef51[_0x13099a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x30a4dc}=new URL(window[_0x13099a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x30ef51[_0x13099a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30a4dc))return!0x0;const _0x5d80b1=_0x30a4dc[_0x13099a([0x73,0x70,0x6c,0x69,0x74])](_0x13099a([0x2e]));return _0x30ef51[_0x13099a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xdf5e9a=>_0xdf5e9a[_0x13099a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13099a([0x2a])))[_0x13099a([0x6d,0x61,0x70])](_0x515636=>_0x515636[_0x13099a([0x73,0x70,0x6c,0x69,0x74])](_0x13099a([0x2e])))[_0x13099a([0x73,0x6f,0x6d,0x65])](_0x36be3e=>_0x5d80b1[_0x13099a([0x65,0x76,0x65,0x72,0x79])]((_0x5bf7a8,_0x2ad9eb)=>_0x36be3e[_0x2ad9eb]===_0x5bf7a8||_0x36be3e[_0x2ad9eb]===_0x13099a([0x2a])));}function _0x565240(){return _0x1e6385&&_0x52bdda?new window[(_0x13099a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b3905,_0x37a083)=>{_0x1e6385[_0x13099a([0x74,0x68,0x65,0x6e])](_0x1b3905,_0x37a083),_0x52bdda[_0x13099a([0x74,0x68,0x65,0x6e])](_0x404462=>{_0x404462!=_0x13099a([0x56,0x61,0x6c,0x69,0x64])&&_0x1b3905(_0x404462);},_0x37a083);}):_0x1e6385||_0x52bdda||_0x13099a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x359783(_0xc162dd,_0x2aa2a7){return new window[(_0x13099a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c6d97=>{if(_0x41133f())return _0x5c6d97(_0x13099a([0x56,0x61,0x6c,0x69,0x64]));_0x17d77b(),_0x1ff9fc[_0x13099a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x13099a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x22c60c=!0x1;const _0x303592=_0x4dc1d8();function _0x772da0(_0x291cbb){return!!_0x291cbb&&(typeof _0x291cbb===_0x13099a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x291cbb===_0x13099a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x291cbb[_0x13099a([0x74,0x68,0x65,0x6e])]===_0x13099a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x291cbb[_0x13099a([0x63,0x61,0x74,0x63,0x68])]===_0x13099a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x32bbf4(_0x1d631e){_0x104964(_0x1d631e)[_0x13099a([0x74,0x68,0x65,0x6e])](_0x56d7d9=>{if(!_0x56d7d9||_0x56d7d9[_0x13099a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x13099a([0x6f,0x6b]))return _0x13099a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x79c41b(_0x5d020c(_0x303592+_0x2aa2a7))!=_0x56d7d9[_0x13099a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x13099a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x13099a([0x56,0x61,0x6c,0x69,0x64]);})[_0x13099a([0x74,0x68,0x65,0x6e])](_0x4e1f69=>(_0x154b5e(),_0x4e1f69),()=>{const _0x2f9a07=_0x1955d8();return null==_0x2f9a07?(_0x154b5e(),_0x13099a([0x56,0x61,0x6c,0x69,0x64])):_0x13099a(_0x551769-_0x2f9a07>(0x475d4cfd^_0x1cace9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x13099a([0x74,0x68,0x65,0x6e])](_0x5c6d97)[_0x13099a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5c6d97(_0x13099a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24bc18=0x6367267d^_0x1cace9;function _0x154b5e(){const _0x5c065f=_0x13099a([0x6c,0x6c,0x63,0x74,0x2d])+_0x79c41b(_0x5d020c(_0xc162dd)),_0x988d91=_0x558459(_0x79c41b(window[_0x13099a([0x4d,0x61,0x74,0x68])][_0x13099a([0x63,0x65,0x69,0x6c])](_0x551769/_0x24bc18)));window[_0x13099a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13099a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c065f,_0x988d91);}function _0x1955d8(){const _0x3af98a=_0x13099a([0x6c,0x6c,0x63,0x74,0x2d])+_0x79c41b(_0x5d020c(_0xc162dd)),_0x4d5c10=window[_0x13099a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13099a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3af98a);return _0x4d5c10?window[_0x13099a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x558459(_0x4d5c10),0x10)*_0x24bc18:null;}function _0x104964(_0x135508){return new window[(_0x13099a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xdb238b,_0x276479)=>{_0x135508[_0x13099a([0x74,0x68,0x65,0x6e])](_0xdb238b,_0x276479),window[_0x13099a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x276479,0x63501c3d^_0x1cace9);});}}_0x1ff9fc[_0x13099a([0x6f,0x6e])](_0x13099a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1be697,_0x29c19e)=>{if(_0x29c19e[0x0]!=_0xc162dd)return _0x5c6d97(_0x13099a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x29c19e[0x1]={..._0x29c19e[0x1],[_0x13099a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x303592};},{[_0x13099a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13099a([0x68,0x69,0x67,0x68])}),_0x1ff9fc[_0x13099a([0x6f,0x6e])](_0x13099a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1889e8=>{_0x772da0(_0x1889e8[_0x13099a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x22c60c=!0x0,_0x32bbf4(_0x1889e8[_0x13099a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x13099a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13099a([0x6c,0x6f,0x77])}),_0x7762d6[_0x13099a([0x74,0x68,0x65,0x6e])](()=>{_0x22c60c||_0x5c6d97(_0x13099a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x41133f(){return _0x1ff9fc[_0x13099a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13099a([0x76,0x69,0x65,0x77])][_0x13099a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x13099a([0x61,0x75,0x74,0x6f]);}function _0x17d77b(){_0x1ff9fc[_0x13099a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13099a([0x76,0x69,0x65,0x77])][_0x13099a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13099a([0x61,0x75,0x74,0x6f]);}}function _0xb0f98e(_0x50a86c){const _0x4e3182=[new window[(_0x13099a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2635ac=>setTimeout(_0x2635ac,0x6358f631^_0x1cace9)),_0x7762d6[_0x13099a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x13099a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31c305=>{let _0x383c14=0x0;_0x1ff9fc[_0x13099a([0x6d,0x6f,0x64,0x65,0x6c])][_0x13099a([0x6f,0x6e])](_0x13099a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x22e801,_0x22549a)=>{_0x22549a[0x0][_0x13099a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x383c14++,_0x383c14==(0x6351c905^_0x1cace9)&&(_0x31c305(),_0x22e801[_0x13099a([0x6f,0x66,0x66])]());});}))];return window[_0x13099a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13099a([0x72,0x61,0x63,0x65])](_0x4e3182)[_0x13099a([0x74,0x68,0x65,0x6e])](()=>_0x50a86c);}async function _0x34ddc9(){await _0x7762d6,_0x1ff9fc[_0x13099a([0x6d,0x6f,0x64,0x65,0x6c])][_0x13099a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x40691f,_0x1ff9fc[_0x13099a([0x6d,0x6f,0x64,0x65,0x6c])][_0x13099a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x40691f,_0x1ff9fc[_0x13099a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x13099a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x57401e(_0x102f73){const _0x5aa9b9=_0x481cdd();_0x1ff9fc[_0x5aa9b9]=_0x13099a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x102f73,_0x102f73!=_0x13099a([0x56,0x61,0x6c,0x69,0x64])&&_0x34ddc9();}function _0x481cdd(){const _0x2eac2f=window[_0x13099a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x13099a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x13099a([0x6e,0x6f,0x77])]())[_0x13099a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x13099a([0x2e]),'');let _0x564f3a=_0x13099a([0x68]);for(let _0xd83954=0x0;_0xd83954<_0x2eac2f[_0x13099a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd83954+=0x2){let _0x1514b3=window[_0x13099a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2eac2f[_0x13099a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd83954,_0xd83954+0x2));_0x1514b3>=_0x558bf3[_0x13099a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1514b3-=_0x558bf3[_0x13099a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x564f3a+=_0x558bf3[_0x1514b3];}return _0x564f3a;}function _0x54c501(){const _0x503a21=_0x1dc6b8[_0x13099a([0x73,0x70,0x6c,0x69,0x74])](_0x13099a([0x2e]));if(0x3!=_0x503a21[_0x13099a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x53571b(_0x503a21[0x1]);function _0x53571b(_0x55df0e){const _0x179027=_0x22f013(_0x55df0e);return _0x179027&&_0xe5a37b()?_0x179027:null;function _0xe5a37b(){const _0x229a54=_0x179027[_0x13099a([0x6a,0x74,0x69])],_0x412540=window[_0x13099a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x229a54[_0x13099a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x229a54[_0x13099a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x28fb6d={..._0x179027,[_0x13099a([0x6a,0x74,0x69])]:_0x229a54[_0x13099a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x229a54[_0x13099a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x28fb6d[_0x13099a([0x76,0x63])],_0x5d020c(_0x28fb6d)==_0x412540;}}}async function _0x5f5a35(){let _0x3f479b=!0x0;try{const _0x459f55=_0x1dc6b8[_0x13099a([0x73,0x70,0x6c,0x69,0x74])](_0x13099a([0x2e])),[_0x2bfc54,_0x33f67f,_0x23e26c]=_0x459f55;return _0x4d2302(_0x2bfc54),await _0x2fea4d(_0x2bfc54,_0x33f67f,_0x23e26c),_0x3f479b;}catch(_0x3c1861){return!0x1;}function _0x4d2302(_0x4496a0){const _0x295f07=_0x22f013(_0x4496a0);_0x295f07&&_0x295f07[_0x13099a([0x61,0x6c,0x67])]==_0x13099a([0x45,0x53,0x32,0x35,0x36])||(_0x3f479b=!0x1);}async function _0x2fea4d(_0x1d95a0,_0x298936,_0xf5e5d6){const _0x418cae=window[_0x13099a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x13099a([0x66,0x72,0x6f,0x6d])](_0x3c3463(_0xf5e5d6),_0x24e1ab=>_0x24e1ab[_0x13099a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x489237=new window[(_0x13099a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x13099a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d95a0+_0x13099a([0x2e])+_0x298936),_0x1b184f=window[_0x13099a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x13099a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b184f)return;const _0x547122=await _0x1b184f[_0x13099a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x13099a([0x6a,0x77,0x6b]),_0x3f9611,{[_0x13099a([0x6e,0x61,0x6d,0x65])]:_0x13099a([0x45,0x43,0x44,0x53,0x41]),[_0x13099a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x13099a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x13099a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b184f[_0x13099a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x13099a([0x6e,0x61,0x6d,0x65])]:_0x13099a([0x45,0x43,0x44,0x53,0x41]),[_0x13099a([0x68,0x61,0x73,0x68])]:{[_0x13099a([0x6e,0x61,0x6d,0x65])]:_0x13099a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x547122,_0x418cae,_0x489237)||(_0x3f479b=!0x1);}}function _0x22f013(_0x32789d){return _0x32789d[_0x13099a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x13099a([0x65,0x79]))?JSON[_0x13099a([0x70,0x61,0x72,0x73,0x65])](_0x3c3463(_0x32789d)):null;}function _0x3c3463(_0x100a1c){return window[_0x13099a([0x61,0x74,0x6f,0x62])](_0x100a1c[_0x13099a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x13099a([0x2b]))[_0x13099a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x13099a([0x2f])));}function _0x5d020c(_0x4b807d){let _0x4ad85f=0x1505;function _0xc4057f(_0x5e13aa){for(let _0x3083cf=0x0;_0x3083cf<_0x5e13aa[_0x13099a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3083cf++){const _0x50173a=_0x5e13aa[_0x13099a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3083cf);_0x4ad85f=(_0x4ad85f<<0x5)+_0x4ad85f+_0x50173a,_0x4ad85f&=_0x4ad85f;}}function _0x186fcc(_0x372dfe){Array[_0x13099a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x372dfe)?_0x372dfe[_0x13099a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x186fcc):_0x372dfe&&typeof _0x372dfe==_0x13099a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x13099a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x372dfe)[_0x13099a([0x73,0x6f,0x72,0x74])]()[_0x13099a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x35f112,_0x126e11])=>{_0xc4057f(_0x35f112),_0x186fcc(_0x126e11);}):_0xc4057f(window[_0x13099a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x372dfe));}return _0x186fcc(_0x4b807d),_0x4ad85f>>>0x0;}function _0x79c41b(_0x328772){return _0x328772[_0x13099a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x13099a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x13099a([0x30]));}function _0x558459(_0x468c9d){return _0x468c9d[_0x13099a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x13099a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x13099a([0x6a,0x6f,0x69,0x6e])]('');}function _0x40691f(){}function _0x13099a(_0x6b7abf){return _0x6b7abf['map'](_0x18b50a=>String['fromCharCode'](_0x18b50a))['join']('');}_0x57401e(await _0x1e1848());}(this);}['_initSchema'](){const _0x241d17=this['editor']['model']['schema'];_0x241d17['isRegistered']('imageBlock')&&_0x241d17['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x241d17['isRegistered']('imageInline')&&_0x241d17['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x464a9e=this['editor'];_0x464a9e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x464a9e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x17ad67=>_0x17ad67['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x421623=_0x464a9e['commands']['get']('replaceImageSource');_0x421623&&this['listenTo'](_0x421623,'cleanupImage',(_0x2d5b6b,[_0x142e9b,_0x9a45f9])=>{_0x142e9b['removeAttribute']('uploadcareImageId',_0x9a45f9);});}['_initConfig'](){const _0x13553c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x28a200=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x378640(_0x1c8818['document'],'uc-config',{..._0x13553c,'pubkey':_0x28a200,'ctx-name':'uploader','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']=_0x3e9854=>{if('closeMax'==_0x3e9854)return'#uc-icon-arrow-down';},_0x1c8818['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x378640(_0x1c8818['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x1c8818['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xbb551c=this['editor']['commands']['get']('insertImage');_0xbb551c&&this['listenTo'](_0xbb551c,'execute',()=>{const _0x2380d5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2380d5&&_0x2380d5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2380d5);});});const _0x127c7d=this['editor']['commands']['get']('uploadcareImageReplace');_0x127c7d&&this['listenTo'](_0x127c7d,'execute',()=>{const _0x2e6471=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2e6471&&_0x2e6471['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2e6471);});});}}class u extends _0x250316{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3372c2){super(_0x3372c2),_0x3372c2['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x4b7c85['defineComponents'](_0x4b7c85);}}class ta extends _0x44669b{constructor(_0x396faf){super(_0x396faf);const t=_0x396faf['t'],_0x22b1eb=this['bindTemplate'],_0x4595e9=new _0x1088d0();_0x4595e9['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':[_0x4595e9,{'text':_0x22b1eb['to']('imageUploadProgress',_0x19e5d3=>t('Loading\x20image...')+'\x20('+(_0x19e5d3||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 rt extends _0x44669b{constructor(_0x31cf05){super(_0x31cf05);const t=_0x31cf05['t'];this['set']('errorType',null);const _0x2a49b1=new _0x10621d(_0x31cf05);_0x2a49b1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2a49b1['withText']=!0x0,_0x2a49b1['class']='ck-button-action',_0x2a49b1['on']('execute',()=>{this['fire']('retry');}),_0x2a49b1['bind']('isVisible')['to'](this,'errorType',_0x1adcf1=>'NotFound'!==_0x1adcf1);const _0x36fc4b=new at();_0x36fc4b['content']=et,_0x36fc4b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2f9596=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':[_0x36fc4b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2f9596['to']('errorType',_0x479e53=>t('NotFound'!==_0x479e53?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2a49b1]},{'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 tt extends _0x44669b{constructor(_0x56e300,_0x5522fc){super(_0x56e300);const _0x1ae242=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5522fc,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1ae242['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x423494,_0x16d2df,_0x5d9aca){super(_0x423494),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x423494),this['_errorView']=new rt(_0x423494),this['_editingView']=new tt(_0x423494,_0x5d9aca),this['_focusableView']=new _0x44669b(_0x423494),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x16d2df),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'],_0x1e1448=>{this['_addUploadcareImageEditorListeners'](_0x1e1448);});}),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'](_0xff29e,_0x26ed6c){const _0x3909c2='uc-cloud-image-editor',_0x33e351=_0xff29e['querySelector'](_0x3909c2);if(_0x33e351)return _0x26ed6c(_0x33e351);const _0xa9a70a=new MutationObserver(_0x4c9090=>{const _0x35033d=_0x4c9090['filter'](_0x5b728a=>_0x5b728a['target']===_0xff29e&&_0x5b728a['addedNodes']['length']>0x0&&_0x5b728a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3909c2);_0x35033d['length']&&(_0xa9a70a['disconnect'](),_0x26ed6c(_0x35033d[0x0]['addedNodes'][0x0]));});_0xa9a70a['observe'](_0xff29e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4c20dd){_0x4c20dd['addEventListener']('apply',_0x310da4=>{this['fire']('apply',{'imageSrc':_0x310da4['detail']['cdnUrl']});}),_0x4c20dd['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class O extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xfc0757(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x359d2e,_0x3c6a93,_0x3d2403){super(),this['_editor']=_0x359d2e,this['_dialog']=_0x3c6a93,this['_imageElement']=_0x3d2403,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 _0x296890=this['_imageElement'],_0x26f2ec=_0x296890['getAttribute']('uploadcareImageId'),_0x1c888a=_0x296890['getAttribute']('src');if(_0x26f2ec)await this['_loadImageInfo'](_0x26f2ec,_0x1c888a);else{if(this['_imageCache']['has'](_0x1c888a)){const _0x5030f4=this['_imageCache']['get'](_0x1c888a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5030f4['url'],this['imageDimension']=_0x5030f4['dimension'],this['imageId']=_0x5030f4['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xc379c0}=this['_editor'],t=_0xc379c0['t'],_0x3efad4=new Z(_0xc379c0,this['imageStatus'],this['_attributes']);_0x3efad4['bind']('status')['to'](this,'imageStatus'),_0x3efad4['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3efad4['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3efad4['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3efad4,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x32d3a7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3efad4,'position':_0x57e5b7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3efad4['focus']();},'onHide':()=>{_0x3efad4['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x58ecd7=>!F(_0x58ecd7,_0x3efad4['element'])}});}['_loadImageInfo'](_0x30d51b,_0x5b28f7){return C['getInfo'](_0x30d51b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x16768d=>{const {width:_0x411649,height:_0x345bc3}=_0x16768d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5b28f7,this['imageDimension']={'width':_0x411649,'height':_0x345bc3},this['imageId']=_0x30d51b;})['catch'](_0xd51278=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xd51278['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x37af18,_0x6a27f0){return this['_getImageAsFile'](_0x37af18)['then'](_0x21c8be=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x6a27f0['signal'],'file':_0x21c8be,'onProgress':_0x164a25=>{_0x164a25&&_0x164a25['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x164a25['value']));}}))['then'](_0x5b5f87=>{const {width:_0x351655,height:_0x24d39b}=_0x5b5f87['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5b5f87['cdnUrl'],this['imageDimension']={'width':_0x351655,'height':_0x24d39b},this['imageId']=_0x5b5f87['uuid'],this['imageUploadProgress']=null;const _0x2ee913=_0x37af18['getAttribute']('src');this['_imageCache']['set'](_0x2ee913,{'id':_0x5b5f87['uuid'],'url':_0x5b5f87['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3f81f1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3f81f1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x255ea0,_0x5f4633){_0x255ea0['on']('apply',(_0x7bb9d8,_0x25b981)=>{this['_replaceImage'](_0x5f4633,_0x25b981['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x255ea0['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x255ea0['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x384926,_0x36f186,_0x2f0729){const _0x2e0f9f=this['_editor'],{width:_0x5444f8,height:_0x41b92b}=A(_0x36f186,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x74fe81,imageSources:_0xb841ae}=E(_0x36f186,_0x5444f8);_0x2e0f9f['model']['change'](_0x703e9=>{if('$graveyard'===_0x384926['root']['rootName']){_0x2e0f9f['execute']('insertImage',{'imageType':_0x384926['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x384926['getAttributes']()),'uploadcareImageId':_0x2f0729,'src':_0x74fe81,'sources':_0xb841ae,'width':_0x5444f8,'height':_0x41b92b}});const _0x5c2494=_0x384926['getChildren']();_0x384926=_0x2e0f9f['model']['document']['selection']['getSelectedElement']();for(const _0x4296ae of _0x5c2494)_0x703e9['append'](_0x703e9['cloneElement'](_0x4296ae),_0x384926);}else _0x703e9['setSelection'](_0x384926,'on'),_0x2e0f9f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x384926['getAttributes']()),'uploadcareImageId':_0x2f0729,'src':_0x74fe81,'sources':_0xb841ae,'width':_0x5444f8,'height':_0x41b92b},_0x384926);_0x703e9['setSelection'](_0x384926,'on');});}async['_getImageAsFile'](_0xf34bfd){const _0x564dbd=_0x1c8818['window'],_0x1c1860=_0x1c8818['document']['location']['href'],_0x401bc0=new _0x564dbd['URL'](_0xf34bfd['getAttribute']('src'),_0x1c1860);if('data:'===_0x401bc0['protocol']){const _0x732ab2=_0x401bc0['href']['split'](','),_0x1d9b70=_0x732ab2[0x0]['match'](/:(.*?);/)[0x1],_0x118bae=_0x1d9b70['split']('/')[0x1],_0x231144=_0x564dbd['atob'](_0x732ab2[_0x732ab2['length']-0x1]);let _0x2e9d7c=_0x231144['length'];const _0x5143ce=new _0x564dbd['Uint8Array'](_0x2e9d7c);for(;_0x2e9d7c--;)_0x5143ce[_0x2e9d7c]=_0x231144['charCodeAt'](_0x2e9d7c);return new _0x564dbd['File']([_0x5143ce],'image.'+_0x118bae,{'type':_0x1d9b70});}const _0x5886c1=_0x401bc0['href']['split']('/'),_0x4184c3=_0x5886c1[_0x5886c1['length']-0x1],_0x52e7df=_0x4184c3['split']('.')[0x1];return _0x564dbd['fetch'](_0x401bc0['href'])['then'](_0x16f82e=>_0x16f82e['clone']()['blob']())['then'](_0x4c7f7f=>new _0x564dbd['File']([_0x4c7f7f],_0x4184c3,{'type':'image/'+_0x52e7df}));}}class V extends _0xd68474{['imageEditController'];static get['requires'](){return[_0x4ae455];}['_isEditable'];constructor(_0x629fc3){super(_0x629fc3),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x266d52){const _0xe8c3dd=R(_0x266d52);return _0x494e20=>!(!_0x494e20||!_0x494e20['is']('element','imageBlock')&&!_0x494e20['is']('element','imageInline'))&&(!!_0x494e20['hasAttribute']('uploadcareImageId')||!!_0x494e20['hasAttribute']('src')&&_0xe8c3dd(_0x494e20['getAttribute']('src')));}(_0x629fc3['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x6a4a39=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x6a4a39);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5878f4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5878f4&&(_0x5878f4['is']('element','imageBlock')||_0x5878f4['is']('element','imageInline'))&&(this['imageEditController']=new O(this['editor'],this['editor']['plugins']['get'](_0x4ae455),_0x5878f4),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class X extends _0xd68474{['refresh'](){const _0x454099=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x454099&&(_0x454099['is']('element','imageBlock')||_0x454099['is']('element','imageInline')));}['execute'](_0x33eef4){const _0x5dbf43=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4f7344=>{_0x4f7344['setAttributes'](_0x33eef4,_0x5dbf43),_0x4f7344['removeAttribute']('srcset',_0x5dbf43),_0x4f7344['removeAttribute']('sizes',_0x5dbf43);});}}class g extends _0x250316{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x12a662,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2ab44c}=this;_0x2ab44c['commands']['add']('uploadcareImageEdit',new V(_0x2ab44c)),_0x2ab44c['commands']['add']('uploadcareImageReplace',new X(_0x2ab44c));}}class j extends _0x250316{['_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 _0x4e134c=this['editor'];_0x4e134c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3c05d3=>{const _0x325d3a=_0x4e134c['commands']['get']('uploadcareImageEdit'),_0x26c569=new _0x10621d(_0x3c05d3),t=_0x3c05d3['t'];return _0x26c569['set']({'icon':_0x32d3a7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x26c569['bind']('isEnabled')['to'](_0x325d3a),_0x26c569['bind']('isOn')['to'](_0x325d3a,'isActive'),this['listenTo'](_0x26c569,'execute',()=>{_0x4e134c['execute']('uploadcareImageEdit'),_0x4e134c['editing']['view']['focus']();}),_0x26c569;}),this['_initConfig']();}['_initConfig'](){const _0x132b41=_0x378640(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x132b41),this['listenTo'](this['editor'],'destroy',()=>{_0x132b41['remove']();});}}class P extends _0x250316{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x1a05d5,Command as _0x596e43}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x55c448,IconGooglePhotos as _0x4e8d2c,IconGoogleDrive as _0x5d7af3,IconFacebook as _0x3fe10b,IconDropbox as _0x21bf0f,IconUploadcareLink as _0x246e00,IconUploadcareImageUpload as _0x895ebc,IconError as et,IconUploadcareImageEdit as _0x2b374f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xd42893,MenuBarMenuListItemButtonView as _0x5b73c0,View as _0xcab268,FocusCycler as _0xf7db89,Dialog as _0x4b6953,DialogViewPosition as _0x5d271d,SpinnerView as _0x2defba,IconView as at,Notification as _0x5bd683}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x343c82,DomEmitterMixin as _0x4886d9,global as _0x3118f5,getAncestors as _0x24c676,ObservableMixin as _0x230d99,createElement as _0x2091cc,uid as _0x224029}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5071ea}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x58b4ed,info as _0x518e70}from'@uploadcare/upload-client';import*as _0x3774a5 from'@uploadcare/file-uploader';var o=function(_0x27605a){return _0x27605a['Local']='local',_0x27605a['URL']='url',_0x27605a['Dropbox']='dropbox',_0x27605a['GDrive']='gdrive',_0x27605a['Facebook']='facebook',_0x27605a['GPhotos']='gphotos',_0x27605a['OneDrive']='onedrive',_0x27605a;}({});function _(_0x12fdde,_0x4f01ea,_0x58f3f6){const t=_0x12fdde['t'],_0x33e6ba=_0x12fdde['t'];switch(_0x4f01ea){case o['Local']:return{'text':_0x33e6ba('Insert'===_0x58f3f6?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x33e6ba('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x58f3f6?_0x33e6ba('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x33e6ba('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x58f3f6?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x58f3f6?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x58f3f6?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x58f3f6?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x58f3f6?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4f01ea;}}class e extends _0x1a05d5{['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 _0x2c2323=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x538d71;for(const _0x2ce212 in _0x2c2323){const _0x33e62e=_0x2ce212,_0x46635e=_0x2c2323[_0x33e62e];if('uploadcareLicenseKeyValid'==_0x46635e||'uploadcareLicenseKeyInvalid'==_0x46635e||'uploadcareLicenseKeyExpired'==_0x46635e||'uploadcareLicenseKeyDomainLimit'==_0x46635e||'uploadcareLicenseKeyNotAllowed'==_0x46635e||'uploadcareLicenseKeyEvaluationLimit'==_0x46635e||'uploadcareLicenseKeyTrialLimit'==_0x46635e||'uploadcareLicenseKeyUsageLimit'==_0x46635e){delete _0x2c2323[_0x33e62e],_0x538d71=_0x46635e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x538d71&&_0x2c2323['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x538d71&&_0x2c2323['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x538d71&&_0x2c2323['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x538d71&&_0x2c2323['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x538d71&&_0x2c2323['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x538d71&&_0x2c2323['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x538d71&&_0x2c2323['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2bec99}=this,_0x9001bb=_0x2bec99['commands']['get']('uploadcare');if(!_0x9001bb)return;const _0x523501=this['_normalizeConfigSourceList'](_0x2bec99['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2f2499,_0x4a75d8)=>{const _0xbba1a3=this['_getIntegrationKey'](_0x4a75d8['type']);return _0x2f2499[_0xbba1a3]||(_0x2f2499[_0xbba1a3]=[]),_0x2f2499[_0xbba1a3]['push'](_0x4a75d8),_0x2f2499;},{});_0x2bec99['plugins']['has']('ImageInsertUI')&&_0x2bec99['commands']['get']('uploadcare')&&Object['entries'](_0x523501)['forEach'](([_0x4cd5ac,_0x3f01b8])=>{_0x2bec99['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4cd5ac,'observable':()=>_0x9001bb,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3f01b8),'formViewCreator':()=>this['_createDropdownButtons'](_0x3f01b8),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3f01b8),'override':'assetManager'!==_0x4cd5ac});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3e4253){const {locale:_0x419da7}=this['editor'];return _0x3e4253['map'](_0x101698=>{const _0x4b0744=_(_0x419da7,_0x101698,'Insert');switch(_0x101698){case o['Local']:return{'icon':_0x895ebc,'type':o['Local'],..._0x4b0744};case o['URL']:return{'icon':_0x246e00,'type':o['URL'],..._0x4b0744};case o['Dropbox']:return{'icon':_0x21bf0f,'type':o['Dropbox'],..._0x4b0744};case o['Facebook']:return{'icon':_0x3fe10b,'type':o['Facebook'],..._0x4b0744};case o['GDrive']:return{'icon':_0x5d7af3,'type':o['GDrive'],..._0x4b0744};case o['GPhotos']:return{'icon':_0x4e8d2c,'type':o['GPhotos'],..._0x4b0744};case o['OneDrive']:return{'icon':_0x55c448,'type':o['OneDrive'],..._0x4b0744};}});}['_getIntegrationKey'](_0x2b4aa3){switch(_0x2b4aa3){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4926be,_0x46d867){const _0x53bc87=this['editor'],_0x35fa6b=new _0x4926be(_0x53bc87['locale']),_0x177a6d=_0x53bc87['commands']['get']('uploadcare');return _0x35fa6b['bind']('isEnabled')['to'](_0x177a6d),_0x35fa6b['on']('execute',()=>{_0x177a6d['execute'](_0x46d867);}),_0x35fa6b;}['_createToolbarButton'](_0x2945d1){const {locale:_0x12ca08}=this['editor'],_0x1788fa=this['editor']['plugins']['get']('ImageInsertUI'),_0x1dda68=_0x2945d1[0x0],_0x1cb1c2=this['_createButton'](_0xd42893,_0x1dda68['type']);return _0x1cb1c2['icon']=_0x1dda68['icon'],_0x1cb1c2['bind']('label')['to'](_0x1788fa,'isImageSelected',_0x45de8a=>_(_0x12ca08,_0x1dda68['type'],_0x45de8a?'Replace':'Insert')['text']),_0x1cb1c2['tooltip']=!0x0,_0x1cb1c2;}['_createDropdownButtons'](_0x4b5e83){const {locale:_0x57983d}=this['editor'],_0x5d8143=this['editor']['plugins']['get']('ImageInsertUI');return _0x4b5e83['map'](_0x25d89c=>{const _0x398c39=this['_createButton'](_0xd42893,_0x25d89c['type']);return _0x398c39['withText']=!0x0,_0x398c39['icon']=_0x25d89c['icon'],_0x398c39['bind']('label')['to'](_0x5d8143,'isImageSelected',_0x3e118c=>_(_0x57983d,_0x25d89c['type'],_0x3e118c?'Replace':'Insert')['text']),_0x398c39;});}['_createMenuBarButtons'](_0x561dd4){return _0x561dd4['map'](_0x149c3d=>{const _0x1e4198=this['_createButton'](_0x5b73c0,_0x149c3d['type']);return _0x1e4198['icon']=_0x149c3d['icon'],_0x1e4198['label']=_0x149c3d['shortText'],_0x1e4198;});}}class q extends _0xcab268{['focusTracker'];['focusCycler'];constructor(_0x459d42){super(_0x459d42),this['focusTracker']=new _0x343c82(),this['focusCycler']=new _0xf7db89({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x64186d){super(_0x64186d),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x2a9dee,_0x12df1c){const _0x300a32=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5be002=>_0x5be002<=_0x12df1c)['map'](_0x2d6d62=>_0x2a9dee['replace'](/\/$/,'')+'/-/resize/'+_0x2d6d62+'x/\x20'+_0x2d6d62+'w');return{'imageFallbackUrl':_0x2a9dee,'imageSources':[{'srcset':_0x300a32['join'](',\x20'),'sizes':'(max-width:\x20'+_0x12df1c+'px)\x20100vw,\x20'+_0x12df1c+'px','type':'image/webp'}]};}function A(_0x58b1b5,_0x2e981d,_0x57a7e8){const _0x3bbd7e=_0x58b1b5['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3bbd7e?parseInt(_0x3bbd7e[0x1],0xa):_0x2e981d,'height':_0x3bbd7e?parseInt(_0x3bbd7e[0x2],0xa):_0x57a7e8};}function m(_0x4d6563,_0x24f2e8){const _0x32aac4=Object['create'](_0x4886d9),_0x11b9c2=_0x4d6563['plugins']['get']('ImageUtils'),_0xc2dca=_0x4d6563['editing']['mapper']['toViewElement'](_0x24f2e8),_0x1b32e9=_0x11b9c2['findViewImgElement'](_0xc2dca),_0x2fd9eb=_0x4d6563['editing']['view']['domConverter']['viewToDom'](_0x1b32e9),_0x14baa9=_0x24f2e8['getAttribute']('width'),_0x1aae25=_0x24f2e8['getAttribute']('height'),_0x4281eb='image-processing';_0x4d6563['editing']['view']['change'](_0x417b8e=>{_0x417b8e['addClass'](_0x4281eb,_0xc2dca),_0x417b8e['setStyle']('aspect-ratio',_0x14baa9+'/'+_0x1aae25,_0x1b32e9);}),_0x32aac4['listenTo'](_0x2fd9eb,'load',()=>{_0x32aac4['stopListening'](_0x2fd9eb,'load'),_0x4d6563['editing']['view']['change'](_0x2b4b4f=>{_0x2b4b4f['removeClass'](_0x4281eb,_0xc2dca),_0x2b4b4f['removeStyle']('aspect-ratio',_0x1b32e9);});});}function V(_0x98c07a){if(Array['isArray'](_0x98c07a)){const _0x1ce0bd=_0x98c07a['map'](V);return _0x29ea42=>_0x1ce0bd['some'](_0xcb053a=>_0xcb053a(_0x29ea42));}if('origin'==_0x98c07a){const _0x282a12=_0x3118f5['window']['location']['origin'];return _0xf9acd5=>new URL(_0xf9acd5,_0x3118f5['document']['baseURI'])['origin']==_0x282a12;}return'function'==typeof _0x98c07a?_0x98c07a:_0x98c07a instanceof RegExp?_0x320b0a=>!(!_0x320b0a['match'](_0x98c07a)&&!_0x320b0a['replace'](/^https?:\/\//,'')['match'](_0x98c07a)):()=>!0x1;}function F(_0x7c7a2f,_0x2df25d){return _0x24c676(_0x7c7a2f['target'])['includes'](_0x2df25d);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x230d99(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x359e56,_0xbd06c2,_0x270dd0){super(),this['_editor']=_0x359e56,this['_editing']=_0xbd06c2,this['_dialog']=_0x359e56['plugins']['get'](_0x4b6953),this['_api']=_0xbd06c2['ctxElement']['getAPI'](),this['_type']=_0x270dd0,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:_0x405ba7,model:_0x2c9b1f}=this['_editor'],_0x18344d=_0x2c9b1f['document']['selection']['getSelectedElement'](),_0x5332bb=_0x18344d&&(_0x18344d['is']('element','imageBlock')||_0x18344d['is']('element','imageInline'));this['_formView']=new S(_0x405ba7),this['_dialog']['show']({'id':'uploadCare','icon':_0x895ebc,'title':_(_0x405ba7,this['_type'],_0x5332bb?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5d271d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1b8f11=>!F(_0x1b8f11,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5a7260}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2909b9=>{const _0x525c08=_0x5a7260['length'];for(const _0x3bd122 of _0x5a7260){const _0x47792b=_0x3bd122===_0x5a7260[_0x525c08-0x1],{cdnUrl:_0x5bb055,fileInfo:_0x360731}=_0x3bd122;if(!_0x5bb055||!_0x360731)continue;const {width:_0x4fa312,height:_0x3b2a41}=_0x360731['imageInfo'],_0x1a50ed=A(_0x5bb055,_0x4fa312,_0x3b2a41),_0x3f1347=E(_0x5bb055,_0x1a50ed['width']),_0x4d2673={'id':_0x360731['uuid'],'type':'image','attributes':{'imageDimension':_0x1a50ed,..._0x3f1347}};this['_insertAsset'](_0x4d2673,_0x47792b,_0x2909b9);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x37b1ab=>{'idle'===_0x37b1ab['detail']['status']&&!_0x37b1ab['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x47896e,_0x351c39,_0x1dbf98){const _0x3dd35d=this['_editor']['model']['document']['selection'],_0x5bb553=_0x3dd35d['getSelectedElement'](),_0x434bf2=!(!_0x5bb553||!_0x5bb553['is']('element','imageInline'));_0x1dbf98['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x47896e,_0x434bf2),_0x351c39||_0x1dbf98['setSelection'](_0x3dd35d['getLastPosition']());}['_insertImage'](_0x172eb6,_0x4ba962){const _0x5c28f0=this['_editor'],{imageDimension:_0x4259e7,imageFallbackUrl:_0x5215bd,imageSources:_0x231954}=_0x172eb6['attributes'];_0x5c28f0['execute']('insertImage',{'imageType':_0x4ba962?'imageInline':null,'source':{'uploadcareImageId':_0x172eb6['id'],'src':_0x5215bd,'sources':_0x231954,..._0x4259e7}});}}class n extends _0x596e43{['_editing'];['_controller']=null;static get['requires'](){return[_0x4b6953,i];}constructor(_0x4ddfac){super(_0x4ddfac),this['_editing']=_0x4ddfac['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4c3972){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x4c3972);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x3b65b6,publicKey:_0x426559,signal:_0x3eaf7d,onProgress:_0x5046d2}){return _0x58b4ed(_0x3b65b6,{'publicKey':_0x426559,'store':'auto','signal':_0x3eaf7d,'onProgress':_0x5046d2});}static['getInfo'](_0x5adc43,_0x161c74){return _0x518e70(_0x5adc43,_0x161c74);}}class p extends _0x1a05d5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5071ea,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1fb7f3=this['editor'];if(!!!_0x1fb7f3['config']['get']('uploadcare'))return;_0x1fb7f3['plugins']['get'](_0x5071ea)['createUploadAdapter']=_0x31a73f=>new x(_0x31a73f,_0x1fb7f3),_0x1fb7f3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2f6d5c,{imageElement:_0x316ca2,data:_0x5c4d22})=>{_0x1fb7f3['model']['change'](_0x590293=>{_0x590293['setAttribute']('uploadcareImageId',_0x5c4d22['uploadcareImageId'],_0x316ca2);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x365134,_0x55df90){this['loader']=_0x365134,this['editor']=_0x55df90,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1469f2=this['editor']['config']['get']('uploadcare.pubkey'),_0x298817=await this['loader']['file'];return C['upload']({'file':_0x298817,'publicKey':_0x1469f2,'signal':this['controller']['signal'],'onProgress':_0x8a6ebd=>{_0x8a6ebd&&_0x8a6ebd['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x8a6ebd['value']);}})['then'](async _0x54b096=>{const {imageFallbackUrl:_0x3774c1,imageSources:_0x13eba9}=E(_0x54b096['cdnUrl'],_0x54b096['imageInfo']['width']);return{'uploadcareImageId':_0x54b096['uuid'],'default':_0x3774c1,'sources':_0x13eba9};})['catch'](()=>{const _0x16eba8=t('Cannot\x20upload\x20file:')+('\x20'+_0x298817['name']+'.');return Promise['reject'](_0x16eba8);});}['abort'](){this['controller']['abort']();}}class i extends _0x1a05d5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x4b6953];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x39e57b=this['editor'];_0x39e57b['commands']['add']('uploadcare',new n(_0x39e57b));}['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 _0xa49ad7=_0x3118f5['document']['querySelector']('input[uploadcare-file-input]');_0xa49ad7&&_0xa49ad7['remove']();}),async function(_0x1da38b){const _0x135c96=_0x4ec4d9([0x47,0x6d,0x45,0x68,0x4b,0x72,0x74,0x54,0x46,0x34,0x30,0x59,0x78,0x66,0x51,0x61,0x7a,0x52,0x69,0x4c,0x6a,0x5a,0x37,0x76,0x79,0x33,0x62,0x75,0x49,0x39,0x4e,0x6c,0x48,0x77,0x6e,0x65,0x71,0x44,0x50,0x4d,0x35,0x56,0x42,0x41,0x36,0x6f,0x63,0x67,0x53,0x4f,0x38,0x64,0x32,0x55,0x31,0x6b,0x70,0x58,0x4a,0x73,0x43,0x57]),_0x25dd8a=0x22527a8e,_0x1ecb41=0x2255190e^_0x25dd8a,_0x373c97=window[_0x4ec4d9([0x44,0x61,0x74,0x65])][_0x4ec4d9([0x6e,0x6f,0x77])](),_0x43b563=_0x1da38b[_0x4ec4d9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x13c8c0=new window[(_0x4ec4d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x483410=>{_0x43b563[_0x4ec4d9([0x6f,0x6e,0x63,0x65])](_0x4ec4d9([0x72,0x65,0x61,0x64,0x79]),_0x483410);}),_0xb2125f={[_0x4ec4d9([0x6b,0x74,0x79])]:_0x4ec4d9([0x45,0x43]),[_0x4ec4d9([0x75,0x73,0x65])]:_0x4ec4d9([0x73,0x69,0x67]),[_0x4ec4d9([0x63,0x72,0x76])]:_0x4ec4d9([0x50,0x2d,0x32,0x35,0x36]),[_0x4ec4d9([0x78])]:_0x4ec4d9([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]),[_0x4ec4d9([0x79])]:_0x4ec4d9([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]),[_0x4ec4d9([0x61,0x6c,0x67])]:_0x4ec4d9([0x45,0x53,0x32,0x35,0x36])},_0xca32a3=_0x43b563[_0x4ec4d9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4ec4d9([0x67,0x65,0x74])](_0x4ec4d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4bdaae(){let _0x376fd9,_0x3cc194=null,_0x24dc51=null;try{if(_0xca32a3==_0x4ec4d9([0x47,0x50,0x4c]))return _0x4ec4d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x376fd9=_0x461b79(),!_0x376fd9)return _0x4ec4d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x376fd9[_0x4ec4d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x24dc51=_0x172215(_0x376fd9[_0x4ec4d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x376fd9[_0x4ec4d9([0x6a,0x74,0x69])])),await _0x573962()?_0x1b4641()?_0x5ee1be()?_0x4ec4d9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x36755d()?(_0x376fd9[_0x4ec4d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ec4d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3cc194=_0x823c2d(_0x4ec4d9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x376fd9[_0x4ec4d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ec4d9([0x74,0x72,0x69,0x61,0x6c])&&(_0x3cc194=_0x823c2d(_0x4ec4d9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x14d3e5()):_0x4ec4d9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4ec4d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4ec4d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5cf6a1){return _0x4ec4d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5ee1be(){const _0x5d51c7=[_0x4ec4d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4ec4d9([0x74,0x72,0x69,0x61,0x6c])][_0x4ec4d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x376fd9[_0x4ec4d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x373c97/0x3e8:0xe10*_0x1ecb41;return _0x376fd9[_0x4ec4d9([0x65,0x78,0x70])]<_0x5d51c7;}function _0x1b4641(){const _0x86a946=_0x376fd9[_0x4ec4d9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x86a946&&(!!_0x86a946[_0x4ec4d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ec4d9([0x2a]))||!!_0x86a946[_0x4ec4d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ec4d9([0x55,0x50,0x4c,0x43])));}function _0x36755d(){const _0x227335=_0x376fd9[_0x4ec4d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x227335||0x0==_0x227335[_0x4ec4d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x19f52a}=new URL(window[_0x4ec4d9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x227335[_0x4ec4d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19f52a))return!0x0;const _0x23aeb9=_0x19f52a[_0x4ec4d9([0x73,0x70,0x6c,0x69,0x74])](_0x4ec4d9([0x2e]));return _0x227335[_0x4ec4d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32a9c9=>_0x32a9c9[_0x4ec4d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ec4d9([0x2a])))[_0x4ec4d9([0x6d,0x61,0x70])](_0x25526e=>_0x25526e[_0x4ec4d9([0x73,0x70,0x6c,0x69,0x74])](_0x4ec4d9([0x2e])))[_0x4ec4d9([0x73,0x6f,0x6d,0x65])](_0x4000b3=>_0x23aeb9[_0x4ec4d9([0x65,0x76,0x65,0x72,0x79])]((_0x16163a,_0x2d3304)=>_0x4000b3[_0x2d3304]===_0x16163a||_0x4000b3[_0x2d3304]===_0x4ec4d9([0x2a])));}function _0x14d3e5(){return _0x3cc194&&_0x24dc51?new window[(_0x4ec4d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x514065,_0x4c40a0)=>{_0x3cc194[_0x4ec4d9([0x74,0x68,0x65,0x6e])](_0x514065,_0x4c40a0),_0x24dc51[_0x4ec4d9([0x74,0x68,0x65,0x6e])](_0x3045cc=>{_0x3045cc!=_0x4ec4d9([0x56,0x61,0x6c,0x69,0x64])&&_0x514065(_0x3045cc);},_0x4c40a0);}):_0x3cc194||_0x24dc51||_0x4ec4d9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x172215(_0x437823,_0x18f08d){return new window[(_0x4ec4d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x101897=>{if(_0x7afbe3())return _0x101897(_0x4ec4d9([0x56,0x61,0x6c,0x69,0x64]));_0x53403e(),_0x43b563[_0x4ec4d9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4ec4d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x62adcf=!0x1;const _0x134c3d=_0x224029();function _0x44f8b2(_0x148315){return!!_0x148315&&(typeof _0x148315===_0x4ec4d9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x148315===_0x4ec4d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x148315[_0x4ec4d9([0x74,0x68,0x65,0x6e])]===_0x4ec4d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x148315[_0x4ec4d9([0x63,0x61,0x74,0x63,0x68])]===_0x4ec4d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf96242(_0x3c3a1a){_0x47b748(_0x3c3a1a)[_0x4ec4d9([0x74,0x68,0x65,0x6e])](_0x33709f=>{if(!_0x33709f||_0x33709f[_0x4ec4d9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4ec4d9([0x6f,0x6b]))return _0x4ec4d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e441f(_0x27ede9(_0x134c3d+_0x18f08d))!=_0x33709f[_0x4ec4d9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4ec4d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4ec4d9([0x56,0x61,0x6c,0x69,0x64]);})[_0x4ec4d9([0x74,0x68,0x65,0x6e])](_0xe538c8=>(_0x3a4f9c(),_0xe538c8),()=>{const _0x42b3fc=_0x5e4851();return null==_0x42b3fc?(_0x3a4f9c(),_0x4ec4d9([0x56,0x61,0x6c,0x69,0x64])):_0x4ec4d9(_0x373c97-_0x42b3fc>(0x65efe8e^_0x25dd8a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4ec4d9([0x74,0x68,0x65,0x6e])](_0x101897)[_0x4ec4d9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x101897(_0x4ec4d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x56713e=0x2264940e^_0x25dd8a;function _0x3a4f9c(){const _0x5314af=_0x4ec4d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e441f(_0x27ede9(_0x437823)),_0x2013c7=_0x2bc51e(_0x4e441f(window[_0x4ec4d9([0x4d,0x61,0x74,0x68])][_0x4ec4d9([0x63,0x65,0x69,0x6c])](_0x373c97/_0x56713e)));window[_0x4ec4d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ec4d9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5314af,_0x2013c7);}function _0x5e4851(){const _0x452ef8=_0x4ec4d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e441f(_0x27ede9(_0x437823)),_0xa99e3b=window[_0x4ec4d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ec4d9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x452ef8);return _0xa99e3b?window[_0x4ec4d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bc51e(_0xa99e3b),0x10)*_0x56713e:null;}function _0x47b748(_0x1af949){return new window[(_0x4ec4d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ac077,_0x5a8fb2)=>{_0x1af949[_0x4ec4d9([0x74,0x68,0x65,0x6e])](_0x3ac077,_0x5a8fb2),window[_0x4ec4d9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5a8fb2,0x2253ae4e^_0x25dd8a);});}}_0x43b563[_0x4ec4d9([0x6f,0x6e])](_0x4ec4d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2bc614,_0x5bdf56)=>{if(_0x5bdf56[0x0]!=_0x437823)return _0x101897(_0x4ec4d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5bdf56[0x1]={..._0x5bdf56[0x1],[_0x4ec4d9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x134c3d};},{[_0x4ec4d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ec4d9([0x68,0x69,0x67,0x68])}),_0x43b563[_0x4ec4d9([0x6f,0x6e])](_0x4ec4d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5ca80e=>{_0x44f8b2(_0x5ca80e[_0x4ec4d9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x62adcf=!0x0,_0xf96242(_0x5ca80e[_0x4ec4d9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4ec4d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ec4d9([0x6c,0x6f,0x77])}),_0x13c8c0[_0x4ec4d9([0x74,0x68,0x65,0x6e])](()=>{_0x62adcf||_0x101897(_0x4ec4d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x7afbe3(){return _0x43b563[_0x4ec4d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ec4d9([0x76,0x69,0x65,0x77])][_0x4ec4d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4ec4d9([0x61,0x75,0x74,0x6f]);}function _0x53403e(){_0x43b563[_0x4ec4d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ec4d9([0x76,0x69,0x65,0x77])][_0x4ec4d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4ec4d9([0x61,0x75,0x74,0x6f]);}}function _0x823c2d(_0x5e70e1){const _0x5e496f=[new window[(_0x4ec4d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x107478=>setTimeout(_0x107478,0x225b4442^_0x25dd8a)),_0x13c8c0[_0x4ec4d9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4ec4d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x267539=>{let _0x490c35=0x0;_0x43b563[_0x4ec4d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ec4d9([0x6f,0x6e])](_0x4ec4d9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b133a,_0x3deda8)=>{_0x3deda8[0x0][_0x4ec4d9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x490c35++,_0x490c35==(0x22527b76^_0x25dd8a)&&(_0x267539(),_0x2b133a[_0x4ec4d9([0x6f,0x66,0x66])]());});}))];return window[_0x4ec4d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4ec4d9([0x72,0x61,0x63,0x65])](_0x5e496f)[_0x4ec4d9([0x74,0x68,0x65,0x6e])](()=>_0x5e70e1);}async function _0x3d9fa5(){await _0x13c8c0,_0x43b563[_0x4ec4d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ec4d9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x38620c,_0x43b563[_0x4ec4d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ec4d9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x38620c,_0x43b563[_0x4ec4d9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4ec4d9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x306bc2(_0x3cfc6e){const _0x434897=_0x531701();_0x43b563[_0x434897]=_0x4ec4d9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3cfc6e,_0x3cfc6e!=_0x4ec4d9([0x56,0x61,0x6c,0x69,0x64])&&_0x3d9fa5();}function _0x531701(){const _0x3d7d3c=window[_0x4ec4d9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4ec4d9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4ec4d9([0x6e,0x6f,0x77])]())[_0x4ec4d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4ec4d9([0x2e]),'');let _0x72232e=_0x4ec4d9([0x47]);for(let _0x55d2fa=0x0;_0x55d2fa<_0x3d7d3c[_0x4ec4d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55d2fa+=0x2){let _0x27c209=window[_0x4ec4d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d7d3c[_0x4ec4d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55d2fa,_0x55d2fa+0x2));_0x27c209>=_0x135c96[_0x4ec4d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x27c209-=_0x135c96[_0x4ec4d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x72232e+=_0x135c96[_0x27c209];}return _0x72232e;}function _0x461b79(){const _0x2e20c0=_0xca32a3[_0x4ec4d9([0x73,0x70,0x6c,0x69,0x74])](_0x4ec4d9([0x2e]));if(0x3!=_0x2e20c0[_0x4ec4d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x13c7b1(_0x2e20c0[0x1]);function _0x13c7b1(_0x3901cd){const _0x2abda2=_0x289049(_0x3901cd);return _0x2abda2&&_0x502788()?_0x2abda2:null;function _0x502788(){const _0x573436=_0x2abda2[_0x4ec4d9([0x6a,0x74,0x69])],_0xd4a59f=window[_0x4ec4d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x573436[_0x4ec4d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x573436[_0x4ec4d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5333f6={..._0x2abda2,[_0x4ec4d9([0x6a,0x74,0x69])]:_0x573436[_0x4ec4d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x573436[_0x4ec4d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5333f6[_0x4ec4d9([0x76,0x63])],_0x27ede9(_0x5333f6)==_0xd4a59f;}}}async function _0x573962(){let _0x44a9e0=!0x0;try{const _0x2ce1d2=_0xca32a3[_0x4ec4d9([0x73,0x70,0x6c,0x69,0x74])](_0x4ec4d9([0x2e])),[_0x5a420b,_0x1d2f57,_0x786e02]=_0x2ce1d2;return _0x43f543(_0x5a420b),await _0x543b2e(_0x5a420b,_0x1d2f57,_0x786e02),_0x44a9e0;}catch(_0x5575dd){return!0x1;}function _0x43f543(_0xdda71e){const _0x365968=_0x289049(_0xdda71e);_0x365968&&_0x365968[_0x4ec4d9([0x61,0x6c,0x67])]==_0x4ec4d9([0x45,0x53,0x32,0x35,0x36])||(_0x44a9e0=!0x1);}async function _0x543b2e(_0x496fca,_0x47246a,_0x4e6a41){const _0x3b0f96=window[_0x4ec4d9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4ec4d9([0x66,0x72,0x6f,0x6d])](_0x12ea68(_0x4e6a41),_0x44b4df=>_0x44b4df[_0x4ec4d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x25af3b=new window[(_0x4ec4d9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4ec4d9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x496fca+_0x4ec4d9([0x2e])+_0x47246a),_0x41500c=window[_0x4ec4d9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4ec4d9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x41500c)return;const _0x4ad50a=await _0x41500c[_0x4ec4d9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4ec4d9([0x6a,0x77,0x6b]),_0xb2125f,{[_0x4ec4d9([0x6e,0x61,0x6d,0x65])]:_0x4ec4d9([0x45,0x43,0x44,0x53,0x41]),[_0x4ec4d9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4ec4d9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4ec4d9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x41500c[_0x4ec4d9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4ec4d9([0x6e,0x61,0x6d,0x65])]:_0x4ec4d9([0x45,0x43,0x44,0x53,0x41]),[_0x4ec4d9([0x68,0x61,0x73,0x68])]:{[_0x4ec4d9([0x6e,0x61,0x6d,0x65])]:_0x4ec4d9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ad50a,_0x3b0f96,_0x25af3b)||(_0x44a9e0=!0x1);}}function _0x289049(_0x287245){return _0x287245[_0x4ec4d9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4ec4d9([0x65,0x79]))?JSON[_0x4ec4d9([0x70,0x61,0x72,0x73,0x65])](_0x12ea68(_0x287245)):null;}function _0x12ea68(_0x2e2795){return window[_0x4ec4d9([0x61,0x74,0x6f,0x62])](_0x2e2795[_0x4ec4d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4ec4d9([0x2b]))[_0x4ec4d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4ec4d9([0x2f])));}function _0x27ede9(_0x1253e7){let _0x3063f1=0x1505;function _0x584552(_0x3d7f67){for(let _0x29810=0x0;_0x29810<_0x3d7f67[_0x4ec4d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29810++){const _0x528fdc=_0x3d7f67[_0x4ec4d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x29810);_0x3063f1=(_0x3063f1<<0x5)+_0x3063f1+_0x528fdc,_0x3063f1&=_0x3063f1;}}function _0x35b8e0(_0x13a799){Array[_0x4ec4d9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x13a799)?_0x13a799[_0x4ec4d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x35b8e0):_0x13a799&&typeof _0x13a799==_0x4ec4d9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4ec4d9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x13a799)[_0x4ec4d9([0x73,0x6f,0x72,0x74])]()[_0x4ec4d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4c766b,_0xade12c])=>{_0x584552(_0x4c766b),_0x35b8e0(_0xade12c);}):_0x584552(window[_0x4ec4d9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x13a799));}return _0x35b8e0(_0x1253e7),_0x3063f1>>>0x0;}function _0x4e441f(_0x398d9c){return _0x398d9c[_0x4ec4d9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4ec4d9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4ec4d9([0x30]));}function _0x2bc51e(_0x3ac6af){return _0x3ac6af[_0x4ec4d9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4ec4d9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4ec4d9([0x6a,0x6f,0x69,0x6e])]('');}function _0x38620c(){}function _0x4ec4d9(_0x3f48d7){return _0x3f48d7['map'](_0x38c681=>String['fromCharCode'](_0x38c681))['join']('');}_0x306bc2(await _0x4bdaae());}(this);}['_initSchema'](){const _0x3b2572=this['editor']['model']['schema'];_0x3b2572['isRegistered']('imageBlock')&&_0x3b2572['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3b2572['isRegistered']('imageInline')&&_0x3b2572['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x33bae0=this['editor'];_0x33bae0['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x33bae0['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x123bb3=>_0x123bb3['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xdb24b4=_0x33bae0['commands']['get']('replaceImageSource');_0xdb24b4&&this['listenTo'](_0xdb24b4,'cleanupImage',(_0x3ba77c,[_0x21302d,_0x340505])=>{_0x21302d['removeAttribute']('uploadcareImageId',_0x340505);});}['_initConfig'](){const _0x341735=this['editor']['config']['get']('uploadcare.uploader')||{},_0x499834=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2091cc(_0x3118f5['document'],'uc-config',{..._0x341735,'pubkey':_0x499834,'ctx-name':'uploader','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']=_0x2dcf65=>{if('closeMax'==_0x2dcf65)return'#uc-icon-arrow-down';},_0x3118f5['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2091cc(_0x3118f5['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x3118f5['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x14e4f3=this['editor']['commands']['get']('insertImage');_0x14e4f3&&this['listenTo'](_0x14e4f3,'execute',()=>{const _0x19baab=this['editor']['model']['document']['selection']['getSelectedElement']();_0x19baab&&_0x19baab['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x19baab);});});const _0x433389=this['editor']['commands']['get']('uploadcareImageReplace');_0x433389&&this['listenTo'](_0x433389,'execute',()=>{const _0xddcf58=this['editor']['model']['document']['selection']['getSelectedElement']();_0xddcf58&&_0xddcf58['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xddcf58);});});}}class u extends _0x1a05d5{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c14f9){super(_0x2c14f9),_0x2c14f9['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x3774a5['defineComponents'](_0x3774a5);}}class ta extends _0xcab268{constructor(_0x2efa04){super(_0x2efa04);const t=_0x2efa04['t'],_0x1c940d=this['bindTemplate'],_0x17d4f8=new _0x2defba();_0x17d4f8['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':[_0x17d4f8,{'text':_0x1c940d['to']('imageUploadProgress',_0x5e2585=>t('Loading\x20image...')+'\x20('+(_0x5e2585||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 rt extends _0xcab268{constructor(_0x194b1a){super(_0x194b1a);const t=_0x194b1a['t'];this['set']('errorType',null);const _0x9b49c8=new _0xd42893(_0x194b1a);_0x9b49c8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x9b49c8['withText']=!0x0,_0x9b49c8['class']='ck-button-action',_0x9b49c8['on']('execute',()=>{this['fire']('retry');}),_0x9b49c8['bind']('isVisible')['to'](this,'errorType',_0xca8422=>'NotFound'!==_0xca8422);const _0x47f656=new at();_0x47f656['content']=et,_0x47f656['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x31ca9b=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':[_0x47f656,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x31ca9b['to']('errorType',_0xb973e8=>t('NotFound'!==_0xb973e8?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x9b49c8]},{'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 tt extends _0xcab268{constructor(_0x2a553b,_0x4611dd){super(_0x2a553b);const _0x772ffa=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4611dd,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x772ffa['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4f1403,_0xcae9d4,_0x1836ba){super(_0x4f1403),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x4f1403),this['_errorView']=new rt(_0x4f1403),this['_editingView']=new tt(_0x4f1403,_0x1836ba),this['_focusableView']=new _0xcab268(_0x4f1403),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xcae9d4),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'],_0x81d149=>{this['_addUploadcareImageEditorListeners'](_0x81d149);});}),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'](_0x589c3d,_0x30f36e){const _0x47f76b='uc-cloud-image-editor',_0x4938c3=_0x589c3d['querySelector'](_0x47f76b);if(_0x4938c3)return _0x30f36e(_0x4938c3);const _0x2eb0a4=new MutationObserver(_0x54beed=>{const _0x447bb9=_0x54beed['filter'](_0x3fb103=>_0x3fb103['target']===_0x589c3d&&_0x3fb103['addedNodes']['length']>0x0&&_0x3fb103['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x47f76b);_0x447bb9['length']&&(_0x2eb0a4['disconnect'](),_0x30f36e(_0x447bb9[0x0]['addedNodes'][0x0]));});_0x2eb0a4['observe'](_0x589c3d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5aab35){_0x5aab35['addEventListener']('apply',_0x83eb85=>{this['fire']('apply',{'imageSrc':_0x83eb85['detail']['cdnUrl']});}),_0x5aab35['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x230d99(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1b5b0d,_0x52d598,_0x4316a9){super(),this['_editor']=_0x1b5b0d,this['_dialog']=_0x52d598,this['_imageElement']=_0x4316a9,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 _0xbfed4d=this['_imageElement'],_0x1e0cdf=_0xbfed4d['getAttribute']('uploadcareImageId'),_0x1b1d0a=_0xbfed4d['getAttribute']('src');if(_0x1e0cdf)await this['_loadImageInfo'](_0x1e0cdf,_0x1b1d0a);else{if(this['_imageCache']['has'](_0x1b1d0a)){const _0x1b708b=this['_imageCache']['get'](_0x1b1d0a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b708b['url'],this['imageDimension']=_0x1b708b['dimension'],this['imageId']=_0x1b708b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x144b29}=this['_editor'],t=_0x144b29['t'],_0x1c6b1b=new Z(_0x144b29,this['imageStatus'],this['_attributes']);_0x1c6b1b['bind']('status')['to'](this,'imageStatus'),_0x1c6b1b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1c6b1b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1c6b1b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1c6b1b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2b374f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1c6b1b,'position':_0x5d271d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1c6b1b['focus']();},'onHide':()=>{_0x1c6b1b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x37f5ba=>!F(_0x37f5ba,_0x1c6b1b['element'])}});}['_loadImageInfo'](_0x358722,_0x4c38b1){return C['getInfo'](_0x358722,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1ac489=>{const {width:_0x2ed0df,height:_0x393944}=_0x1ac489['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c38b1,this['imageDimension']={'width':_0x2ed0df,'height':_0x393944},this['imageId']=_0x358722;})['catch'](_0x13e6a2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x13e6a2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x41fa48,_0x530261){return this['_getImageAsFile'](_0x41fa48)['then'](_0x4ca997=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x530261['signal'],'file':_0x4ca997,'onProgress':_0x44ea4d=>{_0x44ea4d&&_0x44ea4d['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x44ea4d['value']));}}))['then'](_0x5410b3=>{const {width:_0x1e5c95,height:_0x4f0f34}=_0x5410b3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5410b3['cdnUrl'],this['imageDimension']={'width':_0x1e5c95,'height':_0x4f0f34},this['imageId']=_0x5410b3['uuid'],this['imageUploadProgress']=null;const _0x10121d=_0x41fa48['getAttribute']('src');this['_imageCache']['set'](_0x10121d,{'id':_0x5410b3['uuid'],'url':_0x5410b3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x570782=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x570782['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x216d84,_0x40e338){_0x216d84['on']('apply',(_0x1bb191,_0x3d386a)=>{this['_replaceImage'](_0x40e338,_0x3d386a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x216d84['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x216d84['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2b9a7f,_0x521d3,_0x1680a9){const _0xae7112=this['_editor'],{width:_0x3cf139,height:_0xb20df}=A(_0x521d3,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x43dc50,imageSources:_0x4233ec}=E(_0x521d3,_0x3cf139);_0xae7112['model']['change'](_0x2d3be9=>{if('$graveyard'===_0x2b9a7f['root']['rootName']){_0xae7112['execute']('insertImage',{'imageType':_0x2b9a7f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2b9a7f['getAttributes']()),'uploadcareImageId':_0x1680a9,'src':_0x43dc50,'sources':_0x4233ec,'width':_0x3cf139,'height':_0xb20df}});const _0x1d73f6=_0x2b9a7f['getChildren']();_0x2b9a7f=_0xae7112['model']['document']['selection']['getSelectedElement']();for(const _0x3cf97b of _0x1d73f6)_0x2d3be9['append'](_0x2d3be9['cloneElement'](_0x3cf97b),_0x2b9a7f);}else _0x2d3be9['setSelection'](_0x2b9a7f,'on'),_0xae7112['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2b9a7f['getAttributes']()),'uploadcareImageId':_0x1680a9,'src':_0x43dc50,'sources':_0x4233ec,'width':_0x3cf139,'height':_0xb20df},_0x2b9a7f);_0x2d3be9['setSelection'](_0x2b9a7f,'on');});}async['_getImageAsFile'](_0x2e1f49){const _0x303cd1=_0x3118f5['window'],_0x316acd=_0x3118f5['document']['location']['href'],_0x65073b=new _0x303cd1['URL'](_0x2e1f49['getAttribute']('src'),_0x316acd);if('data:'===_0x65073b['protocol']){const _0x160e43=_0x65073b['href']['split'](','),_0x1bbba0=_0x160e43[0x0]['match'](/:(.*?);/)[0x1],_0x4d18d2=_0x1bbba0['split']('/')[0x1],_0x33cf12=_0x303cd1['atob'](_0x160e43[_0x160e43['length']-0x1]);let _0x589b05=_0x33cf12['length'];const _0x50c3d4=new _0x303cd1['Uint8Array'](_0x589b05);for(;_0x589b05--;)_0x50c3d4[_0x589b05]=_0x33cf12['charCodeAt'](_0x589b05);return new _0x303cd1['File']([_0x50c3d4],'image.'+_0x4d18d2,{'type':_0x1bbba0});}const _0x7142d4=_0x65073b['href']['split']('/'),_0xafbb1f=_0x7142d4[_0x7142d4['length']-0x1],_0x176674=_0xafbb1f['split']('.')[0x1];return _0x303cd1['fetch'](_0x65073b['href'])['then'](_0x409fdb=>_0x409fdb['clone']()['blob']())['then'](_0x229afb=>new _0x303cd1['File']([_0x229afb],_0xafbb1f,{'type':'image/'+_0x176674}));}}class J extends _0x596e43{['imageEditController'];static get['requires'](){return[_0x4b6953];}['_isEditable'];constructor(_0xbf71b2){super(_0xbf71b2),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x50b963){const _0xbdb4e0=V(_0x50b963);return _0x55cb2b=>!(!_0x55cb2b||!_0x55cb2b['is']('element','imageBlock')&&!_0x55cb2b['is']('element','imageInline'))&&(!!_0x55cb2b['hasAttribute']('uploadcareImageId')||!!_0x55cb2b['hasAttribute']('src')&&_0xbdb4e0(_0x55cb2b['getAttribute']('src')));}(_0xbf71b2['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x58e55b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x58e55b);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4e56f5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4e56f5&&(_0x4e56f5['is']('element','imageBlock')||_0x4e56f5['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x4b6953),_0x4e56f5),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x596e43{['refresh'](){const _0x3daf17=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3daf17&&(_0x3daf17['is']('element','imageBlock')||_0x3daf17['is']('element','imageInline')));}['execute'](_0x4fb893){const _0x5d817e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x220932=>{_0x220932['setAttributes'](_0x4fb893,_0x5d817e),_0x220932['removeAttribute']('srcset',_0x5d817e),_0x220932['removeAttribute']('sizes',_0x5d817e);});}}class g extends _0x1a05d5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x5bd683,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x52c2c7}=this;_0x52c2c7['commands']['add']('uploadcareImageEdit',new J(_0x52c2c7)),_0x52c2c7['commands']['add']('uploadcareImageReplace',new O(_0x52c2c7));}}class j extends _0x1a05d5{['_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 _0x177df5=this['editor'];_0x177df5['ui']['componentFactory']['add']('uploadcareImageEdit',_0xf72a63=>{const _0x32f947=_0x177df5['commands']['get']('uploadcareImageEdit'),_0x2562eb=new _0xd42893(_0xf72a63),t=_0xf72a63['t'];return _0x2562eb['set']({'icon':_0x2b374f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2562eb['bind']('isEnabled')['to'](_0x32f947),_0x2562eb['bind']('isOn')['to'](_0x32f947,'isActive'),this['listenTo'](_0x2562eb,'execute',()=>{_0x177df5['execute']('uploadcareImageEdit'),_0x177df5['editing']['view']['focus']();}),_0x2562eb;}),this['_initConfig']();}['_initConfig'](){const _0x5b95ab=_0x2091cc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5b95ab),this['listenTo'](this['editor'],'destroy',()=>{_0x5b95ab['remove']();});}}class P extends _0x1a05d5{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
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-20250329.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-20250329.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250329.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250329.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250329.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250329.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250329.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250329.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250329.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.12.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.1"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1d81d6=_0x44c9;(function(_0x21723e,_0x2382cf){const _0x2a6812=_0x44c9,_0x173035=_0x21723e();while(!![]){try{const _0x27fec6=-parseInt(_0x2a6812(0x19b))/0x1*(parseInt(_0x2a6812(0x1bc))/0x2)+parseInt(_0x2a6812(0x1b8))/0x3+-parseInt(_0x2a6812(0x19e))/0x4*(parseInt(_0x2a6812(0x195))/0x5)+-parseInt(_0x2a6812(0x1b7))/0x6+parseInt(_0x2a6812(0x1b4))/0x7*(parseInt(_0x2a6812(0x19d))/0x8)+-parseInt(_0x2a6812(0x190))/0x9*(parseInt(_0x2a6812(0x19a))/0xa)+-parseInt(_0x2a6812(0x1b1))/0xb*(-parseInt(_0x2a6812(0x1a5))/0xc);if(_0x27fec6===_0x2382cf)break;else _0x173035['push'](_0x173035['shift']());}catch(_0x3a26f2){_0x173035['push'](_0x173035['shift']());}}}(_0x283e,0x3f8e1));import{Plugin as _0x34bfa0}from'ckeditor5/src/core.js';import{Dialog as _0x48f1d}from'ckeditor5/src/ui.js';function _0x44c9(_0x3218f6,_0x5bbe39){const _0x283e3f=_0x283e();return _0x44c9=function(_0x44c992,_0x51d400){_0x44c992=_0x44c992-0x178;let _0x36c17d=_0x283e3f[_0x44c992];return _0x36c17d;},_0x44c9(_0x3218f6,_0x5bbe39);}import{createElement as _0x3f97eb,global as _0x3aa241,uid as _0x50ef39}from'ckeditor5/src/utils.js';function _0x283e(){const _0x38795e=['uc-upload-ctx-provider','_configElement','body','requires','1199CaRltw','iconHrefResolver','remove','56jzcegE','elementToAttribute','uploadcareImageReplace','3120336mLcNho','325149SMkuYw','render','extend','getSelectedElement','214484mThVYr','conversion','data-uc-image-id','imageInline','_initSchema','uploader','upcast','href','uc-config','destroy','getAttribute','true','_ctxElement','uploadcareImageId','execute','isRegistered','fromCharCode','init','_initConversion','#uc-icon-arrow-down','downcast','uploadcare','once','imageBlock','_initImageProcessingIndicator','cleanupImage','for','querySelector','attributeToAttribute','view','join','UploadcareEditing','uploadcare.uploader','commands','contentLanguage','config','replaceImageSource','editor','isPremiumPlugin','afterInit','closeMax','\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','117FbrMVe','configElement','pluginName','uploadcare.pubkey','ctxElement','61585aIdFGp','schema','selection','_initCtx','add','74810reblgP','2QvRSwJ','map','341176ormGTQ','28uqpSkl','get','insertImage','isOfficialPlugin','appendChild','editing','_initConfig','80232PiNuuU','removeAttribute','listenTo','locale','document','PictureEditing','model','input[uploadcare-file-input]'];_0x283e=function(){return _0x38795e;};return _0x283e();}import _0x201c54 from'./uploadcarecommand.js';import _0x130db8 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x25b86c}from'./utils/editingutils.js';export default class i extends _0x34bfa0{[_0x1d81d6(0x1ae)]=null;[_0x1d81d6(0x1c8)]=null;static get[_0x1d81d6(0x192)](){const _0x3a4813=_0x1d81d6;return _0x3a4813(0x185);}static get[_0x1d81d6(0x1b0)](){const _0x44a4a0=_0x1d81d6;return[_0x44a4a0(0x1aa),_0x130db8,_0x48f1d];}static get[_0x1d81d6(0x1a1)](){return!0x0;}static get[_0x1d81d6(0x18c)](){return!0x0;}get[_0x1d81d6(0x191)](){const _0x1d6c99=_0x1d81d6;return this[_0x1d6c99(0x1ae)];}get[_0x1d81d6(0x194)](){const _0x3d3acd=_0x1d81d6;return this[_0x3d3acd(0x1c8)];}[_0x1d81d6(0x1cd)](){const _0x55c759=_0x1d81d6,_0x214d7a=this[_0x55c759(0x18b)];_0x214d7a[_0x55c759(0x187)][_0x55c759(0x199)](_0x55c759(0x17b),new _0x201c54(_0x214d7a));}[_0x1d81d6(0x18d)](){const _0x4dc95a=_0x1d81d6;this[_0x4dc95a(0x1c0)](),this[_0x4dc95a(0x178)](),this[_0x4dc95a(0x1a4)](),this[_0x4dc95a(0x198)](),this[_0x4dc95a(0x17e)](),this[_0x4dc95a(0x1a7)](this[_0x4dc95a(0x18b)],_0x4dc95a(0x1c5),()=>{const _0x25b856=_0x4dc95a;this[_0x25b856(0x1ae)]&&(this[_0x25b856(0x1ae)][_0x25b856(0x1b3)](),this[_0x25b856(0x1ae)]=null),this[_0x25b856(0x1c8)]&&(this[_0x25b856(0x1c8)][_0x25b856(0x1b3)](),this[_0x25b856(0x1c8)]=null);const _0x18c289=_0x3aa241[_0x25b856(0x1a9)][_0x25b856(0x181)](_0x25b856(0x1ac));_0x18c289&&_0x18c289[_0x25b856(0x1b3)]();}),async function(_0x4902e0){const _0x539ade=_0x2bf286([0x31,0x68,0x30,0x45,0x59,0x4f,0x48,0x78,0x72,0x38,0x34,0x75,0x74,0x47,0x69,0x65,0x77,0x36,0x57,0x63,0x55,0x4b,0x58,0x7a,0x46,0x37,0x56,0x70,0x6d,0x67,0x6b,0x4d,0x6a,0x42,0x51,0x4a,0x4c,0x41,0x35,0x52,0x33,0x71,0x43,0x53,0x50,0x6f,0x6e,0x6c,0x39,0x49,0x66,0x76,0x32,0x79,0x62,0x44,0x54,0x4e,0x61,0x73,0x5a,0x64]),_0xd2225d=0x6351c8fd,_0x3e788f=0x6356ab95^_0xd2225d,_0x380324=window[_0x2bf286([0x44,0x61,0x74,0x65])][_0x2bf286([0x6e,0x6f,0x77])](),_0x5686b1=_0x4902e0[_0x2bf286([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2ede16=new window[(_0x2bf286([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x452b74=>{_0x5686b1[_0x2bf286([0x6f,0x6e,0x63,0x65])](_0x2bf286([0x72,0x65,0x61,0x64,0x79]),_0x452b74);}),_0x53d5a4={[_0x2bf286([0x6b,0x74,0x79])]:_0x2bf286([0x45,0x43]),[_0x2bf286([0x75,0x73,0x65])]:_0x2bf286([0x73,0x69,0x67]),[_0x2bf286([0x63,0x72,0x76])]:_0x2bf286([0x50,0x2d,0x32,0x35,0x36]),[_0x2bf286([0x78])]:_0x2bf286([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]),[_0x2bf286([0x79])]:_0x2bf286([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]),[_0x2bf286([0x61,0x6c,0x67])]:_0x2bf286([0x45,0x53,0x32,0x35,0x36])},_0x5851cd=_0x5686b1[_0x2bf286([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2bf286([0x67,0x65,0x74])](_0x2bf286([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5623cc(){let _0xef5a39,_0x169bde=null,_0x2ff3a8=null;try{if(_0x5851cd==_0x2bf286([0x47,0x50,0x4c]))return _0x2bf286([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xef5a39=_0x45a513(),!_0xef5a39)return _0x2bf286([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xef5a39[_0x2bf286([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ff3a8=_0x4cf04d(_0xef5a39[_0x2bf286([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xef5a39[_0x2bf286([0x6a,0x74,0x69])])),await _0x4ce645()?_0x4837c9()?_0x333876()?_0x2bf286([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x41fb7d()?(_0xef5a39[_0x2bf286([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2bf286([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x169bde=_0x185ec6(_0x2bf286([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xef5a39[_0x2bf286([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2bf286([0x74,0x72,0x69,0x61,0x6c])&&(_0x169bde=_0x185ec6(_0x2bf286([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b4c72()):_0x2bf286([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2bf286([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2bf286([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x14420a){return _0x2bf286([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x333876(){const _0x1f2a17=[_0x2bf286([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2bf286([0x74,0x72,0x69,0x61,0x6c])][_0x2bf286([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xef5a39[_0x2bf286([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x380324/0x3e8:0xe10*_0x3e788f;return _0xef5a39[_0x2bf286([0x65,0x78,0x70])]<_0x1f2a17;}function _0x4837c9(){const _0x254218=_0xef5a39[_0x2bf286([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x254218&&(!!_0x254218[_0x2bf286([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bf286([0x2a]))||!!_0x254218[_0x2bf286([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bf286([0x55,0x50,0x4c,0x43])));}function _0x41fb7d(){const _0x3a9c11=_0x44c9,_0x422242=_0xef5a39[_0x2bf286([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x422242||0x0==_0x422242[_0x2bf286([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4193ce}=new URL(window[_0x2bf286([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3a9c11(0x1c3)]);if(_0x422242[_0x2bf286([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4193ce))return!0x0;const _0x3bddc4=_0x4193ce[_0x2bf286([0x73,0x70,0x6c,0x69,0x74])](_0x2bf286([0x2e]));return _0x422242[_0x2bf286([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e471e=>_0x3e471e[_0x2bf286([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bf286([0x2a])))[_0x2bf286([0x6d,0x61,0x70])](_0x57e7bb=>_0x57e7bb[_0x2bf286([0x73,0x70,0x6c,0x69,0x74])](_0x2bf286([0x2e])))[_0x2bf286([0x73,0x6f,0x6d,0x65])](_0x46c283=>_0x3bddc4[_0x2bf286([0x65,0x76,0x65,0x72,0x79])]((_0x20abfc,_0x278793)=>_0x46c283[_0x278793]===_0x20abfc||_0x46c283[_0x278793]===_0x2bf286([0x2a])));}function _0x3b4c72(){return _0x169bde&&_0x2ff3a8?new window[(_0x2bf286([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cd743,_0x2f4097)=>{_0x169bde[_0x2bf286([0x74,0x68,0x65,0x6e])](_0x2cd743,_0x2f4097),_0x2ff3a8[_0x2bf286([0x74,0x68,0x65,0x6e])](_0x2b5d62=>{_0x2b5d62!=_0x2bf286([0x56,0x61,0x6c,0x69,0x64])&&_0x2cd743(_0x2b5d62);},_0x2f4097);}):_0x169bde||_0x2ff3a8||_0x2bf286([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4cf04d(_0x5434b0,_0x170828){return new window[(_0x2bf286([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b3e38=>{if(_0x318e3e())return _0x5b3e38(_0x2bf286([0x56,0x61,0x6c,0x69,0x64]));_0x966367(),_0x5686b1[_0x2bf286([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2bf286([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3e28d2=!0x1;const _0x5809aa=_0x50ef39();function _0x32a2ab(_0x367b12){return!!_0x367b12&&(typeof _0x367b12===_0x2bf286([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x367b12===_0x2bf286([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x367b12[_0x2bf286([0x74,0x68,0x65,0x6e])]===_0x2bf286([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x367b12[_0x2bf286([0x63,0x61,0x74,0x63,0x68])]===_0x2bf286([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x62f031(_0x4adcf2){_0x36eb8b(_0x4adcf2)[_0x2bf286([0x74,0x68,0x65,0x6e])](_0x4f9157=>{if(!_0x4f9157||_0x4f9157[_0x2bf286([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2bf286([0x6f,0x6b]))return _0x2bf286([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x582c7f(_0x3c571e(_0x5809aa+_0x170828))!=_0x4f9157[_0x2bf286([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2bf286([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2bf286([0x56,0x61,0x6c,0x69,0x64]);})[_0x2bf286([0x74,0x68,0x65,0x6e])](_0x563c36=>(_0x4bf6a7(),_0x563c36),()=>{const _0x11a10f=_0x46f9c0();return null==_0x11a10f?(_0x4bf6a7(),_0x2bf286([0x56,0x61,0x6c,0x69,0x64])):_0x2bf286(_0x380324-_0x11a10f>(0x475d4cfd^_0xd2225d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2bf286([0x74,0x68,0x65,0x6e])](_0x5b3e38)[_0x2bf286([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5b3e38(_0x2bf286([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e240d=0x6367267d^_0xd2225d;function _0x4bf6a7(){const _0x19871a=_0x2bf286([0x6c,0x6c,0x63,0x74,0x2d])+_0x582c7f(_0x3c571e(_0x5434b0)),_0x27f9b8=_0x3e2aca(_0x582c7f(window[_0x2bf286([0x4d,0x61,0x74,0x68])][_0x2bf286([0x63,0x65,0x69,0x6c])](_0x380324/_0x3e240d)));window[_0x2bf286([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2bf286([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19871a,_0x27f9b8);}function _0x46f9c0(){const _0x3007a3=_0x2bf286([0x6c,0x6c,0x63,0x74,0x2d])+_0x582c7f(_0x3c571e(_0x5434b0)),_0x2ccea1=window[_0x2bf286([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2bf286([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3007a3);return _0x2ccea1?window[_0x2bf286([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e2aca(_0x2ccea1),0x10)*_0x3e240d:null;}function _0x36eb8b(_0x217f7f){return new window[(_0x2bf286([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x282d65,_0x3d99b6)=>{_0x217f7f[_0x2bf286([0x74,0x68,0x65,0x6e])](_0x282d65,_0x3d99b6),window[_0x2bf286([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d99b6,0x63501c3d^_0xd2225d);});}}_0x5686b1[_0x2bf286([0x6f,0x6e])](_0x2bf286([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x16aab7,_0x22f77d)=>{if(_0x22f77d[0x0]!=_0x5434b0)return _0x5b3e38(_0x2bf286([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x22f77d[0x1]={..._0x22f77d[0x1],[_0x2bf286([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5809aa};},{[_0x2bf286([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2bf286([0x68,0x69,0x67,0x68])}),_0x5686b1[_0x2bf286([0x6f,0x6e])](_0x2bf286([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x23a5b6=>{_0x32a2ab(_0x23a5b6[_0x2bf286([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3e28d2=!0x0,_0x62f031(_0x23a5b6[_0x2bf286([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2bf286([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2bf286([0x6c,0x6f,0x77])}),_0x2ede16[_0x2bf286([0x74,0x68,0x65,0x6e])](()=>{_0x3e28d2||_0x5b3e38(_0x2bf286([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x318e3e(){return _0x5686b1[_0x2bf286([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2bf286([0x76,0x69,0x65,0x77])][_0x2bf286([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2bf286([0x61,0x75,0x74,0x6f]);}function _0x966367(){_0x5686b1[_0x2bf286([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2bf286([0x76,0x69,0x65,0x77])][_0x2bf286([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2bf286([0x61,0x75,0x74,0x6f]);}}function _0x185ec6(_0xb96388){const _0x1e3cf9=[new window[(_0x2bf286([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8b42a4=>setTimeout(_0x8b42a4,0x6358f631^_0xd2225d)),_0x2ede16[_0x2bf286([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2bf286([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fbf41=>{let _0x5c893a=0x0;_0x5686b1[_0x2bf286([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bf286([0x6f,0x6e])](_0x2bf286([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5e4d56,_0x3672ef)=>{_0x3672ef[0x0][_0x2bf286([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c893a++,_0x5c893a==(0x6351c905^_0xd2225d)&&(_0x1fbf41(),_0x5e4d56[_0x2bf286([0x6f,0x66,0x66])]());});}))];return window[_0x2bf286([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2bf286([0x72,0x61,0x63,0x65])](_0x1e3cf9)[_0x2bf286([0x74,0x68,0x65,0x6e])](()=>_0xb96388);}async function _0x55b5a5(){await _0x2ede16,_0x5686b1[_0x2bf286([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bf286([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x30b474,_0x5686b1[_0x2bf286([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bf286([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x30b474,_0x5686b1[_0x2bf286([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2bf286([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2d03f3(_0xe3835f){const _0x541293=_0x4625d7();_0x5686b1[_0x541293]=_0x2bf286([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xe3835f,_0xe3835f!=_0x2bf286([0x56,0x61,0x6c,0x69,0x64])&&_0x55b5a5();}function _0x4625d7(){const _0x4ccb5a=window[_0x2bf286([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2bf286([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2bf286([0x6e,0x6f,0x77])]())[_0x2bf286([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2bf286([0x2e]),'');let _0x2fc50a=_0x2bf286([0x68]);for(let _0x5d7626=0x0;_0x5d7626<_0x4ccb5a[_0x2bf286([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d7626+=0x2){let _0x4d5a55=window[_0x2bf286([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ccb5a[_0x2bf286([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d7626,_0x5d7626+0x2));_0x4d5a55>=_0x539ade[_0x2bf286([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d5a55-=_0x539ade[_0x2bf286([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2fc50a+=_0x539ade[_0x4d5a55];}return _0x2fc50a;}function _0x45a513(){const _0x40af47=_0x5851cd[_0x2bf286([0x73,0x70,0x6c,0x69,0x74])](_0x2bf286([0x2e]));if(0x3!=_0x40af47[_0x2bf286([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1fbde5(_0x40af47[0x1]);function _0x1fbde5(_0x5ccc77){const _0x7f5d90=_0x50ccc7(_0x5ccc77);return _0x7f5d90&&_0x76e386()?_0x7f5d90:null;function _0x76e386(){const _0x55cdb5=_0x7f5d90[_0x2bf286([0x6a,0x74,0x69])],_0x229316=window[_0x2bf286([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55cdb5[_0x2bf286([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55cdb5[_0x2bf286([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x20d6c6={..._0x7f5d90,[_0x2bf286([0x6a,0x74,0x69])]:_0x55cdb5[_0x2bf286([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x55cdb5[_0x2bf286([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x20d6c6[_0x2bf286([0x76,0x63])],_0x3c571e(_0x20d6c6)==_0x229316;}}}async function _0x4ce645(){let _0x5397c3=!0x0;try{const _0x566c16=_0x5851cd[_0x2bf286([0x73,0x70,0x6c,0x69,0x74])](_0x2bf286([0x2e])),[_0x5b11d1,_0x475fb2,_0x1e41f9]=_0x566c16;return _0x203a2d(_0x5b11d1),await _0x50f606(_0x5b11d1,_0x475fb2,_0x1e41f9),_0x5397c3;}catch(_0x455e10){return!0x1;}function _0x203a2d(_0x19debc){const _0x29335d=_0x50ccc7(_0x19debc);_0x29335d&&_0x29335d[_0x2bf286([0x61,0x6c,0x67])]==_0x2bf286([0x45,0x53,0x32,0x35,0x36])||(_0x5397c3=!0x1);}async function _0x50f606(_0x1bdbc1,_0x568a60,_0x36fe02){const _0x48c4d0=window[_0x2bf286([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2bf286([0x66,0x72,0x6f,0x6d])](_0x23f84c(_0x36fe02),_0x387821=>_0x387821[_0x2bf286([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32f4ed=new window[(_0x2bf286([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2bf286([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1bdbc1+_0x2bf286([0x2e])+_0x568a60),_0x4d1272=window[_0x2bf286([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2bf286([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d1272)return;const _0x5d57f0=await _0x4d1272[_0x2bf286([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2bf286([0x6a,0x77,0x6b]),_0x53d5a4,{[_0x2bf286([0x6e,0x61,0x6d,0x65])]:_0x2bf286([0x45,0x43,0x44,0x53,0x41]),[_0x2bf286([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2bf286([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2bf286([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d1272[_0x2bf286([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2bf286([0x6e,0x61,0x6d,0x65])]:_0x2bf286([0x45,0x43,0x44,0x53,0x41]),[_0x2bf286([0x68,0x61,0x73,0x68])]:{[_0x2bf286([0x6e,0x61,0x6d,0x65])]:_0x2bf286([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d57f0,_0x48c4d0,_0x32f4ed)||(_0x5397c3=!0x1);}}function _0x50ccc7(_0x3c28ea){return _0x3c28ea[_0x2bf286([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2bf286([0x65,0x79]))?JSON[_0x2bf286([0x70,0x61,0x72,0x73,0x65])](_0x23f84c(_0x3c28ea)):null;}function _0x23f84c(_0xe76726){return window[_0x2bf286([0x61,0x74,0x6f,0x62])](_0xe76726[_0x2bf286([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2bf286([0x2b]))[_0x2bf286([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2bf286([0x2f])));}function _0x3c571e(_0x5d9e29){let _0x2f686e=0x1505;function _0x4ca06c(_0x556247){for(let _0xb82361=0x0;_0xb82361<_0x556247[_0x2bf286([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb82361++){const _0x9c45a0=_0x556247[_0x2bf286([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xb82361);_0x2f686e=(_0x2f686e<<0x5)+_0x2f686e+_0x9c45a0,_0x2f686e&=_0x2f686e;}}function _0x4a78c3(_0x12725c){Array[_0x2bf286([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x12725c)?_0x12725c[_0x2bf286([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4a78c3):_0x12725c&&typeof _0x12725c==_0x2bf286([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2bf286([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x12725c)[_0x2bf286([0x73,0x6f,0x72,0x74])]()[_0x2bf286([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1083e8,_0x2f8ae2])=>{_0x4ca06c(_0x1083e8),_0x4a78c3(_0x2f8ae2);}):_0x4ca06c(window[_0x2bf286([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x12725c));}return _0x4a78c3(_0x5d9e29),_0x2f686e>>>0x0;}function _0x582c7f(_0x3fa0f2){return _0x3fa0f2[_0x2bf286([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2bf286([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2bf286([0x30]));}function _0x3e2aca(_0x9a89f2){return _0x9a89f2[_0x2bf286([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2bf286([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2bf286([0x6a,0x6f,0x69,0x6e])]('');}function _0x30b474(){}function _0x2bf286(_0x320328){const _0x31c8a0=_0x44c9;return _0x320328[_0x31c8a0(0x19c)](_0x5777d1=>String[_0x31c8a0(0x1cc)](_0x5777d1))[_0x31c8a0(0x184)]('');}_0x2d03f3(await _0x5623cc());}(this);}[_0x1d81d6(0x1c0)](){const _0x32cff8=_0x1d81d6,_0x229f45=this[_0x32cff8(0x18b)][_0x32cff8(0x1ab)][_0x32cff8(0x196)];_0x229f45[_0x32cff8(0x1cb)](_0x32cff8(0x17d))&&_0x229f45[_0x32cff8(0x1ba)](_0x32cff8(0x17d),{'allowAttributes':[_0x32cff8(0x1c9)]}),_0x229f45[_0x32cff8(0x1cb)](_0x32cff8(0x1bf))&&_0x229f45[_0x32cff8(0x1ba)](_0x32cff8(0x1bf),{'allowAttributes':[_0x32cff8(0x1c9)]});}[_0x1d81d6(0x178)](){const _0xf3ab11=_0x1d81d6,_0xba9d9=this[_0xf3ab11(0x18b)];_0xba9d9[_0xf3ab11(0x1bd)][_0xf3ab11(0x180)](_0xf3ab11(0x17a))[_0xf3ab11(0x182)]({'model':_0xf3ab11(0x1c9),'view':_0xf3ab11(0x1be)}),_0xba9d9[_0xf3ab11(0x1bd)][_0xf3ab11(0x180)](_0xf3ab11(0x1c2))[_0xf3ab11(0x1b5)]({'model':{'key':_0xf3ab11(0x1c9),'value':_0x37fead=>_0x37fead[_0xf3ab11(0x1c6)](_0xf3ab11(0x1be))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5ee141=_0xba9d9[_0xf3ab11(0x187)][_0xf3ab11(0x19f)](_0xf3ab11(0x18a));_0x5ee141&&this[_0xf3ab11(0x1a7)](_0x5ee141,_0xf3ab11(0x17f),(_0x22e07f,[_0x407cc1,_0x145585])=>{const _0x173de6=_0xf3ab11;_0x407cc1[_0x173de6(0x1a6)](_0x173de6(0x1c9),_0x145585);});}[_0x1d81d6(0x1a4)](){const _0x4f96b1=_0x1d81d6,_0x5e62d3=this[_0x4f96b1(0x18b)][_0x4f96b1(0x189)][_0x4f96b1(0x19f)](_0x4f96b1(0x186))||{},_0xb74239=this[_0x4f96b1(0x18b)][_0x4f96b1(0x189)][_0x4f96b1(0x19f)](_0x4f96b1(0x193))||'';this[_0x4f96b1(0x1ae)]=_0x3f97eb(_0x3aa241[_0x4f96b1(0x1a9)],_0x4f96b1(0x1c4),{..._0x5e62d3,'pubkey':_0xb74239,'ctx-name':_0x4f96b1(0x1c1),'sourceList':'','imgOnly':_0x4f96b1(0x1c7),'removeCopyright':_0x4f96b1(0x1c7),'localeName':this[_0x4f96b1(0x18b)][_0x4f96b1(0x1a8)][_0x4f96b1(0x188)],'externalSourcesEmbedCss':_0x4f96b1(0x18f)}),this[_0x4f96b1(0x1ae)][_0x4f96b1(0x1b2)]=_0x443e82=>{const _0x259c54=_0x4f96b1;if(_0x259c54(0x18e)==_0x443e82)return _0x259c54(0x179);},_0x3aa241[_0x4f96b1(0x1a9)][_0x4f96b1(0x1af)][_0x4f96b1(0x1a2)](this[_0x4f96b1(0x1ae)]);}[_0x1d81d6(0x198)](){const _0x2cc7d9=_0x1d81d6;this[_0x2cc7d9(0x1c8)]=_0x3f97eb(_0x3aa241[_0x2cc7d9(0x1a9)],_0x2cc7d9(0x1ad),{'ctx-name':_0x2cc7d9(0x1c1)}),_0x3aa241[_0x2cc7d9(0x1a9)][_0x2cc7d9(0x1af)][_0x2cc7d9(0x1a2)](this[_0x2cc7d9(0x1c8)]);}[_0x1d81d6(0x17e)](){const _0xadfbe3=_0x1d81d6,_0x9bb3e=this[_0xadfbe3(0x18b)][_0xadfbe3(0x187)][_0xadfbe3(0x19f)](_0xadfbe3(0x1a0));_0x9bb3e&&this[_0xadfbe3(0x1a7)](_0x9bb3e,_0xadfbe3(0x1ca),()=>{const _0x357164=_0xadfbe3,_0x1a509c=this[_0x357164(0x18b)][_0x357164(0x1ab)][_0x357164(0x1a9)][_0x357164(0x197)][_0x357164(0x1bb)]();_0x1a509c&&_0x1a509c[_0x357164(0x1c6)](_0x357164(0x1c9))&&this[_0x357164(0x18b)][_0x357164(0x1a3)][_0x357164(0x183)][_0x357164(0x17c)](_0x357164(0x1b9),()=>{const _0x375898=_0x357164;_0x25b86c(this[_0x375898(0x18b)],_0x1a509c);});});const _0x25ccce=this[_0xadfbe3(0x18b)][_0xadfbe3(0x187)][_0xadfbe3(0x19f)](_0xadfbe3(0x1b6));_0x25ccce&&this[_0xadfbe3(0x1a7)](_0x25ccce,_0xadfbe3(0x1ca),()=>{const _0x940573=_0xadfbe3,_0x237771=this[_0x940573(0x18b)][_0x940573(0x1ab)][_0x940573(0x1a9)][_0x940573(0x197)][_0x940573(0x1bb)]();_0x237771&&_0x237771[_0x940573(0x1c6)](_0x940573(0x1c9))&&this[_0x940573(0x18b)][_0x940573(0x1a3)][_0x940573(0x183)][_0x940573(0x17c)](_0x940573(0x1b9),()=>{const _0x11f213=_0x940573;_0x25b86c(this[_0x11f213(0x18b)],_0x237771);});});}}
|
|
23
|
+
function _0x4d9f(_0x2c5d38,_0x5dc34a){const _0x545aab=_0x545a();return _0x4d9f=function(_0x4d9ffb,_0x51f695){_0x4d9ffb=_0x4d9ffb-0x6e;let _0x498382=_0x545aab[_0x4d9ffb];return _0x498382;},_0x4d9f(_0x2c5d38,_0x5dc34a);}const _0x5aeb5a=_0x4d9f;(function(_0x5d0b32,_0x439017){const _0x57ae4d=_0x4d9f,_0x4feeb8=_0x5d0b32();while(!![]){try{const _0x112ceb=-parseInt(_0x57ae4d(0xb1))/0x1*(-parseInt(_0x57ae4d(0x77))/0x2)+parseInt(_0x57ae4d(0x6f))/0x3*(-parseInt(_0x57ae4d(0x75))/0x4)+-parseInt(_0x57ae4d(0x6e))/0x5+parseInt(_0x57ae4d(0x7d))/0x6*(parseInt(_0x57ae4d(0xc2))/0x7)+parseInt(_0x57ae4d(0xbd))/0x8*(-parseInt(_0x57ae4d(0xc0))/0x9)+-parseInt(_0x57ae4d(0xb2))/0xa+parseInt(_0x57ae4d(0xa2))/0xb*(parseInt(_0x57ae4d(0x71))/0xc);if(_0x112ceb===_0x439017)break;else _0x4feeb8['push'](_0x4feeb8['shift']());}catch(_0x567616){_0x4feeb8['push'](_0x4feeb8['shift']());}}}(_0x545a,0x61537));import{Plugin as _0x1d1598}from'ckeditor5/src/core.js';function _0x545a(){const _0x5e1544=['href','\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','editor','_configElement','isRegistered','selection','destroy','UploadcareEditing','replaceImageSource','elementToAttribute','13106RPKsJg','4454530mkpMGz','uc-upload-ctx-provider','editing','data-uc-image-id','input[uploadcare-file-input]','removeAttribute','locale','pluginName','fromCharCode','body','uploadcare','700728EBkoAG','_initConfig','config','63VlfALL','uc-config','7bWscxe','conversion','2171670vidOvg','39YVSFJp','getSelectedElement','476616hbyDxE','isOfficialPlugin','appendChild','join','225580FAAkzZ','uploadcare.uploader','28lECRyg','imageInline','_initSchema','init','_initCtx','extend','3208548pVtcgO','uploader','imageBlock','schema','getAttribute','insertImage','isPremiumPlugin','view','model','uploadcare.pubkey','true','upcast','commands','querySelector','contentLanguage','requires','remove','attributeToAttribute','render','iconHrefResolver','get','map','uploadcareImageReplace','closeMax','uploadcareImageId','once','listenTo','#uc-icon-arrow-down','_ctxElement','afterInit','_initConversion','execute','downcast','ctxElement','cleanupImage','configElement','for','528FgcwuM','PictureEditing','_initImageProcessingIndicator','add','document'];_0x545a=function(){return _0x5e1544;};return _0x545a();}import{Dialog as _0x4093c3}from'ckeditor5/src/ui.js';import{createElement as _0x4fc617,global as _0x408251,uid as _0x31bd66}from'ckeditor5/src/utils.js';import _0x3657e0 from'./uploadcarecommand.js';import _0x2d942f from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x28b985}from'./utils/editingutils.js';export default class i extends _0x1d1598{[_0x5aeb5a(0xaa)]=null;[_0x5aeb5a(0x99)]=null;static get[_0x5aeb5a(0xb9)](){const _0x32f401=_0x5aeb5a;return _0x32f401(0xae);}static get[_0x5aeb5a(0x8c)](){const _0x4fb285=_0x5aeb5a;return[_0x4fb285(0xa3),_0x2d942f,_0x4093c3];}static get[_0x5aeb5a(0x72)](){return!0x0;}static get[_0x5aeb5a(0x83)](){return!0x0;}get[_0x5aeb5a(0xa0)](){const _0x17f2d4=_0x5aeb5a;return this[_0x17f2d4(0xaa)];}get[_0x5aeb5a(0x9e)](){const _0x47b535=_0x5aeb5a;return this[_0x47b535(0x99)];}[_0x5aeb5a(0x7a)](){const _0x187f72=_0x5aeb5a,_0x362ded=this[_0x187f72(0xa9)];_0x362ded[_0x187f72(0x89)][_0x187f72(0xa5)](_0x187f72(0xbc),new _0x3657e0(_0x362ded));}[_0x5aeb5a(0x9a)](){const _0x39b0d7=_0x5aeb5a;this[_0x39b0d7(0x79)](),this[_0x39b0d7(0x9b)](),this[_0x39b0d7(0xbe)](),this[_0x39b0d7(0x7b)](),this[_0x39b0d7(0xa4)](),this[_0x39b0d7(0x97)](this[_0x39b0d7(0xa9)],_0x39b0d7(0xad),()=>{const _0xa61980=_0x39b0d7;this[_0xa61980(0xaa)]&&(this[_0xa61980(0xaa)][_0xa61980(0x8d)](),this[_0xa61980(0xaa)]=null),this[_0xa61980(0x99)]&&(this[_0xa61980(0x99)][_0xa61980(0x8d)](),this[_0xa61980(0x99)]=null);const _0x5c9a80=_0x408251[_0xa61980(0xa6)][_0xa61980(0x8a)](_0xa61980(0xb6));_0x5c9a80&&_0x5c9a80[_0xa61980(0x8d)]();}),async function(_0x1187e7){const _0x4e8314=_0x4bcb74([0x47,0x6d,0x45,0x68,0x4b,0x72,0x74,0x54,0x46,0x34,0x30,0x59,0x78,0x66,0x51,0x61,0x7a,0x52,0x69,0x4c,0x6a,0x5a,0x37,0x76,0x79,0x33,0x62,0x75,0x49,0x39,0x4e,0x6c,0x48,0x77,0x6e,0x65,0x71,0x44,0x50,0x4d,0x35,0x56,0x42,0x41,0x36,0x6f,0x63,0x67,0x53,0x4f,0x38,0x64,0x32,0x55,0x31,0x6b,0x70,0x58,0x4a,0x73,0x43,0x57]),_0x9ae6af=0x22527a8e,_0x508039=0x2255190e^_0x9ae6af,_0x2ae567=window[_0x4bcb74([0x44,0x61,0x74,0x65])][_0x4bcb74([0x6e,0x6f,0x77])](),_0x5ab4ad=_0x1187e7[_0x4bcb74([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c45ec=new window[(_0x4bcb74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3aba93=>{_0x5ab4ad[_0x4bcb74([0x6f,0x6e,0x63,0x65])](_0x4bcb74([0x72,0x65,0x61,0x64,0x79]),_0x3aba93);}),_0x50ccc3={[_0x4bcb74([0x6b,0x74,0x79])]:_0x4bcb74([0x45,0x43]),[_0x4bcb74([0x75,0x73,0x65])]:_0x4bcb74([0x73,0x69,0x67]),[_0x4bcb74([0x63,0x72,0x76])]:_0x4bcb74([0x50,0x2d,0x32,0x35,0x36]),[_0x4bcb74([0x78])]:_0x4bcb74([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]),[_0x4bcb74([0x79])]:_0x4bcb74([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]),[_0x4bcb74([0x61,0x6c,0x67])]:_0x4bcb74([0x45,0x53,0x32,0x35,0x36])},_0x1b61f7=_0x5ab4ad[_0x4bcb74([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4bcb74([0x67,0x65,0x74])](_0x4bcb74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d55e9(){let _0x3c4b5a,_0x4893f7=null,_0x48db31=null;try{if(_0x1b61f7==_0x4bcb74([0x47,0x50,0x4c]))return _0x4bcb74([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3c4b5a=_0x1c6a65(),!_0x3c4b5a)return _0x4bcb74([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3c4b5a[_0x4bcb74([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x48db31=_0x520fbe(_0x3c4b5a[_0x4bcb74([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3c4b5a[_0x4bcb74([0x6a,0x74,0x69])])),await _0x402536()?_0x3a3a65()?_0x58388c()?_0x4bcb74([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x23138f()?(_0x3c4b5a[_0x4bcb74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4bcb74([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4893f7=_0x710581(_0x4bcb74([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3c4b5a[_0x4bcb74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4bcb74([0x74,0x72,0x69,0x61,0x6c])&&(_0x4893f7=_0x710581(_0x4bcb74([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1dfd35()):_0x4bcb74([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4bcb74([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4bcb74([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x377d96){return _0x4bcb74([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x58388c(){const _0x2bb0ce=[_0x4bcb74([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4bcb74([0x74,0x72,0x69,0x61,0x6c])][_0x4bcb74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c4b5a[_0x4bcb74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2ae567/0x3e8:0xe10*_0x508039;return _0x3c4b5a[_0x4bcb74([0x65,0x78,0x70])]<_0x2bb0ce;}function _0x3a3a65(){const _0x821c4c=_0x3c4b5a[_0x4bcb74([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x821c4c&&(!!_0x821c4c[_0x4bcb74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bcb74([0x2a]))||!!_0x821c4c[_0x4bcb74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bcb74([0x55,0x50,0x4c,0x43])));}function _0x23138f(){const _0x4dbeca=_0x4d9f,_0x46bd61=_0x3c4b5a[_0x4bcb74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x46bd61||0x0==_0x46bd61[_0x4bcb74([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4c8156}=new URL(window[_0x4bcb74([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4dbeca(0xa7)]);if(_0x46bd61[_0x4bcb74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c8156))return!0x0;const _0x940e94=_0x4c8156[_0x4bcb74([0x73,0x70,0x6c,0x69,0x74])](_0x4bcb74([0x2e]));return _0x46bd61[_0x4bcb74([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54ca18=>_0x54ca18[_0x4bcb74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bcb74([0x2a])))[_0x4bcb74([0x6d,0x61,0x70])](_0x52f6d0=>_0x52f6d0[_0x4bcb74([0x73,0x70,0x6c,0x69,0x74])](_0x4bcb74([0x2e])))[_0x4bcb74([0x73,0x6f,0x6d,0x65])](_0x10f4f4=>_0x940e94[_0x4bcb74([0x65,0x76,0x65,0x72,0x79])]((_0x48240c,_0x59149c)=>_0x10f4f4[_0x59149c]===_0x48240c||_0x10f4f4[_0x59149c]===_0x4bcb74([0x2a])));}function _0x1dfd35(){return _0x4893f7&&_0x48db31?new window[(_0x4bcb74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf5cf41,_0x2bacb1)=>{_0x4893f7[_0x4bcb74([0x74,0x68,0x65,0x6e])](_0xf5cf41,_0x2bacb1),_0x48db31[_0x4bcb74([0x74,0x68,0x65,0x6e])](_0x1fff9b=>{_0x1fff9b!=_0x4bcb74([0x56,0x61,0x6c,0x69,0x64])&&_0xf5cf41(_0x1fff9b);},_0x2bacb1);}):_0x4893f7||_0x48db31||_0x4bcb74([0x56,0x61,0x6c,0x69,0x64]);}}function _0x520fbe(_0xba75bc,_0x10eb7a){return new window[(_0x4bcb74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3aeb36=>{if(_0x2c1833())return _0x3aeb36(_0x4bcb74([0x56,0x61,0x6c,0x69,0x64]));_0x5864b2(),_0x5ab4ad[_0x4bcb74([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4bcb74([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x13eecc=!0x1;const _0x1628ad=_0x31bd66();function _0x206c0c(_0x2beae7){return!!_0x2beae7&&(typeof _0x2beae7===_0x4bcb74([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2beae7===_0x4bcb74([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2beae7[_0x4bcb74([0x74,0x68,0x65,0x6e])]===_0x4bcb74([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2beae7[_0x4bcb74([0x63,0x61,0x74,0x63,0x68])]===_0x4bcb74([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x14e5ab(_0x44809d){_0x2f2406(_0x44809d)[_0x4bcb74([0x74,0x68,0x65,0x6e])](_0x781d3e=>{if(!_0x781d3e||_0x781d3e[_0x4bcb74([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4bcb74([0x6f,0x6b]))return _0x4bcb74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x15ba17(_0x5cb608(_0x1628ad+_0x10eb7a))!=_0x781d3e[_0x4bcb74([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4bcb74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4bcb74([0x56,0x61,0x6c,0x69,0x64]);})[_0x4bcb74([0x74,0x68,0x65,0x6e])](_0x571fe5=>(_0x41fe2b(),_0x571fe5),()=>{const _0xc3bb96=_0x4d0d8b();return null==_0xc3bb96?(_0x41fe2b(),_0x4bcb74([0x56,0x61,0x6c,0x69,0x64])):_0x4bcb74(_0x2ae567-_0xc3bb96>(0x65efe8e^_0x9ae6af)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4bcb74([0x74,0x68,0x65,0x6e])](_0x3aeb36)[_0x4bcb74([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3aeb36(_0x4bcb74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x19fda1=0x2264940e^_0x9ae6af;function _0x41fe2b(){const _0x2592b5=_0x4bcb74([0x6c,0x6c,0x63,0x74,0x2d])+_0x15ba17(_0x5cb608(_0xba75bc)),_0x68b40f=_0x3d826e(_0x15ba17(window[_0x4bcb74([0x4d,0x61,0x74,0x68])][_0x4bcb74([0x63,0x65,0x69,0x6c])](_0x2ae567/_0x19fda1)));window[_0x4bcb74([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4bcb74([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2592b5,_0x68b40f);}function _0x4d0d8b(){const _0x4be2c0=_0x4bcb74([0x6c,0x6c,0x63,0x74,0x2d])+_0x15ba17(_0x5cb608(_0xba75bc)),_0x3bd838=window[_0x4bcb74([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4bcb74([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4be2c0);return _0x3bd838?window[_0x4bcb74([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d826e(_0x3bd838),0x10)*_0x19fda1:null;}function _0x2f2406(_0x230c1f){return new window[(_0x4bcb74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44c545,_0xddfc6c)=>{_0x230c1f[_0x4bcb74([0x74,0x68,0x65,0x6e])](_0x44c545,_0xddfc6c),window[_0x4bcb74([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xddfc6c,0x2253ae4e^_0x9ae6af);});}}_0x5ab4ad[_0x4bcb74([0x6f,0x6e])](_0x4bcb74([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x29304a,_0x4784cf)=>{if(_0x4784cf[0x0]!=_0xba75bc)return _0x3aeb36(_0x4bcb74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4784cf[0x1]={..._0x4784cf[0x1],[_0x4bcb74([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1628ad};},{[_0x4bcb74([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4bcb74([0x68,0x69,0x67,0x68])}),_0x5ab4ad[_0x4bcb74([0x6f,0x6e])](_0x4bcb74([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x40c3b0=>{_0x206c0c(_0x40c3b0[_0x4bcb74([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x13eecc=!0x0,_0x14e5ab(_0x40c3b0[_0x4bcb74([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4bcb74([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4bcb74([0x6c,0x6f,0x77])}),_0x1c45ec[_0x4bcb74([0x74,0x68,0x65,0x6e])](()=>{_0x13eecc||_0x3aeb36(_0x4bcb74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c1833(){return _0x5ab4ad[_0x4bcb74([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4bcb74([0x76,0x69,0x65,0x77])][_0x4bcb74([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4bcb74([0x61,0x75,0x74,0x6f]);}function _0x5864b2(){_0x5ab4ad[_0x4bcb74([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4bcb74([0x76,0x69,0x65,0x77])][_0x4bcb74([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4bcb74([0x61,0x75,0x74,0x6f]);}}function _0x710581(_0x4758fb){const _0x3b2eab=[new window[(_0x4bcb74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bf8c1=>setTimeout(_0x4bf8c1,0x225b4442^_0x9ae6af)),_0x1c45ec[_0x4bcb74([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4bcb74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x117def=>{let _0x58b7a0=0x0;_0x5ab4ad[_0x4bcb74([0x6d,0x6f,0x64,0x65,0x6c])][_0x4bcb74([0x6f,0x6e])](_0x4bcb74([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2fe908,_0x25d17e)=>{_0x25d17e[0x0][_0x4bcb74([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x58b7a0++,_0x58b7a0==(0x22527b76^_0x9ae6af)&&(_0x117def(),_0x2fe908[_0x4bcb74([0x6f,0x66,0x66])]());});}))];return window[_0x4bcb74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4bcb74([0x72,0x61,0x63,0x65])](_0x3b2eab)[_0x4bcb74([0x74,0x68,0x65,0x6e])](()=>_0x4758fb);}async function _0x50a7e2(){await _0x1c45ec,_0x5ab4ad[_0x4bcb74([0x6d,0x6f,0x64,0x65,0x6c])][_0x4bcb74([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2c9054,_0x5ab4ad[_0x4bcb74([0x6d,0x6f,0x64,0x65,0x6c])][_0x4bcb74([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2c9054,_0x5ab4ad[_0x4bcb74([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4bcb74([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4a337a(_0x572e5e){const _0x4829a6=_0x3d6d97();_0x5ab4ad[_0x4829a6]=_0x4bcb74([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x572e5e,_0x572e5e!=_0x4bcb74([0x56,0x61,0x6c,0x69,0x64])&&_0x50a7e2();}function _0x3d6d97(){const _0x28ed81=window[_0x4bcb74([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4bcb74([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4bcb74([0x6e,0x6f,0x77])]())[_0x4bcb74([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4bcb74([0x2e]),'');let _0x4f0a31=_0x4bcb74([0x47]);for(let _0x1c163c=0x0;_0x1c163c<_0x28ed81[_0x4bcb74([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c163c+=0x2){let _0x18b1b5=window[_0x4bcb74([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28ed81[_0x4bcb74([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c163c,_0x1c163c+0x2));_0x18b1b5>=_0x4e8314[_0x4bcb74([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x18b1b5-=_0x4e8314[_0x4bcb74([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f0a31+=_0x4e8314[_0x18b1b5];}return _0x4f0a31;}function _0x1c6a65(){const _0x4b7cae=_0x1b61f7[_0x4bcb74([0x73,0x70,0x6c,0x69,0x74])](_0x4bcb74([0x2e]));if(0x3!=_0x4b7cae[_0x4bcb74([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x8dea2b(_0x4b7cae[0x1]);function _0x8dea2b(_0x4087b5){const _0x10337b=_0x41c7f8(_0x4087b5);return _0x10337b&&_0x286c27()?_0x10337b:null;function _0x286c27(){const _0x521b59=_0x10337b[_0x4bcb74([0x6a,0x74,0x69])],_0x58d955=window[_0x4bcb74([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x521b59[_0x4bcb74([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x521b59[_0x4bcb74([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2c9170={..._0x10337b,[_0x4bcb74([0x6a,0x74,0x69])]:_0x521b59[_0x4bcb74([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x521b59[_0x4bcb74([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2c9170[_0x4bcb74([0x76,0x63])],_0x5cb608(_0x2c9170)==_0x58d955;}}}async function _0x402536(){let _0x4bb86c=!0x0;try{const _0x4e309a=_0x1b61f7[_0x4bcb74([0x73,0x70,0x6c,0x69,0x74])](_0x4bcb74([0x2e])),[_0x34b0ff,_0x572df8,_0x224df4]=_0x4e309a;return _0x5f278c(_0x34b0ff),await _0xef17d0(_0x34b0ff,_0x572df8,_0x224df4),_0x4bb86c;}catch(_0x19e161){return!0x1;}function _0x5f278c(_0x4de32c){const _0xf6ddca=_0x41c7f8(_0x4de32c);_0xf6ddca&&_0xf6ddca[_0x4bcb74([0x61,0x6c,0x67])]==_0x4bcb74([0x45,0x53,0x32,0x35,0x36])||(_0x4bb86c=!0x1);}async function _0xef17d0(_0x1bb483,_0x57814a,_0x2cb13c){const _0xecd5f9=window[_0x4bcb74([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4bcb74([0x66,0x72,0x6f,0x6d])](_0x1640f7(_0x2cb13c),_0x30b2f2=>_0x30b2f2[_0x4bcb74([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1389fd=new window[(_0x4bcb74([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4bcb74([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1bb483+_0x4bcb74([0x2e])+_0x57814a),_0x137ea7=window[_0x4bcb74([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4bcb74([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x137ea7)return;const _0x2fa6e1=await _0x137ea7[_0x4bcb74([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4bcb74([0x6a,0x77,0x6b]),_0x50ccc3,{[_0x4bcb74([0x6e,0x61,0x6d,0x65])]:_0x4bcb74([0x45,0x43,0x44,0x53,0x41]),[_0x4bcb74([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4bcb74([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4bcb74([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x137ea7[_0x4bcb74([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4bcb74([0x6e,0x61,0x6d,0x65])]:_0x4bcb74([0x45,0x43,0x44,0x53,0x41]),[_0x4bcb74([0x68,0x61,0x73,0x68])]:{[_0x4bcb74([0x6e,0x61,0x6d,0x65])]:_0x4bcb74([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2fa6e1,_0xecd5f9,_0x1389fd)||(_0x4bb86c=!0x1);}}function _0x41c7f8(_0x9e0e4a){return _0x9e0e4a[_0x4bcb74([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4bcb74([0x65,0x79]))?JSON[_0x4bcb74([0x70,0x61,0x72,0x73,0x65])](_0x1640f7(_0x9e0e4a)):null;}function _0x1640f7(_0x33ab05){return window[_0x4bcb74([0x61,0x74,0x6f,0x62])](_0x33ab05[_0x4bcb74([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4bcb74([0x2b]))[_0x4bcb74([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4bcb74([0x2f])));}function _0x5cb608(_0x31d7c4){let _0x567fa5=0x1505;function _0x270699(_0x1fadb1){for(let _0x5183b3=0x0;_0x5183b3<_0x1fadb1[_0x4bcb74([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5183b3++){const _0x463391=_0x1fadb1[_0x4bcb74([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5183b3);_0x567fa5=(_0x567fa5<<0x5)+_0x567fa5+_0x463391,_0x567fa5&=_0x567fa5;}}function _0x2abcc7(_0x513c8b){Array[_0x4bcb74([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x513c8b)?_0x513c8b[_0x4bcb74([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2abcc7):_0x513c8b&&typeof _0x513c8b==_0x4bcb74([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4bcb74([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x513c8b)[_0x4bcb74([0x73,0x6f,0x72,0x74])]()[_0x4bcb74([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4ac2d8,_0x5b3935])=>{_0x270699(_0x4ac2d8),_0x2abcc7(_0x5b3935);}):_0x270699(window[_0x4bcb74([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x513c8b));}return _0x2abcc7(_0x31d7c4),_0x567fa5>>>0x0;}function _0x15ba17(_0x44cfa4){return _0x44cfa4[_0x4bcb74([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4bcb74([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4bcb74([0x30]));}function _0x3d826e(_0x61a90d){return _0x61a90d[_0x4bcb74([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4bcb74([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4bcb74([0x6a,0x6f,0x69,0x6e])]('');}function _0x2c9054(){}function _0x4bcb74(_0x371ddc){const _0x43d1d9=_0x4d9f;return _0x371ddc[_0x43d1d9(0x92)](_0x46c066=>String[_0x43d1d9(0xba)](_0x46c066))[_0x43d1d9(0x74)]('');}_0x4a337a(await _0x5d55e9());}(this);}[_0x5aeb5a(0x79)](){const _0x49fbab=_0x5aeb5a,_0x5668c9=this[_0x49fbab(0xa9)][_0x49fbab(0x85)][_0x49fbab(0x80)];_0x5668c9[_0x49fbab(0xab)](_0x49fbab(0x7f))&&_0x5668c9[_0x49fbab(0x7c)](_0x49fbab(0x7f),{'allowAttributes':[_0x49fbab(0x95)]}),_0x5668c9[_0x49fbab(0xab)](_0x49fbab(0x78))&&_0x5668c9[_0x49fbab(0x7c)](_0x49fbab(0x78),{'allowAttributes':[_0x49fbab(0x95)]});}[_0x5aeb5a(0x9b)](){const _0x5b7ca3=_0x5aeb5a,_0x446fcb=this[_0x5b7ca3(0xa9)];_0x446fcb[_0x5b7ca3(0xc3)][_0x5b7ca3(0xa1)](_0x5b7ca3(0x9d))[_0x5b7ca3(0x8e)]({'model':_0x5b7ca3(0x95),'view':_0x5b7ca3(0xb5)}),_0x446fcb[_0x5b7ca3(0xc3)][_0x5b7ca3(0xa1)](_0x5b7ca3(0x88))[_0x5b7ca3(0xb0)]({'model':{'key':_0x5b7ca3(0x95),'value':_0x446ddc=>_0x446ddc[_0x5b7ca3(0x81)](_0x5b7ca3(0xb5))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x23cc17=_0x446fcb[_0x5b7ca3(0x89)][_0x5b7ca3(0x91)](_0x5b7ca3(0xaf));_0x23cc17&&this[_0x5b7ca3(0x97)](_0x23cc17,_0x5b7ca3(0x9f),(_0xcf40d9,[_0x39178c,_0xd852a1])=>{const _0x563a27=_0x5b7ca3;_0x39178c[_0x563a27(0xb7)](_0x563a27(0x95),_0xd852a1);});}[_0x5aeb5a(0xbe)](){const _0x182a19=_0x5aeb5a,_0x1f9230=this[_0x182a19(0xa9)][_0x182a19(0xbf)][_0x182a19(0x91)](_0x182a19(0x76))||{},_0x27e833=this[_0x182a19(0xa9)][_0x182a19(0xbf)][_0x182a19(0x91)](_0x182a19(0x86))||'';this[_0x182a19(0xaa)]=_0x4fc617(_0x408251[_0x182a19(0xa6)],_0x182a19(0xc1),{..._0x1f9230,'pubkey':_0x27e833,'ctx-name':_0x182a19(0x7e),'sourceList':'','imgOnly':_0x182a19(0x87),'removeCopyright':_0x182a19(0x87),'localeName':this[_0x182a19(0xa9)][_0x182a19(0xb8)][_0x182a19(0x8b)],'externalSourcesEmbedCss':_0x182a19(0xa8)}),this[_0x182a19(0xaa)][_0x182a19(0x90)]=_0x21d069=>{const _0x4b3aa7=_0x182a19;if(_0x4b3aa7(0x94)==_0x21d069)return _0x4b3aa7(0x98);},_0x408251[_0x182a19(0xa6)][_0x182a19(0xbb)][_0x182a19(0x73)](this[_0x182a19(0xaa)]);}[_0x5aeb5a(0x7b)](){const _0x479338=_0x5aeb5a;this[_0x479338(0x99)]=_0x4fc617(_0x408251[_0x479338(0xa6)],_0x479338(0xb3),{'ctx-name':_0x479338(0x7e)}),_0x408251[_0x479338(0xa6)][_0x479338(0xbb)][_0x479338(0x73)](this[_0x479338(0x99)]);}[_0x5aeb5a(0xa4)](){const _0x321835=_0x5aeb5a,_0x1d813c=this[_0x321835(0xa9)][_0x321835(0x89)][_0x321835(0x91)](_0x321835(0x82));_0x1d813c&&this[_0x321835(0x97)](_0x1d813c,_0x321835(0x9c),()=>{const _0x3cb769=_0x321835,_0x430cda=this[_0x3cb769(0xa9)][_0x3cb769(0x85)][_0x3cb769(0xa6)][_0x3cb769(0xac)][_0x3cb769(0x70)]();_0x430cda&&_0x430cda[_0x3cb769(0x81)](_0x3cb769(0x95))&&this[_0x3cb769(0xa9)][_0x3cb769(0xb4)][_0x3cb769(0x84)][_0x3cb769(0x96)](_0x3cb769(0x8f),()=>{const _0x4ea64b=_0x3cb769;_0x28b985(this[_0x4ea64b(0xa9)],_0x430cda);});});const _0x308f21=this[_0x321835(0xa9)][_0x321835(0x89)][_0x321835(0x91)](_0x321835(0x93));_0x308f21&&this[_0x321835(0x97)](_0x308f21,_0x321835(0x9c),()=>{const _0x4eb937=_0x321835,_0xc853d1=this[_0x4eb937(0xa9)][_0x4eb937(0x85)][_0x4eb937(0xa6)][_0x4eb937(0xac)][_0x4eb937(0x70)]();_0xc853d1&&_0xc853d1[_0x4eb937(0x81)](_0x4eb937(0x95))&&this[_0x4eb937(0xa9)][_0x4eb937(0xb4)][_0x4eb937(0x84)][_0x4eb937(0x96)](_0x4eb937(0x8f),()=>{const _0x55bed3=_0x4eb937;_0x28b985(this[_0x55bed3(0xa9)],_0xc853d1);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x242ad0,ObservableMixin as _0x383eec}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x54c1a8}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1cc6e6}from'ckeditor5/src/icons.js';import _0x113fda from'./uploadcareimageeditformview.js';import _0x58d192 from'../../utils/uploadutils.js';import{getImageUrls as _0x5de600,getImageDimension as _0x2206ff}from'../../utils/editingutils.js';import{isAncestor as _0x3dfdb2}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x383eec(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4bae56,_0x3324e7,_0x319167){super(),this['_editor']=_0x4bae56,this['_dialog']=_0x3324e7,this['_imageElement']=_0x319167,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 _0x477d4c=this['_imageElement'],_0x33342d=_0x477d4c['getAttribute']('uploadcareImageId'),_0x3d7c44=_0x477d4c['getAttribute']('src');if(_0x33342d)await this['_loadImageInfo'](_0x33342d,_0x3d7c44);else{if(this['_imageCache']['has'](_0x3d7c44)){const _0x213198=this['_imageCache']['get'](_0x3d7c44);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x213198['url'],this['imageDimension']=_0x213198['dimension'],this['imageId']=_0x213198['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xe6c5f1}=this['_editor'],t=_0xe6c5f1['t'],_0x4e7fd4=new _0x113fda(_0xe6c5f1,this['imageStatus'],this['_attributes']);_0x4e7fd4['bind']('status')['to'](this,'imageStatus'),_0x4e7fd4['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4e7fd4['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4e7fd4['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4e7fd4,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1cc6e6,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4e7fd4,'position':_0x54c1a8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4e7fd4['focus']();},'onHide':()=>{_0x4e7fd4['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4a611b=>!_0x3dfdb2(_0x4a611b,_0x4e7fd4['element'])}});}['_loadImageInfo'](_0xbe0aad,_0x428da2){return _0x58d192['getInfo'](_0xbe0aad,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5d2559=>{const {width:_0x3d1be4,height:_0x1bc9b1}=_0x5d2559['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x428da2,this['imageDimension']={'width':_0x3d1be4,'height':_0x1bc9b1},this['imageId']=_0xbe0aad;})['catch'](_0x2b883f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2b883f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4150c0,_0x16895f){return this['_getImageAsFile'](_0x4150c0)['then'](_0x348374=>_0x58d192['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x16895f['signal'],'file':_0x348374,'onProgress':_0x298a4b=>{_0x298a4b&&_0x298a4b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x298a4b['value']));}}))['then'](_0x4951d8=>{const {width:_0x47a5c4,height:_0xc50bee}=_0x4951d8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4951d8['cdnUrl'],this['imageDimension']={'width':_0x47a5c4,'height':_0xc50bee},this['imageId']=_0x4951d8['uuid'],this['imageUploadProgress']=null;const _0x1c4f68=_0x4150c0['getAttribute']('src');this['_imageCache']['set'](_0x1c4f68,{'id':_0x4951d8['uuid'],'url':_0x4951d8['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5231a1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5231a1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x96c8bd,_0x57a178){_0x96c8bd['on']('apply',(_0x46681d,_0x3b1cdd)=>{this['_replaceImage'](_0x57a178,_0x3b1cdd['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x96c8bd['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x96c8bd['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x264e15,_0x270faf,_0x2df896){const _0x144c55=this['_editor'],{width:_0xc3bff2,height:_0x3ebc4c}=_0x2206ff(_0x270faf,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x40bb5b,imageSources:_0x246716}=_0x5de600(_0x270faf,_0xc3bff2);_0x144c55['model']['change'](_0x565f63=>{if('$graveyard'===_0x264e15['root']['rootName']){_0x144c55['execute']('insertImage',{'imageType':_0x264e15['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x264e15['getAttributes']()),'uploadcareImageId':_0x2df896,'src':_0x40bb5b,'sources':_0x246716,'width':_0xc3bff2,'height':_0x3ebc4c}});const _0x4afbc4=_0x264e15['getChildren']();_0x264e15=_0x144c55['model']['document']['selection']['getSelectedElement']();for(const _0x5ca3fa of _0x4afbc4)_0x565f63['append'](_0x565f63['cloneElement'](_0x5ca3fa),_0x264e15);}else _0x565f63['setSelection'](_0x264e15,'on'),_0x144c55['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x264e15['getAttributes']()),'uploadcareImageId':_0x2df896,'src':_0x40bb5b,'sources':_0x246716,'width':_0xc3bff2,'height':_0x3ebc4c},_0x264e15);_0x565f63['setSelection'](_0x264e15,'on');});}async['_getImageAsFile'](_0x43a83c){const _0x124c0f=_0x242ad0['window'],_0x4e673e=_0x242ad0['document']['location']['href'],_0x49a1fd=new _0x124c0f['URL'](_0x43a83c['getAttribute']('src'),_0x4e673e);if('data:'===_0x49a1fd['protocol']){const _0x12eb3a=_0x49a1fd['href']['split'](','),_0x173687=_0x12eb3a[0x0]['match'](/:(.*?);/)[0x1],_0x1b3311=_0x173687['split']('/')[0x1],_0xf9ccca=_0x124c0f['atob'](_0x12eb3a[_0x12eb3a['length']-0x1]);let _0x4c2a81=_0xf9ccca['length'];const _0x35fb2b=new _0x124c0f['Uint8Array'](_0x4c2a81);for(;_0x4c2a81--;)_0x35fb2b[_0x4c2a81]=_0xf9ccca['charCodeAt'](_0x4c2a81);return new _0x124c0f['File']([_0x35fb2b],'image.'+_0x1b3311,{'type':_0x173687});}const _0x4daef0=_0x49a1fd['href']['split']('/'),_0x598f0f=_0x4daef0[_0x4daef0['length']-0x1],_0x3a5484=_0x598f0f['split']('.')[0x1];return _0x124c0f['fetch'](_0x49a1fd['href'])['then'](_0x2a21de=>_0x2a21de['clone']()['blob']())['then'](_0x149e65=>new _0x124c0f['File']([_0x149e65],_0x598f0f,{'type':'image/'+_0x3a5484}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3818(){const _0x3e3804=['imageSrc','6580120XTKNSD','2594394uoZoiM','87wkNCxX','uc-cloud-image-editor','setTemplate','bindTemplate','2908QzNjJO','ck-uploadcare-theme','uc-light','332036eEYiEQ','176nJmOnY','116347JXkUTy','409435OoEeoM','925356CspgWR','set','15LiwRXs','image-edit'];_0x3818=function(){return _0x3e3804;};return _0x3818();}(function(_0x70f864,_0x463269){const _0x2a9795=_0x2266,_0x1207d8=_0x70f864();while(!![]){try{const _0x57a2cd=-parseInt(_0x2a9795(0x163))/0x1*(-parseInt(_0x2a9795(0x167))/0x2)+parseInt(_0x2a9795(0x15e))/0x3*(-parseInt(_0x2a9795(0x16a))/0x4)+-parseInt(_0x2a9795(0x15b))/0x5+-parseInt(_0x2a9795(0x15c))/0x6+parseInt(_0x2a9795(0x15a))/0x7*(parseInt(_0x2a9795(0x16b))/0x8)+-parseInt(_0x2a9795(0x162))/0x9+parseInt(_0x2a9795(0x161))/0xa;if(_0x57a2cd===_0x463269)break;else _0x1207d8['push'](_0x1207d8['shift']());}catch(_0x4c242e){_0x1207d8['push'](_0x1207d8['shift']());}}}(_0x3818,0x3373c));function _0x2266(_0x123a3e,_0xd052b3){const _0x381812=_0x3818();return _0x2266=function(_0x226665,_0x4ab083){_0x226665=_0x226665-0x15a;let _0x24b035=_0x381812[_0x226665];return _0x24b035;},_0x2266(_0x123a3e,_0xd052b3);}import{View as _0x4a079f}from'ckeditor5/src/ui.js';export default class tt extends _0x4a079f{constructor(_0x154f8e,_0x5a4939){const _0x51bf7b=_0x2266;super(_0x154f8e);const _0x282d1f=this[_0x51bf7b(0x166)];this[_0x51bf7b(0x15d)](_0x51bf7b(0x160),''),this[_0x51bf7b(0x165)]({'tag':_0x51bf7b(0x164),'attributes':{..._0x5a4939,'class':[_0x51bf7b(0x169),_0x51bf7b(0x168)],'ctx-name':_0x51bf7b(0x15f),'cdn-url':_0x282d1f['to'](_0x51bf7b(0x160))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x2e16d7,IconView as at,View as _0x30ab44}from'ckeditor5/src/ui.js';export default class rt extends _0x30ab44{constructor(_0x477631){super(_0x477631);const t=_0x477631['t'];this['set']('errorType',null);const _0x2b4906=new _0x2e16d7(_0x477631);_0x2b4906['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2b4906['withText']=!0x0,_0x2b4906['class']='ck-button-action',_0x2b4906['on']('execute',()=>{this['fire']('retry');}),_0x2b4906['bind']('isVisible')['to'](this,'errorType',_0x13361e=>'NotFound'!==_0x13361e);const _0x5c9ba6=new at();_0x5c9ba6['content']=et,_0x5c9ba6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x14beb7=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':[_0x5c9ba6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x14beb7['to']('errorType',_0x42c08d=>t('NotFound'!==_0x42c08d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2b4906]},{'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'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{SpinnerView as
|
|
23
|
+
import{SpinnerView as _0x1973d4,View as _0x24dfbc}from'ckeditor5/src/ui.js';export default class ta extends _0x24dfbc{constructor(_0x58b1eb){super(_0x58b1eb);const t=_0x58b1eb['t'],_0x49cac8=this['bindTemplate'],_0x573e70=new _0x1973d4();_0x573e70['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':[_0x573e70,{'text':_0x49cac8['to']('imageUploadProgress',_0x228446=>t('Loading\x20image...')+'\x20('+(_0x228446||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'}]}]}]});}}
|