@ckeditor/ckeditor5-uploadcare 46.0.0-alpha.5 → 46.0.0-alpha.6
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 _0x2bd51e,Command as _0x261aa2}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x52534c,IconGooglePhotos as _0x528d33,IconGoogleDrive as _0x5526f1,IconFacebook as _0x573873,IconDropbox as _0x570c7d,IconUploadcareLink as _0xac6f53,IconUploadcareImageUpload as _0x564fdc,IconError as _0x44e746,IconUploadcareImageEdit as _0x2d805d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1c9ac3,MenuBarMenuListItemButtonView as _0x3a53b3,View as _0x300e8c,FocusCycler as _0x184e6b,Dialog as _0x1a6a7c,DialogViewPosition as _0x8457fb,SpinnerView as _0x26768c,IconView as _0x73c148,Notification as _0x4235c2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x47859d,DomEmitterMixin as _0x3087ba,global as _0xafe6eb,getAncestors as _0x594e2c,ObservableMixin as _0x5945cc,uid as _0x71db4a,createElement as _0x1fc752}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x444b96}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1f16e8,info as _0x565afe}from'@uploadcare/upload-client';import*as _0x2b26d1 from'@uploadcare/file-uploader';var i=function(_0x34f68d){return _0x34f68d['Local']='local',_0x34f68d['URL']='url',_0x34f68d['Dropbox']='dropbox',_0x34f68d['GDrive']='gdrive',_0x34f68d['Facebook']='facebook',_0x34f68d['GPhotos']='gphotos',_0x34f68d['OneDrive']='onedrive',_0x34f68d;}({});function _(_0x1d0885,_0x4a7e80,_0x3a5f37){const t=_0x1d0885['t'],_0x870577=_0x1d0885['t'];switch(_0x4a7e80){case i['Local']:return{'text':_0x870577('Insert'===_0x3a5f37?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x870577('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3a5f37?_0x870577('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x870577('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3a5f37?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3a5f37?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3a5f37?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3a5f37?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3a5f37?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4a7e80;}}class e extends _0x2bd51e{['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 _0x30b2ab=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x194b89;for(const _0x296192 in _0x30b2ab){const _0x1033b7=_0x296192,_0x5d71c7=_0x30b2ab[_0x1033b7];if('uploadcareLicenseKeyValid'==_0x5d71c7||'uploadcareLicenseKeyInvalid'==_0x5d71c7||'uploadcareLicenseKeyExpired'==_0x5d71c7||'uploadcareLicenseKeyDomainLimit'==_0x5d71c7||'uploadcareLicenseKeyNotAllowed'==_0x5d71c7||'uploadcareLicenseKeyEvaluationLimit'==_0x5d71c7||'uploadcareLicenseKeyTrialLimit'==_0x5d71c7||'uploadcareLicenseKeyUsageLimit'==_0x5d71c7){delete _0x30b2ab[_0x1033b7],_0x194b89=_0x5d71c7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x194b89&&_0x30b2ab['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x194b89&&_0x30b2ab['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x194b89&&_0x30b2ab['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x194b89&&_0x30b2ab['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x194b89&&_0x30b2ab['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x194b89&&_0x30b2ab['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x194b89&&_0x30b2ab['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x57f709}=this,_0xc1f757=_0x57f709['commands']['get']('uploadcare');if(!_0xc1f757)return;const _0x140558=this['_normalizeConfigSourceList'](_0x57f709['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5b3794,_0x4e9e0)=>{const _0x5c37e3=this['_getIntegrationKey'](_0x4e9e0['type']);return _0x5b3794[_0x5c37e3]||(_0x5b3794[_0x5c37e3]=[]),_0x5b3794[_0x5c37e3]['push'](_0x4e9e0),_0x5b3794;},{});_0x57f709['plugins']['has']('ImageInsertUI')&&_0x57f709['commands']['get']('uploadcare')&&Object['entries'](_0x140558)['forEach'](([_0x346fbc,_0xde674])=>{_0x57f709['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x346fbc,'observable':()=>_0xc1f757,'buttonViewCreator':()=>this['_createToolbarButton'](_0xde674),'formViewCreator':()=>this['_createDropdownButtons'](_0xde674),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xde674),'override':'assetManager'!==_0x346fbc});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x17d91e){const {locale:_0x131181}=this['editor'];return _0x17d91e['map'](_0x2c714=>{const _0x21834c=_(_0x131181,_0x2c714,'Insert');switch(_0x2c714){case i['Local']:return{'icon':_0x564fdc,'type':i['Local'],..._0x21834c};case i['URL']:return{'icon':_0xac6f53,'type':i['URL'],..._0x21834c};case i['Dropbox']:return{'icon':_0x570c7d,'type':i['Dropbox'],..._0x21834c};case i['Facebook']:return{'icon':_0x573873,'type':i['Facebook'],..._0x21834c};case i['GDrive']:return{'icon':_0x5526f1,'type':i['GDrive'],..._0x21834c};case i['GPhotos']:return{'icon':_0x528d33,'type':i['GPhotos'],..._0x21834c};case i['OneDrive']:return{'icon':_0x52534c,'type':i['OneDrive'],..._0x21834c};}});}['_getIntegrationKey'](_0x6f2a09){switch(_0x6f2a09){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x280abd,_0x30cbac){const _0x5cbb99=this['editor'],_0x1703a6=new _0x280abd(_0x5cbb99['locale']),_0x58b3d3=_0x5cbb99['commands']['get']('uploadcare');return _0x1703a6['bind']('isEnabled')['to'](_0x58b3d3),_0x1703a6['on']('execute',()=>{_0x58b3d3['execute'](_0x30cbac);}),_0x1703a6;}['_createToolbarButton'](_0x45180a){const {locale:_0x275406}=this['editor'],_0x44f6fc=this['editor']['plugins']['get']('ImageInsertUI'),_0x1828cf=_0x45180a[0x0],_0x111268=this['_createButton'](_0x1c9ac3,_0x1828cf['type']);return _0x111268['icon']=_0x1828cf['icon'],_0x111268['bind']('label')['to'](_0x44f6fc,'isImageSelected',_0x20920a=>_(_0x275406,_0x1828cf['type'],_0x20920a?'Replace':'Insert')['text']),_0x111268['tooltip']=!0x0,_0x111268;}['_createDropdownButtons'](_0x3e9a21){const {locale:_0x57a9b3}=this['editor'],_0x2f7aa7=this['editor']['plugins']['get']('ImageInsertUI');return _0x3e9a21['map'](_0x12c44c=>{const _0x3cf5a8=this['_createButton'](_0x1c9ac3,_0x12c44c['type']);return _0x3cf5a8['withText']=!0x0,_0x3cf5a8['icon']=_0x12c44c['icon'],_0x3cf5a8['bind']('label')['to'](_0x2f7aa7,'isImageSelected',_0x86bdc1=>_(_0x57a9b3,_0x12c44c['type'],_0x86bdc1?'Replace':'Insert')['text']),_0x3cf5a8;});}['_createMenuBarButtons'](_0x8deac9){return _0x8deac9['map'](_0x55d038=>{const _0x58e822=this['_createButton'](_0x3a53b3,_0x55d038['type']);return _0x58e822['icon']=_0x55d038['icon'],_0x58e822['label']=_0x55d038['shortText'],_0x58e822;});}}class F extends _0x300e8c{['focusTracker'];['focusCycler'];constructor(_0x4f6b48){super(_0x4f6b48),this['focusTracker']=new _0x47859d(),this['focusCycler']=new _0x184e6b({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x5938e0,_0x545d43){super(_0x5938e0),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-'+_0x545d43}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x42ca65,_0x3e6588){const _0x4e4553=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x10ac4d=>_0x10ac4d<=_0x3e6588)['map'](_0x3552f9=>_0x42ca65['replace'](/\/$/,'')+'/-/resize/'+_0x3552f9+'x/\x20'+_0x3552f9+'w');return{'imageFallbackUrl':_0x42ca65,'imageSources':[{'srcset':_0x4e4553['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3e6588+'px)\x20100vw,\x20'+_0x3e6588+'px','type':'image/webp'}]};}function C(_0x4d0abe,_0x534d2b,_0x227cac){const _0x5421f2=_0x4d0abe['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5421f2?parseInt(_0x5421f2[0x1],0xa):_0x534d2b,'height':_0x5421f2?parseInt(_0x5421f2[0x2],0xa):_0x227cac};}function p(_0x3dfbc9,_0x100ca8){const _0x5747ce=new(_0x3087ba())(),_0x25001c=_0x3dfbc9['plugins']['get']('ImageUtils'),_0x49dd50=_0x3dfbc9['editing']['mapper']['toViewElement'](_0x100ca8),_0x4c7e35=_0x25001c['findViewImgElement'](_0x49dd50),_0x5c5651=_0x3dfbc9['editing']['view']['domConverter']['viewToDom'](_0x4c7e35),_0x49897d=_0x100ca8['getAttribute']('width'),_0x38a95a=_0x100ca8['getAttribute']('height'),_0x4afbcc='image-processing';_0x3dfbc9['editing']['view']['change'](_0x6a42f=>{_0x6a42f['addClass'](_0x4afbcc,_0x49dd50),_0x6a42f['setStyle']('aspect-ratio',_0x49897d+'/'+_0x38a95a,_0x4c7e35);}),_0x5747ce['listenTo'](_0x5c5651,'load',()=>{_0x5747ce['stopListening'](_0x5c5651,'load'),_0x3dfbc9['editing']['view']['change'](_0x156067=>{_0x156067['removeClass'](_0x4afbcc,_0x49dd50),_0x156067['removeStyle']('aspect-ratio',_0x4c7e35);});});}function G(_0x169cdb){if(Array['isArray'](_0x169cdb)){const _0xeac480=_0x169cdb['map'](G);return _0x5b9fff=>_0xeac480['some'](_0x3d831b=>_0x3d831b(_0x5b9fff));}if('origin'==_0x169cdb){const _0x9f850b=_0xafe6eb['window']['location']['origin'];return _0x5a55dc=>new URL(_0x5a55dc,_0xafe6eb['document']['baseURI'])['origin']==_0x9f850b;}return'function'==typeof _0x169cdb?_0x169cdb:_0x169cdb instanceof RegExp?_0x2ccbd0=>!(!_0x2ccbd0['match'](_0x169cdb)&&!_0x2ccbd0['replace'](/^https?:\/\//,'')['match'](_0x169cdb)):()=>!0x1;}function S(_0x5c05ff,_0x35d2c7){return _0x594e2c(_0x5c05ff['target'])['includes'](_0x35d2c7);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x5945cc(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4b649d,_0x461a72,_0x564bec){super(),this['_editor']=_0x4b649d,this['_editing']=_0x461a72,this['_dialog']=_0x4b649d['plugins']['get'](_0x1a6a7c),this['_api']=_0x461a72['ctxElement']['getAPI'](),this['_type']=_0x564bec,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:_0x47dd4c,model:_0x49413d}=this['_editor'],_0x479b15=_0x49413d['document']['selection']['getSelectedElement'](),_0x4b3f23=_0x479b15&&(_0x479b15['is']('element','imageBlock')||_0x479b15['is']('element','imageInline'));this['_formView']=new x(_0x47dd4c,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x564fdc,'title':_(_0x47dd4c,this['_type'],_0x4b3f23?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x8457fb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x309971=>!S(_0x309971,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5ca278}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x46c356=>{const _0x10862c=_0x5ca278['length'];for(const _0x1275bc of _0x5ca278){const _0xf3c08c=_0x1275bc===_0x5ca278[_0x10862c-0x1],{cdnUrl:_0x17cbd6,fileInfo:_0x6e85a3}=_0x1275bc;if(!_0x17cbd6||!_0x6e85a3)continue;const {width:_0x45abf1,height:_0x3ea4ae}=_0x6e85a3['imageInfo'],_0x55a514=C(_0x17cbd6,_0x45abf1,_0x3ea4ae),_0x57a139=k(_0x17cbd6,_0x55a514['width']),_0x5a1a32={'id':_0x6e85a3['uuid'],'type':'image','attributes':{'imageDimension':_0x55a514,..._0x57a139}};this['_insertAsset'](_0x5a1a32,_0xf3c08c,_0x46c356);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xb63bde=>{'idle'===_0xb63bde['detail']['status']&&!_0xb63bde['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x28f1ae,_0x445be1,_0xb118dd){const _0x11023d=this['_editor']['model']['document']['selection'],_0x4ea137=_0x11023d['getSelectedElement'](),_0x5e9674=!(!_0x4ea137||!_0x4ea137['is']('element','imageInline'));_0xb118dd['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x28f1ae,_0x5e9674),_0x445be1||_0xb118dd['setSelection'](_0x11023d['getLastPosition']());}['_insertImage'](_0xa35375,_0x14f388){const _0x280ec3=this['_editor'],{imageDimension:_0x4c3fee,imageFallbackUrl:_0x548b1d,imageSources:_0x22ddbb}=_0xa35375['attributes'];_0x280ec3['execute']('insertImage',{'imageType':_0x14f388?'imageInline':null,'source':{'uploadcareImageId':_0xa35375['id'],'src':_0x548b1d,'sources':_0x22ddbb,..._0x4c3fee}});}}class w extends _0x261aa2{['_editing'];['_controller']=null;static get['requires'](){return[_0x1a6a7c,o];}constructor(_0x204d9f){super(_0x204d9f),this['_editing']=_0x204d9f['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3330a3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x3330a3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3e1a7f,publicKey:_0x40d599,signal:_0xa75271,onProgress:_0x1d17cf}){return _0x1f16e8(_0x3e1a7f,{'publicKey':_0x40d599,'store':'auto','signal':_0xa75271,'onProgress':_0x1d17cf});}static['getInfo'](_0xd446d4,_0xaae8d1){return _0x565afe(_0xd446d4,_0xaae8d1);}}class f extends _0x2bd51e{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x444b96,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x96f224=this['editor'];if(!!!_0x96f224['config']['get']('uploadcare'))return;_0x96f224['plugins']['get'](_0x444b96)['createUploadAdapter']=_0x5d576f=>new A(_0x5d576f,_0x96f224),_0x96f224['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x556c6b,{imageElement:_0x41b99b,data:_0x23ea1e})=>{_0x96f224['model']['change'](_0x3af393=>{_0x3af393['setAttribute']('uploadcareImageId',_0x23ea1e['uploadcareImageId'],_0x41b99b);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x9c69c1,_0x1ec1af){this['loader']=_0x9c69c1,this['editor']=_0x1ec1af,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1206e0=this['editor']['config']['get']('uploadcare.pubkey'),_0x1eb9a5=await this['loader']['file'];return j['upload']({'file':_0x1eb9a5,'publicKey':_0x1206e0,'signal':this['controller']['signal'],'onProgress':_0x246044=>{_0x246044&&_0x246044['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x246044['value']);}})['then'](async _0x204094=>{const {imageFallbackUrl:_0x27a576,imageSources:_0x308e1c}=k(_0x204094['cdnUrl'],_0x204094['imageInfo']['width']);return{'uploadcareImageId':_0x204094['uuid'],'default':_0x27a576,'sources':_0x308e1c};})['catch'](()=>{const _0x1a3d76=t('Cannot\x20upload\x20file:')+('\x20'+_0x1eb9a5['name']+'.');return Promise['reject'](_0x1a3d76);});}['abort'](){this['controller']['abort']();}}class o extends _0x2bd51e{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1a6a7c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x57619e){super(_0x57619e),this['ucContextId']=_0x71db4a();}['init'](){const _0x576615=this['editor'];_0x576615['commands']['add']('uploadcare',new w(_0x576615));}['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 _0xc87c7=_0xafe6eb['document']['querySelector']('input[uploadcare-file-input]');_0xc87c7&&_0xc87c7['remove']();}),async function(_0x362d8){const _0x2c98b9=_0x486248([0x75,0x45,0x4d,0x35,0x31,0x54,0x67,0x6f,0x70,0x51,0x7a,0x42,0x61,0x62,0x49,0x6c,0x38,0x53,0x73,0x63,0x36,0x6e,0x37,0x32,0x52,0x65,0x64,0x41,0x58,0x39,0x34,0x56,0x48,0x68,0x59,0x76,0x71,0x6a,0x4f,0x4b,0x66,0x74,0x72,0x5a,0x43,0x44,0x47,0x33,0x77,0x4c,0x69,0x4e,0x6b,0x6d,0x30,0x78,0x46,0x4a,0x57,0x79,0x55,0x50]),_0x48f79b=0x7746ce3b,_0x2df76c=0x7741a2f3^_0x48f79b,_0x376bb3=window[_0x486248([0x44,0x61,0x74,0x65])][_0x486248([0x6e,0x6f,0x77])](),_0x2d262c=_0x362d8[_0x486248([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x316225=new window[(_0x486248([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59e125=>{_0x2d262c[_0x486248([0x6f,0x6e,0x63,0x65])](_0x486248([0x72,0x65,0x61,0x64,0x79]),_0x59e125);}),_0x29479f={[_0x486248([0x6b,0x74,0x79])]:_0x486248([0x45,0x43]),[_0x486248([0x75,0x73,0x65])]:_0x486248([0x73,0x69,0x67]),[_0x486248([0x63,0x72,0x76])]:_0x486248([0x50,0x2d,0x32,0x35,0x36]),[_0x486248([0x78])]:_0x486248([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]),[_0x486248([0x79])]:_0x486248([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]),[_0x486248([0x61,0x6c,0x67])]:_0x486248([0x45,0x53,0x32,0x35,0x36])},_0x37a26b=_0x2d262c[_0x486248([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x486248([0x67,0x65,0x74])](_0x486248([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e99dd(){let _0x98b00a,_0xf82d99=null,_0x1d1bb6=null;try{if(_0x37a26b==_0x486248([0x47,0x50,0x4c]))return _0x486248([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x98b00a=_0x5b6057(),!_0x98b00a)return _0x486248([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x98b00a[_0x486248([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d1bb6=_0x1b26fb(_0x98b00a[_0x486248([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x98b00a[_0x486248([0x6a,0x74,0x69])])),await _0x175b2d()?_0x216f8e()?_0x18c23f()?_0x486248([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3c4c99()?(_0x98b00a[_0x486248([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x486248([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xf82d99=_0x2c1468(_0x486248([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x98b00a[_0x486248([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x486248([0x74,0x72,0x69,0x61,0x6c])&&(_0xf82d99=_0x2c1468(_0x486248([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x26d580()):_0x486248([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x486248([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x486248([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x486248([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x18c23f(){const _0x109856=[_0x486248([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x486248([0x74,0x72,0x69,0x61,0x6c])][_0x486248([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x98b00a[_0x486248([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x376bb3/0x3e8:0xe10*_0x2df76c;return _0x98b00a[_0x486248([0x65,0x78,0x70])]<_0x109856;}function _0x216f8e(){const _0x13890b=_0x98b00a[_0x486248([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x13890b&&(!!_0x13890b[_0x486248([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x486248([0x2a]))||!!_0x13890b[_0x486248([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x486248([0x55,0x50,0x4c,0x43])));}function _0x3c4c99(){const _0x1abaa3=_0x98b00a[_0x486248([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1abaa3||0x0==_0x1abaa3[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a8c63}=new URL(window[_0x486248([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1abaa3[_0x486248([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a8c63))return!0x0;const _0x4d5186=_0x4a8c63[_0x486248([0x73,0x70,0x6c,0x69,0x74])](_0x486248([0x2e]));return _0x1abaa3[_0x486248([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c41e5=>_0x3c41e5[_0x486248([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x486248([0x2a])))[_0x486248([0x6d,0x61,0x70])](_0x456b6c=>_0x456b6c[_0x486248([0x73,0x70,0x6c,0x69,0x74])](_0x486248([0x2e])))[_0x486248([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b96e9=>_0x3b96e9[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4d5186[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x486248([0x6d,0x61,0x70])](_0x168fbf=>Array(_0x4d5186[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x168fbf[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x486248([0x66,0x69,0x6c,0x6c])](_0x168fbf[0x0]===_0x486248([0x2a])?_0x486248([0x2a]):'')[_0x486248([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x168fbf))[_0x486248([0x73,0x6f,0x6d,0x65])](_0x5044ad=>_0x4d5186[_0x486248([0x65,0x76,0x65,0x72,0x79])]((_0xd03c19,_0x4cd60d)=>_0x5044ad[_0x4cd60d]===_0xd03c19||_0x5044ad[_0x4cd60d]===_0x486248([0x2a])));}function _0x26d580(){return _0xf82d99&&_0x1d1bb6?new window[(_0x486248([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x34c884,_0x40d553)=>{_0xf82d99[_0x486248([0x74,0x68,0x65,0x6e])](_0x34c884,_0x40d553),_0x1d1bb6[_0x486248([0x74,0x68,0x65,0x6e])](_0x2f6fc9=>{_0x2f6fc9!=_0x486248([0x56,0x61,0x6c,0x69,0x64])&&_0x34c884(_0x2f6fc9);},_0x40d553);}):_0xf82d99||_0x1d1bb6||_0x486248([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b26fb(_0x59aaca,_0x103929){return new window[(_0x486248([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53f00e=>{if(_0x181747())return _0x53f00e(_0x486248([0x56,0x61,0x6c,0x69,0x64]));_0x5040c1(),_0x2d262c[_0x486248([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x486248([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c3800=!0x1;const _0x3ef8b0=_0x71db4a();function _0x221441(_0x5c310e){return!!_0x5c310e&&(typeof _0x5c310e===_0x486248([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5c310e===_0x486248([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5c310e[_0x486248([0x74,0x68,0x65,0x6e])]===_0x486248([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5c310e[_0x486248([0x63,0x61,0x74,0x63,0x68])]===_0x486248([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1094bf(_0x367313){_0x896da4(_0x367313)[_0x486248([0x74,0x68,0x65,0x6e])](_0x3addd4=>{if(!_0x3addd4||_0x3addd4[_0x486248([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x486248([0x6f,0x6b]))return _0x486248([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x25464c(_0x26372e(_0x3ef8b0+_0x103929))!=_0x3addd4[_0x486248([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x486248([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x486248([0x56,0x61,0x6c,0x69,0x64]);})[_0x486248([0x74,0x68,0x65,0x6e])](_0x6cd858=>(_0x2a3335(),_0x6cd858),()=>{const _0x3e3979=_0x57138b();return null==_0x3e3979?(_0x2a3335(),_0x486248([0x56,0x61,0x6c,0x69,0x64])):_0x486248(_0x376bb3-_0x3e3979>(0x534a4a3b^_0x48f79b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x486248([0x74,0x68,0x65,0x6e])](_0x53f00e)[_0x486248([0x63,0x61,0x74,0x63,0x68])](()=>{_0x53f00e(_0x486248([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1369e8=0x777020bb^_0x48f79b;function _0x2a3335(){const _0x4568a2=_0x486248([0x6c,0x6c,0x63,0x74,0x2d])+_0x25464c(_0x26372e(_0x59aaca)),_0x1ad558=_0x39491f(_0x25464c(window[_0x486248([0x4d,0x61,0x74,0x68])][_0x486248([0x63,0x65,0x69,0x6c])](_0x376bb3/_0x1369e8)));window[_0x486248([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x486248([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4568a2,_0x1ad558);}function _0x57138b(){const _0x3d9fee=_0x486248([0x6c,0x6c,0x63,0x74,0x2d])+_0x25464c(_0x26372e(_0x59aaca)),_0x7a1bd4=window[_0x486248([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x486248([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d9fee);return _0x7a1bd4?window[_0x486248([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39491f(_0x7a1bd4),0x10)*_0x1369e8:null;}function _0x896da4(_0x23f854){return new window[(_0x486248([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d9c88,_0x352299)=>{_0x23f854[_0x486248([0x74,0x68,0x65,0x6e])](_0x4d9c88,_0x352299),window[_0x486248([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x352299,0x77471afb^_0x48f79b);});}}_0x2d262c[_0x486248([0x6f,0x6e])](_0x486248([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x62c51,_0x436a30)=>{if(_0x436a30[0x0]!=_0x59aaca)return _0x53f00e(_0x486248([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x436a30[0x1]={..._0x436a30[0x1],[_0x486248([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ef8b0};},{[_0x486248([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x486248([0x68,0x69,0x67,0x68])}),_0x2d262c[_0x486248([0x6f,0x6e])](_0x486248([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xadafb8=>{_0x221441(_0xadafb8[_0x486248([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c3800=!0x0,_0x1094bf(_0xadafb8[_0x486248([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x486248([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x486248([0x6c,0x6f,0x77])}),_0x316225[_0x486248([0x74,0x68,0x65,0x6e])](()=>{_0x2c3800||_0x53f00e(_0x486248([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x181747(){return _0x2d262c[_0x486248([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x486248([0x76,0x69,0x65,0x77])][_0x486248([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x486248([0x61,0x75,0x74,0x6f]);}function _0x5040c1(){_0x2d262c[_0x486248([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x486248([0x76,0x69,0x65,0x77])][_0x486248([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x486248([0x61,0x75,0x74,0x6f]);}}function _0x2c1468(_0x890f8e){const _0x136e38=[new window[(_0x486248([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12a475=>setTimeout(_0x12a475,0x774ff0f7^_0x48f79b)),_0x316225[_0x486248([0x74,0x68,0x65,0x6e])](()=>new window[(_0x486248([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x98e720=>{let _0x203778=0x0;_0x2d262c[_0x486248([0x6d,0x6f,0x64,0x65,0x6c])][_0x486248([0x6f,0x6e])](_0x486248([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2a0783,_0x3c5905)=>{_0x3c5905[0x0][_0x486248([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x203778++,_0x203778==(0x7746cfc3^_0x48f79b)&&(_0x98e720(),_0x2a0783[_0x486248([0x6f,0x66,0x66])]());});}))];return window[_0x486248([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x486248([0x72,0x61,0x63,0x65])](_0x136e38)[_0x486248([0x74,0x68,0x65,0x6e])](()=>_0x890f8e);}async function _0x1ee446(){await _0x316225,_0x2d262c[_0x486248([0x6d,0x6f,0x64,0x65,0x6c])][_0x486248([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4e47f9,_0x2d262c[_0x486248([0x6d,0x6f,0x64,0x65,0x6c])][_0x486248([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4e47f9,_0x2d262c[_0x486248([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x486248([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x238d74(_0x24cab0){const _0x51b514=_0x439fe0();_0x2d262c[_0x51b514]=_0x486248([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x24cab0,_0x24cab0!=_0x486248([0x56,0x61,0x6c,0x69,0x64])&&_0x1ee446();}function _0x439fe0(){const _0x5e5434=window[_0x486248([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x486248([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x486248([0x6e,0x6f,0x77])]())[_0x486248([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x486248([0x2e]),'');let _0x59f6b6=_0x486248([0x75]);for(let _0x2b8183=0x0;_0x2b8183<_0x5e5434[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b8183+=0x2){let _0x53aefa=window[_0x486248([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e5434[_0x486248([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b8183,_0x2b8183+0x2));_0x53aefa>=_0x2c98b9[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x53aefa-=_0x2c98b9[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x59f6b6+=_0x2c98b9[_0x53aefa];}return _0x59f6b6;}function _0x5b6057(){const _0x4f18a3=_0x37a26b[_0x486248([0x73,0x70,0x6c,0x69,0x74])](_0x486248([0x2e]));if(0x3!=_0x4f18a3[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3aa6d4(_0x4f18a3[0x1]);function _0x3aa6d4(_0x5e1b26){const _0x177e30=_0x9df76c(_0x5e1b26);return _0x177e30&&_0x5de749()?_0x177e30:null;function _0x5de749(){const _0x226e03=_0x177e30[_0x486248([0x6a,0x74,0x69])],_0x5812ce=window[_0x486248([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x226e03[_0x486248([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x226e03[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2cb97c={..._0x177e30,[_0x486248([0x6a,0x74,0x69])]:_0x226e03[_0x486248([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x226e03[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2cb97c[_0x486248([0x76,0x63])],_0x26372e(_0x2cb97c)==_0x5812ce;}}}async function _0x175b2d(){let _0x4f7e48=!0x0;try{const _0x3ea502=_0x37a26b[_0x486248([0x73,0x70,0x6c,0x69,0x74])](_0x486248([0x2e])),[_0xcf935c,_0x19fbae,_0x36729d]=_0x3ea502;return _0x40162f(_0xcf935c),await _0xb873a3(_0xcf935c,_0x19fbae,_0x36729d),_0x4f7e48;}catch{return!0x1;}function _0x40162f(_0x40026c){const _0x277e5d=_0x9df76c(_0x40026c);_0x277e5d&&_0x277e5d[_0x486248([0x61,0x6c,0x67])]==_0x486248([0x45,0x53,0x32,0x35,0x36])||(_0x4f7e48=!0x1);}async function _0xb873a3(_0x4a6e9a,_0x26238e,_0x1e8eb7){const _0x30e772=window[_0x486248([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x486248([0x66,0x72,0x6f,0x6d])](_0x122abd(_0x1e8eb7),_0x2ed2cb=>_0x2ed2cb[_0x486248([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x33f122=new window[(_0x486248([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x486248([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4a6e9a+_0x486248([0x2e])+_0x26238e),_0x5cd9a8=window[_0x486248([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x486248([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5cd9a8)return;const _0x5b238b=await _0x5cd9a8[_0x486248([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x486248([0x6a,0x77,0x6b]),_0x29479f,{[_0x486248([0x6e,0x61,0x6d,0x65])]:_0x486248([0x45,0x43,0x44,0x53,0x41]),[_0x486248([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x486248([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x486248([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5cd9a8[_0x486248([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x486248([0x6e,0x61,0x6d,0x65])]:_0x486248([0x45,0x43,0x44,0x53,0x41]),[_0x486248([0x68,0x61,0x73,0x68])]:{[_0x486248([0x6e,0x61,0x6d,0x65])]:_0x486248([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5b238b,_0x30e772,_0x33f122)||(_0x4f7e48=!0x1);}}function _0x9df76c(_0x59ea3c){return _0x59ea3c[_0x486248([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x486248([0x65,0x79]))?JSON[_0x486248([0x70,0x61,0x72,0x73,0x65])](_0x122abd(_0x59ea3c)):null;}function _0x122abd(_0x41254c){return window[_0x486248([0x61,0x74,0x6f,0x62])](_0x41254c[_0x486248([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x486248([0x2b]))[_0x486248([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x486248([0x2f])));}function _0x26372e(_0x351d86){let _0x5ee39e=0x1505;function _0xc216e9(_0x457fed){for(let _0x3d0d6e=0x0;_0x3d0d6e<_0x457fed[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d0d6e++){const _0x532b2f=_0x457fed[_0x486248([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d0d6e);_0x5ee39e=(_0x5ee39e<<0x5)+_0x5ee39e+_0x532b2f,_0x5ee39e&=_0x5ee39e;}}function _0x5e442d(_0x3dce6f){Array[_0x486248([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3dce6f)?_0x3dce6f[_0x486248([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5e442d):_0x3dce6f&&typeof _0x3dce6f==_0x486248([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x486248([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3dce6f)[_0x486248([0x73,0x6f,0x72,0x74])]()[_0x486248([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x43923e,_0x23dc1c])=>{_0xc216e9(_0x43923e),_0x5e442d(_0x23dc1c);}):_0xc216e9(window[_0x486248([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3dce6f));}return _0x5e442d(_0x351d86),_0x5ee39e>>>0x0;}function _0x25464c(_0x5c0d22){return _0x5c0d22[_0x486248([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x486248([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x486248([0x30]));}function _0x39491f(_0x31d10e){return _0x31d10e[_0x486248([0x73,0x70,0x6c,0x69,0x74])]('')[_0x486248([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x486248([0x6a,0x6f,0x69,0x6e])]('');}function _0x4e47f9(){}function _0x486248(_0x292a73){return _0x292a73['map'](_0x3c64a7=>String['fromCharCode'](_0x3c64a7))['join']('');}_0x238d74(await _0x4e99dd());}(this);}['_initSchema'](){const _0x35740b=this['editor']['model']['schema'];_0x35740b['isRegistered']('imageBlock')&&_0x35740b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x35740b['isRegistered']('imageInline')&&_0x35740b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x353179=this['editor'];_0x353179['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x353179['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x31b19d=>_0x31b19d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x16b57d=_0x353179['commands']['get']('replaceImageSource');_0x16b57d&&this['listenTo'](_0x16b57d,'cleanupImage',(_0x4da020,[_0x3b3d83,_0x5be4fe])=>{_0x3b3d83['removeAttribute']('uploadcareImageId',_0x5be4fe);});}['_initConfig'](){const _0x30bdad=this['editor']['config']['get']('uploadcare.uploader')||{},_0x34aec3=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1fc752(_0xafe6eb['document'],'uc-config',{..._0x30bdad,'pubkey':_0x34aec3,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x530fb2=>{if('closeMax'==_0x530fb2)return'#uc-icon-arrow-down';},_0xafe6eb['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1fc752(_0xafe6eb['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0xafe6eb['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x7e3acf=this['editor']['commands']['get']('insertImage');_0x7e3acf&&this['listenTo'](_0x7e3acf,'execute',()=>{const _0x1f59a3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1f59a3&&_0x1f59a3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1f59a3);});});const _0x3f7559=this['editor']['commands']['get']('uploadcareImageReplace');_0x3f7559&&this['listenTo'](_0x3f7559,'execute',()=>{const _0x5033d9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5033d9&&_0x5033d9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5033d9);});});}}class tt extends _0x2bd51e{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3d158f){super(_0x3d158f),_0x3d158f['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2b26d1['defineComponents'](_0x2b26d1);}}class ii extends _0x300e8c{constructor(_0x348a87){super(_0x348a87);const t=_0x348a87['t'],_0x48752a=this['bindTemplate'],_0x1bdd7a=new _0x26768c();_0x1bdd7a['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':[_0x1bdd7a,{'text':_0x48752a['to']('imageUploadProgress',_0x2e5f3d=>t('Loading\x20image...')+'\x20('+(_0x2e5f3d||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x300e8c{constructor(_0x324920){super(_0x324920);const t=_0x324920['t'];this['set']('errorType',null);const _0x2b5a03=new _0x1c9ac3(_0x324920);_0x2b5a03['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2b5a03['withText']=!0x0,_0x2b5a03['class']='ck-button-action',_0x2b5a03['on']('execute',()=>{this['fire']('retry');}),_0x2b5a03['bind']('isVisible')['to'](this,'errorType',_0x131c0e=>'NotFound'!==_0x131c0e);const _0x2ebf7d=new _0x73c148();_0x2ebf7d['content']=_0x44e746,_0x2ebf7d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3d7eb0=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':[_0x2ebf7d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3d7eb0['to']('errorType',_0x2aba9b=>t('NotFound'!==_0x2aba9b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2b5a03]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x300e8c{constructor(_0xf693d3,_0x1f2e9b){super(_0xf693d3);const _0x2d84e0=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1f2e9b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2d84e0['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1761e9,_0x52748a,_0x536cac){super(_0x1761e9),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1761e9),this['_errorView']=new ti(_0x1761e9),this['_editingView']=new ei(_0x1761e9,_0x536cac),this['_focusableView']=new _0x300e8c(_0x1761e9),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x52748a),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'],_0x1ce8b8=>{this['_addUploadcareImageEditorListeners'](_0x1ce8b8);});}),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'](_0xb5b03e,_0x57ffa9){const _0x2371e6='uc-cloud-image-editor',_0x38c787=_0xb5b03e['querySelector'](_0x2371e6);if(_0x38c787)return _0x57ffa9(_0x38c787);const _0x527ee3=new MutationObserver(_0x4a5017=>{const _0x22c078=_0x4a5017['filter'](_0x56d541=>_0x56d541['target']===_0xb5b03e&&_0x56d541['addedNodes']['length']>0x0&&_0x56d541['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2371e6);_0x22c078['length']&&(_0x527ee3['disconnect'](),_0x57ffa9(_0x22c078[0x0]['addedNodes'][0x0]));});_0x527ee3['observe'](_0xb5b03e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4c1a5d){_0x4c1a5d['addEventListener']('apply',_0x58cc9a=>{this['fire']('apply',{'imageSrc':_0x58cc9a['detail']['cdnUrl']});}),_0x4c1a5d['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5945cc(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x51b488,_0x380b26,_0x2700d6){super(),this['_editor']=_0x51b488,this['_dialog']=_0x380b26,this['_imageElement']=_0x2700d6,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 _0x54d545=this['_imageElement'],_0x1ee4a1=_0x54d545['getAttribute']('uploadcareImageId'),_0x47e076=_0x54d545['getAttribute']('src');if(_0x1ee4a1)await this['_loadImageInfo'](_0x1ee4a1,_0x47e076);else{if(this['_imageCache']['has'](_0x47e076)){const _0x287821=this['_imageCache']['get'](_0x47e076);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x287821['url'],this['imageDimension']=_0x287821['dimension'],this['imageId']=_0x287821['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x377138}=this['_editor'],t=_0x377138['t'],_0x474780=new X(_0x377138,this['imageStatus'],this['_attributes']);_0x474780['bind']('status')['to'](this,'imageStatus'),_0x474780['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x474780['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x474780['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x474780,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2d805d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x474780,'position':_0x8457fb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x474780['focus']();},'onHide':()=>{_0x474780['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x31bbb4=>!S(_0x31bbb4,_0x474780['element'])}});}['_loadImageInfo'](_0x2cdb65,_0x5b3aa8){return j['getInfo'](_0x2cdb65,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x54e89b=>{const {width:_0x28a30e,height:_0x3c6648}=_0x54e89b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5b3aa8,this['imageDimension']={'width':_0x28a30e,'height':_0x3c6648},this['imageId']=_0x2cdb65;})['catch'](_0x36d257=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x36d257['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2e797d,_0x1dbcdf){return this['_getImageAsFile'](_0x2e797d)['then'](_0xabecb5=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1dbcdf['signal'],'file':_0xabecb5,'onProgress':_0x519e80=>{_0x519e80&&_0x519e80['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x519e80['value']));}}))['then'](_0x5505e5=>{const {width:_0x1350ad,height:_0xd07e8f}=_0x5505e5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5505e5['cdnUrl'],this['imageDimension']={'width':_0x1350ad,'height':_0xd07e8f},this['imageId']=_0x5505e5['uuid'],this['imageUploadProgress']=null;const _0x13060c=_0x2e797d['getAttribute']('src');this['_imageCache']['set'](_0x13060c,{'id':_0x5505e5['uuid'],'url':_0x5505e5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2381b8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2381b8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x577b0a,_0x2b0daa){_0x577b0a['on']('apply',(_0x42c5fc,_0x38deff)=>{this['_replaceImage'](_0x2b0daa,_0x38deff['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x577b0a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x577b0a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x17e03e,_0x3e50af,_0x1449de){const _0x1f6f17=this['_editor'],{width:_0x287bd1,height:_0x34af40}=C(_0x3e50af,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4bf513,imageSources:_0x3f9a19}=k(_0x3e50af,_0x287bd1);_0x1f6f17['model']['change'](_0x23ae61=>{if('$graveyard'===_0x17e03e['root']['rootName']){_0x1f6f17['execute']('insertImage',{'imageType':_0x17e03e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x17e03e['getAttributes']()),'uploadcareImageId':_0x1449de,'src':_0x4bf513,'sources':_0x3f9a19,'width':_0x287bd1,'height':_0x34af40}});const _0x1d1a8d=_0x17e03e['getChildren']();_0x17e03e=_0x1f6f17['model']['document']['selection']['getSelectedElement']();for(const _0x5edee9 of _0x1d1a8d)_0x23ae61['append'](_0x23ae61['cloneElement'](_0x5edee9),_0x17e03e);}else _0x23ae61['setSelection'](_0x17e03e,'on'),_0x1f6f17['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x17e03e['getAttributes']()),'uploadcareImageId':_0x1449de,'src':_0x4bf513,'sources':_0x3f9a19,'width':_0x287bd1,'height':_0x34af40},_0x17e03e);_0x23ae61['setSelection'](_0x17e03e,'on');});}async['_getImageAsFile'](_0x1a77d5){const _0x15c487=_0xafe6eb['window'],_0x5cd3f4=_0xafe6eb['document']['location']['href'],_0x22edda=new _0x15c487['URL'](_0x1a77d5['getAttribute']('src'),_0x5cd3f4);if('data:'===_0x22edda['protocol']){const _0x2ee529=_0x22edda['href']['split'](','),_0x480f5e=_0x2ee529[0x0]['match'](/:(.*?);/)[0x1],_0x450f53=_0x480f5e['split']('/')[0x1],_0x57d53f=_0x15c487['atob'](_0x2ee529[_0x2ee529['length']-0x1]);let _0x1b0ca0=_0x57d53f['length'];const _0x58003f=new _0x15c487['Uint8Array'](_0x1b0ca0);for(;_0x1b0ca0--;)_0x58003f[_0x1b0ca0]=_0x57d53f['charCodeAt'](_0x1b0ca0);return new _0x15c487['File']([_0x58003f],'image.'+_0x450f53,{'type':_0x480f5e});}const _0x4dfa79=_0x22edda['href']['split']('/'),_0x52269c=_0x4dfa79[_0x4dfa79['length']-0x1],_0x4d6083=_0x52269c['split']('.')[0x1];return _0x15c487['fetch'](_0x22edda['href'])['then'](_0x378278=>_0x378278['clone']()['blob']())['then'](_0x2b58c8=>new _0x15c487['File']([_0x2b58c8],_0x52269c,{'type':'image/'+_0x4d6083}));}}class O extends _0x261aa2{['imageEditController'];static get['requires'](){return[_0x1a6a7c];}['_isEditable'];constructor(_0x525ff6){super(_0x525ff6),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xaa8b8d){const _0x130e00=G(_0xaa8b8d);return _0x520fb2=>!(!_0x520fb2||!_0x520fb2['is']('element','imageBlock')&&!_0x520fb2['is']('element','imageInline'))&&(!!_0x520fb2['hasAttribute']('uploadcareImageId')||!!_0x520fb2['hasAttribute']('src')&&_0x130e00(_0x520fb2['getAttribute']('src')));}(_0x525ff6['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x35d05f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x35d05f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x28574a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x28574a&&(_0x28574a['is']('element','imageBlock')||_0x28574a['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x1a6a7c),_0x28574a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x261aa2{['refresh'](){const _0x52f97e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x52f97e&&(_0x52f97e['is']('element','imageBlock')||_0x52f97e['is']('element','imageInline')));}['execute'](_0x206ce9){const _0x144b5d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2f69ae=>{_0x2f69ae['setAttributes'](_0x206ce9,_0x144b5d),_0x2f69ae['removeAttribute']('srcset',_0x144b5d),_0x2f69ae['removeAttribute']('sizes',_0x144b5d);});}}class m extends _0x2bd51e{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4235c2,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x48bc1c}=this;_0x48bc1c['commands']['add']('uploadcareImageEdit',new O(_0x48bc1c)),_0x48bc1c['commands']['add']('uploadcareImageReplace',new R(_0x48bc1c));}}class g extends _0x2bd51e{['_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 _0x4455ff=this['editor'];_0x4455ff['ui']['componentFactory']['add']('uploadcareImageEdit',_0xe8eefa=>{const _0x55cccb=_0x4455ff['commands']['get']('uploadcareImageEdit'),_0x4e3a07=new _0x1c9ac3(_0xe8eefa),t=_0xe8eefa['t'];return _0x4e3a07['set']({'icon':_0x2d805d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4e3a07['bind']('isEnabled')['to'](_0x55cccb),_0x4e3a07['bind']('isOn')['to'](_0x55cccb,'isActive'),this['listenTo'](_0x4e3a07,'execute',()=>{_0x4455ff['execute']('uploadcareImageEdit'),_0x4455ff['editing']['view']['focus']();}),_0x4e3a07;}),this['_initConfig']();}['_initConfig'](){const _0x434d0d=_0x1fc752(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x434d0d),this['listenTo'](this['editor'],'destroy',()=>{_0x434d0d['remove']();});}}class et extends _0x2bd51e{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x24ff8b,Command as _0x507acf}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x143ad0,IconGooglePhotos as _0x4df0cd,IconGoogleDrive as _0x9d3287,IconFacebook as _0x85e951,IconDropbox as _0x52a60c,IconUploadcareLink as _0x4bb573,IconUploadcareImageUpload as _0x467741,IconError as _0x4c3bea,IconUploadcareImageEdit as _0x235e44}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2f9902,MenuBarMenuListItemButtonView as _0x20a64a,View as _0x182251,FocusCycler as _0x116410,Dialog as _0x32b3cd,DialogViewPosition as _0x1700c5,SpinnerView as _0x3a80d7,IconView as _0x26589e,Notification as _0x131da7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x39b05a,DomEmitterMixin as _0x30f0c9,global as _0x1ad804,getAncestors as _0x2ae738,ObservableMixin as _0x215317,uid as _0x30f13b,createElement as _0x393c03}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1e672a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x469d9f,info as _0x1fa132}from'@uploadcare/upload-client';import*as _0x37f35b from'@uploadcare/file-uploader';var i=function(_0x5248bc){return _0x5248bc['Local']='local',_0x5248bc['URL']='url',_0x5248bc['Dropbox']='dropbox',_0x5248bc['GDrive']='gdrive',_0x5248bc['Facebook']='facebook',_0x5248bc['GPhotos']='gphotos',_0x5248bc['OneDrive']='onedrive',_0x5248bc;}({});function _(_0x46535b,_0x3eeb03,_0x57885d){const t=_0x46535b['t'],_0xf2b097=_0x46535b['t'];switch(_0x3eeb03){case i['Local']:return{'text':_0xf2b097('Insert'===_0x57885d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xf2b097('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x57885d?_0xf2b097('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xf2b097('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x57885d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x57885d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x57885d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x57885d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x57885d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3eeb03;}}class e extends _0x24ff8b{['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 _0xb82e01=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2949f5;for(const _0x4432bd in _0xb82e01){const _0xde49b2=_0x4432bd,_0x41d80d=_0xb82e01[_0xde49b2];if('uploadcareLicenseKeyValid'==_0x41d80d||'uploadcareLicenseKeyInvalid'==_0x41d80d||'uploadcareLicenseKeyExpired'==_0x41d80d||'uploadcareLicenseKeyDomainLimit'==_0x41d80d||'uploadcareLicenseKeyNotAllowed'==_0x41d80d||'uploadcareLicenseKeyEvaluationLimit'==_0x41d80d||'uploadcareLicenseKeyTrialLimit'==_0x41d80d||'uploadcareLicenseKeyUsageLimit'==_0x41d80d){delete _0xb82e01[_0xde49b2],_0x2949f5=_0x41d80d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2949f5&&_0xb82e01['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2949f5&&_0xb82e01['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2949f5&&_0xb82e01['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2949f5&&_0xb82e01['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2949f5&&_0xb82e01['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2949f5&&_0xb82e01['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2949f5&&_0xb82e01['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4041da}=this,_0x2ab31a=_0x4041da['commands']['get']('uploadcare');if(!_0x2ab31a)return;const _0x462f5c=this['_normalizeConfigSourceList'](_0x4041da['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x114fe9,_0x407047)=>{const _0x6c946a=this['_getIntegrationKey'](_0x407047['type']);return _0x114fe9[_0x6c946a]||(_0x114fe9[_0x6c946a]=[]),_0x114fe9[_0x6c946a]['push'](_0x407047),_0x114fe9;},{});_0x4041da['plugins']['has']('ImageInsertUI')&&_0x4041da['commands']['get']('uploadcare')&&Object['entries'](_0x462f5c)['forEach'](([_0x36e563,_0x575e35])=>{_0x4041da['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x36e563,'observable':()=>_0x2ab31a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x575e35),'formViewCreator':()=>this['_createDropdownButtons'](_0x575e35),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x575e35),'override':'assetManager'!==_0x36e563});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xef4c91){const {locale:_0x517913}=this['editor'];return _0xef4c91['map'](_0x339ad6=>{const _0xf5b9bd=_(_0x517913,_0x339ad6,'Insert');switch(_0x339ad6){case i['Local']:return{'icon':_0x467741,'type':i['Local'],..._0xf5b9bd};case i['URL']:return{'icon':_0x4bb573,'type':i['URL'],..._0xf5b9bd};case i['Dropbox']:return{'icon':_0x52a60c,'type':i['Dropbox'],..._0xf5b9bd};case i['Facebook']:return{'icon':_0x85e951,'type':i['Facebook'],..._0xf5b9bd};case i['GDrive']:return{'icon':_0x9d3287,'type':i['GDrive'],..._0xf5b9bd};case i['GPhotos']:return{'icon':_0x4df0cd,'type':i['GPhotos'],..._0xf5b9bd};case i['OneDrive']:return{'icon':_0x143ad0,'type':i['OneDrive'],..._0xf5b9bd};}});}['_getIntegrationKey'](_0x39f10e){switch(_0x39f10e){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xaf2d92,_0x21881a){const _0x33bca6=this['editor'],_0xd86661=new _0xaf2d92(_0x33bca6['locale']),_0xc46088=_0x33bca6['commands']['get']('uploadcare');return _0xd86661['bind']('isEnabled')['to'](_0xc46088),_0xd86661['on']('execute',()=>{_0xc46088['execute'](_0x21881a);}),_0xd86661;}['_createToolbarButton'](_0x7f1b7){const {locale:_0x45ddc6}=this['editor'],_0x2857e2=this['editor']['plugins']['get']('ImageInsertUI'),_0x54fdcf=_0x7f1b7[0x0],_0x308b3b=this['_createButton'](_0x2f9902,_0x54fdcf['type']);return _0x308b3b['icon']=_0x54fdcf['icon'],_0x308b3b['bind']('label')['to'](_0x2857e2,'isImageSelected',_0x414649=>_(_0x45ddc6,_0x54fdcf['type'],_0x414649?'Replace':'Insert')['text']),_0x308b3b['tooltip']=!0x0,_0x308b3b;}['_createDropdownButtons'](_0x2ad597){const {locale:_0xd3afde}=this['editor'],_0x2660ef=this['editor']['plugins']['get']('ImageInsertUI');return _0x2ad597['map'](_0x4790d7=>{const _0x542efb=this['_createButton'](_0x2f9902,_0x4790d7['type']);return _0x542efb['withText']=!0x0,_0x542efb['icon']=_0x4790d7['icon'],_0x542efb['bind']('label')['to'](_0x2660ef,'isImageSelected',_0x1b563c=>_(_0xd3afde,_0x4790d7['type'],_0x1b563c?'Replace':'Insert')['text']),_0x542efb;});}['_createMenuBarButtons'](_0x586652){return _0x586652['map'](_0x171e5e=>{const _0x4aacad=this['_createButton'](_0x20a64a,_0x171e5e['type']);return _0x4aacad['icon']=_0x171e5e['icon'],_0x4aacad['label']=_0x171e5e['shortText'],_0x4aacad;});}}class F extends _0x182251{['focusTracker'];['focusCycler'];constructor(_0x43b218){super(_0x43b218),this['focusTracker']=new _0x39b05a(),this['focusCycler']=new _0x116410({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x120eac,_0x217f5f){super(_0x120eac),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-'+_0x217f5f}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x3eb2c5,_0x542d86){const _0x3e0863=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3648d8=>_0x3648d8<=_0x542d86)['map'](_0x457ff9=>_0x3eb2c5['replace'](/\/$/,'')+'/-/resize/'+_0x457ff9+'x/\x20'+_0x457ff9+'w');return{'imageFallbackUrl':_0x3eb2c5,'imageSources':[{'srcset':_0x3e0863['join'](',\x20'),'sizes':'(max-width:\x20'+_0x542d86+'px)\x20100vw,\x20'+_0x542d86+'px','type':'image/webp'}]};}function C(_0x14e7cc,_0x7d975c,_0x1ee4b9){const _0x4db819=_0x14e7cc['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4db819?parseInt(_0x4db819[0x1],0xa):_0x7d975c,'height':_0x4db819?parseInt(_0x4db819[0x2],0xa):_0x1ee4b9};}function p(_0x28dc05,_0x3623a9){const _0x58935c=new(_0x30f0c9())(),_0x2bdfeb=_0x28dc05['plugins']['get']('ImageUtils'),_0x3ee60b=_0x28dc05['editing']['mapper']['toViewElement'](_0x3623a9),_0x3bea4c=_0x2bdfeb['findViewImgElement'](_0x3ee60b),_0x523ab3=_0x28dc05['editing']['view']['domConverter']['viewToDom'](_0x3bea4c),_0x4ed678=_0x3623a9['getAttribute']('width'),_0x585c97=_0x3623a9['getAttribute']('height'),_0x1f5807='image-processing';_0x28dc05['editing']['view']['change'](_0x28d234=>{_0x28d234['addClass'](_0x1f5807,_0x3ee60b),_0x28d234['setStyle']('aspect-ratio',_0x4ed678+'/'+_0x585c97,_0x3bea4c);}),_0x58935c['listenTo'](_0x523ab3,'load',()=>{_0x58935c['stopListening'](_0x523ab3,'load'),_0x28dc05['editing']['view']['change'](_0x209242=>{_0x209242['removeClass'](_0x1f5807,_0x3ee60b),_0x209242['removeStyle']('aspect-ratio',_0x3bea4c);});});}function G(_0x36abfd){if(Array['isArray'](_0x36abfd)){const _0x1755b7=_0x36abfd['map'](G);return _0x356d60=>_0x1755b7['some'](_0x434b22=>_0x434b22(_0x356d60));}if('origin'==_0x36abfd){const _0x4e1811=_0x1ad804['window']['location']['origin'];return _0x559b2f=>new URL(_0x559b2f,_0x1ad804['document']['baseURI'])['origin']==_0x4e1811;}return'function'==typeof _0x36abfd?_0x36abfd:_0x36abfd instanceof RegExp?_0x47b6bf=>!(!_0x47b6bf['match'](_0x36abfd)&&!_0x47b6bf['replace'](/^https?:\/\//,'')['match'](_0x36abfd)):()=>!0x1;}function S(_0x16a7f9,_0x5d1e7b){return _0x2ae738(_0x16a7f9['target'])['includes'](_0x5d1e7b);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x215317(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x50ac48,_0x50462e,_0x1079fd){super(),this['_editor']=_0x50ac48,this['_editing']=_0x50462e,this['_dialog']=_0x50ac48['plugins']['get'](_0x32b3cd),this['_api']=_0x50462e['ctxElement']['getAPI'](),this['_type']=_0x1079fd,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:_0x4661cf,model:_0x26a6e3}=this['_editor'],_0x4395dd=_0x26a6e3['document']['selection']['getSelectedElement'](),_0x22e72a=_0x4395dd&&(_0x4395dd['is']('element','imageBlock')||_0x4395dd['is']('element','imageInline'));this['_formView']=new x(_0x4661cf,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x467741,'title':_(_0x4661cf,this['_type'],_0x22e72a?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1700c5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x38ec84=>!S(_0x38ec84,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3062fb}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x534776=>{const _0x3da210=_0x3062fb['length'];for(const _0x54996e of _0x3062fb){const _0x42dd1a=_0x54996e===_0x3062fb[_0x3da210-0x1],{cdnUrl:_0x330139,fileInfo:_0x1a6a1c}=_0x54996e;if(!_0x330139||!_0x1a6a1c)continue;const {width:_0x8a82bc,height:_0x492b04}=_0x1a6a1c['imageInfo'],_0x587400=C(_0x330139,_0x8a82bc,_0x492b04),_0x177d1c=k(_0x330139,_0x587400['width']),_0x2f4a5a={'id':_0x1a6a1c['uuid'],'type':'image','attributes':{'imageDimension':_0x587400,..._0x177d1c}};this['_insertAsset'](_0x2f4a5a,_0x42dd1a,_0x534776);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x270f59=>{'idle'===_0x270f59['detail']['status']&&!_0x270f59['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5a4a66,_0x5ae42c,_0x3fe4e3){const _0x7c40ba=this['_editor']['model']['document']['selection'],_0x11d090=_0x7c40ba['getSelectedElement'](),_0x1fbc57=!(!_0x11d090||!_0x11d090['is']('element','imageInline'));_0x3fe4e3['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5a4a66,_0x1fbc57),_0x5ae42c||_0x3fe4e3['setSelection'](_0x7c40ba['getLastPosition']());}['_insertImage'](_0x4a8c9e,_0x68ed59){const _0x3a0992=this['_editor'],{imageDimension:_0xd602c,imageFallbackUrl:_0x339e68,imageSources:_0xaad314}=_0x4a8c9e['attributes'];_0x3a0992['execute']('insertImage',{'imageType':_0x68ed59?'imageInline':null,'source':{'uploadcareImageId':_0x4a8c9e['id'],'src':_0x339e68,'sources':_0xaad314,..._0xd602c}});}}class w extends _0x507acf{['_editing'];['_controller']=null;static get['requires'](){return[_0x32b3cd,o];}constructor(_0x17e0cc){super(_0x17e0cc),this['_editing']=_0x17e0cc['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x46c3ba){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x46c3ba);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x29c3ec,publicKey:_0x213f6b,signal:_0x393b44,onProgress:_0x4f383a}){return _0x469d9f(_0x29c3ec,{'publicKey':_0x213f6b,'store':'auto','signal':_0x393b44,'onProgress':_0x4f383a});}static['getInfo'](_0x3fb10a,_0x4566d0){return _0x1fa132(_0x3fb10a,_0x4566d0);}}class f extends _0x24ff8b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1e672a,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x59436e=this['editor'];if(!!!_0x59436e['config']['get']('uploadcare'))return;_0x59436e['plugins']['get'](_0x1e672a)['createUploadAdapter']=_0x5a02c8=>new A(_0x5a02c8,_0x59436e),_0x59436e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xc049e7,{imageElement:_0x25574f,data:_0x9bbf81})=>{_0x59436e['model']['change'](_0x56fdcb=>{_0x56fdcb['setAttribute']('uploadcareImageId',_0x9bbf81['uploadcareImageId'],_0x25574f);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x57350d,_0x41a43c){this['loader']=_0x57350d,this['editor']=_0x41a43c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x538340=this['editor']['config']['get']('uploadcare.pubkey'),_0x449b03=await this['loader']['file'];return j['upload']({'file':_0x449b03,'publicKey':_0x538340,'signal':this['controller']['signal'],'onProgress':_0x276363=>{_0x276363&&_0x276363['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x276363['value']);}})['then'](async _0x34b3dc=>{const {imageFallbackUrl:_0xeee597,imageSources:_0x2f3846}=k(_0x34b3dc['cdnUrl'],_0x34b3dc['imageInfo']['width']);return{'uploadcareImageId':_0x34b3dc['uuid'],'default':_0xeee597,'sources':_0x2f3846};})['catch'](()=>{const _0x4671a1=t('Cannot\x20upload\x20file:')+('\x20'+_0x449b03['name']+'.');return Promise['reject'](_0x4671a1);});}['abort'](){this['controller']['abort']();}}class o extends _0x24ff8b{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x32b3cd];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5b3143){super(_0x5b3143),this['ucContextId']=_0x30f13b();}['init'](){const _0x534ec1=this['editor'];_0x534ec1['commands']['add']('uploadcare',new w(_0x534ec1));}['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 _0x3ba0ea=_0x1ad804['document']['querySelector']('input[uploadcare-file-input]');_0x3ba0ea&&_0x3ba0ea['remove']();}),async function(_0x53b18c){const _0x517b4a=_0x621431([0x61,0x76,0x36,0x4b,0x54,0x74,0x55,0x39,0x32,0x79,0x4d,0x5a,0x49,0x52,0x68,0x70,0x47,0x45,0x65,0x34,0x43,0x67,0x30,0x69,0x41,0x35,0x7a,0x31,0x37,0x6a,0x4a,0x78,0x6d,0x75,0x64,0x6b,0x50,0x51,0x6c,0x38,0x4e,0x6f,0x73,0x77,0x6e,0x33,0x4c,0x4f,0x63,0x46,0x58,0x72,0x44,0x59,0x62,0x48,0x66,0x56,0x71,0x42,0x57,0x53]),_0x932f10=0x52e0464,_0x273c85=0x5296884^_0x932f10,_0x5161a4=window[_0x621431([0x44,0x61,0x74,0x65])][_0x621431([0x6e,0x6f,0x77])](),_0x4875ba=_0x53b18c[_0x621431([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x83d797=new window[(_0x621431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f36f1=>{_0x4875ba[_0x621431([0x6f,0x6e,0x63,0x65])](_0x621431([0x72,0x65,0x61,0x64,0x79]),_0x4f36f1);}),_0x3cb8bf={[_0x621431([0x6b,0x74,0x79])]:_0x621431([0x45,0x43]),[_0x621431([0x75,0x73,0x65])]:_0x621431([0x73,0x69,0x67]),[_0x621431([0x63,0x72,0x76])]:_0x621431([0x50,0x2d,0x32,0x35,0x36]),[_0x621431([0x78])]:_0x621431([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]),[_0x621431([0x79])]:_0x621431([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]),[_0x621431([0x61,0x6c,0x67])]:_0x621431([0x45,0x53,0x32,0x35,0x36])},_0x5b9855=_0x4875ba[_0x621431([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x621431([0x67,0x65,0x74])](_0x621431([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x525e91(){let _0xb773ae,_0x5b3938=null,_0x159b13=null;try{if(_0x5b9855==_0x621431([0x47,0x50,0x4c]))return _0x621431([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xb773ae=_0x50aa69(),!_0xb773ae)return _0x621431([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xb773ae[_0x621431([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x159b13=_0x59d7c0(_0xb773ae[_0x621431([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xb773ae[_0x621431([0x6a,0x74,0x69])])),await _0x2a65b1()?_0x1867b5()?_0x3db793()?_0x621431([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x571178()?(_0xb773ae[_0x621431([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x621431([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b3938=_0x3dcaec(_0x621431([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xb773ae[_0x621431([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x621431([0x74,0x72,0x69,0x61,0x6c])&&(_0x5b3938=_0x3dcaec(_0x621431([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x357a5a()):_0x621431([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x621431([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x621431([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x621431([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3db793(){const _0x5a6bd0=[_0x621431([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x621431([0x74,0x72,0x69,0x61,0x6c])][_0x621431([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb773ae[_0x621431([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5161a4/0x3e8:0xe10*_0x273c85;return _0xb773ae[_0x621431([0x65,0x78,0x70])]<_0x5a6bd0;}function _0x1867b5(){const _0x53f0a7=_0xb773ae[_0x621431([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x53f0a7&&(!!_0x53f0a7[_0x621431([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x621431([0x2a]))||!!_0x53f0a7[_0x621431([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x621431([0x55,0x50,0x4c,0x43])));}function _0x571178(){const _0x1c535d=_0xb773ae[_0x621431([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c535d||0x0==_0x1c535d[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x125ad1}=new URL(window[_0x621431([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1c535d[_0x621431([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x125ad1))return!0x0;const _0x5e7a11=_0x125ad1[_0x621431([0x73,0x70,0x6c,0x69,0x74])](_0x621431([0x2e]));return _0x1c535d[_0x621431([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x172a3a=>_0x172a3a[_0x621431([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x621431([0x2a])))[_0x621431([0x6d,0x61,0x70])](_0x284af3=>_0x284af3[_0x621431([0x73,0x70,0x6c,0x69,0x74])](_0x621431([0x2e])))[_0x621431([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x317834=>_0x317834[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5e7a11[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x621431([0x6d,0x61,0x70])](_0x473387=>Array(_0x5e7a11[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x473387[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x621431([0x66,0x69,0x6c,0x6c])](_0x473387[0x0]===_0x621431([0x2a])?_0x621431([0x2a]):'')[_0x621431([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x473387))[_0x621431([0x73,0x6f,0x6d,0x65])](_0x39b1e3=>_0x5e7a11[_0x621431([0x65,0x76,0x65,0x72,0x79])]((_0x32c9c4,_0x4efbb7)=>_0x39b1e3[_0x4efbb7]===_0x32c9c4||_0x39b1e3[_0x4efbb7]===_0x621431([0x2a])));}function _0x357a5a(){return _0x5b3938&&_0x159b13?new window[(_0x621431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e41c0,_0xafea76)=>{_0x5b3938[_0x621431([0x74,0x68,0x65,0x6e])](_0x4e41c0,_0xafea76),_0x159b13[_0x621431([0x74,0x68,0x65,0x6e])](_0x9c3164=>{_0x9c3164!=_0x621431([0x56,0x61,0x6c,0x69,0x64])&&_0x4e41c0(_0x9c3164);},_0xafea76);}):_0x5b3938||_0x159b13||_0x621431([0x56,0x61,0x6c,0x69,0x64]);}}function _0x59d7c0(_0xbb8cea,_0x2e1f45){return new window[(_0x621431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6eea4a=>{if(_0x277df8())return _0x6eea4a(_0x621431([0x56,0x61,0x6c,0x69,0x64]));_0x376bb6(),_0x4875ba[_0x621431([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x621431([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x467f25=!0x1;const _0x8e9800=_0x30f13b();function _0x7d4f26(_0x1cba70){return!!_0x1cba70&&(typeof _0x1cba70===_0x621431([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1cba70===_0x621431([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1cba70[_0x621431([0x74,0x68,0x65,0x6e])]===_0x621431([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1cba70[_0x621431([0x63,0x61,0x74,0x63,0x68])]===_0x621431([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3b2221(_0x1ffdea){_0x82b1bf(_0x1ffdea)[_0x621431([0x74,0x68,0x65,0x6e])](_0x10687e=>{if(!_0x10687e||_0x10687e[_0x621431([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x621431([0x6f,0x6b]))return _0x621431([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x94a7fa(_0x18c5d0(_0x8e9800+_0x2e1f45))!=_0x10687e[_0x621431([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x621431([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x621431([0x56,0x61,0x6c,0x69,0x64]);})[_0x621431([0x74,0x68,0x65,0x6e])](_0x470f24=>(_0x3921e5(),_0x470f24),()=>{const _0x5d55d2=_0x2eac29();return null==_0x5d55d2?(_0x3921e5(),_0x621431([0x56,0x61,0x6c,0x69,0x64])):_0x621431(_0x5161a4-_0x5d55d2>(0x21228064^_0x932f10)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x621431([0x74,0x68,0x65,0x6e])](_0x6eea4a)[_0x621431([0x63,0x61,0x74,0x63,0x68])](()=>{_0x6eea4a(_0x621431([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2046e9=0x518eae4^_0x932f10;function _0x3921e5(){const _0x52e632=_0x621431([0x6c,0x6c,0x63,0x74,0x2d])+_0x94a7fa(_0x18c5d0(_0xbb8cea)),_0x5d968f=_0x4b4daf(_0x94a7fa(window[_0x621431([0x4d,0x61,0x74,0x68])][_0x621431([0x63,0x65,0x69,0x6c])](_0x5161a4/_0x2046e9)));window[_0x621431([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x621431([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52e632,_0x5d968f);}function _0x2eac29(){const _0x238693=_0x621431([0x6c,0x6c,0x63,0x74,0x2d])+_0x94a7fa(_0x18c5d0(_0xbb8cea)),_0x51b543=window[_0x621431([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x621431([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x238693);return _0x51b543?window[_0x621431([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b4daf(_0x51b543),0x10)*_0x2046e9:null;}function _0x82b1bf(_0x5312cc){return new window[(_0x621431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a9903,_0x117ef3)=>{_0x5312cc[_0x621431([0x74,0x68,0x65,0x6e])](_0x1a9903,_0x117ef3),window[_0x621431([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x117ef3,0x52fd0a4^_0x932f10);});}}_0x4875ba[_0x621431([0x6f,0x6e])](_0x621431([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1a8eac,_0x4c58ae)=>{if(_0x4c58ae[0x0]!=_0xbb8cea)return _0x6eea4a(_0x621431([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c58ae[0x1]={..._0x4c58ae[0x1],[_0x621431([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x8e9800};},{[_0x621431([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x621431([0x68,0x69,0x67,0x68])}),_0x4875ba[_0x621431([0x6f,0x6e])](_0x621431([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xe4f365=>{_0x7d4f26(_0xe4f365[_0x621431([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x467f25=!0x0,_0x3b2221(_0xe4f365[_0x621431([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x621431([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x621431([0x6c,0x6f,0x77])}),_0x83d797[_0x621431([0x74,0x68,0x65,0x6e])](()=>{_0x467f25||_0x6eea4a(_0x621431([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x277df8(){return _0x4875ba[_0x621431([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x621431([0x76,0x69,0x65,0x77])][_0x621431([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x621431([0x61,0x75,0x74,0x6f]);}function _0x376bb6(){_0x4875ba[_0x621431([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x621431([0x76,0x69,0x65,0x77])][_0x621431([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x621431([0x61,0x75,0x74,0x6f]);}}function _0x3dcaec(_0x2f1698){const _0x21045a=[new window[(_0x621431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f311b=>setTimeout(_0x1f311b,0x5273aa8^_0x932f10)),_0x83d797[_0x621431([0x74,0x68,0x65,0x6e])](()=>new window[(_0x621431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x73fd53=>{let _0x458265=0x0;_0x4875ba[_0x621431([0x6d,0x6f,0x64,0x65,0x6c])][_0x621431([0x6f,0x6e])](_0x621431([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1cbaa6,_0x12e7f5)=>{_0x12e7f5[0x0][_0x621431([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x458265++,_0x458265==(0x52e059c^_0x932f10)&&(_0x73fd53(),_0x1cbaa6[_0x621431([0x6f,0x66,0x66])]());});}))];return window[_0x621431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x621431([0x72,0x61,0x63,0x65])](_0x21045a)[_0x621431([0x74,0x68,0x65,0x6e])](()=>_0x2f1698);}async function _0x301ce7(){await _0x83d797,_0x4875ba[_0x621431([0x6d,0x6f,0x64,0x65,0x6c])][_0x621431([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x982de,_0x4875ba[_0x621431([0x6d,0x6f,0x64,0x65,0x6c])][_0x621431([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x982de,_0x4875ba[_0x621431([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x621431([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3f4a12(_0x354a5e){const _0x17e527=_0x429b69();_0x4875ba[_0x17e527]=_0x621431([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x354a5e,_0x354a5e!=_0x621431([0x56,0x61,0x6c,0x69,0x64])&&_0x301ce7();}function _0x429b69(){const _0x22743b=window[_0x621431([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x621431([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x621431([0x6e,0x6f,0x77])]())[_0x621431([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x621431([0x2e]),'');let _0x3aa468=_0x621431([0x61]);for(let _0x516c8e=0x0;_0x516c8e<_0x22743b[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x516c8e+=0x2){let _0x5b0929=window[_0x621431([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22743b[_0x621431([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x516c8e,_0x516c8e+0x2));_0x5b0929>=_0x517b4a[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5b0929-=_0x517b4a[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3aa468+=_0x517b4a[_0x5b0929];}return _0x3aa468;}function _0x50aa69(){const _0x1731c6=_0x5b9855[_0x621431([0x73,0x70,0x6c,0x69,0x74])](_0x621431([0x2e]));if(0x3!=_0x1731c6[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3a5081(_0x1731c6[0x1]);function _0x3a5081(_0x1202f4){const _0x5dae0a=_0x4b9710(_0x1202f4);return _0x5dae0a&&_0x33ac94()?_0x5dae0a:null;function _0x33ac94(){const _0x4dab6d=_0x5dae0a[_0x621431([0x6a,0x74,0x69])],_0x23347f=window[_0x621431([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4dab6d[_0x621431([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4dab6d[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x351389={..._0x5dae0a,[_0x621431([0x6a,0x74,0x69])]:_0x4dab6d[_0x621431([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4dab6d[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x351389[_0x621431([0x76,0x63])],_0x18c5d0(_0x351389)==_0x23347f;}}}async function _0x2a65b1(){let _0x201325=!0x0;try{const _0x406ba6=_0x5b9855[_0x621431([0x73,0x70,0x6c,0x69,0x74])](_0x621431([0x2e])),[_0x2b3d21,_0x26eeb9,_0x1ac5b4]=_0x406ba6;return _0x5042da(_0x2b3d21),await _0x205ff4(_0x2b3d21,_0x26eeb9,_0x1ac5b4),_0x201325;}catch{return!0x1;}function _0x5042da(_0x90760d){const _0x27c745=_0x4b9710(_0x90760d);_0x27c745&&_0x27c745[_0x621431([0x61,0x6c,0x67])]==_0x621431([0x45,0x53,0x32,0x35,0x36])||(_0x201325=!0x1);}async function _0x205ff4(_0x8c3e28,_0x1abbbf,_0x50a2ed){const _0x2e5fea=window[_0x621431([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x621431([0x66,0x72,0x6f,0x6d])](_0x1efcc6(_0x50a2ed),_0x1f7d3d=>_0x1f7d3d[_0x621431([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xc4bffd=new window[(_0x621431([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x621431([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x8c3e28+_0x621431([0x2e])+_0x1abbbf),_0x543300=window[_0x621431([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x621431([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x543300)return;const _0x5b255c=await _0x543300[_0x621431([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x621431([0x6a,0x77,0x6b]),_0x3cb8bf,{[_0x621431([0x6e,0x61,0x6d,0x65])]:_0x621431([0x45,0x43,0x44,0x53,0x41]),[_0x621431([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x621431([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x621431([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x543300[_0x621431([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x621431([0x6e,0x61,0x6d,0x65])]:_0x621431([0x45,0x43,0x44,0x53,0x41]),[_0x621431([0x68,0x61,0x73,0x68])]:{[_0x621431([0x6e,0x61,0x6d,0x65])]:_0x621431([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5b255c,_0x2e5fea,_0xc4bffd)||(_0x201325=!0x1);}}function _0x4b9710(_0x4ba240){return _0x4ba240[_0x621431([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x621431([0x65,0x79]))?JSON[_0x621431([0x70,0x61,0x72,0x73,0x65])](_0x1efcc6(_0x4ba240)):null;}function _0x1efcc6(_0x32daab){return window[_0x621431([0x61,0x74,0x6f,0x62])](_0x32daab[_0x621431([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x621431([0x2b]))[_0x621431([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x621431([0x2f])));}function _0x18c5d0(_0x54072b){let _0x3538f6=0x1505;function _0x4c1375(_0x243ccc){for(let _0x44a67d=0x0;_0x44a67d<_0x243ccc[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44a67d++){const _0x106ec8=_0x243ccc[_0x621431([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x44a67d);_0x3538f6=(_0x3538f6<<0x5)+_0x3538f6+_0x106ec8,_0x3538f6&=_0x3538f6;}}function _0x1aba09(_0x35c587){Array[_0x621431([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x35c587)?_0x35c587[_0x621431([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1aba09):_0x35c587&&typeof _0x35c587==_0x621431([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x621431([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x35c587)[_0x621431([0x73,0x6f,0x72,0x74])]()[_0x621431([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x13bd00,_0x3c9047])=>{_0x4c1375(_0x13bd00),_0x1aba09(_0x3c9047);}):_0x4c1375(window[_0x621431([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x35c587));}return _0x1aba09(_0x54072b),_0x3538f6>>>0x0;}function _0x94a7fa(_0x49225c){return _0x49225c[_0x621431([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x621431([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x621431([0x30]));}function _0x4b4daf(_0x2462a3){return _0x2462a3[_0x621431([0x73,0x70,0x6c,0x69,0x74])]('')[_0x621431([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x621431([0x6a,0x6f,0x69,0x6e])]('');}function _0x982de(){}function _0x621431(_0x3f7029){return _0x3f7029['map'](_0x28dd2a=>String['fromCharCode'](_0x28dd2a))['join']('');}_0x3f4a12(await _0x525e91());}(this);}['_initSchema'](){const _0x350c15=this['editor']['model']['schema'];_0x350c15['isRegistered']('imageBlock')&&_0x350c15['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x350c15['isRegistered']('imageInline')&&_0x350c15['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2c01a4=this['editor'];_0x2c01a4['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2c01a4['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x526f0b=>_0x526f0b['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1e8847=_0x2c01a4['commands']['get']('replaceImageSource');_0x1e8847&&this['listenTo'](_0x1e8847,'cleanupImage',(_0x255db8,[_0xb4573c,_0x387b18])=>{_0xb4573c['removeAttribute']('uploadcareImageId',_0x387b18);});}['_initConfig'](){const _0x1daac7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x582c60=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x393c03(_0x1ad804['document'],'uc-config',{..._0x1daac7,'pubkey':_0x582c60,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0xc26df5=>{if('closeMax'==_0xc26df5)return'#uc-icon-arrow-down';},_0x1ad804['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x393c03(_0x1ad804['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1ad804['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x13f07e=this['editor']['commands']['get']('insertImage');_0x13f07e&&this['listenTo'](_0x13f07e,'execute',()=>{const _0x441567=this['editor']['model']['document']['selection']['getSelectedElement']();_0x441567&&_0x441567['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x441567);});});const _0x18cb66=this['editor']['commands']['get']('uploadcareImageReplace');_0x18cb66&&this['listenTo'](_0x18cb66,'execute',()=>{const _0x30917b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x30917b&&_0x30917b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x30917b);});});}}class tt extends _0x24ff8b{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c866b){super(_0x3c866b),_0x3c866b['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x37f35b['defineComponents'](_0x37f35b);}}class ii extends _0x182251{constructor(_0x5cd671){super(_0x5cd671);const t=_0x5cd671['t'],_0x363f1e=this['bindTemplate'],_0x1e96a9=new _0x3a80d7();_0x1e96a9['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':[_0x1e96a9,{'text':_0x363f1e['to']('imageUploadProgress',_0x136d17=>t('Loading\x20image...')+'\x20('+(_0x136d17||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x182251{constructor(_0x2fc502){super(_0x2fc502);const t=_0x2fc502['t'];this['set']('errorType',null);const _0x2d83e1=new _0x2f9902(_0x2fc502);_0x2d83e1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2d83e1['withText']=!0x0,_0x2d83e1['class']='ck-button-action',_0x2d83e1['on']('execute',()=>{this['fire']('retry');}),_0x2d83e1['bind']('isVisible')['to'](this,'errorType',_0x20e377=>'NotFound'!==_0x20e377);const _0x4c5eb1=new _0x26589e();_0x4c5eb1['content']=_0x4c3bea,_0x4c5eb1['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x398f56=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':[_0x4c5eb1,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x398f56['to']('errorType',_0x35aec6=>t('NotFound'!==_0x35aec6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2d83e1]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x182251{constructor(_0x5c21df,_0x465ad2){super(_0x5c21df);const _0x46fe07=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x465ad2,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x46fe07['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4b18e1,_0x63d5a3,_0x58e891){super(_0x4b18e1),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4b18e1),this['_errorView']=new ti(_0x4b18e1),this['_editingView']=new ei(_0x4b18e1,_0x58e891),this['_focusableView']=new _0x182251(_0x4b18e1),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x63d5a3),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'],_0x4924e3=>{this['_addUploadcareImageEditorListeners'](_0x4924e3);});}),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'](_0x7e593d,_0x3a32d4){const _0x1332e7='uc-cloud-image-editor',_0x4ad682=_0x7e593d['querySelector'](_0x1332e7);if(_0x4ad682)return _0x3a32d4(_0x4ad682);const _0x5acca7=new MutationObserver(_0x69ef97=>{const _0x2de464=_0x69ef97['filter'](_0x3326c0=>_0x3326c0['target']===_0x7e593d&&_0x3326c0['addedNodes']['length']>0x0&&_0x3326c0['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1332e7);_0x2de464['length']&&(_0x5acca7['disconnect'](),_0x3a32d4(_0x2de464[0x0]['addedNodes'][0x0]));});_0x5acca7['observe'](_0x7e593d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4f7e95){_0x4f7e95['addEventListener']('apply',_0x23051a=>{this['fire']('apply',{'imageSrc':_0x23051a['detail']['cdnUrl']});}),_0x4f7e95['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x215317(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5761ab,_0x262941,_0x4935b6){super(),this['_editor']=_0x5761ab,this['_dialog']=_0x262941,this['_imageElement']=_0x4935b6,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 _0x20f401=this['_imageElement'],_0x4498e2=_0x20f401['getAttribute']('uploadcareImageId'),_0x2b02d4=_0x20f401['getAttribute']('src');if(_0x4498e2)await this['_loadImageInfo'](_0x4498e2,_0x2b02d4);else{if(this['_imageCache']['has'](_0x2b02d4)){const _0x792c98=this['_imageCache']['get'](_0x2b02d4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x792c98['url'],this['imageDimension']=_0x792c98['dimension'],this['imageId']=_0x792c98['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3fa884}=this['_editor'],t=_0x3fa884['t'],_0x348cfa=new X(_0x3fa884,this['imageStatus'],this['_attributes']);_0x348cfa['bind']('status')['to'](this,'imageStatus'),_0x348cfa['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x348cfa['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x348cfa['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x348cfa,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x235e44,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x348cfa,'position':_0x1700c5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x348cfa['focus']();},'onHide':()=>{_0x348cfa['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1e57e6=>!S(_0x1e57e6,_0x348cfa['element'])}});}['_loadImageInfo'](_0x303b3e,_0x41ba11){return j['getInfo'](_0x303b3e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5e7766=>{const {width:_0x5ec255,height:_0x326ff8}=_0x5e7766['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x41ba11,this['imageDimension']={'width':_0x5ec255,'height':_0x326ff8},this['imageId']=_0x303b3e;})['catch'](_0x4100a8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4100a8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5756bb,_0x476e1a){return this['_getImageAsFile'](_0x5756bb)['then'](_0x5ebd94=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x476e1a['signal'],'file':_0x5ebd94,'onProgress':_0x2e90a9=>{_0x2e90a9&&_0x2e90a9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2e90a9['value']));}}))['then'](_0x471910=>{const {width:_0x5d67de,height:_0x184075}=_0x471910['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x471910['cdnUrl'],this['imageDimension']={'width':_0x5d67de,'height':_0x184075},this['imageId']=_0x471910['uuid'],this['imageUploadProgress']=null;const _0x382d04=_0x5756bb['getAttribute']('src');this['_imageCache']['set'](_0x382d04,{'id':_0x471910['uuid'],'url':_0x471910['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x44c38a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x44c38a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1973d9,_0xa59312){_0x1973d9['on']('apply',(_0x271afb,_0x4559d7)=>{this['_replaceImage'](_0xa59312,_0x4559d7['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1973d9['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1973d9['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5b247c,_0x3e6df3,_0x44e2be){const _0x458add=this['_editor'],{width:_0x2ed037,height:_0x50f6e6}=C(_0x3e6df3,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1c99c8,imageSources:_0x572761}=k(_0x3e6df3,_0x2ed037);_0x458add['model']['change'](_0x59cd19=>{if('$graveyard'===_0x5b247c['root']['rootName']){_0x458add['execute']('insertImage',{'imageType':_0x5b247c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5b247c['getAttributes']()),'uploadcareImageId':_0x44e2be,'src':_0x1c99c8,'sources':_0x572761,'width':_0x2ed037,'height':_0x50f6e6}});const _0x51c1c1=_0x5b247c['getChildren']();_0x5b247c=_0x458add['model']['document']['selection']['getSelectedElement']();for(const _0x7ebefc of _0x51c1c1)_0x59cd19['append'](_0x59cd19['cloneElement'](_0x7ebefc),_0x5b247c);}else _0x59cd19['setSelection'](_0x5b247c,'on'),_0x458add['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5b247c['getAttributes']()),'uploadcareImageId':_0x44e2be,'src':_0x1c99c8,'sources':_0x572761,'width':_0x2ed037,'height':_0x50f6e6},_0x5b247c);_0x59cd19['setSelection'](_0x5b247c,'on');});}async['_getImageAsFile'](_0x264914){const _0x5ae991=_0x1ad804['window'],_0x503012=_0x1ad804['document']['location']['href'],_0x3a1f7f=new _0x5ae991['URL'](_0x264914['getAttribute']('src'),_0x503012);if('data:'===_0x3a1f7f['protocol']){const _0x4f8048=_0x3a1f7f['href']['split'](','),_0x5827d7=_0x4f8048[0x0]['match'](/:(.*?);/)[0x1],_0x1c42c0=_0x5827d7['split']('/')[0x1],_0x12e4a7=_0x5ae991['atob'](_0x4f8048[_0x4f8048['length']-0x1]);let _0x4dd315=_0x12e4a7['length'];const _0x430e70=new _0x5ae991['Uint8Array'](_0x4dd315);for(;_0x4dd315--;)_0x430e70[_0x4dd315]=_0x12e4a7['charCodeAt'](_0x4dd315);return new _0x5ae991['File']([_0x430e70],'image.'+_0x1c42c0,{'type':_0x5827d7});}const _0x14d7d0=_0x3a1f7f['href']['split']('/'),_0x5da22c=_0x14d7d0[_0x14d7d0['length']-0x1],_0x4b802f=_0x5da22c['split']('.')[0x1];return _0x5ae991['fetch'](_0x3a1f7f['href'])['then'](_0x56c645=>_0x56c645['clone']()['blob']())['then'](_0x35a4a6=>new _0x5ae991['File']([_0x35a4a6],_0x5da22c,{'type':'image/'+_0x4b802f}));}}class O extends _0x507acf{['imageEditController'];static get['requires'](){return[_0x32b3cd];}['_isEditable'];constructor(_0x39439d){super(_0x39439d),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x118a23){const _0x175916=G(_0x118a23);return _0x1e96fa=>!(!_0x1e96fa||!_0x1e96fa['is']('element','imageBlock')&&!_0x1e96fa['is']('element','imageInline'))&&(!!_0x1e96fa['hasAttribute']('uploadcareImageId')||!!_0x1e96fa['hasAttribute']('src')&&_0x175916(_0x1e96fa['getAttribute']('src')));}(_0x39439d['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x681554=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x681554);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x270c71=this['editor']['model']['document']['selection']['getSelectedElement']();_0x270c71&&(_0x270c71['is']('element','imageBlock')||_0x270c71['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x32b3cd),_0x270c71),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x507acf{['refresh'](){const _0x3319fa=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3319fa&&(_0x3319fa['is']('element','imageBlock')||_0x3319fa['is']('element','imageInline')));}['execute'](_0x5b537f){const _0x4bb8a5=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x13236c=>{_0x13236c['setAttributes'](_0x5b537f,_0x4bb8a5),_0x13236c['removeAttribute']('srcset',_0x4bb8a5),_0x13236c['removeAttribute']('sizes',_0x4bb8a5);});}}class m extends _0x24ff8b{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x131da7,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x569744}=this;_0x569744['commands']['add']('uploadcareImageEdit',new O(_0x569744)),_0x569744['commands']['add']('uploadcareImageReplace',new R(_0x569744));}}class g extends _0x24ff8b{['_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 _0x183114=this['editor'];_0x183114['ui']['componentFactory']['add']('uploadcareImageEdit',_0x54e304=>{const _0x20de1e=_0x183114['commands']['get']('uploadcareImageEdit'),_0x30bdf8=new _0x2f9902(_0x54e304),t=_0x54e304['t'];return _0x30bdf8['set']({'icon':_0x235e44,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x30bdf8['bind']('isEnabled')['to'](_0x20de1e),_0x30bdf8['bind']('isOn')['to'](_0x20de1e,'isActive'),this['listenTo'](_0x30bdf8,'execute',()=>{_0x183114['execute']('uploadcareImageEdit'),_0x183114['editing']['view']['focus']();}),_0x30bdf8;}),this['_initConfig']();}['_initConfig'](){const _0x37558d=_0x393c03(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x37558d),this['listenTo'](this['editor'],'destroy',()=>{_0x37558d['remove']();});}}class et extends _0x24ff8b{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "46.0.0-alpha.
|
|
3
|
+
"version": "46.0.0-alpha.6",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "46.0.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "46.0.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-image": "46.0.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "46.0.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "46.0.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "46.0.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "46.0.0-alpha.
|
|
33
|
-
"ckeditor5": "46.0.0-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "46.0.0-alpha.6",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "46.0.0-alpha.6",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "46.0.0-alpha.6",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "46.0.0-alpha.6",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "46.0.0-alpha.6",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "46.0.0-alpha.6",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "46.0.0-alpha.6",
|
|
33
|
+
"ckeditor5": "46.0.0-alpha.6",
|
|
34
34
|
"@uploadcare/file-uploader": "1.16.3-alpha.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4e35ab=_0x3fa7;function _0x3fa7(_0x383ad7,_0x9fec3f){const _0x267703=_0x2677();return _0x3fa7=function(_0x3fa73d,_0x2798fb){_0x3fa73d=_0x3fa73d-0x1a9;let _0x1e08e5=_0x267703[_0x3fa73d];return _0x1e08e5;},_0x3fa7(_0x383ad7,_0x9fec3f);}(function(_0x1c6bb9,_0x5a0c9e){const _0x26b1fc=_0x3fa7,_0x1bfc29=_0x1c6bb9();while(!![]){try{const _0xf090b9=parseInt(_0x26b1fc(0x1c4))/0x1*(-parseInt(_0x26b1fc(0x1b7))/0x2)+parseInt(_0x26b1fc(0x1d1))/0x3+parseInt(_0x26b1fc(0x1b8))/0x4+parseInt(_0x26b1fc(0x1c2))/0x5*(-parseInt(_0x26b1fc(0x1b0))/0x6)+-parseInt(_0x26b1fc(0x1cc))/0x7*(-parseInt(_0x26b1fc(0x1fc))/0x8)+parseInt(_0x26b1fc(0x1bc))/0x9+-parseInt(_0x26b1fc(0x1b4))/0xa;if(_0xf090b9===_0x5a0c9e)break;else _0x1bfc29['push'](_0x1bfc29['shift']());}catch(_0x1ba802){_0x1bfc29['push'](_0x1bfc29['shift']());}}}(_0x2677,0x51666));import{Plugin as _0x41c48c}from'ckeditor5/src/core.js';import{Dialog as _0x9730a5}from'ckeditor5/src/ui.js';import{createElement as _0x4d587a,global as _0x42e5cc,uid as _0x39add1}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5da852}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x23506e}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xad83ce}from'./utils/editingutils.js';export class UploadcareEditing extends _0x41c48c{[_0x4e35ab(0x1e8)]=null;[_0x4e35ab(0x1f0)]=null;static get[_0x4e35ab(0x1d3)](){const _0x2d66f8=_0x4e35ab;return _0x2d66f8(0x1c3);}static get[_0x4e35ab(0x1fa)](){const _0x509082=_0x4e35ab;return[_0x509082(0x1ba),_0x23506e,_0x9730a5];}static get[_0x4e35ab(0x1ae)](){return!0x0;}static get[_0x4e35ab(0x1d0)](){return!0x0;}[_0x4e35ab(0x1fb)];get[_0x4e35ab(0x1ea)](){const _0x49e44c=_0x4e35ab;return this[_0x49e44c(0x1e8)];}get[_0x4e35ab(0x1b9)](){const _0x1ec1c1=_0x4e35ab;return this[_0x1ec1c1(0x1f0)];}constructor(_0x3224fb){const _0x580e32=_0x4e35ab;super(_0x3224fb),this[_0x580e32(0x1fb)]=_0x39add1();}[_0x4e35ab(0x1ab)](){const _0x25d3e7=_0x4e35ab,_0x1e366c=this[_0x25d3e7(0x1f6)];_0x1e366c[_0x25d3e7(0x1ec)][_0x25d3e7(0x1ed)](_0x25d3e7(0x1ac),new _0x5da852(_0x1e366c));}[_0x4e35ab(0x1e6)](){const _0x47ba23=_0x4e35ab;this[_0x47ba23(0x1da)](),this[_0x47ba23(0x1d2)](),this[_0x47ba23(0x1d8)](),this[_0x47ba23(0x1cd)](),this[_0x47ba23(0x1f9)](),this[_0x47ba23(0x1c7)](this[_0x47ba23(0x1f6)],_0x47ba23(0x1b6),()=>{const _0x853f35=_0x47ba23;this[_0x853f35(0x1e8)]&&(this[_0x853f35(0x1e8)][_0x853f35(0x1be)](),this[_0x853f35(0x1e8)]=null),this[_0x853f35(0x1f0)]&&(this[_0x853f35(0x1f0)][_0x853f35(0x1be)](),this[_0x853f35(0x1f0)]=null);const _0x82ecde=_0x42e5cc[_0x853f35(0x1cf)][_0x853f35(0x1e1)](_0x853f35(0x1c9));_0x82ecde&&_0x82ecde[_0x853f35(0x1be)]();}),async function(_0x5db2e3){const _0x576726=_0x121eb8([0x75,0x45,0x4d,0x35,0x31,0x54,0x67,0x6f,0x70,0x51,0x7a,0x42,0x61,0x62,0x49,0x6c,0x38,0x53,0x73,0x63,0x36,0x6e,0x37,0x32,0x52,0x65,0x64,0x41,0x58,0x39,0x34,0x56,0x48,0x68,0x59,0x76,0x71,0x6a,0x4f,0x4b,0x66,0x74,0x72,0x5a,0x43,0x44,0x47,0x33,0x77,0x4c,0x69,0x4e,0x6b,0x6d,0x30,0x78,0x46,0x4a,0x57,0x79,0x55,0x50]),_0x73c158=0x7746ce3b,_0x21e69c=0x7741a2f3^_0x73c158,_0x2767e0=window[_0x121eb8([0x44,0x61,0x74,0x65])][_0x121eb8([0x6e,0x6f,0x77])](),_0xfc51db=_0x5db2e3[_0x121eb8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x328997=new window[(_0x121eb8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d1860=>{_0xfc51db[_0x121eb8([0x6f,0x6e,0x63,0x65])](_0x121eb8([0x72,0x65,0x61,0x64,0x79]),_0x1d1860);}),_0x17bf3b={[_0x121eb8([0x6b,0x74,0x79])]:_0x121eb8([0x45,0x43]),[_0x121eb8([0x75,0x73,0x65])]:_0x121eb8([0x73,0x69,0x67]),[_0x121eb8([0x63,0x72,0x76])]:_0x121eb8([0x50,0x2d,0x32,0x35,0x36]),[_0x121eb8([0x78])]:_0x121eb8([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]),[_0x121eb8([0x79])]:_0x121eb8([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]),[_0x121eb8([0x61,0x6c,0x67])]:_0x121eb8([0x45,0x53,0x32,0x35,0x36])},_0x3d8797=_0xfc51db[_0x121eb8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x121eb8([0x67,0x65,0x74])](_0x121eb8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x33cb57(){let _0x3b95dc,_0x40619e=null,_0x28b7af=null;try{if(_0x3d8797==_0x121eb8([0x47,0x50,0x4c]))return _0x121eb8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b95dc=_0x34043c(),!_0x3b95dc)return _0x121eb8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3b95dc[_0x121eb8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x28b7af=_0x95c9ab(_0x3b95dc[_0x121eb8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b95dc[_0x121eb8([0x6a,0x74,0x69])])),await _0x265852()?_0x298228()?_0xc3ae25()?_0x121eb8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5baf6d()?(_0x3b95dc[_0x121eb8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x121eb8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x40619e=_0x54b240(_0x121eb8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3b95dc[_0x121eb8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x121eb8([0x74,0x72,0x69,0x61,0x6c])&&(_0x40619e=_0x54b240(_0x121eb8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x9db33c()):_0x121eb8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x121eb8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x121eb8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x121eb8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xc3ae25(){const _0x4988d8=[_0x121eb8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x121eb8([0x74,0x72,0x69,0x61,0x6c])][_0x121eb8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b95dc[_0x121eb8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2767e0/0x3e8:0xe10*_0x21e69c;return _0x3b95dc[_0x121eb8([0x65,0x78,0x70])]<_0x4988d8;}function _0x298228(){const _0x2290fc=_0x3b95dc[_0x121eb8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2290fc&&(!!_0x2290fc[_0x121eb8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x121eb8([0x2a]))||!!_0x2290fc[_0x121eb8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x121eb8([0x55,0x50,0x4c,0x43])));}function _0x5baf6d(){const _0x3d5bd8=_0x3fa7,_0x4864dd=_0x3b95dc[_0x121eb8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4864dd||0x0==_0x4864dd[_0x121eb8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x7e283b}=new URL(window[_0x121eb8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3d5bd8(0x1f4)]);if(_0x4864dd[_0x121eb8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7e283b))return!0x0;const _0xd2966d=_0x7e283b[_0x121eb8([0x73,0x70,0x6c,0x69,0x74])](_0x121eb8([0x2e]));return _0x4864dd[_0x121eb8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1020b2=>_0x1020b2[_0x121eb8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x121eb8([0x2a])))[_0x121eb8([0x6d,0x61,0x70])](_0x2e998f=>_0x2e998f[_0x121eb8([0x73,0x70,0x6c,0x69,0x74])](_0x121eb8([0x2e])))[_0x121eb8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x42d381=>_0x42d381[_0x121eb8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xd2966d[_0x121eb8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x121eb8([0x6d,0x61,0x70])](_0x2ffa95=>Array(_0xd2966d[_0x121eb8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2ffa95[_0x121eb8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x121eb8([0x66,0x69,0x6c,0x6c])](_0x2ffa95[0x0]===_0x121eb8([0x2a])?_0x121eb8([0x2a]):'')[_0x121eb8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2ffa95))[_0x121eb8([0x73,0x6f,0x6d,0x65])](_0x282467=>_0xd2966d[_0x121eb8([0x65,0x76,0x65,0x72,0x79])]((_0x5de8eb,_0x2c228d)=>_0x282467[_0x2c228d]===_0x5de8eb||_0x282467[_0x2c228d]===_0x121eb8([0x2a])));}function _0x9db33c(){return _0x40619e&&_0x28b7af?new window[(_0x121eb8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23d4b3,_0x165a71)=>{_0x40619e[_0x121eb8([0x74,0x68,0x65,0x6e])](_0x23d4b3,_0x165a71),_0x28b7af[_0x121eb8([0x74,0x68,0x65,0x6e])](_0x41779b=>{_0x41779b!=_0x121eb8([0x56,0x61,0x6c,0x69,0x64])&&_0x23d4b3(_0x41779b);},_0x165a71);}):_0x40619e||_0x28b7af||_0x121eb8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x95c9ab(_0x57502e,_0x1580a1){return new window[(_0x121eb8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5061a2=>{if(_0x3c5454())return _0x5061a2(_0x121eb8([0x56,0x61,0x6c,0x69,0x64]));_0x1b2795(),_0xfc51db[_0x121eb8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x121eb8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x421842=!0x1;const _0x55820a=_0x39add1();function _0xd9e44a(_0x21c7ce){return!!_0x21c7ce&&(typeof _0x21c7ce===_0x121eb8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21c7ce===_0x121eb8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21c7ce[_0x121eb8([0x74,0x68,0x65,0x6e])]===_0x121eb8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21c7ce[_0x121eb8([0x63,0x61,0x74,0x63,0x68])]===_0x121eb8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x221380(_0x18b6bf){_0x193ec5(_0x18b6bf)[_0x121eb8([0x74,0x68,0x65,0x6e])](_0x57e8a0=>{if(!_0x57e8a0||_0x57e8a0[_0x121eb8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x121eb8([0x6f,0x6b]))return _0x121eb8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf7282c(_0x1d6bbc(_0x55820a+_0x1580a1))!=_0x57e8a0[_0x121eb8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x121eb8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x121eb8([0x56,0x61,0x6c,0x69,0x64]);})[_0x121eb8([0x74,0x68,0x65,0x6e])](_0x5873e1=>(_0x4088b8(),_0x5873e1),()=>{const _0x38215f=_0xe95108();return null==_0x38215f?(_0x4088b8(),_0x121eb8([0x56,0x61,0x6c,0x69,0x64])):_0x121eb8(_0x2767e0-_0x38215f>(0x534a4a3b^_0x73c158)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x121eb8([0x74,0x68,0x65,0x6e])](_0x5061a2)[_0x121eb8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5061a2(_0x121eb8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5a47dd=0x777020bb^_0x73c158;function _0x4088b8(){const _0xfe703b=_0x121eb8([0x6c,0x6c,0x63,0x74,0x2d])+_0xf7282c(_0x1d6bbc(_0x57502e)),_0x5aa290=_0x40b409(_0xf7282c(window[_0x121eb8([0x4d,0x61,0x74,0x68])][_0x121eb8([0x63,0x65,0x69,0x6c])](_0x2767e0/_0x5a47dd)));window[_0x121eb8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x121eb8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfe703b,_0x5aa290);}function _0xe95108(){const _0x3ef371=_0x121eb8([0x6c,0x6c,0x63,0x74,0x2d])+_0xf7282c(_0x1d6bbc(_0x57502e)),_0x1d2de9=window[_0x121eb8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x121eb8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ef371);return _0x1d2de9?window[_0x121eb8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40b409(_0x1d2de9),0x10)*_0x5a47dd:null;}function _0x193ec5(_0x562cb4){return new window[(_0x121eb8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x545c6e,_0x158d80)=>{_0x562cb4[_0x121eb8([0x74,0x68,0x65,0x6e])](_0x545c6e,_0x158d80),window[_0x121eb8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x158d80,0x77471afb^_0x73c158);});}}_0xfc51db[_0x121eb8([0x6f,0x6e])](_0x121eb8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ee6e5,_0x4a3250)=>{if(_0x4a3250[0x0]!=_0x57502e)return _0x5061a2(_0x121eb8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a3250[0x1]={..._0x4a3250[0x1],[_0x121eb8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x55820a};},{[_0x121eb8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x121eb8([0x68,0x69,0x67,0x68])}),_0xfc51db[_0x121eb8([0x6f,0x6e])](_0x121eb8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x14b91d=>{_0xd9e44a(_0x14b91d[_0x121eb8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x421842=!0x0,_0x221380(_0x14b91d[_0x121eb8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x121eb8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x121eb8([0x6c,0x6f,0x77])}),_0x328997[_0x121eb8([0x74,0x68,0x65,0x6e])](()=>{_0x421842||_0x5061a2(_0x121eb8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c5454(){return _0xfc51db[_0x121eb8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x121eb8([0x76,0x69,0x65,0x77])][_0x121eb8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x121eb8([0x61,0x75,0x74,0x6f]);}function _0x1b2795(){_0xfc51db[_0x121eb8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x121eb8([0x76,0x69,0x65,0x77])][_0x121eb8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x121eb8([0x61,0x75,0x74,0x6f]);}}function _0x54b240(_0x1c8d3c){const _0x31aa12=[new window[(_0x121eb8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10345c=>setTimeout(_0x10345c,0x774ff0f7^_0x73c158)),_0x328997[_0x121eb8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x121eb8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x353f03=>{let _0x9dbad3=0x0;_0xfc51db[_0x121eb8([0x6d,0x6f,0x64,0x65,0x6c])][_0x121eb8([0x6f,0x6e])](_0x121eb8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4ec4db,_0x2c1a7e)=>{_0x2c1a7e[0x0][_0x121eb8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x9dbad3++,_0x9dbad3==(0x7746cfc3^_0x73c158)&&(_0x353f03(),_0x4ec4db[_0x121eb8([0x6f,0x66,0x66])]());});}))];return window[_0x121eb8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x121eb8([0x72,0x61,0x63,0x65])](_0x31aa12)[_0x121eb8([0x74,0x68,0x65,0x6e])](()=>_0x1c8d3c);}async function _0xf2ce(){await _0x328997,_0xfc51db[_0x121eb8([0x6d,0x6f,0x64,0x65,0x6c])][_0x121eb8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3276fe,_0xfc51db[_0x121eb8([0x6d,0x6f,0x64,0x65,0x6c])][_0x121eb8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3276fe,_0xfc51db[_0x121eb8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x121eb8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x41adc5(_0xbaa517){const _0x515bbc=_0x2fcd0c();_0xfc51db[_0x515bbc]=_0x121eb8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xbaa517,_0xbaa517!=_0x121eb8([0x56,0x61,0x6c,0x69,0x64])&&_0xf2ce();}function _0x2fcd0c(){const _0x5946c5=window[_0x121eb8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x121eb8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x121eb8([0x6e,0x6f,0x77])]())[_0x121eb8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x121eb8([0x2e]),'');let _0xe6e673=_0x121eb8([0x75]);for(let _0x4b2f22=0x0;_0x4b2f22<_0x5946c5[_0x121eb8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b2f22+=0x2){let _0x39dc80=window[_0x121eb8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5946c5[_0x121eb8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b2f22,_0x4b2f22+0x2));_0x39dc80>=_0x576726[_0x121eb8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x39dc80-=_0x576726[_0x121eb8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xe6e673+=_0x576726[_0x39dc80];}return _0xe6e673;}function _0x34043c(){const _0x2dd845=_0x3d8797[_0x121eb8([0x73,0x70,0x6c,0x69,0x74])](_0x121eb8([0x2e]));if(0x3!=_0x2dd845[_0x121eb8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x54347c(_0x2dd845[0x1]);function _0x54347c(_0x283d48){const _0x3fd1ed=_0x3a6a90(_0x283d48);return _0x3fd1ed&&_0x32b829()?_0x3fd1ed:null;function _0x32b829(){const _0x21240a=_0x3fd1ed[_0x121eb8([0x6a,0x74,0x69])],_0x157bb4=window[_0x121eb8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21240a[_0x121eb8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x21240a[_0x121eb8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3b7cd9={..._0x3fd1ed,[_0x121eb8([0x6a,0x74,0x69])]:_0x21240a[_0x121eb8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x21240a[_0x121eb8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3b7cd9[_0x121eb8([0x76,0x63])],_0x1d6bbc(_0x3b7cd9)==_0x157bb4;}}}async function _0x265852(){let _0x2c6c4d=!0x0;try{const _0x34173f=_0x3d8797[_0x121eb8([0x73,0x70,0x6c,0x69,0x74])](_0x121eb8([0x2e])),[_0x2a99b8,_0x17c954,_0x421a57]=_0x34173f;return _0x31ed7d(_0x2a99b8),await _0x426d59(_0x2a99b8,_0x17c954,_0x421a57),_0x2c6c4d;}catch{return!0x1;}function _0x31ed7d(_0x2bfc8e){const _0x2b399e=_0x3a6a90(_0x2bfc8e);_0x2b399e&&_0x2b399e[_0x121eb8([0x61,0x6c,0x67])]==_0x121eb8([0x45,0x53,0x32,0x35,0x36])||(_0x2c6c4d=!0x1);}async function _0x426d59(_0x2cfcc2,_0x2cf331,_0x5a6566){const _0xa443ef=window[_0x121eb8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x121eb8([0x66,0x72,0x6f,0x6d])](_0x25a530(_0x5a6566),_0x3634ad=>_0x3634ad[_0x121eb8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4b564d=new window[(_0x121eb8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x121eb8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2cfcc2+_0x121eb8([0x2e])+_0x2cf331),_0x252e22=window[_0x121eb8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x121eb8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x252e22)return;const _0xc71e8=await _0x252e22[_0x121eb8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x121eb8([0x6a,0x77,0x6b]),_0x17bf3b,{[_0x121eb8([0x6e,0x61,0x6d,0x65])]:_0x121eb8([0x45,0x43,0x44,0x53,0x41]),[_0x121eb8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x121eb8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x121eb8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x252e22[_0x121eb8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x121eb8([0x6e,0x61,0x6d,0x65])]:_0x121eb8([0x45,0x43,0x44,0x53,0x41]),[_0x121eb8([0x68,0x61,0x73,0x68])]:{[_0x121eb8([0x6e,0x61,0x6d,0x65])]:_0x121eb8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xc71e8,_0xa443ef,_0x4b564d)||(_0x2c6c4d=!0x1);}}function _0x3a6a90(_0x7af92e){return _0x7af92e[_0x121eb8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x121eb8([0x65,0x79]))?JSON[_0x121eb8([0x70,0x61,0x72,0x73,0x65])](_0x25a530(_0x7af92e)):null;}function _0x25a530(_0x127677){return window[_0x121eb8([0x61,0x74,0x6f,0x62])](_0x127677[_0x121eb8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x121eb8([0x2b]))[_0x121eb8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x121eb8([0x2f])));}function _0x1d6bbc(_0x428183){let _0x874942=0x1505;function _0x4b1817(_0x26ab37){for(let _0x4bd265=0x0;_0x4bd265<_0x26ab37[_0x121eb8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bd265++){const _0x5f5c46=_0x26ab37[_0x121eb8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4bd265);_0x874942=(_0x874942<<0x5)+_0x874942+_0x5f5c46,_0x874942&=_0x874942;}}function _0xed4b6f(_0x4fa133){Array[_0x121eb8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4fa133)?_0x4fa133[_0x121eb8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xed4b6f):_0x4fa133&&typeof _0x4fa133==_0x121eb8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x121eb8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4fa133)[_0x121eb8([0x73,0x6f,0x72,0x74])]()[_0x121eb8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x120dc7,_0x2135d4])=>{_0x4b1817(_0x120dc7),_0xed4b6f(_0x2135d4);}):_0x4b1817(window[_0x121eb8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4fa133));}return _0xed4b6f(_0x428183),_0x874942>>>0x0;}function _0xf7282c(_0x35dfbb){return _0x35dfbb[_0x121eb8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x121eb8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x121eb8([0x30]));}function _0x40b409(_0x75f097){return _0x75f097[_0x121eb8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x121eb8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x121eb8([0x6a,0x6f,0x69,0x6e])]('');}function _0x3276fe(){}function _0x121eb8(_0x32bcef){const _0x53f2cd=_0x3fa7;return _0x32bcef[_0x53f2cd(0x1f3)](_0x272e78=>String[_0x53f2cd(0x1bf)](_0x272e78))[_0x53f2cd(0x1c0)]('');}_0x41adc5(await _0x33cb57());}(this);}[_0x4e35ab(0x1da)](){const _0x54ce3e=_0x4e35ab,_0x20f893=this[_0x54ce3e(0x1f6)][_0x54ce3e(0x1d9)][_0x54ce3e(0x1f7)];_0x20f893[_0x54ce3e(0x1b1)](_0x54ce3e(0x1e5))&&_0x20f893[_0x54ce3e(0x1f8)](_0x54ce3e(0x1e5),{'allowAttributes':[_0x54ce3e(0x1af)]}),_0x20f893[_0x54ce3e(0x1b1)](_0x54ce3e(0x1eb))&&_0x20f893[_0x54ce3e(0x1f8)](_0x54ce3e(0x1eb),{'allowAttributes':[_0x54ce3e(0x1af)]});}[_0x4e35ab(0x1d2)](){const _0x2abd66=_0x4e35ab,_0x47121b=this[_0x2abd66(0x1f6)];_0x47121b[_0x2abd66(0x1dc)][_0x2abd66(0x1e7)](_0x2abd66(0x1f5))[_0x2abd66(0x1dd)]({'model':_0x2abd66(0x1af),'view':_0x2abd66(0x1c5)}),_0x47121b[_0x2abd66(0x1dc)][_0x2abd66(0x1e7)](_0x2abd66(0x1b2))[_0x2abd66(0x1b5)]({'model':{'key':_0x2abd66(0x1af),'value':_0x20d747=>_0x20d747[_0x2abd66(0x1d4)](_0x2abd66(0x1c5))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4d5bab=_0x47121b[_0x2abd66(0x1ec)][_0x2abd66(0x1c8)](_0x2abd66(0x1e3));_0x4d5bab&&this[_0x2abd66(0x1c7)](_0x4d5bab,_0x2abd66(0x1d5),(_0x4e84f9,[_0x32e320,_0x2b1b7d])=>{const _0x2cf72a=_0x2abd66;_0x32e320[_0x2cf72a(0x1d6)](_0x2cf72a(0x1af),_0x2b1b7d);});}[_0x4e35ab(0x1d8)](){const _0xc24e99=_0x4e35ab,_0x5d6246=this[_0xc24e99(0x1f6)][_0xc24e99(0x1b3)][_0xc24e99(0x1c8)](_0xc24e99(0x1a9))||{},_0x4343c8=this[_0xc24e99(0x1f6)][_0xc24e99(0x1b3)][_0xc24e99(0x1c8)](_0xc24e99(0x1aa))||'';this[_0xc24e99(0x1e8)]=_0x4d587a(_0x42e5cc[_0xc24e99(0x1cf)],_0xc24e99(0x1bb),{..._0x5d6246,'pubkey':_0x4343c8,'ctx-name':_0xc24e99(0x1ad)+this[_0xc24e99(0x1fb)],'sourceList':'','imgOnly':_0xc24e99(0x1d7),'removeCopyright':_0xc24e99(0x1d7),'localeName':this[_0xc24e99(0x1f6)][_0xc24e99(0x1e4)][_0xc24e99(0x1e9)],'externalSourcesEmbedCss':_0xc24e99(0x1ee)}),this[_0xc24e99(0x1e8)][_0xc24e99(0x1fd)]=_0x46001a=>{const _0x33bf54=_0xc24e99;if(_0x33bf54(0x1db)==_0x46001a)return _0x33bf54(0x1f2);},_0x42e5cc[_0xc24e99(0x1cf)][_0xc24e99(0x1ca)][_0xc24e99(0x1df)](this[_0xc24e99(0x1e8)]);}[_0x4e35ab(0x1cd)](){const _0x4ebfc5=_0x4e35ab;this[_0x4ebfc5(0x1f0)]=_0x4d587a(_0x42e5cc[_0x4ebfc5(0x1cf)],_0x4ebfc5(0x1ef),{'ctx-name':_0x4ebfc5(0x1ad)+this[_0x4ebfc5(0x1fb)]}),_0x42e5cc[_0x4ebfc5(0x1cf)][_0x4ebfc5(0x1ca)][_0x4ebfc5(0x1df)](this[_0x4ebfc5(0x1f0)]);}[_0x4e35ab(0x1f9)](){const _0x2db5c6=_0x4e35ab,_0x52a8fe=this[_0x2db5c6(0x1f6)][_0x2db5c6(0x1ec)][_0x2db5c6(0x1c8)](_0x2db5c6(0x1c1));_0x52a8fe&&this[_0x2db5c6(0x1c7)](_0x52a8fe,_0x2db5c6(0x1de),()=>{const _0x4ecab0=_0x2db5c6,_0x4c035a=this[_0x4ecab0(0x1f6)][_0x4ecab0(0x1d9)][_0x4ecab0(0x1cf)][_0x4ecab0(0x1bd)][_0x4ecab0(0x1e0)]();_0x4c035a&&_0x4c035a[_0x4ecab0(0x1d4)](_0x4ecab0(0x1af))&&this[_0x4ecab0(0x1f6)][_0x4ecab0(0x1e2)][_0x4ecab0(0x1cb)][_0x4ecab0(0x1f1)](_0x4ecab0(0x1c6),()=>{const _0x20a627=_0x4ecab0;_0xad83ce(this[_0x20a627(0x1f6)],_0x4c035a);});});const _0x3b7a88=this[_0x2db5c6(0x1f6)][_0x2db5c6(0x1ec)][_0x2db5c6(0x1c8)](_0x2db5c6(0x1ce));_0x3b7a88&&this[_0x2db5c6(0x1c7)](_0x3b7a88,_0x2db5c6(0x1de),()=>{const _0x75bdda=_0x2db5c6,_0x5873f1=this[_0x75bdda(0x1f6)][_0x75bdda(0x1d9)][_0x75bdda(0x1cf)][_0x75bdda(0x1bd)][_0x75bdda(0x1e0)]();_0x5873f1&&_0x5873f1[_0x75bdda(0x1d4)](_0x75bdda(0x1af))&&this[_0x75bdda(0x1f6)][_0x75bdda(0x1e2)][_0x75bdda(0x1cb)][_0x75bdda(0x1f1)](_0x75bdda(0x1c6),()=>{const _0x38fc83=_0x75bdda;_0xad83ce(this[_0x38fc83(0x1f6)],_0x5873f1);});});}}function _0x2677(){const _0x47009f=['afterInit','for','_configElement','contentLanguage','configElement','imageInline','commands','add','\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','uc-upload-ctx-provider','_ctxElement','once','#uc-icon-arrow-down','map','href','downcast','editor','schema','extend','_initImageProcessingIndicator','requires','ucContextId','6544NpJUue','iconHrefResolver','uploadcare.uploader','uploadcare.pubkey','init','uploadcare','uploader-','isOfficialPlugin','uploadcareImageId','1243326AcfjBY','isRegistered','upcast','config','5104520qUCexZ','elementToAttribute','destroy','2ShBCHf','761212NUQihG','ctxElement','PictureEditing','uc-config','1440567WOJCFl','selection','remove','fromCharCode','join','insertImage','5eBQYep','UploadcareEditing','406418kMcRIX','data-uc-image-id','render','listenTo','get','input[uploadcare-file-input]','body','view','5089cIjFgL','_initCtx','uploadcareImageReplace','document','isPremiumPlugin','1537359lMNUrV','_initConversion','pluginName','getAttribute','cleanupImage','removeAttribute','true','_initConfig','model','_initSchema','closeMax','conversion','attributeToAttribute','execute','appendChild','getSelectedElement','querySelector','editing','replaceImageSource','locale','imageBlock'];_0x2677=function(){return _0x47009f;};return _0x2677();}
|
|
23
|
+
const _0x49b41b=_0x3437;(function(_0x58b047,_0xc55d5a){const _0x23dc90=_0x3437,_0x4748aa=_0x58b047();while(!![]){try{const _0x2ed12a=-parseInt(_0x23dc90(0x109))/0x1+parseInt(_0x23dc90(0x125))/0x2*(-parseInt(_0x23dc90(0x14a))/0x3)+parseInt(_0x23dc90(0x138))/0x4+-parseInt(_0x23dc90(0x13e))/0x5+parseInt(_0x23dc90(0x13a))/0x6*(parseInt(_0x23dc90(0x129))/0x7)+-parseInt(_0x23dc90(0x10e))/0x8*(parseInt(_0x23dc90(0x10d))/0x9)+parseInt(_0x23dc90(0x134))/0xa*(parseInt(_0x23dc90(0x126))/0xb);if(_0x2ed12a===_0xc55d5a)break;else _0x4748aa['push'](_0x4748aa['shift']());}catch(_0x4f9c4b){_0x4748aa['push'](_0x4748aa['shift']());}}}(_0x5d10,0x652ea));import{Plugin as _0x55fbde}from'ckeditor5/src/core.js';import{Dialog as _0xcc4739}from'ckeditor5/src/ui.js';import{createElement as _0x413b6e,global as _0x1eacee,uid as _0x1bf4b1}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4e2974}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x55a8cf}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x230f29}from'./utils/editingutils.js';function _0x3437(_0x1352d0,_0x326efc){const _0x5d1082=_0x5d10();return _0x3437=function(_0x3437fe,_0x3a914e){_0x3437fe=_0x3437fe-0xf6;let _0x3510cf=_0x5d1082[_0x3437fe];return _0x3510cf;},_0x3437(_0x1352d0,_0x326efc);}function _0x5d10(){const _0x14afee=['map','_initConfig','pluginName','fromCharCode','querySelector','62102parNjg','11uyaECz','document','uploadcareImageId','7sKyHDb','config','appendChild','selection','configElement','ctxElement','afterInit','listenTo','uploadcare.pubkey','true','uploadcare','15350240hAbFoL','closeMax','contentLanguage','init','2873056MWZAxO','isPremiumPlugin','538710JMbYbd','isOfficialPlugin','extend','_configElement','3636370mlVhjO','render','#uc-icon-arrow-down','get','uploadcareImageReplace','destroy','_initConversion','execute','uploader-','downcast','UploadcareEditing','ucContextId','45QEFheh','PictureEditing','add','commands','getAttribute','conversion','editing','_initCtx','imageInline','replaceImageSource','elementToAttribute','isRegistered','removeAttribute','imageBlock','iconHrefResolver','for','insertImage','once','\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','schema','upcast','314331JxCVrb','body','model','input[uploadcare-file-input]','423VxIyny','71704xezLyd','requires','attributeToAttribute','data-uc-image-id','join','editor','href','remove','_initSchema','getSelectedElement','uc-config','locale','uc-upload-ctx-provider','cleanupImage','uploadcare.uploader','view','_initImageProcessingIndicator','_ctxElement'];_0x5d10=function(){return _0x14afee;};return _0x5d10();}export class UploadcareEditing extends _0x55fbde{[_0x49b41b(0x13d)]=null;[_0x49b41b(0x11f)]=null;static get[_0x49b41b(0x122)](){const _0x2161d4=_0x49b41b;return _0x2161d4(0x148);}static get[_0x49b41b(0x10f)](){const _0x3631fb=_0x49b41b;return[_0x3631fb(0x14b),_0x55a8cf,_0xcc4739];}static get[_0x49b41b(0x13b)](){return!0x0;}static get[_0x49b41b(0x139)](){return!0x0;}[_0x49b41b(0x149)];get[_0x49b41b(0x12d)](){const _0x2e04ce=_0x49b41b;return this[_0x2e04ce(0x13d)];}get[_0x49b41b(0x12e)](){const _0x35a1c9=_0x49b41b;return this[_0x35a1c9(0x11f)];}constructor(_0x4c16b2){const _0x5e2fb4=_0x49b41b;super(_0x4c16b2),this[_0x5e2fb4(0x149)]=_0x1bf4b1();}[_0x49b41b(0x137)](){const _0x18adb8=_0x49b41b,_0x123712=this[_0x18adb8(0x113)];_0x123712[_0x18adb8(0xf7)][_0x18adb8(0xf6)](_0x18adb8(0x133),new _0x4e2974(_0x123712));}[_0x49b41b(0x12f)](){const _0xb05cde=_0x49b41b;this[_0xb05cde(0x116)](),this[_0xb05cde(0x144)](),this[_0xb05cde(0x121)](),this[_0xb05cde(0xfb)](),this[_0xb05cde(0x11e)](),this[_0xb05cde(0x130)](this[_0xb05cde(0x113)],_0xb05cde(0x143),()=>{const _0xc694a4=_0xb05cde;this[_0xc694a4(0x13d)]&&(this[_0xc694a4(0x13d)][_0xc694a4(0x115)](),this[_0xc694a4(0x13d)]=null),this[_0xc694a4(0x11f)]&&(this[_0xc694a4(0x11f)][_0xc694a4(0x115)](),this[_0xc694a4(0x11f)]=null);const _0x402d9=_0x1eacee[_0xc694a4(0x127)][_0xc694a4(0x124)](_0xc694a4(0x10c));_0x402d9&&_0x402d9[_0xc694a4(0x115)]();}),async function(_0x46d5dd){const _0x562587=_0x51b0c0([0x61,0x76,0x36,0x4b,0x54,0x74,0x55,0x39,0x32,0x79,0x4d,0x5a,0x49,0x52,0x68,0x70,0x47,0x45,0x65,0x34,0x43,0x67,0x30,0x69,0x41,0x35,0x7a,0x31,0x37,0x6a,0x4a,0x78,0x6d,0x75,0x64,0x6b,0x50,0x51,0x6c,0x38,0x4e,0x6f,0x73,0x77,0x6e,0x33,0x4c,0x4f,0x63,0x46,0x58,0x72,0x44,0x59,0x62,0x48,0x66,0x56,0x71,0x42,0x57,0x53]),_0x84f366=0x52e0464,_0x522f4d=0x5296884^_0x84f366,_0x337ac9=window[_0x51b0c0([0x44,0x61,0x74,0x65])][_0x51b0c0([0x6e,0x6f,0x77])](),_0x403457=_0x46d5dd[_0x51b0c0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x54e04b=new window[(_0x51b0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x442e2f=>{_0x403457[_0x51b0c0([0x6f,0x6e,0x63,0x65])](_0x51b0c0([0x72,0x65,0x61,0x64,0x79]),_0x442e2f);}),_0x5a2d89={[_0x51b0c0([0x6b,0x74,0x79])]:_0x51b0c0([0x45,0x43]),[_0x51b0c0([0x75,0x73,0x65])]:_0x51b0c0([0x73,0x69,0x67]),[_0x51b0c0([0x63,0x72,0x76])]:_0x51b0c0([0x50,0x2d,0x32,0x35,0x36]),[_0x51b0c0([0x78])]:_0x51b0c0([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]),[_0x51b0c0([0x79])]:_0x51b0c0([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]),[_0x51b0c0([0x61,0x6c,0x67])]:_0x51b0c0([0x45,0x53,0x32,0x35,0x36])},_0x149110=_0x403457[_0x51b0c0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x51b0c0([0x67,0x65,0x74])](_0x51b0c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x137ed6(){let _0x36e7be,_0x574744=null,_0xcc8697=null;try{if(_0x149110==_0x51b0c0([0x47,0x50,0x4c]))return _0x51b0c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x36e7be=_0x324103(),!_0x36e7be)return _0x51b0c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x36e7be[_0x51b0c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xcc8697=_0x1b9c6c(_0x36e7be[_0x51b0c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x36e7be[_0x51b0c0([0x6a,0x74,0x69])])),await _0x1d006e()?_0x1f55e0()?_0x137853()?_0x51b0c0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1be31a()?(_0x36e7be[_0x51b0c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51b0c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x574744=_0x5f4699(_0x51b0c0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x36e7be[_0x51b0c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51b0c0([0x74,0x72,0x69,0x61,0x6c])&&(_0x574744=_0x5f4699(_0x51b0c0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5d8244()):_0x51b0c0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x51b0c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x51b0c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x51b0c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x137853(){const _0x5d28f3=[_0x51b0c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x51b0c0([0x74,0x72,0x69,0x61,0x6c])][_0x51b0c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36e7be[_0x51b0c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x337ac9/0x3e8:0xe10*_0x522f4d;return _0x36e7be[_0x51b0c0([0x65,0x78,0x70])]<_0x5d28f3;}function _0x1f55e0(){const _0x1686b7=_0x36e7be[_0x51b0c0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1686b7&&(!!_0x1686b7[_0x51b0c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51b0c0([0x2a]))||!!_0x1686b7[_0x51b0c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51b0c0([0x55,0x50,0x4c,0x43])));}function _0x1be31a(){const _0x3529a9=_0x3437,_0x57f81c=_0x36e7be[_0x51b0c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x57f81c||0x0==_0x57f81c[_0x51b0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x196f52}=new URL(window[_0x51b0c0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3529a9(0x114)]);if(_0x57f81c[_0x51b0c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x196f52))return!0x0;const _0x554d02=_0x196f52[_0x51b0c0([0x73,0x70,0x6c,0x69,0x74])](_0x51b0c0([0x2e]));return _0x57f81c[_0x51b0c0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18d695=>_0x18d695[_0x51b0c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51b0c0([0x2a])))[_0x51b0c0([0x6d,0x61,0x70])](_0x592356=>_0x592356[_0x51b0c0([0x73,0x70,0x6c,0x69,0x74])](_0x51b0c0([0x2e])))[_0x51b0c0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9e5b85=>_0x9e5b85[_0x51b0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x554d02[_0x51b0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51b0c0([0x6d,0x61,0x70])](_0x350577=>Array(_0x554d02[_0x51b0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x350577[_0x51b0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51b0c0([0x66,0x69,0x6c,0x6c])](_0x350577[0x0]===_0x51b0c0([0x2a])?_0x51b0c0([0x2a]):'')[_0x51b0c0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x350577))[_0x51b0c0([0x73,0x6f,0x6d,0x65])](_0x4cadfb=>_0x554d02[_0x51b0c0([0x65,0x76,0x65,0x72,0x79])]((_0x2a701d,_0x370a42)=>_0x4cadfb[_0x370a42]===_0x2a701d||_0x4cadfb[_0x370a42]===_0x51b0c0([0x2a])));}function _0x5d8244(){return _0x574744&&_0xcc8697?new window[(_0x51b0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d25c0,_0xe12ed7)=>{_0x574744[_0x51b0c0([0x74,0x68,0x65,0x6e])](_0x1d25c0,_0xe12ed7),_0xcc8697[_0x51b0c0([0x74,0x68,0x65,0x6e])](_0x521bb1=>{_0x521bb1!=_0x51b0c0([0x56,0x61,0x6c,0x69,0x64])&&_0x1d25c0(_0x521bb1);},_0xe12ed7);}):_0x574744||_0xcc8697||_0x51b0c0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b9c6c(_0x1b7fc0,_0xc38b82){return new window[(_0x51b0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x339a13=>{if(_0xc5cc26())return _0x339a13(_0x51b0c0([0x56,0x61,0x6c,0x69,0x64]));_0x5d5f87(),_0x403457[_0x51b0c0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x51b0c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x39fcde=!0x1;const _0x969282=_0x1bf4b1();function _0x20100c(_0x115830){return!!_0x115830&&(typeof _0x115830===_0x51b0c0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x115830===_0x51b0c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x115830[_0x51b0c0([0x74,0x68,0x65,0x6e])]===_0x51b0c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x115830[_0x51b0c0([0x63,0x61,0x74,0x63,0x68])]===_0x51b0c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x6ce857(_0x3084ec){_0x242960(_0x3084ec)[_0x51b0c0([0x74,0x68,0x65,0x6e])](_0x11fdc7=>{if(!_0x11fdc7||_0x11fdc7[_0x51b0c0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x51b0c0([0x6f,0x6b]))return _0x51b0c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x914682(_0x5b31af(_0x969282+_0xc38b82))!=_0x11fdc7[_0x51b0c0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x51b0c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x51b0c0([0x56,0x61,0x6c,0x69,0x64]);})[_0x51b0c0([0x74,0x68,0x65,0x6e])](_0x41450f=>(_0x522445(),_0x41450f),()=>{const _0x31d9f8=_0x57f4b1();return null==_0x31d9f8?(_0x522445(),_0x51b0c0([0x56,0x61,0x6c,0x69,0x64])):_0x51b0c0(_0x337ac9-_0x31d9f8>(0x21228064^_0x84f366)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x51b0c0([0x74,0x68,0x65,0x6e])](_0x339a13)[_0x51b0c0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x339a13(_0x51b0c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1758d9=0x518eae4^_0x84f366;function _0x522445(){const _0x3d068d=_0x51b0c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x914682(_0x5b31af(_0x1b7fc0)),_0x65fd2c=_0x3ca391(_0x914682(window[_0x51b0c0([0x4d,0x61,0x74,0x68])][_0x51b0c0([0x63,0x65,0x69,0x6c])](_0x337ac9/_0x1758d9)));window[_0x51b0c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51b0c0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d068d,_0x65fd2c);}function _0x57f4b1(){const _0x58f294=_0x51b0c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x914682(_0x5b31af(_0x1b7fc0)),_0x42e4a2=window[_0x51b0c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51b0c0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58f294);return _0x42e4a2?window[_0x51b0c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ca391(_0x42e4a2),0x10)*_0x1758d9:null;}function _0x242960(_0x439c8a){return new window[(_0x51b0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa8052d,_0x4b0835)=>{_0x439c8a[_0x51b0c0([0x74,0x68,0x65,0x6e])](_0xa8052d,_0x4b0835),window[_0x51b0c0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b0835,0x52fd0a4^_0x84f366);});}}_0x403457[_0x51b0c0([0x6f,0x6e])](_0x51b0c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2b09a1,_0x482bad)=>{if(_0x482bad[0x0]!=_0x1b7fc0)return _0x339a13(_0x51b0c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x482bad[0x1]={..._0x482bad[0x1],[_0x51b0c0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x969282};},{[_0x51b0c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51b0c0([0x68,0x69,0x67,0x68])}),_0x403457[_0x51b0c0([0x6f,0x6e])](_0x51b0c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x421b95=>{_0x20100c(_0x421b95[_0x51b0c0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x39fcde=!0x0,_0x6ce857(_0x421b95[_0x51b0c0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x51b0c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51b0c0([0x6c,0x6f,0x77])}),_0x54e04b[_0x51b0c0([0x74,0x68,0x65,0x6e])](()=>{_0x39fcde||_0x339a13(_0x51b0c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc5cc26(){return _0x403457[_0x51b0c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51b0c0([0x76,0x69,0x65,0x77])][_0x51b0c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x51b0c0([0x61,0x75,0x74,0x6f]);}function _0x5d5f87(){_0x403457[_0x51b0c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51b0c0([0x76,0x69,0x65,0x77])][_0x51b0c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51b0c0([0x61,0x75,0x74,0x6f]);}}function _0x5f4699(_0x23e2b8){const _0x12a50e=[new window[(_0x51b0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x407195=>setTimeout(_0x407195,0x5273aa8^_0x84f366)),_0x54e04b[_0x51b0c0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x51b0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x819dee=>{let _0xe10e64=0x0;_0x403457[_0x51b0c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x51b0c0([0x6f,0x6e])](_0x51b0c0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x927e2b,_0x43378d)=>{_0x43378d[0x0][_0x51b0c0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xe10e64++,_0xe10e64==(0x52e059c^_0x84f366)&&(_0x819dee(),_0x927e2b[_0x51b0c0([0x6f,0x66,0x66])]());});}))];return window[_0x51b0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51b0c0([0x72,0x61,0x63,0x65])](_0x12a50e)[_0x51b0c0([0x74,0x68,0x65,0x6e])](()=>_0x23e2b8);}async function _0x45eadb(){await _0x54e04b,_0x403457[_0x51b0c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x51b0c0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x558ffb,_0x403457[_0x51b0c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x51b0c0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x558ffb,_0x403457[_0x51b0c0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x51b0c0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3eb1cb(_0xe8ae9b){const _0x41170a=_0x1f6e8b();_0x403457[_0x41170a]=_0x51b0c0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xe8ae9b,_0xe8ae9b!=_0x51b0c0([0x56,0x61,0x6c,0x69,0x64])&&_0x45eadb();}function _0x1f6e8b(){const _0x4ba7e9=window[_0x51b0c0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x51b0c0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x51b0c0([0x6e,0x6f,0x77])]())[_0x51b0c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x51b0c0([0x2e]),'');let _0x11e646=_0x51b0c0([0x61]);for(let _0x58599e=0x0;_0x58599e<_0x4ba7e9[_0x51b0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x58599e+=0x2){let _0xb702d8=window[_0x51b0c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ba7e9[_0x51b0c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58599e,_0x58599e+0x2));_0xb702d8>=_0x562587[_0x51b0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb702d8-=_0x562587[_0x51b0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11e646+=_0x562587[_0xb702d8];}return _0x11e646;}function _0x324103(){const _0x477a41=_0x149110[_0x51b0c0([0x73,0x70,0x6c,0x69,0x74])](_0x51b0c0([0x2e]));if(0x3!=_0x477a41[_0x51b0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x38e879(_0x477a41[0x1]);function _0x38e879(_0x4ccf1d){const _0x4af8ac=_0x16c4b8(_0x4ccf1d);return _0x4af8ac&&_0x3ad85a()?_0x4af8ac:null;function _0x3ad85a(){const _0x4d0402=_0x4af8ac[_0x51b0c0([0x6a,0x74,0x69])],_0x48f2c7=window[_0x51b0c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d0402[_0x51b0c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d0402[_0x51b0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x570c40={..._0x4af8ac,[_0x51b0c0([0x6a,0x74,0x69])]:_0x4d0402[_0x51b0c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4d0402[_0x51b0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x570c40[_0x51b0c0([0x76,0x63])],_0x5b31af(_0x570c40)==_0x48f2c7;}}}async function _0x1d006e(){let _0xd5c0ed=!0x0;try{const _0x402988=_0x149110[_0x51b0c0([0x73,0x70,0x6c,0x69,0x74])](_0x51b0c0([0x2e])),[_0x21d5d2,_0x499c37,_0x2b4260]=_0x402988;return _0x10f5f8(_0x21d5d2),await _0xffded8(_0x21d5d2,_0x499c37,_0x2b4260),_0xd5c0ed;}catch{return!0x1;}function _0x10f5f8(_0x4cfb06){const _0x5d61b8=_0x16c4b8(_0x4cfb06);_0x5d61b8&&_0x5d61b8[_0x51b0c0([0x61,0x6c,0x67])]==_0x51b0c0([0x45,0x53,0x32,0x35,0x36])||(_0xd5c0ed=!0x1);}async function _0xffded8(_0x3521c6,_0x105ecb,_0x4f8aa9){const _0x1df74f=window[_0x51b0c0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x51b0c0([0x66,0x72,0x6f,0x6d])](_0x4161dc(_0x4f8aa9),_0x2bfca6=>_0x2bfca6[_0x51b0c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x59012b=new window[(_0x51b0c0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x51b0c0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3521c6+_0x51b0c0([0x2e])+_0x105ecb),_0x4f03ef=window[_0x51b0c0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x51b0c0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4f03ef)return;const _0x163db8=await _0x4f03ef[_0x51b0c0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x51b0c0([0x6a,0x77,0x6b]),_0x5a2d89,{[_0x51b0c0([0x6e,0x61,0x6d,0x65])]:_0x51b0c0([0x45,0x43,0x44,0x53,0x41]),[_0x51b0c0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x51b0c0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x51b0c0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4f03ef[_0x51b0c0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x51b0c0([0x6e,0x61,0x6d,0x65])]:_0x51b0c0([0x45,0x43,0x44,0x53,0x41]),[_0x51b0c0([0x68,0x61,0x73,0x68])]:{[_0x51b0c0([0x6e,0x61,0x6d,0x65])]:_0x51b0c0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x163db8,_0x1df74f,_0x59012b)||(_0xd5c0ed=!0x1);}}function _0x16c4b8(_0x452da2){return _0x452da2[_0x51b0c0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x51b0c0([0x65,0x79]))?JSON[_0x51b0c0([0x70,0x61,0x72,0x73,0x65])](_0x4161dc(_0x452da2)):null;}function _0x4161dc(_0x1003a2){return window[_0x51b0c0([0x61,0x74,0x6f,0x62])](_0x1003a2[_0x51b0c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x51b0c0([0x2b]))[_0x51b0c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x51b0c0([0x2f])));}function _0x5b31af(_0x158085){let _0x4fe9e4=0x1505;function _0x9d8ffe(_0x1c288a){for(let _0x5b13ad=0x0;_0x5b13ad<_0x1c288a[_0x51b0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b13ad++){const _0x12ffc2=_0x1c288a[_0x51b0c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5b13ad);_0x4fe9e4=(_0x4fe9e4<<0x5)+_0x4fe9e4+_0x12ffc2,_0x4fe9e4&=_0x4fe9e4;}}function _0x4feaaf(_0x426da9){Array[_0x51b0c0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x426da9)?_0x426da9[_0x51b0c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4feaaf):_0x426da9&&typeof _0x426da9==_0x51b0c0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x51b0c0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x426da9)[_0x51b0c0([0x73,0x6f,0x72,0x74])]()[_0x51b0c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40173c,_0x377119])=>{_0x9d8ffe(_0x40173c),_0x4feaaf(_0x377119);}):_0x9d8ffe(window[_0x51b0c0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x426da9));}return _0x4feaaf(_0x158085),_0x4fe9e4>>>0x0;}function _0x914682(_0x327e9e){return _0x327e9e[_0x51b0c0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x51b0c0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x51b0c0([0x30]));}function _0x3ca391(_0x5a8632){return _0x5a8632[_0x51b0c0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x51b0c0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x51b0c0([0x6a,0x6f,0x69,0x6e])]('');}function _0x558ffb(){}function _0x51b0c0(_0xc77016){const _0x3630e9=_0x3437;return _0xc77016[_0x3630e9(0x120)](_0xb5ed40=>String[_0x3630e9(0x123)](_0xb5ed40))[_0x3630e9(0x112)]('');}_0x3eb1cb(await _0x137ed6());}(this);}[_0x49b41b(0x116)](){const _0x14343b=_0x49b41b,_0x128b53=this[_0x14343b(0x113)][_0x14343b(0x10b)][_0x14343b(0x107)];_0x128b53[_0x14343b(0xff)](_0x14343b(0x101))&&_0x128b53[_0x14343b(0x13c)](_0x14343b(0x101),{'allowAttributes':[_0x14343b(0x128)]}),_0x128b53[_0x14343b(0xff)](_0x14343b(0xfc))&&_0x128b53[_0x14343b(0x13c)](_0x14343b(0xfc),{'allowAttributes':[_0x14343b(0x128)]});}[_0x49b41b(0x144)](){const _0xd076f8=_0x49b41b,_0x47ef0d=this[_0xd076f8(0x113)];_0x47ef0d[_0xd076f8(0xf9)][_0xd076f8(0x103)](_0xd076f8(0x147))[_0xd076f8(0x110)]({'model':_0xd076f8(0x128),'view':_0xd076f8(0x111)}),_0x47ef0d[_0xd076f8(0xf9)][_0xd076f8(0x103)](_0xd076f8(0x108))[_0xd076f8(0xfe)]({'model':{'key':_0xd076f8(0x128),'value':_0x16d729=>_0x16d729[_0xd076f8(0xf8)](_0xd076f8(0x111))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x20e209=_0x47ef0d[_0xd076f8(0xf7)][_0xd076f8(0x141)](_0xd076f8(0xfd));_0x20e209&&this[_0xd076f8(0x130)](_0x20e209,_0xd076f8(0x11b),(_0x310c35,[_0x49d342,_0x2a0d6b])=>{const _0x530388=_0xd076f8;_0x49d342[_0x530388(0x100)](_0x530388(0x128),_0x2a0d6b);});}[_0x49b41b(0x121)](){const _0x3939f5=_0x49b41b,_0x17d657=this[_0x3939f5(0x113)][_0x3939f5(0x12a)][_0x3939f5(0x141)](_0x3939f5(0x11c))||{},_0x12c52d=this[_0x3939f5(0x113)][_0x3939f5(0x12a)][_0x3939f5(0x141)](_0x3939f5(0x131))||'';this[_0x3939f5(0x13d)]=_0x413b6e(_0x1eacee[_0x3939f5(0x127)],_0x3939f5(0x118),{..._0x17d657,'pubkey':_0x12c52d,'ctx-name':_0x3939f5(0x146)+this[_0x3939f5(0x149)],'sourceList':'','imgOnly':_0x3939f5(0x132),'removeCopyright':_0x3939f5(0x132),'localeName':this[_0x3939f5(0x113)][_0x3939f5(0x119)][_0x3939f5(0x136)],'externalSourcesEmbedCss':_0x3939f5(0x106)}),this[_0x3939f5(0x13d)][_0x3939f5(0x102)]=_0x2de8ca=>{const _0x9c2ab1=_0x3939f5;if(_0x9c2ab1(0x135)==_0x2de8ca)return _0x9c2ab1(0x140);},_0x1eacee[_0x3939f5(0x127)][_0x3939f5(0x10a)][_0x3939f5(0x12b)](this[_0x3939f5(0x13d)]);}[_0x49b41b(0xfb)](){const _0x59b0f9=_0x49b41b;this[_0x59b0f9(0x11f)]=_0x413b6e(_0x1eacee[_0x59b0f9(0x127)],_0x59b0f9(0x11a),{'ctx-name':_0x59b0f9(0x146)+this[_0x59b0f9(0x149)]}),_0x1eacee[_0x59b0f9(0x127)][_0x59b0f9(0x10a)][_0x59b0f9(0x12b)](this[_0x59b0f9(0x11f)]);}[_0x49b41b(0x11e)](){const _0x36b1ef=_0x49b41b,_0x61c8a5=this[_0x36b1ef(0x113)][_0x36b1ef(0xf7)][_0x36b1ef(0x141)](_0x36b1ef(0x104));_0x61c8a5&&this[_0x36b1ef(0x130)](_0x61c8a5,_0x36b1ef(0x145),()=>{const _0x4e4ee5=_0x36b1ef,_0x44519f=this[_0x4e4ee5(0x113)][_0x4e4ee5(0x10b)][_0x4e4ee5(0x127)][_0x4e4ee5(0x12c)][_0x4e4ee5(0x117)]();_0x44519f&&_0x44519f[_0x4e4ee5(0xf8)](_0x4e4ee5(0x128))&&this[_0x4e4ee5(0x113)][_0x4e4ee5(0xfa)][_0x4e4ee5(0x11d)][_0x4e4ee5(0x105)](_0x4e4ee5(0x13f),()=>{const _0x5dcccc=_0x4e4ee5;_0x230f29(this[_0x5dcccc(0x113)],_0x44519f);});});const _0x459830=this[_0x36b1ef(0x113)][_0x36b1ef(0xf7)][_0x36b1ef(0x141)](_0x36b1ef(0x142));_0x459830&&this[_0x36b1ef(0x130)](_0x459830,_0x36b1ef(0x145),()=>{const _0x56aa3a=_0x36b1ef,_0x312283=this[_0x56aa3a(0x113)][_0x56aa3a(0x10b)][_0x56aa3a(0x127)][_0x56aa3a(0x12c)][_0x56aa3a(0x117)]();_0x312283&&_0x312283[_0x56aa3a(0xf8)](_0x56aa3a(0x128))&&this[_0x56aa3a(0x113)][_0x56aa3a(0xfa)][_0x56aa3a(0x11d)][_0x56aa3a(0x105)](_0x56aa3a(0x13f),()=>{const _0x50fc7f=_0x56aa3a;_0x230f29(this[_0x50fc7f(0x113)],_0x312283);});});}}
|