@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250622.0 → 0.0.0-nightly-20250623.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/uploadcareediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x149c7c,Command as _0x384a2f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x35f83c,IconGooglePhotos as _0x41ef89,IconGoogleDrive as _0x517b97,IconFacebook as _0x2df73f,IconDropbox as _0x2e83ca,IconUploadcareLink as _0x50abb6,IconUploadcareImageUpload as _0x3e5d81,IconError as _0x2d885f,IconUploadcareImageEdit as _0x12dde5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x527cc1,MenuBarMenuListItemButtonView as _0x57d6a3,View as _0x5e2a84,FocusCycler as _0x380e1c,Dialog as _0x3fbde9,DialogViewPosition as _0x1ca173,SpinnerView as _0x5cfab5,IconView as _0x1856ef,Notification as _0x1d95e7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4ac6f8,DomEmitterMixin as _0x54d6b7,global as _0x26c421,getAncestors as _0x2a3689,ObservableMixin as _0x3a1835,uid as _0xee435c,createElement as _0x5bad73}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5c273f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xd68278,info as _0x5b7d8c}from'@uploadcare/upload-client';import*as _0x2148cc from'@uploadcare/file-uploader';var i=function(_0x3ff8b9){return _0x3ff8b9['Local']='local',_0x3ff8b9['URL']='url',_0x3ff8b9['Dropbox']='dropbox',_0x3ff8b9['GDrive']='gdrive',_0x3ff8b9['Facebook']='facebook',_0x3ff8b9['GPhotos']='gphotos',_0x3ff8b9['OneDrive']='onedrive',_0x3ff8b9;}({});function _(_0x13cdd6,_0x1c140c,_0x120a21){const t=_0x13cdd6['t'],_0x2a16f7=_0x13cdd6['t'];switch(_0x1c140c){case i['Local']:return{'text':_0x2a16f7('Insert'===_0x120a21?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2a16f7('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x120a21?_0x2a16f7('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2a16f7('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x120a21?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x120a21?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x120a21?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x120a21?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x120a21?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1c140c;}}class e extends _0x149c7c{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x540444=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5e9c12;for(const _0x3997d8 in _0x540444){const _0x9ff3e6=_0x3997d8,_0x463172=_0x540444[_0x9ff3e6];if('uploadcareLicenseKeyValid'==_0x463172||'uploadcareLicenseKeyInvalid'==_0x463172||'uploadcareLicenseKeyExpired'==_0x463172||'uploadcareLicenseKeyDomainLimit'==_0x463172||'uploadcareLicenseKeyNotAllowed'==_0x463172||'uploadcareLicenseKeyEvaluationLimit'==_0x463172||'uploadcareLicenseKeyTrialLimit'==_0x463172||'uploadcareLicenseKeyUsageLimit'==_0x463172){delete _0x540444[_0x9ff3e6],_0x5e9c12=_0x463172,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5e9c12&&_0x540444['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5e9c12&&_0x540444['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5e9c12&&_0x540444['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5e9c12&&_0x540444['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5e9c12&&_0x540444['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5e9c12&&_0x540444['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5e9c12&&_0x540444['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xe394bb}=this,_0x50eed2=_0xe394bb['commands']['get']('uploadcare');if(!_0x50eed2)return;const _0x3a448e=this['_normalizeConfigSourceList'](_0xe394bb['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x285570,_0xa81fc)=>{const _0xff6a41=this['_getIntegrationKey'](_0xa81fc['type']);return _0x285570[_0xff6a41]||(_0x285570[_0xff6a41]=[]),_0x285570[_0xff6a41]['push'](_0xa81fc),_0x285570;},{});_0xe394bb['plugins']['has']('ImageInsertUI')&&_0xe394bb['commands']['get']('uploadcare')&&Object['entries'](_0x3a448e)['forEach'](([_0x5e3e09,_0x2f52a7])=>{_0xe394bb['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5e3e09,'observable':()=>_0x50eed2,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2f52a7),'formViewCreator':()=>this['_createDropdownButtons'](_0x2f52a7),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2f52a7),'override':'assetManager'!==_0x5e3e09});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x45041f){const {locale:_0x76190c}=this['editor'];return _0x45041f['map'](_0x326c0e=>{const _0x4eb274=_(_0x76190c,_0x326c0e,'Insert');switch(_0x326c0e){case i['Local']:return{'icon':_0x3e5d81,'type':i['Local'],..._0x4eb274};case i['URL']:return{'icon':_0x50abb6,'type':i['URL'],..._0x4eb274};case i['Dropbox']:return{'icon':_0x2e83ca,'type':i['Dropbox'],..._0x4eb274};case i['Facebook']:return{'icon':_0x2df73f,'type':i['Facebook'],..._0x4eb274};case i['GDrive']:return{'icon':_0x517b97,'type':i['GDrive'],..._0x4eb274};case i['GPhotos']:return{'icon':_0x41ef89,'type':i['GPhotos'],..._0x4eb274};case i['OneDrive']:return{'icon':_0x35f83c,'type':i['OneDrive'],..._0x4eb274};}});}['_getIntegrationKey'](_0x492902){switch(_0x492902){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2fef25,_0x2cc371){const _0x598a0e=this['editor'],_0x5953cc=new _0x2fef25(_0x598a0e['locale']),_0x506a04=_0x598a0e['commands']['get']('uploadcare');return _0x5953cc['bind']('isEnabled')['to'](_0x506a04),_0x5953cc['on']('execute',()=>{_0x506a04['execute'](_0x2cc371);}),_0x5953cc;}['_createToolbarButton'](_0x3d8ff9){const {locale:_0x24e5ae}=this['editor'],_0x2e413c=this['editor']['plugins']['get']('ImageInsertUI'),_0x5c329f=_0x3d8ff9[0x0],_0x9a1072=this['_createButton'](_0x527cc1,_0x5c329f['type']);return _0x9a1072['icon']=_0x5c329f['icon'],_0x9a1072['bind']('label')['to'](_0x2e413c,'isImageSelected',_0x4c0baa=>_(_0x24e5ae,_0x5c329f['type'],_0x4c0baa?'Replace':'Insert')['text']),_0x9a1072['tooltip']=!0x0,_0x9a1072;}['_createDropdownButtons'](_0x4c30e0){const {locale:_0xe37876}=this['editor'],_0x53e5f4=this['editor']['plugins']['get']('ImageInsertUI');return _0x4c30e0['map'](_0x2daed5=>{const _0x5e89ca=this['_createButton'](_0x527cc1,_0x2daed5['type']);return _0x5e89ca['withText']=!0x0,_0x5e89ca['icon']=_0x2daed5['icon'],_0x5e89ca['bind']('label')['to'](_0x53e5f4,'isImageSelected',_0x56ef20=>_(_0xe37876,_0x2daed5['type'],_0x56ef20?'Replace':'Insert')['text']),_0x5e89ca;});}['_createMenuBarButtons'](_0x131b26){return _0x131b26['map'](_0x265924=>{const _0x1b3692=this['_createButton'](_0x57d6a3,_0x265924['type']);return _0x1b3692['icon']=_0x265924['icon'],_0x1b3692['label']=_0x265924['shortText'],_0x1b3692;});}}class F extends _0x5e2a84{['focusTracker'];['focusCycler'];constructor(_0x42f713){super(_0x42f713),this['focusTracker']=new _0x4ac6f8(),this['focusCycler']=new _0x380e1c({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x26d947,_0x5bb5fd){super(_0x26d947),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader-'+_0x5bb5fd}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x1db0cd,_0x5d2d23){const _0xbc2a91=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4a1474=>_0x4a1474<=_0x5d2d23)['map'](_0x2ff91d=>_0x1db0cd['replace'](/\/$/,'')+'/-/resize/'+_0x2ff91d+'x/\x20'+_0x2ff91d+'w');return{'imageFallbackUrl':_0x1db0cd,'imageSources':[{'srcset':_0xbc2a91['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5d2d23+'px)\x20100vw,\x20'+_0x5d2d23+'px','type':'image/webp'}]};}function C(_0x1e78f7,_0x5d21ff,_0x5ee395){const _0x46bab8=_0x1e78f7['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x46bab8?parseInt(_0x46bab8[0x1],0xa):_0x5d21ff,'height':_0x46bab8?parseInt(_0x46bab8[0x2],0xa):_0x5ee395};}function p(_0x18e536,_0x5807f4){const _0x11bbf3=new(_0x54d6b7())(),_0x1b5964=_0x18e536['plugins']['get']('ImageUtils'),_0x55e4b2=_0x18e536['editing']['mapper']['toViewElement'](_0x5807f4),_0x955b20=_0x1b5964['findViewImgElement'](_0x55e4b2),_0x4ac7d5=_0x18e536['editing']['view']['domConverter']['viewToDom'](_0x955b20),_0x3b2787=_0x5807f4['getAttribute']('width'),_0x53db82=_0x5807f4['getAttribute']('height'),_0x5b3a67='image-processing';_0x18e536['editing']['view']['change'](_0x26f5db=>{_0x26f5db['addClass'](_0x5b3a67,_0x55e4b2),_0x26f5db['setStyle']('aspect-ratio',_0x3b2787+'/'+_0x53db82,_0x955b20);}),_0x11bbf3['listenTo'](_0x4ac7d5,'load',()=>{_0x11bbf3['stopListening'](_0x4ac7d5,'load'),_0x18e536['editing']['view']['change'](_0x553a56=>{_0x553a56['removeClass'](_0x5b3a67,_0x55e4b2),_0x553a56['removeStyle']('aspect-ratio',_0x955b20);});});}function G(_0x5565a2){if(Array['isArray'](_0x5565a2)){const _0x59038b=_0x5565a2['map'](G);return _0x1df370=>_0x59038b['some'](_0x166774=>_0x166774(_0x1df370));}if('origin'==_0x5565a2){const _0x24dea6=_0x26c421['window']['location']['origin'];return _0xca503c=>new URL(_0xca503c,_0x26c421['document']['baseURI'])['origin']==_0x24dea6;}return'function'==typeof _0x5565a2?_0x5565a2:_0x5565a2 instanceof RegExp?_0x23aa6c=>!(!_0x23aa6c['match'](_0x5565a2)&&!_0x23aa6c['replace'](/^https?:\/\//,'')['match'](_0x5565a2)):()=>!0x1;}function S(_0x8ad8c1,_0x59637c){return _0x2a3689(_0x8ad8c1['target'])['includes'](_0x59637c);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x3a1835(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2f3250,_0x41c8e1,_0x3121d9){super(),this['_editor']=_0x2f3250,this['_editing']=_0x41c8e1,this['_dialog']=_0x2f3250['plugins']['get'](_0x3fbde9),this['_api']=_0x41c8e1['ctxElement']['getAPI'](),this['_type']=_0x3121d9,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x3437c1,model:_0x586047}=this['_editor'],_0x14309a=_0x586047['document']['selection']['getSelectedElement'](),_0x38206a=_0x14309a&&(_0x14309a['is']('element','imageBlock')||_0x14309a['is']('element','imageInline'));this['_formView']=new x(_0x3437c1,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3e5d81,'title':_(_0x3437c1,this['_type'],_0x38206a?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1ca173['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x469a81=>!S(_0x469a81,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1a07a9}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4cc9e7=>{const _0xd7a724=_0x1a07a9['length'];for(const _0x42779c of _0x1a07a9){const _0x81b964=_0x42779c===_0x1a07a9[_0xd7a724-0x1],{cdnUrl:_0x171743,fileInfo:_0x5cac63}=_0x42779c;if(!_0x171743||!_0x5cac63)continue;const {width:_0x534410,height:_0x119f3c}=_0x5cac63['imageInfo'],_0x1207fa=C(_0x171743,_0x534410,_0x119f3c),_0x172638=k(_0x171743,_0x1207fa['width']),_0x364ece={'id':_0x5cac63['uuid'],'type':'image','attributes':{'imageDimension':_0x1207fa,..._0x172638}};this['_insertAsset'](_0x364ece,_0x81b964,_0x4cc9e7);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x569937=>{'idle'===_0x569937['detail']['status']&&!_0x569937['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5ada6a,_0x482847,_0x472156){const _0x4764be=this['_editor']['model']['document']['selection'],_0x28f4b5=_0x4764be['getSelectedElement'](),_0xc21471=!(!_0x28f4b5||!_0x28f4b5['is']('element','imageInline'));_0x472156['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5ada6a,_0xc21471),_0x482847||_0x472156['setSelection'](_0x4764be['getLastPosition']());}['_insertImage'](_0x531fd8,_0x39899d){const _0xc2ea49=this['_editor'],{imageDimension:_0xa53d2a,imageFallbackUrl:_0x25d388,imageSources:_0x76e0d8}=_0x531fd8['attributes'];_0xc2ea49['execute']('insertImage',{'imageType':_0x39899d?'imageInline':null,'source':{'uploadcareImageId':_0x531fd8['id'],'src':_0x25d388,'sources':_0x76e0d8,..._0xa53d2a}});}}class w extends _0x384a2f{['_editing'];['_controller']=null;static get['requires'](){return[_0x3fbde9,o];}constructor(_0x22b94c){super(_0x22b94c),this['_editing']=_0x22b94c['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1da263){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1da263);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x31ad97,publicKey:_0x39db3b,signal:_0x26d65a,onProgress:_0x44c0a7}){return _0xd68278(_0x31ad97,{'publicKey':_0x39db3b,'store':'auto','signal':_0x26d65a,'onProgress':_0x44c0a7});}static['getInfo'](_0x5399db,_0x5c0120){return _0x5b7d8c(_0x5399db,_0x5c0120);}}class f extends _0x149c7c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5c273f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2165e1=this['editor'];if(!!!_0x2165e1['config']['get']('uploadcare'))return;_0x2165e1['plugins']['get'](_0x5c273f)['createUploadAdapter']=_0x2a0b12=>new A(_0x2a0b12,_0x2165e1),_0x2165e1['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1b892b,{imageElement:_0x3f48f3,data:_0xcff99})=>{_0x2165e1['model']['change'](_0x500a39=>{_0x500a39['setAttribute']('uploadcareImageId',_0xcff99['uploadcareImageId'],_0x3f48f3);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x438703,_0x20f9a0){this['loader']=_0x438703,this['editor']=_0x20f9a0,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x38bcd4=this['editor']['config']['get']('uploadcare.pubkey'),_0x2dda70=await this['loader']['file'];return j['upload']({'file':_0x2dda70,'publicKey':_0x38bcd4,'signal':this['controller']['signal'],'onProgress':_0x39df68=>{_0x39df68&&_0x39df68['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x39df68['value']);}})['then'](async _0x3d034a=>{const {imageFallbackUrl:_0x1d801f,imageSources:_0x2e6b99}=k(_0x3d034a['cdnUrl'],_0x3d034a['imageInfo']['width']);return{'uploadcareImageId':_0x3d034a['uuid'],'default':_0x1d801f,'sources':_0x2e6b99};})['catch'](()=>{const _0x3f3338=t('Cannot\x20upload\x20file:')+('\x20'+_0x2dda70['name']+'.');return Promise['reject'](_0x3f3338);});}['abort'](){this['controller']['abort']();}}class o extends _0x149c7c{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x3fbde9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5d6201){super(_0x5d6201),this['ucContextId']=_0xee435c();}['init'](){const _0x5a1426=this['editor'];_0x5a1426['commands']['add']('uploadcare',new w(_0x5a1426));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x578cd1=_0x26c421['document']['querySelector']('input[uploadcare-file-input]');_0x578cd1&&_0x578cd1['remove']();}),async function(_0x5c9d1c){const _0x5dc097=_0x556499([0x63,0x57,0x30,0x42,0x4a,0x6d,0x4c,0x74,0x4d,0x41,0x49,0x50,0x71,0x64,0x44,0x6c,0x65,0x51,0x66,0x79,0x6f,0x4f,0x56,0x68,0x31,0x72,0x35,0x48,0x34,0x67,0x37,0x5a,0x53,0x55,0x6a,0x54,0x47,0x62,0x76,0x59,0x61,0x4e,0x39,0x77,0x36,0x38,0x58,0x70,0x6b,0x32,0x45,0x6e,0x46,0x75,0x4b,0x73,0x43,0x33,0x52,0x78,0x7a,0x69]),_0x660594=0x48619f64,_0x26b125=0x4866f41c^_0x660594,_0x1acf0a=window[_0x556499([0x44,0x61,0x74,0x65])][_0x556499([0x6e,0x6f,0x77])](),_0x3b5528=_0x5c9d1c[_0x556499([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a139a=new window[(_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43948c=>{_0x3b5528[_0x556499([0x6f,0x6e,0x63,0x65])](_0x556499([0x72,0x65,0x61,0x64,0x79]),_0x43948c);}),_0x548cff={[_0x556499([0x6b,0x74,0x79])]:_0x556499([0x45,0x43]),[_0x556499([0x75,0x73,0x65])]:_0x556499([0x73,0x69,0x67]),[_0x556499([0x63,0x72,0x76])]:_0x556499([0x50,0x2d,0x32,0x35,0x36]),[_0x556499([0x78])]:_0x556499([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x556499([0x79])]:_0x556499([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x556499([0x61,0x6c,0x67])]:_0x556499([0x45,0x53,0x32,0x35,0x36])},_0x1af362=_0x3b5528[_0x556499([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x556499([0x67,0x65,0x74])](_0x556499([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x170a75(){let _0xf1be28,_0x3e1b18=null,_0x20365b=null;try{if(_0x1af362==_0x556499([0x47,0x50,0x4c]))return _0x556499([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf1be28=_0x2c1f3b(),!_0xf1be28)return _0x556499([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf1be28[_0x556499([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x20365b=_0x381c98(_0xf1be28[_0x556499([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf1be28[_0x556499([0x6a,0x74,0x69])])),await _0x4b2be9()?_0x55f0ba()?_0x5c4294()?_0x556499([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x55edc2()?(_0xf1be28[_0x556499([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x556499([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e1b18=_0x46d659(_0x556499([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xf1be28[_0x556499([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x556499([0x74,0x72,0x69,0x61,0x6c])&&(_0x3e1b18=_0x46d659(_0x556499([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5b4ede()):_0x556499([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x556499([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x556499([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x556499([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5c4294(){const _0x5ef035=[_0x556499([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x556499([0x74,0x72,0x69,0x61,0x6c])][_0x556499([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf1be28[_0x556499([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1acf0a/0x3e8:0xe10*_0x26b125;return _0xf1be28[_0x556499([0x65,0x78,0x70])]<_0x5ef035;}function _0x55f0ba(){const _0x3ad095=_0xf1be28[_0x556499([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3ad095&&(!!_0x3ad095[_0x556499([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x556499([0x2a]))||!!_0x3ad095[_0x556499([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x556499([0x55,0x50,0x4c,0x43])));}function _0x55edc2(){const _0x7a342f=_0xf1be28[_0x556499([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x7a342f||0x0==_0x7a342f[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x77118e}=new URL(window[_0x556499([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x7a342f[_0x556499([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x77118e))return!0x0;const _0x51d5fc=_0x77118e[_0x556499([0x73,0x70,0x6c,0x69,0x74])](_0x556499([0x2e]));return _0x7a342f[_0x556499([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1dc327=>_0x1dc327[_0x556499([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x556499([0x2a])))[_0x556499([0x6d,0x61,0x70])](_0x377e8b=>_0x377e8b[_0x556499([0x73,0x70,0x6c,0x69,0x74])](_0x556499([0x2e])))[_0x556499([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d10c2=>_0x5d10c2[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x51d5fc[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x556499([0x6d,0x61,0x70])](_0x1cdbd4=>Array(_0x51d5fc[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1cdbd4[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x556499([0x66,0x69,0x6c,0x6c])](_0x1cdbd4[0x0]===_0x556499([0x2a])?_0x556499([0x2a]):'')[_0x556499([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1cdbd4))[_0x556499([0x73,0x6f,0x6d,0x65])](_0x5cf4a6=>_0x51d5fc[_0x556499([0x65,0x76,0x65,0x72,0x79])]((_0x3ad583,_0x4472a4)=>_0x5cf4a6[_0x4472a4]===_0x3ad583||_0x5cf4a6[_0x4472a4]===_0x556499([0x2a])));}function _0x5b4ede(){return _0x3e1b18&&_0x20365b?new window[(_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2490a8,_0x8c5513)=>{_0x3e1b18[_0x556499([0x74,0x68,0x65,0x6e])](_0x2490a8,_0x8c5513),_0x20365b[_0x556499([0x74,0x68,0x65,0x6e])](_0x37e0cb=>{_0x37e0cb!=_0x556499([0x56,0x61,0x6c,0x69,0x64])&&_0x2490a8(_0x37e0cb);},_0x8c5513);}):_0x3e1b18||_0x20365b||_0x556499([0x56,0x61,0x6c,0x69,0x64]);}}function _0x381c98(_0xb4587b,_0x251a46){return new window[(_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d29d1=>{if(_0x3126db())return _0x5d29d1(_0x556499([0x56,0x61,0x6c,0x69,0x64]));_0x227179(),_0x3b5528[_0x556499([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x556499([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17008b=!0x1;const _0x2d2593=_0xee435c();function _0x4caf12(_0x486ff8){return!!_0x486ff8&&(typeof _0x486ff8===_0x556499([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x486ff8===_0x556499([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x486ff8[_0x556499([0x74,0x68,0x65,0x6e])]===_0x556499([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x486ff8[_0x556499([0x63,0x61,0x74,0x63,0x68])]===_0x556499([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x17c45e(_0x1d0c19){_0x46247c(_0x1d0c19)[_0x556499([0x74,0x68,0x65,0x6e])](_0x49cd03=>{if(!_0x49cd03||_0x49cd03[_0x556499([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x556499([0x6f,0x6b]))return _0x556499([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xbb9413(_0xb40b65(_0x2d2593+_0x251a46))!=_0x49cd03[_0x556499([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x556499([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x556499([0x56,0x61,0x6c,0x69,0x64]);})[_0x556499([0x74,0x68,0x65,0x6e])](_0x1d9759=>(_0x224b79(),_0x1d9759),()=>{const _0x2141e8=_0x44267a();return null==_0x2141e8?(_0x224b79(),_0x556499([0x56,0x61,0x6c,0x69,0x64])):_0x556499(_0x1acf0a-_0x2141e8>(0x6c6d1b64^_0x660594)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x556499([0x74,0x68,0x65,0x6e])](_0x5d29d1)[_0x556499([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d29d1(_0x556499([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d9efc=0x485771e4^_0x660594;function _0x224b79(){const _0x1202d7=_0x556499([0x6c,0x6c,0x63,0x74,0x2d])+_0xbb9413(_0xb40b65(_0xb4587b)),_0x510b63=_0x51921b(_0xbb9413(window[_0x556499([0x4d,0x61,0x74,0x68])][_0x556499([0x63,0x65,0x69,0x6c])](_0x1acf0a/_0x4d9efc)));window[_0x556499([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x556499([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1202d7,_0x510b63);}function _0x44267a(){const _0x5e54a7=_0x556499([0x6c,0x6c,0x63,0x74,0x2d])+_0xbb9413(_0xb40b65(_0xb4587b)),_0x2609df=window[_0x556499([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x556499([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e54a7);return _0x2609df?window[_0x556499([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51921b(_0x2609df),0x10)*_0x4d9efc:null;}function _0x46247c(_0x53dc16){return new window[(_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x501c7e,_0x22ad21)=>{_0x53dc16[_0x556499([0x74,0x68,0x65,0x6e])](_0x501c7e,_0x22ad21),window[_0x556499([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22ad21,0x48604ba4^_0x660594);});}}_0x3b5528[_0x556499([0x6f,0x6e])](_0x556499([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4793ef,_0x54d6bc)=>{if(_0x54d6bc[0x0]!=_0xb4587b)return _0x5d29d1(_0x556499([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x54d6bc[0x1]={..._0x54d6bc[0x1],[_0x556499([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d2593};},{[_0x556499([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x556499([0x68,0x69,0x67,0x68])}),_0x3b5528[_0x556499([0x6f,0x6e])](_0x556499([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7500da=>{_0x4caf12(_0x7500da[_0x556499([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17008b=!0x0,_0x17c45e(_0x7500da[_0x556499([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x556499([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x556499([0x6c,0x6f,0x77])}),_0x3a139a[_0x556499([0x74,0x68,0x65,0x6e])](()=>{_0x17008b||_0x5d29d1(_0x556499([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3126db(){return _0x3b5528[_0x556499([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x556499([0x76,0x69,0x65,0x77])][_0x556499([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x556499([0x61,0x75,0x74,0x6f]);}function _0x227179(){_0x3b5528[_0x556499([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x556499([0x76,0x69,0x65,0x77])][_0x556499([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x556499([0x61,0x75,0x74,0x6f]);}}function _0x46d659(_0x40fb0e){const _0xa1738c=[new window[(_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a4131=>setTimeout(_0x4a4131,0x4868a1a8^_0x660594)),_0x3a139a[_0x556499([0x74,0x68,0x65,0x6e])](()=>new window[(_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b6f77=>{let _0x1a2318=0x0;_0x3b5528[_0x556499([0x6d,0x6f,0x64,0x65,0x6c])][_0x556499([0x6f,0x6e])](_0x556499([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x52cb33,_0x1b35ed)=>{_0x1b35ed[0x0][_0x556499([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a2318++,_0x1a2318==(0x48619e9c^_0x660594)&&(_0x4b6f77(),_0x52cb33[_0x556499([0x6f,0x66,0x66])]());});}))];return window[_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x556499([0x72,0x61,0x63,0x65])](_0xa1738c)[_0x556499([0x74,0x68,0x65,0x6e])](()=>_0x40fb0e);}async function _0x4fe0be(){await _0x3a139a,_0x3b5528[_0x556499([0x6d,0x6f,0x64,0x65,0x6c])][_0x556499([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x467e19,_0x3b5528[_0x556499([0x6d,0x6f,0x64,0x65,0x6c])][_0x556499([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x467e19,_0x3b5528[_0x556499([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x556499([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x42ec5a(_0x50bf37){const _0x1a01c5=_0x266448();_0x3b5528[_0x1a01c5]=_0x556499([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x50bf37,_0x50bf37!=_0x556499([0x56,0x61,0x6c,0x69,0x64])&&_0x4fe0be();}function _0x266448(){const _0x12d432=window[_0x556499([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x556499([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x556499([0x6e,0x6f,0x77])]())[_0x556499([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x556499([0x2e]),'');let _0x38f51c=_0x556499([0x63]);for(let _0x3b4fe7=0x0;_0x3b4fe7<_0x12d432[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b4fe7+=0x2){let _0x42e24c=window[_0x556499([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12d432[_0x556499([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b4fe7,_0x3b4fe7+0x2));_0x42e24c>=_0x5dc097[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x42e24c-=_0x5dc097[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x38f51c+=_0x5dc097[_0x42e24c];}return _0x38f51c;}function _0x2c1f3b(){const _0x4c8fdc=_0x1af362[_0x556499([0x73,0x70,0x6c,0x69,0x74])](_0x556499([0x2e]));if(0x3!=_0x4c8fdc[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1bca2b(_0x4c8fdc[0x1]);function _0x1bca2b(_0x524ced){const _0xbb421c=_0x988508(_0x524ced);return _0xbb421c&&_0x5340b8()?_0xbb421c:null;function _0x5340b8(){const _0xe4b61a=_0xbb421c[_0x556499([0x6a,0x74,0x69])],_0xb1f7a=window[_0x556499([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe4b61a[_0x556499([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe4b61a[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x31214a={..._0xbb421c,[_0x556499([0x6a,0x74,0x69])]:_0xe4b61a[_0x556499([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xe4b61a[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x31214a[_0x556499([0x76,0x63])],_0xb40b65(_0x31214a)==_0xb1f7a;}}}async function _0x4b2be9(){let _0x43c0c1=!0x0;try{const _0x2c6ccd=_0x1af362[_0x556499([0x73,0x70,0x6c,0x69,0x74])](_0x556499([0x2e])),[_0x131b88,_0x392c77,_0x2332ec]=_0x2c6ccd;return _0xf1de5d(_0x131b88),await _0x1a0534(_0x131b88,_0x392c77,_0x2332ec),_0x43c0c1;}catch{return!0x1;}function _0xf1de5d(_0x3429aa){const _0xb7f0d9=_0x988508(_0x3429aa);_0xb7f0d9&&_0xb7f0d9[_0x556499([0x61,0x6c,0x67])]==_0x556499([0x45,0x53,0x32,0x35,0x36])||(_0x43c0c1=!0x1);}async function _0x1a0534(_0x1a0a75,_0x36d292,_0xa0f758){const _0xf0dda6=window[_0x556499([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x556499([0x66,0x72,0x6f,0x6d])](_0x47a85f(_0xa0f758),_0x19190e=>_0x19190e[_0x556499([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xdac28c=new window[(_0x556499([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x556499([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1a0a75+_0x556499([0x2e])+_0x36d292),_0x295fd6=window[_0x556499([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x556499([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x295fd6)return;const _0x4b5525=await _0x295fd6[_0x556499([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x556499([0x6a,0x77,0x6b]),_0x548cff,{[_0x556499([0x6e,0x61,0x6d,0x65])]:_0x556499([0x45,0x43,0x44,0x53,0x41]),[_0x556499([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x556499([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x556499([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x295fd6[_0x556499([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x556499([0x6e,0x61,0x6d,0x65])]:_0x556499([0x45,0x43,0x44,0x53,0x41]),[_0x556499([0x68,0x61,0x73,0x68])]:{[_0x556499([0x6e,0x61,0x6d,0x65])]:_0x556499([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4b5525,_0xf0dda6,_0xdac28c)||(_0x43c0c1=!0x1);}}function _0x988508(_0x4f063f){return _0x4f063f[_0x556499([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x556499([0x65,0x79]))?JSON[_0x556499([0x70,0x61,0x72,0x73,0x65])](_0x47a85f(_0x4f063f)):null;}function _0x47a85f(_0x577dfd){return window[_0x556499([0x61,0x74,0x6f,0x62])](_0x577dfd[_0x556499([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x556499([0x2b]))[_0x556499([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x556499([0x2f])));}function _0xb40b65(_0x241c2e){let _0x36fb0f=0x1505;function _0x1ef08a(_0x5a84da){for(let _0x14e491=0x0;_0x14e491<_0x5a84da[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14e491++){const _0xdbb8c9=_0x5a84da[_0x556499([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14e491);_0x36fb0f=(_0x36fb0f<<0x5)+_0x36fb0f+_0xdbb8c9,_0x36fb0f&=_0x36fb0f;}}function _0x1506e8(_0x3ddb87){Array[_0x556499([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3ddb87)?_0x3ddb87[_0x556499([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1506e8):_0x3ddb87&&typeof _0x3ddb87==_0x556499([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x556499([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3ddb87)[_0x556499([0x73,0x6f,0x72,0x74])]()[_0x556499([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4401dd,_0x2f356f])=>{_0x1ef08a(_0x4401dd),_0x1506e8(_0x2f356f);}):_0x1ef08a(window[_0x556499([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3ddb87));}return _0x1506e8(_0x241c2e),_0x36fb0f>>>0x0;}function _0xbb9413(_0x23079){return _0x23079[_0x556499([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x556499([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x556499([0x30]));}function _0x51921b(_0x27eb76){return _0x27eb76[_0x556499([0x73,0x70,0x6c,0x69,0x74])]('')[_0x556499([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x556499([0x6a,0x6f,0x69,0x6e])]('');}function _0x467e19(){}function _0x556499(_0x4db727){return _0x4db727['map'](_0x4f5117=>String['fromCharCode'](_0x4f5117))['join']('');}_0x42ec5a(await _0x170a75());}(this);}['_initSchema'](){const _0x464303=this['editor']['model']['schema'];_0x464303['isRegistered']('imageBlock')&&_0x464303['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x464303['isRegistered']('imageInline')&&_0x464303['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2d4a60=this['editor'];_0x2d4a60['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2d4a60['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x554ba8=>_0x554ba8['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x470586=_0x2d4a60['commands']['get']('replaceImageSource');_0x470586&&this['listenTo'](_0x470586,'cleanupImage',(_0x269644,[_0x7ca528,_0x10fdeb])=>{_0x7ca528['removeAttribute']('uploadcareImageId',_0x10fdeb);});}['_initConfig'](){const _0x1086b6=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1a4106=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5bad73(_0x26c421['document'],'uc-config',{..._0x1086b6,'pubkey':_0x1a4106,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x46848a=>{if('closeMax'==_0x46848a)return'#uc-icon-arrow-down';},_0x26c421['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5bad73(_0x26c421['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x26c421['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x35b907=this['editor']['commands']['get']('insertImage');_0x35b907&&this['listenTo'](_0x35b907,'execute',()=>{const _0x3bc992=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3bc992&&_0x3bc992['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3bc992);});});const _0xf62941=this['editor']['commands']['get']('uploadcareImageReplace');_0xf62941&&this['listenTo'](_0xf62941,'execute',()=>{const _0x449eb1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x449eb1&&_0x449eb1['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x449eb1);});});}}class tt extends _0x149c7c{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2930df){super(_0x2930df),_0x2930df['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2148cc['defineComponents'](_0x2148cc);}}class ii extends _0x5e2a84{constructor(_0x383e21){super(_0x383e21);const t=_0x383e21['t'],_0x432e40=this['bindTemplate'],_0x11e89f=new _0x5cfab5();_0x11e89f['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x11e89f,{'text':_0x432e40['to']('imageUploadProgress',_0x4e00da=>t('Loading\x20image...')+'\x20('+(_0x4e00da||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x5e2a84{constructor(_0x3f4252){super(_0x3f4252);const t=_0x3f4252['t'];this['set']('errorType',null);const _0x51b858=new _0x527cc1(_0x3f4252);_0x51b858['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x51b858['withText']=!0x0,_0x51b858['class']='ck-button-action',_0x51b858['on']('execute',()=>{this['fire']('retry');}),_0x51b858['bind']('isVisible')['to'](this,'errorType',_0xd61041=>'NotFound'!==_0xd61041);const _0xe73f01=new _0x1856ef();_0xe73f01['content']=_0x2d885f,_0xe73f01['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x329f0e=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0xe73f01,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x329f0e['to']('errorType',_0x23747c=>t('NotFound'!==_0x23747c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x51b858]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x5e2a84{constructor(_0xdb8930,_0x5e0d38){super(_0xdb8930);const _0x168350=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5e0d38,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x168350['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x198930,_0x3f0d28,_0x50af22){super(_0x198930),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x198930),this['_errorView']=new ti(_0x198930),this['_editingView']=new ei(_0x198930,_0x50af22),this['_focusableView']=new _0x5e2a84(_0x198930),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3f0d28),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x1b8f52=>{this['_addUploadcareImageEditorListeners'](_0x1b8f52);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x31f4f4,_0x302c1c){const _0x5463c4='uc-cloud-image-editor',_0x2caa45=_0x31f4f4['querySelector'](_0x5463c4);if(_0x2caa45)return _0x302c1c(_0x2caa45);const _0x473f27=new MutationObserver(_0x2ab83b=>{const _0x1dd6ee=_0x2ab83b['filter'](_0x38c6eb=>_0x38c6eb['target']===_0x31f4f4&&_0x38c6eb['addedNodes']['length']>0x0&&_0x38c6eb['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5463c4);_0x1dd6ee['length']&&(_0x473f27['disconnect'](),_0x302c1c(_0x1dd6ee[0x0]['addedNodes'][0x0]));});_0x473f27['observe'](_0x31f4f4,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x37666d){_0x37666d['addEventListener']('apply',_0xa62965=>{this['fire']('apply',{'imageSrc':_0xa62965['detail']['cdnUrl']});}),_0x37666d['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3a1835(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x37b08d,_0x243ec7,_0x33980a){super(),this['_editor']=_0x37b08d,this['_dialog']=_0x243ec7,this['_imageElement']=_0x33980a,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x3b45e1=this['_imageElement'],_0x517bf9=_0x3b45e1['getAttribute']('uploadcareImageId'),_0x21d3cd=_0x3b45e1['getAttribute']('src');if(_0x517bf9)await this['_loadImageInfo'](_0x517bf9,_0x21d3cd);else{if(this['_imageCache']['has'](_0x21d3cd)){const _0x1123ab=this['_imageCache']['get'](_0x21d3cd);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1123ab['url'],this['imageDimension']=_0x1123ab['dimension'],this['imageId']=_0x1123ab['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5c2f27}=this['_editor'],t=_0x5c2f27['t'],_0x33887f=new X(_0x5c2f27,this['imageStatus'],this['_attributes']);_0x33887f['bind']('status')['to'](this,'imageStatus'),_0x33887f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x33887f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x33887f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x33887f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x12dde5,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x33887f,'position':_0x1ca173['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x33887f['focus']();},'onHide':()=>{_0x33887f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x588f3e=>!S(_0x588f3e,_0x33887f['element'])}});}['_loadImageInfo'](_0x411920,_0x16d85d){return j['getInfo'](_0x411920,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2f7b64=>{const {width:_0x374e72,height:_0x4d5ac7}=_0x2f7b64['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x16d85d,this['imageDimension']={'width':_0x374e72,'height':_0x4d5ac7},this['imageId']=_0x411920;})['catch'](_0x1deff0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1deff0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5e2f85,_0xd3cf98){return this['_getImageAsFile'](_0x5e2f85)['then'](_0x57980c=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0xd3cf98['signal'],'file':_0x57980c,'onProgress':_0x2a8784=>{_0x2a8784&&_0x2a8784['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2a8784['value']));}}))['then'](_0x47a4ed=>{const {width:_0x117acb,height:_0x47c6bf}=_0x47a4ed['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x47a4ed['cdnUrl'],this['imageDimension']={'width':_0x117acb,'height':_0x47c6bf},this['imageId']=_0x47a4ed['uuid'],this['imageUploadProgress']=null;const _0x2a51bc=_0x5e2f85['getAttribute']('src');this['_imageCache']['set'](_0x2a51bc,{'id':_0x47a4ed['uuid'],'url':_0x47a4ed['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5c432e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5c432e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x33c9bf,_0x3821eb){_0x33c9bf['on']('apply',(_0x3d6c1b,_0x318659)=>{this['_replaceImage'](_0x3821eb,_0x318659['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x33c9bf['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x33c9bf['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x538aa0,_0x55a067,_0x2fa4ba){const _0x5ce7ab=this['_editor'],{width:_0x4a1137,height:_0x58cf0d}=C(_0x55a067,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x342308,imageSources:_0x46539f}=k(_0x55a067,_0x4a1137);_0x5ce7ab['model']['change'](_0x3e5244=>{if('$graveyard'===_0x538aa0['root']['rootName']){_0x5ce7ab['execute']('insertImage',{'imageType':_0x538aa0['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x538aa0['getAttributes']()),'uploadcareImageId':_0x2fa4ba,'src':_0x342308,'sources':_0x46539f,'width':_0x4a1137,'height':_0x58cf0d}});const _0x4b6eaf=_0x538aa0['getChildren']();_0x538aa0=_0x5ce7ab['model']['document']['selection']['getSelectedElement']();for(const _0x1e77db of _0x4b6eaf)_0x3e5244['append'](_0x3e5244['cloneElement'](_0x1e77db),_0x538aa0);}else _0x3e5244['setSelection'](_0x538aa0,'on'),_0x5ce7ab['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x538aa0['getAttributes']()),'uploadcareImageId':_0x2fa4ba,'src':_0x342308,'sources':_0x46539f,'width':_0x4a1137,'height':_0x58cf0d},_0x538aa0);_0x3e5244['setSelection'](_0x538aa0,'on');});}async['_getImageAsFile'](_0xb3b6a1){const _0x486312=_0x26c421['window'],_0x19215a=_0x26c421['document']['location']['href'],_0x4370c7=new _0x486312['URL'](_0xb3b6a1['getAttribute']('src'),_0x19215a);if('data:'===_0x4370c7['protocol']){const _0x4f8aea=_0x4370c7['href']['split'](','),_0x3dbd2b=_0x4f8aea[0x0]['match'](/:(.*?);/)[0x1],_0x53234a=_0x3dbd2b['split']('/')[0x1],_0x2ad58d=_0x486312['atob'](_0x4f8aea[_0x4f8aea['length']-0x1]);let _0x852470=_0x2ad58d['length'];const _0x3f420c=new _0x486312['Uint8Array'](_0x852470);for(;_0x852470--;)_0x3f420c[_0x852470]=_0x2ad58d['charCodeAt'](_0x852470);return new _0x486312['File']([_0x3f420c],'image.'+_0x53234a,{'type':_0x3dbd2b});}const _0x994394=_0x4370c7['href']['split']('/'),_0x435ab5=_0x994394[_0x994394['length']-0x1],_0x54c785=_0x435ab5['split']('.')[0x1];return _0x486312['fetch'](_0x4370c7['href'])['then'](_0x449ee3=>_0x449ee3['clone']()['blob']())['then'](_0x5143e2=>new _0x486312['File']([_0x5143e2],_0x435ab5,{'type':'image/'+_0x54c785}));}}class O extends _0x384a2f{['imageEditController'];static get['requires'](){return[_0x3fbde9];}['_isEditable'];constructor(_0x2f3b7b){super(_0x2f3b7b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x56e552){const _0x4efa1f=G(_0x56e552);return _0x128d16=>!(!_0x128d16||!_0x128d16['is']('element','imageBlock')&&!_0x128d16['is']('element','imageInline'))&&(!!_0x128d16['hasAttribute']('uploadcareImageId')||!!_0x128d16['hasAttribute']('src')&&_0x4efa1f(_0x128d16['getAttribute']('src')));}(_0x2f3b7b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3e7404=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3e7404);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x10de53=this['editor']['model']['document']['selection']['getSelectedElement']();_0x10de53&&(_0x10de53['is']('element','imageBlock')||_0x10de53['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x3fbde9),_0x10de53),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x384a2f{['refresh'](){const _0x4613bb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4613bb&&(_0x4613bb['is']('element','imageBlock')||_0x4613bb['is']('element','imageInline')));}['execute'](_0x55cbb4){const _0x24c367=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5ab365=>{_0x5ab365['setAttributes'](_0x55cbb4,_0x24c367),_0x5ab365['removeAttribute']('srcset',_0x24c367),_0x5ab365['removeAttribute']('sizes',_0x24c367);});}}class m extends _0x149c7c{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1d95e7,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x79a97c}=this;_0x79a97c['commands']['add']('uploadcareImageEdit',new O(_0x79a97c)),_0x79a97c['commands']['add']('uploadcareImageReplace',new R(_0x79a97c));}}class g extends _0x149c7c{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x17ad51=this['editor'];_0x17ad51['ui']['componentFactory']['add']('uploadcareImageEdit',_0x340f21=>{const _0x277e44=_0x17ad51['commands']['get']('uploadcareImageEdit'),_0x7b4e02=new _0x527cc1(_0x340f21),t=_0x340f21['t'];return _0x7b4e02['set']({'icon':_0x12dde5,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x7b4e02['bind']('isEnabled')['to'](_0x277e44),_0x7b4e02['bind']('isOn')['to'](_0x277e44,'isActive'),this['listenTo'](_0x7b4e02,'execute',()=>{_0x17ad51['execute']('uploadcareImageEdit'),_0x17ad51['editing']['view']['focus']();}),_0x7b4e02;}),this['_initConfig']();}['_initConfig'](){const _0x459c81=_0x5bad73(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x459c81),this['listenTo'](this['editor'],'destroy',()=>{_0x459c81['remove']();});}}class et extends _0x149c7c{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x51aeb2,Command as _0x171c79}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xa9b378,IconGooglePhotos as _0x4d691c,IconGoogleDrive as _0x9d70fc,IconFacebook as _0x5a173c,IconDropbox as _0x4a4219,IconUploadcareLink as _0x31a991,IconUploadcareImageUpload as _0x6322f7,IconError as _0x189bf2,IconUploadcareImageEdit as _0x2b2768}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x301bef,MenuBarMenuListItemButtonView as _0x59d353,View as _0x1617d6,FocusCycler as _0x23abb0,Dialog as _0x4c838d,DialogViewPosition as _0x4cabd7,SpinnerView as _0x336f73,IconView as _0x45880a,Notification as _0x3307fe}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x226558,DomEmitterMixin as _0x4944c3,global as _0x1db3bc,getAncestors as _0x17e112,ObservableMixin as _0x12e2cc,uid as _0x3a6e6f,createElement as _0x546f48}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3b719b}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2e9aa1,info as _0x272a89}from'@uploadcare/upload-client';import*as _0x4f7afa from'@uploadcare/file-uploader';var i=function(_0xcbde49){return _0xcbde49['Local']='local',_0xcbde49['URL']='url',_0xcbde49['Dropbox']='dropbox',_0xcbde49['GDrive']='gdrive',_0xcbde49['Facebook']='facebook',_0xcbde49['GPhotos']='gphotos',_0xcbde49['OneDrive']='onedrive',_0xcbde49;}({});function _(_0x178d24,_0x21fe9c,_0x233391){const t=_0x178d24['t'],_0x4d765b=_0x178d24['t'];switch(_0x21fe9c){case i['Local']:return{'text':_0x4d765b('Insert'===_0x233391?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4d765b('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x233391?_0x4d765b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4d765b('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x233391?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x233391?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x233391?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x233391?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x233391?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x21fe9c;}}class e extends _0x51aeb2{['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 _0x3dbed5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x30af3a;for(const _0x1732b3 in _0x3dbed5){const _0x105a78=_0x1732b3,_0x50576a=_0x3dbed5[_0x105a78];if('uploadcareLicenseKeyValid'==_0x50576a||'uploadcareLicenseKeyInvalid'==_0x50576a||'uploadcareLicenseKeyExpired'==_0x50576a||'uploadcareLicenseKeyDomainLimit'==_0x50576a||'uploadcareLicenseKeyNotAllowed'==_0x50576a||'uploadcareLicenseKeyEvaluationLimit'==_0x50576a||'uploadcareLicenseKeyTrialLimit'==_0x50576a||'uploadcareLicenseKeyUsageLimit'==_0x50576a){delete _0x3dbed5[_0x105a78],_0x30af3a=_0x50576a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x30af3a&&_0x3dbed5['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x30af3a&&_0x3dbed5['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x30af3a&&_0x3dbed5['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x30af3a&&_0x3dbed5['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x30af3a&&_0x3dbed5['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x30af3a&&_0x3dbed5['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x30af3a&&_0x3dbed5['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x29b4c4}=this,_0x518548=_0x29b4c4['commands']['get']('uploadcare');if(!_0x518548)return;const _0x2a330e=this['_normalizeConfigSourceList'](_0x29b4c4['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3daf22,_0x4ad585)=>{const _0x596a36=this['_getIntegrationKey'](_0x4ad585['type']);return _0x3daf22[_0x596a36]||(_0x3daf22[_0x596a36]=[]),_0x3daf22[_0x596a36]['push'](_0x4ad585),_0x3daf22;},{});_0x29b4c4['plugins']['has']('ImageInsertUI')&&_0x29b4c4['commands']['get']('uploadcare')&&Object['entries'](_0x2a330e)['forEach'](([_0x51fee0,_0x2a9925])=>{_0x29b4c4['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x51fee0,'observable':()=>_0x518548,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2a9925),'formViewCreator':()=>this['_createDropdownButtons'](_0x2a9925),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2a9925),'override':'assetManager'!==_0x51fee0});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2c175d){const {locale:_0x5e98a6}=this['editor'];return _0x2c175d['map'](_0x3de216=>{const _0x256344=_(_0x5e98a6,_0x3de216,'Insert');switch(_0x3de216){case i['Local']:return{'icon':_0x6322f7,'type':i['Local'],..._0x256344};case i['URL']:return{'icon':_0x31a991,'type':i['URL'],..._0x256344};case i['Dropbox']:return{'icon':_0x4a4219,'type':i['Dropbox'],..._0x256344};case i['Facebook']:return{'icon':_0x5a173c,'type':i['Facebook'],..._0x256344};case i['GDrive']:return{'icon':_0x9d70fc,'type':i['GDrive'],..._0x256344};case i['GPhotos']:return{'icon':_0x4d691c,'type':i['GPhotos'],..._0x256344};case i['OneDrive']:return{'icon':_0xa9b378,'type':i['OneDrive'],..._0x256344};}});}['_getIntegrationKey'](_0x175f7d){switch(_0x175f7d){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x484b48,_0xa5c8d8){const _0x31545d=this['editor'],_0x3a71e4=new _0x484b48(_0x31545d['locale']),_0x4d30ab=_0x31545d['commands']['get']('uploadcare');return _0x3a71e4['bind']('isEnabled')['to'](_0x4d30ab),_0x3a71e4['on']('execute',()=>{_0x4d30ab['execute'](_0xa5c8d8);}),_0x3a71e4;}['_createToolbarButton'](_0x21b004){const {locale:_0x1036d1}=this['editor'],_0x5ab75b=this['editor']['plugins']['get']('ImageInsertUI'),_0x4f90cc=_0x21b004[0x0],_0xfcae94=this['_createButton'](_0x301bef,_0x4f90cc['type']);return _0xfcae94['icon']=_0x4f90cc['icon'],_0xfcae94['bind']('label')['to'](_0x5ab75b,'isImageSelected',_0x1fd386=>_(_0x1036d1,_0x4f90cc['type'],_0x1fd386?'Replace':'Insert')['text']),_0xfcae94['tooltip']=!0x0,_0xfcae94;}['_createDropdownButtons'](_0x3f01d9){const {locale:_0x2a8f90}=this['editor'],_0x236c8b=this['editor']['plugins']['get']('ImageInsertUI');return _0x3f01d9['map'](_0x106c97=>{const _0x22135b=this['_createButton'](_0x301bef,_0x106c97['type']);return _0x22135b['withText']=!0x0,_0x22135b['icon']=_0x106c97['icon'],_0x22135b['bind']('label')['to'](_0x236c8b,'isImageSelected',_0x46b768=>_(_0x2a8f90,_0x106c97['type'],_0x46b768?'Replace':'Insert')['text']),_0x22135b;});}['_createMenuBarButtons'](_0x3ae523){return _0x3ae523['map'](_0x73afc7=>{const _0x4928de=this['_createButton'](_0x59d353,_0x73afc7['type']);return _0x4928de['icon']=_0x73afc7['icon'],_0x4928de['label']=_0x73afc7['shortText'],_0x4928de;});}}class F extends _0x1617d6{['focusTracker'];['focusCycler'];constructor(_0x1bbfd1){super(_0x1bbfd1),this['focusTracker']=new _0x226558(),this['focusCycler']=new _0x23abb0({'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(_0x4eb29c,_0x1d9312){super(_0x4eb29c),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-'+_0x1d9312}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x9c245,_0x466c60){const _0x3f9a08=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1c25f5=>_0x1c25f5<=_0x466c60)['map'](_0x2e6e3e=>_0x9c245['replace'](/\/$/,'')+'/-/resize/'+_0x2e6e3e+'x/\x20'+_0x2e6e3e+'w');return{'imageFallbackUrl':_0x9c245,'imageSources':[{'srcset':_0x3f9a08['join'](',\x20'),'sizes':'(max-width:\x20'+_0x466c60+'px)\x20100vw,\x20'+_0x466c60+'px','type':'image/webp'}]};}function C(_0x31d1bb,_0x4f40f5,_0x110f34){const _0x4c9ef0=_0x31d1bb['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4c9ef0?parseInt(_0x4c9ef0[0x1],0xa):_0x4f40f5,'height':_0x4c9ef0?parseInt(_0x4c9ef0[0x2],0xa):_0x110f34};}function p(_0x5527dc,_0x229d38){const _0x2b5f80=new(_0x4944c3())(),_0xb8dd3a=_0x5527dc['plugins']['get']('ImageUtils'),_0x1f50d3=_0x5527dc['editing']['mapper']['toViewElement'](_0x229d38),_0x12d716=_0xb8dd3a['findViewImgElement'](_0x1f50d3),_0x5da383=_0x5527dc['editing']['view']['domConverter']['viewToDom'](_0x12d716),_0x99f7f7=_0x229d38['getAttribute']('width'),_0x4c7440=_0x229d38['getAttribute']('height'),_0x2e9cf6='image-processing';_0x5527dc['editing']['view']['change'](_0x274ca2=>{_0x274ca2['addClass'](_0x2e9cf6,_0x1f50d3),_0x274ca2['setStyle']('aspect-ratio',_0x99f7f7+'/'+_0x4c7440,_0x12d716);}),_0x2b5f80['listenTo'](_0x5da383,'load',()=>{_0x2b5f80['stopListening'](_0x5da383,'load'),_0x5527dc['editing']['view']['change'](_0x527986=>{_0x527986['removeClass'](_0x2e9cf6,_0x1f50d3),_0x527986['removeStyle']('aspect-ratio',_0x12d716);});});}function G(_0xd91c4e){if(Array['isArray'](_0xd91c4e)){const _0x5b6067=_0xd91c4e['map'](G);return _0x1aa0aa=>_0x5b6067['some'](_0x400a60=>_0x400a60(_0x1aa0aa));}if('origin'==_0xd91c4e){const _0x5b8117=_0x1db3bc['window']['location']['origin'];return _0xacc5a5=>new URL(_0xacc5a5,_0x1db3bc['document']['baseURI'])['origin']==_0x5b8117;}return'function'==typeof _0xd91c4e?_0xd91c4e:_0xd91c4e instanceof RegExp?_0x50b150=>!(!_0x50b150['match'](_0xd91c4e)&&!_0x50b150['replace'](/^https?:\/\//,'')['match'](_0xd91c4e)):()=>!0x1;}function S(_0x30d294,_0x45554a){return _0x17e112(_0x30d294['target'])['includes'](_0x45554a);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x12e2cc(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2dd55c,_0x57366c,_0x2bcb0d){super(),this['_editor']=_0x2dd55c,this['_editing']=_0x57366c,this['_dialog']=_0x2dd55c['plugins']['get'](_0x4c838d),this['_api']=_0x57366c['ctxElement']['getAPI'](),this['_type']=_0x2bcb0d,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:_0x503fec,model:_0x49a132}=this['_editor'],_0x233821=_0x49a132['document']['selection']['getSelectedElement'](),_0x48f1b1=_0x233821&&(_0x233821['is']('element','imageBlock')||_0x233821['is']('element','imageInline'));this['_formView']=new x(_0x503fec,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x6322f7,'title':_(_0x503fec,this['_type'],_0x48f1b1?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4cabd7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xb64e22=>!S(_0xb64e22,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4e2e8a}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x7196e1=>{const _0x303177=_0x4e2e8a['length'];for(const _0x3977dd of _0x4e2e8a){const _0x14e2ec=_0x3977dd===_0x4e2e8a[_0x303177-0x1],{cdnUrl:_0x303bba,fileInfo:_0x3b860f}=_0x3977dd;if(!_0x303bba||!_0x3b860f)continue;const {width:_0x1801c9,height:_0x8824ab}=_0x3b860f['imageInfo'],_0xd88438=C(_0x303bba,_0x1801c9,_0x8824ab),_0x182807=k(_0x303bba,_0xd88438['width']),_0x407698={'id':_0x3b860f['uuid'],'type':'image','attributes':{'imageDimension':_0xd88438,..._0x182807}};this['_insertAsset'](_0x407698,_0x14e2ec,_0x7196e1);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5cbae2=>{'idle'===_0x5cbae2['detail']['status']&&!_0x5cbae2['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2a4073,_0x165e86,_0x5e69ab){const _0x1b1777=this['_editor']['model']['document']['selection'],_0x9e8f1c=_0x1b1777['getSelectedElement'](),_0x26178d=!(!_0x9e8f1c||!_0x9e8f1c['is']('element','imageInline'));_0x5e69ab['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2a4073,_0x26178d),_0x165e86||_0x5e69ab['setSelection'](_0x1b1777['getLastPosition']());}['_insertImage'](_0xe83842,_0x147d89){const _0x43364c=this['_editor'],{imageDimension:_0x596097,imageFallbackUrl:_0x7a2e1a,imageSources:_0x53dcf8}=_0xe83842['attributes'];_0x43364c['execute']('insertImage',{'imageType':_0x147d89?'imageInline':null,'source':{'uploadcareImageId':_0xe83842['id'],'src':_0x7a2e1a,'sources':_0x53dcf8,..._0x596097}});}}class w extends _0x171c79{['_editing'];['_controller']=null;static get['requires'](){return[_0x4c838d,o];}constructor(_0x4f2ff1){super(_0x4f2ff1),this['_editing']=_0x4f2ff1['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3bc55c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x3bc55c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3022b9,publicKey:_0x25087e,signal:_0x19ef60,onProgress:_0x2da196}){return _0x2e9aa1(_0x3022b9,{'publicKey':_0x25087e,'store':'auto','signal':_0x19ef60,'onProgress':_0x2da196});}static['getInfo'](_0x3741cc,_0x299fd7){return _0x272a89(_0x3741cc,_0x299fd7);}}class f extends _0x51aeb2{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3b719b,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x54101f=this['editor'];if(!!!_0x54101f['config']['get']('uploadcare'))return;_0x54101f['plugins']['get'](_0x3b719b)['createUploadAdapter']=_0x33f875=>new A(_0x33f875,_0x54101f),_0x54101f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x38c071,{imageElement:_0x33a27a,data:_0x2b6c5a})=>{_0x54101f['model']['change'](_0x3252d9=>{_0x3252d9['setAttribute']('uploadcareImageId',_0x2b6c5a['uploadcareImageId'],_0x33a27a);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x411500,_0x2dd506){this['loader']=_0x411500,this['editor']=_0x2dd506,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x27e232=this['editor']['config']['get']('uploadcare.pubkey'),_0x3c6d56=await this['loader']['file'];return j['upload']({'file':_0x3c6d56,'publicKey':_0x27e232,'signal':this['controller']['signal'],'onProgress':_0x28059e=>{_0x28059e&&_0x28059e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x28059e['value']);}})['then'](async _0x269016=>{const {imageFallbackUrl:_0x5a8587,imageSources:_0x1d5256}=k(_0x269016['cdnUrl'],_0x269016['imageInfo']['width']);return{'uploadcareImageId':_0x269016['uuid'],'default':_0x5a8587,'sources':_0x1d5256};})['catch'](()=>{const _0x2e9018=t('Cannot\x20upload\x20file:')+('\x20'+_0x3c6d56['name']+'.');return Promise['reject'](_0x2e9018);});}['abort'](){this['controller']['abort']();}}class o extends _0x51aeb2{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4c838d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xc27cec){super(_0xc27cec),this['ucContextId']=_0x3a6e6f();}['init'](){const _0x416c2c=this['editor'];_0x416c2c['commands']['add']('uploadcare',new w(_0x416c2c));}['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 _0x26aa53=_0x1db3bc['document']['querySelector']('input[uploadcare-file-input]');_0x26aa53&&_0x26aa53['remove']();}),async function(_0x1af12c){const _0x17bc80=_0x336a84([0x69,0x61,0x38,0x37,0x71,0x77,0x6c,0x74,0x75,0x72,0x34,0x66,0x76,0x47,0x65,0x33,0x45,0x39,0x54,0x6b,0x7a,0x32,0x35,0x59,0x30,0x78,0x52,0x63,0x44,0x6f,0x41,0x4b,0x48,0x4a,0x64,0x42,0x62,0x4e,0x6a,0x79,0x31,0x49,0x56,0x6d,0x70,0x4d,0x51,0x53,0x4f,0x55,0x67,0x68,0x73,0x57,0x50,0x58,0x6e,0x46,0x5a,0x4c,0x36,0x43]),_0x3e9126=0x35bd5841,_0x29ec0b=0x35ba33d1^_0x3e9126,_0x16b15c=window[_0x336a84([0x44,0x61,0x74,0x65])][_0x336a84([0x6e,0x6f,0x77])](),_0x599aaa=_0x1af12c[_0x336a84([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x345b1f=new window[(_0x336a84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b729f=>{_0x599aaa[_0x336a84([0x6f,0x6e,0x63,0x65])](_0x336a84([0x72,0x65,0x61,0x64,0x79]),_0x5b729f);}),_0x1273d4={[_0x336a84([0x6b,0x74,0x79])]:_0x336a84([0x45,0x43]),[_0x336a84([0x75,0x73,0x65])]:_0x336a84([0x73,0x69,0x67]),[_0x336a84([0x63,0x72,0x76])]:_0x336a84([0x50,0x2d,0x32,0x35,0x36]),[_0x336a84([0x78])]:_0x336a84([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]),[_0x336a84([0x79])]:_0x336a84([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]),[_0x336a84([0x61,0x6c,0x67])]:_0x336a84([0x45,0x53,0x32,0x35,0x36])},_0x1e860d=_0x599aaa[_0x336a84([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x336a84([0x67,0x65,0x74])](_0x336a84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5b8721(){let _0x16f1e3,_0x29ba03=null,_0x5e8e5d=null;try{if(_0x1e860d==_0x336a84([0x47,0x50,0x4c]))return _0x336a84([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x16f1e3=_0x13d19f(),!_0x16f1e3)return _0x336a84([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x16f1e3[_0x336a84([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e8e5d=_0x1c1a49(_0x16f1e3[_0x336a84([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x16f1e3[_0x336a84([0x6a,0x74,0x69])])),await _0x1c440d()?_0x128020()?_0x1180ba()?_0x336a84([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x282b81()?(_0x16f1e3[_0x336a84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x336a84([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29ba03=_0x38d0bc(_0x336a84([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x16f1e3[_0x336a84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x336a84([0x74,0x72,0x69,0x61,0x6c])&&(_0x29ba03=_0x38d0bc(_0x336a84([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x175968()):_0x336a84([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x336a84([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x336a84([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x336a84([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1180ba(){const _0x1b6dad=[_0x336a84([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x336a84([0x74,0x72,0x69,0x61,0x6c])][_0x336a84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16f1e3[_0x336a84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x16b15c/0x3e8:0xe10*_0x29ec0b;return _0x16f1e3[_0x336a84([0x65,0x78,0x70])]<_0x1b6dad;}function _0x128020(){const _0x4776cd=_0x16f1e3[_0x336a84([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4776cd&&(!!_0x4776cd[_0x336a84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x336a84([0x2a]))||!!_0x4776cd[_0x336a84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x336a84([0x55,0x50,0x4c,0x43])));}function _0x282b81(){const _0x46775b=_0x16f1e3[_0x336a84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x46775b||0x0==_0x46775b[_0x336a84([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x54fb0a}=new URL(window[_0x336a84([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x46775b[_0x336a84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54fb0a))return!0x0;const _0x1a0817=_0x54fb0a[_0x336a84([0x73,0x70,0x6c,0x69,0x74])](_0x336a84([0x2e]));return _0x46775b[_0x336a84([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x335c64=>_0x335c64[_0x336a84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x336a84([0x2a])))[_0x336a84([0x6d,0x61,0x70])](_0x2ce4c2=>_0x2ce4c2[_0x336a84([0x73,0x70,0x6c,0x69,0x74])](_0x336a84([0x2e])))[_0x336a84([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e407c=>_0x3e407c[_0x336a84([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1a0817[_0x336a84([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x336a84([0x6d,0x61,0x70])](_0x591635=>Array(_0x1a0817[_0x336a84([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x591635[_0x336a84([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x336a84([0x66,0x69,0x6c,0x6c])](_0x591635[0x0]===_0x336a84([0x2a])?_0x336a84([0x2a]):'')[_0x336a84([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x591635))[_0x336a84([0x73,0x6f,0x6d,0x65])](_0x2388b3=>_0x1a0817[_0x336a84([0x65,0x76,0x65,0x72,0x79])]((_0x3e1bac,_0x23047d)=>_0x2388b3[_0x23047d]===_0x3e1bac||_0x2388b3[_0x23047d]===_0x336a84([0x2a])));}function _0x175968(){return _0x29ba03&&_0x5e8e5d?new window[(_0x336a84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ec696,_0x1ca8d1)=>{_0x29ba03[_0x336a84([0x74,0x68,0x65,0x6e])](_0x5ec696,_0x1ca8d1),_0x5e8e5d[_0x336a84([0x74,0x68,0x65,0x6e])](_0x24988d=>{_0x24988d!=_0x336a84([0x56,0x61,0x6c,0x69,0x64])&&_0x5ec696(_0x24988d);},_0x1ca8d1);}):_0x29ba03||_0x5e8e5d||_0x336a84([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c1a49(_0x2a4b76,_0x318cbe){return new window[(_0x336a84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdaad71=>{if(_0x3b8269())return _0xdaad71(_0x336a84([0x56,0x61,0x6c,0x69,0x64]));_0x4a2b0c(),_0x599aaa[_0x336a84([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x336a84([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4db797=!0x1;const _0x3620ce=_0x3a6e6f();function _0x2e64f2(_0x5dfef9){return!!_0x5dfef9&&(typeof _0x5dfef9===_0x336a84([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5dfef9===_0x336a84([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5dfef9[_0x336a84([0x74,0x68,0x65,0x6e])]===_0x336a84([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5dfef9[_0x336a84([0x63,0x61,0x74,0x63,0x68])]===_0x336a84([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x42bea4(_0x51a0ef){_0x23ddef(_0x51a0ef)[_0x336a84([0x74,0x68,0x65,0x6e])](_0x39a4b6=>{if(!_0x39a4b6||_0x39a4b6[_0x336a84([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x336a84([0x6f,0x6b]))return _0x336a84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x309aad(_0x2331ff(_0x3620ce+_0x318cbe))!=_0x39a4b6[_0x336a84([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x336a84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x336a84([0x56,0x61,0x6c,0x69,0x64]);})[_0x336a84([0x74,0x68,0x65,0x6e])](_0x7306f6=>(_0x3d138d(),_0x7306f6),()=>{const _0x2a21bc=_0xd31af2();return null==_0x2a21bc?(_0x3d138d(),_0x336a84([0x56,0x61,0x6c,0x69,0x64])):_0x336a84(_0x16b15c-_0x2a21bc>(0x11b1dc41^_0x3e9126)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x336a84([0x74,0x68,0x65,0x6e])](_0xdaad71)[_0x336a84([0x63,0x61,0x74,0x63,0x68])](()=>{_0xdaad71(_0x336a84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6bc414=0x358bb6c1^_0x3e9126;function _0x3d138d(){const _0x461caa=_0x336a84([0x6c,0x6c,0x63,0x74,0x2d])+_0x309aad(_0x2331ff(_0x2a4b76)),_0x40fd75=_0x3c88d8(_0x309aad(window[_0x336a84([0x4d,0x61,0x74,0x68])][_0x336a84([0x63,0x65,0x69,0x6c])](_0x16b15c/_0x6bc414)));window[_0x336a84([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x336a84([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x461caa,_0x40fd75);}function _0xd31af2(){const _0xb4e4b9=_0x336a84([0x6c,0x6c,0x63,0x74,0x2d])+_0x309aad(_0x2331ff(_0x2a4b76)),_0x2c3643=window[_0x336a84([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x336a84([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb4e4b9);return _0x2c3643?window[_0x336a84([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c88d8(_0x2c3643),0x10)*_0x6bc414:null;}function _0x23ddef(_0x21d21a){return new window[(_0x336a84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x401012,_0xb4da72)=>{_0x21d21a[_0x336a84([0x74,0x68,0x65,0x6e])](_0x401012,_0xb4da72),window[_0x336a84([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xb4da72,0x35bc8c81^_0x3e9126);});}}_0x599aaa[_0x336a84([0x6f,0x6e])](_0x336a84([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4d2416,_0x2b61a9)=>{if(_0x2b61a9[0x0]!=_0x2a4b76)return _0xdaad71(_0x336a84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2b61a9[0x1]={..._0x2b61a9[0x1],[_0x336a84([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3620ce};},{[_0x336a84([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x336a84([0x68,0x69,0x67,0x68])}),_0x599aaa[_0x336a84([0x6f,0x6e])](_0x336a84([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x470779=>{_0x2e64f2(_0x470779[_0x336a84([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4db797=!0x0,_0x42bea4(_0x470779[_0x336a84([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x336a84([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x336a84([0x6c,0x6f,0x77])}),_0x345b1f[_0x336a84([0x74,0x68,0x65,0x6e])](()=>{_0x4db797||_0xdaad71(_0x336a84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3b8269(){return _0x599aaa[_0x336a84([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x336a84([0x76,0x69,0x65,0x77])][_0x336a84([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x336a84([0x61,0x75,0x74,0x6f]);}function _0x4a2b0c(){_0x599aaa[_0x336a84([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x336a84([0x76,0x69,0x65,0x77])][_0x336a84([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x336a84([0x61,0x75,0x74,0x6f]);}}function _0x38d0bc(_0x574aa6){const _0x1510d8=[new window[(_0x336a84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cf65a=>setTimeout(_0x3cf65a,0x35b4668d^_0x3e9126)),_0x345b1f[_0x336a84([0x74,0x68,0x65,0x6e])](()=>new window[(_0x336a84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42f436=>{let _0x1b599c=0x0;_0x599aaa[_0x336a84([0x6d,0x6f,0x64,0x65,0x6c])][_0x336a84([0x6f,0x6e])](_0x336a84([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4cedc7,_0x3e4cdc)=>{_0x3e4cdc[0x0][_0x336a84([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1b599c++,_0x1b599c==(0x35bd59b9^_0x3e9126)&&(_0x42f436(),_0x4cedc7[_0x336a84([0x6f,0x66,0x66])]());});}))];return window[_0x336a84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x336a84([0x72,0x61,0x63,0x65])](_0x1510d8)[_0x336a84([0x74,0x68,0x65,0x6e])](()=>_0x574aa6);}async function _0x185108(){await _0x345b1f,_0x599aaa[_0x336a84([0x6d,0x6f,0x64,0x65,0x6c])][_0x336a84([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f6e8f,_0x599aaa[_0x336a84([0x6d,0x6f,0x64,0x65,0x6c])][_0x336a84([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f6e8f,_0x599aaa[_0x336a84([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x336a84([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x366eb8(_0x507962){const _0x36113a=_0x1b6bb3();_0x599aaa[_0x36113a]=_0x336a84([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x507962,_0x507962!=_0x336a84([0x56,0x61,0x6c,0x69,0x64])&&_0x185108();}function _0x1b6bb3(){const _0x57712d=window[_0x336a84([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x336a84([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x336a84([0x6e,0x6f,0x77])]())[_0x336a84([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x336a84([0x2e]),'');let _0x49e693=_0x336a84([0x69]);for(let _0x1062c8=0x0;_0x1062c8<_0x57712d[_0x336a84([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1062c8+=0x2){let _0x1131d2=window[_0x336a84([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57712d[_0x336a84([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1062c8,_0x1062c8+0x2));_0x1131d2>=_0x17bc80[_0x336a84([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1131d2-=_0x17bc80[_0x336a84([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x49e693+=_0x17bc80[_0x1131d2];}return _0x49e693;}function _0x13d19f(){const _0x4d3212=_0x1e860d[_0x336a84([0x73,0x70,0x6c,0x69,0x74])](_0x336a84([0x2e]));if(0x3!=_0x4d3212[_0x336a84([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3af472(_0x4d3212[0x1]);function _0x3af472(_0x319954){const _0x18982d=_0x3419a9(_0x319954);return _0x18982d&&_0x450e54()?_0x18982d:null;function _0x450e54(){const _0x26a915=_0x18982d[_0x336a84([0x6a,0x74,0x69])],_0x23aba1=window[_0x336a84([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26a915[_0x336a84([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26a915[_0x336a84([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3b280b={..._0x18982d,[_0x336a84([0x6a,0x74,0x69])]:_0x26a915[_0x336a84([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x26a915[_0x336a84([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3b280b[_0x336a84([0x76,0x63])],_0x2331ff(_0x3b280b)==_0x23aba1;}}}async function _0x1c440d(){let _0x51c434=!0x0;try{const _0x29565b=_0x1e860d[_0x336a84([0x73,0x70,0x6c,0x69,0x74])](_0x336a84([0x2e])),[_0x31fcc0,_0x4dcbbb,_0x10f667]=_0x29565b;return _0x481f86(_0x31fcc0),await _0x4782b0(_0x31fcc0,_0x4dcbbb,_0x10f667),_0x51c434;}catch{return!0x1;}function _0x481f86(_0x4bbdc5){const _0x129125=_0x3419a9(_0x4bbdc5);_0x129125&&_0x129125[_0x336a84([0x61,0x6c,0x67])]==_0x336a84([0x45,0x53,0x32,0x35,0x36])||(_0x51c434=!0x1);}async function _0x4782b0(_0x8e6fcc,_0x48e136,_0x444cf9){const _0x27f37a=window[_0x336a84([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x336a84([0x66,0x72,0x6f,0x6d])](_0x28dd83(_0x444cf9),_0x4a8aae=>_0x4a8aae[_0x336a84([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3bdc7a=new window[(_0x336a84([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x336a84([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x8e6fcc+_0x336a84([0x2e])+_0x48e136),_0x134858=window[_0x336a84([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x336a84([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x134858)return;const _0x59204f=await _0x134858[_0x336a84([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x336a84([0x6a,0x77,0x6b]),_0x1273d4,{[_0x336a84([0x6e,0x61,0x6d,0x65])]:_0x336a84([0x45,0x43,0x44,0x53,0x41]),[_0x336a84([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x336a84([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x336a84([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x134858[_0x336a84([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x336a84([0x6e,0x61,0x6d,0x65])]:_0x336a84([0x45,0x43,0x44,0x53,0x41]),[_0x336a84([0x68,0x61,0x73,0x68])]:{[_0x336a84([0x6e,0x61,0x6d,0x65])]:_0x336a84([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x59204f,_0x27f37a,_0x3bdc7a)||(_0x51c434=!0x1);}}function _0x3419a9(_0x5bdeaa){return _0x5bdeaa[_0x336a84([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x336a84([0x65,0x79]))?JSON[_0x336a84([0x70,0x61,0x72,0x73,0x65])](_0x28dd83(_0x5bdeaa)):null;}function _0x28dd83(_0x522312){return window[_0x336a84([0x61,0x74,0x6f,0x62])](_0x522312[_0x336a84([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x336a84([0x2b]))[_0x336a84([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x336a84([0x2f])));}function _0x2331ff(_0x4534fe){let _0x569b52=0x1505;function _0x593966(_0x3f48e0){for(let _0x4416c2=0x0;_0x4416c2<_0x3f48e0[_0x336a84([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4416c2++){const _0x1e496d=_0x3f48e0[_0x336a84([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4416c2);_0x569b52=(_0x569b52<<0x5)+_0x569b52+_0x1e496d,_0x569b52&=_0x569b52;}}function _0x7fa93b(_0x41b482){Array[_0x336a84([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x41b482)?_0x41b482[_0x336a84([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7fa93b):_0x41b482&&typeof _0x41b482==_0x336a84([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x336a84([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x41b482)[_0x336a84([0x73,0x6f,0x72,0x74])]()[_0x336a84([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1c00ee,_0x180b01])=>{_0x593966(_0x1c00ee),_0x7fa93b(_0x180b01);}):_0x593966(window[_0x336a84([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x41b482));}return _0x7fa93b(_0x4534fe),_0x569b52>>>0x0;}function _0x309aad(_0x3cf10a){return _0x3cf10a[_0x336a84([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x336a84([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x336a84([0x30]));}function _0x3c88d8(_0x2a12ae){return _0x2a12ae[_0x336a84([0x73,0x70,0x6c,0x69,0x74])]('')[_0x336a84([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x336a84([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f6e8f(){}function _0x336a84(_0x14fd87){return _0x14fd87['map'](_0x16e0a6=>String['fromCharCode'](_0x16e0a6))['join']('');}_0x366eb8(await _0x5b8721());}(this);}['_initSchema'](){const _0x1d149e=this['editor']['model']['schema'];_0x1d149e['isRegistered']('imageBlock')&&_0x1d149e['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1d149e['isRegistered']('imageInline')&&_0x1d149e['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2f6dce=this['editor'];_0x2f6dce['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2f6dce['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3c9438=>_0x3c9438['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x380016=_0x2f6dce['commands']['get']('replaceImageSource');_0x380016&&this['listenTo'](_0x380016,'cleanupImage',(_0x51b6e8,[_0x1536a0,_0x48d6f8])=>{_0x1536a0['removeAttribute']('uploadcareImageId',_0x48d6f8);});}['_initConfig'](){const _0x4f564c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x135534=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x546f48(_0x1db3bc['document'],'uc-config',{..._0x4f564c,'pubkey':_0x135534,'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']=_0x4ba061=>{if('closeMax'==_0x4ba061)return'#uc-icon-arrow-down';},_0x1db3bc['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x546f48(_0x1db3bc['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1db3bc['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2e13d1=this['editor']['commands']['get']('insertImage');_0x2e13d1&&this['listenTo'](_0x2e13d1,'execute',()=>{const _0x4be5ad=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4be5ad&&_0x4be5ad['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4be5ad);});});const _0x474919=this['editor']['commands']['get']('uploadcareImageReplace');_0x474919&&this['listenTo'](_0x474919,'execute',()=>{const _0x14f483=this['editor']['model']['document']['selection']['getSelectedElement']();_0x14f483&&_0x14f483['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x14f483);});});}}class tt extends _0x51aeb2{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x494bd1){super(_0x494bd1),_0x494bd1['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4f7afa['defineComponents'](_0x4f7afa);}}class ii extends _0x1617d6{constructor(_0x3d7a1a){super(_0x3d7a1a);const t=_0x3d7a1a['t'],_0x16d273=this['bindTemplate'],_0x43a530=new _0x336f73();_0x43a530['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':[_0x43a530,{'text':_0x16d273['to']('imageUploadProgress',_0x28e58a=>t('Loading\x20image...')+'\x20('+(_0x28e58a||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 _0x1617d6{constructor(_0x2168e1){super(_0x2168e1);const t=_0x2168e1['t'];this['set']('errorType',null);const _0x1bdeb8=new _0x301bef(_0x2168e1);_0x1bdeb8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1bdeb8['withText']=!0x0,_0x1bdeb8['class']='ck-button-action',_0x1bdeb8['on']('execute',()=>{this['fire']('retry');}),_0x1bdeb8['bind']('isVisible')['to'](this,'errorType',_0x333174=>'NotFound'!==_0x333174);const _0x4724d2=new _0x45880a();_0x4724d2['content']=_0x189bf2,_0x4724d2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2ca4d3=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':[_0x4724d2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2ca4d3['to']('errorType',_0x544914=>t('NotFound'!==_0x544914?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1bdeb8]},{'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 _0x1617d6{constructor(_0x447d03,_0x26da17){super(_0x447d03);const _0x337a3a=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x26da17,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x337a3a['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x32ae95,_0x4eac10,_0x470901){super(_0x32ae95),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x32ae95),this['_errorView']=new ti(_0x32ae95),this['_editingView']=new ei(_0x32ae95,_0x470901),this['_focusableView']=new _0x1617d6(_0x32ae95),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4eac10),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'],_0x7bd74=>{this['_addUploadcareImageEditorListeners'](_0x7bd74);});}),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'](_0x1a1675,_0x45669e){const _0x3514dd='uc-cloud-image-editor',_0x275748=_0x1a1675['querySelector'](_0x3514dd);if(_0x275748)return _0x45669e(_0x275748);const _0x477990=new MutationObserver(_0x32ac73=>{const _0x429e2d=_0x32ac73['filter'](_0x1eb2ba=>_0x1eb2ba['target']===_0x1a1675&&_0x1eb2ba['addedNodes']['length']>0x0&&_0x1eb2ba['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3514dd);_0x429e2d['length']&&(_0x477990['disconnect'](),_0x45669e(_0x429e2d[0x0]['addedNodes'][0x0]));});_0x477990['observe'](_0x1a1675,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x225827){_0x225827['addEventListener']('apply',_0x5239ff=>{this['fire']('apply',{'imageSrc':_0x5239ff['detail']['cdnUrl']});}),_0x225827['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x12e2cc(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3ffaf3,_0xf285e3,_0x5cd1c5){super(),this['_editor']=_0x3ffaf3,this['_dialog']=_0xf285e3,this['_imageElement']=_0x5cd1c5,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 _0x957b78=this['_imageElement'],_0x4dea5a=_0x957b78['getAttribute']('uploadcareImageId'),_0x4fe450=_0x957b78['getAttribute']('src');if(_0x4dea5a)await this['_loadImageInfo'](_0x4dea5a,_0x4fe450);else{if(this['_imageCache']['has'](_0x4fe450)){const _0x47649b=this['_imageCache']['get'](_0x4fe450);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x47649b['url'],this['imageDimension']=_0x47649b['dimension'],this['imageId']=_0x47649b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x57a0e5}=this['_editor'],t=_0x57a0e5['t'],_0x42559d=new X(_0x57a0e5,this['imageStatus'],this['_attributes']);_0x42559d['bind']('status')['to'](this,'imageStatus'),_0x42559d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x42559d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x42559d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x42559d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2b2768,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x42559d,'position':_0x4cabd7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x42559d['focus']();},'onHide':()=>{_0x42559d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5d660d=>!S(_0x5d660d,_0x42559d['element'])}});}['_loadImageInfo'](_0x8912cc,_0xf5cf5e){return j['getInfo'](_0x8912cc,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x408750=>{const {width:_0x17b308,height:_0x1dd37e}=_0x408750['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xf5cf5e,this['imageDimension']={'width':_0x17b308,'height':_0x1dd37e},this['imageId']=_0x8912cc;})['catch'](_0x3140bb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3140bb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x293466,_0x256096){return this['_getImageAsFile'](_0x293466)['then'](_0x5f59d6=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x256096['signal'],'file':_0x5f59d6,'onProgress':_0x1168b2=>{_0x1168b2&&_0x1168b2['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1168b2['value']));}}))['then'](_0x15fc36=>{const {width:_0x172ad5,height:_0x583e46}=_0x15fc36['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x15fc36['cdnUrl'],this['imageDimension']={'width':_0x172ad5,'height':_0x583e46},this['imageId']=_0x15fc36['uuid'],this['imageUploadProgress']=null;const _0x10f0c9=_0x293466['getAttribute']('src');this['_imageCache']['set'](_0x10f0c9,{'id':_0x15fc36['uuid'],'url':_0x15fc36['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x448c4a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x448c4a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x297a4e,_0x148f40){_0x297a4e['on']('apply',(_0x3979f3,_0x589745)=>{this['_replaceImage'](_0x148f40,_0x589745['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x297a4e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x297a4e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3f5342,_0x9629c0,_0x5adc34){const _0xaa4e37=this['_editor'],{width:_0xdf1b87,height:_0x59225c}=C(_0x9629c0,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5c3f06,imageSources:_0x3a28bb}=k(_0x9629c0,_0xdf1b87);_0xaa4e37['model']['change'](_0xebf4ad=>{if('$graveyard'===_0x3f5342['root']['rootName']){_0xaa4e37['execute']('insertImage',{'imageType':_0x3f5342['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3f5342['getAttributes']()),'uploadcareImageId':_0x5adc34,'src':_0x5c3f06,'sources':_0x3a28bb,'width':_0xdf1b87,'height':_0x59225c}});const _0x326070=_0x3f5342['getChildren']();_0x3f5342=_0xaa4e37['model']['document']['selection']['getSelectedElement']();for(const _0x2153f4 of _0x326070)_0xebf4ad['append'](_0xebf4ad['cloneElement'](_0x2153f4),_0x3f5342);}else _0xebf4ad['setSelection'](_0x3f5342,'on'),_0xaa4e37['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3f5342['getAttributes']()),'uploadcareImageId':_0x5adc34,'src':_0x5c3f06,'sources':_0x3a28bb,'width':_0xdf1b87,'height':_0x59225c},_0x3f5342);_0xebf4ad['setSelection'](_0x3f5342,'on');});}async['_getImageAsFile'](_0x4cb48e){const _0x7edfce=_0x1db3bc['window'],_0x2755fe=_0x1db3bc['document']['location']['href'],_0x254b6d=new _0x7edfce['URL'](_0x4cb48e['getAttribute']('src'),_0x2755fe);if('data:'===_0x254b6d['protocol']){const _0x23abe4=_0x254b6d['href']['split'](','),_0x342af8=_0x23abe4[0x0]['match'](/:(.*?);/)[0x1],_0x556b68=_0x342af8['split']('/')[0x1],_0x2c1b20=_0x7edfce['atob'](_0x23abe4[_0x23abe4['length']-0x1]);let _0x588938=_0x2c1b20['length'];const _0xd4ccde=new _0x7edfce['Uint8Array'](_0x588938);for(;_0x588938--;)_0xd4ccde[_0x588938]=_0x2c1b20['charCodeAt'](_0x588938);return new _0x7edfce['File']([_0xd4ccde],'image.'+_0x556b68,{'type':_0x342af8});}const _0x10adca=_0x254b6d['href']['split']('/'),_0x52329a=_0x10adca[_0x10adca['length']-0x1],_0x30903a=_0x52329a['split']('.')[0x1];return _0x7edfce['fetch'](_0x254b6d['href'])['then'](_0x2a8b78=>_0x2a8b78['clone']()['blob']())['then'](_0x5ef18f=>new _0x7edfce['File']([_0x5ef18f],_0x52329a,{'type':'image/'+_0x30903a}));}}class O extends _0x171c79{['imageEditController'];static get['requires'](){return[_0x4c838d];}['_isEditable'];constructor(_0x403ba3){super(_0x403ba3),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x47bbf5){const _0x2e3e51=G(_0x47bbf5);return _0x3fa895=>!(!_0x3fa895||!_0x3fa895['is']('element','imageBlock')&&!_0x3fa895['is']('element','imageInline'))&&(!!_0x3fa895['hasAttribute']('uploadcareImageId')||!!_0x3fa895['hasAttribute']('src')&&_0x2e3e51(_0x3fa895['getAttribute']('src')));}(_0x403ba3['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x248cdf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x248cdf);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x59e0e0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x59e0e0&&(_0x59e0e0['is']('element','imageBlock')||_0x59e0e0['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4c838d),_0x59e0e0),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x171c79{['refresh'](){const _0x2edb2f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2edb2f&&(_0x2edb2f['is']('element','imageBlock')||_0x2edb2f['is']('element','imageInline')));}['execute'](_0x1c948e){const _0x20d91a=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xb695e3=>{_0xb695e3['setAttributes'](_0x1c948e,_0x20d91a),_0xb695e3['removeAttribute']('srcset',_0x20d91a),_0xb695e3['removeAttribute']('sizes',_0x20d91a);});}}class m extends _0x51aeb2{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3307fe,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x15c1da}=this;_0x15c1da['commands']['add']('uploadcareImageEdit',new O(_0x15c1da)),_0x15c1da['commands']['add']('uploadcareImageReplace',new R(_0x15c1da));}}class g extends _0x51aeb2{['_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 _0x3bf157=this['editor'];_0x3bf157['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4ef31f=>{const _0x5ad90d=_0x3bf157['commands']['get']('uploadcareImageEdit'),_0x2fed58=new _0x301bef(_0x4ef31f),t=_0x4ef31f['t'];return _0x2fed58['set']({'icon':_0x2b2768,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2fed58['bind']('isEnabled')['to'](_0x5ad90d),_0x2fed58['bind']('isOn')['to'](_0x5ad90d,'isActive'),this['listenTo'](_0x2fed58,'execute',()=>{_0x3bf157['execute']('uploadcareImageEdit'),_0x3bf157['editing']['view']['focus']();}),_0x2fed58;}),this['_initConfig']();}['_initConfig'](){const _0x384ec6=_0x546f48(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x384ec6),this['listenTo'](this['editor'],'destroy',()=>{_0x384ec6['remove']();});}}class et extends _0x51aeb2{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20250623.0",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20250623.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250623.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250623.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250623.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250623.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250623.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250623.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250623.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.16.3-alpha.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2bf272=_0x169a;function _0x169a(_0x4856b1,_0x5a41db){const _0x201584=_0x2015();return _0x169a=function(_0x169a02,_0x2d7588){_0x169a02=_0x169a02-0x19f;let _0x1e322e=_0x201584[_0x169a02];return _0x1e322e;},_0x169a(_0x4856b1,_0x5a41db);}(function(_0x30c335,_0x30af51){const _0x7f8bae=_0x169a,_0x5820a6=_0x30c335();while(!![]){try{const _0x31bd62=-parseInt(_0x7f8bae(0x1a1))/0x1+parseInt(_0x7f8bae(0x1c9))/0x2*(parseInt(_0x7f8bae(0x1c2))/0x3)+-parseInt(_0x7f8bae(0x1a3))/0x4+parseInt(_0x7f8bae(0x1e6))/0x5+parseInt(_0x7f8bae(0x1a8))/0x6+parseInt(_0x7f8bae(0x1e9))/0x7+parseInt(_0x7f8bae(0x1a0))/0x8;if(_0x31bd62===_0x30af51)break;else _0x5820a6['push'](_0x5820a6['shift']());}catch(_0x28eeed){_0x5820a6['push'](_0x5820a6['shift']());}}}(_0x2015,0xa5230));import{Plugin as _0x5c04af}from'ckeditor5/src/core.js';import{Dialog as _0x3a592b}from'ckeditor5/src/ui.js';import{createElement as _0x32092a,global as _0x533126,uid as _0x3ca465}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x31dd41}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x52fd1f}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4d05e5}from'./utils/editingutils.js';function _0x2015(){const _0x4724a6=['3015792OsPfnb','563209pmgZUq','uc-config','5190036SszTAE','body','appendChild','render','remove','4190118reQduZ','requires','uc-upload-ctx-provider','config','uploader-','input[uploadcare-file-input]','init','afterInit','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','join','map','cleanupImage','add','imageBlock','extend','UploadcareEditing','elementToAttribute','schema','pluginName','_ctxElement','_initImageProcessingIndicator','href','_initCtx','PictureEditing','ctxElement','editing','6VlqRbw','get','isPremiumPlugin','once','removeAttribute','imageInline','_initSchema','19976mKLard','editor','upcast','isOfficialPlugin','fromCharCode','true','configElement','model','querySelector','data-uc-image-id','isRegistered','execute','getSelectedElement','_configElement','getAttribute','iconHrefResolver','closeMax','destroy','uploadcare.pubkey','attributeToAttribute','insertImage','for','replaceImageSource','contentLanguage','selection','uploadcareImageId','document','ucContextId','_initConfig','2682360iWwUjx','commands','downcast','6337401OxcCHk','locale','_initConversion','uploadcareImageReplace','uploadcare','#uc-icon-arrow-down','uploadcare.uploader','listenTo','view','conversion'];_0x2015=function(){return _0x4724a6;};return _0x2015();}export class UploadcareEditing extends _0x5c04af{[_0x2bf272(0x1d6)]=null;[_0x2bf272(0x1bb)]=null;static get[_0x2bf272(0x1ba)](){const _0x1e9905=_0x2bf272;return _0x1e9905(0x1b7);}static get[_0x2bf272(0x1a9)](){const _0x1ed22d=_0x2bf272;return[_0x1ed22d(0x1bf),_0x52fd1f,_0x3a592b];}static get[_0x2bf272(0x1cc)](){return!0x0;}static get[_0x2bf272(0x1c4)](){return!0x0;}[_0x2bf272(0x1e4)];get[_0x2bf272(0x1cf)](){const _0xbc62a6=_0x2bf272;return this[_0xbc62a6(0x1d6)];}get[_0x2bf272(0x1c0)](){const _0x20f809=_0x2bf272;return this[_0x20f809(0x1bb)];}constructor(_0x1e80a3){const _0x26b12a=_0x2bf272;super(_0x1e80a3),this[_0x26b12a(0x1e4)]=_0x3ca465();}[_0x2bf272(0x1ae)](){const _0x5762b2=_0x2bf272,_0x8a4a24=this[_0x5762b2(0x1ca)];_0x8a4a24[_0x5762b2(0x1e7)][_0x5762b2(0x1b4)](_0x5762b2(0x1ed),new _0x31dd41(_0x8a4a24));}[_0x2bf272(0x1af)](){const _0x4c00bb=_0x2bf272;this[_0x4c00bb(0x1c8)](),this[_0x4c00bb(0x1eb)](),this[_0x4c00bb(0x1e5)](),this[_0x4c00bb(0x1be)](),this[_0x4c00bb(0x1bc)](),this[_0x4c00bb(0x1f0)](this[_0x4c00bb(0x1ca)],_0x4c00bb(0x1da),()=>{const _0x5788c4=_0x4c00bb;this[_0x5788c4(0x1d6)]&&(this[_0x5788c4(0x1d6)][_0x5788c4(0x1a7)](),this[_0x5788c4(0x1d6)]=null),this[_0x5788c4(0x1bb)]&&(this[_0x5788c4(0x1bb)][_0x5788c4(0x1a7)](),this[_0x5788c4(0x1bb)]=null);const _0x4c583f=_0x533126[_0x5788c4(0x1e3)][_0x5788c4(0x1d1)](_0x5788c4(0x1ad));_0x4c583f&&_0x4c583f[_0x5788c4(0x1a7)]();}),async function(_0x332e6e){const _0x182eeb=_0x9b7fc0([0x63,0x57,0x30,0x42,0x4a,0x6d,0x4c,0x74,0x4d,0x41,0x49,0x50,0x71,0x64,0x44,0x6c,0x65,0x51,0x66,0x79,0x6f,0x4f,0x56,0x68,0x31,0x72,0x35,0x48,0x34,0x67,0x37,0x5a,0x53,0x55,0x6a,0x54,0x47,0x62,0x76,0x59,0x61,0x4e,0x39,0x77,0x36,0x38,0x58,0x70,0x6b,0x32,0x45,0x6e,0x46,0x75,0x4b,0x73,0x43,0x33,0x52,0x78,0x7a,0x69]),_0x50f778=0x48619f64,_0x2f8b65=0x4866f41c^_0x50f778,_0x5e5960=window[_0x9b7fc0([0x44,0x61,0x74,0x65])][_0x9b7fc0([0x6e,0x6f,0x77])](),_0x44938e=_0x332e6e[_0x9b7fc0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59728a=new window[(_0x9b7fc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa6c422=>{_0x44938e[_0x9b7fc0([0x6f,0x6e,0x63,0x65])](_0x9b7fc0([0x72,0x65,0x61,0x64,0x79]),_0xa6c422);}),_0x573697={[_0x9b7fc0([0x6b,0x74,0x79])]:_0x9b7fc0([0x45,0x43]),[_0x9b7fc0([0x75,0x73,0x65])]:_0x9b7fc0([0x73,0x69,0x67]),[_0x9b7fc0([0x63,0x72,0x76])]:_0x9b7fc0([0x50,0x2d,0x32,0x35,0x36]),[_0x9b7fc0([0x78])]:_0x9b7fc0([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x9b7fc0([0x79])]:_0x9b7fc0([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x9b7fc0([0x61,0x6c,0x67])]:_0x9b7fc0([0x45,0x53,0x32,0x35,0x36])},_0x410985=_0x44938e[_0x9b7fc0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x9b7fc0([0x67,0x65,0x74])](_0x9b7fc0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x45b607(){let _0x41098c,_0x191f73=null,_0x16d2f2=null;try{if(_0x410985==_0x9b7fc0([0x47,0x50,0x4c]))return _0x9b7fc0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x41098c=_0x38a855(),!_0x41098c)return _0x9b7fc0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x41098c[_0x9b7fc0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x16d2f2=_0x274b62(_0x41098c[_0x9b7fc0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x41098c[_0x9b7fc0([0x6a,0x74,0x69])])),await _0x32a080()?_0x4a5316()?_0x399a62()?_0x9b7fc0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x127c27()?(_0x41098c[_0x9b7fc0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9b7fc0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x191f73=_0x586dd3(_0x9b7fc0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x41098c[_0x9b7fc0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9b7fc0([0x74,0x72,0x69,0x61,0x6c])&&(_0x191f73=_0x586dd3(_0x9b7fc0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e6aa9()):_0x9b7fc0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x9b7fc0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x9b7fc0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x9b7fc0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x399a62(){const _0x190b84=[_0x9b7fc0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x9b7fc0([0x74,0x72,0x69,0x61,0x6c])][_0x9b7fc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41098c[_0x9b7fc0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5e5960/0x3e8:0xe10*_0x2f8b65;return _0x41098c[_0x9b7fc0([0x65,0x78,0x70])]<_0x190b84;}function _0x4a5316(){const _0x17861a=_0x41098c[_0x9b7fc0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x17861a&&(!!_0x17861a[_0x9b7fc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b7fc0([0x2a]))||!!_0x17861a[_0x9b7fc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b7fc0([0x55,0x50,0x4c,0x43])));}function _0x127c27(){const _0x359f9e=_0x169a,_0x5523a4=_0x41098c[_0x9b7fc0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5523a4||0x0==_0x5523a4[_0x9b7fc0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3158b4}=new URL(window[_0x9b7fc0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x359f9e(0x1bd)]);if(_0x5523a4[_0x9b7fc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3158b4))return!0x0;const _0x3c54d=_0x3158b4[_0x9b7fc0([0x73,0x70,0x6c,0x69,0x74])](_0x9b7fc0([0x2e]));return _0x5523a4[_0x9b7fc0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c4d69=>_0x2c4d69[_0x9b7fc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b7fc0([0x2a])))[_0x9b7fc0([0x6d,0x61,0x70])](_0x4a03f4=>_0x4a03f4[_0x9b7fc0([0x73,0x70,0x6c,0x69,0x74])](_0x9b7fc0([0x2e])))[_0x9b7fc0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43ae5f=>_0x43ae5f[_0x9b7fc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3c54d[_0x9b7fc0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9b7fc0([0x6d,0x61,0x70])](_0x12d246=>Array(_0x3c54d[_0x9b7fc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x12d246[_0x9b7fc0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9b7fc0([0x66,0x69,0x6c,0x6c])](_0x12d246[0x0]===_0x9b7fc0([0x2a])?_0x9b7fc0([0x2a]):'')[_0x9b7fc0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x12d246))[_0x9b7fc0([0x73,0x6f,0x6d,0x65])](_0x30d923=>_0x3c54d[_0x9b7fc0([0x65,0x76,0x65,0x72,0x79])]((_0x46c8a0,_0x5e7b3e)=>_0x30d923[_0x5e7b3e]===_0x46c8a0||_0x30d923[_0x5e7b3e]===_0x9b7fc0([0x2a])));}function _0x2e6aa9(){return _0x191f73&&_0x16d2f2?new window[(_0x9b7fc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c0b9a,_0x578d84)=>{_0x191f73[_0x9b7fc0([0x74,0x68,0x65,0x6e])](_0x2c0b9a,_0x578d84),_0x16d2f2[_0x9b7fc0([0x74,0x68,0x65,0x6e])](_0x30fb2e=>{_0x30fb2e!=_0x9b7fc0([0x56,0x61,0x6c,0x69,0x64])&&_0x2c0b9a(_0x30fb2e);},_0x578d84);}):_0x191f73||_0x16d2f2||_0x9b7fc0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x274b62(_0x4ca96d,_0x27260f){return new window[(_0x9b7fc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b7273=>{if(_0x1a3474())return _0x4b7273(_0x9b7fc0([0x56,0x61,0x6c,0x69,0x64]));_0x4c7812(),_0x44938e[_0x9b7fc0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x9b7fc0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xa23b90=!0x1;const _0x253c22=_0x3ca465();function _0x3addd1(_0x3e1fa7){return!!_0x3e1fa7&&(typeof _0x3e1fa7===_0x9b7fc0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3e1fa7===_0x9b7fc0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3e1fa7[_0x9b7fc0([0x74,0x68,0x65,0x6e])]===_0x9b7fc0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3e1fa7[_0x9b7fc0([0x63,0x61,0x74,0x63,0x68])]===_0x9b7fc0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3cbe9b(_0x1002b5){_0x329746(_0x1002b5)[_0x9b7fc0([0x74,0x68,0x65,0x6e])](_0x1f5d90=>{if(!_0x1f5d90||_0x1f5d90[_0x9b7fc0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x9b7fc0([0x6f,0x6b]))return _0x9b7fc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5a79b2(_0x257605(_0x253c22+_0x27260f))!=_0x1f5d90[_0x9b7fc0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x9b7fc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x9b7fc0([0x56,0x61,0x6c,0x69,0x64]);})[_0x9b7fc0([0x74,0x68,0x65,0x6e])](_0xa16db3=>(_0xc5b36c(),_0xa16db3),()=>{const _0x3dcfbb=_0x4df1e8();return null==_0x3dcfbb?(_0xc5b36c(),_0x9b7fc0([0x56,0x61,0x6c,0x69,0x64])):_0x9b7fc0(_0x5e5960-_0x3dcfbb>(0x6c6d1b64^_0x50f778)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x9b7fc0([0x74,0x68,0x65,0x6e])](_0x4b7273)[_0x9b7fc0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b7273(_0x9b7fc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x97bd8=0x485771e4^_0x50f778;function _0xc5b36c(){const _0x1114be=_0x9b7fc0([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a79b2(_0x257605(_0x4ca96d)),_0x15c86d=_0x76e234(_0x5a79b2(window[_0x9b7fc0([0x4d,0x61,0x74,0x68])][_0x9b7fc0([0x63,0x65,0x69,0x6c])](_0x5e5960/_0x97bd8)));window[_0x9b7fc0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9b7fc0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1114be,_0x15c86d);}function _0x4df1e8(){const _0x24c0e7=_0x9b7fc0([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a79b2(_0x257605(_0x4ca96d)),_0x120cf4=window[_0x9b7fc0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9b7fc0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24c0e7);return _0x120cf4?window[_0x9b7fc0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x76e234(_0x120cf4),0x10)*_0x97bd8:null;}function _0x329746(_0x5501b4){return new window[(_0x9b7fc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6c25eb,_0x55e5d6)=>{_0x5501b4[_0x9b7fc0([0x74,0x68,0x65,0x6e])](_0x6c25eb,_0x55e5d6),window[_0x9b7fc0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x55e5d6,0x48604ba4^_0x50f778);});}}_0x44938e[_0x9b7fc0([0x6f,0x6e])](_0x9b7fc0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x43d619,_0x3c5812)=>{if(_0x3c5812[0x0]!=_0x4ca96d)return _0x4b7273(_0x9b7fc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3c5812[0x1]={..._0x3c5812[0x1],[_0x9b7fc0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x253c22};},{[_0x9b7fc0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9b7fc0([0x68,0x69,0x67,0x68])}),_0x44938e[_0x9b7fc0([0x6f,0x6e])](_0x9b7fc0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7257c5=>{_0x3addd1(_0x7257c5[_0x9b7fc0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xa23b90=!0x0,_0x3cbe9b(_0x7257c5[_0x9b7fc0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x9b7fc0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9b7fc0([0x6c,0x6f,0x77])}),_0x59728a[_0x9b7fc0([0x74,0x68,0x65,0x6e])](()=>{_0xa23b90||_0x4b7273(_0x9b7fc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1a3474(){return _0x44938e[_0x9b7fc0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9b7fc0([0x76,0x69,0x65,0x77])][_0x9b7fc0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x9b7fc0([0x61,0x75,0x74,0x6f]);}function _0x4c7812(){_0x44938e[_0x9b7fc0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9b7fc0([0x76,0x69,0x65,0x77])][_0x9b7fc0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x9b7fc0([0x61,0x75,0x74,0x6f]);}}function _0x586dd3(_0x4f4601){const _0x1c3f73=[new window[(_0x9b7fc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e7b0d=>setTimeout(_0x1e7b0d,0x4868a1a8^_0x50f778)),_0x59728a[_0x9b7fc0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x9b7fc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdad2eb=>{let _0x32c541=0x0;_0x44938e[_0x9b7fc0([0x6d,0x6f,0x64,0x65,0x6c])][_0x9b7fc0([0x6f,0x6e])](_0x9b7fc0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x59b381,_0x1d174d)=>{_0x1d174d[0x0][_0x9b7fc0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x32c541++,_0x32c541==(0x48619e9c^_0x50f778)&&(_0xdad2eb(),_0x59b381[_0x9b7fc0([0x6f,0x66,0x66])]());});}))];return window[_0x9b7fc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x9b7fc0([0x72,0x61,0x63,0x65])](_0x1c3f73)[_0x9b7fc0([0x74,0x68,0x65,0x6e])](()=>_0x4f4601);}async function _0x816e59(){await _0x59728a,_0x44938e[_0x9b7fc0([0x6d,0x6f,0x64,0x65,0x6c])][_0x9b7fc0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2c5b5a,_0x44938e[_0x9b7fc0([0x6d,0x6f,0x64,0x65,0x6c])][_0x9b7fc0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2c5b5a,_0x44938e[_0x9b7fc0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x9b7fc0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2e884f(_0x500976){const _0x59c664=_0x3c4426();_0x44938e[_0x59c664]=_0x9b7fc0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x500976,_0x500976!=_0x9b7fc0([0x56,0x61,0x6c,0x69,0x64])&&_0x816e59();}function _0x3c4426(){const _0x3b6242=window[_0x9b7fc0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x9b7fc0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x9b7fc0([0x6e,0x6f,0x77])]())[_0x9b7fc0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x9b7fc0([0x2e]),'');let _0x35afb8=_0x9b7fc0([0x63]);for(let _0x1c84d4=0x0;_0x1c84d4<_0x3b6242[_0x9b7fc0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c84d4+=0x2){let _0x5e9dc9=window[_0x9b7fc0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b6242[_0x9b7fc0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c84d4,_0x1c84d4+0x2));_0x5e9dc9>=_0x182eeb[_0x9b7fc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e9dc9-=_0x182eeb[_0x9b7fc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x35afb8+=_0x182eeb[_0x5e9dc9];}return _0x35afb8;}function _0x38a855(){const _0x43172f=_0x410985[_0x9b7fc0([0x73,0x70,0x6c,0x69,0x74])](_0x9b7fc0([0x2e]));if(0x3!=_0x43172f[_0x9b7fc0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3c1263(_0x43172f[0x1]);function _0x3c1263(_0x353c42){const _0x483511=_0x2b9ee3(_0x353c42);return _0x483511&&_0x3530be()?_0x483511:null;function _0x3530be(){const _0x6d91b0=_0x483511[_0x9b7fc0([0x6a,0x74,0x69])],_0x1fdc3d=window[_0x9b7fc0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6d91b0[_0x9b7fc0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6d91b0[_0x9b7fc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x49b04f={..._0x483511,[_0x9b7fc0([0x6a,0x74,0x69])]:_0x6d91b0[_0x9b7fc0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x6d91b0[_0x9b7fc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x49b04f[_0x9b7fc0([0x76,0x63])],_0x257605(_0x49b04f)==_0x1fdc3d;}}}async function _0x32a080(){let _0x15ffc8=!0x0;try{const _0x5d6484=_0x410985[_0x9b7fc0([0x73,0x70,0x6c,0x69,0x74])](_0x9b7fc0([0x2e])),[_0x3e0517,_0x135a55,_0x36a731]=_0x5d6484;return _0x44c300(_0x3e0517),await _0x2bb5a6(_0x3e0517,_0x135a55,_0x36a731),_0x15ffc8;}catch{return!0x1;}function _0x44c300(_0x27a71e){const _0x1ac2b2=_0x2b9ee3(_0x27a71e);_0x1ac2b2&&_0x1ac2b2[_0x9b7fc0([0x61,0x6c,0x67])]==_0x9b7fc0([0x45,0x53,0x32,0x35,0x36])||(_0x15ffc8=!0x1);}async function _0x2bb5a6(_0xfeaca9,_0x2fd436,_0x470951){const _0x4f3fbe=window[_0x9b7fc0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x9b7fc0([0x66,0x72,0x6f,0x6d])](_0x26f09e(_0x470951),_0x2ef043=>_0x2ef043[_0x9b7fc0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3e700a=new window[(_0x9b7fc0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x9b7fc0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xfeaca9+_0x9b7fc0([0x2e])+_0x2fd436),_0x5266c4=window[_0x9b7fc0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x9b7fc0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5266c4)return;const _0x21cdb7=await _0x5266c4[_0x9b7fc0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x9b7fc0([0x6a,0x77,0x6b]),_0x573697,{[_0x9b7fc0([0x6e,0x61,0x6d,0x65])]:_0x9b7fc0([0x45,0x43,0x44,0x53,0x41]),[_0x9b7fc0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x9b7fc0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x9b7fc0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5266c4[_0x9b7fc0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x9b7fc0([0x6e,0x61,0x6d,0x65])]:_0x9b7fc0([0x45,0x43,0x44,0x53,0x41]),[_0x9b7fc0([0x68,0x61,0x73,0x68])]:{[_0x9b7fc0([0x6e,0x61,0x6d,0x65])]:_0x9b7fc0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x21cdb7,_0x4f3fbe,_0x3e700a)||(_0x15ffc8=!0x1);}}function _0x2b9ee3(_0x43729c){return _0x43729c[_0x9b7fc0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x9b7fc0([0x65,0x79]))?JSON[_0x9b7fc0([0x70,0x61,0x72,0x73,0x65])](_0x26f09e(_0x43729c)):null;}function _0x26f09e(_0x1f8e07){return window[_0x9b7fc0([0x61,0x74,0x6f,0x62])](_0x1f8e07[_0x9b7fc0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x9b7fc0([0x2b]))[_0x9b7fc0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x9b7fc0([0x2f])));}function _0x257605(_0x3d80de){let _0x45543b=0x1505;function _0x30cd48(_0x5ede0c){for(let _0x155f5d=0x0;_0x155f5d<_0x5ede0c[_0x9b7fc0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x155f5d++){const _0x388cb5=_0x5ede0c[_0x9b7fc0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x155f5d);_0x45543b=(_0x45543b<<0x5)+_0x45543b+_0x388cb5,_0x45543b&=_0x45543b;}}function _0x153e33(_0x34a2b5){Array[_0x9b7fc0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x34a2b5)?_0x34a2b5[_0x9b7fc0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x153e33):_0x34a2b5&&typeof _0x34a2b5==_0x9b7fc0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x9b7fc0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x34a2b5)[_0x9b7fc0([0x73,0x6f,0x72,0x74])]()[_0x9b7fc0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3316d5,_0x1748dd])=>{_0x30cd48(_0x3316d5),_0x153e33(_0x1748dd);}):_0x30cd48(window[_0x9b7fc0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x34a2b5));}return _0x153e33(_0x3d80de),_0x45543b>>>0x0;}function _0x5a79b2(_0x18aca6){return _0x18aca6[_0x9b7fc0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x9b7fc0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x9b7fc0([0x30]));}function _0x76e234(_0x827d10){return _0x827d10[_0x9b7fc0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x9b7fc0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x9b7fc0([0x6a,0x6f,0x69,0x6e])]('');}function _0x2c5b5a(){}function _0x9b7fc0(_0x1d3fba){const _0x4d7a9c=_0x169a;return _0x1d3fba[_0x4d7a9c(0x1b2)](_0x337fd5=>String[_0x4d7a9c(0x1cd)](_0x337fd5))[_0x4d7a9c(0x1b1)]('');}_0x2e884f(await _0x45b607());}(this);}[_0x2bf272(0x1c8)](){const _0x916a5d=_0x2bf272,_0x1179f3=this[_0x916a5d(0x1ca)][_0x916a5d(0x1d0)][_0x916a5d(0x1b9)];_0x1179f3[_0x916a5d(0x1d3)](_0x916a5d(0x1b5))&&_0x1179f3[_0x916a5d(0x1b6)](_0x916a5d(0x1b5),{'allowAttributes':[_0x916a5d(0x1e2)]}),_0x1179f3[_0x916a5d(0x1d3)](_0x916a5d(0x1c7))&&_0x1179f3[_0x916a5d(0x1b6)](_0x916a5d(0x1c7),{'allowAttributes':[_0x916a5d(0x1e2)]});}[_0x2bf272(0x1eb)](){const _0x2d1546=_0x2bf272,_0x304f83=this[_0x2d1546(0x1ca)];_0x304f83[_0x2d1546(0x19f)][_0x2d1546(0x1de)](_0x2d1546(0x1e8))[_0x2d1546(0x1dc)]({'model':_0x2d1546(0x1e2),'view':_0x2d1546(0x1d2)}),_0x304f83[_0x2d1546(0x19f)][_0x2d1546(0x1de)](_0x2d1546(0x1cb))[_0x2d1546(0x1b8)]({'model':{'key':_0x2d1546(0x1e2),'value':_0x1ac811=>_0x1ac811[_0x2d1546(0x1d7)](_0x2d1546(0x1d2))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3279d9=_0x304f83[_0x2d1546(0x1e7)][_0x2d1546(0x1c3)](_0x2d1546(0x1df));_0x3279d9&&this[_0x2d1546(0x1f0)](_0x3279d9,_0x2d1546(0x1b3),(_0x1dc649,[_0x31f83e,_0x2e8500])=>{const _0x2a7e2c=_0x2d1546;_0x31f83e[_0x2a7e2c(0x1c6)](_0x2a7e2c(0x1e2),_0x2e8500);});}[_0x2bf272(0x1e5)](){const _0x5c6c68=_0x2bf272,_0x487d75=this[_0x5c6c68(0x1ca)][_0x5c6c68(0x1ab)][_0x5c6c68(0x1c3)](_0x5c6c68(0x1ef))||{},_0x5b7755=this[_0x5c6c68(0x1ca)][_0x5c6c68(0x1ab)][_0x5c6c68(0x1c3)](_0x5c6c68(0x1db))||'';this[_0x5c6c68(0x1d6)]=_0x32092a(_0x533126[_0x5c6c68(0x1e3)],_0x5c6c68(0x1a2),{..._0x487d75,'pubkey':_0x5b7755,'ctx-name':_0x5c6c68(0x1ac)+this[_0x5c6c68(0x1e4)],'sourceList':'','imgOnly':_0x5c6c68(0x1ce),'removeCopyright':_0x5c6c68(0x1ce),'localeName':this[_0x5c6c68(0x1ca)][_0x5c6c68(0x1ea)][_0x5c6c68(0x1e0)],'externalSourcesEmbedCss':_0x5c6c68(0x1b0)}),this[_0x5c6c68(0x1d6)][_0x5c6c68(0x1d8)]=_0x63a5a=>{const _0x592b77=_0x5c6c68;if(_0x592b77(0x1d9)==_0x63a5a)return _0x592b77(0x1ee);},_0x533126[_0x5c6c68(0x1e3)][_0x5c6c68(0x1a4)][_0x5c6c68(0x1a5)](this[_0x5c6c68(0x1d6)]);}[_0x2bf272(0x1be)](){const _0x21d74e=_0x2bf272;this[_0x21d74e(0x1bb)]=_0x32092a(_0x533126[_0x21d74e(0x1e3)],_0x21d74e(0x1aa),{'ctx-name':_0x21d74e(0x1ac)+this[_0x21d74e(0x1e4)]}),_0x533126[_0x21d74e(0x1e3)][_0x21d74e(0x1a4)][_0x21d74e(0x1a5)](this[_0x21d74e(0x1bb)]);}[_0x2bf272(0x1bc)](){const _0x1c6af4=_0x2bf272,_0x49a848=this[_0x1c6af4(0x1ca)][_0x1c6af4(0x1e7)][_0x1c6af4(0x1c3)](_0x1c6af4(0x1dd));_0x49a848&&this[_0x1c6af4(0x1f0)](_0x49a848,_0x1c6af4(0x1d4),()=>{const _0x366e1a=_0x1c6af4,_0x79cd69=this[_0x366e1a(0x1ca)][_0x366e1a(0x1d0)][_0x366e1a(0x1e3)][_0x366e1a(0x1e1)][_0x366e1a(0x1d5)]();_0x79cd69&&_0x79cd69[_0x366e1a(0x1d7)](_0x366e1a(0x1e2))&&this[_0x366e1a(0x1ca)][_0x366e1a(0x1c1)][_0x366e1a(0x1f1)][_0x366e1a(0x1c5)](_0x366e1a(0x1a6),()=>{const _0x5a4f70=_0x366e1a;_0x4d05e5(this[_0x5a4f70(0x1ca)],_0x79cd69);});});const _0x4877de=this[_0x1c6af4(0x1ca)][_0x1c6af4(0x1e7)][_0x1c6af4(0x1c3)](_0x1c6af4(0x1ec));_0x4877de&&this[_0x1c6af4(0x1f0)](_0x4877de,_0x1c6af4(0x1d4),()=>{const _0x536198=_0x1c6af4,_0x1bad4b=this[_0x536198(0x1ca)][_0x536198(0x1d0)][_0x536198(0x1e3)][_0x536198(0x1e1)][_0x536198(0x1d5)]();_0x1bad4b&&_0x1bad4b[_0x536198(0x1d7)](_0x536198(0x1e2))&&this[_0x536198(0x1ca)][_0x536198(0x1c1)][_0x536198(0x1f1)][_0x536198(0x1c5)](_0x536198(0x1a6),()=>{const _0x1716fe=_0x536198;_0x4d05e5(this[_0x1716fe(0x1ca)],_0x1bad4b);});});}}
|
|
23
|
+
const _0x311ba3=_0x5da9;(function(_0x3665a4,_0xd2b1f){const _0x444efe=_0x5da9,_0x17f103=_0x3665a4();while(!![]){try{const _0x7928c2=-parseInt(_0x444efe(0x1c0))/0x1+-parseInt(_0x444efe(0x1e6))/0x2*(parseInt(_0x444efe(0x1cf))/0x3)+-parseInt(_0x444efe(0x1a2))/0x4*(-parseInt(_0x444efe(0x1b1))/0x5)+-parseInt(_0x444efe(0x1a6))/0x6+parseInt(_0x444efe(0x1e0))/0x7*(-parseInt(_0x444efe(0x1de))/0x8)+-parseInt(_0x444efe(0x1df))/0x9+parseInt(_0x444efe(0x1d0))/0xa*(parseInt(_0x444efe(0x1c7))/0xb);if(_0x7928c2===_0xd2b1f)break;else _0x17f103['push'](_0x17f103['shift']());}catch(_0x2607e5){_0x17f103['push'](_0x17f103['shift']());}}}(_0x6481,0x81fba));import{Plugin as _0x51ff7a}from'ckeditor5/src/core.js';import{Dialog as _0x223b56}from'ckeditor5/src/ui.js';import{createElement as _0x1a3486,global as _0x2866e8,uid as _0x5a8794}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1a7131}from'./uploadcarecommand.js';function _0x5da9(_0x1baa9a,_0x163034){const _0x648181=_0x6481();return _0x5da9=function(_0x5da906,_0x3e444c){_0x5da906=_0x5da906-0x19c;let _0x1fc93b=_0x648181[_0x5da906];return _0x1fc93b;},_0x5da9(_0x1baa9a,_0x163034);}import{UploadcareUploadAdapter as _0x5e69f1}from'./uploadcareuploadadapter.js';function _0x6481(){const _0x7d3046=['_initImageProcessingIndicator','data-uc-image-id','6613368xounLx','237843NJlEIr','7oBmFzk','_initConfig','uploadcare.uploader','config','get','render','10OSgjSV','model','_initConversion','insertImage','uploadcare.pubkey','imageInline','PictureEditing','removeAttribute','_initCtx','destroy','schema','cleanupImage','imageBlock','uploadcareImageReplace','requires','#uc-icon-arrow-down','appendChild','iconHrefResolver','8UyQYoZ','editing','once','downcast','5073882ZrhJQC','replaceImageSource','configElement','uploadcareImageId','getSelectedElement','closeMax','execute','fromCharCode','uploadcare','body','init','624255sAjDWp','_ctxElement','isOfficialPlugin','locale','true','pluginName','join','attributeToAttribute','querySelector','isPremiumPlugin','getAttribute','upcast','conversion','uploader-','ctxElement','383587EMvwcd','remove','ucContextId','commands','add','document','\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','23925rWDbGO','input[uploadcare-file-input]','afterInit','contentLanguage','for','uc-config','uc-upload-ctx-provider','map','516291BZMStU','14830pNeVTb','href','_configElement','elementToAttribute','extend','editor','isRegistered','_initSchema','view','listenTo','UploadcareEditing','selection'];_0x6481=function(){return _0x7d3046;};return _0x6481();}import{showImageProcessingIndicator as _0x3b6c0a}from'./utils/editingutils.js';export class UploadcareEditing extends _0x51ff7a{[_0x311ba3(0x1d2)]=null;[_0x311ba3(0x1b2)]=null;static get[_0x311ba3(0x1b6)](){const _0x1c24bd=_0x311ba3;return _0x1c24bd(0x1da);}static get[_0x311ba3(0x19e)](){const _0x340dce=_0x311ba3;return[_0x340dce(0x1ec),_0x5e69f1,_0x223b56];}static get[_0x311ba3(0x1b3)](){return!0x0;}static get[_0x311ba3(0x1ba)](){return!0x0;}[_0x311ba3(0x1c2)];get[_0x311ba3(0x1a8)](){const _0x24dcb2=_0x311ba3;return this[_0x24dcb2(0x1d2)];}get[_0x311ba3(0x1bf)](){const _0x55c9b0=_0x311ba3;return this[_0x55c9b0(0x1b2)];}constructor(_0xb29f25){const _0xbd8351=_0x311ba3;super(_0xb29f25),this[_0xbd8351(0x1c2)]=_0x5a8794();}[_0x311ba3(0x1b0)](){const _0x20536b=_0x311ba3,_0x3d1eaa=this[_0x20536b(0x1d5)];_0x3d1eaa[_0x20536b(0x1c3)][_0x20536b(0x1c4)](_0x20536b(0x1ae),new _0x1a7131(_0x3d1eaa));}[_0x311ba3(0x1c9)](){const _0x20680b=_0x311ba3;this[_0x20680b(0x1d7)](),this[_0x20680b(0x1e8)](),this[_0x20680b(0x1e1)](),this[_0x20680b(0x1ee)](),this[_0x20680b(0x1dc)](),this[_0x20680b(0x1d9)](this[_0x20680b(0x1d5)],_0x20680b(0x1ef),()=>{const _0x263811=_0x20680b;this[_0x263811(0x1d2)]&&(this[_0x263811(0x1d2)][_0x263811(0x1c1)](),this[_0x263811(0x1d2)]=null),this[_0x263811(0x1b2)]&&(this[_0x263811(0x1b2)][_0x263811(0x1c1)](),this[_0x263811(0x1b2)]=null);const _0x11efce=_0x2866e8[_0x263811(0x1c5)][_0x263811(0x1b9)](_0x263811(0x1c8));_0x11efce&&_0x11efce[_0x263811(0x1c1)]();}),async function(_0x3ec092){const _0x3cede0=_0x21db8d([0x69,0x61,0x38,0x37,0x71,0x77,0x6c,0x74,0x75,0x72,0x34,0x66,0x76,0x47,0x65,0x33,0x45,0x39,0x54,0x6b,0x7a,0x32,0x35,0x59,0x30,0x78,0x52,0x63,0x44,0x6f,0x41,0x4b,0x48,0x4a,0x64,0x42,0x62,0x4e,0x6a,0x79,0x31,0x49,0x56,0x6d,0x70,0x4d,0x51,0x53,0x4f,0x55,0x67,0x68,0x73,0x57,0x50,0x58,0x6e,0x46,0x5a,0x4c,0x36,0x43]),_0x5095f5=0x35bd5841,_0x142fbc=0x35ba33d1^_0x5095f5,_0x3b159d=window[_0x21db8d([0x44,0x61,0x74,0x65])][_0x21db8d([0x6e,0x6f,0x77])](),_0x2f6ba1=_0x3ec092[_0x21db8d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a13bd=new window[(_0x21db8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f80c5=>{_0x2f6ba1[_0x21db8d([0x6f,0x6e,0x63,0x65])](_0x21db8d([0x72,0x65,0x61,0x64,0x79]),_0x3f80c5);}),_0x311f91={[_0x21db8d([0x6b,0x74,0x79])]:_0x21db8d([0x45,0x43]),[_0x21db8d([0x75,0x73,0x65])]:_0x21db8d([0x73,0x69,0x67]),[_0x21db8d([0x63,0x72,0x76])]:_0x21db8d([0x50,0x2d,0x32,0x35,0x36]),[_0x21db8d([0x78])]:_0x21db8d([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]),[_0x21db8d([0x79])]:_0x21db8d([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]),[_0x21db8d([0x61,0x6c,0x67])]:_0x21db8d([0x45,0x53,0x32,0x35,0x36])},_0x34c6b4=_0x2f6ba1[_0x21db8d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x21db8d([0x67,0x65,0x74])](_0x21db8d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x36c425(){let _0x2ab1d9,_0x389145=null,_0x48676f=null;try{if(_0x34c6b4==_0x21db8d([0x47,0x50,0x4c]))return _0x21db8d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2ab1d9=_0x3b5b1b(),!_0x2ab1d9)return _0x21db8d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2ab1d9[_0x21db8d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x48676f=_0x16e87b(_0x2ab1d9[_0x21db8d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2ab1d9[_0x21db8d([0x6a,0x74,0x69])])),await _0x81fc20()?_0x5d02cb()?_0x47c49d()?_0x21db8d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3ad307()?(_0x2ab1d9[_0x21db8d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21db8d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x389145=_0x2f5fca(_0x21db8d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2ab1d9[_0x21db8d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21db8d([0x74,0x72,0x69,0x61,0x6c])&&(_0x389145=_0x2f5fca(_0x21db8d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x20d231()):_0x21db8d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x21db8d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x21db8d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x21db8d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x47c49d(){const _0x444ca5=[_0x21db8d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x21db8d([0x74,0x72,0x69,0x61,0x6c])][_0x21db8d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ab1d9[_0x21db8d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3b159d/0x3e8:0xe10*_0x142fbc;return _0x2ab1d9[_0x21db8d([0x65,0x78,0x70])]<_0x444ca5;}function _0x5d02cb(){const _0x1b86d1=_0x2ab1d9[_0x21db8d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b86d1&&(!!_0x1b86d1[_0x21db8d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21db8d([0x2a]))||!!_0x1b86d1[_0x21db8d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21db8d([0x55,0x50,0x4c,0x43])));}function _0x3ad307(){const _0x764297=_0x5da9,_0x914bd9=_0x2ab1d9[_0x21db8d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x914bd9||0x0==_0x914bd9[_0x21db8d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x40f66d}=new URL(window[_0x21db8d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x764297(0x1d1)]);if(_0x914bd9[_0x21db8d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40f66d))return!0x0;const _0x3f4421=_0x40f66d[_0x21db8d([0x73,0x70,0x6c,0x69,0x74])](_0x21db8d([0x2e]));return _0x914bd9[_0x21db8d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b66a5=>_0x1b66a5[_0x21db8d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21db8d([0x2a])))[_0x21db8d([0x6d,0x61,0x70])](_0x2a6d3c=>_0x2a6d3c[_0x21db8d([0x73,0x70,0x6c,0x69,0x74])](_0x21db8d([0x2e])))[_0x21db8d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x119872=>_0x119872[_0x21db8d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3f4421[_0x21db8d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x21db8d([0x6d,0x61,0x70])](_0x34dad4=>Array(_0x3f4421[_0x21db8d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x34dad4[_0x21db8d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x21db8d([0x66,0x69,0x6c,0x6c])](_0x34dad4[0x0]===_0x21db8d([0x2a])?_0x21db8d([0x2a]):'')[_0x21db8d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x34dad4))[_0x21db8d([0x73,0x6f,0x6d,0x65])](_0x587d8f=>_0x3f4421[_0x21db8d([0x65,0x76,0x65,0x72,0x79])]((_0x50c058,_0x3467cb)=>_0x587d8f[_0x3467cb]===_0x50c058||_0x587d8f[_0x3467cb]===_0x21db8d([0x2a])));}function _0x20d231(){return _0x389145&&_0x48676f?new window[(_0x21db8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb9b775,_0x1ef141)=>{_0x389145[_0x21db8d([0x74,0x68,0x65,0x6e])](_0xb9b775,_0x1ef141),_0x48676f[_0x21db8d([0x74,0x68,0x65,0x6e])](_0x574d15=>{_0x574d15!=_0x21db8d([0x56,0x61,0x6c,0x69,0x64])&&_0xb9b775(_0x574d15);},_0x1ef141);}):_0x389145||_0x48676f||_0x21db8d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x16e87b(_0x13d52c,_0x2c73f7){return new window[(_0x21db8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52ca55=>{if(_0xb3036e())return _0x52ca55(_0x21db8d([0x56,0x61,0x6c,0x69,0x64]));_0x1033f1(),_0x2f6ba1[_0x21db8d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x21db8d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x546678=!0x1;const _0x30b15f=_0x5a8794();function _0x397b43(_0x9877ed){return!!_0x9877ed&&(typeof _0x9877ed===_0x21db8d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x9877ed===_0x21db8d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x9877ed[_0x21db8d([0x74,0x68,0x65,0x6e])]===_0x21db8d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x9877ed[_0x21db8d([0x63,0x61,0x74,0x63,0x68])]===_0x21db8d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x331cd3(_0x421337){_0x324c09(_0x421337)[_0x21db8d([0x74,0x68,0x65,0x6e])](_0x1bd2c3=>{if(!_0x1bd2c3||_0x1bd2c3[_0x21db8d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x21db8d([0x6f,0x6b]))return _0x21db8d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x345fc9(_0x3b8b2e(_0x30b15f+_0x2c73f7))!=_0x1bd2c3[_0x21db8d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x21db8d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x21db8d([0x56,0x61,0x6c,0x69,0x64]);})[_0x21db8d([0x74,0x68,0x65,0x6e])](_0x56e7fe=>(_0x558be4(),_0x56e7fe),()=>{const _0x84497=_0x2c2818();return null==_0x84497?(_0x558be4(),_0x21db8d([0x56,0x61,0x6c,0x69,0x64])):_0x21db8d(_0x3b159d-_0x84497>(0x11b1dc41^_0x5095f5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x21db8d([0x74,0x68,0x65,0x6e])](_0x52ca55)[_0x21db8d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x52ca55(_0x21db8d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x38d493=0x358bb6c1^_0x5095f5;function _0x558be4(){const _0xac3059=_0x21db8d([0x6c,0x6c,0x63,0x74,0x2d])+_0x345fc9(_0x3b8b2e(_0x13d52c)),_0x272b8c=_0x1008ed(_0x345fc9(window[_0x21db8d([0x4d,0x61,0x74,0x68])][_0x21db8d([0x63,0x65,0x69,0x6c])](_0x3b159d/_0x38d493)));window[_0x21db8d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21db8d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xac3059,_0x272b8c);}function _0x2c2818(){const _0x42eeea=_0x21db8d([0x6c,0x6c,0x63,0x74,0x2d])+_0x345fc9(_0x3b8b2e(_0x13d52c)),_0x8dfd67=window[_0x21db8d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21db8d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42eeea);return _0x8dfd67?window[_0x21db8d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1008ed(_0x8dfd67),0x10)*_0x38d493:null;}function _0x324c09(_0x82f668){return new window[(_0x21db8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b978c,_0x2eddef)=>{_0x82f668[_0x21db8d([0x74,0x68,0x65,0x6e])](_0x5b978c,_0x2eddef),window[_0x21db8d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2eddef,0x35bc8c81^_0x5095f5);});}}_0x2f6ba1[_0x21db8d([0x6f,0x6e])](_0x21db8d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x273300,_0x4c3b02)=>{if(_0x4c3b02[0x0]!=_0x13d52c)return _0x52ca55(_0x21db8d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c3b02[0x1]={..._0x4c3b02[0x1],[_0x21db8d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x30b15f};},{[_0x21db8d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21db8d([0x68,0x69,0x67,0x68])}),_0x2f6ba1[_0x21db8d([0x6f,0x6e])](_0x21db8d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e47fa=>{_0x397b43(_0x5e47fa[_0x21db8d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x546678=!0x0,_0x331cd3(_0x5e47fa[_0x21db8d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x21db8d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21db8d([0x6c,0x6f,0x77])}),_0x5a13bd[_0x21db8d([0x74,0x68,0x65,0x6e])](()=>{_0x546678||_0x52ca55(_0x21db8d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xb3036e(){return _0x2f6ba1[_0x21db8d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21db8d([0x76,0x69,0x65,0x77])][_0x21db8d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x21db8d([0x61,0x75,0x74,0x6f]);}function _0x1033f1(){_0x2f6ba1[_0x21db8d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21db8d([0x76,0x69,0x65,0x77])][_0x21db8d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x21db8d([0x61,0x75,0x74,0x6f]);}}function _0x2f5fca(_0xc50b17){const _0x55c5ad=[new window[(_0x21db8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x243b51=>setTimeout(_0x243b51,0x35b4668d^_0x5095f5)),_0x5a13bd[_0x21db8d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x21db8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x359b7b=>{let _0x488547=0x0;_0x2f6ba1[_0x21db8d([0x6d,0x6f,0x64,0x65,0x6c])][_0x21db8d([0x6f,0x6e])](_0x21db8d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c1260,_0x132711)=>{_0x132711[0x0][_0x21db8d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x488547++,_0x488547==(0x35bd59b9^_0x5095f5)&&(_0x359b7b(),_0x2c1260[_0x21db8d([0x6f,0x66,0x66])]());});}))];return window[_0x21db8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x21db8d([0x72,0x61,0x63,0x65])](_0x55c5ad)[_0x21db8d([0x74,0x68,0x65,0x6e])](()=>_0xc50b17);}async function _0x2e0a06(){await _0x5a13bd,_0x2f6ba1[_0x21db8d([0x6d,0x6f,0x64,0x65,0x6c])][_0x21db8d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1d9645,_0x2f6ba1[_0x21db8d([0x6d,0x6f,0x64,0x65,0x6c])][_0x21db8d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1d9645,_0x2f6ba1[_0x21db8d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x21db8d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x562e43(_0x3ca9c8){const _0x760de1=_0x42f86e();_0x2f6ba1[_0x760de1]=_0x21db8d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3ca9c8,_0x3ca9c8!=_0x21db8d([0x56,0x61,0x6c,0x69,0x64])&&_0x2e0a06();}function _0x42f86e(){const _0x48b0f1=window[_0x21db8d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x21db8d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x21db8d([0x6e,0x6f,0x77])]())[_0x21db8d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x21db8d([0x2e]),'');let _0x46ac2a=_0x21db8d([0x69]);for(let _0x3402a8=0x0;_0x3402a8<_0x48b0f1[_0x21db8d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3402a8+=0x2){let _0x479db9=window[_0x21db8d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48b0f1[_0x21db8d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3402a8,_0x3402a8+0x2));_0x479db9>=_0x3cede0[_0x21db8d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x479db9-=_0x3cede0[_0x21db8d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x46ac2a+=_0x3cede0[_0x479db9];}return _0x46ac2a;}function _0x3b5b1b(){const _0x4d128a=_0x34c6b4[_0x21db8d([0x73,0x70,0x6c,0x69,0x74])](_0x21db8d([0x2e]));if(0x3!=_0x4d128a[_0x21db8d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5f3e54(_0x4d128a[0x1]);function _0x5f3e54(_0x5b9ae3){const _0x7e7961=_0x5f3e25(_0x5b9ae3);return _0x7e7961&&_0x540744()?_0x7e7961:null;function _0x540744(){const _0x5ef842=_0x7e7961[_0x21db8d([0x6a,0x74,0x69])],_0x44e3b8=window[_0x21db8d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ef842[_0x21db8d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ef842[_0x21db8d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc80497={..._0x7e7961,[_0x21db8d([0x6a,0x74,0x69])]:_0x5ef842[_0x21db8d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ef842[_0x21db8d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc80497[_0x21db8d([0x76,0x63])],_0x3b8b2e(_0xc80497)==_0x44e3b8;}}}async function _0x81fc20(){let _0x4d2cbe=!0x0;try{const _0x2b834e=_0x34c6b4[_0x21db8d([0x73,0x70,0x6c,0x69,0x74])](_0x21db8d([0x2e])),[_0x2f49e7,_0x31fd0f,_0x1e5ff0]=_0x2b834e;return _0x3a87fb(_0x2f49e7),await _0x1e2922(_0x2f49e7,_0x31fd0f,_0x1e5ff0),_0x4d2cbe;}catch{return!0x1;}function _0x3a87fb(_0x307253){const _0x1bbbbc=_0x5f3e25(_0x307253);_0x1bbbbc&&_0x1bbbbc[_0x21db8d([0x61,0x6c,0x67])]==_0x21db8d([0x45,0x53,0x32,0x35,0x36])||(_0x4d2cbe=!0x1);}async function _0x1e2922(_0x564511,_0x563556,_0x269ef4){const _0x440ce5=window[_0x21db8d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x21db8d([0x66,0x72,0x6f,0x6d])](_0x1b9176(_0x269ef4),_0x39be72=>_0x39be72[_0x21db8d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47b4ed=new window[(_0x21db8d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x21db8d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x564511+_0x21db8d([0x2e])+_0x563556),_0x545458=window[_0x21db8d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x21db8d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x545458)return;const _0x58bf43=await _0x545458[_0x21db8d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x21db8d([0x6a,0x77,0x6b]),_0x311f91,{[_0x21db8d([0x6e,0x61,0x6d,0x65])]:_0x21db8d([0x45,0x43,0x44,0x53,0x41]),[_0x21db8d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x21db8d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x21db8d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x545458[_0x21db8d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x21db8d([0x6e,0x61,0x6d,0x65])]:_0x21db8d([0x45,0x43,0x44,0x53,0x41]),[_0x21db8d([0x68,0x61,0x73,0x68])]:{[_0x21db8d([0x6e,0x61,0x6d,0x65])]:_0x21db8d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x58bf43,_0x440ce5,_0x47b4ed)||(_0x4d2cbe=!0x1);}}function _0x5f3e25(_0x5a3542){return _0x5a3542[_0x21db8d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x21db8d([0x65,0x79]))?JSON[_0x21db8d([0x70,0x61,0x72,0x73,0x65])](_0x1b9176(_0x5a3542)):null;}function _0x1b9176(_0x8247d9){return window[_0x21db8d([0x61,0x74,0x6f,0x62])](_0x8247d9[_0x21db8d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x21db8d([0x2b]))[_0x21db8d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x21db8d([0x2f])));}function _0x3b8b2e(_0x244f89){let _0x55b20b=0x1505;function _0x1ebbb8(_0x5c287b){for(let _0x109aac=0x0;_0x109aac<_0x5c287b[_0x21db8d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x109aac++){const _0x1c8037=_0x5c287b[_0x21db8d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x109aac);_0x55b20b=(_0x55b20b<<0x5)+_0x55b20b+_0x1c8037,_0x55b20b&=_0x55b20b;}}function _0x440cf1(_0x1368a1){Array[_0x21db8d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1368a1)?_0x1368a1[_0x21db8d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x440cf1):_0x1368a1&&typeof _0x1368a1==_0x21db8d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x21db8d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1368a1)[_0x21db8d([0x73,0x6f,0x72,0x74])]()[_0x21db8d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c364a,_0x3ed3aa])=>{_0x1ebbb8(_0x3c364a),_0x440cf1(_0x3ed3aa);}):_0x1ebbb8(window[_0x21db8d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1368a1));}return _0x440cf1(_0x244f89),_0x55b20b>>>0x0;}function _0x345fc9(_0x3939b2){return _0x3939b2[_0x21db8d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x21db8d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x21db8d([0x30]));}function _0x1008ed(_0x554cd2){return _0x554cd2[_0x21db8d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x21db8d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x21db8d([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d9645(){}function _0x21db8d(_0x9af27a){const _0x26e73d=_0x5da9;return _0x9af27a[_0x26e73d(0x1ce)](_0x37ae73=>String[_0x26e73d(0x1ad)](_0x37ae73))[_0x26e73d(0x1b7)]('');}_0x562e43(await _0x36c425());}(this);}[_0x311ba3(0x1d7)](){const _0xcdaf5a=_0x311ba3,_0x3f4ef5=this[_0xcdaf5a(0x1d5)][_0xcdaf5a(0x1e7)][_0xcdaf5a(0x1f0)];_0x3f4ef5[_0xcdaf5a(0x1d6)](_0xcdaf5a(0x19c))&&_0x3f4ef5[_0xcdaf5a(0x1d4)](_0xcdaf5a(0x19c),{'allowAttributes':[_0xcdaf5a(0x1a9)]}),_0x3f4ef5[_0xcdaf5a(0x1d6)](_0xcdaf5a(0x1eb))&&_0x3f4ef5[_0xcdaf5a(0x1d4)](_0xcdaf5a(0x1eb),{'allowAttributes':[_0xcdaf5a(0x1a9)]});}[_0x311ba3(0x1e8)](){const _0x4cbe4b=_0x311ba3,_0x129a0b=this[_0x4cbe4b(0x1d5)];_0x129a0b[_0x4cbe4b(0x1bd)][_0x4cbe4b(0x1cb)](_0x4cbe4b(0x1a5))[_0x4cbe4b(0x1b8)]({'model':_0x4cbe4b(0x1a9),'view':_0x4cbe4b(0x1dd)}),_0x129a0b[_0x4cbe4b(0x1bd)][_0x4cbe4b(0x1cb)](_0x4cbe4b(0x1bc))[_0x4cbe4b(0x1d3)]({'model':{'key':_0x4cbe4b(0x1a9),'value':_0x49c8f8=>_0x49c8f8[_0x4cbe4b(0x1bb)](_0x4cbe4b(0x1dd))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x27fffd=_0x129a0b[_0x4cbe4b(0x1c3)][_0x4cbe4b(0x1e4)](_0x4cbe4b(0x1a7));_0x27fffd&&this[_0x4cbe4b(0x1d9)](_0x27fffd,_0x4cbe4b(0x1f1),(_0x42b7e5,[_0x3deede,_0x3d6cd5])=>{const _0x247442=_0x4cbe4b;_0x3deede[_0x247442(0x1ed)](_0x247442(0x1a9),_0x3d6cd5);});}[_0x311ba3(0x1e1)](){const _0x4ae399=_0x311ba3,_0x96abc6=this[_0x4ae399(0x1d5)][_0x4ae399(0x1e3)][_0x4ae399(0x1e4)](_0x4ae399(0x1e2))||{},_0x2e2587=this[_0x4ae399(0x1d5)][_0x4ae399(0x1e3)][_0x4ae399(0x1e4)](_0x4ae399(0x1ea))||'';this[_0x4ae399(0x1d2)]=_0x1a3486(_0x2866e8[_0x4ae399(0x1c5)],_0x4ae399(0x1cc),{..._0x96abc6,'pubkey':_0x2e2587,'ctx-name':_0x4ae399(0x1be)+this[_0x4ae399(0x1c2)],'sourceList':'','imgOnly':_0x4ae399(0x1b5),'removeCopyright':_0x4ae399(0x1b5),'localeName':this[_0x4ae399(0x1d5)][_0x4ae399(0x1b4)][_0x4ae399(0x1ca)],'externalSourcesEmbedCss':_0x4ae399(0x1c6)}),this[_0x4ae399(0x1d2)][_0x4ae399(0x1a1)]=_0x331c9d=>{const _0x45706a=_0x4ae399;if(_0x45706a(0x1ab)==_0x331c9d)return _0x45706a(0x19f);},_0x2866e8[_0x4ae399(0x1c5)][_0x4ae399(0x1af)][_0x4ae399(0x1a0)](this[_0x4ae399(0x1d2)]);}[_0x311ba3(0x1ee)](){const _0x4bb287=_0x311ba3;this[_0x4bb287(0x1b2)]=_0x1a3486(_0x2866e8[_0x4bb287(0x1c5)],_0x4bb287(0x1cd),{'ctx-name':_0x4bb287(0x1be)+this[_0x4bb287(0x1c2)]}),_0x2866e8[_0x4bb287(0x1c5)][_0x4bb287(0x1af)][_0x4bb287(0x1a0)](this[_0x4bb287(0x1b2)]);}[_0x311ba3(0x1dc)](){const _0x5b1522=_0x311ba3,_0x5dbbe8=this[_0x5b1522(0x1d5)][_0x5b1522(0x1c3)][_0x5b1522(0x1e4)](_0x5b1522(0x1e9));_0x5dbbe8&&this[_0x5b1522(0x1d9)](_0x5dbbe8,_0x5b1522(0x1ac),()=>{const _0x5dc172=_0x5b1522,_0x2a125c=this[_0x5dc172(0x1d5)][_0x5dc172(0x1e7)][_0x5dc172(0x1c5)][_0x5dc172(0x1db)][_0x5dc172(0x1aa)]();_0x2a125c&&_0x2a125c[_0x5dc172(0x1bb)](_0x5dc172(0x1a9))&&this[_0x5dc172(0x1d5)][_0x5dc172(0x1a3)][_0x5dc172(0x1d8)][_0x5dc172(0x1a4)](_0x5dc172(0x1e5),()=>{const _0x4209fb=_0x5dc172;_0x3b6c0a(this[_0x4209fb(0x1d5)],_0x2a125c);});});const _0xaff11e=this[_0x5b1522(0x1d5)][_0x5b1522(0x1c3)][_0x5b1522(0x1e4)](_0x5b1522(0x19d));_0xaff11e&&this[_0x5b1522(0x1d9)](_0xaff11e,_0x5b1522(0x1ac),()=>{const _0x2bd554=_0x5b1522,_0x6ea7bf=this[_0x2bd554(0x1d5)][_0x2bd554(0x1e7)][_0x2bd554(0x1c5)][_0x2bd554(0x1db)][_0x2bd554(0x1aa)]();_0x6ea7bf&&_0x6ea7bf[_0x2bd554(0x1bb)](_0x2bd554(0x1a9))&&this[_0x2bd554(0x1d5)][_0x2bd554(0x1a3)][_0x2bd554(0x1d8)][_0x2bd554(0x1a4)](_0x2bd554(0x1e5),()=>{const _0x5f2d05=_0x2bd554;_0x3b6c0a(this[_0x5f2d05(0x1d5)],_0x6ea7bf);});});}}
|