@ckeditor/ckeditor5-uploadcare 45.1.0-alpha.2 → 45.1.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/uploadcareediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x1216db,Command as _0x566b9a}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1966ec,IconGooglePhotos as _0x2ce281,IconGoogleDrive as _0x381efa,IconFacebook as _0x246508,IconDropbox as _0x5500ff,IconUploadcareLink as _0x3fe24f,IconUploadcareImageUpload as _0xaf9236,IconError as et,IconUploadcareImageEdit as _0x493b43}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x50e41f,MenuBarMenuListItemButtonView as _0x422e7c,View as _0xbcde45,FocusCycler as _0x59b821,Dialog as _0x2e6829,DialogViewPosition as _0x4e3fb1,SpinnerView as _0x1d2eec,IconView as at,Notification as _0x3c8fee}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3be67e,DomEmitterMixin as _0x2e263f,global as _0x39abb1,getAncestors as _0x4cb2bd,ObservableMixin as _0xee8d54,createElement as _0xe1a070,uid as _0x53be81}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x447259}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5beac7,info as _0x5ed298}from'@uploadcare/upload-client';import*as _0x5ea66a from'@uploadcare/file-uploader';var o=function(_0x3501f3){return _0x3501f3['Local']='local',_0x3501f3['URL']='url',_0x3501f3['Dropbox']='dropbox',_0x3501f3['GDrive']='gdrive',_0x3501f3['Facebook']='facebook',_0x3501f3['GPhotos']='gphotos',_0x3501f3['OneDrive']='onedrive',_0x3501f3;}({});function _(_0x18e28f,_0x350a2d,_0x57fdff){const t=_0x18e28f['t'],_0x437a4d=_0x18e28f['t'];switch(_0x350a2d){case o['Local']:return{'text':_0x437a4d('Insert'===_0x57fdff?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x437a4d('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x57fdff?_0x437a4d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x437a4d('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x57fdff?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x57fdff?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x57fdff?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x57fdff?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x57fdff?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x350a2d;}}class e extends _0x1216db{['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 _0x3978dc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f235b;for(const _0x32debc in _0x3978dc){const _0xbcc655=_0x32debc,_0xd7816c=_0x3978dc[_0xbcc655];if('uploadcareLicenseKeyValid'==_0xd7816c||'uploadcareLicenseKeyInvalid'==_0xd7816c||'uploadcareLicenseKeyExpired'==_0xd7816c||'uploadcareLicenseKeyDomainLimit'==_0xd7816c||'uploadcareLicenseKeyNotAllowed'==_0xd7816c||'uploadcareLicenseKeyEvaluationLimit'==_0xd7816c||'uploadcareLicenseKeyTrialLimit'==_0xd7816c||'uploadcareLicenseKeyUsageLimit'==_0xd7816c){delete _0x3978dc[_0xbcc655],_0x1f235b=_0xd7816c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1f235b&&_0x3978dc['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1f235b&&_0x3978dc['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1f235b&&_0x3978dc['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1f235b&&_0x3978dc['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1f235b&&_0x3978dc['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1f235b&&_0x3978dc['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1f235b&&_0x3978dc['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x35e915}=this,_0x3d8bf0=_0x35e915['commands']['get']('uploadcare');if(!_0x3d8bf0)return;const _0x28dfc0=this['_normalizeConfigSourceList'](_0x35e915['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x571290,_0x27c606)=>{const _0x211085=this['_getIntegrationKey'](_0x27c606['type']);return _0x571290[_0x211085]||(_0x571290[_0x211085]=[]),_0x571290[_0x211085]['push'](_0x27c606),_0x571290;},{});_0x35e915['plugins']['has']('ImageInsertUI')&&_0x35e915['commands']['get']('uploadcare')&&Object['entries'](_0x28dfc0)['forEach'](([_0xfc5e3,_0x46ec58])=>{_0x35e915['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xfc5e3,'observable':()=>_0x3d8bf0,'buttonViewCreator':()=>this['_createToolbarButton'](_0x46ec58),'formViewCreator':()=>this['_createDropdownButtons'](_0x46ec58),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x46ec58),'override':'assetManager'!==_0xfc5e3});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x296b23){const {locale:_0xe09a5c}=this['editor'];return _0x296b23['map'](_0x2a1ecb=>{const _0x81c85e=_(_0xe09a5c,_0x2a1ecb,'Insert');switch(_0x2a1ecb){case o['Local']:return{'icon':_0xaf9236,'type':o['Local'],..._0x81c85e};case o['URL']:return{'icon':_0x3fe24f,'type':o['URL'],..._0x81c85e};case o['Dropbox']:return{'icon':_0x5500ff,'type':o['Dropbox'],..._0x81c85e};case o['Facebook']:return{'icon':_0x246508,'type':o['Facebook'],..._0x81c85e};case o['GDrive']:return{'icon':_0x381efa,'type':o['GDrive'],..._0x81c85e};case o['GPhotos']:return{'icon':_0x2ce281,'type':o['GPhotos'],..._0x81c85e};case o['OneDrive']:return{'icon':_0x1966ec,'type':o['OneDrive'],..._0x81c85e};}});}['_getIntegrationKey'](_0x14271b){switch(_0x14271b){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2ef723,_0xbf9b29){const _0x4629e2=this['editor'],_0x5dfe30=new _0x2ef723(_0x4629e2['locale']),_0x296fbe=_0x4629e2['commands']['get']('uploadcare');return _0x5dfe30['bind']('isEnabled')['to'](_0x296fbe),_0x5dfe30['on']('execute',()=>{_0x296fbe['execute'](_0xbf9b29);}),_0x5dfe30;}['_createToolbarButton'](_0x31b82e){const {locale:_0x1eed50}=this['editor'],_0x56661c=this['editor']['plugins']['get']('ImageInsertUI'),_0x28b318=_0x31b82e[0x0],_0x756277=this['_createButton'](_0x50e41f,_0x28b318['type']);return _0x756277['icon']=_0x28b318['icon'],_0x756277['bind']('label')['to'](_0x56661c,'isImageSelected',_0x552eb6=>_(_0x1eed50,_0x28b318['type'],_0x552eb6?'Replace':'Insert')['text']),_0x756277['tooltip']=!0x0,_0x756277;}['_createDropdownButtons'](_0x54badc){const {locale:_0x22fd12}=this['editor'],_0x2b3ecd=this['editor']['plugins']['get']('ImageInsertUI');return _0x54badc['map'](_0x539773=>{const _0x438ad1=this['_createButton'](_0x50e41f,_0x539773['type']);return _0x438ad1['withText']=!0x0,_0x438ad1['icon']=_0x539773['icon'],_0x438ad1['bind']('label')['to'](_0x2b3ecd,'isImageSelected',_0x1e4749=>_(_0x22fd12,_0x539773['type'],_0x1e4749?'Replace':'Insert')['text']),_0x438ad1;});}['_createMenuBarButtons'](_0x28da15){return _0x28da15['map'](_0xaea0c0=>{const _0x1c4032=this['_createButton'](_0x422e7c,_0xaea0c0['type']);return _0x1c4032['icon']=_0xaea0c0['icon'],_0x1c4032['label']=_0xaea0c0['shortText'],_0x1c4032;});}}class q extends _0xbcde45{['focusTracker'];['focusCycler'];constructor(_0xa90dc1){super(_0xa90dc1),this['focusTracker']=new _0x3be67e(),this['focusCycler']=new _0x59b821({'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(_0x9a1c8e){super(_0x9a1c8e),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(_0x52fc7f,_0xc16ef2){const _0x1c1258=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3a9320=>_0x3a9320<=_0xc16ef2)['map'](_0x2f203f=>_0x52fc7f['replace'](/\/$/,'')+'/-/resize/'+_0x2f203f+'x/\x20'+_0x2f203f+'w');return{'imageFallbackUrl':_0x52fc7f,'imageSources':[{'srcset':_0x1c1258['join'](',\x20'),'sizes':'(max-width:\x20'+_0xc16ef2+'px)\x20100vw,\x20'+_0xc16ef2+'px','type':'image/webp'}]};}function A(_0x13db47,_0x4b1e1c,_0x5a1553){const _0x3061a0=_0x13db47['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3061a0?parseInt(_0x3061a0[0x1],0xa):_0x4b1e1c,'height':_0x3061a0?parseInt(_0x3061a0[0x2],0xa):_0x5a1553};}function m(_0x320a21,_0x4a8032){const _0x36b61d=Object['create'](_0x2e263f),_0x5d98d9=_0x320a21['plugins']['get']('ImageUtils'),_0x13aee0=_0x320a21['editing']['mapper']['toViewElement'](_0x4a8032),_0x4f5a57=_0x5d98d9['findViewImgElement'](_0x13aee0),_0x5ef680=_0x320a21['editing']['view']['domConverter']['viewToDom'](_0x4f5a57),_0x23b2eb=_0x4a8032['getAttribute']('width'),_0x27ce57=_0x4a8032['getAttribute']('height'),_0x1c082c='image-processing';_0x320a21['editing']['view']['change'](_0xadc138=>{_0xadc138['addClass'](_0x1c082c,_0x13aee0),_0xadc138['setStyle']('aspect-ratio',_0x23b2eb+'/'+_0x27ce57,_0x4f5a57);}),_0x36b61d['listenTo'](_0x5ef680,'load',()=>{_0x36b61d['stopListening'](_0x5ef680,'load'),_0x320a21['editing']['view']['change'](_0x34efc6=>{_0x34efc6['removeClass'](_0x1c082c,_0x13aee0),_0x34efc6['removeStyle']('aspect-ratio',_0x4f5a57);});});}function V(_0x2e12ec){if(Array['isArray'](_0x2e12ec)){const _0x3900d1=_0x2e12ec['map'](V);return _0x240c7e=>_0x3900d1['some'](_0x4cfbc7=>_0x4cfbc7(_0x240c7e));}if('origin'==_0x2e12ec){const _0x46e2c9=_0x39abb1['window']['location']['origin'];return _0x3d4dc1=>new URL(_0x3d4dc1,_0x39abb1['document']['baseURI'])['origin']==_0x46e2c9;}return'function'==typeof _0x2e12ec?_0x2e12ec:_0x2e12ec instanceof RegExp?_0x4c56a4=>!(!_0x4c56a4['match'](_0x2e12ec)&&!_0x4c56a4['replace'](/^https?:\/\//,'')['match'](_0x2e12ec)):()=>!0x1;}function F(_0x54e3b6,_0x18a778){return _0x4cb2bd(_0x54e3b6['target'])['includes'](_0x18a778);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0xee8d54(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x22fe2e,_0x59b169,_0x437ac8){super(),this['_editor']=_0x22fe2e,this['_editing']=_0x59b169,this['_dialog']=_0x22fe2e['plugins']['get'](_0x2e6829),this['_api']=_0x59b169['ctxElement']['getAPI'](),this['_type']=_0x437ac8,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:_0x45b10a,model:_0xba5aa5}=this['_editor'],_0xa3f160=_0xba5aa5['document']['selection']['getSelectedElement'](),_0x4023a3=_0xa3f160&&(_0xa3f160['is']('element','imageBlock')||_0xa3f160['is']('element','imageInline'));this['_formView']=new S(_0x45b10a),this['_dialog']['show']({'id':'uploadCare','icon':_0xaf9236,'title':_(_0x45b10a,this['_type'],_0x4023a3?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4e3fb1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x396148=>!F(_0x396148,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x9c389e}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3ccfd9=>{const _0x358de3=_0x9c389e['length'];for(const _0x224382 of _0x9c389e){const _0x54f454=_0x224382===_0x9c389e[_0x358de3-0x1],{cdnUrl:_0x2c3c3e,fileInfo:_0x5cb797}=_0x224382;if(!_0x2c3c3e||!_0x5cb797)continue;const {width:_0x17fa16,height:_0x28337c}=_0x5cb797['imageInfo'],_0xb24df4=A(_0x2c3c3e,_0x17fa16,_0x28337c),_0x4ca9d8=E(_0x2c3c3e,_0xb24df4['width']),_0x236228={'id':_0x5cb797['uuid'],'type':'image','attributes':{'imageDimension':_0xb24df4,..._0x4ca9d8}};this['_insertAsset'](_0x236228,_0x54f454,_0x3ccfd9);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x12e5db=>{'idle'===_0x12e5db['detail']['status']&&!_0x12e5db['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x45c3a1,_0xbf8f2d,_0x34c862){const _0x2f7665=this['_editor']['model']['document']['selection'],_0x4c96d8=_0x2f7665['getSelectedElement'](),_0x10defd=!(!_0x4c96d8||!_0x4c96d8['is']('element','imageInline'));_0x34c862['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x45c3a1,_0x10defd),_0xbf8f2d||_0x34c862['setSelection'](_0x2f7665['getLastPosition']());}['_insertImage'](_0x23bd54,_0x366d64){const _0x3026f7=this['_editor'],{imageDimension:_0x21db11,imageFallbackUrl:_0x17a92a,imageSources:_0x3dc9e2}=_0x23bd54['attributes'];_0x3026f7['execute']('insertImage',{'imageType':_0x366d64?'imageInline':null,'source':{'uploadcareImageId':_0x23bd54['id'],'src':_0x17a92a,'sources':_0x3dc9e2,..._0x21db11}});}}class n extends _0x566b9a{['_editing'];['_controller']=null;static get['requires'](){return[_0x2e6829,i];}constructor(_0xd05ae7){super(_0xd05ae7),this['_editing']=_0xd05ae7['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xcb2b69){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0xcb2b69);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x49ad1e,publicKey:_0x25e08a,signal:_0x4cdd4c,onProgress:_0x14c24d}){return _0x5beac7(_0x49ad1e,{'publicKey':_0x25e08a,'store':'auto','signal':_0x4cdd4c,'onProgress':_0x14c24d});}static['getInfo'](_0x174e20,_0x5dd04f){return _0x5ed298(_0x174e20,_0x5dd04f);}}class p extends _0x1216db{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x447259,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x44a563=this['editor'];if(!!!_0x44a563['config']['get']('uploadcare'))return;_0x44a563['plugins']['get'](_0x447259)['createUploadAdapter']=_0x3f1812=>new x(_0x3f1812,_0x44a563),_0x44a563['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xea027c,{imageElement:_0x302c11,data:_0x8c65c2})=>{_0x44a563['model']['change'](_0x150348=>{_0x150348['setAttribute']('uploadcareImageId',_0x8c65c2['uploadcareImageId'],_0x302c11);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x3c7d9b,_0x11047c){this['loader']=_0x3c7d9b,this['editor']=_0x11047c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4a07d2=this['editor']['config']['get']('uploadcare.pubkey'),_0x154412=await this['loader']['file'];return C['upload']({'file':_0x154412,'publicKey':_0x4a07d2,'signal':this['controller']['signal'],'onProgress':_0x2f4dd3=>{_0x2f4dd3&&_0x2f4dd3['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2f4dd3['value']);}})['then'](async _0x511dec=>{const {imageFallbackUrl:_0x33090d,imageSources:_0x5d613b}=E(_0x511dec['cdnUrl'],_0x511dec['imageInfo']['width']);return{'uploadcareImageId':_0x511dec['uuid'],'default':_0x33090d,'sources':_0x5d613b};})['catch'](()=>{const _0x4c9441=t('Cannot\x20upload\x20file:')+('\x20'+_0x154412['name']+'.');return Promise['reject'](_0x4c9441);});}['abort'](){this['controller']['abort']();}}class i extends _0x1216db{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x2e6829];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x442cef=this['editor'];_0x442cef['commands']['add']('uploadcare',new n(_0x442cef));}['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 _0x2a5ae5=_0x39abb1['document']['querySelector']('input[uploadcare-file-input]');_0x2a5ae5&&_0x2a5ae5['remove']();}),async function(_0x5721a5){const _0x51cfae=_0x2cae23([0x4e,0x46,0x77,0x5a,0x67,0x59,0x73,0x4d,0x37,0x75,0x4c,0x70,0x31,0x62,0x49,0x57,0x69,0x44,0x35,0x78,0x55,0x6e,0x41,0x6b,0x38,0x33,0x32,0x53,0x48,0x63,0x52,0x39,0x30,0x6a,0x58,0x54,0x71,0x4f,0x68,0x65,0x64,0x36,0x47,0x61,0x66,0x74,0x34,0x79,0x56,0x76,0x50,0x42,0x43,0x4b,0x4a,0x7a,0x51,0x72,0x6d,0x6f,0x6c,0x45]),_0x9efcf5=0x23c72efe,_0x54489b=0x23c049a6^_0x9efcf5,_0x3a015b=window[_0x2cae23([0x44,0x61,0x74,0x65])][_0x2cae23([0x6e,0x6f,0x77])](),_0x4ff2a5=_0x5721a5[_0x2cae23([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47e327=new window[(_0x2cae23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c5866=>{_0x4ff2a5[_0x2cae23([0x6f,0x6e,0x63,0x65])](_0x2cae23([0x72,0x65,0x61,0x64,0x79]),_0x5c5866);}),_0xebfbe0={[_0x2cae23([0x6b,0x74,0x79])]:_0x2cae23([0x45,0x43]),[_0x2cae23([0x75,0x73,0x65])]:_0x2cae23([0x73,0x69,0x67]),[_0x2cae23([0x63,0x72,0x76])]:_0x2cae23([0x50,0x2d,0x32,0x35,0x36]),[_0x2cae23([0x78])]:_0x2cae23([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]),[_0x2cae23([0x79])]:_0x2cae23([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]),[_0x2cae23([0x61,0x6c,0x67])]:_0x2cae23([0x45,0x53,0x32,0x35,0x36])},_0x23490a=_0x4ff2a5[_0x2cae23([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2cae23([0x67,0x65,0x74])](_0x2cae23([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2c998e(){let _0x23df1b,_0x25ee3c=null,_0x1d986c=null;try{if(_0x23490a==_0x2cae23([0x47,0x50,0x4c]))return _0x2cae23([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x23df1b=_0x2fb725(),!_0x23df1b)return _0x2cae23([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x23df1b[_0x2cae23([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d986c=_0x107ce7(_0x23df1b[_0x2cae23([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x23df1b[_0x2cae23([0x6a,0x74,0x69])])),await _0x47bf36()?_0x2a1a5f()?_0x237965()?_0x2cae23([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c4e05()?(_0x23df1b[_0x2cae23([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cae23([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x25ee3c=_0x556228(_0x2cae23([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x23df1b[_0x2cae23([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cae23([0x74,0x72,0x69,0x61,0x6c])&&(_0x25ee3c=_0x556228(_0x2cae23([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5dd6d0()):_0x2cae23([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2cae23([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2cae23([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2f4eae){return _0x2cae23([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x237965(){const _0x53a51a=[_0x2cae23([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2cae23([0x74,0x72,0x69,0x61,0x6c])][_0x2cae23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23df1b[_0x2cae23([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3a015b/0x3e8:0xe10*_0x54489b;return _0x23df1b[_0x2cae23([0x65,0x78,0x70])]<_0x53a51a;}function _0x2a1a5f(){const _0x156d59=_0x23df1b[_0x2cae23([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x156d59&&(!!_0x156d59[_0x2cae23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cae23([0x2a]))||!!_0x156d59[_0x2cae23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cae23([0x55,0x50,0x4c,0x43])));}function _0x2c4e05(){const _0x24c61e=_0x23df1b[_0x2cae23([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x24c61e||0x0==_0x24c61e[_0x2cae23([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f363a}=new URL(window[_0x2cae23([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x24c61e[_0x2cae23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f363a))return!0x0;const _0x3b1b88=_0x4f363a[_0x2cae23([0x73,0x70,0x6c,0x69,0x74])](_0x2cae23([0x2e]));return _0x24c61e[_0x2cae23([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x40d152=>_0x40d152[_0x2cae23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cae23([0x2a])))[_0x2cae23([0x6d,0x61,0x70])](_0x32b664=>_0x32b664[_0x2cae23([0x73,0x70,0x6c,0x69,0x74])](_0x2cae23([0x2e])))[_0x2cae23([0x73,0x6f,0x6d,0x65])](_0x5666f3=>_0x3b1b88[_0x2cae23([0x65,0x76,0x65,0x72,0x79])]((_0x244804,_0x2afde1)=>_0x5666f3[_0x2afde1]===_0x244804||_0x5666f3[_0x2afde1]===_0x2cae23([0x2a])));}function _0x5dd6d0(){return _0x25ee3c&&_0x1d986c?new window[(_0x2cae23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ff125,_0x29f74f)=>{_0x25ee3c[_0x2cae23([0x74,0x68,0x65,0x6e])](_0x2ff125,_0x29f74f),_0x1d986c[_0x2cae23([0x74,0x68,0x65,0x6e])](_0x4d7341=>{_0x4d7341!=_0x2cae23([0x56,0x61,0x6c,0x69,0x64])&&_0x2ff125(_0x4d7341);},_0x29f74f);}):_0x25ee3c||_0x1d986c||_0x2cae23([0x56,0x61,0x6c,0x69,0x64]);}}function _0x107ce7(_0x1bc13f,_0x5f3ff8){return new window[(_0x2cae23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e04a9=>{if(_0xd119fe())return _0x3e04a9(_0x2cae23([0x56,0x61,0x6c,0x69,0x64]));_0x3a2a31(),_0x4ff2a5[_0x2cae23([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2cae23([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1633e4=!0x1;const _0x33c1db=_0x53be81();function _0x2e3f1e(_0x321cee){return!!_0x321cee&&(typeof _0x321cee===_0x2cae23([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x321cee===_0x2cae23([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x321cee[_0x2cae23([0x74,0x68,0x65,0x6e])]===_0x2cae23([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x321cee[_0x2cae23([0x63,0x61,0x74,0x63,0x68])]===_0x2cae23([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x39b709(_0x2a70c1){_0x26590e(_0x2a70c1)[_0x2cae23([0x74,0x68,0x65,0x6e])](_0x4711d9=>{if(!_0x4711d9||_0x4711d9[_0x2cae23([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2cae23([0x6f,0x6b]))return _0x2cae23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4f555e(_0x3291ad(_0x33c1db+_0x5f3ff8))!=_0x4711d9[_0x2cae23([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2cae23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2cae23([0x56,0x61,0x6c,0x69,0x64]);})[_0x2cae23([0x74,0x68,0x65,0x6e])](_0x5b2105=>(_0x5dab0f(),_0x5b2105),()=>{const _0x27e615=_0x24550c();return null==_0x27e615?(_0x5dab0f(),_0x2cae23([0x56,0x61,0x6c,0x69,0x64])):_0x2cae23(_0x3a015b-_0x27e615>(0x7cbaafe^_0x9efcf5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2cae23([0x74,0x68,0x65,0x6e])](_0x3e04a9)[_0x2cae23([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3e04a9(_0x2cae23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x110771=0x23f1c07e^_0x9efcf5;function _0x5dab0f(){const _0x16220d=_0x2cae23([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f555e(_0x3291ad(_0x1bc13f)),_0x41a073=_0x139f63(_0x4f555e(window[_0x2cae23([0x4d,0x61,0x74,0x68])][_0x2cae23([0x63,0x65,0x69,0x6c])](_0x3a015b/_0x110771)));window[_0x2cae23([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cae23([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16220d,_0x41a073);}function _0x24550c(){const _0xcb96d4=_0x2cae23([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f555e(_0x3291ad(_0x1bc13f)),_0x3b888d=window[_0x2cae23([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cae23([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xcb96d4);return _0x3b888d?window[_0x2cae23([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x139f63(_0x3b888d),0x10)*_0x110771:null;}function _0x26590e(_0x2dd85a){return new window[(_0x2cae23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c123a,_0x1cbf3f)=>{_0x2dd85a[_0x2cae23([0x74,0x68,0x65,0x6e])](_0x4c123a,_0x1cbf3f),window[_0x2cae23([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1cbf3f,0x23c6fa3e^_0x9efcf5);});}}_0x4ff2a5[_0x2cae23([0x6f,0x6e])](_0x2cae23([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x259f94,_0x3eb122)=>{if(_0x3eb122[0x0]!=_0x1bc13f)return _0x3e04a9(_0x2cae23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3eb122[0x1]={..._0x3eb122[0x1],[_0x2cae23([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x33c1db};},{[_0x2cae23([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cae23([0x68,0x69,0x67,0x68])}),_0x4ff2a5[_0x2cae23([0x6f,0x6e])](_0x2cae23([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b335c=>{_0x2e3f1e(_0x1b335c[_0x2cae23([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1633e4=!0x0,_0x39b709(_0x1b335c[_0x2cae23([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2cae23([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cae23([0x6c,0x6f,0x77])}),_0x47e327[_0x2cae23([0x74,0x68,0x65,0x6e])](()=>{_0x1633e4||_0x3e04a9(_0x2cae23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd119fe(){return _0x4ff2a5[_0x2cae23([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cae23([0x76,0x69,0x65,0x77])][_0x2cae23([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2cae23([0x61,0x75,0x74,0x6f]);}function _0x3a2a31(){_0x4ff2a5[_0x2cae23([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cae23([0x76,0x69,0x65,0x77])][_0x2cae23([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2cae23([0x61,0x75,0x74,0x6f]);}}function _0x556228(_0x2758c2){const _0x415d49=[new window[(_0x2cae23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33ecab=>setTimeout(_0x33ecab,0x23ce1032^_0x9efcf5)),_0x47e327[_0x2cae23([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2cae23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f108=>{let _0x5cd548=0x0;_0x4ff2a5[_0x2cae23([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cae23([0x6f,0x6e])](_0x2cae23([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xc52f7e,_0x2a58cc)=>{_0x2a58cc[0x0][_0x2cae23([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5cd548++,_0x5cd548==(0x23c72f06^_0x9efcf5)&&(_0x3f108(),_0xc52f7e[_0x2cae23([0x6f,0x66,0x66])]());});}))];return window[_0x2cae23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2cae23([0x72,0x61,0x63,0x65])](_0x415d49)[_0x2cae23([0x74,0x68,0x65,0x6e])](()=>_0x2758c2);}async function _0x6ebe45(){await _0x47e327,_0x4ff2a5[_0x2cae23([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cae23([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x533a32,_0x4ff2a5[_0x2cae23([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cae23([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x533a32,_0x4ff2a5[_0x2cae23([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2cae23([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4ceaba(_0x3a0088){const _0x26f01e=_0x2090aa();_0x4ff2a5[_0x26f01e]=_0x2cae23([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3a0088,_0x3a0088!=_0x2cae23([0x56,0x61,0x6c,0x69,0x64])&&_0x6ebe45();}function _0x2090aa(){const _0x37a6b6=window[_0x2cae23([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2cae23([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2cae23([0x6e,0x6f,0x77])]())[_0x2cae23([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2cae23([0x2e]),'');let _0x585b4f=_0x2cae23([0x4e]);for(let _0x3920ea=0x0;_0x3920ea<_0x37a6b6[_0x2cae23([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3920ea+=0x2){let _0x49ac7b=window[_0x2cae23([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37a6b6[_0x2cae23([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3920ea,_0x3920ea+0x2));_0x49ac7b>=_0x51cfae[_0x2cae23([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x49ac7b-=_0x51cfae[_0x2cae23([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x585b4f+=_0x51cfae[_0x49ac7b];}return _0x585b4f;}function _0x2fb725(){const _0x53ee04=_0x23490a[_0x2cae23([0x73,0x70,0x6c,0x69,0x74])](_0x2cae23([0x2e]));if(0x3!=_0x53ee04[_0x2cae23([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x32d7dd(_0x53ee04[0x1]);function _0x32d7dd(_0x310b4a){const _0x4d501f=_0x4f0cae(_0x310b4a);return _0x4d501f&&_0x19feb6()?_0x4d501f:null;function _0x19feb6(){const _0x55b8f7=_0x4d501f[_0x2cae23([0x6a,0x74,0x69])],_0x47e5fc=window[_0x2cae23([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55b8f7[_0x2cae23([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55b8f7[_0x2cae23([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3df740={..._0x4d501f,[_0x2cae23([0x6a,0x74,0x69])]:_0x55b8f7[_0x2cae23([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x55b8f7[_0x2cae23([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3df740[_0x2cae23([0x76,0x63])],_0x3291ad(_0x3df740)==_0x47e5fc;}}}async function _0x47bf36(){let _0x52036d=!0x0;try{const _0x5c8c1e=_0x23490a[_0x2cae23([0x73,0x70,0x6c,0x69,0x74])](_0x2cae23([0x2e])),[_0x4de685,_0x3b4f4c,_0x3cc7d0]=_0x5c8c1e;return _0x4daa37(_0x4de685),await _0x1ad19e(_0x4de685,_0x3b4f4c,_0x3cc7d0),_0x52036d;}catch(_0xbeed2){return!0x1;}function _0x4daa37(_0x4a87f3){const _0x49b9ee=_0x4f0cae(_0x4a87f3);_0x49b9ee&&_0x49b9ee[_0x2cae23([0x61,0x6c,0x67])]==_0x2cae23([0x45,0x53,0x32,0x35,0x36])||(_0x52036d=!0x1);}async function _0x1ad19e(_0x3daa8e,_0xc5cd99,_0x323526){const _0x3aecaf=window[_0x2cae23([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2cae23([0x66,0x72,0x6f,0x6d])](_0x4f2904(_0x323526),_0x33211c=>_0x33211c[_0x2cae23([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x53a329=new window[(_0x2cae23([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2cae23([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3daa8e+_0x2cae23([0x2e])+_0xc5cd99),_0x12e3b1=window[_0x2cae23([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2cae23([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x12e3b1)return;const _0x2a1389=await _0x12e3b1[_0x2cae23([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2cae23([0x6a,0x77,0x6b]),_0xebfbe0,{[_0x2cae23([0x6e,0x61,0x6d,0x65])]:_0x2cae23([0x45,0x43,0x44,0x53,0x41]),[_0x2cae23([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2cae23([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2cae23([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x12e3b1[_0x2cae23([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2cae23([0x6e,0x61,0x6d,0x65])]:_0x2cae23([0x45,0x43,0x44,0x53,0x41]),[_0x2cae23([0x68,0x61,0x73,0x68])]:{[_0x2cae23([0x6e,0x61,0x6d,0x65])]:_0x2cae23([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2a1389,_0x3aecaf,_0x53a329)||(_0x52036d=!0x1);}}function _0x4f0cae(_0xd7887a){return _0xd7887a[_0x2cae23([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2cae23([0x65,0x79]))?JSON[_0x2cae23([0x70,0x61,0x72,0x73,0x65])](_0x4f2904(_0xd7887a)):null;}function _0x4f2904(_0x3f35fe){return window[_0x2cae23([0x61,0x74,0x6f,0x62])](_0x3f35fe[_0x2cae23([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2cae23([0x2b]))[_0x2cae23([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2cae23([0x2f])));}function _0x3291ad(_0x3d64b8){let _0x3151f5=0x1505;function _0x12225f(_0x1a9b77){for(let _0x18dafb=0x0;_0x18dafb<_0x1a9b77[_0x2cae23([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18dafb++){const _0x11d765=_0x1a9b77[_0x2cae23([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x18dafb);_0x3151f5=(_0x3151f5<<0x5)+_0x3151f5+_0x11d765,_0x3151f5&=_0x3151f5;}}function _0x116322(_0x44c865){Array[_0x2cae23([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x44c865)?_0x44c865[_0x2cae23([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x116322):_0x44c865&&typeof _0x44c865==_0x2cae23([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2cae23([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x44c865)[_0x2cae23([0x73,0x6f,0x72,0x74])]()[_0x2cae23([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x52c666,_0xa7f447])=>{_0x12225f(_0x52c666),_0x116322(_0xa7f447);}):_0x12225f(window[_0x2cae23([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x44c865));}return _0x116322(_0x3d64b8),_0x3151f5>>>0x0;}function _0x4f555e(_0xe87c4b){return _0xe87c4b[_0x2cae23([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2cae23([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2cae23([0x30]));}function _0x139f63(_0x49db23){return _0x49db23[_0x2cae23([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2cae23([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2cae23([0x6a,0x6f,0x69,0x6e])]('');}function _0x533a32(){}function _0x2cae23(_0x5396e3){return _0x5396e3['map'](_0x56360c=>String['fromCharCode'](_0x56360c))['join']('');}_0x4ceaba(await _0x2c998e());}(this);}['_initSchema'](){const _0x56f121=this['editor']['model']['schema'];_0x56f121['isRegistered']('imageBlock')&&_0x56f121['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x56f121['isRegistered']('imageInline')&&_0x56f121['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3b9366=this['editor'];_0x3b9366['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3b9366['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2e9491=>_0x2e9491['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x57443c=_0x3b9366['commands']['get']('replaceImageSource');_0x57443c&&this['listenTo'](_0x57443c,'cleanupImage',(_0x28b0ee,[_0x3412ab,_0x4f755b])=>{_0x3412ab['removeAttribute']('uploadcareImageId',_0x4f755b);});}['_initConfig'](){const _0x594cbd=this['editor']['config']['get']('uploadcare.uploader')||{},_0x362c62=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xe1a070(_0x39abb1['document'],'uc-config',{..._0x594cbd,'pubkey':_0x362c62,'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']=_0x3df0c2=>{if('closeMax'==_0x3df0c2)return'#uc-icon-arrow-down';},_0x39abb1['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xe1a070(_0x39abb1['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x39abb1['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xbda51e=this['editor']['commands']['get']('insertImage');_0xbda51e&&this['listenTo'](_0xbda51e,'execute',()=>{const _0x1e28eb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1e28eb&&_0x1e28eb['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1e28eb);});});const _0x490410=this['editor']['commands']['get']('uploadcareImageReplace');_0x490410&&this['listenTo'](_0x490410,'execute',()=>{const _0x30e727=this['editor']['model']['document']['selection']['getSelectedElement']();_0x30e727&&_0x30e727['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x30e727);});});}}class u extends _0x1216db{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38d2d6){super(_0x38d2d6),_0x38d2d6['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x5ea66a['defineComponents'](_0x5ea66a);}}class ta extends _0xbcde45{constructor(_0x607fff){super(_0x607fff);const t=_0x607fff['t'],_0x429156=this['bindTemplate'],_0x1ab5da=new _0x1d2eec();_0x1ab5da['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':[_0x1ab5da,{'text':_0x429156['to']('imageUploadProgress',_0x229f3e=>t('Loading\x20image...')+'\x20('+(_0x229f3e||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 _0xbcde45{constructor(_0x21304a){super(_0x21304a);const t=_0x21304a['t'];this['set']('errorType',null);const _0x355c7e=new _0x50e41f(_0x21304a);_0x355c7e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x355c7e['withText']=!0x0,_0x355c7e['class']='ck-button-action',_0x355c7e['on']('execute',()=>{this['fire']('retry');}),_0x355c7e['bind']('isVisible')['to'](this,'errorType',_0x500441=>'NotFound'!==_0x500441);const _0x4637b3=new at();_0x4637b3['content']=et,_0x4637b3['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4607d1=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':[_0x4637b3,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4607d1['to']('errorType',_0x3f7bfa=>t('NotFound'!==_0x3f7bfa?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x355c7e]},{'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 _0xbcde45{constructor(_0x37ed03,_0x40386b){super(_0x37ed03);const _0x25dc44=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x40386b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x25dc44['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4cd0c8,_0x53631e,_0x3556e3){super(_0x4cd0c8),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x4cd0c8),this['_errorView']=new rt(_0x4cd0c8),this['_editingView']=new tt(_0x4cd0c8,_0x3556e3),this['_focusableView']=new _0xbcde45(_0x4cd0c8),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x53631e),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'],_0x1f9c17=>{this['_addUploadcareImageEditorListeners'](_0x1f9c17);});}),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'](_0x26356b,_0x458074){const _0x390ee2='uc-cloud-image-editor',_0x380cd0=_0x26356b['querySelector'](_0x390ee2);if(_0x380cd0)return _0x458074(_0x380cd0);const _0x139ff0=new MutationObserver(_0x49d243=>{const _0x32548a=_0x49d243['filter'](_0x500afe=>_0x500afe['target']===_0x26356b&&_0x500afe['addedNodes']['length']>0x0&&_0x500afe['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x390ee2);_0x32548a['length']&&(_0x139ff0['disconnect'](),_0x458074(_0x32548a[0x0]['addedNodes'][0x0]));});_0x139ff0['observe'](_0x26356b,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x9d138e){_0x9d138e['addEventListener']('apply',_0x472509=>{this['fire']('apply',{'imageSrc':_0x472509['detail']['cdnUrl']});}),_0x9d138e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xee8d54(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x11c4da,_0x56b791,_0x20b017){super(),this['_editor']=_0x11c4da,this['_dialog']=_0x56b791,this['_imageElement']=_0x20b017,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 _0x5023cc=this['_imageElement'],_0x4d466c=_0x5023cc['getAttribute']('uploadcareImageId'),_0x17048d=_0x5023cc['getAttribute']('src');if(_0x4d466c)await this['_loadImageInfo'](_0x4d466c,_0x17048d);else{if(this['_imageCache']['has'](_0x17048d)){const _0x3630c9=this['_imageCache']['get'](_0x17048d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3630c9['url'],this['imageDimension']=_0x3630c9['dimension'],this['imageId']=_0x3630c9['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2ce55f}=this['_editor'],t=_0x2ce55f['t'],_0xb4c8b4=new Z(_0x2ce55f,this['imageStatus'],this['_attributes']);_0xb4c8b4['bind']('status')['to'](this,'imageStatus'),_0xb4c8b4['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xb4c8b4['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xb4c8b4['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xb4c8b4,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x493b43,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xb4c8b4,'position':_0x4e3fb1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xb4c8b4['focus']();},'onHide':()=>{_0xb4c8b4['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4be723=>!F(_0x4be723,_0xb4c8b4['element'])}});}['_loadImageInfo'](_0x4515ff,_0x3cbe2a){return C['getInfo'](_0x4515ff,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3d651b=>{const {width:_0x47defe,height:_0x24dac1}=_0x3d651b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3cbe2a,this['imageDimension']={'width':_0x47defe,'height':_0x24dac1},this['imageId']=_0x4515ff;})['catch'](_0x78638d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x78638d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x34df55,_0x1be216){return this['_getImageAsFile'](_0x34df55)['then'](_0x516288=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1be216['signal'],'file':_0x516288,'onProgress':_0x1eadc4=>{_0x1eadc4&&_0x1eadc4['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1eadc4['value']));}}))['then'](_0x196fa3=>{const {width:_0x432bec,height:_0x565364}=_0x196fa3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x196fa3['cdnUrl'],this['imageDimension']={'width':_0x432bec,'height':_0x565364},this['imageId']=_0x196fa3['uuid'],this['imageUploadProgress']=null;const _0x4f65d2=_0x34df55['getAttribute']('src');this['_imageCache']['set'](_0x4f65d2,{'id':_0x196fa3['uuid'],'url':_0x196fa3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5115a9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5115a9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3debd1,_0x4a74fe){_0x3debd1['on']('apply',(_0x3cf565,_0x2cd854)=>{this['_replaceImage'](_0x4a74fe,_0x2cd854['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3debd1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3debd1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x191008,_0x25a0d0,_0x58b0db){const _0x4b59fd=this['_editor'],{width:_0x34f1ea,height:_0x48e15d}=A(_0x25a0d0,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x43740a,imageSources:_0x4d7a2e}=E(_0x25a0d0,_0x34f1ea);_0x4b59fd['model']['change'](_0x104a62=>{if('$graveyard'===_0x191008['root']['rootName']){_0x4b59fd['execute']('insertImage',{'imageType':_0x191008['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x191008['getAttributes']()),'uploadcareImageId':_0x58b0db,'src':_0x43740a,'sources':_0x4d7a2e,'width':_0x34f1ea,'height':_0x48e15d}});const _0x46ad0a=_0x191008['getChildren']();_0x191008=_0x4b59fd['model']['document']['selection']['getSelectedElement']();for(const _0x1a5643 of _0x46ad0a)_0x104a62['append'](_0x104a62['cloneElement'](_0x1a5643),_0x191008);}else _0x104a62['setSelection'](_0x191008,'on'),_0x4b59fd['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x191008['getAttributes']()),'uploadcareImageId':_0x58b0db,'src':_0x43740a,'sources':_0x4d7a2e,'width':_0x34f1ea,'height':_0x48e15d},_0x191008);_0x104a62['setSelection'](_0x191008,'on');});}async['_getImageAsFile'](_0x24f126){const _0x3e76a3=_0x39abb1['window'],_0x3562c9=_0x39abb1['document']['location']['href'],_0x5d742a=new _0x3e76a3['URL'](_0x24f126['getAttribute']('src'),_0x3562c9);if('data:'===_0x5d742a['protocol']){const _0x1abff1=_0x5d742a['href']['split'](','),_0x451a3d=_0x1abff1[0x0]['match'](/:(.*?);/)[0x1],_0x40d0b6=_0x451a3d['split']('/')[0x1],_0x24b3d1=_0x3e76a3['atob'](_0x1abff1[_0x1abff1['length']-0x1]);let _0x317a46=_0x24b3d1['length'];const _0x392663=new _0x3e76a3['Uint8Array'](_0x317a46);for(;_0x317a46--;)_0x392663[_0x317a46]=_0x24b3d1['charCodeAt'](_0x317a46);return new _0x3e76a3['File']([_0x392663],'image.'+_0x40d0b6,{'type':_0x451a3d});}const _0x42aa66=_0x5d742a['href']['split']('/'),_0x3ceccb=_0x42aa66[_0x42aa66['length']-0x1],_0x413f1b=_0x3ceccb['split']('.')[0x1];return _0x3e76a3['fetch'](_0x5d742a['href'])['then'](_0x3a48f2=>_0x3a48f2['clone']()['blob']())['then'](_0x42dd98=>new _0x3e76a3['File']([_0x42dd98],_0x3ceccb,{'type':'image/'+_0x413f1b}));}}class J extends _0x566b9a{['imageEditController'];static get['requires'](){return[_0x2e6829];}['_isEditable'];constructor(_0x3c6e36){super(_0x3c6e36),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x42cd99){const _0x52e517=V(_0x42cd99);return _0x2b5f45=>!(!_0x2b5f45||!_0x2b5f45['is']('element','imageBlock')&&!_0x2b5f45['is']('element','imageInline'))&&(!!_0x2b5f45['hasAttribute']('uploadcareImageId')||!!_0x2b5f45['hasAttribute']('src')&&_0x52e517(_0x2b5f45['getAttribute']('src')));}(_0x3c6e36['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xaf250d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xaf250d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4a9b60=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4a9b60&&(_0x4a9b60['is']('element','imageBlock')||_0x4a9b60['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x2e6829),_0x4a9b60),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x566b9a{['refresh'](){const _0x8ce952=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x8ce952&&(_0x8ce952['is']('element','imageBlock')||_0x8ce952['is']('element','imageInline')));}['execute'](_0x48e3d4){const _0x16d6ab=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x25ea11=>{_0x25ea11['setAttributes'](_0x48e3d4,_0x16d6ab),_0x25ea11['removeAttribute']('srcset',_0x16d6ab),_0x25ea11['removeAttribute']('sizes',_0x16d6ab);});}}class g extends _0x1216db{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3c8fee,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4c59e9}=this;_0x4c59e9['commands']['add']('uploadcareImageEdit',new J(_0x4c59e9)),_0x4c59e9['commands']['add']('uploadcareImageReplace',new O(_0x4c59e9));}}class j extends _0x1216db{['_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 _0x5c7222=this['editor'];_0x5c7222['ui']['componentFactory']['add']('uploadcareImageEdit',_0x248251=>{const _0x2b3b1b=_0x5c7222['commands']['get']('uploadcareImageEdit'),_0x14bebb=new _0x50e41f(_0x248251),t=_0x248251['t'];return _0x14bebb['set']({'icon':_0x493b43,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x14bebb['bind']('isEnabled')['to'](_0x2b3b1b),_0x14bebb['bind']('isOn')['to'](_0x2b3b1b,'isActive'),this['listenTo'](_0x14bebb,'execute',()=>{_0x5c7222['execute']('uploadcareImageEdit'),_0x5c7222['editing']['view']['focus']();}),_0x14bebb;}),this['_initConfig']();}['_initConfig'](){const _0x37413c=_0xe1a070(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x37413c),this['listenTo'](this['editor'],'destroy',()=>{_0x37413c['remove']();});}}class P extends _0x1216db{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 _0x2252f4,Command as _0x53cd57}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x50aee0,IconGooglePhotos as _0x3bc49f,IconGoogleDrive as _0x1f6628,IconFacebook as _0x9866d3,IconDropbox as _0x45d2de,IconUploadcareLink as _0xfa8d69,IconUploadcareImageUpload as _0x103d4e,IconError as et,IconUploadcareImageEdit as _0x477390}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x14edb9,MenuBarMenuListItemButtonView as _0x1a880f,View as _0x2607b8,FocusCycler as _0x534244,Dialog as _0x4da01e,DialogViewPosition as _0x167e77,SpinnerView as _0x4de68d,IconView as at,Notification as _0x498d67}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4c5ff2,DomEmitterMixin as _0xdc0548,global as _0x4d3312,getAncestors as _0x39ff1a,ObservableMixin as _0x4bb07a,createElement as _0x50d96f,uid as _0x18dbf8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x344cd3}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1545d5,info as _0x3246e6}from'@uploadcare/upload-client';import*as _0x6af673 from'@uploadcare/file-uploader';var o=function(_0x5cf7de){return _0x5cf7de['Local']='local',_0x5cf7de['URL']='url',_0x5cf7de['Dropbox']='dropbox',_0x5cf7de['GDrive']='gdrive',_0x5cf7de['Facebook']='facebook',_0x5cf7de['GPhotos']='gphotos',_0x5cf7de['OneDrive']='onedrive',_0x5cf7de;}({});function _(_0x4c96ec,_0x22ab0d,_0x48c75d){const t=_0x4c96ec['t'],_0x94f1a3=_0x4c96ec['t'];switch(_0x22ab0d){case o['Local']:return{'text':_0x94f1a3('Insert'===_0x48c75d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x94f1a3('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x48c75d?_0x94f1a3('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x94f1a3('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x48c75d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x48c75d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x48c75d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x48c75d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x48c75d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x22ab0d;}}class e extends _0x2252f4{['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 _0x51b606=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3e4b11;for(const _0x21c317 in _0x51b606){const _0x2ef38d=_0x21c317,_0x36bdb2=_0x51b606[_0x2ef38d];if('uploadcareLicenseKeyValid'==_0x36bdb2||'uploadcareLicenseKeyInvalid'==_0x36bdb2||'uploadcareLicenseKeyExpired'==_0x36bdb2||'uploadcareLicenseKeyDomainLimit'==_0x36bdb2||'uploadcareLicenseKeyNotAllowed'==_0x36bdb2||'uploadcareLicenseKeyEvaluationLimit'==_0x36bdb2||'uploadcareLicenseKeyTrialLimit'==_0x36bdb2||'uploadcareLicenseKeyUsageLimit'==_0x36bdb2){delete _0x51b606[_0x2ef38d],_0x3e4b11=_0x36bdb2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3e4b11&&_0x51b606['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3e4b11&&_0x51b606['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3e4b11&&_0x51b606['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3e4b11&&_0x51b606['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3e4b11&&_0x51b606['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3e4b11&&_0x51b606['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3e4b11&&_0x51b606['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x143d2c}=this,_0x3771c2=_0x143d2c['commands']['get']('uploadcare');if(!_0x3771c2)return;const _0x28067f=this['_normalizeConfigSourceList'](_0x143d2c['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5cc018,_0xba523)=>{const _0xd2adc3=this['_getIntegrationKey'](_0xba523['type']);return _0x5cc018[_0xd2adc3]||(_0x5cc018[_0xd2adc3]=[]),_0x5cc018[_0xd2adc3]['push'](_0xba523),_0x5cc018;},{});_0x143d2c['plugins']['has']('ImageInsertUI')&&_0x143d2c['commands']['get']('uploadcare')&&Object['entries'](_0x28067f)['forEach'](([_0x2fcec5,_0x133a18])=>{_0x143d2c['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2fcec5,'observable':()=>_0x3771c2,'buttonViewCreator':()=>this['_createToolbarButton'](_0x133a18),'formViewCreator':()=>this['_createDropdownButtons'](_0x133a18),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x133a18),'override':'assetManager'!==_0x2fcec5});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x28ec5e){const {locale:_0x3b3adb}=this['editor'];return _0x28ec5e['map'](_0x5a95fc=>{const _0x23987a=_(_0x3b3adb,_0x5a95fc,'Insert');switch(_0x5a95fc){case o['Local']:return{'icon':_0x103d4e,'type':o['Local'],..._0x23987a};case o['URL']:return{'icon':_0xfa8d69,'type':o['URL'],..._0x23987a};case o['Dropbox']:return{'icon':_0x45d2de,'type':o['Dropbox'],..._0x23987a};case o['Facebook']:return{'icon':_0x9866d3,'type':o['Facebook'],..._0x23987a};case o['GDrive']:return{'icon':_0x1f6628,'type':o['GDrive'],..._0x23987a};case o['GPhotos']:return{'icon':_0x3bc49f,'type':o['GPhotos'],..._0x23987a};case o['OneDrive']:return{'icon':_0x50aee0,'type':o['OneDrive'],..._0x23987a};}});}['_getIntegrationKey'](_0x29051c){switch(_0x29051c){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x45f277,_0x376eb2){const _0x1b737c=this['editor'],_0x5094a2=new _0x45f277(_0x1b737c['locale']),_0x1739ed=_0x1b737c['commands']['get']('uploadcare');return _0x5094a2['bind']('isEnabled')['to'](_0x1739ed),_0x5094a2['on']('execute',()=>{_0x1739ed['execute'](_0x376eb2);}),_0x5094a2;}['_createToolbarButton'](_0x27eaea){const {locale:_0x5c9a99}=this['editor'],_0x3cdf72=this['editor']['plugins']['get']('ImageInsertUI'),_0x5be92b=_0x27eaea[0x0],_0x21871a=this['_createButton'](_0x14edb9,_0x5be92b['type']);return _0x21871a['icon']=_0x5be92b['icon'],_0x21871a['bind']('label')['to'](_0x3cdf72,'isImageSelected',_0x343721=>_(_0x5c9a99,_0x5be92b['type'],_0x343721?'Replace':'Insert')['text']),_0x21871a['tooltip']=!0x0,_0x21871a;}['_createDropdownButtons'](_0x1058e8){const {locale:_0x32253f}=this['editor'],_0x1d3e50=this['editor']['plugins']['get']('ImageInsertUI');return _0x1058e8['map'](_0x1bdc80=>{const _0x30ddc5=this['_createButton'](_0x14edb9,_0x1bdc80['type']);return _0x30ddc5['withText']=!0x0,_0x30ddc5['icon']=_0x1bdc80['icon'],_0x30ddc5['bind']('label')['to'](_0x1d3e50,'isImageSelected',_0x56a1a7=>_(_0x32253f,_0x1bdc80['type'],_0x56a1a7?'Replace':'Insert')['text']),_0x30ddc5;});}['_createMenuBarButtons'](_0xb0fdbc){return _0xb0fdbc['map'](_0xb417fc=>{const _0x5b534b=this['_createButton'](_0x1a880f,_0xb417fc['type']);return _0x5b534b['icon']=_0xb417fc['icon'],_0x5b534b['label']=_0xb417fc['shortText'],_0x5b534b;});}}class q extends _0x2607b8{['focusTracker'];['focusCycler'];constructor(_0x4e2f62){super(_0x4e2f62),this['focusTracker']=new _0x4c5ff2(),this['focusCycler']=new _0x534244({'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(_0x1c912a){super(_0x1c912a),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(_0x64a5cc,_0xab618b){const _0x16990a=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x14cbf7=>_0x14cbf7<=_0xab618b)['map'](_0x3b7900=>_0x64a5cc['replace'](/\/$/,'')+'/-/resize/'+_0x3b7900+'x/\x20'+_0x3b7900+'w');return{'imageFallbackUrl':_0x64a5cc,'imageSources':[{'srcset':_0x16990a['join'](',\x20'),'sizes':'(max-width:\x20'+_0xab618b+'px)\x20100vw,\x20'+_0xab618b+'px','type':'image/webp'}]};}function A(_0x35cad4,_0x3a2441,_0x429cc5){const _0x4f47df=_0x35cad4['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4f47df?parseInt(_0x4f47df[0x1],0xa):_0x3a2441,'height':_0x4f47df?parseInt(_0x4f47df[0x2],0xa):_0x429cc5};}function m(_0xde3142,_0x3e1e18){const _0x6b4321=Object['create'](_0xdc0548),_0xf13f83=_0xde3142['plugins']['get']('ImageUtils'),_0x3690cb=_0xde3142['editing']['mapper']['toViewElement'](_0x3e1e18),_0x251bae=_0xf13f83['findViewImgElement'](_0x3690cb),_0x2a8ca7=_0xde3142['editing']['view']['domConverter']['viewToDom'](_0x251bae),_0x2eec28=_0x3e1e18['getAttribute']('width'),_0x41bd57=_0x3e1e18['getAttribute']('height'),_0xb3af17='image-processing';_0xde3142['editing']['view']['change'](_0xa628d2=>{_0xa628d2['addClass'](_0xb3af17,_0x3690cb),_0xa628d2['setStyle']('aspect-ratio',_0x2eec28+'/'+_0x41bd57,_0x251bae);}),_0x6b4321['listenTo'](_0x2a8ca7,'load',()=>{_0x6b4321['stopListening'](_0x2a8ca7,'load'),_0xde3142['editing']['view']['change'](_0x346ed8=>{_0x346ed8['removeClass'](_0xb3af17,_0x3690cb),_0x346ed8['removeStyle']('aspect-ratio',_0x251bae);});});}function V(_0xc0dac){if(Array['isArray'](_0xc0dac)){const _0x2247f0=_0xc0dac['map'](V);return _0x1b6687=>_0x2247f0['some'](_0x310736=>_0x310736(_0x1b6687));}if('origin'==_0xc0dac){const _0x5702c6=_0x4d3312['window']['location']['origin'];return _0x15c677=>new URL(_0x15c677,_0x4d3312['document']['baseURI'])['origin']==_0x5702c6;}return'function'==typeof _0xc0dac?_0xc0dac:_0xc0dac instanceof RegExp?_0x1b8f2a=>!(!_0x1b8f2a['match'](_0xc0dac)&&!_0x1b8f2a['replace'](/^https?:\/\//,'')['match'](_0xc0dac)):()=>!0x1;}function F(_0x5aa5b7,_0x4b9d75){return _0x39ff1a(_0x5aa5b7['target'])['includes'](_0x4b9d75);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4bb07a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4b24a0,_0x4c5f0f,_0x286d61){super(),this['_editor']=_0x4b24a0,this['_editing']=_0x4c5f0f,this['_dialog']=_0x4b24a0['plugins']['get'](_0x4da01e),this['_api']=_0x4c5f0f['ctxElement']['getAPI'](),this['_type']=_0x286d61,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:_0x2a46df,model:_0x18faef}=this['_editor'],_0x4701cc=_0x18faef['document']['selection']['getSelectedElement'](),_0x1dcc33=_0x4701cc&&(_0x4701cc['is']('element','imageBlock')||_0x4701cc['is']('element','imageInline'));this['_formView']=new S(_0x2a46df),this['_dialog']['show']({'id':'uploadCare','icon':_0x103d4e,'title':_(_0x2a46df,this['_type'],_0x1dcc33?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x167e77['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x19e538=>!F(_0x19e538,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x22c649}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x36fc2a=>{const _0x335ea9=_0x22c649['length'];for(const _0x13726c of _0x22c649){const _0x5c024d=_0x13726c===_0x22c649[_0x335ea9-0x1],{cdnUrl:_0x251e4f,fileInfo:_0x480258}=_0x13726c;if(!_0x251e4f||!_0x480258)continue;const {width:_0x343faf,height:_0x10d52d}=_0x480258['imageInfo'],_0x3345df=A(_0x251e4f,_0x343faf,_0x10d52d),_0x4e1328=E(_0x251e4f,_0x3345df['width']),_0x580aad={'id':_0x480258['uuid'],'type':'image','attributes':{'imageDimension':_0x3345df,..._0x4e1328}};this['_insertAsset'](_0x580aad,_0x5c024d,_0x36fc2a);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x427080=>{'idle'===_0x427080['detail']['status']&&!_0x427080['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1876df,_0x57cf56,_0x3933be){const _0x18459f=this['_editor']['model']['document']['selection'],_0x5b88bf=_0x18459f['getSelectedElement'](),_0x5b687a=!(!_0x5b88bf||!_0x5b88bf['is']('element','imageInline'));_0x3933be['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1876df,_0x5b687a),_0x57cf56||_0x3933be['setSelection'](_0x18459f['getLastPosition']());}['_insertImage'](_0x52240c,_0x17700e){const _0x587da5=this['_editor'],{imageDimension:_0xd1afb5,imageFallbackUrl:_0x1b3f10,imageSources:_0x9f561e}=_0x52240c['attributes'];_0x587da5['execute']('insertImage',{'imageType':_0x17700e?'imageInline':null,'source':{'uploadcareImageId':_0x52240c['id'],'src':_0x1b3f10,'sources':_0x9f561e,..._0xd1afb5}});}}class n extends _0x53cd57{['_editing'];['_controller']=null;static get['requires'](){return[_0x4da01e,i];}constructor(_0x53cee0){super(_0x53cee0),this['_editing']=_0x53cee0['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4ef333){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x4ef333);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x5f49ca,publicKey:_0x53f0eb,signal:_0xd1dee6,onProgress:_0x31d9f7}){return _0x1545d5(_0x5f49ca,{'publicKey':_0x53f0eb,'store':'auto','signal':_0xd1dee6,'onProgress':_0x31d9f7});}static['getInfo'](_0x103989,_0x312d72){return _0x3246e6(_0x103989,_0x312d72);}}class p extends _0x2252f4{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x344cd3,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2751f3=this['editor'];if(!!!_0x2751f3['config']['get']('uploadcare'))return;_0x2751f3['plugins']['get'](_0x344cd3)['createUploadAdapter']=_0x1a790a=>new x(_0x1a790a,_0x2751f3),_0x2751f3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x280b79,{imageElement:_0x484bf8,data:_0x5649f0})=>{_0x2751f3['model']['change'](_0x51d9e2=>{_0x51d9e2['setAttribute']('uploadcareImageId',_0x5649f0['uploadcareImageId'],_0x484bf8);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x42b490,_0x4faef4){this['loader']=_0x42b490,this['editor']=_0x4faef4,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x199787=this['editor']['config']['get']('uploadcare.pubkey'),_0x6687fc=await this['loader']['file'];return C['upload']({'file':_0x6687fc,'publicKey':_0x199787,'signal':this['controller']['signal'],'onProgress':_0x53e4e9=>{_0x53e4e9&&_0x53e4e9['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x53e4e9['value']);}})['then'](async _0x576b12=>{const {imageFallbackUrl:_0x52ce70,imageSources:_0x8ff460}=E(_0x576b12['cdnUrl'],_0x576b12['imageInfo']['width']);return{'uploadcareImageId':_0x576b12['uuid'],'default':_0x52ce70,'sources':_0x8ff460};})['catch'](()=>{const _0x18b516=t('Cannot\x20upload\x20file:')+('\x20'+_0x6687fc['name']+'.');return Promise['reject'](_0x18b516);});}['abort'](){this['controller']['abort']();}}class i extends _0x2252f4{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x4da01e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x4a9de4=this['editor'];_0x4a9de4['commands']['add']('uploadcare',new n(_0x4a9de4));}['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 _0x50a1e9=_0x4d3312['document']['querySelector']('input[uploadcare-file-input]');_0x50a1e9&&_0x50a1e9['remove']();}),async function(_0x5ab636){const _0x153313=_0x3cbe04([0x35,0x70,0x33,0x34,0x56,0x6c,0x74,0x64,0x5a,0x73,0x63,0x79,0x6f,0x49,0x69,0x61,0x68,0x65,0x32,0x44,0x4e,0x36,0x4a,0x72,0x6a,0x6e,0x66,0x67,0x50,0x4d,0x41,0x46,0x53,0x75,0x76,0x43,0x6b,0x54,0x31,0x42,0x78,0x4f,0x48,0x38,0x4c,0x6d,0x4b,0x51,0x45,0x57,0x58,0x47,0x30,0x52,0x77,0x39,0x37,0x59,0x7a,0x55,0x62,0x71]),_0x2cd523=0x5d94eb28,_0x1b44cf=0x5d938ca0^_0x2cd523,_0xc3b57c=window[_0x3cbe04([0x44,0x61,0x74,0x65])][_0x3cbe04([0x6e,0x6f,0x77])](),_0x5423f6=_0x5ab636[_0x3cbe04([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3553f4=new window[(_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ee09f=>{_0x5423f6[_0x3cbe04([0x6f,0x6e,0x63,0x65])](_0x3cbe04([0x72,0x65,0x61,0x64,0x79]),_0x2ee09f);}),_0x1b9512={[_0x3cbe04([0x6b,0x74,0x79])]:_0x3cbe04([0x45,0x43]),[_0x3cbe04([0x75,0x73,0x65])]:_0x3cbe04([0x73,0x69,0x67]),[_0x3cbe04([0x63,0x72,0x76])]:_0x3cbe04([0x50,0x2d,0x32,0x35,0x36]),[_0x3cbe04([0x78])]:_0x3cbe04([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]),[_0x3cbe04([0x79])]:_0x3cbe04([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]),[_0x3cbe04([0x61,0x6c,0x67])]:_0x3cbe04([0x45,0x53,0x32,0x35,0x36])},_0x111f18=_0x5423f6[_0x3cbe04([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3cbe04([0x67,0x65,0x74])](_0x3cbe04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x17f557(){let _0x55cde6,_0x35321a=null,_0x45909f=null;try{if(_0x111f18==_0x3cbe04([0x47,0x50,0x4c]))return _0x3cbe04([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x55cde6=_0xfc8a17(),!_0x55cde6)return _0x3cbe04([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x55cde6[_0x3cbe04([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x45909f=_0xe8ecd5(_0x55cde6[_0x3cbe04([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x55cde6[_0x3cbe04([0x6a,0x74,0x69])])),await _0x456334()?_0x49fa0a()?_0x46b651()?_0x3cbe04([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x34a69a()?(_0x55cde6[_0x3cbe04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3cbe04([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x35321a=_0x1c61da(_0x3cbe04([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x55cde6[_0x3cbe04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3cbe04([0x74,0x72,0x69,0x61,0x6c])&&(_0x35321a=_0x1c61da(_0x3cbe04([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ad7cb()):_0x3cbe04([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3cbe04([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3cbe04([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x13d8a3){return _0x3cbe04([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x46b651(){const _0x3f36b6=[_0x3cbe04([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3cbe04([0x74,0x72,0x69,0x61,0x6c])][_0x3cbe04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55cde6[_0x3cbe04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc3b57c/0x3e8:0xe10*_0x1b44cf;return _0x55cde6[_0x3cbe04([0x65,0x78,0x70])]<_0x3f36b6;}function _0x49fa0a(){const _0x519bf8=_0x55cde6[_0x3cbe04([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x519bf8&&(!!_0x519bf8[_0x3cbe04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cbe04([0x2a]))||!!_0x519bf8[_0x3cbe04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cbe04([0x55,0x50,0x4c,0x43])));}function _0x34a69a(){const _0x1d51a2=_0x55cde6[_0x3cbe04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1d51a2||0x0==_0x1d51a2[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x15b44e}=new URL(window[_0x3cbe04([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1d51a2[_0x3cbe04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15b44e))return!0x0;const _0x3d66bc=_0x15b44e[_0x3cbe04([0x73,0x70,0x6c,0x69,0x74])](_0x3cbe04([0x2e]));return _0x1d51a2[_0x3cbe04([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c47e5=>_0x3c47e5[_0x3cbe04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cbe04([0x2a])))[_0x3cbe04([0x6d,0x61,0x70])](_0x25b8e0=>_0x25b8e0[_0x3cbe04([0x73,0x70,0x6c,0x69,0x74])](_0x3cbe04([0x2e])))[_0x3cbe04([0x73,0x6f,0x6d,0x65])](_0x8ada1d=>_0x3d66bc[_0x3cbe04([0x65,0x76,0x65,0x72,0x79])]((_0x1258dd,_0x376ffd)=>_0x8ada1d[_0x376ffd]===_0x1258dd||_0x8ada1d[_0x376ffd]===_0x3cbe04([0x2a])));}function _0x5ad7cb(){return _0x35321a&&_0x45909f?new window[(_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54711d,_0x424ecc)=>{_0x35321a[_0x3cbe04([0x74,0x68,0x65,0x6e])](_0x54711d,_0x424ecc),_0x45909f[_0x3cbe04([0x74,0x68,0x65,0x6e])](_0x575977=>{_0x575977!=_0x3cbe04([0x56,0x61,0x6c,0x69,0x64])&&_0x54711d(_0x575977);},_0x424ecc);}):_0x35321a||_0x45909f||_0x3cbe04([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe8ecd5(_0x4f1e99,_0xb843ef){return new window[(_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5100e9=>{if(_0x2c8054())return _0x5100e9(_0x3cbe04([0x56,0x61,0x6c,0x69,0x64]));_0x2ecf21(),_0x5423f6[_0x3cbe04([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3cbe04([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1823c8=!0x1;const _0x14dc96=_0x18dbf8();function _0x3c0543(_0x3fe6a0){return!!_0x3fe6a0&&(typeof _0x3fe6a0===_0x3cbe04([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3fe6a0===_0x3cbe04([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3fe6a0[_0x3cbe04([0x74,0x68,0x65,0x6e])]===_0x3cbe04([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3fe6a0[_0x3cbe04([0x63,0x61,0x74,0x63,0x68])]===_0x3cbe04([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3583c1(_0xfc8f96){_0x5c8981(_0xfc8f96)[_0x3cbe04([0x74,0x68,0x65,0x6e])](_0x5d3092=>{if(!_0x5d3092||_0x5d3092[_0x3cbe04([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3cbe04([0x6f,0x6b]))return _0x3cbe04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x56ddd1(_0x3276c4(_0x14dc96+_0xb843ef))!=_0x5d3092[_0x3cbe04([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3cbe04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3cbe04([0x56,0x61,0x6c,0x69,0x64]);})[_0x3cbe04([0x74,0x68,0x65,0x6e])](_0x432888=>(_0x1f5fd5(),_0x432888),()=>{const _0x30eacb=_0x511a20();return null==_0x30eacb?(_0x1f5fd5(),_0x3cbe04([0x56,0x61,0x6c,0x69,0x64])):_0x3cbe04(_0xc3b57c-_0x30eacb>(0x79986f28^_0x2cd523)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3cbe04([0x74,0x68,0x65,0x6e])](_0x5100e9)[_0x3cbe04([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5100e9(_0x3cbe04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3f14d6=0x5da205a8^_0x2cd523;function _0x1f5fd5(){const _0x2b6802=_0x3cbe04([0x6c,0x6c,0x63,0x74,0x2d])+_0x56ddd1(_0x3276c4(_0x4f1e99)),_0x54f2a3=_0x4cc77d(_0x56ddd1(window[_0x3cbe04([0x4d,0x61,0x74,0x68])][_0x3cbe04([0x63,0x65,0x69,0x6c])](_0xc3b57c/_0x3f14d6)));window[_0x3cbe04([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3cbe04([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b6802,_0x54f2a3);}function _0x511a20(){const _0x91e294=_0x3cbe04([0x6c,0x6c,0x63,0x74,0x2d])+_0x56ddd1(_0x3276c4(_0x4f1e99)),_0x21719e=window[_0x3cbe04([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3cbe04([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x91e294);return _0x21719e?window[_0x3cbe04([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cc77d(_0x21719e),0x10)*_0x3f14d6:null;}function _0x5c8981(_0x328fc4){return new window[(_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3311a1,_0xdbd427)=>{_0x328fc4[_0x3cbe04([0x74,0x68,0x65,0x6e])](_0x3311a1,_0xdbd427),window[_0x3cbe04([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xdbd427,0x5d953fe8^_0x2cd523);});}}_0x5423f6[_0x3cbe04([0x6f,0x6e])](_0x3cbe04([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52ffd5,_0x210c92)=>{if(_0x210c92[0x0]!=_0x4f1e99)return _0x5100e9(_0x3cbe04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x210c92[0x1]={..._0x210c92[0x1],[_0x3cbe04([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14dc96};},{[_0x3cbe04([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3cbe04([0x68,0x69,0x67,0x68])}),_0x5423f6[_0x3cbe04([0x6f,0x6e])](_0x3cbe04([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5db2bf=>{_0x3c0543(_0x5db2bf[_0x3cbe04([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1823c8=!0x0,_0x3583c1(_0x5db2bf[_0x3cbe04([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3cbe04([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3cbe04([0x6c,0x6f,0x77])}),_0x3553f4[_0x3cbe04([0x74,0x68,0x65,0x6e])](()=>{_0x1823c8||_0x5100e9(_0x3cbe04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c8054(){return _0x5423f6[_0x3cbe04([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3cbe04([0x76,0x69,0x65,0x77])][_0x3cbe04([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3cbe04([0x61,0x75,0x74,0x6f]);}function _0x2ecf21(){_0x5423f6[_0x3cbe04([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3cbe04([0x76,0x69,0x65,0x77])][_0x3cbe04([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3cbe04([0x61,0x75,0x74,0x6f]);}}function _0x1c61da(_0x36ccdf){const _0x5032db=[new window[(_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28292f=>setTimeout(_0x28292f,0x5d9dd5e4^_0x2cd523)),_0x3553f4[_0x3cbe04([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b35c3=>{let _0x2d9ae3=0x0;_0x5423f6[_0x3cbe04([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cbe04([0x6f,0x6e])](_0x3cbe04([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x40fac7,_0x28d42e)=>{_0x28d42e[0x0][_0x3cbe04([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d9ae3++,_0x2d9ae3==(0x5d94ead0^_0x2cd523)&&(_0x4b35c3(),_0x40fac7[_0x3cbe04([0x6f,0x66,0x66])]());});}))];return window[_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3cbe04([0x72,0x61,0x63,0x65])](_0x5032db)[_0x3cbe04([0x74,0x68,0x65,0x6e])](()=>_0x36ccdf);}async function _0x4cfe29(){await _0x3553f4,_0x5423f6[_0x3cbe04([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cbe04([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3073b2,_0x5423f6[_0x3cbe04([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cbe04([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3073b2,_0x5423f6[_0x3cbe04([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3cbe04([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3b7541(_0x1bf69b){const _0x45a8c9=_0x25f6c9();_0x5423f6[_0x45a8c9]=_0x3cbe04([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1bf69b,_0x1bf69b!=_0x3cbe04([0x56,0x61,0x6c,0x69,0x64])&&_0x4cfe29();}function _0x25f6c9(){const _0x2436f5=window[_0x3cbe04([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3cbe04([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3cbe04([0x6e,0x6f,0x77])]())[_0x3cbe04([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3cbe04([0x2e]),'');let _0x47e1dc=_0x3cbe04([0x70]);for(let _0x2a4e0e=0x0;_0x2a4e0e<_0x2436f5[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2a4e0e+=0x2){let _0x457a52=window[_0x3cbe04([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2436f5[_0x3cbe04([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2a4e0e,_0x2a4e0e+0x2));_0x457a52>=_0x153313[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x457a52-=_0x153313[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x47e1dc+=_0x153313[_0x457a52];}return _0x47e1dc;}function _0xfc8a17(){const _0x5c022c=_0x111f18[_0x3cbe04([0x73,0x70,0x6c,0x69,0x74])](_0x3cbe04([0x2e]));if(0x3!=_0x5c022c[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a29ff(_0x5c022c[0x1]);function _0x2a29ff(_0x1c8d0c){const _0x379cbd=_0x144b69(_0x1c8d0c);return _0x379cbd&&_0x5b6bee()?_0x379cbd:null;function _0x5b6bee(){const _0x24b755=_0x379cbd[_0x3cbe04([0x6a,0x74,0x69])],_0x547ba5=window[_0x3cbe04([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24b755[_0x3cbe04([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24b755[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5a50f4={..._0x379cbd,[_0x3cbe04([0x6a,0x74,0x69])]:_0x24b755[_0x3cbe04([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x24b755[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5a50f4[_0x3cbe04([0x76,0x63])],_0x3276c4(_0x5a50f4)==_0x547ba5;}}}async function _0x456334(){let _0x56340b=!0x0;try{const _0x40ee4e=_0x111f18[_0x3cbe04([0x73,0x70,0x6c,0x69,0x74])](_0x3cbe04([0x2e])),[_0x511820,_0x5d7de1,_0x319fd2]=_0x40ee4e;return _0x79bd0b(_0x511820),await _0x288c96(_0x511820,_0x5d7de1,_0x319fd2),_0x56340b;}catch(_0x80ccc6){return!0x1;}function _0x79bd0b(_0x10c878){const _0x7f007b=_0x144b69(_0x10c878);_0x7f007b&&_0x7f007b[_0x3cbe04([0x61,0x6c,0x67])]==_0x3cbe04([0x45,0x53,0x32,0x35,0x36])||(_0x56340b=!0x1);}async function _0x288c96(_0x2554c4,_0x2b886,_0xa6b1e2){const _0x455f2f=window[_0x3cbe04([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3cbe04([0x66,0x72,0x6f,0x6d])](_0x30d794(_0xa6b1e2),_0x351df4=>_0x351df4[_0x3cbe04([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x55cb96=new window[(_0x3cbe04([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3cbe04([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2554c4+_0x3cbe04([0x2e])+_0x2b886),_0x5587e8=window[_0x3cbe04([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3cbe04([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5587e8)return;const _0x30e86b=await _0x5587e8[_0x3cbe04([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3cbe04([0x6a,0x77,0x6b]),_0x1b9512,{[_0x3cbe04([0x6e,0x61,0x6d,0x65])]:_0x3cbe04([0x45,0x43,0x44,0x53,0x41]),[_0x3cbe04([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3cbe04([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3cbe04([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5587e8[_0x3cbe04([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3cbe04([0x6e,0x61,0x6d,0x65])]:_0x3cbe04([0x45,0x43,0x44,0x53,0x41]),[_0x3cbe04([0x68,0x61,0x73,0x68])]:{[_0x3cbe04([0x6e,0x61,0x6d,0x65])]:_0x3cbe04([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x30e86b,_0x455f2f,_0x55cb96)||(_0x56340b=!0x1);}}function _0x144b69(_0x273075){return _0x273075[_0x3cbe04([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3cbe04([0x65,0x79]))?JSON[_0x3cbe04([0x70,0x61,0x72,0x73,0x65])](_0x30d794(_0x273075)):null;}function _0x30d794(_0x5f1ab2){return window[_0x3cbe04([0x61,0x74,0x6f,0x62])](_0x5f1ab2[_0x3cbe04([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3cbe04([0x2b]))[_0x3cbe04([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3cbe04([0x2f])));}function _0x3276c4(_0x1dce16){let _0x359b48=0x1505;function _0xa2f500(_0x18cfa8){for(let _0x4bf801=0x0;_0x4bf801<_0x18cfa8[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bf801++){const _0x4dd6ed=_0x18cfa8[_0x3cbe04([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4bf801);_0x359b48=(_0x359b48<<0x5)+_0x359b48+_0x4dd6ed,_0x359b48&=_0x359b48;}}function _0x294939(_0x121b47){Array[_0x3cbe04([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x121b47)?_0x121b47[_0x3cbe04([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x294939):_0x121b47&&typeof _0x121b47==_0x3cbe04([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3cbe04([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x121b47)[_0x3cbe04([0x73,0x6f,0x72,0x74])]()[_0x3cbe04([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5ece0f,_0x240c94])=>{_0xa2f500(_0x5ece0f),_0x294939(_0x240c94);}):_0xa2f500(window[_0x3cbe04([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x121b47));}return _0x294939(_0x1dce16),_0x359b48>>>0x0;}function _0x56ddd1(_0x3d7550){return _0x3d7550[_0x3cbe04([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3cbe04([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3cbe04([0x30]));}function _0x4cc77d(_0x48626d){return _0x48626d[_0x3cbe04([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3cbe04([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3cbe04([0x6a,0x6f,0x69,0x6e])]('');}function _0x3073b2(){}function _0x3cbe04(_0x34b4a0){return _0x34b4a0['map'](_0x22a35c=>String['fromCharCode'](_0x22a35c))['join']('');}_0x3b7541(await _0x17f557());}(this);}['_initSchema'](){const _0x5b2097=this['editor']['model']['schema'];_0x5b2097['isRegistered']('imageBlock')&&_0x5b2097['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5b2097['isRegistered']('imageInline')&&_0x5b2097['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5a5b49=this['editor'];_0x5a5b49['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5a5b49['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4b0e9a=>_0x4b0e9a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2fc37e=_0x5a5b49['commands']['get']('replaceImageSource');_0x2fc37e&&this['listenTo'](_0x2fc37e,'cleanupImage',(_0x40ea3a,[_0x5d67dc,_0x20b0c2])=>{_0x5d67dc['removeAttribute']('uploadcareImageId',_0x20b0c2);});}['_initConfig'](){const _0x1d2f13=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3fd5dc=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x50d96f(_0x4d3312['document'],'uc-config',{..._0x1d2f13,'pubkey':_0x3fd5dc,'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']=_0x14279c=>{if('closeMax'==_0x14279c)return'#uc-icon-arrow-down';},_0x4d3312['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x50d96f(_0x4d3312['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x4d3312['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x378755=this['editor']['commands']['get']('insertImage');_0x378755&&this['listenTo'](_0x378755,'execute',()=>{const _0x2e0f6c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2e0f6c&&_0x2e0f6c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2e0f6c);});});const _0xb7af17=this['editor']['commands']['get']('uploadcareImageReplace');_0xb7af17&&this['listenTo'](_0xb7af17,'execute',()=>{const _0x3cb45e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3cb45e&&_0x3cb45e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3cb45e);});});}}class u extends _0x2252f4{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c48a8){super(_0x5c48a8),_0x5c48a8['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x6af673['defineComponents'](_0x6af673);}}class ta extends _0x2607b8{constructor(_0xb892ec){super(_0xb892ec);const t=_0xb892ec['t'],_0x3cae24=this['bindTemplate'],_0x2e72ed=new _0x4de68d();_0x2e72ed['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':[_0x2e72ed,{'text':_0x3cae24['to']('imageUploadProgress',_0x49a491=>t('Loading\x20image...')+'\x20('+(_0x49a491||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 _0x2607b8{constructor(_0x38a76b){super(_0x38a76b);const t=_0x38a76b['t'];this['set']('errorType',null);const _0x39341a=new _0x14edb9(_0x38a76b);_0x39341a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x39341a['withText']=!0x0,_0x39341a['class']='ck-button-action',_0x39341a['on']('execute',()=>{this['fire']('retry');}),_0x39341a['bind']('isVisible')['to'](this,'errorType',_0x35b19f=>'NotFound'!==_0x35b19f);const _0x2f36be=new at();_0x2f36be['content']=et,_0x2f36be['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x11f55f=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':[_0x2f36be,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x11f55f['to']('errorType',_0x24831f=>t('NotFound'!==_0x24831f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x39341a]},{'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 _0x2607b8{constructor(_0x723fe6,_0x4cc246){super(_0x723fe6);const _0x3b2e8c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4cc246,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3b2e8c['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2dd8af,_0x30022e,_0x2eba89){super(_0x2dd8af),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x2dd8af),this['_errorView']=new rt(_0x2dd8af),this['_editingView']=new tt(_0x2dd8af,_0x2eba89),this['_focusableView']=new _0x2607b8(_0x2dd8af),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x30022e),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'],_0x1b727e=>{this['_addUploadcareImageEditorListeners'](_0x1b727e);});}),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'](_0x2e06d7,_0x38fe9a){const _0x3ac794='uc-cloud-image-editor',_0x346629=_0x2e06d7['querySelector'](_0x3ac794);if(_0x346629)return _0x38fe9a(_0x346629);const _0x1a80f3=new MutationObserver(_0x1ba176=>{const _0x23dfaa=_0x1ba176['filter'](_0x4af1d5=>_0x4af1d5['target']===_0x2e06d7&&_0x4af1d5['addedNodes']['length']>0x0&&_0x4af1d5['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3ac794);_0x23dfaa['length']&&(_0x1a80f3['disconnect'](),_0x38fe9a(_0x23dfaa[0x0]['addedNodes'][0x0]));});_0x1a80f3['observe'](_0x2e06d7,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x138a77){_0x138a77['addEventListener']('apply',_0x543386=>{this['fire']('apply',{'imageSrc':_0x543386['detail']['cdnUrl']});}),_0x138a77['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4bb07a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x217987,_0x35f3b2,_0x1635c0){super(),this['_editor']=_0x217987,this['_dialog']=_0x35f3b2,this['_imageElement']=_0x1635c0,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 _0x5414ed=this['_imageElement'],_0x4ba950=_0x5414ed['getAttribute']('uploadcareImageId'),_0x4b26c9=_0x5414ed['getAttribute']('src');if(_0x4ba950)await this['_loadImageInfo'](_0x4ba950,_0x4b26c9);else{if(this['_imageCache']['has'](_0x4b26c9)){const _0x2aade4=this['_imageCache']['get'](_0x4b26c9);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2aade4['url'],this['imageDimension']=_0x2aade4['dimension'],this['imageId']=_0x2aade4['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x285e43}=this['_editor'],t=_0x285e43['t'],_0x493f5f=new Z(_0x285e43,this['imageStatus'],this['_attributes']);_0x493f5f['bind']('status')['to'](this,'imageStatus'),_0x493f5f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x493f5f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x493f5f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x493f5f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x477390,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x493f5f,'position':_0x167e77['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x493f5f['focus']();},'onHide':()=>{_0x493f5f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x32ff54=>!F(_0x32ff54,_0x493f5f['element'])}});}['_loadImageInfo'](_0x1c2eaf,_0x1be61f){return C['getInfo'](_0x1c2eaf,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4f1f4c=>{const {width:_0x12393d,height:_0xd42f9}=_0x4f1f4c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1be61f,this['imageDimension']={'width':_0x12393d,'height':_0xd42f9},this['imageId']=_0x1c2eaf;})['catch'](_0x3f8be1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3f8be1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5450c3,_0x26b715){return this['_getImageAsFile'](_0x5450c3)['then'](_0x512c54=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x26b715['signal'],'file':_0x512c54,'onProgress':_0x2137cf=>{_0x2137cf&&_0x2137cf['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2137cf['value']));}}))['then'](_0x4c380a=>{const {width:_0x401440,height:_0x187fd2}=_0x4c380a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c380a['cdnUrl'],this['imageDimension']={'width':_0x401440,'height':_0x187fd2},this['imageId']=_0x4c380a['uuid'],this['imageUploadProgress']=null;const _0x4fa16a=_0x5450c3['getAttribute']('src');this['_imageCache']['set'](_0x4fa16a,{'id':_0x4c380a['uuid'],'url':_0x4c380a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3a2658=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3a2658['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x660c2c,_0x1c71d4){_0x660c2c['on']('apply',(_0x3162f1,_0x3c915e)=>{this['_replaceImage'](_0x1c71d4,_0x3c915e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x660c2c['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x660c2c['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x9ccdfd,_0x3d3b90,_0x119b27){const _0x11cef7=this['_editor'],{width:_0x2b205a,height:_0x181000}=A(_0x3d3b90,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1f5264,imageSources:_0x189cdf}=E(_0x3d3b90,_0x2b205a);_0x11cef7['model']['change'](_0x282cf4=>{if('$graveyard'===_0x9ccdfd['root']['rootName']){_0x11cef7['execute']('insertImage',{'imageType':_0x9ccdfd['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x9ccdfd['getAttributes']()),'uploadcareImageId':_0x119b27,'src':_0x1f5264,'sources':_0x189cdf,'width':_0x2b205a,'height':_0x181000}});const _0x14863b=_0x9ccdfd['getChildren']();_0x9ccdfd=_0x11cef7['model']['document']['selection']['getSelectedElement']();for(const _0x1152ff of _0x14863b)_0x282cf4['append'](_0x282cf4['cloneElement'](_0x1152ff),_0x9ccdfd);}else _0x282cf4['setSelection'](_0x9ccdfd,'on'),_0x11cef7['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x9ccdfd['getAttributes']()),'uploadcareImageId':_0x119b27,'src':_0x1f5264,'sources':_0x189cdf,'width':_0x2b205a,'height':_0x181000},_0x9ccdfd);_0x282cf4['setSelection'](_0x9ccdfd,'on');});}async['_getImageAsFile'](_0x25c91a){const _0x471067=_0x4d3312['window'],_0x5e90e0=_0x4d3312['document']['location']['href'],_0x4b06fc=new _0x471067['URL'](_0x25c91a['getAttribute']('src'),_0x5e90e0);if('data:'===_0x4b06fc['protocol']){const _0x563382=_0x4b06fc['href']['split'](','),_0x5afc6c=_0x563382[0x0]['match'](/:(.*?);/)[0x1],_0x3f1ca9=_0x5afc6c['split']('/')[0x1],_0x47618b=_0x471067['atob'](_0x563382[_0x563382['length']-0x1]);let _0x5c2a3a=_0x47618b['length'];const _0x489357=new _0x471067['Uint8Array'](_0x5c2a3a);for(;_0x5c2a3a--;)_0x489357[_0x5c2a3a]=_0x47618b['charCodeAt'](_0x5c2a3a);return new _0x471067['File']([_0x489357],'image.'+_0x3f1ca9,{'type':_0x5afc6c});}const _0x511c7d=_0x4b06fc['href']['split']('/'),_0x1385af=_0x511c7d[_0x511c7d['length']-0x1],_0x59963d=_0x1385af['split']('.')[0x1];return _0x471067['fetch'](_0x4b06fc['href'])['then'](_0x18c4f0=>_0x18c4f0['clone']()['blob']())['then'](_0x25fd7f=>new _0x471067['File']([_0x25fd7f],_0x1385af,{'type':'image/'+_0x59963d}));}}class J extends _0x53cd57{['imageEditController'];static get['requires'](){return[_0x4da01e];}['_isEditable'];constructor(_0x4ca7e1){super(_0x4ca7e1),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x43a80){const _0x435acf=V(_0x43a80);return _0x1138a8=>!(!_0x1138a8||!_0x1138a8['is']('element','imageBlock')&&!_0x1138a8['is']('element','imageInline'))&&(!!_0x1138a8['hasAttribute']('uploadcareImageId')||!!_0x1138a8['hasAttribute']('src')&&_0x435acf(_0x1138a8['getAttribute']('src')));}(_0x4ca7e1['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5778c3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5778c3);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x25f122=this['editor']['model']['document']['selection']['getSelectedElement']();_0x25f122&&(_0x25f122['is']('element','imageBlock')||_0x25f122['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x4da01e),_0x25f122),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x53cd57{['refresh'](){const _0x1db25c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1db25c&&(_0x1db25c['is']('element','imageBlock')||_0x1db25c['is']('element','imageInline')));}['execute'](_0x27a782){const _0x39b2db=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xd11561=>{_0xd11561['setAttributes'](_0x27a782,_0x39b2db),_0xd11561['removeAttribute']('srcset',_0x39b2db),_0xd11561['removeAttribute']('sizes',_0x39b2db);});}}class g extends _0x2252f4{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x498d67,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x8d6a81}=this;_0x8d6a81['commands']['add']('uploadcareImageEdit',new J(_0x8d6a81)),_0x8d6a81['commands']['add']('uploadcareImageReplace',new O(_0x8d6a81));}}class j extends _0x2252f4{['_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 _0x57d548=this['editor'];_0x57d548['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1b6adb=>{const _0x1e5836=_0x57d548['commands']['get']('uploadcareImageEdit'),_0x2eee94=new _0x14edb9(_0x1b6adb),t=_0x1b6adb['t'];return _0x2eee94['set']({'icon':_0x477390,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2eee94['bind']('isEnabled')['to'](_0x1e5836),_0x2eee94['bind']('isOn')['to'](_0x1e5836,'isActive'),this['listenTo'](_0x2eee94,'execute',()=>{_0x57d548['execute']('uploadcareImageEdit'),_0x57d548['editing']['view']['focus']();}),_0x2eee94;}),this['_initConfig']();}['_initConfig'](){const _0x3ea38d=_0x50d96f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3ea38d),this['listenTo'](this['editor'],'destroy',()=>{_0x3ea38d['remove']();});}}class P extends _0x2252f4{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": "45.1.0-alpha.
|
|
3
|
+
"version": "45.1.0-alpha.4",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "45.1.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "45.1.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-image": "45.1.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "45.1.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "45.1.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "45.1.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "45.1.0-alpha.
|
|
33
|
-
"ckeditor5": "45.1.0-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "45.1.0-alpha.4",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "45.1.0-alpha.4",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "45.1.0-alpha.4",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "45.1.0-alpha.4",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "45.1.0-alpha.4",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "45.1.0-alpha.4",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "45.1.0-alpha.4",
|
|
33
|
+
"ckeditor5": "45.1.0-alpha.4",
|
|
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 _0x460775=_0x336d;(function(_0x590c79,_0x563c98){const _0x2d73d3=_0x336d,_0x8f6ce0=_0x590c79();while(!![]){try{const _0x4d28f8=parseInt(_0x2d73d3(0x135))/0x1*(-parseInt(_0x2d73d3(0x14f))/0x2)+parseInt(_0x2d73d3(0x164))/0x3+parseInt(_0x2d73d3(0x13b))/0x4+parseInt(_0x2d73d3(0x149))/0x5*(parseInt(_0x2d73d3(0x12e))/0x6)+parseInt(_0x2d73d3(0x16b))/0x7+-parseInt(_0x2d73d3(0x153))/0x8*(parseInt(_0x2d73d3(0x15d))/0x9)+-parseInt(_0x2d73d3(0x170))/0xa;if(_0x4d28f8===_0x563c98)break;else _0x8f6ce0['push'](_0x8f6ce0['shift']());}catch(_0x209c4a){_0x8f6ce0['push'](_0x8f6ce0['shift']());}}}(_0xb23f,0x51fbe));import{Plugin as _0x23c3c0}from'ckeditor5/src/core.js';import{Dialog as _0x34a9cb}from'ckeditor5/src/ui.js';import{createElement as _0x5401b2,global as _0x18dad5,uid as _0x755a20}from'ckeditor5/src/utils.js';import _0x7a587 from'./uploadcarecommand.js';import _0x30da92 from'./uploadcareuploadadapter.js';function _0x336d(_0x7fc49b,_0x4864ed){const _0xb23ffe=_0xb23f();return _0x336d=function(_0x336dd3,_0x3ce741){_0x336dd3=_0x336dd3-0x12c;let _0x46a8e9=_0xb23ffe[_0x336dd3];return _0x46a8e9;},_0x336d(_0x7fc49b,_0x4864ed);}import{showImageProcessingIndicator as _0x10f413}from'./utils/editingutils.js';export default class i extends _0x23c3c0{[_0x460775(0x163)]=null;[_0x460775(0x139)]=null;static get[_0x460775(0x177)](){const _0x28285b=_0x460775;return _0x28285b(0x140);}static get[_0x460775(0x17b)](){const _0x3b9eb6=_0x460775;return[_0x3b9eb6(0x167),_0x30da92,_0x34a9cb];}static get[_0x460775(0x172)](){return!0x0;}static get[_0x460775(0x17f)](){return!0x0;}get[_0x460775(0x165)](){const _0x22a0a9=_0x460775;return this[_0x22a0a9(0x163)];}get[_0x460775(0x142)](){const _0x5098ac=_0x460775;return this[_0x5098ac(0x139)];}[_0x460775(0x146)](){const _0x3a2d4d=_0x460775,_0x1970de=this[_0x3a2d4d(0x148)];_0x1970de[_0x3a2d4d(0x168)][_0x3a2d4d(0x169)](_0x3a2d4d(0x155),new _0x7a587(_0x1970de));}[_0x460775(0x17d)](){const _0x86efc7=_0x460775;this[_0x86efc7(0x147)](),this[_0x86efc7(0x134)](),this[_0x86efc7(0x16d)](),this[_0x86efc7(0x15e)](),this[_0x86efc7(0x150)](),this[_0x86efc7(0x16f)](this[_0x86efc7(0x148)],_0x86efc7(0x145),()=>{const _0x39382a=_0x86efc7;this[_0x39382a(0x163)]&&(this[_0x39382a(0x163)][_0x39382a(0x141)](),this[_0x39382a(0x163)]=null),this[_0x39382a(0x139)]&&(this[_0x39382a(0x139)][_0x39382a(0x141)](),this[_0x39382a(0x139)]=null);const _0x61df99=_0x18dad5[_0x39382a(0x16e)][_0x39382a(0x138)](_0x39382a(0x157));_0x61df99&&_0x61df99[_0x39382a(0x141)]();}),async function(_0x19c0a7){const _0x54ba9c=_0x4116ce([0x4e,0x46,0x77,0x5a,0x67,0x59,0x73,0x4d,0x37,0x75,0x4c,0x70,0x31,0x62,0x49,0x57,0x69,0x44,0x35,0x78,0x55,0x6e,0x41,0x6b,0x38,0x33,0x32,0x53,0x48,0x63,0x52,0x39,0x30,0x6a,0x58,0x54,0x71,0x4f,0x68,0x65,0x64,0x36,0x47,0x61,0x66,0x74,0x34,0x79,0x56,0x76,0x50,0x42,0x43,0x4b,0x4a,0x7a,0x51,0x72,0x6d,0x6f,0x6c,0x45]),_0x3deb93=0x23c72efe,_0x14b238=0x23c049a6^_0x3deb93,_0x40218f=window[_0x4116ce([0x44,0x61,0x74,0x65])][_0x4116ce([0x6e,0x6f,0x77])](),_0x19c232=_0x19c0a7[_0x4116ce([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x389c7f=new window[(_0x4116ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcb89ab=>{_0x19c232[_0x4116ce([0x6f,0x6e,0x63,0x65])](_0x4116ce([0x72,0x65,0x61,0x64,0x79]),_0xcb89ab);}),_0x1f556f={[_0x4116ce([0x6b,0x74,0x79])]:_0x4116ce([0x45,0x43]),[_0x4116ce([0x75,0x73,0x65])]:_0x4116ce([0x73,0x69,0x67]),[_0x4116ce([0x63,0x72,0x76])]:_0x4116ce([0x50,0x2d,0x32,0x35,0x36]),[_0x4116ce([0x78])]:_0x4116ce([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]),[_0x4116ce([0x79])]:_0x4116ce([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]),[_0x4116ce([0x61,0x6c,0x67])]:_0x4116ce([0x45,0x53,0x32,0x35,0x36])},_0x20de7f=_0x19c232[_0x4116ce([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4116ce([0x67,0x65,0x74])](_0x4116ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x52d18a(){let _0x48f24f,_0x2c5048=null,_0x31244e=null;try{if(_0x20de7f==_0x4116ce([0x47,0x50,0x4c]))return _0x4116ce([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x48f24f=_0x3dcefe(),!_0x48f24f)return _0x4116ce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x48f24f[_0x4116ce([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x31244e=_0x2225d9(_0x48f24f[_0x4116ce([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x48f24f[_0x4116ce([0x6a,0x74,0x69])])),await _0x4cf1b6()?_0x11e2dd()?_0x1319df()?_0x4116ce([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4d09a8()?(_0x48f24f[_0x4116ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4116ce([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2c5048=_0x45d705(_0x4116ce([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x48f24f[_0x4116ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4116ce([0x74,0x72,0x69,0x61,0x6c])&&(_0x2c5048=_0x45d705(_0x4116ce([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ae34c()):_0x4116ce([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4116ce([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4116ce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x46b69e){return _0x4116ce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1319df(){const _0x2db33c=[_0x4116ce([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4116ce([0x74,0x72,0x69,0x61,0x6c])][_0x4116ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48f24f[_0x4116ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x40218f/0x3e8:0xe10*_0x14b238;return _0x48f24f[_0x4116ce([0x65,0x78,0x70])]<_0x2db33c;}function _0x11e2dd(){const _0x439c38=_0x48f24f[_0x4116ce([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x439c38&&(!!_0x439c38[_0x4116ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4116ce([0x2a]))||!!_0x439c38[_0x4116ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4116ce([0x55,0x50,0x4c,0x43])));}function _0x4d09a8(){const _0x347c0f=_0x336d,_0x145955=_0x48f24f[_0x4116ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x145955||0x0==_0x145955[_0x4116ce([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b884a}=new URL(window[_0x4116ce([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x347c0f(0x171)]);if(_0x145955[_0x4116ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b884a))return!0x0;const _0x2cb9ee=_0x2b884a[_0x4116ce([0x73,0x70,0x6c,0x69,0x74])](_0x4116ce([0x2e]));return _0x145955[_0x4116ce([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3212b2=>_0x3212b2[_0x4116ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4116ce([0x2a])))[_0x4116ce([0x6d,0x61,0x70])](_0x1b7745=>_0x1b7745[_0x4116ce([0x73,0x70,0x6c,0x69,0x74])](_0x4116ce([0x2e])))[_0x4116ce([0x73,0x6f,0x6d,0x65])](_0x8f3c7e=>_0x2cb9ee[_0x4116ce([0x65,0x76,0x65,0x72,0x79])]((_0x4de961,_0x128d7b)=>_0x8f3c7e[_0x128d7b]===_0x4de961||_0x8f3c7e[_0x128d7b]===_0x4116ce([0x2a])));}function _0x4ae34c(){return _0x2c5048&&_0x31244e?new window[(_0x4116ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1091f3,_0x209e27)=>{_0x2c5048[_0x4116ce([0x74,0x68,0x65,0x6e])](_0x1091f3,_0x209e27),_0x31244e[_0x4116ce([0x74,0x68,0x65,0x6e])](_0x23f6cd=>{_0x23f6cd!=_0x4116ce([0x56,0x61,0x6c,0x69,0x64])&&_0x1091f3(_0x23f6cd);},_0x209e27);}):_0x2c5048||_0x31244e||_0x4116ce([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2225d9(_0x5cc4ea,_0x1f47d9){return new window[(_0x4116ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x517757=>{if(_0x777da2())return _0x517757(_0x4116ce([0x56,0x61,0x6c,0x69,0x64]));_0x1720b0(),_0x19c232[_0x4116ce([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4116ce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x58dfaf=!0x1;const _0x50c4cf=_0x755a20();function _0x373bfe(_0x395cd2){return!!_0x395cd2&&(typeof _0x395cd2===_0x4116ce([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x395cd2===_0x4116ce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x395cd2[_0x4116ce([0x74,0x68,0x65,0x6e])]===_0x4116ce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x395cd2[_0x4116ce([0x63,0x61,0x74,0x63,0x68])]===_0x4116ce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x20d40b(_0x8dfd2c){_0x4d24b7(_0x8dfd2c)[_0x4116ce([0x74,0x68,0x65,0x6e])](_0xd9ebdc=>{if(!_0xd9ebdc||_0xd9ebdc[_0x4116ce([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4116ce([0x6f,0x6b]))return _0x4116ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c2267(_0x1f1c30(_0x50c4cf+_0x1f47d9))!=_0xd9ebdc[_0x4116ce([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4116ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4116ce([0x56,0x61,0x6c,0x69,0x64]);})[_0x4116ce([0x74,0x68,0x65,0x6e])](_0x41f586=>(_0x2b113c(),_0x41f586),()=>{const _0x1c2a74=_0x1faefc();return null==_0x1c2a74?(_0x2b113c(),_0x4116ce([0x56,0x61,0x6c,0x69,0x64])):_0x4116ce(_0x40218f-_0x1c2a74>(0x7cbaafe^_0x3deb93)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4116ce([0x74,0x68,0x65,0x6e])](_0x517757)[_0x4116ce([0x63,0x61,0x74,0x63,0x68])](()=>{_0x517757(_0x4116ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x223174=0x23f1c07e^_0x3deb93;function _0x2b113c(){const _0x388d0d=_0x4116ce([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c2267(_0x1f1c30(_0x5cc4ea)),_0x2b7246=_0x3d3bb0(_0x4c2267(window[_0x4116ce([0x4d,0x61,0x74,0x68])][_0x4116ce([0x63,0x65,0x69,0x6c])](_0x40218f/_0x223174)));window[_0x4116ce([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4116ce([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x388d0d,_0x2b7246);}function _0x1faefc(){const _0x266f4d=_0x4116ce([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c2267(_0x1f1c30(_0x5cc4ea)),_0x2eef1a=window[_0x4116ce([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4116ce([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x266f4d);return _0x2eef1a?window[_0x4116ce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d3bb0(_0x2eef1a),0x10)*_0x223174:null;}function _0x4d24b7(_0x2fac65){return new window[(_0x4116ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1fc07d,_0x6fb2f1)=>{_0x2fac65[_0x4116ce([0x74,0x68,0x65,0x6e])](_0x1fc07d,_0x6fb2f1),window[_0x4116ce([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x6fb2f1,0x23c6fa3e^_0x3deb93);});}}_0x19c232[_0x4116ce([0x6f,0x6e])](_0x4116ce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3b7312,_0x8f9551)=>{if(_0x8f9551[0x0]!=_0x5cc4ea)return _0x517757(_0x4116ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x8f9551[0x1]={..._0x8f9551[0x1],[_0x4116ce([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x50c4cf};},{[_0x4116ce([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4116ce([0x68,0x69,0x67,0x68])}),_0x19c232[_0x4116ce([0x6f,0x6e])](_0x4116ce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5ab5fe=>{_0x373bfe(_0x5ab5fe[_0x4116ce([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x58dfaf=!0x0,_0x20d40b(_0x5ab5fe[_0x4116ce([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4116ce([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4116ce([0x6c,0x6f,0x77])}),_0x389c7f[_0x4116ce([0x74,0x68,0x65,0x6e])](()=>{_0x58dfaf||_0x517757(_0x4116ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x777da2(){return _0x19c232[_0x4116ce([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4116ce([0x76,0x69,0x65,0x77])][_0x4116ce([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4116ce([0x61,0x75,0x74,0x6f]);}function _0x1720b0(){_0x19c232[_0x4116ce([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4116ce([0x76,0x69,0x65,0x77])][_0x4116ce([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4116ce([0x61,0x75,0x74,0x6f]);}}function _0x45d705(_0x3a402c){const _0x549b56=[new window[(_0x4116ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x815660=>setTimeout(_0x815660,0x23ce1032^_0x3deb93)),_0x389c7f[_0x4116ce([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4116ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43b4d8=>{let _0xefef22=0x0;_0x19c232[_0x4116ce([0x6d,0x6f,0x64,0x65,0x6c])][_0x4116ce([0x6f,0x6e])](_0x4116ce([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4f0ba8,_0x5124ed)=>{_0x5124ed[0x0][_0x4116ce([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xefef22++,_0xefef22==(0x23c72f06^_0x3deb93)&&(_0x43b4d8(),_0x4f0ba8[_0x4116ce([0x6f,0x66,0x66])]());});}))];return window[_0x4116ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4116ce([0x72,0x61,0x63,0x65])](_0x549b56)[_0x4116ce([0x74,0x68,0x65,0x6e])](()=>_0x3a402c);}async function _0x2edcae(){await _0x389c7f,_0x19c232[_0x4116ce([0x6d,0x6f,0x64,0x65,0x6c])][_0x4116ce([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b215f,_0x19c232[_0x4116ce([0x6d,0x6f,0x64,0x65,0x6c])][_0x4116ce([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b215f,_0x19c232[_0x4116ce([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4116ce([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1d0fb9(_0x5c42c5){const _0x27b2e9=_0x39ebaf();_0x19c232[_0x27b2e9]=_0x4116ce([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5c42c5,_0x5c42c5!=_0x4116ce([0x56,0x61,0x6c,0x69,0x64])&&_0x2edcae();}function _0x39ebaf(){const _0x515cea=window[_0x4116ce([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4116ce([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4116ce([0x6e,0x6f,0x77])]())[_0x4116ce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4116ce([0x2e]),'');let _0x2dbe3d=_0x4116ce([0x4e]);for(let _0x2164a7=0x0;_0x2164a7<_0x515cea[_0x4116ce([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2164a7+=0x2){let _0x3f07f1=window[_0x4116ce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x515cea[_0x4116ce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2164a7,_0x2164a7+0x2));_0x3f07f1>=_0x54ba9c[_0x4116ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f07f1-=_0x54ba9c[_0x4116ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2dbe3d+=_0x54ba9c[_0x3f07f1];}return _0x2dbe3d;}function _0x3dcefe(){const _0x2ff939=_0x20de7f[_0x4116ce([0x73,0x70,0x6c,0x69,0x74])](_0x4116ce([0x2e]));if(0x3!=_0x2ff939[_0x4116ce([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3a09ff(_0x2ff939[0x1]);function _0x3a09ff(_0x35e3e2){const _0xfdd758=_0x4bbef5(_0x35e3e2);return _0xfdd758&&_0x54995d()?_0xfdd758:null;function _0x54995d(){const _0xe3bb9e=_0xfdd758[_0x4116ce([0x6a,0x74,0x69])],_0x861fa9=window[_0x4116ce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe3bb9e[_0x4116ce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe3bb9e[_0x4116ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc4020c={..._0xfdd758,[_0x4116ce([0x6a,0x74,0x69])]:_0xe3bb9e[_0x4116ce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xe3bb9e[_0x4116ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc4020c[_0x4116ce([0x76,0x63])],_0x1f1c30(_0xc4020c)==_0x861fa9;}}}async function _0x4cf1b6(){let _0x4a2ec6=!0x0;try{const _0x48e4ec=_0x20de7f[_0x4116ce([0x73,0x70,0x6c,0x69,0x74])](_0x4116ce([0x2e])),[_0x59ded7,_0x1be577,_0x63862b]=_0x48e4ec;return _0x2a2585(_0x59ded7),await _0x313ff3(_0x59ded7,_0x1be577,_0x63862b),_0x4a2ec6;}catch(_0x46f8a6){return!0x1;}function _0x2a2585(_0x297398){const _0x4b56bf=_0x4bbef5(_0x297398);_0x4b56bf&&_0x4b56bf[_0x4116ce([0x61,0x6c,0x67])]==_0x4116ce([0x45,0x53,0x32,0x35,0x36])||(_0x4a2ec6=!0x1);}async function _0x313ff3(_0x24961b,_0x1979a8,_0x3aff9d){const _0x2d1410=window[_0x4116ce([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4116ce([0x66,0x72,0x6f,0x6d])](_0x382a69(_0x3aff9d),_0x422c76=>_0x422c76[_0x4116ce([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1b9eeb=new window[(_0x4116ce([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4116ce([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x24961b+_0x4116ce([0x2e])+_0x1979a8),_0x5803ca=window[_0x4116ce([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4116ce([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5803ca)return;const _0x2cfae9=await _0x5803ca[_0x4116ce([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4116ce([0x6a,0x77,0x6b]),_0x1f556f,{[_0x4116ce([0x6e,0x61,0x6d,0x65])]:_0x4116ce([0x45,0x43,0x44,0x53,0x41]),[_0x4116ce([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4116ce([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4116ce([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5803ca[_0x4116ce([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4116ce([0x6e,0x61,0x6d,0x65])]:_0x4116ce([0x45,0x43,0x44,0x53,0x41]),[_0x4116ce([0x68,0x61,0x73,0x68])]:{[_0x4116ce([0x6e,0x61,0x6d,0x65])]:_0x4116ce([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2cfae9,_0x2d1410,_0x1b9eeb)||(_0x4a2ec6=!0x1);}}function _0x4bbef5(_0x1ab0a7){return _0x1ab0a7[_0x4116ce([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4116ce([0x65,0x79]))?JSON[_0x4116ce([0x70,0x61,0x72,0x73,0x65])](_0x382a69(_0x1ab0a7)):null;}function _0x382a69(_0x11f8a9){return window[_0x4116ce([0x61,0x74,0x6f,0x62])](_0x11f8a9[_0x4116ce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4116ce([0x2b]))[_0x4116ce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4116ce([0x2f])));}function _0x1f1c30(_0xe0c7fc){let _0x2ddd92=0x1505;function _0x4a8a14(_0x5abc26){for(let _0x274f1e=0x0;_0x274f1e<_0x5abc26[_0x4116ce([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x274f1e++){const _0x121abf=_0x5abc26[_0x4116ce([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x274f1e);_0x2ddd92=(_0x2ddd92<<0x5)+_0x2ddd92+_0x121abf,_0x2ddd92&=_0x2ddd92;}}function _0x483d4b(_0x47ff87){Array[_0x4116ce([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x47ff87)?_0x47ff87[_0x4116ce([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x483d4b):_0x47ff87&&typeof _0x47ff87==_0x4116ce([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4116ce([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x47ff87)[_0x4116ce([0x73,0x6f,0x72,0x74])]()[_0x4116ce([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x29597b,_0x32f6ad])=>{_0x4a8a14(_0x29597b),_0x483d4b(_0x32f6ad);}):_0x4a8a14(window[_0x4116ce([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x47ff87));}return _0x483d4b(_0xe0c7fc),_0x2ddd92>>>0x0;}function _0x4c2267(_0x563133){return _0x563133[_0x4116ce([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4116ce([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4116ce([0x30]));}function _0x3d3bb0(_0x4c6e8b){return _0x4c6e8b[_0x4116ce([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4116ce([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4116ce([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b215f(){}function _0x4116ce(_0x10ff0a){const _0x34062c=_0x336d;return _0x10ff0a[_0x34062c(0x179)](_0x53e5fd=>String[_0x34062c(0x162)](_0x53e5fd))[_0x34062c(0x14d)]('');}_0x1d0fb9(await _0x52d18a());}(this);}[_0x460775(0x147)](){const _0x4c6441=_0x460775,_0x4a21ec=this[_0x4c6441(0x148)][_0x4c6441(0x160)][_0x4c6441(0x132)];_0x4a21ec[_0x4c6441(0x15c)](_0x4c6441(0x14a))&&_0x4a21ec[_0x4c6441(0x154)](_0x4c6441(0x14a),{'allowAttributes':[_0x4c6441(0x136)]}),_0x4a21ec[_0x4c6441(0x15c)](_0x4c6441(0x173))&&_0x4a21ec[_0x4c6441(0x154)](_0x4c6441(0x173),{'allowAttributes':[_0x4c6441(0x136)]});}[_0x460775(0x134)](){const _0x13828d=_0x460775,_0xcdfae=this[_0x13828d(0x148)];_0xcdfae[_0x13828d(0x175)][_0x13828d(0x131)](_0x13828d(0x16c))[_0x13828d(0x12c)]({'model':_0x13828d(0x136),'view':_0x13828d(0x15a)}),_0xcdfae[_0x13828d(0x175)][_0x13828d(0x131)](_0x13828d(0x178))[_0x13828d(0x151)]({'model':{'key':_0x13828d(0x136),'value':_0x4cf32c=>_0x4cf32c[_0x13828d(0x13d)](_0x13828d(0x15a))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xa61752=_0xcdfae[_0x13828d(0x168)][_0x13828d(0x13c)](_0x13828d(0x166));_0xa61752&&this[_0x13828d(0x16f)](_0xa61752,_0x13828d(0x14c),(_0x5c338b,[_0x2e6a0a,_0x180c8c])=>{const _0x25cb9d=_0x13828d;_0x2e6a0a[_0x25cb9d(0x17e)](_0x25cb9d(0x136),_0x180c8c);});}[_0x460775(0x16d)](){const _0x4a4398=_0x460775,_0x499ec4=this[_0x4a4398(0x148)][_0x4a4398(0x144)][_0x4a4398(0x13c)](_0x4a4398(0x16a))||{},_0x4cb8fe=this[_0x4a4398(0x148)][_0x4a4398(0x144)][_0x4a4398(0x13c)](_0x4a4398(0x17a))||'';this[_0x4a4398(0x163)]=_0x5401b2(_0x18dad5[_0x4a4398(0x16e)],_0x4a4398(0x13e),{..._0x499ec4,'pubkey':_0x4cb8fe,'ctx-name':_0x4a4398(0x137),'sourceList':'','imgOnly':_0x4a4398(0x13a),'removeCopyright':_0x4a4398(0x13a),'localeName':this[_0x4a4398(0x148)][_0x4a4398(0x159)][_0x4a4398(0x12d)],'externalSourcesEmbedCss':_0x4a4398(0x130)}),this[_0x4a4398(0x163)][_0x4a4398(0x15f)]=_0x4a6ded=>{const _0x3f9f4c=_0x4a4398;if(_0x3f9f4c(0x158)==_0x4a6ded)return _0x3f9f4c(0x17c);},_0x18dad5[_0x4a4398(0x16e)][_0x4a4398(0x161)][_0x4a4398(0x152)](this[_0x4a4398(0x163)]);}[_0x460775(0x15e)](){const _0x2a07b9=_0x460775;this[_0x2a07b9(0x139)]=_0x5401b2(_0x18dad5[_0x2a07b9(0x16e)],_0x2a07b9(0x133),{'ctx-name':_0x2a07b9(0x137)}),_0x18dad5[_0x2a07b9(0x16e)][_0x2a07b9(0x161)][_0x2a07b9(0x152)](this[_0x2a07b9(0x139)]);}[_0x460775(0x150)](){const _0x5886ff=_0x460775,_0x1f0e0f=this[_0x5886ff(0x148)][_0x5886ff(0x168)][_0x5886ff(0x13c)](_0x5886ff(0x13f));_0x1f0e0f&&this[_0x5886ff(0x16f)](_0x1f0e0f,_0x5886ff(0x12f),()=>{const _0x5010f3=_0x5886ff,_0x43f4c1=this[_0x5010f3(0x148)][_0x5010f3(0x160)][_0x5010f3(0x16e)][_0x5010f3(0x156)][_0x5010f3(0x15b)]();_0x43f4c1&&_0x43f4c1[_0x5010f3(0x13d)](_0x5010f3(0x136))&&this[_0x5010f3(0x148)][_0x5010f3(0x14b)][_0x5010f3(0x14e)][_0x5010f3(0x174)](_0x5010f3(0x143),()=>{const _0x141e44=_0x5010f3;_0x10f413(this[_0x141e44(0x148)],_0x43f4c1);});});const _0x316de7=this[_0x5886ff(0x148)][_0x5886ff(0x168)][_0x5886ff(0x13c)](_0x5886ff(0x176));_0x316de7&&this[_0x5886ff(0x16f)](_0x316de7,_0x5886ff(0x12f),()=>{const _0x528dd7=_0x5886ff,_0x34732d=this[_0x528dd7(0x148)][_0x528dd7(0x160)][_0x528dd7(0x16e)][_0x528dd7(0x156)][_0x528dd7(0x15b)]();_0x34732d&&_0x34732d[_0x528dd7(0x13d)](_0x528dd7(0x136))&&this[_0x528dd7(0x148)][_0x528dd7(0x14b)][_0x528dd7(0x14e)][_0x528dd7(0x174)](_0x528dd7(0x143),()=>{const _0x688998=_0x528dd7;_0x10f413(this[_0x688998(0x148)],_0x34732d);});});}}function _0xb23f(){const _0x3fc512=['config','destroy','init','_initSchema','editor','45tZeGWF','imageBlock','editing','cleanupImage','join','view','300778LLREUD','_initImageProcessingIndicator','elementToAttribute','appendChild','4816736KTnXTn','extend','uploadcare','selection','input[uploadcare-file-input]','closeMax','locale','data-uc-image-id','getSelectedElement','isRegistered','9usmhXx','_initCtx','iconHrefResolver','model','body','fromCharCode','_configElement','954348OjWupt','configElement','replaceImageSource','PictureEditing','commands','add','uploadcare.uploader','4624340HjFQtr','downcast','_initConfig','document','listenTo','6007480SLpqwk','href','isOfficialPlugin','imageInline','once','conversion','uploadcareImageReplace','pluginName','upcast','map','uploadcare.pubkey','requires','#uc-icon-arrow-down','afterInit','removeAttribute','isPremiumPlugin','attributeToAttribute','contentLanguage','423324axUVUi','execute','\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','for','schema','uc-upload-ctx-provider','_initConversion','2ZTdIZA','uploadcareImageId','uploader','querySelector','_ctxElement','true','902808pIBfrF','get','getAttribute','uc-config','insertImage','UploadcareEditing','remove','ctxElement','render'];_0xb23f=function(){return _0x3fc512;};return _0xb23f();}
|
|
23
|
+
const _0x3b88c4=_0x55b3;(function(_0x29087d,_0x2e51df){const _0x5377f8=_0x55b3,_0x1ba25d=_0x29087d();while(!![]){try{const _0x3f14c1=parseInt(_0x5377f8(0x16f))/0x1+-parseInt(_0x5377f8(0x156))/0x2*(-parseInt(_0x5377f8(0x15d))/0x3)+-parseInt(_0x5377f8(0x189))/0x4+parseInt(_0x5377f8(0x171))/0x5*(-parseInt(_0x5377f8(0x15e))/0x6)+-parseInt(_0x5377f8(0x16a))/0x7*(parseInt(_0x5377f8(0x16d))/0x8)+-parseInt(_0x5377f8(0x146))/0x9+parseInt(_0x5377f8(0x147))/0xa;if(_0x3f14c1===_0x2e51df)break;else _0x1ba25d['push'](_0x1ba25d['shift']());}catch(_0x8d83b6){_0x1ba25d['push'](_0x1ba25d['shift']());}}}(_0x47e2,0x32d80));import{Plugin as _0x24323c}from'ckeditor5/src/core.js';function _0x55b3(_0x68ae3e,_0x57f324){const _0x47e21e=_0x47e2();return _0x55b3=function(_0x55b3c9,_0x1cacbc){_0x55b3c9=_0x55b3c9-0x13a;let _0x4e8cf1=_0x47e21e[_0x55b3c9];return _0x4e8cf1;},_0x55b3(_0x68ae3e,_0x57f324);}import{Dialog as _0x1aeaf6}from'ckeditor5/src/ui.js';import{createElement as _0x4c239e,global as _0x3313a6,uid as _0x21b39c}from'ckeditor5/src/utils.js';import _0x132a16 from'./uploadcarecommand.js';import _0x24cec3 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x40bc5f}from'./utils/editingutils.js';function _0x47e2(){const _0x5a5664=['getSelectedElement','8xbidmR','configElement','302818rRDhcQ','for','218585xLVTeM','attributeToAttribute','ctxElement','commands','appendChild','init','_initCtx','\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','_initConversion','uploadcareImageReplace','imageBlock','afterInit','input[uploadcare-file-input]','uploadcare.uploader','href','uploadcare.pubkey','closeMax','requires','render','uc-config','uploader','upcast','document','_configElement','584556BxNyQC','get','destroy','data-uc-image-id','editor','model','querySelector','PictureEditing','contentLanguage','uploadcareImageId','removeAttribute','downcast','isOfficialPlugin','getAttribute','extend','pluginName','uploadcare','764856KSSqbB','6148430UQUMtt','cleanupImage','schema','execute','body','conversion','config','isPremiumPlugin','uc-upload-ctx-provider','_initSchema','imageInline','selection','listenTo','elementToAttribute','map','68674qBPwog','once','#uc-icon-arrow-down','iconHrefResolver','_initImageProcessingIndicator','fromCharCode','_initConfig','3ajQHcE','54PFvrus','_ctxElement','replaceImageSource','remove','UploadcareEditing','view','insertImage','editing','true','locale','join','add','834162YmWPIh','isRegistered'];_0x47e2=function(){return _0x5a5664;};return _0x47e2();}export default class i extends _0x24323c{[_0x3b88c4(0x188)]=null;[_0x3b88c4(0x15f)]=null;static get[_0x3b88c4(0x144)](){const _0x156946=_0x3b88c4;return _0x156946(0x162);}static get[_0x3b88c4(0x182)](){const _0x21eb1a=_0x3b88c4;return[_0x21eb1a(0x13c),_0x24cec3,_0x1aeaf6];}static get[_0x3b88c4(0x141)](){return!0x0;}static get[_0x3b88c4(0x14e)](){return!0x0;}get[_0x3b88c4(0x16e)](){const _0x4dfb83=_0x3b88c4;return this[_0x4dfb83(0x188)];}get[_0x3b88c4(0x173)](){const _0x3a7a79=_0x3b88c4;return this[_0x3a7a79(0x15f)];}[_0x3b88c4(0x176)](){const _0x2e3877=_0x3b88c4,_0x5bf0c4=this[_0x2e3877(0x18d)];_0x5bf0c4[_0x2e3877(0x174)][_0x2e3877(0x169)](_0x2e3877(0x145),new _0x132a16(_0x5bf0c4));}[_0x3b88c4(0x17c)](){const _0x5192c6=_0x3b88c4;this[_0x5192c6(0x150)](),this[_0x5192c6(0x179)](),this[_0x5192c6(0x15c)](),this[_0x5192c6(0x177)](),this[_0x5192c6(0x15a)](),this[_0x5192c6(0x153)](this[_0x5192c6(0x18d)],_0x5192c6(0x18b),()=>{const _0x5b07c1=_0x5192c6;this[_0x5b07c1(0x188)]&&(this[_0x5b07c1(0x188)][_0x5b07c1(0x161)](),this[_0x5b07c1(0x188)]=null),this[_0x5b07c1(0x15f)]&&(this[_0x5b07c1(0x15f)][_0x5b07c1(0x161)](),this[_0x5b07c1(0x15f)]=null);const _0x40215c=_0x3313a6[_0x5b07c1(0x187)][_0x5b07c1(0x13b)](_0x5b07c1(0x17d));_0x40215c&&_0x40215c[_0x5b07c1(0x161)]();}),async function(_0x1a2a6f){const _0x121e6f=_0x4f1aa8([0x35,0x70,0x33,0x34,0x56,0x6c,0x74,0x64,0x5a,0x73,0x63,0x79,0x6f,0x49,0x69,0x61,0x68,0x65,0x32,0x44,0x4e,0x36,0x4a,0x72,0x6a,0x6e,0x66,0x67,0x50,0x4d,0x41,0x46,0x53,0x75,0x76,0x43,0x6b,0x54,0x31,0x42,0x78,0x4f,0x48,0x38,0x4c,0x6d,0x4b,0x51,0x45,0x57,0x58,0x47,0x30,0x52,0x77,0x39,0x37,0x59,0x7a,0x55,0x62,0x71]),_0x270685=0x5d94eb28,_0xb85e3f=0x5d938ca0^_0x270685,_0x168db3=window[_0x4f1aa8([0x44,0x61,0x74,0x65])][_0x4f1aa8([0x6e,0x6f,0x77])](),_0xdaa827=_0x1a2a6f[_0x4f1aa8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b388f=new window[(_0x4f1aa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x170ab0=>{_0xdaa827[_0x4f1aa8([0x6f,0x6e,0x63,0x65])](_0x4f1aa8([0x72,0x65,0x61,0x64,0x79]),_0x170ab0);}),_0x4d3dad={[_0x4f1aa8([0x6b,0x74,0x79])]:_0x4f1aa8([0x45,0x43]),[_0x4f1aa8([0x75,0x73,0x65])]:_0x4f1aa8([0x73,0x69,0x67]),[_0x4f1aa8([0x63,0x72,0x76])]:_0x4f1aa8([0x50,0x2d,0x32,0x35,0x36]),[_0x4f1aa8([0x78])]:_0x4f1aa8([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]),[_0x4f1aa8([0x79])]:_0x4f1aa8([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]),[_0x4f1aa8([0x61,0x6c,0x67])]:_0x4f1aa8([0x45,0x53,0x32,0x35,0x36])},_0x447d1c=_0xdaa827[_0x4f1aa8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f1aa8([0x67,0x65,0x74])](_0x4f1aa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1d9cbe(){let _0x44ee74,_0x340136=null,_0x275157=null;try{if(_0x447d1c==_0x4f1aa8([0x47,0x50,0x4c]))return _0x4f1aa8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x44ee74=_0x1fd37f(),!_0x44ee74)return _0x4f1aa8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x44ee74[_0x4f1aa8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x275157=_0x50500a(_0x44ee74[_0x4f1aa8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x44ee74[_0x4f1aa8([0x6a,0x74,0x69])])),await _0x3ab7e3()?_0x4ecb94()?_0x5489de()?_0x4f1aa8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a04a2()?(_0x44ee74[_0x4f1aa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f1aa8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x340136=_0x2fd5c5(_0x4f1aa8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x44ee74[_0x4f1aa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f1aa8([0x74,0x72,0x69,0x61,0x6c])&&(_0x340136=_0x2fd5c5(_0x4f1aa8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x17ceac()):_0x4f1aa8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f1aa8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f1aa8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x587b6d){return _0x4f1aa8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5489de(){const _0x12beb9=[_0x4f1aa8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f1aa8([0x74,0x72,0x69,0x61,0x6c])][_0x4f1aa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44ee74[_0x4f1aa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x168db3/0x3e8:0xe10*_0xb85e3f;return _0x44ee74[_0x4f1aa8([0x65,0x78,0x70])]<_0x12beb9;}function _0x4ecb94(){const _0x75f783=_0x44ee74[_0x4f1aa8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x75f783&&(!!_0x75f783[_0x4f1aa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f1aa8([0x2a]))||!!_0x75f783[_0x4f1aa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f1aa8([0x55,0x50,0x4c,0x43])));}function _0x4a04a2(){const _0x42d492=_0x55b3,_0x5f50ae=_0x44ee74[_0x4f1aa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5f50ae||0x0==_0x5f50ae[_0x4f1aa8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x123cc1}=new URL(window[_0x4f1aa8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x42d492(0x17f)]);if(_0x5f50ae[_0x4f1aa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x123cc1))return!0x0;const _0x4207ee=_0x123cc1[_0x4f1aa8([0x73,0x70,0x6c,0x69,0x74])](_0x4f1aa8([0x2e]));return _0x5f50ae[_0x4f1aa8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x368c47=>_0x368c47[_0x4f1aa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f1aa8([0x2a])))[_0x4f1aa8([0x6d,0x61,0x70])](_0x35bd1a=>_0x35bd1a[_0x4f1aa8([0x73,0x70,0x6c,0x69,0x74])](_0x4f1aa8([0x2e])))[_0x4f1aa8([0x73,0x6f,0x6d,0x65])](_0x5f48e9=>_0x4207ee[_0x4f1aa8([0x65,0x76,0x65,0x72,0x79])]((_0x52949e,_0x53f222)=>_0x5f48e9[_0x53f222]===_0x52949e||_0x5f48e9[_0x53f222]===_0x4f1aa8([0x2a])));}function _0x17ceac(){return _0x340136&&_0x275157?new window[(_0x4f1aa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x333419,_0x5b8910)=>{_0x340136[_0x4f1aa8([0x74,0x68,0x65,0x6e])](_0x333419,_0x5b8910),_0x275157[_0x4f1aa8([0x74,0x68,0x65,0x6e])](_0x32d5d9=>{_0x32d5d9!=_0x4f1aa8([0x56,0x61,0x6c,0x69,0x64])&&_0x333419(_0x32d5d9);},_0x5b8910);}):_0x340136||_0x275157||_0x4f1aa8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x50500a(_0x3e1aeb,_0x1ca6bb){return new window[(_0x4f1aa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4699bc=>{if(_0x1a0f8c())return _0x4699bc(_0x4f1aa8([0x56,0x61,0x6c,0x69,0x64]));_0x2e95cc(),_0xdaa827[_0x4f1aa8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f1aa8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1c1bcc=!0x1;const _0x41a0ec=_0x21b39c();function _0x2c3bdf(_0x5ccebe){return!!_0x5ccebe&&(typeof _0x5ccebe===_0x4f1aa8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5ccebe===_0x4f1aa8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5ccebe[_0x4f1aa8([0x74,0x68,0x65,0x6e])]===_0x4f1aa8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5ccebe[_0x4f1aa8([0x63,0x61,0x74,0x63,0x68])]===_0x4f1aa8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x40d58d(_0x50c91d){_0x1b126d(_0x50c91d)[_0x4f1aa8([0x74,0x68,0x65,0x6e])](_0x5c89d4=>{if(!_0x5c89d4||_0x5c89d4[_0x4f1aa8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f1aa8([0x6f,0x6b]))return _0x4f1aa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x222392(_0x30e2c6(_0x41a0ec+_0x1ca6bb))!=_0x5c89d4[_0x4f1aa8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f1aa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f1aa8([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f1aa8([0x74,0x68,0x65,0x6e])](_0x285a56=>(_0x360978(),_0x285a56),()=>{const _0x1d9ed2=_0x27f1e4();return null==_0x1d9ed2?(_0x360978(),_0x4f1aa8([0x56,0x61,0x6c,0x69,0x64])):_0x4f1aa8(_0x168db3-_0x1d9ed2>(0x79986f28^_0x270685)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f1aa8([0x74,0x68,0x65,0x6e])](_0x4699bc)[_0x4f1aa8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4699bc(_0x4f1aa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x269027=0x5da205a8^_0x270685;function _0x360978(){const _0x4510dd=_0x4f1aa8([0x6c,0x6c,0x63,0x74,0x2d])+_0x222392(_0x30e2c6(_0x3e1aeb)),_0x8d9edb=_0xabe0ad(_0x222392(window[_0x4f1aa8([0x4d,0x61,0x74,0x68])][_0x4f1aa8([0x63,0x65,0x69,0x6c])](_0x168db3/_0x269027)));window[_0x4f1aa8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f1aa8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4510dd,_0x8d9edb);}function _0x27f1e4(){const _0x26be45=_0x4f1aa8([0x6c,0x6c,0x63,0x74,0x2d])+_0x222392(_0x30e2c6(_0x3e1aeb)),_0x1e336c=window[_0x4f1aa8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f1aa8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26be45);return _0x1e336c?window[_0x4f1aa8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xabe0ad(_0x1e336c),0x10)*_0x269027:null;}function _0x1b126d(_0x22bbb4){return new window[(_0x4f1aa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3918e8,_0x34520f)=>{_0x22bbb4[_0x4f1aa8([0x74,0x68,0x65,0x6e])](_0x3918e8,_0x34520f),window[_0x4f1aa8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x34520f,0x5d953fe8^_0x270685);});}}_0xdaa827[_0x4f1aa8([0x6f,0x6e])](_0x4f1aa8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x46f806,_0x18065d)=>{if(_0x18065d[0x0]!=_0x3e1aeb)return _0x4699bc(_0x4f1aa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x18065d[0x1]={..._0x18065d[0x1],[_0x4f1aa8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x41a0ec};},{[_0x4f1aa8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f1aa8([0x68,0x69,0x67,0x68])}),_0xdaa827[_0x4f1aa8([0x6f,0x6e])](_0x4f1aa8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1a8132=>{_0x2c3bdf(_0x1a8132[_0x4f1aa8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1c1bcc=!0x0,_0x40d58d(_0x1a8132[_0x4f1aa8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f1aa8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f1aa8([0x6c,0x6f,0x77])}),_0x4b388f[_0x4f1aa8([0x74,0x68,0x65,0x6e])](()=>{_0x1c1bcc||_0x4699bc(_0x4f1aa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1a0f8c(){return _0xdaa827[_0x4f1aa8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f1aa8([0x76,0x69,0x65,0x77])][_0x4f1aa8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f1aa8([0x61,0x75,0x74,0x6f]);}function _0x2e95cc(){_0xdaa827[_0x4f1aa8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f1aa8([0x76,0x69,0x65,0x77])][_0x4f1aa8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f1aa8([0x61,0x75,0x74,0x6f]);}}function _0x2fd5c5(_0x516032){const _0x2df04a=[new window[(_0x4f1aa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x126fbf=>setTimeout(_0x126fbf,0x5d9dd5e4^_0x270685)),_0x4b388f[_0x4f1aa8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f1aa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x470908=>{let _0x2fdb11=0x0;_0xdaa827[_0x4f1aa8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f1aa8([0x6f,0x6e])](_0x4f1aa8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4d7d25,_0x42857a)=>{_0x42857a[0x0][_0x4f1aa8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2fdb11++,_0x2fdb11==(0x5d94ead0^_0x270685)&&(_0x470908(),_0x4d7d25[_0x4f1aa8([0x6f,0x66,0x66])]());});}))];return window[_0x4f1aa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f1aa8([0x72,0x61,0x63,0x65])](_0x2df04a)[_0x4f1aa8([0x74,0x68,0x65,0x6e])](()=>_0x516032);}async function _0x1934e1(){await _0x4b388f,_0xdaa827[_0x4f1aa8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f1aa8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x7f05fe,_0xdaa827[_0x4f1aa8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f1aa8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x7f05fe,_0xdaa827[_0x4f1aa8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f1aa8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x231cc2(_0x4c7268){const _0x184bb3=_0x48fd45();_0xdaa827[_0x184bb3]=_0x4f1aa8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c7268,_0x4c7268!=_0x4f1aa8([0x56,0x61,0x6c,0x69,0x64])&&_0x1934e1();}function _0x48fd45(){const _0x5b264b=window[_0x4f1aa8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f1aa8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f1aa8([0x6e,0x6f,0x77])]())[_0x4f1aa8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f1aa8([0x2e]),'');let _0x27edc5=_0x4f1aa8([0x70]);for(let _0x5e71d5=0x0;_0x5e71d5<_0x5b264b[_0x4f1aa8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e71d5+=0x2){let _0x239a3b=window[_0x4f1aa8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b264b[_0x4f1aa8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e71d5,_0x5e71d5+0x2));_0x239a3b>=_0x121e6f[_0x4f1aa8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x239a3b-=_0x121e6f[_0x4f1aa8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x27edc5+=_0x121e6f[_0x239a3b];}return _0x27edc5;}function _0x1fd37f(){const _0x150a61=_0x447d1c[_0x4f1aa8([0x73,0x70,0x6c,0x69,0x74])](_0x4f1aa8([0x2e]));if(0x3!=_0x150a61[_0x4f1aa8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a4de0(_0x150a61[0x1]);function _0x2a4de0(_0x3b7c03){const _0x1e302c=_0x15b0cb(_0x3b7c03);return _0x1e302c&&_0x5a87b5()?_0x1e302c:null;function _0x5a87b5(){const _0x5164a0=_0x1e302c[_0x4f1aa8([0x6a,0x74,0x69])],_0x131637=window[_0x4f1aa8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5164a0[_0x4f1aa8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5164a0[_0x4f1aa8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5e01b5={..._0x1e302c,[_0x4f1aa8([0x6a,0x74,0x69])]:_0x5164a0[_0x4f1aa8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5164a0[_0x4f1aa8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5e01b5[_0x4f1aa8([0x76,0x63])],_0x30e2c6(_0x5e01b5)==_0x131637;}}}async function _0x3ab7e3(){let _0x5ed08f=!0x0;try{const _0xe2b1ae=_0x447d1c[_0x4f1aa8([0x73,0x70,0x6c,0x69,0x74])](_0x4f1aa8([0x2e])),[_0x21e0a3,_0x5fc89d,_0x1a38d0]=_0xe2b1ae;return _0x56f5ea(_0x21e0a3),await _0xc77619(_0x21e0a3,_0x5fc89d,_0x1a38d0),_0x5ed08f;}catch(_0x3ee4ac){return!0x1;}function _0x56f5ea(_0xce7ac7){const _0x37c84c=_0x15b0cb(_0xce7ac7);_0x37c84c&&_0x37c84c[_0x4f1aa8([0x61,0x6c,0x67])]==_0x4f1aa8([0x45,0x53,0x32,0x35,0x36])||(_0x5ed08f=!0x1);}async function _0xc77619(_0x3f7c8f,_0x330156,_0x5ea553){const _0x20b677=window[_0x4f1aa8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f1aa8([0x66,0x72,0x6f,0x6d])](_0x5620a7(_0x5ea553),_0x2a3894=>_0x2a3894[_0x4f1aa8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2eeb15=new window[(_0x4f1aa8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f1aa8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3f7c8f+_0x4f1aa8([0x2e])+_0x330156),_0x3ea202=window[_0x4f1aa8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f1aa8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3ea202)return;const _0x444337=await _0x3ea202[_0x4f1aa8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f1aa8([0x6a,0x77,0x6b]),_0x4d3dad,{[_0x4f1aa8([0x6e,0x61,0x6d,0x65])]:_0x4f1aa8([0x45,0x43,0x44,0x53,0x41]),[_0x4f1aa8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f1aa8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f1aa8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3ea202[_0x4f1aa8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f1aa8([0x6e,0x61,0x6d,0x65])]:_0x4f1aa8([0x45,0x43,0x44,0x53,0x41]),[_0x4f1aa8([0x68,0x61,0x73,0x68])]:{[_0x4f1aa8([0x6e,0x61,0x6d,0x65])]:_0x4f1aa8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x444337,_0x20b677,_0x2eeb15)||(_0x5ed08f=!0x1);}}function _0x15b0cb(_0x5f46f6){return _0x5f46f6[_0x4f1aa8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f1aa8([0x65,0x79]))?JSON[_0x4f1aa8([0x70,0x61,0x72,0x73,0x65])](_0x5620a7(_0x5f46f6)):null;}function _0x5620a7(_0x539412){return window[_0x4f1aa8([0x61,0x74,0x6f,0x62])](_0x539412[_0x4f1aa8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f1aa8([0x2b]))[_0x4f1aa8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f1aa8([0x2f])));}function _0x30e2c6(_0x572fec){let _0x5e8f86=0x1505;function _0x715af(_0x5e7f77){for(let _0x4035cf=0x0;_0x4035cf<_0x5e7f77[_0x4f1aa8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4035cf++){const _0x1e10f8=_0x5e7f77[_0x4f1aa8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4035cf);_0x5e8f86=(_0x5e8f86<<0x5)+_0x5e8f86+_0x1e10f8,_0x5e8f86&=_0x5e8f86;}}function _0x1b6cbc(_0xc269e){Array[_0x4f1aa8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xc269e)?_0xc269e[_0x4f1aa8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1b6cbc):_0xc269e&&typeof _0xc269e==_0x4f1aa8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f1aa8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xc269e)[_0x4f1aa8([0x73,0x6f,0x72,0x74])]()[_0x4f1aa8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x95ac4,_0x3833d1])=>{_0x715af(_0x95ac4),_0x1b6cbc(_0x3833d1);}):_0x715af(window[_0x4f1aa8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xc269e));}return _0x1b6cbc(_0x572fec),_0x5e8f86>>>0x0;}function _0x222392(_0x438e92){return _0x438e92[_0x4f1aa8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f1aa8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f1aa8([0x30]));}function _0xabe0ad(_0x584b3b){return _0x584b3b[_0x4f1aa8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f1aa8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f1aa8([0x6a,0x6f,0x69,0x6e])]('');}function _0x7f05fe(){}function _0x4f1aa8(_0x76398f){const _0x477e7c=_0x55b3;return _0x76398f[_0x477e7c(0x155)](_0x36402b=>String[_0x477e7c(0x15b)](_0x36402b))[_0x477e7c(0x168)]('');}_0x231cc2(await _0x1d9cbe());}(this);}[_0x3b88c4(0x150)](){const _0x281dd1=_0x3b88c4,_0x3009e0=this[_0x281dd1(0x18d)][_0x281dd1(0x13a)][_0x281dd1(0x149)];_0x3009e0[_0x281dd1(0x16b)](_0x281dd1(0x17b))&&_0x3009e0[_0x281dd1(0x143)](_0x281dd1(0x17b),{'allowAttributes':[_0x281dd1(0x13e)]}),_0x3009e0[_0x281dd1(0x16b)](_0x281dd1(0x151))&&_0x3009e0[_0x281dd1(0x143)](_0x281dd1(0x151),{'allowAttributes':[_0x281dd1(0x13e)]});}[_0x3b88c4(0x179)](){const _0x3c3255=_0x3b88c4,_0x123914=this[_0x3c3255(0x18d)];_0x123914[_0x3c3255(0x14c)][_0x3c3255(0x170)](_0x3c3255(0x140))[_0x3c3255(0x172)]({'model':_0x3c3255(0x13e),'view':_0x3c3255(0x18c)}),_0x123914[_0x3c3255(0x14c)][_0x3c3255(0x170)](_0x3c3255(0x186))[_0x3c3255(0x154)]({'model':{'key':_0x3c3255(0x13e),'value':_0x454743=>_0x454743[_0x3c3255(0x142)](_0x3c3255(0x18c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x297601=_0x123914[_0x3c3255(0x174)][_0x3c3255(0x18a)](_0x3c3255(0x160));_0x297601&&this[_0x3c3255(0x153)](_0x297601,_0x3c3255(0x148),(_0x1c8ba1,[_0x1b5888,_0x3ef5af])=>{const _0x3c9ae1=_0x3c3255;_0x1b5888[_0x3c9ae1(0x13f)](_0x3c9ae1(0x13e),_0x3ef5af);});}[_0x3b88c4(0x15c)](){const _0xf0b20e=_0x3b88c4,_0x419e82=this[_0xf0b20e(0x18d)][_0xf0b20e(0x14d)][_0xf0b20e(0x18a)](_0xf0b20e(0x17e))||{},_0x325b31=this[_0xf0b20e(0x18d)][_0xf0b20e(0x14d)][_0xf0b20e(0x18a)](_0xf0b20e(0x180))||'';this[_0xf0b20e(0x188)]=_0x4c239e(_0x3313a6[_0xf0b20e(0x187)],_0xf0b20e(0x184),{..._0x419e82,'pubkey':_0x325b31,'ctx-name':_0xf0b20e(0x185),'sourceList':'','imgOnly':_0xf0b20e(0x166),'removeCopyright':_0xf0b20e(0x166),'localeName':this[_0xf0b20e(0x18d)][_0xf0b20e(0x167)][_0xf0b20e(0x13d)],'externalSourcesEmbedCss':_0xf0b20e(0x178)}),this[_0xf0b20e(0x188)][_0xf0b20e(0x159)]=_0x56c51c=>{const _0x55f2a9=_0xf0b20e;if(_0x55f2a9(0x181)==_0x56c51c)return _0x55f2a9(0x158);},_0x3313a6[_0xf0b20e(0x187)][_0xf0b20e(0x14b)][_0xf0b20e(0x175)](this[_0xf0b20e(0x188)]);}[_0x3b88c4(0x177)](){const _0x3c6a80=_0x3b88c4;this[_0x3c6a80(0x15f)]=_0x4c239e(_0x3313a6[_0x3c6a80(0x187)],_0x3c6a80(0x14f),{'ctx-name':_0x3c6a80(0x185)}),_0x3313a6[_0x3c6a80(0x187)][_0x3c6a80(0x14b)][_0x3c6a80(0x175)](this[_0x3c6a80(0x15f)]);}[_0x3b88c4(0x15a)](){const _0x5e6f76=_0x3b88c4,_0x3a63bf=this[_0x5e6f76(0x18d)][_0x5e6f76(0x174)][_0x5e6f76(0x18a)](_0x5e6f76(0x164));_0x3a63bf&&this[_0x5e6f76(0x153)](_0x3a63bf,_0x5e6f76(0x14a),()=>{const _0x5970ed=_0x5e6f76,_0x101044=this[_0x5970ed(0x18d)][_0x5970ed(0x13a)][_0x5970ed(0x187)][_0x5970ed(0x152)][_0x5970ed(0x16c)]();_0x101044&&_0x101044[_0x5970ed(0x142)](_0x5970ed(0x13e))&&this[_0x5970ed(0x18d)][_0x5970ed(0x165)][_0x5970ed(0x163)][_0x5970ed(0x157)](_0x5970ed(0x183),()=>{const _0x1d5af9=_0x5970ed;_0x40bc5f(this[_0x1d5af9(0x18d)],_0x101044);});});const _0xa657f8=this[_0x5e6f76(0x18d)][_0x5e6f76(0x174)][_0x5e6f76(0x18a)](_0x5e6f76(0x17a));_0xa657f8&&this[_0x5e6f76(0x153)](_0xa657f8,_0x5e6f76(0x14a),()=>{const _0x485eba=_0x5e6f76,_0x223d62=this[_0x485eba(0x18d)][_0x485eba(0x13a)][_0x485eba(0x187)][_0x485eba(0x152)][_0x485eba(0x16c)]();_0x223d62&&_0x223d62[_0x485eba(0x142)](_0x485eba(0x13e))&&this[_0x485eba(0x18d)][_0x485eba(0x165)][_0x485eba(0x163)][_0x485eba(0x157)](_0x485eba(0x183),()=>{const _0x3db88d=_0x485eba;_0x40bc5f(this[_0x3db88d(0x18d)],_0x223d62);});});}}
|