@ckeditor/ckeditor5-uploadcare 46.0.1-alpha.12 → 46.0.1-alpha.14
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 _0x2cf13a,Command as _0x46f6ad}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2fdab6,IconGooglePhotos as _0x5628ad,IconGoogleDrive as _0xb1866d,IconFacebook as _0x3f5b14,IconDropbox as _0x2e6df2,IconUploadcareLink as _0x34906c,IconUploadcareImageUpload as _0x17a9a4,IconError as _0x279a7d,IconUploadcareImageEdit as _0x3da54a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x54eaf0,MenuBarMenuListItemButtonView as _0x3ca89c,View as _0x19ec15,FocusCycler as _0x121575,Dialog as _0x1fb372,DialogViewPosition as _0x537efb,SpinnerView as _0x17d250,IconView as _0x1c2f63,Notification as _0x2a8bc8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x526bed,DomEmitterMixin as _0x3c4eb0,global as _0x5db020,getAncestors as _0x226a00,ObservableMixin as _0x5df921,uid as _0x13dfba,createElement as _0x18589a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x483f69}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4e396f,info as _0x64964e}from'@uploadcare/upload-client';import*as _0x3c7763 from'@uploadcare/file-uploader';var i=function(_0x5ac3a8){return _0x5ac3a8['Local']='local',_0x5ac3a8['URL']='url',_0x5ac3a8['Dropbox']='dropbox',_0x5ac3a8['GDrive']='gdrive',_0x5ac3a8['Facebook']='facebook',_0x5ac3a8['GPhotos']='gphotos',_0x5ac3a8['OneDrive']='onedrive',_0x5ac3a8;}({});function _(_0x13f038,_0x9f826a,_0x329134){const t=_0x13f038['t'],_0x4bead1=_0x13f038['t'];switch(_0x9f826a){case i['Local']:return{'text':_0x4bead1('Insert'===_0x329134?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4bead1('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x329134?_0x4bead1('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4bead1('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x329134?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x329134?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x329134?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x329134?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x329134?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x9f826a;}}class e extends _0x2cf13a{['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 _0x854ce8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x344ab1;for(const _0x405f93 in _0x854ce8){const _0x3785a1=_0x405f93,_0x106d73=_0x854ce8[_0x3785a1];if('uploadcareLicenseKeyValid'==_0x106d73||'uploadcareLicenseKeyInvalid'==_0x106d73||'uploadcareLicenseKeyExpired'==_0x106d73||'uploadcareLicenseKeyDomainLimit'==_0x106d73||'uploadcareLicenseKeyNotAllowed'==_0x106d73||'uploadcareLicenseKeyEvaluationLimit'==_0x106d73||'uploadcareLicenseKeyTrialLimit'==_0x106d73||'uploadcareLicenseKeyUsageLimit'==_0x106d73){delete _0x854ce8[_0x3785a1],_0x344ab1=_0x106d73,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x344ab1&&_0x854ce8['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x344ab1&&_0x854ce8['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x344ab1&&_0x854ce8['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x344ab1&&_0x854ce8['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x344ab1&&_0x854ce8['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x344ab1&&_0x854ce8['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x344ab1&&_0x854ce8['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x18bbdc}=this,_0x177cb8=_0x18bbdc['commands']['get']('uploadcare');if(!_0x177cb8)return;const _0x21ed83=this['_normalizeConfigSourceList'](_0x18bbdc['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x45b77c,_0x4748de)=>{const _0x4748ee=this['_getIntegrationKey'](_0x4748de['type']);return _0x45b77c[_0x4748ee]||(_0x45b77c[_0x4748ee]=[]),_0x45b77c[_0x4748ee]['push'](_0x4748de),_0x45b77c;},{});_0x18bbdc['plugins']['has']('ImageInsertUI')&&_0x18bbdc['commands']['get']('uploadcare')&&Object['entries'](_0x21ed83)['forEach'](([_0xaba372,_0x2acff6])=>{_0x18bbdc['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xaba372,'observable':()=>_0x177cb8,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2acff6),'formViewCreator':()=>this['_createDropdownButtons'](_0x2acff6),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2acff6),'override':'assetManager'!==_0xaba372});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x368421){const {locale:_0x21f95d}=this['editor'];return _0x368421['map'](_0x581e5c=>{const _0x233c1d=_(_0x21f95d,_0x581e5c,'Insert');switch(_0x581e5c){case i['Local']:return{'icon':_0x17a9a4,'type':i['Local'],..._0x233c1d};case i['URL']:return{'icon':_0x34906c,'type':i['URL'],..._0x233c1d};case i['Dropbox']:return{'icon':_0x2e6df2,'type':i['Dropbox'],..._0x233c1d};case i['Facebook']:return{'icon':_0x3f5b14,'type':i['Facebook'],..._0x233c1d};case i['GDrive']:return{'icon':_0xb1866d,'type':i['GDrive'],..._0x233c1d};case i['GPhotos']:return{'icon':_0x5628ad,'type':i['GPhotos'],..._0x233c1d};case i['OneDrive']:return{'icon':_0x2fdab6,'type':i['OneDrive'],..._0x233c1d};}});}['_getIntegrationKey'](_0x4ccc0e){switch(_0x4ccc0e){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x52951e,_0x26228f){const _0x29e6a2=this['editor'],_0x36986f=new _0x52951e(_0x29e6a2['locale']),_0x4f97d1=_0x29e6a2['commands']['get']('uploadcare');return _0x36986f['bind']('isEnabled')['to'](_0x4f97d1),_0x36986f['on']('execute',()=>{_0x4f97d1['execute'](_0x26228f);}),_0x36986f;}['_createToolbarButton'](_0x480ec5){const {locale:_0x3342a2}=this['editor'],_0x567f05=this['editor']['plugins']['get']('ImageInsertUI'),_0x3c6f73=_0x480ec5[0x0],_0xc9be53=this['_createButton'](_0x54eaf0,_0x3c6f73['type']);return _0xc9be53['icon']=_0x3c6f73['icon'],_0xc9be53['bind']('label')['to'](_0x567f05,'isImageSelected',_0x55f8fb=>_(_0x3342a2,_0x3c6f73['type'],_0x55f8fb?'Replace':'Insert')['text']),_0xc9be53['tooltip']=!0x0,_0xc9be53;}['_createDropdownButtons'](_0x53ea78){const {locale:_0x250d2c}=this['editor'],_0x38d7cf=this['editor']['plugins']['get']('ImageInsertUI');return _0x53ea78['map'](_0x5c924=>{const _0x149516=this['_createButton'](_0x54eaf0,_0x5c924['type']);return _0x149516['withText']=!0x0,_0x149516['icon']=_0x5c924['icon'],_0x149516['bind']('label')['to'](_0x38d7cf,'isImageSelected',_0x48d699=>_(_0x250d2c,_0x5c924['type'],_0x48d699?'Replace':'Insert')['text']),_0x149516;});}['_createMenuBarButtons'](_0x328b0c){return _0x328b0c['map'](_0x3c12fb=>{const _0xb0a459=this['_createButton'](_0x3ca89c,_0x3c12fb['type']);return _0xb0a459['icon']=_0x3c12fb['icon'],_0xb0a459['label']=_0x3c12fb['shortText'],_0xb0a459;});}}class F extends _0x19ec15{['focusTracker'];['focusCycler'];constructor(_0x58f050){super(_0x58f050),this['focusTracker']=new _0x526bed(),this['focusCycler']=new _0x121575({'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(_0x165599,_0x4d6322){super(_0x165599),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-'+_0x4d6322}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x5893fd,_0x21c5ec){const _0xe68e26=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4aae83=>_0x4aae83<=_0x21c5ec)['map'](_0x4e6e4a=>_0x5893fd['replace'](/\/$/,'')+'/-/resize/'+_0x4e6e4a+'x/\x20'+_0x4e6e4a+'w');return{'imageFallbackUrl':_0x5893fd,'imageSources':[{'srcset':_0xe68e26['join'](',\x20'),'sizes':'(max-width:\x20'+_0x21c5ec+'px)\x20100vw,\x20'+_0x21c5ec+'px','type':'image/webp'}]};}function C(_0x34275d,_0xb2327e,_0x3f9278){const _0x540923=_0x34275d['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x540923?parseInt(_0x540923[0x1],0xa):_0xb2327e,'height':_0x540923?parseInt(_0x540923[0x2],0xa):_0x3f9278};}function p(_0x3b2084,_0x849118){const _0x3a8c94=new(_0x3c4eb0())(),_0x4ff1a2=_0x3b2084['plugins']['get']('ImageUtils'),_0x1d60fa=_0x3b2084['editing']['mapper']['toViewElement'](_0x849118),_0x481ee0=_0x4ff1a2['findViewImgElement'](_0x1d60fa),_0x4ecc92=_0x3b2084['editing']['view']['domConverter']['viewToDom'](_0x481ee0),_0x4f8e4c=_0x849118['getAttribute']('width'),_0x2c332e=_0x849118['getAttribute']('height'),_0x565669='image-processing';_0x3b2084['editing']['view']['change'](_0x458bc9=>{_0x458bc9['addClass'](_0x565669,_0x1d60fa),_0x458bc9['setStyle']('aspect-ratio',_0x4f8e4c+'/'+_0x2c332e,_0x481ee0);}),_0x3a8c94['listenTo'](_0x4ecc92,'load',()=>{_0x3a8c94['stopListening'](_0x4ecc92,'load'),_0x3b2084['editing']['view']['change'](_0x37fdad=>{_0x37fdad['removeClass'](_0x565669,_0x1d60fa),_0x37fdad['removeStyle']('aspect-ratio',_0x481ee0);});});}function z(_0x5330eb){if(Array['isArray'](_0x5330eb)){const _0x361e4f=_0x5330eb['map'](z);return _0x345a1d=>_0x361e4f['some'](_0x457922=>_0x457922(_0x345a1d));}if('origin'==_0x5330eb){const _0xa9e509=_0x5db020['window']['location']['origin'];return _0x357e9a=>new URL(_0x357e9a,_0x5db020['document']['baseURI'])['origin']==_0xa9e509;}return'function'==typeof _0x5330eb?_0x5330eb:_0x5330eb instanceof RegExp?_0x2ce444=>!(!_0x2ce444['match'](_0x5330eb)&&!_0x2ce444['replace'](/^https?:\/\//,'')['match'](_0x5330eb)):()=>!0x1;}function S(_0x4096c7,_0x308f80){return _0x226a00(_0x4096c7['target'])['includes'](_0x308f80);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x5df921(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x48893a,_0x3f2faf,_0x3a8dc0){super(),this['_editor']=_0x48893a,this['_editing']=_0x3f2faf,this['_dialog']=_0x48893a['plugins']['get'](_0x1fb372),this['_api']=_0x3f2faf['ctxElement']['getAPI'](),this['_type']=_0x3a8dc0,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:_0x30d6e2,model:_0x4254e2}=this['_editor'],_0x4d0221=_0x4254e2['document']['selection']['getSelectedElement'](),_0x28bca9=_0x4d0221&&(_0x4d0221['is']('element','imageBlock')||_0x4d0221['is']('element','imageInline'));this['_formView']=new x(_0x30d6e2,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x17a9a4,'title':_(_0x30d6e2,this['_type'],_0x28bca9?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x537efb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5d9f70=>!S(_0x5d9f70,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1c9ba7}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2ff4bb=>{const _0x42382c=_0x1c9ba7['length'];for(const _0x267a5b of _0x1c9ba7){const _0x2672f3=_0x267a5b===_0x1c9ba7[_0x42382c-0x1],{cdnUrl:_0x452b20,fileInfo:_0x3a2c9c}=_0x267a5b;if(!_0x452b20||!_0x3a2c9c)continue;const {width:_0x17f94b,height:_0x213ad6}=_0x3a2c9c['imageInfo'],_0x23e680=C(_0x452b20,_0x17f94b,_0x213ad6),_0x4fdc15=k(_0x452b20,_0x23e680['width']),_0x1ac9c3={'id':_0x3a2c9c['uuid'],'type':'image','attributes':{'imageDimension':_0x23e680,..._0x4fdc15}};this['_insertAsset'](_0x1ac9c3,_0x2672f3,_0x2ff4bb);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1a2557=>{'idle'===_0x1a2557['detail']['status']&&!_0x1a2557['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4444c9,_0x32d016,_0x44082b){const _0x148a1a=this['_editor']['model']['document']['selection'],_0x5fc17b=_0x148a1a['getSelectedElement'](),_0x56d16d=!(!_0x5fc17b||!_0x5fc17b['is']('element','imageInline'));_0x44082b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4444c9,_0x56d16d),_0x32d016||_0x44082b['setSelection'](_0x148a1a['getLastPosition']());}['_insertImage'](_0x45121e,_0xfa3faf){const _0x90039c=this['_editor'],{imageDimension:_0x5f1464,imageFallbackUrl:_0x137da9,imageSources:_0x5af647}=_0x45121e['attributes'];_0x90039c['execute']('insertImage',{'imageType':_0xfa3faf?'imageInline':null,'source':{'uploadcareImageId':_0x45121e['id'],'src':_0x137da9,'sources':_0x5af647,..._0x5f1464}});}}class w extends _0x46f6ad{['_editing'];['_controller']=null;static get['requires'](){return[_0x1fb372,o];}constructor(_0x1301a5){super(_0x1301a5),this['_editing']=_0x1301a5['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2e9948){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2e9948);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5a3033,publicKey:_0x45f6a1,signal:_0xae21ca,onProgress:_0x257e1d}){return _0x4e396f(_0x5a3033,{'publicKey':_0x45f6a1,'store':'auto','signal':_0xae21ca,'onProgress':_0x257e1d});}static['getInfo'](_0x9ef49d,_0x1f8f47){return _0x64964e(_0x9ef49d,_0x1f8f47);}}class f extends _0x2cf13a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x483f69,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1e1ffd=this['editor'];if(!!!_0x1e1ffd['config']['get']('uploadcare'))return;_0x1e1ffd['plugins']['get'](_0x483f69)['createUploadAdapter']=_0x4b7a09=>new A(_0x4b7a09,_0x1e1ffd),_0x1e1ffd['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4ab8ce,{imageElement:_0x2a5d01,data:_0x48797c})=>{_0x1e1ffd['model']['change'](_0xf1eb08=>{_0xf1eb08['setAttribute']('uploadcareImageId',_0x48797c['uploadcareImageId'],_0x2a5d01);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x160730,_0x21e562){this['loader']=_0x160730,this['editor']=_0x21e562,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2f08f9=this['editor']['config']['get']('uploadcare.pubkey'),_0x430ac4=await this['loader']['file'];return j['upload']({'file':_0x430ac4,'publicKey':_0x2f08f9,'signal':this['controller']['signal'],'onProgress':_0x3ab792=>{_0x3ab792&&_0x3ab792['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3ab792['value']);}})['then'](async _0x312d37=>{const {imageFallbackUrl:_0x17ca1e,imageSources:_0x373c32}=k(_0x312d37['cdnUrl'],_0x312d37['imageInfo']['width']);return{'uploadcareImageId':_0x312d37['uuid'],'default':_0x17ca1e,'sources':_0x373c32};})['catch'](()=>{const _0x24c8d5=t('Cannot\x20upload\x20file:')+('\x20'+_0x430ac4['name']+'.');return Promise['reject'](_0x24c8d5);});}['abort'](){this['controller']['abort']();}}class o extends _0x2cf13a{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1fb372];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3f9846){super(_0x3f9846),this['ucContextId']=_0x13dfba();}['init'](){const _0x4a2519=this['editor'];_0x4a2519['commands']['add']('uploadcare',new w(_0x4a2519));}['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 _0x52e0ab=_0x5db020['document']['querySelector']('input[uploadcare-file-input]');_0x52e0ab&&_0x52e0ab['remove']();}),async function(_0x43786a){const _0xa765dd=_0x43656b([0x45,0x43,0x34,0x55,0x69,0x35,0x4c,0x71,0x65,0x6f,0x41,0x33,0x36,0x74,0x68,0x67,0x53,0x44,0x75,0x79,0x4b,0x32,0x6c,0x5a,0x66,0x78,0x52,0x6a,0x7a,0x49,0x58,0x56,0x47,0x42,0x6e,0x54,0x46,0x59,0x39,0x30,0x38,0x62,0x4a,0x4d,0x76,0x73,0x57,0x6b,0x70,0x72,0x77,0x4f,0x50,0x48,0x31,0x64,0x6d,0x63,0x61,0x37,0x4e,0x51]),_0x3cde35=0x9ff086f,_0x8904a1=0x9f86797^_0x3cde35,_0x1891fb=window[_0x43656b([0x44,0x61,0x74,0x65])][_0x43656b([0x6e,0x6f,0x77])](),_0x4b7fc2=_0x43786a[_0x43656b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xd3cb34=new window[(_0x43656b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57cd73=>{_0x4b7fc2[_0x43656b([0x6f,0x6e,0x63,0x65])](_0x43656b([0x72,0x65,0x61,0x64,0x79]),_0x57cd73);}),_0x3f0416={[_0x43656b([0x6b,0x74,0x79])]:_0x43656b([0x45,0x43]),[_0x43656b([0x75,0x73,0x65])]:_0x43656b([0x73,0x69,0x67]),[_0x43656b([0x63,0x72,0x76])]:_0x43656b([0x50,0x2d,0x32,0x35,0x36]),[_0x43656b([0x78])]:_0x43656b([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]),[_0x43656b([0x79])]:_0x43656b([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]),[_0x43656b([0x61,0x6c,0x67])]:_0x43656b([0x45,0x53,0x32,0x35,0x36])},_0x9f8af1=_0x4b7fc2[_0x43656b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x43656b([0x67,0x65,0x74])](_0x43656b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xd8f75(){let _0x15a0d2,_0x1fe725=null,_0x41e89b=null;try{if(_0x9f8af1==_0x43656b([0x47,0x50,0x4c]))return _0x43656b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x15a0d2=_0x70eac9(),!_0x15a0d2)return _0x43656b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x15a0d2[_0x43656b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x41e89b=_0x1a6b9f(_0x15a0d2[_0x43656b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x15a0d2[_0x43656b([0x6a,0x74,0x69])])),await _0x50816b()?_0xecb46e()?_0x3c05aa()?_0x43656b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x592ce7()?(_0x15a0d2[_0x43656b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43656b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1fe725=_0x44c40b(_0x43656b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x15a0d2[_0x43656b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43656b([0x74,0x72,0x69,0x61,0x6c])&&(_0x1fe725=_0x44c40b(_0x43656b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x37b087()):_0x43656b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x43656b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x43656b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x43656b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3c05aa(){const _0x4c94d4=[_0x43656b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x43656b([0x74,0x72,0x69,0x61,0x6c])][_0x43656b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15a0d2[_0x43656b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1891fb/0x3e8:0xe10*_0x8904a1;return _0x15a0d2[_0x43656b([0x65,0x78,0x70])]<_0x4c94d4;}function _0xecb46e(){const _0x5479aa=_0x15a0d2[_0x43656b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5479aa&&(!!_0x5479aa[_0x43656b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43656b([0x2a]))||!!_0x5479aa[_0x43656b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43656b([0x55,0x50,0x4c,0x43])));}function _0x592ce7(){const _0x61880c=_0x15a0d2[_0x43656b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x61880c||0x0==_0x61880c[_0x43656b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5952f4}=new URL(window[_0x43656b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x61880c[_0x43656b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5952f4))return!0x0;const _0x4a62a8=_0x5952f4[_0x43656b([0x73,0x70,0x6c,0x69,0x74])](_0x43656b([0x2e]));return _0x61880c[_0x43656b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xff2754=>_0xff2754[_0x43656b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43656b([0x2a])))[_0x43656b([0x6d,0x61,0x70])](_0x5d9a85=>_0x5d9a85[_0x43656b([0x73,0x70,0x6c,0x69,0x74])](_0x43656b([0x2e])))[_0x43656b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b0ad1=>_0x5b0ad1[_0x43656b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4a62a8[_0x43656b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x43656b([0x6d,0x61,0x70])](_0x162088=>Array(_0x4a62a8[_0x43656b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x162088[_0x43656b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x43656b([0x66,0x69,0x6c,0x6c])](_0x162088[0x0]===_0x43656b([0x2a])?_0x43656b([0x2a]):'')[_0x43656b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x162088))[_0x43656b([0x73,0x6f,0x6d,0x65])](_0x83c0c4=>_0x4a62a8[_0x43656b([0x65,0x76,0x65,0x72,0x79])]((_0x11d826,_0xc2b9f)=>_0x83c0c4[_0xc2b9f]===_0x11d826||_0x83c0c4[_0xc2b9f]===_0x43656b([0x2a])));}function _0x37b087(){return _0x1fe725&&_0x41e89b?new window[(_0x43656b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x276d84,_0x1abf3a)=>{_0x1fe725[_0x43656b([0x74,0x68,0x65,0x6e])](_0x276d84,_0x1abf3a),_0x41e89b[_0x43656b([0x74,0x68,0x65,0x6e])](_0x1b3659=>{_0x1b3659!=_0x43656b([0x56,0x61,0x6c,0x69,0x64])&&_0x276d84(_0x1b3659);},_0x1abf3a);}):_0x1fe725||_0x41e89b||_0x43656b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1a6b9f(_0x467443,_0x35a33c){return new window[(_0x43656b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5435a1=>{if(_0x1c75d0())return _0x5435a1(_0x43656b([0x56,0x61,0x6c,0x69,0x64]));_0x2db518(),_0x4b7fc2[_0x43656b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x43656b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x29ed14=!0x1;const _0x4c113f=_0x13dfba();function _0x4a230a(_0x3037b8){return!!_0x3037b8&&(typeof _0x3037b8===_0x43656b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3037b8===_0x43656b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3037b8[_0x43656b([0x74,0x68,0x65,0x6e])]===_0x43656b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3037b8[_0x43656b([0x63,0x61,0x74,0x63,0x68])]===_0x43656b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a46f9(_0xef5a58){_0x41d1ce(_0xef5a58)[_0x43656b([0x74,0x68,0x65,0x6e])](_0x2fce02=>{if(!_0x2fce02||_0x2fce02[_0x43656b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x43656b([0x6f,0x6b]))return _0x43656b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x400c45(_0x4d503d(_0x4c113f+_0x35a33c))!=_0x2fce02[_0x43656b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x43656b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x43656b([0x56,0x61,0x6c,0x69,0x64]);})[_0x43656b([0x74,0x68,0x65,0x6e])](_0x4b1ffc=>(_0x41ab67(),_0x4b1ffc),()=>{const _0x2021ad=_0x4d4a92();return null==_0x2021ad?(_0x41ab67(),_0x43656b([0x56,0x61,0x6c,0x69,0x64])):_0x43656b(_0x1891fb-_0x2021ad>(0x2df38c6f^_0x3cde35)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x43656b([0x74,0x68,0x65,0x6e])](_0x5435a1)[_0x43656b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5435a1(_0x43656b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x89c47d=0x9c9e6ef^_0x3cde35;function _0x41ab67(){const _0x350af7=_0x43656b([0x6c,0x6c,0x63,0x74,0x2d])+_0x400c45(_0x4d503d(_0x467443)),_0x169485=_0x5c4cac(_0x400c45(window[_0x43656b([0x4d,0x61,0x74,0x68])][_0x43656b([0x63,0x65,0x69,0x6c])](_0x1891fb/_0x89c47d)));window[_0x43656b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43656b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x350af7,_0x169485);}function _0x4d4a92(){const _0x48ea2e=_0x43656b([0x6c,0x6c,0x63,0x74,0x2d])+_0x400c45(_0x4d503d(_0x467443)),_0x1a0e13=window[_0x43656b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43656b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48ea2e);return _0x1a0e13?window[_0x43656b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c4cac(_0x1a0e13),0x10)*_0x89c47d:null;}function _0x41d1ce(_0x4663c4){return new window[(_0x43656b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x478211,_0x51791b)=>{_0x4663c4[_0x43656b([0x74,0x68,0x65,0x6e])](_0x478211,_0x51791b),window[_0x43656b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x51791b,0x9fedcaf^_0x3cde35);});}}_0x4b7fc2[_0x43656b([0x6f,0x6e])](_0x43656b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5338a7,_0x37d0eb)=>{if(_0x37d0eb[0x0]!=_0x467443)return _0x5435a1(_0x43656b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x37d0eb[0x1]={..._0x37d0eb[0x1],[_0x43656b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4c113f};},{[_0x43656b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43656b([0x68,0x69,0x67,0x68])}),_0x4b7fc2[_0x43656b([0x6f,0x6e])](_0x43656b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55fe5c=>{_0x4a230a(_0x55fe5c[_0x43656b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x29ed14=!0x0,_0x5a46f9(_0x55fe5c[_0x43656b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x43656b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43656b([0x6c,0x6f,0x77])}),_0xd3cb34[_0x43656b([0x74,0x68,0x65,0x6e])](()=>{_0x29ed14||_0x5435a1(_0x43656b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1c75d0(){return _0x4b7fc2[_0x43656b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43656b([0x76,0x69,0x65,0x77])][_0x43656b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x43656b([0x61,0x75,0x74,0x6f]);}function _0x2db518(){_0x4b7fc2[_0x43656b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43656b([0x76,0x69,0x65,0x77])][_0x43656b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x43656b([0x61,0x75,0x74,0x6f]);}}function _0x44c40b(_0xb8d5a2){const _0x3130fc=[new window[(_0x43656b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c9a10=>setTimeout(_0x5c9a10,0x9f636a3^_0x3cde35)),_0xd3cb34[_0x43656b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x43656b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5aac15=>{let _0x309899=0x0;_0x4b7fc2[_0x43656b([0x6d,0x6f,0x64,0x65,0x6c])][_0x43656b([0x6f,0x6e])](_0x43656b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x302731,_0x1c89b7)=>{_0x1c89b7[0x0][_0x43656b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x309899++,_0x309899==(0x9ff0997^_0x3cde35)&&(_0x5aac15(),_0x302731[_0x43656b([0x6f,0x66,0x66])]());});}))];return window[_0x43656b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x43656b([0x72,0x61,0x63,0x65])](_0x3130fc)[_0x43656b([0x74,0x68,0x65,0x6e])](()=>_0xb8d5a2);}async function _0x440d3e(){await _0xd3cb34,_0x4b7fc2[_0x43656b([0x6d,0x6f,0x64,0x65,0x6c])][_0x43656b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x53afc8,_0x4b7fc2[_0x43656b([0x6d,0x6f,0x64,0x65,0x6c])][_0x43656b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x53afc8,_0x4b7fc2[_0x43656b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x43656b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x39dceb(_0xf486fe){const _0x17586d=_0x6437c2();_0x4b7fc2[_0x17586d]=_0x43656b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xf486fe,_0xf486fe!=_0x43656b([0x56,0x61,0x6c,0x69,0x64])&&_0x440d3e();}function _0x6437c2(){const _0x54852c=window[_0x43656b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x43656b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x43656b([0x6e,0x6f,0x77])]())[_0x43656b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x43656b([0x2e]),'');let _0x16fa56=_0x43656b([0x45]);for(let _0x350b7c=0x0;_0x350b7c<_0x54852c[_0x43656b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x350b7c+=0x2){let _0x8774a3=window[_0x43656b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54852c[_0x43656b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x350b7c,_0x350b7c+0x2));_0x8774a3>=_0xa765dd[_0x43656b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x8774a3-=_0xa765dd[_0x43656b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x16fa56+=_0xa765dd[_0x8774a3];}return _0x16fa56;}function _0x70eac9(){const _0x516a8d=_0x9f8af1[_0x43656b([0x73,0x70,0x6c,0x69,0x74])](_0x43656b([0x2e]));if(0x3!=_0x516a8d[_0x43656b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xa808a7(_0x516a8d[0x1]);function _0xa808a7(_0x3868a6){const _0x539f93=_0x5c0961(_0x3868a6);return _0x539f93&&_0x414bbe()?_0x539f93:null;function _0x414bbe(){const _0x57ccd9=_0x539f93[_0x43656b([0x6a,0x74,0x69])],_0x66e813=window[_0x43656b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57ccd9[_0x43656b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57ccd9[_0x43656b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x485bba={..._0x539f93,[_0x43656b([0x6a,0x74,0x69])]:_0x57ccd9[_0x43656b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x57ccd9[_0x43656b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x485bba[_0x43656b([0x76,0x63])],_0x4d503d(_0x485bba)==_0x66e813;}}}async function _0x50816b(){let _0xaa2c69=!0x0;try{const _0x1eb25a=_0x9f8af1[_0x43656b([0x73,0x70,0x6c,0x69,0x74])](_0x43656b([0x2e])),[_0x2ab9c3,_0x1bca09,_0x2ec29a]=_0x1eb25a;return _0x1187a1(_0x2ab9c3),await _0x43b3d3(_0x2ab9c3,_0x1bca09,_0x2ec29a),_0xaa2c69;}catch{return!0x1;}function _0x1187a1(_0x16b98b){const _0x408cea=_0x5c0961(_0x16b98b);_0x408cea&&_0x408cea[_0x43656b([0x61,0x6c,0x67])]==_0x43656b([0x45,0x53,0x32,0x35,0x36])||(_0xaa2c69=!0x1);}async function _0x43b3d3(_0xdb35c4,_0x50a654,_0x4f278b){const _0x14794d=window[_0x43656b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x43656b([0x66,0x72,0x6f,0x6d])](_0x4a8234(_0x4f278b),_0x4e53d0=>_0x4e53d0[_0x43656b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2fc243=new window[(_0x43656b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x43656b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xdb35c4+_0x43656b([0x2e])+_0x50a654),_0x61e286=window[_0x43656b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x43656b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x61e286)return;const _0x2793cd=await _0x61e286[_0x43656b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x43656b([0x6a,0x77,0x6b]),_0x3f0416,{[_0x43656b([0x6e,0x61,0x6d,0x65])]:_0x43656b([0x45,0x43,0x44,0x53,0x41]),[_0x43656b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x43656b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x43656b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x61e286[_0x43656b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x43656b([0x6e,0x61,0x6d,0x65])]:_0x43656b([0x45,0x43,0x44,0x53,0x41]),[_0x43656b([0x68,0x61,0x73,0x68])]:{[_0x43656b([0x6e,0x61,0x6d,0x65])]:_0x43656b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2793cd,_0x14794d,_0x2fc243)||(_0xaa2c69=!0x1);}}function _0x5c0961(_0x561da1){return _0x561da1[_0x43656b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x43656b([0x65,0x79]))?JSON[_0x43656b([0x70,0x61,0x72,0x73,0x65])](_0x4a8234(_0x561da1)):null;}function _0x4a8234(_0x27c3ff){return window[_0x43656b([0x61,0x74,0x6f,0x62])](_0x27c3ff[_0x43656b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x43656b([0x2b]))[_0x43656b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x43656b([0x2f])));}function _0x4d503d(_0x2d2f25){let _0x4c58dc=0x1505;function _0x4fd9d1(_0x1d4d0c){for(let _0x22a5a1=0x0;_0x22a5a1<_0x1d4d0c[_0x43656b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22a5a1++){const _0x402c34=_0x1d4d0c[_0x43656b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x22a5a1);_0x4c58dc=(_0x4c58dc<<0x5)+_0x4c58dc+_0x402c34,_0x4c58dc&=_0x4c58dc;}}function _0x1ad783(_0x4dae1c){Array[_0x43656b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4dae1c)?_0x4dae1c[_0x43656b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ad783):_0x4dae1c&&typeof _0x4dae1c==_0x43656b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x43656b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4dae1c)[_0x43656b([0x73,0x6f,0x72,0x74])]()[_0x43656b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x371ac1,_0x5e3d03])=>{_0x4fd9d1(_0x371ac1),_0x1ad783(_0x5e3d03);}):_0x4fd9d1(window[_0x43656b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4dae1c));}return _0x1ad783(_0x2d2f25),_0x4c58dc>>>0x0;}function _0x400c45(_0x50520c){return _0x50520c[_0x43656b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x43656b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x43656b([0x30]));}function _0x5c4cac(_0xc13279){return _0xc13279[_0x43656b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x43656b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x43656b([0x6a,0x6f,0x69,0x6e])]('');}function _0x53afc8(){}function _0x43656b(_0x460680){return _0x460680['map'](_0x3671e3=>String['fromCharCode'](_0x3671e3))['join']('');}_0x39dceb(await _0xd8f75());}(this);}['_initSchema'](){const _0x50523d=this['editor']['model']['schema'];_0x50523d['isRegistered']('imageBlock')&&_0x50523d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x50523d['isRegistered']('imageInline')&&_0x50523d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2407a4=this['editor'];_0x2407a4['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2407a4['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4bcab5=>_0x4bcab5['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x57b71=_0x2407a4['commands']['get']('replaceImageSource');_0x57b71&&this['listenTo'](_0x57b71,'cleanupImage',(_0x2652bd,[_0x1d1944,_0x5627ff])=>{_0x1d1944['removeAttribute']('uploadcareImageId',_0x5627ff);});}['_initConfig'](){const _0x16544d=this['editor']['config']['get']('uploadcare.uploader')||{},_0x47635a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x18589a(_0x5db020['document'],'uc-config',{..._0x16544d,'pubkey':_0x47635a,'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']=_0x4740cd=>{if('closeMax'==_0x4740cd)return'#uc-icon-arrow-down';},_0x5db020['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x18589a(_0x5db020['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5db020['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x51d5ea=this['editor']['commands']['get']('insertImage');_0x51d5ea&&this['listenTo'](_0x51d5ea,'execute',()=>{const _0x507749=this['editor']['model']['document']['selection']['getSelectedElement']();_0x507749&&_0x507749['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x507749);});});const _0x4dc536=this['editor']['commands']['get']('uploadcareImageReplace');_0x4dc536&&this['listenTo'](_0x4dc536,'execute',()=>{const _0x3764c9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3764c9&&_0x3764c9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3764c9);});});}}class tt extends _0x2cf13a{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ac30b){super(_0x3ac30b),_0x3ac30b['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3c7763['defineComponents'](_0x3c7763);}}class ii extends _0x19ec15{constructor(_0x3e5747){super(_0x3e5747);const t=_0x3e5747['t'],_0x5a7125=this['bindTemplate'],_0x280470=new _0x17d250();_0x280470['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':[_0x280470,{'text':_0x5a7125['to']('imageUploadProgress',_0x46244b=>t('Loading\x20image...')+'\x20('+(_0x46244b||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 _0x19ec15{constructor(_0x62fcff){super(_0x62fcff);const t=_0x62fcff['t'];this['set']('errorType',null);const _0x50b5de=new _0x54eaf0(_0x62fcff);_0x50b5de['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x50b5de['withText']=!0x0,_0x50b5de['class']='ck-button-action',_0x50b5de['on']('execute',()=>{this['fire']('retry');}),_0x50b5de['bind']('isVisible')['to'](this,'errorType',_0x17234e=>'NotFound'!==_0x17234e);const _0xb81072=new _0x1c2f63();_0xb81072['content']=_0x279a7d,_0xb81072['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x17735e=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':[_0xb81072,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x17735e['to']('errorType',_0x373dd7=>t('NotFound'!==_0x373dd7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x50b5de]},{'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 _0x19ec15{constructor(_0x56b0d0,_0x5810ba){super(_0x56b0d0);const _0x1ac924=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5810ba,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1ac924['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2d4571,_0x3aa452,_0x185665){super(_0x2d4571),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2d4571),this['_errorView']=new ti(_0x2d4571),this['_editingView']=new ei(_0x2d4571,_0x185665),this['_focusableView']=new _0x19ec15(_0x2d4571),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3aa452),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'],_0x1e22f5=>{this['_addUploadcareImageEditorListeners'](_0x1e22f5);});}),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'](_0x3f5752,_0x1b427f){const _0x17c1f1='uc-cloud-image-editor',_0x52f40d=_0x3f5752['querySelector'](_0x17c1f1);if(_0x52f40d)return _0x1b427f(_0x52f40d);const _0x1ccad8=new MutationObserver(_0x24d4e6=>{const _0x2446f0=_0x24d4e6['filter'](_0x180d8d=>_0x180d8d['target']===_0x3f5752&&_0x180d8d['addedNodes']['length']>0x0&&_0x180d8d['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x17c1f1);_0x2446f0['length']&&(_0x1ccad8['disconnect'](),_0x1b427f(_0x2446f0[0x0]['addedNodes'][0x0]));});_0x1ccad8['observe'](_0x3f5752,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xfffebd){_0xfffebd['addEventListener']('apply',_0x2709cb=>{this['fire']('apply',{'imageSrc':_0x2709cb['detail']['cdnUrl']});}),_0xfffebd['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5df921(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5240f5,_0x15ce37,_0x2a1c91){super(),this['_editor']=_0x5240f5,this['_dialog']=_0x15ce37,this['_imageElement']=_0x2a1c91,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 _0x4d01fe=this['_imageElement'],_0x5cf550=_0x4d01fe['getAttribute']('uploadcareImageId'),_0x52f1b0=_0x4d01fe['getAttribute']('src');if(_0x5cf550)await this['_loadImageInfo'](_0x5cf550,_0x52f1b0);else{if(this['_imageCache']['has'](_0x52f1b0)){const _0xf042c2=this['_imageCache']['get'](_0x52f1b0);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xf042c2['url'],this['imageDimension']=_0xf042c2['dimension'],this['imageId']=_0xf042c2['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1ae352}=this['_editor'],t=_0x1ae352['t'],_0x474ada=new X(_0x1ae352,this['imageStatus'],this['_attributes']);_0x474ada['bind']('status')['to'](this,'imageStatus'),_0x474ada['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x474ada['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x474ada['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x474ada,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3da54a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x474ada,'position':_0x537efb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x474ada['focus']();},'onHide':()=>{_0x474ada['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3f0e3a=>!S(_0x3f0e3a,_0x474ada['element'])}});}['_loadImageInfo'](_0x3bd2cb,_0x4ac55a){return j['getInfo'](_0x3bd2cb,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3ad55a=>{const {width:_0x53bc80,height:_0x4d8255}=_0x3ad55a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4ac55a,this['imageDimension']={'width':_0x53bc80,'height':_0x4d8255},this['imageId']=_0x3bd2cb;})['catch'](_0x2d93b6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2d93b6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x37d41f,_0x4f1a29){return this['_getImageAsFile'](_0x37d41f)['then'](_0x33b965=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4f1a29['signal'],'file':_0x33b965,'onProgress':_0x51798b=>{_0x51798b&&_0x51798b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x51798b['value']));}}))['then'](_0x5f3766=>{const {width:_0x47ab8c,height:_0x489ed2}=_0x5f3766['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5f3766['cdnUrl'],this['imageDimension']={'width':_0x47ab8c,'height':_0x489ed2},this['imageId']=_0x5f3766['uuid'],this['imageUploadProgress']=null;const _0x2b8298=_0x37d41f['getAttribute']('src');this['_imageCache']['set'](_0x2b8298,{'id':_0x5f3766['uuid'],'url':_0x5f3766['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x59489c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x59489c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x14a9ea,_0x9d8df0){_0x14a9ea['on']('apply',(_0x19609c,_0x1fd0f2)=>{this['_replaceImage'](_0x9d8df0,_0x1fd0f2['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x14a9ea['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x14a9ea['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x760689,_0x3e084a,_0x1139ce){const _0x2a6587=this['_editor'],{width:_0x19e56c,height:_0x1bf488}=C(_0x3e084a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x57dd66,imageSources:_0x43d76c}=k(_0x3e084a,_0x19e56c);_0x2a6587['model']['change'](_0x124d50=>{if('$graveyard'===_0x760689['root']['rootName']){_0x2a6587['execute']('insertImage',{'imageType':_0x760689['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x760689['getAttributes']()),'uploadcareImageId':_0x1139ce,'src':_0x57dd66,'sources':_0x43d76c,'width':_0x19e56c,'height':_0x1bf488}});const _0x3e16c2=_0x760689['getChildren']();_0x760689=_0x2a6587['model']['document']['selection']['getSelectedElement']();for(const _0x4df713 of _0x3e16c2)_0x124d50['append'](_0x124d50['cloneElement'](_0x4df713),_0x760689);}else _0x124d50['setSelection'](_0x760689,'on'),_0x2a6587['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x760689['getAttributes']()),'uploadcareImageId':_0x1139ce,'src':_0x57dd66,'sources':_0x43d76c,'width':_0x19e56c,'height':_0x1bf488},_0x760689);_0x124d50['setSelection'](_0x760689,'on');});}async['_getImageAsFile'](_0x44ed6d){const _0xe089b7=_0x5db020['window'],_0x181a4c=_0x5db020['document']['location']['href'],_0x4316e4=new _0xe089b7['URL'](_0x44ed6d['getAttribute']('src'),_0x181a4c);if('data:'===_0x4316e4['protocol']){const _0x356784=_0x4316e4['href']['split'](','),_0x56362f=_0x356784[0x0]['match'](/:(.*?);/)[0x1],_0x56396f=_0x56362f['split']('/')[0x1],_0x434f7e=_0xe089b7['atob'](_0x356784[_0x356784['length']-0x1]);let _0x43cda4=_0x434f7e['length'];const _0x5d60f7=new _0xe089b7['Uint8Array'](_0x43cda4);for(;_0x43cda4--;)_0x5d60f7[_0x43cda4]=_0x434f7e['charCodeAt'](_0x43cda4);return new _0xe089b7['File']([_0x5d60f7],'image.'+_0x56396f,{'type':_0x56362f});}const _0xcd52=_0x4316e4['href']['split']('/'),_0x2a2311=_0xcd52[_0xcd52['length']-0x1],_0x47418b=_0x2a2311['split']('.')[0x1];return _0xe089b7['fetch'](_0x4316e4['href'])['then'](_0x34f524=>_0x34f524['clone']()['blob']())['then'](_0x17c73d=>new _0xe089b7['File']([_0x17c73d],_0x2a2311,{'type':'image/'+_0x47418b}));}}class Q extends _0x46f6ad{['imageEditController'];static get['requires'](){return[_0x1fb372];}['_isEditable'];constructor(_0x5b569a){super(_0x5b569a),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x39ca2a){const _0x34dae5=z(_0x39ca2a);return _0x1d3ca3=>!(!_0x1d3ca3||!_0x1d3ca3['is']('element','imageBlock')&&!_0x1d3ca3['is']('element','imageInline'))&&(!!_0x1d3ca3['hasAttribute']('uploadcareImageId')||!!_0x1d3ca3['hasAttribute']('src')&&_0x34dae5(_0x1d3ca3['getAttribute']('src')));}(_0x5b569a['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2cfbd0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2cfbd0);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x384b44=this['editor']['model']['document']['selection']['getSelectedElement']();_0x384b44&&(_0x384b44['is']('element','imageBlock')||_0x384b44['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x1fb372),_0x384b44),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x46f6ad{['refresh'](){const _0x500bbc=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x500bbc&&(_0x500bbc['is']('element','imageBlock')||_0x500bbc['is']('element','imageInline')));}['execute'](_0xc04652){const _0x353909=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4eef2d=>{_0x4eef2d['setAttributes'](_0xc04652,_0x353909),_0x4eef2d['removeAttribute']('srcset',_0x353909),_0x4eef2d['removeAttribute']('sizes',_0x353909);});}}class m extends _0x2cf13a{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2a8bc8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4ea926}=this;_0x4ea926['commands']['add']('uploadcareImageEdit',new Q(_0x4ea926)),_0x4ea926['commands']['add']('uploadcareImageReplace',new V(_0x4ea926));}}class g extends _0x2cf13a{['_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 _0x2f1efe=this['editor'];_0x2f1efe['ui']['componentFactory']['add']('uploadcareImageEdit',_0x56f87e=>{const _0x55ce46=_0x2f1efe['commands']['get']('uploadcareImageEdit'),_0x428554=new _0x54eaf0(_0x56f87e),t=_0x56f87e['t'];return _0x428554['set']({'icon':_0x3da54a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x428554['bind']('isEnabled')['to'](_0x55ce46),_0x428554['bind']('isOn')['to'](_0x55ce46,'isActive'),this['listenTo'](_0x428554,'execute',()=>{_0x2f1efe['execute']('uploadcareImageEdit'),_0x2f1efe['editing']['view']['focus']();}),_0x428554;}),this['_initConfig']();}['_initConfig'](){const _0x42eeaa=_0x18589a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x42eeaa),this['listenTo'](this['editor'],'destroy',()=>{_0x42eeaa['remove']();});}}class et extends _0x2cf13a{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,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0xeec603,Command as _0x14af4e}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4c6040,IconGooglePhotos as _0x243ea5,IconGoogleDrive as _0x346beb,IconFacebook as _0x4ad9f1,IconDropbox as _0x352f36,IconUploadcareLink as _0xe9746,IconUploadcareImageUpload as _0x5ebabe,IconError as _0x186bb9,IconUploadcareImageEdit as _0x1a5d96}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2b9f7f,MenuBarMenuListItemButtonView as _0x30de05,View as _0xa42b74,FocusCycler as _0x40234a,Dialog as _0x1eeebd,DialogViewPosition as _0x139913,SpinnerView as _0x4a5519,IconView as _0x402c3b,Notification as _0x1a9304}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x53567d,DomEmitterMixin as _0x187cfa,global as _0x479ee1,getAncestors as _0x4fb545,ObservableMixin as _0x1eb40b,uid as _0x4bdcb1,createElement as _0x321c11}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3caf2c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xb3073a,info as _0x47cfeb}from'@uploadcare/upload-client';import*as _0x2c5615 from'@uploadcare/file-uploader';var i=function(_0x4d1740){return _0x4d1740['Local']='local',_0x4d1740['URL']='url',_0x4d1740['Dropbox']='dropbox',_0x4d1740['GDrive']='gdrive',_0x4d1740['Facebook']='facebook',_0x4d1740['GPhotos']='gphotos',_0x4d1740['OneDrive']='onedrive',_0x4d1740;}({});function _(_0xee08c2,_0x497dbe,_0x4499f1){const t=_0xee08c2['t'],_0x33972c=_0xee08c2['t'];switch(_0x497dbe){case i['Local']:return{'text':_0x33972c('Insert'===_0x4499f1?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x33972c('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x4499f1?_0x33972c('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x33972c('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x4499f1?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x4499f1?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x4499f1?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x4499f1?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x4499f1?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x497dbe;}}class e extends _0xeec603{['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 _0x1ab81e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x14b9c9;for(const _0x403a4b in _0x1ab81e){const _0x27dacd=_0x403a4b,_0x13fbde=_0x1ab81e[_0x27dacd];if('uploadcareLicenseKeyValid'==_0x13fbde||'uploadcareLicenseKeyInvalid'==_0x13fbde||'uploadcareLicenseKeyExpired'==_0x13fbde||'uploadcareLicenseKeyDomainLimit'==_0x13fbde||'uploadcareLicenseKeyNotAllowed'==_0x13fbde||'uploadcareLicenseKeyEvaluationLimit'==_0x13fbde||'uploadcareLicenseKeyTrialLimit'==_0x13fbde||'uploadcareLicenseKeyUsageLimit'==_0x13fbde){delete _0x1ab81e[_0x27dacd],_0x14b9c9=_0x13fbde,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x14b9c9&&_0x1ab81e['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x14b9c9&&_0x1ab81e['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x14b9c9&&_0x1ab81e['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x14b9c9&&_0x1ab81e['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x14b9c9&&_0x1ab81e['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x14b9c9&&_0x1ab81e['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x14b9c9&&_0x1ab81e['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5819fb}=this,_0x588866=_0x5819fb['commands']['get']('uploadcare');if(!_0x588866)return;const _0x3d3bb2=this['_normalizeConfigSourceList'](_0x5819fb['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x7cdc0,_0x989687)=>{const _0x33c4fa=this['_getIntegrationKey'](_0x989687['type']);return _0x7cdc0[_0x33c4fa]||(_0x7cdc0[_0x33c4fa]=[]),_0x7cdc0[_0x33c4fa]['push'](_0x989687),_0x7cdc0;},{});_0x5819fb['plugins']['has']('ImageInsertUI')&&_0x5819fb['commands']['get']('uploadcare')&&Object['entries'](_0x3d3bb2)['forEach'](([_0x527304,_0x4fe74a])=>{_0x5819fb['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x527304,'observable':()=>_0x588866,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4fe74a),'formViewCreator':()=>this['_createDropdownButtons'](_0x4fe74a),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4fe74a),'override':'assetManager'!==_0x527304});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5c5d16){const {locale:_0xa82f89}=this['editor'];return _0x5c5d16['map'](_0x47cd49=>{const _0x30bee9=_(_0xa82f89,_0x47cd49,'Insert');switch(_0x47cd49){case i['Local']:return{'icon':_0x5ebabe,'type':i['Local'],..._0x30bee9};case i['URL']:return{'icon':_0xe9746,'type':i['URL'],..._0x30bee9};case i['Dropbox']:return{'icon':_0x352f36,'type':i['Dropbox'],..._0x30bee9};case i['Facebook']:return{'icon':_0x4ad9f1,'type':i['Facebook'],..._0x30bee9};case i['GDrive']:return{'icon':_0x346beb,'type':i['GDrive'],..._0x30bee9};case i['GPhotos']:return{'icon':_0x243ea5,'type':i['GPhotos'],..._0x30bee9};case i['OneDrive']:return{'icon':_0x4c6040,'type':i['OneDrive'],..._0x30bee9};}});}['_getIntegrationKey'](_0x4a8cd1){switch(_0x4a8cd1){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1f5f90,_0x2207df){const _0x4e7e06=this['editor'],_0x505d73=new _0x1f5f90(_0x4e7e06['locale']),_0x3c9d44=_0x4e7e06['commands']['get']('uploadcare');return _0x505d73['bind']('isEnabled')['to'](_0x3c9d44),_0x505d73['on']('execute',()=>{_0x3c9d44['execute'](_0x2207df);}),_0x505d73;}['_createToolbarButton'](_0x1e21f5){const {locale:_0x596186}=this['editor'],_0x4822ed=this['editor']['plugins']['get']('ImageInsertUI'),_0x47989c=_0x1e21f5[0x0],_0x3993c6=this['_createButton'](_0x2b9f7f,_0x47989c['type']);return _0x3993c6['icon']=_0x47989c['icon'],_0x3993c6['bind']('label')['to'](_0x4822ed,'isImageSelected',_0xf7b286=>_(_0x596186,_0x47989c['type'],_0xf7b286?'Replace':'Insert')['text']),_0x3993c6['tooltip']=!0x0,_0x3993c6;}['_createDropdownButtons'](_0x504703){const {locale:_0x479f24}=this['editor'],_0x54337f=this['editor']['plugins']['get']('ImageInsertUI');return _0x504703['map'](_0x5b8b79=>{const _0x1d6b9b=this['_createButton'](_0x2b9f7f,_0x5b8b79['type']);return _0x1d6b9b['withText']=!0x0,_0x1d6b9b['icon']=_0x5b8b79['icon'],_0x1d6b9b['bind']('label')['to'](_0x54337f,'isImageSelected',_0x1e6489=>_(_0x479f24,_0x5b8b79['type'],_0x1e6489?'Replace':'Insert')['text']),_0x1d6b9b;});}['_createMenuBarButtons'](_0x1decb5){return _0x1decb5['map'](_0x361a00=>{const _0x495c44=this['_createButton'](_0x30de05,_0x361a00['type']);return _0x495c44['icon']=_0x361a00['icon'],_0x495c44['label']=_0x361a00['shortText'],_0x495c44;});}}class F extends _0xa42b74{['focusTracker'];['focusCycler'];constructor(_0x4238f9){super(_0x4238f9),this['focusTracker']=new _0x53567d(),this['focusCycler']=new _0x40234a({'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(_0xa1763a,_0xf8546d){super(_0xa1763a),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-'+_0xf8546d}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x32f4da,_0x433667){const _0x39ba68=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x20333d=>_0x20333d<=_0x433667)['map'](_0x161942=>_0x32f4da['replace'](/\/$/,'')+'/-/resize/'+_0x161942+'x/\x20'+_0x161942+'w');return{'imageFallbackUrl':_0x32f4da,'imageSources':[{'srcset':_0x39ba68['join'](',\x20'),'sizes':'(max-width:\x20'+_0x433667+'px)\x20100vw,\x20'+_0x433667+'px','type':'image/webp'}]};}function C(_0x6bccee,_0x195375,_0x2a33b1){const _0x2b8c65=_0x6bccee['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2b8c65?parseInt(_0x2b8c65[0x1],0xa):_0x195375,'height':_0x2b8c65?parseInt(_0x2b8c65[0x2],0xa):_0x2a33b1};}function p(_0x40ab2d,_0x4aa17a){const _0x2fd4f2=new(_0x187cfa())(),_0x16901a=_0x40ab2d['plugins']['get']('ImageUtils'),_0xf89fa5=_0x40ab2d['editing']['mapper']['toViewElement'](_0x4aa17a),_0x193967=_0x16901a['findViewImgElement'](_0xf89fa5),_0x299c79=_0x40ab2d['editing']['view']['domConverter']['viewToDom'](_0x193967),_0x3511e1=_0x4aa17a['getAttribute']('width'),_0x321db2=_0x4aa17a['getAttribute']('height'),_0x1e729b='image-processing';_0x40ab2d['editing']['view']['change'](_0x153cfb=>{_0x153cfb['addClass'](_0x1e729b,_0xf89fa5),_0x153cfb['setStyle']('aspect-ratio',_0x3511e1+'/'+_0x321db2,_0x193967);}),_0x2fd4f2['listenTo'](_0x299c79,'load',()=>{_0x2fd4f2['stopListening'](_0x299c79,'load'),_0x40ab2d['editing']['view']['change'](_0x37e944=>{_0x37e944['removeClass'](_0x1e729b,_0xf89fa5),_0x37e944['removeStyle']('aspect-ratio',_0x193967);});});}function z(_0x4b2374){if(Array['isArray'](_0x4b2374)){const _0x467ebc=_0x4b2374['map'](z);return _0x14d23e=>_0x467ebc['some'](_0x525b0b=>_0x525b0b(_0x14d23e));}if('origin'==_0x4b2374){const _0xb1f59b=_0x479ee1['window']['location']['origin'];return _0x5d9b81=>new URL(_0x5d9b81,_0x479ee1['document']['baseURI'])['origin']==_0xb1f59b;}return'function'==typeof _0x4b2374?_0x4b2374:_0x4b2374 instanceof RegExp?_0x1bf987=>!(!_0x1bf987['match'](_0x4b2374)&&!_0x1bf987['replace'](/^https?:\/\//,'')['match'](_0x4b2374)):()=>!0x1;}function S(_0x2d2960,_0xb64473){return _0x4fb545(_0x2d2960['target'])['includes'](_0xb64473);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1eb40b(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x351e8f,_0x1f940c,_0x968371){super(),this['_editor']=_0x351e8f,this['_editing']=_0x1f940c,this['_dialog']=_0x351e8f['plugins']['get'](_0x1eeebd),this['_api']=_0x1f940c['ctxElement']['getAPI'](),this['_type']=_0x968371,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:_0xa43b8c,model:_0x4d8b27}=this['_editor'],_0x150bd2=_0x4d8b27['document']['selection']['getSelectedElement'](),_0x2a1257=_0x150bd2&&(_0x150bd2['is']('element','imageBlock')||_0x150bd2['is']('element','imageInline'));this['_formView']=new x(_0xa43b8c,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5ebabe,'title':_(_0xa43b8c,this['_type'],_0x2a1257?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x139913['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x394554=>!S(_0x394554,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1d7357}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3276f0=>{const _0x19a15b=_0x1d7357['length'];for(const _0x5ef88c of _0x1d7357){const _0x2aa810=_0x5ef88c===_0x1d7357[_0x19a15b-0x1],{cdnUrl:_0x2c915b,fileInfo:_0x39ebeb}=_0x5ef88c;if(!_0x2c915b||!_0x39ebeb)continue;const {width:_0x2a8c28,height:_0x1b1899}=_0x39ebeb['imageInfo'],_0x274b93=C(_0x2c915b,_0x2a8c28,_0x1b1899),_0x3a0553=k(_0x2c915b,_0x274b93['width']),_0x1ee03a={'id':_0x39ebeb['uuid'],'type':'image','attributes':{'imageDimension':_0x274b93,..._0x3a0553}};this['_insertAsset'](_0x1ee03a,_0x2aa810,_0x3276f0);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3ae807=>{'idle'===_0x3ae807['detail']['status']&&!_0x3ae807['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x71cb7,_0x11e377,_0x1226cf){const _0x34ca83=this['_editor']['model']['document']['selection'],_0x4fce8e=_0x34ca83['getSelectedElement'](),_0x19a4fc=!(!_0x4fce8e||!_0x4fce8e['is']('element','imageInline'));_0x1226cf['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x71cb7,_0x19a4fc),_0x11e377||_0x1226cf['setSelection'](_0x34ca83['getLastPosition']());}['_insertImage'](_0x1b05f6,_0x15a0b6){const _0x4f655d=this['_editor'],{imageDimension:_0x1d347e,imageFallbackUrl:_0x30266a,imageSources:_0x5a143f}=_0x1b05f6['attributes'];_0x4f655d['execute']('insertImage',{'imageType':_0x15a0b6?'imageInline':null,'source':{'uploadcareImageId':_0x1b05f6['id'],'src':_0x30266a,'sources':_0x5a143f,..._0x1d347e}});}}class w extends _0x14af4e{['_editing'];['_controller']=null;static get['requires'](){return[_0x1eeebd,o];}constructor(_0x283871){super(_0x283871),this['_editing']=_0x283871['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1cdef2){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1cdef2);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x46364e,publicKey:_0x246031,signal:_0x46be11,onProgress:_0x5364c4}){return _0xb3073a(_0x46364e,{'publicKey':_0x246031,'store':'auto','signal':_0x46be11,'onProgress':_0x5364c4});}static['getInfo'](_0x204578,_0x299825){return _0x47cfeb(_0x204578,_0x299825);}}class f extends _0xeec603{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3caf2c,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3f9cf8=this['editor'];if(!!!_0x3f9cf8['config']['get']('uploadcare'))return;_0x3f9cf8['plugins']['get'](_0x3caf2c)['createUploadAdapter']=_0x5d53b8=>new A(_0x5d53b8,_0x3f9cf8),_0x3f9cf8['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3c6cf5,{imageElement:_0x13b444,data:_0x274873})=>{_0x3f9cf8['model']['change'](_0x54fbeb=>{_0x54fbeb['setAttribute']('uploadcareImageId',_0x274873['uploadcareImageId'],_0x13b444);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x373a53,_0x48009f){this['loader']=_0x373a53,this['editor']=_0x48009f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4c6f4d=this['editor']['config']['get']('uploadcare.pubkey'),_0x26ad41=await this['loader']['file'];return j['upload']({'file':_0x26ad41,'publicKey':_0x4c6f4d,'signal':this['controller']['signal'],'onProgress':_0x173727=>{_0x173727&&_0x173727['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x173727['value']);}})['then'](async _0x3afc32=>{const {imageFallbackUrl:_0x86709f,imageSources:_0x572f75}=k(_0x3afc32['cdnUrl'],_0x3afc32['imageInfo']['width']);return{'uploadcareImageId':_0x3afc32['uuid'],'default':_0x86709f,'sources':_0x572f75};})['catch'](()=>{const _0x443ded=t('Cannot\x20upload\x20file:')+('\x20'+_0x26ad41['name']+'.');return Promise['reject'](_0x443ded);});}['abort'](){this['controller']['abort']();}}class o extends _0xeec603{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1eeebd];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x58ffce){super(_0x58ffce),this['ucContextId']=_0x4bdcb1();}['init'](){const _0xa14fd4=this['editor'];_0xa14fd4['commands']['add']('uploadcare',new w(_0xa14fd4));}['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 _0x349dc7=_0x479ee1['document']['querySelector']('input[uploadcare-file-input]');_0x349dc7&&_0x349dc7['remove']();}),async function(_0x3c3b4b){const _0x3e88d3=_0x5e0dda([0x4d,0x39,0x52,0x47,0x6f,0x4f,0x32,0x68,0x54,0x74,0x35,0x6e,0x34,0x66,0x49,0x42,0x6b,0x44,0x4c,0x57,0x5a,0x58,0x41,0x38,0x31,0x53,0x4e,0x72,0x76,0x61,0x7a,0x6c,0x67,0x59,0x6d,0x78,0x73,0x75,0x70,0x48,0x77,0x69,0x56,0x51,0x4a,0x4b,0x63,0x37,0x55,0x46,0x6a,0x64,0x71,0x79,0x33,0x62,0x43,0x30,0x50,0x65,0x36,0x45]),_0x3916b0=0x51f0daf,_0x2dbaf1=0x5187d87^_0x3916b0,_0x3fa954=window[_0x5e0dda([0x44,0x61,0x74,0x65])][_0x5e0dda([0x6e,0x6f,0x77])](),_0x27cf23=_0x3c3b4b[_0x5e0dda([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x50aa85=new window[(_0x5e0dda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54d91f=>{_0x27cf23[_0x5e0dda([0x6f,0x6e,0x63,0x65])](_0x5e0dda([0x72,0x65,0x61,0x64,0x79]),_0x54d91f);}),_0xc2fd8e={[_0x5e0dda([0x6b,0x74,0x79])]:_0x5e0dda([0x45,0x43]),[_0x5e0dda([0x75,0x73,0x65])]:_0x5e0dda([0x73,0x69,0x67]),[_0x5e0dda([0x63,0x72,0x76])]:_0x5e0dda([0x50,0x2d,0x32,0x35,0x36]),[_0x5e0dda([0x78])]:_0x5e0dda([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]),[_0x5e0dda([0x79])]:_0x5e0dda([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]),[_0x5e0dda([0x61,0x6c,0x67])]:_0x5e0dda([0x45,0x53,0x32,0x35,0x36])},_0x1e3016=_0x27cf23[_0x5e0dda([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5e0dda([0x67,0x65,0x74])](_0x5e0dda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e241a(){let _0x48435b,_0x574b97=null,_0x151e33=null;try{if(_0x1e3016==_0x5e0dda([0x47,0x50,0x4c]))return _0x5e0dda([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x48435b=_0x39211c(),!_0x48435b)return _0x5e0dda([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x48435b[_0x5e0dda([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x151e33=_0x30f3f7(_0x48435b[_0x5e0dda([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x48435b[_0x5e0dda([0x6a,0x74,0x69])])),await _0x58ffdc()?_0x3152e8()?_0xb78315()?_0x5e0dda([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2088c1()?(_0x48435b[_0x5e0dda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e0dda([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x574b97=_0x20dbc0(_0x5e0dda([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x48435b[_0x5e0dda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e0dda([0x74,0x72,0x69,0x61,0x6c])&&(_0x574b97=_0x20dbc0(_0x5e0dda([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x448d24()):_0x5e0dda([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5e0dda([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5e0dda([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5e0dda([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xb78315(){const _0x160086=[_0x5e0dda([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5e0dda([0x74,0x72,0x69,0x61,0x6c])][_0x5e0dda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48435b[_0x5e0dda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3fa954/0x3e8:0xe10*_0x2dbaf1;return _0x48435b[_0x5e0dda([0x65,0x78,0x70])]<_0x160086;}function _0x3152e8(){const _0x2225a7=_0x48435b[_0x5e0dda([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2225a7&&(!!_0x2225a7[_0x5e0dda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e0dda([0x2a]))||!!_0x2225a7[_0x5e0dda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e0dda([0x55,0x50,0x4c,0x43])));}function _0x2088c1(){const _0x52a018=_0x48435b[_0x5e0dda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x52a018||0x0==_0x52a018[_0x5e0dda([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4dda1b}=new URL(window[_0x5e0dda([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x52a018[_0x5e0dda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4dda1b))return!0x0;const _0x5ed1ec=_0x4dda1b[_0x5e0dda([0x73,0x70,0x6c,0x69,0x74])](_0x5e0dda([0x2e]));return _0x52a018[_0x5e0dda([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e3503=>_0x3e3503[_0x5e0dda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e0dda([0x2a])))[_0x5e0dda([0x6d,0x61,0x70])](_0x2a2583=>_0x2a2583[_0x5e0dda([0x73,0x70,0x6c,0x69,0x74])](_0x5e0dda([0x2e])))[_0x5e0dda([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x42d550=>_0x42d550[_0x5e0dda([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5ed1ec[_0x5e0dda([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e0dda([0x6d,0x61,0x70])](_0x1464f7=>Array(_0x5ed1ec[_0x5e0dda([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1464f7[_0x5e0dda([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e0dda([0x66,0x69,0x6c,0x6c])](_0x1464f7[0x0]===_0x5e0dda([0x2a])?_0x5e0dda([0x2a]):'')[_0x5e0dda([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1464f7))[_0x5e0dda([0x73,0x6f,0x6d,0x65])](_0x30e654=>_0x5ed1ec[_0x5e0dda([0x65,0x76,0x65,0x72,0x79])]((_0x14283b,_0x1d2596)=>_0x30e654[_0x1d2596]===_0x14283b||_0x30e654[_0x1d2596]===_0x5e0dda([0x2a])));}function _0x448d24(){return _0x574b97&&_0x151e33?new window[(_0x5e0dda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x49b2e8,_0x1b26b7)=>{_0x574b97[_0x5e0dda([0x74,0x68,0x65,0x6e])](_0x49b2e8,_0x1b26b7),_0x151e33[_0x5e0dda([0x74,0x68,0x65,0x6e])](_0x1203bb=>{_0x1203bb!=_0x5e0dda([0x56,0x61,0x6c,0x69,0x64])&&_0x49b2e8(_0x1203bb);},_0x1b26b7);}):_0x574b97||_0x151e33||_0x5e0dda([0x56,0x61,0x6c,0x69,0x64]);}}function _0x30f3f7(_0x1dfa6d,_0x2d086b){return new window[(_0x5e0dda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ef206=>{if(_0x22b40b())return _0x4ef206(_0x5e0dda([0x56,0x61,0x6c,0x69,0x64]));_0x459e8f(),_0x27cf23[_0x5e0dda([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5e0dda([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x122ee3=!0x1;const _0x4800e5=_0x4bdcb1();function _0xff4650(_0x28e21c){return!!_0x28e21c&&(typeof _0x28e21c===_0x5e0dda([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x28e21c===_0x5e0dda([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x28e21c[_0x5e0dda([0x74,0x68,0x65,0x6e])]===_0x5e0dda([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x28e21c[_0x5e0dda([0x63,0x61,0x74,0x63,0x68])]===_0x5e0dda([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x31c25d(_0x15629d){_0x15dc57(_0x15629d)[_0x5e0dda([0x74,0x68,0x65,0x6e])](_0x3ace23=>{if(!_0x3ace23||_0x3ace23[_0x5e0dda([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5e0dda([0x6f,0x6b]))return _0x5e0dda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1997d1(_0x151ae1(_0x4800e5+_0x2d086b))!=_0x3ace23[_0x5e0dda([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5e0dda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5e0dda([0x56,0x61,0x6c,0x69,0x64]);})[_0x5e0dda([0x74,0x68,0x65,0x6e])](_0x56b4af=>(_0x2941f1(),_0x56b4af),()=>{const _0x4217e2=_0x2ad79e();return null==_0x4217e2?(_0x2941f1(),_0x5e0dda([0x56,0x61,0x6c,0x69,0x64])):_0x5e0dda(_0x3fa954-_0x4217e2>(0x211389af^_0x3916b0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5e0dda([0x74,0x68,0x65,0x6e])](_0x4ef206)[_0x5e0dda([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ef206(_0x5e0dda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x39405d=0x529e32f^_0x3916b0;function _0x2941f1(){const _0x2d7f88=_0x5e0dda([0x6c,0x6c,0x63,0x74,0x2d])+_0x1997d1(_0x151ae1(_0x1dfa6d)),_0x2709b0=_0x53443c(_0x1997d1(window[_0x5e0dda([0x4d,0x61,0x74,0x68])][_0x5e0dda([0x63,0x65,0x69,0x6c])](_0x3fa954/_0x39405d)));window[_0x5e0dda([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e0dda([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d7f88,_0x2709b0);}function _0x2ad79e(){const _0x171403=_0x5e0dda([0x6c,0x6c,0x63,0x74,0x2d])+_0x1997d1(_0x151ae1(_0x1dfa6d)),_0x8ea602=window[_0x5e0dda([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e0dda([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x171403);return _0x8ea602?window[_0x5e0dda([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53443c(_0x8ea602),0x10)*_0x39405d:null;}function _0x15dc57(_0x274835){return new window[(_0x5e0dda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11c308,_0x497aac)=>{_0x274835[_0x5e0dda([0x74,0x68,0x65,0x6e])](_0x11c308,_0x497aac),window[_0x5e0dda([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x497aac,0x51ed96f^_0x3916b0);});}}_0x27cf23[_0x5e0dda([0x6f,0x6e])](_0x5e0dda([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3500c1,_0x2a03a4)=>{if(_0x2a03a4[0x0]!=_0x1dfa6d)return _0x4ef206(_0x5e0dda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2a03a4[0x1]={..._0x2a03a4[0x1],[_0x5e0dda([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4800e5};},{[_0x5e0dda([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e0dda([0x68,0x69,0x67,0x68])}),_0x27cf23[_0x5e0dda([0x6f,0x6e])](_0x5e0dda([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4a338e=>{_0xff4650(_0x4a338e[_0x5e0dda([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x122ee3=!0x0,_0x31c25d(_0x4a338e[_0x5e0dda([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5e0dda([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e0dda([0x6c,0x6f,0x77])}),_0x50aa85[_0x5e0dda([0x74,0x68,0x65,0x6e])](()=>{_0x122ee3||_0x4ef206(_0x5e0dda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x22b40b(){return _0x27cf23[_0x5e0dda([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e0dda([0x76,0x69,0x65,0x77])][_0x5e0dda([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5e0dda([0x61,0x75,0x74,0x6f]);}function _0x459e8f(){_0x27cf23[_0x5e0dda([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e0dda([0x76,0x69,0x65,0x77])][_0x5e0dda([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e0dda([0x61,0x75,0x74,0x6f]);}}function _0x20dbc0(_0x18ef63){const _0x54880=[new window[(_0x5e0dda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2705da=>setTimeout(_0x2705da,0x5163363^_0x3916b0)),_0x50aa85[_0x5e0dda([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5e0dda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x291873=>{let _0x485d9d=0x0;_0x27cf23[_0x5e0dda([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e0dda([0x6f,0x6e])](_0x5e0dda([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3caa75,_0x2a0c81)=>{_0x2a0c81[0x0][_0x5e0dda([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x485d9d++,_0x485d9d==(0x51f0c57^_0x3916b0)&&(_0x291873(),_0x3caa75[_0x5e0dda([0x6f,0x66,0x66])]());});}))];return window[_0x5e0dda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e0dda([0x72,0x61,0x63,0x65])](_0x54880)[_0x5e0dda([0x74,0x68,0x65,0x6e])](()=>_0x18ef63);}async function _0xd48fdb(){await _0x50aa85,_0x27cf23[_0x5e0dda([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e0dda([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ae7ec,_0x27cf23[_0x5e0dda([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e0dda([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ae7ec,_0x27cf23[_0x5e0dda([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5e0dda([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3823c8(_0x4a7491){const _0x166fe1=_0x969774();_0x27cf23[_0x166fe1]=_0x5e0dda([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4a7491,_0x4a7491!=_0x5e0dda([0x56,0x61,0x6c,0x69,0x64])&&_0xd48fdb();}function _0x969774(){const _0x44dcbb=window[_0x5e0dda([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5e0dda([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5e0dda([0x6e,0x6f,0x77])]())[_0x5e0dda([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5e0dda([0x2e]),'');let _0x3721c1=_0x5e0dda([0x4d]);for(let _0xd7a114=0x0;_0xd7a114<_0x44dcbb[_0x5e0dda([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd7a114+=0x2){let _0x31c645=window[_0x5e0dda([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44dcbb[_0x5e0dda([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd7a114,_0xd7a114+0x2));_0x31c645>=_0x3e88d3[_0x5e0dda([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x31c645-=_0x3e88d3[_0x5e0dda([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3721c1+=_0x3e88d3[_0x31c645];}return _0x3721c1;}function _0x39211c(){const _0x4e2e06=_0x1e3016[_0x5e0dda([0x73,0x70,0x6c,0x69,0x74])](_0x5e0dda([0x2e]));if(0x3!=_0x4e2e06[_0x5e0dda([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x12cf05(_0x4e2e06[0x1]);function _0x12cf05(_0x25b29c){const _0x166350=_0xaf2584(_0x25b29c);return _0x166350&&_0x3cbef5()?_0x166350:null;function _0x3cbef5(){const _0x4b96b0=_0x166350[_0x5e0dda([0x6a,0x74,0x69])],_0x333128=window[_0x5e0dda([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b96b0[_0x5e0dda([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b96b0[_0x5e0dda([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xa93d65={..._0x166350,[_0x5e0dda([0x6a,0x74,0x69])]:_0x4b96b0[_0x5e0dda([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4b96b0[_0x5e0dda([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xa93d65[_0x5e0dda([0x76,0x63])],_0x151ae1(_0xa93d65)==_0x333128;}}}async function _0x58ffdc(){let _0x1971c9=!0x0;try{const _0x2a7ecf=_0x1e3016[_0x5e0dda([0x73,0x70,0x6c,0x69,0x74])](_0x5e0dda([0x2e])),[_0x446074,_0x4aa9b0,_0x52b183]=_0x2a7ecf;return _0x588117(_0x446074),await _0x15fc0c(_0x446074,_0x4aa9b0,_0x52b183),_0x1971c9;}catch{return!0x1;}function _0x588117(_0x544723){const _0x5bbb01=_0xaf2584(_0x544723);_0x5bbb01&&_0x5bbb01[_0x5e0dda([0x61,0x6c,0x67])]==_0x5e0dda([0x45,0x53,0x32,0x35,0x36])||(_0x1971c9=!0x1);}async function _0x15fc0c(_0x2333b9,_0x4cf1b1,_0x51c7f2){const _0x10e557=window[_0x5e0dda([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5e0dda([0x66,0x72,0x6f,0x6d])](_0x58b74f(_0x51c7f2),_0x4459b1=>_0x4459b1[_0x5e0dda([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f1a06=new window[(_0x5e0dda([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5e0dda([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2333b9+_0x5e0dda([0x2e])+_0x4cf1b1),_0x1ac0c2=window[_0x5e0dda([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5e0dda([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1ac0c2)return;const _0x5c9c09=await _0x1ac0c2[_0x5e0dda([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5e0dda([0x6a,0x77,0x6b]),_0xc2fd8e,{[_0x5e0dda([0x6e,0x61,0x6d,0x65])]:_0x5e0dda([0x45,0x43,0x44,0x53,0x41]),[_0x5e0dda([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5e0dda([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5e0dda([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1ac0c2[_0x5e0dda([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5e0dda([0x6e,0x61,0x6d,0x65])]:_0x5e0dda([0x45,0x43,0x44,0x53,0x41]),[_0x5e0dda([0x68,0x61,0x73,0x68])]:{[_0x5e0dda([0x6e,0x61,0x6d,0x65])]:_0x5e0dda([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5c9c09,_0x10e557,_0x2f1a06)||(_0x1971c9=!0x1);}}function _0xaf2584(_0x1f5d3b){return _0x1f5d3b[_0x5e0dda([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5e0dda([0x65,0x79]))?JSON[_0x5e0dda([0x70,0x61,0x72,0x73,0x65])](_0x58b74f(_0x1f5d3b)):null;}function _0x58b74f(_0x425a07){return window[_0x5e0dda([0x61,0x74,0x6f,0x62])](_0x425a07[_0x5e0dda([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5e0dda([0x2b]))[_0x5e0dda([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5e0dda([0x2f])));}function _0x151ae1(_0x2f35e3){let _0x10a680=0x1505;function _0x2e15e8(_0x5f3452){for(let _0x20208b=0x0;_0x20208b<_0x5f3452[_0x5e0dda([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20208b++){const _0x28d39b=_0x5f3452[_0x5e0dda([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x20208b);_0x10a680=(_0x10a680<<0x5)+_0x10a680+_0x28d39b,_0x10a680&=_0x10a680;}}function _0x354783(_0x32236b){Array[_0x5e0dda([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x32236b)?_0x32236b[_0x5e0dda([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x354783):_0x32236b&&typeof _0x32236b==_0x5e0dda([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5e0dda([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x32236b)[_0x5e0dda([0x73,0x6f,0x72,0x74])]()[_0x5e0dda([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x13b8e5,_0x16c875])=>{_0x2e15e8(_0x13b8e5),_0x354783(_0x16c875);}):_0x2e15e8(window[_0x5e0dda([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x32236b));}return _0x354783(_0x2f35e3),_0x10a680>>>0x0;}function _0x1997d1(_0x1c5f6c){return _0x1c5f6c[_0x5e0dda([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5e0dda([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5e0dda([0x30]));}function _0x53443c(_0x1bbf3e){return _0x1bbf3e[_0x5e0dda([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5e0dda([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5e0dda([0x6a,0x6f,0x69,0x6e])]('');}function _0x4ae7ec(){}function _0x5e0dda(_0x290960){return _0x290960['map'](_0x551073=>String['fromCharCode'](_0x551073))['join']('');}_0x3823c8(await _0x4e241a());}(this);}['_initSchema'](){const _0x3375ed=this['editor']['model']['schema'];_0x3375ed['isRegistered']('imageBlock')&&_0x3375ed['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3375ed['isRegistered']('imageInline')&&_0x3375ed['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2ebe50=this['editor'];_0x2ebe50['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2ebe50['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x429455=>_0x429455['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x8c3ebc=_0x2ebe50['commands']['get']('replaceImageSource');_0x8c3ebc&&this['listenTo'](_0x8c3ebc,'cleanupImage',(_0x1f5ce5,[_0x555c35,_0x351d40])=>{_0x555c35['removeAttribute']('uploadcareImageId',_0x351d40);});}['_initConfig'](){const _0x3c4cd5=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1fc998=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x321c11(_0x479ee1['document'],'uc-config',{..._0x3c4cd5,'pubkey':_0x1fc998,'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']=_0x3304cc=>{if('closeMax'==_0x3304cc)return'#uc-icon-arrow-down';},_0x479ee1['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x321c11(_0x479ee1['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x479ee1['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x305d87=this['editor']['commands']['get']('insertImage');_0x305d87&&this['listenTo'](_0x305d87,'execute',()=>{const _0x29bebc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x29bebc&&_0x29bebc['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x29bebc);});});const _0x3cd73f=this['editor']['commands']['get']('uploadcareImageReplace');_0x3cd73f&&this['listenTo'](_0x3cd73f,'execute',()=>{const _0x16752f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x16752f&&_0x16752f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x16752f);});});}}class tt extends _0xeec603{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x8e601d){super(_0x8e601d),_0x8e601d['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2c5615['defineComponents'](_0x2c5615);}}class ii extends _0xa42b74{constructor(_0x3b1be3){super(_0x3b1be3);const t=_0x3b1be3['t'],_0x282c35=this['bindTemplate'],_0x528802=new _0x4a5519();_0x528802['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':[_0x528802,{'text':_0x282c35['to']('imageUploadProgress',_0x1aaf6e=>t('Loading\x20image...')+'\x20('+(_0x1aaf6e||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 _0xa42b74{constructor(_0x539524){super(_0x539524);const t=_0x539524['t'];this['set']('errorType',null);const _0x3c0d84=new _0x2b9f7f(_0x539524);_0x3c0d84['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3c0d84['withText']=!0x0,_0x3c0d84['class']='ck-button-action',_0x3c0d84['on']('execute',()=>{this['fire']('retry');}),_0x3c0d84['bind']('isVisible')['to'](this,'errorType',_0x5d315d=>'NotFound'!==_0x5d315d);const _0x16ffc7=new _0x402c3b();_0x16ffc7['content']=_0x186bb9,_0x16ffc7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x318b90=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':[_0x16ffc7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x318b90['to']('errorType',_0x3d2c13=>t('NotFound'!==_0x3d2c13?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3c0d84]},{'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 _0xa42b74{constructor(_0x470c47,_0x15aac2){super(_0x470c47);const _0x171cf4=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x15aac2,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x171cf4['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3dcff5,_0x308e2e,_0x7d3a9c){super(_0x3dcff5),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x3dcff5),this['_errorView']=new ti(_0x3dcff5),this['_editingView']=new ei(_0x3dcff5,_0x7d3a9c),this['_focusableView']=new _0xa42b74(_0x3dcff5),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x308e2e),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'],_0x4115af=>{this['_addUploadcareImageEditorListeners'](_0x4115af);});}),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'](_0x107694,_0x185ddf){const _0x1ee517='uc-cloud-image-editor',_0x39840b=_0x107694['querySelector'](_0x1ee517);if(_0x39840b)return _0x185ddf(_0x39840b);const _0x56ac60=new MutationObserver(_0x2173cc=>{const _0xb26457=_0x2173cc['filter'](_0x40e4bc=>_0x40e4bc['target']===_0x107694&&_0x40e4bc['addedNodes']['length']>0x0&&_0x40e4bc['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1ee517);_0xb26457['length']&&(_0x56ac60['disconnect'](),_0x185ddf(_0xb26457[0x0]['addedNodes'][0x0]));});_0x56ac60['observe'](_0x107694,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x351f70){_0x351f70['addEventListener']('apply',_0x464ed3=>{this['fire']('apply',{'imageSrc':_0x464ed3['detail']['cdnUrl']});}),_0x351f70['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1eb40b(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4af46a,_0x149f20,_0x41a086){super(),this['_editor']=_0x4af46a,this['_dialog']=_0x149f20,this['_imageElement']=_0x41a086,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 _0x2b2c06=this['_imageElement'],_0x5c3031=_0x2b2c06['getAttribute']('uploadcareImageId'),_0x173240=_0x2b2c06['getAttribute']('src');if(_0x5c3031)await this['_loadImageInfo'](_0x5c3031,_0x173240);else{if(this['_imageCache']['has'](_0x173240)){const _0x3fbe99=this['_imageCache']['get'](_0x173240);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3fbe99['url'],this['imageDimension']=_0x3fbe99['dimension'],this['imageId']=_0x3fbe99['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3a5d22}=this['_editor'],t=_0x3a5d22['t'],_0x246788=new X(_0x3a5d22,this['imageStatus'],this['_attributes']);_0x246788['bind']('status')['to'](this,'imageStatus'),_0x246788['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x246788['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x246788['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x246788,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1a5d96,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x246788,'position':_0x139913['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x246788['focus']();},'onHide':()=>{_0x246788['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x309989=>!S(_0x309989,_0x246788['element'])}});}['_loadImageInfo'](_0x97b175,_0x25e444){return j['getInfo'](_0x97b175,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1835da=>{const {width:_0x531736,height:_0x42443f}=_0x1835da['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x25e444,this['imageDimension']={'width':_0x531736,'height':_0x42443f},this['imageId']=_0x97b175;})['catch'](_0x555b29=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x555b29['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1317d9,_0x22c16c){return this['_getImageAsFile'](_0x1317d9)['then'](_0x2891ff=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x22c16c['signal'],'file':_0x2891ff,'onProgress':_0xd86f08=>{_0xd86f08&&_0xd86f08['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xd86f08['value']));}}))['then'](_0x1500c6=>{const {width:_0x1951c6,height:_0x57a612}=_0x1500c6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1500c6['cdnUrl'],this['imageDimension']={'width':_0x1951c6,'height':_0x57a612},this['imageId']=_0x1500c6['uuid'],this['imageUploadProgress']=null;const _0x2cd0c6=_0x1317d9['getAttribute']('src');this['_imageCache']['set'](_0x2cd0c6,{'id':_0x1500c6['uuid'],'url':_0x1500c6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4a4d9b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4a4d9b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x57a665,_0x233faa){_0x57a665['on']('apply',(_0x4ce369,_0x2c4575)=>{this['_replaceImage'](_0x233faa,_0x2c4575['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x57a665['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x57a665['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1e2b96,_0xae747d,_0x2639e4){const _0x4eb04d=this['_editor'],{width:_0x39600a,height:_0x4f9146}=C(_0xae747d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3127d0,imageSources:_0x5dc28e}=k(_0xae747d,_0x39600a);_0x4eb04d['model']['change'](_0x3432db=>{if('$graveyard'===_0x1e2b96['root']['rootName']){_0x4eb04d['execute']('insertImage',{'imageType':_0x1e2b96['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1e2b96['getAttributes']()),'uploadcareImageId':_0x2639e4,'src':_0x3127d0,'sources':_0x5dc28e,'width':_0x39600a,'height':_0x4f9146}});const _0x506c5c=_0x1e2b96['getChildren']();_0x1e2b96=_0x4eb04d['model']['document']['selection']['getSelectedElement']();for(const _0x597a2c of _0x506c5c)_0x3432db['append'](_0x3432db['cloneElement'](_0x597a2c),_0x1e2b96);}else _0x3432db['setSelection'](_0x1e2b96,'on'),_0x4eb04d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1e2b96['getAttributes']()),'uploadcareImageId':_0x2639e4,'src':_0x3127d0,'sources':_0x5dc28e,'width':_0x39600a,'height':_0x4f9146},_0x1e2b96);_0x3432db['setSelection'](_0x1e2b96,'on');});}async['_getImageAsFile'](_0xe01d15){const _0x1702eb=_0x479ee1['window'],_0x248d89=_0x479ee1['document']['location']['href'],_0x670a99=new _0x1702eb['URL'](_0xe01d15['getAttribute']('src'),_0x248d89);if('data:'===_0x670a99['protocol']){const _0x1965c8=_0x670a99['href']['split'](','),_0x3c10ed=_0x1965c8[0x0]['match'](/:(.*?);/)[0x1],_0x564ce4=_0x3c10ed['split']('/')[0x1],_0x2159bf=_0x1702eb['atob'](_0x1965c8[_0x1965c8['length']-0x1]);let _0x59b1a1=_0x2159bf['length'];const _0x51edd6=new _0x1702eb['Uint8Array'](_0x59b1a1);for(;_0x59b1a1--;)_0x51edd6[_0x59b1a1]=_0x2159bf['charCodeAt'](_0x59b1a1);return new _0x1702eb['File']([_0x51edd6],'image.'+_0x564ce4,{'type':_0x3c10ed});}const _0x4cc342=_0x670a99['href']['split']('/'),_0x71473b=_0x4cc342[_0x4cc342['length']-0x1],_0x16ca47=_0x71473b['split']('.')[0x1];return _0x1702eb['fetch'](_0x670a99['href'])['then'](_0x106b89=>_0x106b89['clone']()['blob']())['then'](_0x1dce84=>new _0x1702eb['File']([_0x1dce84],_0x71473b,{'type':'image/'+_0x16ca47}));}}class Q extends _0x14af4e{['imageEditController'];static get['requires'](){return[_0x1eeebd];}['_isEditable'];constructor(_0x2de983){super(_0x2de983),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xee0cc7){const _0x561133=z(_0xee0cc7);return _0x3b118f=>!(!_0x3b118f||!_0x3b118f['is']('element','imageBlock')&&!_0x3b118f['is']('element','imageInline'))&&(!!_0x3b118f['hasAttribute']('uploadcareImageId')||!!_0x3b118f['hasAttribute']('src')&&_0x561133(_0x3b118f['getAttribute']('src')));}(_0x2de983['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x218dae=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x218dae);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x23ba62=this['editor']['model']['document']['selection']['getSelectedElement']();_0x23ba62&&(_0x23ba62['is']('element','imageBlock')||_0x23ba62['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x1eeebd),_0x23ba62),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x14af4e{['refresh'](){const _0x295d64=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x295d64&&(_0x295d64['is']('element','imageBlock')||_0x295d64['is']('element','imageInline')));}['execute'](_0xbf0c7c){const _0x7e8536=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5eb1be=>{_0x5eb1be['setAttributes'](_0xbf0c7c,_0x7e8536),_0x5eb1be['removeAttribute']('srcset',_0x7e8536),_0x5eb1be['removeAttribute']('sizes',_0x7e8536);});}}class m extends _0xeec603{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1a9304,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x176078}=this;_0x176078['commands']['add']('uploadcareImageEdit',new Q(_0x176078)),_0x176078['commands']['add']('uploadcareImageReplace',new V(_0x176078));}}class g extends _0xeec603{['_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 _0x2a96c9=this['editor'];_0x2a96c9['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2e12f7=>{const _0x40f425=_0x2a96c9['commands']['get']('uploadcareImageEdit'),_0x9e65fd=new _0x2b9f7f(_0x2e12f7),t=_0x2e12f7['t'];return _0x9e65fd['set']({'icon':_0x1a5d96,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x9e65fd['bind']('isEnabled')['to'](_0x40f425),_0x9e65fd['bind']('isOn')['to'](_0x40f425,'isActive'),this['listenTo'](_0x9e65fd,'execute',()=>{_0x2a96c9['execute']('uploadcareImageEdit'),_0x2a96c9['editing']['view']['focus']();}),_0x9e65fd;}),this['_initConfig']();}['_initConfig'](){const _0x526aac=_0x321c11(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x526aac),this['listenTo'](this['editor'],'destroy',()=>{_0x526aac['remove']();});}}class et extends _0xeec603{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,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "46.0.1-alpha.
|
|
3
|
+
"version": "46.0.1-alpha.14",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "46.0.1-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "46.0.1-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-image": "46.0.1-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "46.0.1-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "46.0.1-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "46.0.1-alpha.
|
|
33
|
-
"ckeditor5": "46.0.1-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "46.0.1-alpha.14",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "46.0.1-alpha.14",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "46.0.1-alpha.14",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.14",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "46.0.1-alpha.14",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "46.0.1-alpha.14",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "46.0.1-alpha.14",
|
|
33
|
+
"ckeditor5": "46.0.1-alpha.14",
|
|
34
34
|
"@uploadcare/file-uploader": "1.17.1",
|
|
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 _0x30fc21=_0x543e;(function(_0x48fc69,_0x3a98d1){const _0x21a50f=_0x543e,_0x528bc7=_0x48fc69();while(!![]){try{const _0x54e312=-parseInt(_0x21a50f(0x174))/0x1+-parseInt(_0x21a50f(0x18c))/0x2+parseInt(_0x21a50f(0x194))/0x3*(parseInt(_0x21a50f(0x1b3))/0x4)+-parseInt(_0x21a50f(0x192))/0x5+-parseInt(_0x21a50f(0x19e))/0x6*(-parseInt(_0x21a50f(0x18a))/0x7)+parseInt(_0x21a50f(0x16c))/0x8+parseInt(_0x21a50f(0x1b2))/0x9;if(_0x54e312===_0x3a98d1)break;else _0x528bc7['push'](_0x528bc7['shift']());}catch(_0x539899){_0x528bc7['push'](_0x528bc7['shift']());}}}(_0x3b95,0xa6564));function _0x543e(_0x3eeb89,_0x3a8b19){const _0x3b950a=_0x3b95();return _0x543e=function(_0x543e7a,_0xd4961){_0x543e7a=_0x543e7a-0x16b;let _0x1f5386=_0x3b950a[_0x543e7a];return _0x1f5386;},_0x543e(_0x3eeb89,_0x3a8b19);}import{Plugin as _0x270e92}from'ckeditor5/src/core.js';import{Dialog as _0x1caf48}from'ckeditor5/src/ui.js';import{createElement as _0x3c9af7,global as _0x57462c,uid as _0x2bef6e}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x37846e}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x28338c}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xeab640}from'./utils/editingutils.js';function _0x3b95(){const _0x4315d5=['_initConfig','uploadcare.uploader','2405165usNPIP','_initConversion','3wsudoB','join','true','_initCtx','UploadcareEditing','editor','view','removeAttribute','body','data-uc-image-id','145542iGsBJP','editing','uploadcareImageId','add','imageInline','isOfficialPlugin','attributeToAttribute','_ctxElement','_configElement','imageBlock','isPremiumPlugin','contentLanguage','locale','config','closeMax','insertImage','selection','upcast','for','document','770454dyRWYE','5062048VIxvCa','map','render','querySelector','configElement','conversion','requires','once','execute','fromCharCode','afterInit','isRegistered','\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','1150736HQVWqv','cleanupImage','PictureEditing','ctxElement','uploadcareImageReplace','listenTo','_initSchema','elementToAttribute','51709OJTDFV','pluginName','init','appendChild','_initImageProcessingIndicator','remove','commands','get','input[uploadcare-file-input]','downcast','destroy','ucContextId','iconHrefResolver','href','model','uc-config','schema','uploader-','extend','replaceImageSource','#uc-icon-arrow-down','getAttribute','28coFBMb','uc-upload-ctx-provider','755860osIwCK','getSelectedElement','uploadcare','uploadcare.pubkey'];_0x3b95=function(){return _0x4315d5;};return _0x3b95();}export class UploadcareEditing extends _0x270e92{[_0x30fc21(0x1a6)]=null;[_0x30fc21(0x1a5)]=null;static get[_0x30fc21(0x175)](){const _0x1337e6=_0x30fc21;return _0x1337e6(0x198);}static get[_0x30fc21(0x1b9)](){const _0x535951=_0x30fc21;return[_0x535951(0x16e),_0x28338c,_0x1caf48];}static get[_0x30fc21(0x1a3)](){return!0x0;}static get[_0x30fc21(0x1a8)](){return!0x0;}[_0x30fc21(0x17f)];get[_0x30fc21(0x1b7)](){const _0x8fbf08=_0x30fc21;return this[_0x8fbf08(0x1a6)];}get[_0x30fc21(0x16f)](){const _0x3b73eb=_0x30fc21;return this[_0x3b73eb(0x1a5)];}constructor(_0x4f91b2){const _0x2ebb58=_0x30fc21;super(_0x4f91b2),this[_0x2ebb58(0x17f)]=_0x2bef6e();}[_0x30fc21(0x176)](){const _0x1f50bb=_0x30fc21,_0x1f1007=this[_0x1f50bb(0x199)];_0x1f1007[_0x1f50bb(0x17a)][_0x1f50bb(0x1a1)](_0x1f50bb(0x18e),new _0x37846e(_0x1f1007));}[_0x30fc21(0x1bd)](){const _0x16b7c7=_0x30fc21;this[_0x16b7c7(0x172)](),this[_0x16b7c7(0x193)](),this[_0x16b7c7(0x190)](),this[_0x16b7c7(0x197)](),this[_0x16b7c7(0x178)](),this[_0x16b7c7(0x171)](this[_0x16b7c7(0x199)],_0x16b7c7(0x17e),()=>{const _0x1c6dee=_0x16b7c7;this[_0x1c6dee(0x1a6)]&&(this[_0x1c6dee(0x1a6)][_0x1c6dee(0x179)](),this[_0x1c6dee(0x1a6)]=null),this[_0x1c6dee(0x1a5)]&&(this[_0x1c6dee(0x1a5)][_0x1c6dee(0x179)](),this[_0x1c6dee(0x1a5)]=null);const _0x54a348=_0x57462c[_0x1c6dee(0x1b1)][_0x1c6dee(0x1b6)](_0x1c6dee(0x17c));_0x54a348&&_0x54a348[_0x1c6dee(0x179)]();}),async function(_0x37a488){const _0x235d7f=_0x1aaefc([0x45,0x43,0x34,0x55,0x69,0x35,0x4c,0x71,0x65,0x6f,0x41,0x33,0x36,0x74,0x68,0x67,0x53,0x44,0x75,0x79,0x4b,0x32,0x6c,0x5a,0x66,0x78,0x52,0x6a,0x7a,0x49,0x58,0x56,0x47,0x42,0x6e,0x54,0x46,0x59,0x39,0x30,0x38,0x62,0x4a,0x4d,0x76,0x73,0x57,0x6b,0x70,0x72,0x77,0x4f,0x50,0x48,0x31,0x64,0x6d,0x63,0x61,0x37,0x4e,0x51]),_0x40f94f=0x9ff086f,_0x31c540=0x9f86797^_0x40f94f,_0xe206d9=window[_0x1aaefc([0x44,0x61,0x74,0x65])][_0x1aaefc([0x6e,0x6f,0x77])](),_0x9ada83=_0x37a488[_0x1aaefc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x396af9=new window[(_0x1aaefc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ff2af=>{_0x9ada83[_0x1aaefc([0x6f,0x6e,0x63,0x65])](_0x1aaefc([0x72,0x65,0x61,0x64,0x79]),_0x1ff2af);}),_0x339f51={[_0x1aaefc([0x6b,0x74,0x79])]:_0x1aaefc([0x45,0x43]),[_0x1aaefc([0x75,0x73,0x65])]:_0x1aaefc([0x73,0x69,0x67]),[_0x1aaefc([0x63,0x72,0x76])]:_0x1aaefc([0x50,0x2d,0x32,0x35,0x36]),[_0x1aaefc([0x78])]:_0x1aaefc([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]),[_0x1aaefc([0x79])]:_0x1aaefc([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]),[_0x1aaefc([0x61,0x6c,0x67])]:_0x1aaefc([0x45,0x53,0x32,0x35,0x36])},_0x580cef=_0x9ada83[_0x1aaefc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1aaefc([0x67,0x65,0x74])](_0x1aaefc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x31f8f4(){let _0x55c7bd,_0x33a6fb=null,_0x3b06c9=null;try{if(_0x580cef==_0x1aaefc([0x47,0x50,0x4c]))return _0x1aaefc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x55c7bd=_0x2e7a16(),!_0x55c7bd)return _0x1aaefc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x55c7bd[_0x1aaefc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3b06c9=_0x1b428a(_0x55c7bd[_0x1aaefc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x55c7bd[_0x1aaefc([0x6a,0x74,0x69])])),await _0x2c8a21()?_0x3c5b29()?_0x2fa1f2()?_0x1aaefc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5a0bae()?(_0x55c7bd[_0x1aaefc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1aaefc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x33a6fb=_0x5404f9(_0x1aaefc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x55c7bd[_0x1aaefc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1aaefc([0x74,0x72,0x69,0x61,0x6c])&&(_0x33a6fb=_0x5404f9(_0x1aaefc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1f7a5b()):_0x1aaefc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1aaefc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1aaefc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1aaefc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2fa1f2(){const _0xc5762f=[_0x1aaefc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1aaefc([0x74,0x72,0x69,0x61,0x6c])][_0x1aaefc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55c7bd[_0x1aaefc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xe206d9/0x3e8:0xe10*_0x31c540;return _0x55c7bd[_0x1aaefc([0x65,0x78,0x70])]<_0xc5762f;}function _0x3c5b29(){const _0x4fb4e7=_0x55c7bd[_0x1aaefc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4fb4e7&&(!!_0x4fb4e7[_0x1aaefc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1aaefc([0x2a]))||!!_0x4fb4e7[_0x1aaefc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1aaefc([0x55,0x50,0x4c,0x43])));}function _0x5a0bae(){const _0x3d7d59=_0x543e,_0x563327=_0x55c7bd[_0x1aaefc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x563327||0x0==_0x563327[_0x1aaefc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x596da4}=new URL(window[_0x1aaefc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3d7d59(0x181)]);if(_0x563327[_0x1aaefc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x596da4))return!0x0;const _0x5b11d9=_0x596da4[_0x1aaefc([0x73,0x70,0x6c,0x69,0x74])](_0x1aaefc([0x2e]));return _0x563327[_0x1aaefc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32ff=>_0x32ff[_0x1aaefc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1aaefc([0x2a])))[_0x1aaefc([0x6d,0x61,0x70])](_0x389e8e=>_0x389e8e[_0x1aaefc([0x73,0x70,0x6c,0x69,0x74])](_0x1aaefc([0x2e])))[_0x1aaefc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e41bd=>_0x5e41bd[_0x1aaefc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5b11d9[_0x1aaefc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1aaefc([0x6d,0x61,0x70])](_0x542ad2=>Array(_0x5b11d9[_0x1aaefc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x542ad2[_0x1aaefc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1aaefc([0x66,0x69,0x6c,0x6c])](_0x542ad2[0x0]===_0x1aaefc([0x2a])?_0x1aaefc([0x2a]):'')[_0x1aaefc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x542ad2))[_0x1aaefc([0x73,0x6f,0x6d,0x65])](_0x21a6b3=>_0x5b11d9[_0x1aaefc([0x65,0x76,0x65,0x72,0x79])]((_0x2e1e49,_0x4ffc7e)=>_0x21a6b3[_0x4ffc7e]===_0x2e1e49||_0x21a6b3[_0x4ffc7e]===_0x1aaefc([0x2a])));}function _0x1f7a5b(){return _0x33a6fb&&_0x3b06c9?new window[(_0x1aaefc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x94681e,_0xadcbe3)=>{_0x33a6fb[_0x1aaefc([0x74,0x68,0x65,0x6e])](_0x94681e,_0xadcbe3),_0x3b06c9[_0x1aaefc([0x74,0x68,0x65,0x6e])](_0x240f90=>{_0x240f90!=_0x1aaefc([0x56,0x61,0x6c,0x69,0x64])&&_0x94681e(_0x240f90);},_0xadcbe3);}):_0x33a6fb||_0x3b06c9||_0x1aaefc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b428a(_0x3ec9a6,_0x32c10d){return new window[(_0x1aaefc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27bed0=>{if(_0x3fa9fd())return _0x27bed0(_0x1aaefc([0x56,0x61,0x6c,0x69,0x64]));_0x4dbd2c(),_0x9ada83[_0x1aaefc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1aaefc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3bbd7d=!0x1;const _0x32c226=_0x2bef6e();function _0x26de21(_0x227c37){return!!_0x227c37&&(typeof _0x227c37===_0x1aaefc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x227c37===_0x1aaefc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x227c37[_0x1aaefc([0x74,0x68,0x65,0x6e])]===_0x1aaefc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x227c37[_0x1aaefc([0x63,0x61,0x74,0x63,0x68])]===_0x1aaefc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1df05b(_0x544ea6){_0x25f5d4(_0x544ea6)[_0x1aaefc([0x74,0x68,0x65,0x6e])](_0x22f4e7=>{if(!_0x22f4e7||_0x22f4e7[_0x1aaefc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1aaefc([0x6f,0x6b]))return _0x1aaefc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x130d26(_0x53f649(_0x32c226+_0x32c10d))!=_0x22f4e7[_0x1aaefc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1aaefc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1aaefc([0x56,0x61,0x6c,0x69,0x64]);})[_0x1aaefc([0x74,0x68,0x65,0x6e])](_0x101c83=>(_0xc5f409(),_0x101c83),()=>{const _0x4f248c=_0x424eb8();return null==_0x4f248c?(_0xc5f409(),_0x1aaefc([0x56,0x61,0x6c,0x69,0x64])):_0x1aaefc(_0xe206d9-_0x4f248c>(0x2df38c6f^_0x40f94f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1aaefc([0x74,0x68,0x65,0x6e])](_0x27bed0)[_0x1aaefc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27bed0(_0x1aaefc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x195124=0x9c9e6ef^_0x40f94f;function _0xc5f409(){const _0xd0819f=_0x1aaefc([0x6c,0x6c,0x63,0x74,0x2d])+_0x130d26(_0x53f649(_0x3ec9a6)),_0x966f60=_0x52b72b(_0x130d26(window[_0x1aaefc([0x4d,0x61,0x74,0x68])][_0x1aaefc([0x63,0x65,0x69,0x6c])](_0xe206d9/_0x195124)));window[_0x1aaefc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1aaefc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd0819f,_0x966f60);}function _0x424eb8(){const _0x1ee928=_0x1aaefc([0x6c,0x6c,0x63,0x74,0x2d])+_0x130d26(_0x53f649(_0x3ec9a6)),_0x3919a3=window[_0x1aaefc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1aaefc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ee928);return _0x3919a3?window[_0x1aaefc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52b72b(_0x3919a3),0x10)*_0x195124:null;}function _0x25f5d4(_0x2238c2){return new window[(_0x1aaefc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22f3a1,_0x34f6f6)=>{_0x2238c2[_0x1aaefc([0x74,0x68,0x65,0x6e])](_0x22f3a1,_0x34f6f6),window[_0x1aaefc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x34f6f6,0x9fedcaf^_0x40f94f);});}}_0x9ada83[_0x1aaefc([0x6f,0x6e])](_0x1aaefc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1bfdeb,_0x2218a8)=>{if(_0x2218a8[0x0]!=_0x3ec9a6)return _0x27bed0(_0x1aaefc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2218a8[0x1]={..._0x2218a8[0x1],[_0x1aaefc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x32c226};},{[_0x1aaefc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1aaefc([0x68,0x69,0x67,0x68])}),_0x9ada83[_0x1aaefc([0x6f,0x6e])](_0x1aaefc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1d59b0=>{_0x26de21(_0x1d59b0[_0x1aaefc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3bbd7d=!0x0,_0x1df05b(_0x1d59b0[_0x1aaefc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1aaefc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1aaefc([0x6c,0x6f,0x77])}),_0x396af9[_0x1aaefc([0x74,0x68,0x65,0x6e])](()=>{_0x3bbd7d||_0x27bed0(_0x1aaefc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3fa9fd(){return _0x9ada83[_0x1aaefc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1aaefc([0x76,0x69,0x65,0x77])][_0x1aaefc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1aaefc([0x61,0x75,0x74,0x6f]);}function _0x4dbd2c(){_0x9ada83[_0x1aaefc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1aaefc([0x76,0x69,0x65,0x77])][_0x1aaefc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1aaefc([0x61,0x75,0x74,0x6f]);}}function _0x5404f9(_0x2d2f37){const _0xffa955=[new window[(_0x1aaefc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57ece6=>setTimeout(_0x57ece6,0x9f636a3^_0x40f94f)),_0x396af9[_0x1aaefc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1aaefc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26a575=>{let _0x1e4414=0x0;_0x9ada83[_0x1aaefc([0x6d,0x6f,0x64,0x65,0x6c])][_0x1aaefc([0x6f,0x6e])](_0x1aaefc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x228d4d,_0x53dd55)=>{_0x53dd55[0x0][_0x1aaefc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1e4414++,_0x1e4414==(0x9ff0997^_0x40f94f)&&(_0x26a575(),_0x228d4d[_0x1aaefc([0x6f,0x66,0x66])]());});}))];return window[_0x1aaefc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1aaefc([0x72,0x61,0x63,0x65])](_0xffa955)[_0x1aaefc([0x74,0x68,0x65,0x6e])](()=>_0x2d2f37);}async function _0x2e0707(){await _0x396af9,_0x9ada83[_0x1aaefc([0x6d,0x6f,0x64,0x65,0x6c])][_0x1aaefc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25c643,_0x9ada83[_0x1aaefc([0x6d,0x6f,0x64,0x65,0x6c])][_0x1aaefc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25c643,_0x9ada83[_0x1aaefc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1aaefc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x44ea0e(_0x51b7ca){const _0x355114=_0x3ba0f2();_0x9ada83[_0x355114]=_0x1aaefc([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x51b7ca,_0x51b7ca!=_0x1aaefc([0x56,0x61,0x6c,0x69,0x64])&&_0x2e0707();}function _0x3ba0f2(){const _0x26a108=window[_0x1aaefc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1aaefc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1aaefc([0x6e,0x6f,0x77])]())[_0x1aaefc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1aaefc([0x2e]),'');let _0x582a94=_0x1aaefc([0x45]);for(let _0x285e88=0x0;_0x285e88<_0x26a108[_0x1aaefc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x285e88+=0x2){let _0x4e9693=window[_0x1aaefc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26a108[_0x1aaefc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x285e88,_0x285e88+0x2));_0x4e9693>=_0x235d7f[_0x1aaefc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e9693-=_0x235d7f[_0x1aaefc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x582a94+=_0x235d7f[_0x4e9693];}return _0x582a94;}function _0x2e7a16(){const _0xcfbe30=_0x580cef[_0x1aaefc([0x73,0x70,0x6c,0x69,0x74])](_0x1aaefc([0x2e]));if(0x3!=_0xcfbe30[_0x1aaefc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4fc5f7(_0xcfbe30[0x1]);function _0x4fc5f7(_0x3aea41){const _0x46e8d7=_0x5ba3b7(_0x3aea41);return _0x46e8d7&&_0x1ae69a()?_0x46e8d7:null;function _0x1ae69a(){const _0x263477=_0x46e8d7[_0x1aaefc([0x6a,0x74,0x69])],_0x4d89e7=window[_0x1aaefc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x263477[_0x1aaefc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x263477[_0x1aaefc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5802e2={..._0x46e8d7,[_0x1aaefc([0x6a,0x74,0x69])]:_0x263477[_0x1aaefc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x263477[_0x1aaefc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5802e2[_0x1aaefc([0x76,0x63])],_0x53f649(_0x5802e2)==_0x4d89e7;}}}async function _0x2c8a21(){let _0x35b717=!0x0;try{const _0x1ebf06=_0x580cef[_0x1aaefc([0x73,0x70,0x6c,0x69,0x74])](_0x1aaefc([0x2e])),[_0x537152,_0x1c16f0,_0x34db33]=_0x1ebf06;return _0x5bfce4(_0x537152),await _0x4b171a(_0x537152,_0x1c16f0,_0x34db33),_0x35b717;}catch{return!0x1;}function _0x5bfce4(_0x4e595b){const _0x4b2e68=_0x5ba3b7(_0x4e595b);_0x4b2e68&&_0x4b2e68[_0x1aaefc([0x61,0x6c,0x67])]==_0x1aaefc([0x45,0x53,0x32,0x35,0x36])||(_0x35b717=!0x1);}async function _0x4b171a(_0x426a26,_0x345c64,_0x497ea7){const _0x305636=window[_0x1aaefc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1aaefc([0x66,0x72,0x6f,0x6d])](_0x1ff36f(_0x497ea7),_0xd5ae7c=>_0xd5ae7c[_0x1aaefc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x57ccdf=new window[(_0x1aaefc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1aaefc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x426a26+_0x1aaefc([0x2e])+_0x345c64),_0x583dbe=window[_0x1aaefc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1aaefc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x583dbe)return;const _0x48aaa3=await _0x583dbe[_0x1aaefc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1aaefc([0x6a,0x77,0x6b]),_0x339f51,{[_0x1aaefc([0x6e,0x61,0x6d,0x65])]:_0x1aaefc([0x45,0x43,0x44,0x53,0x41]),[_0x1aaefc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1aaefc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1aaefc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x583dbe[_0x1aaefc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1aaefc([0x6e,0x61,0x6d,0x65])]:_0x1aaefc([0x45,0x43,0x44,0x53,0x41]),[_0x1aaefc([0x68,0x61,0x73,0x68])]:{[_0x1aaefc([0x6e,0x61,0x6d,0x65])]:_0x1aaefc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x48aaa3,_0x305636,_0x57ccdf)||(_0x35b717=!0x1);}}function _0x5ba3b7(_0x23272e){return _0x23272e[_0x1aaefc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1aaefc([0x65,0x79]))?JSON[_0x1aaefc([0x70,0x61,0x72,0x73,0x65])](_0x1ff36f(_0x23272e)):null;}function _0x1ff36f(_0x1012c2){return window[_0x1aaefc([0x61,0x74,0x6f,0x62])](_0x1012c2[_0x1aaefc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1aaefc([0x2b]))[_0x1aaefc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1aaefc([0x2f])));}function _0x53f649(_0xa9f1dc){let _0x4fd215=0x1505;function _0x104d9c(_0x28cf93){for(let _0x596432=0x0;_0x596432<_0x28cf93[_0x1aaefc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x596432++){const _0x17becf=_0x28cf93[_0x1aaefc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x596432);_0x4fd215=(_0x4fd215<<0x5)+_0x4fd215+_0x17becf,_0x4fd215&=_0x4fd215;}}function _0x44ef91(_0x5dc319){Array[_0x1aaefc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5dc319)?_0x5dc319[_0x1aaefc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x44ef91):_0x5dc319&&typeof _0x5dc319==_0x1aaefc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1aaefc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5dc319)[_0x1aaefc([0x73,0x6f,0x72,0x74])]()[_0x1aaefc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4b555e,_0x2b9777])=>{_0x104d9c(_0x4b555e),_0x44ef91(_0x2b9777);}):_0x104d9c(window[_0x1aaefc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5dc319));}return _0x44ef91(_0xa9f1dc),_0x4fd215>>>0x0;}function _0x130d26(_0x5c6f5f){return _0x5c6f5f[_0x1aaefc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1aaefc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1aaefc([0x30]));}function _0x52b72b(_0x39fbe8){return _0x39fbe8[_0x1aaefc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1aaefc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1aaefc([0x6a,0x6f,0x69,0x6e])]('');}function _0x25c643(){}function _0x1aaefc(_0x511d57){const _0x38d9a7=_0x543e;return _0x511d57[_0x38d9a7(0x1b4)](_0x521ea3=>String[_0x38d9a7(0x1bc)](_0x521ea3))[_0x38d9a7(0x195)]('');}_0x44ea0e(await _0x31f8f4());}(this);}[_0x30fc21(0x172)](){const _0x4a068e=_0x30fc21,_0x22f36d=this[_0x4a068e(0x199)][_0x4a068e(0x182)][_0x4a068e(0x184)];_0x22f36d[_0x4a068e(0x1be)](_0x4a068e(0x1a7))&&_0x22f36d[_0x4a068e(0x186)](_0x4a068e(0x1a7),{'allowAttributes':[_0x4a068e(0x1a0)]}),_0x22f36d[_0x4a068e(0x1be)](_0x4a068e(0x1a2))&&_0x22f36d[_0x4a068e(0x186)](_0x4a068e(0x1a2),{'allowAttributes':[_0x4a068e(0x1a0)]});}[_0x30fc21(0x193)](){const _0x943cd9=_0x30fc21,_0x2e4da5=this[_0x943cd9(0x199)];_0x2e4da5[_0x943cd9(0x1b8)][_0x943cd9(0x1b0)](_0x943cd9(0x17d))[_0x943cd9(0x1a4)]({'model':_0x943cd9(0x1a0),'view':_0x943cd9(0x19d)}),_0x2e4da5[_0x943cd9(0x1b8)][_0x943cd9(0x1b0)](_0x943cd9(0x1af))[_0x943cd9(0x173)]({'model':{'key':_0x943cd9(0x1a0),'value':_0x3f7cab=>_0x3f7cab[_0x943cd9(0x189)](_0x943cd9(0x19d))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x31bb73=_0x2e4da5[_0x943cd9(0x17a)][_0x943cd9(0x17b)](_0x943cd9(0x187));_0x31bb73&&this[_0x943cd9(0x171)](_0x31bb73,_0x943cd9(0x16d),(_0x26cf21,[_0x40de24,_0x2fbc25])=>{const _0x3f68bb=_0x943cd9;_0x40de24[_0x3f68bb(0x19b)](_0x3f68bb(0x1a0),_0x2fbc25);});}[_0x30fc21(0x190)](){const _0x1b0c8b=_0x30fc21,_0x31325a=this[_0x1b0c8b(0x199)][_0x1b0c8b(0x1ab)][_0x1b0c8b(0x17b)](_0x1b0c8b(0x191))||{},_0x4f4c28=this[_0x1b0c8b(0x199)][_0x1b0c8b(0x1ab)][_0x1b0c8b(0x17b)](_0x1b0c8b(0x18f))||'';this[_0x1b0c8b(0x1a6)]=_0x3c9af7(_0x57462c[_0x1b0c8b(0x1b1)],_0x1b0c8b(0x183),{..._0x31325a,'pubkey':_0x4f4c28,'ctx-name':_0x1b0c8b(0x185)+this[_0x1b0c8b(0x17f)],'sourceList':'','imgOnly':_0x1b0c8b(0x196),'removeCopyright':_0x1b0c8b(0x196),'localeName':this[_0x1b0c8b(0x199)][_0x1b0c8b(0x1aa)][_0x1b0c8b(0x1a9)],'externalSourcesEmbedCss':_0x1b0c8b(0x16b)}),this[_0x1b0c8b(0x1a6)][_0x1b0c8b(0x180)]=_0xb55261=>{const _0x21d9cd=_0x1b0c8b;if(_0x21d9cd(0x1ac)==_0xb55261)return _0x21d9cd(0x188);},_0x57462c[_0x1b0c8b(0x1b1)][_0x1b0c8b(0x19c)][_0x1b0c8b(0x177)](this[_0x1b0c8b(0x1a6)]);}[_0x30fc21(0x197)](){const _0x47905f=_0x30fc21;this[_0x47905f(0x1a5)]=_0x3c9af7(_0x57462c[_0x47905f(0x1b1)],_0x47905f(0x18b),{'ctx-name':_0x47905f(0x185)+this[_0x47905f(0x17f)]}),_0x57462c[_0x47905f(0x1b1)][_0x47905f(0x19c)][_0x47905f(0x177)](this[_0x47905f(0x1a5)]);}[_0x30fc21(0x178)](){const _0x51ccb8=_0x30fc21,_0x4835f8=this[_0x51ccb8(0x199)][_0x51ccb8(0x17a)][_0x51ccb8(0x17b)](_0x51ccb8(0x1ad));_0x4835f8&&this[_0x51ccb8(0x171)](_0x4835f8,_0x51ccb8(0x1bb),()=>{const _0x5b3462=_0x51ccb8,_0x3f8962=this[_0x5b3462(0x199)][_0x5b3462(0x182)][_0x5b3462(0x1b1)][_0x5b3462(0x1ae)][_0x5b3462(0x18d)]();_0x3f8962&&_0x3f8962[_0x5b3462(0x189)](_0x5b3462(0x1a0))&&this[_0x5b3462(0x199)][_0x5b3462(0x19f)][_0x5b3462(0x19a)][_0x5b3462(0x1ba)](_0x5b3462(0x1b5),()=>{const _0x3b17db=_0x5b3462;_0xeab640(this[_0x3b17db(0x199)],_0x3f8962);});});const _0x136ef8=this[_0x51ccb8(0x199)][_0x51ccb8(0x17a)][_0x51ccb8(0x17b)](_0x51ccb8(0x170));_0x136ef8&&this[_0x51ccb8(0x171)](_0x136ef8,_0x51ccb8(0x1bb),()=>{const _0x341fff=_0x51ccb8,_0x39c611=this[_0x341fff(0x199)][_0x341fff(0x182)][_0x341fff(0x1b1)][_0x341fff(0x1ae)][_0x341fff(0x18d)]();_0x39c611&&_0x39c611[_0x341fff(0x189)](_0x341fff(0x1a0))&&this[_0x341fff(0x199)][_0x341fff(0x19f)][_0x341fff(0x19a)][_0x341fff(0x1ba)](_0x341fff(0x1b5),()=>{const _0x2f8d64=_0x341fff;_0xeab640(this[_0x2f8d64(0x199)],_0x39c611);});});}}
|
|
23
|
+
const _0x334766=_0x57d8;function _0x18cc(){const _0x51222e=['for','uploadcareImageId','_initCtx','uploadcare','execute','pluginName','373148xSTatO','25hroctP','isOfficialPlugin','UploadcareEditing','editor','requires','listenTo','init','conversion','_initSchema','_configElement','_initConfig','uploadcareImageReplace','extend','document','add','closeMax','uc-upload-ctx-provider','true','_initConversion','contentLanguage','attributeToAttribute','getSelectedElement','commands','_initImageProcessingIndicator','getAttribute','body','selection','href','imageBlock','downcast','config','model','upcast','fromCharCode','imageInline','editing','10LBMpNz','remove','PictureEditing','render','\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','input[uploadcare-file-input]','uploadcare.uploader','configElement','uploader-','get','110eLrFsH','4452906fXyamw','removeAttribute','uc-config','ucContextId','schema','isRegistered','cleanupImage','map','view','elementToAttribute','destroy','uploadcare.pubkey','_ctxElement','querySelector','insertImage','data-uc-image-id','replaceImageSource','join','iconHrefResolver','ctxElement','locale','once','60918CBWyQV','4046wZLUDE','363931rOPPqz','#uc-icon-arrow-down','appendChild','13026310LVjgPo','afterInit','isPremiumPlugin','13336VLRpyS','13709187CgVcvV'];_0x18cc=function(){return _0x51222e;};return _0x18cc();}function _0x57d8(_0x176e36,_0x19c988){const _0x18cc77=_0x18cc();return _0x57d8=function(_0x57d8b1,_0x790a4e){_0x57d8b1=_0x57d8b1-0x1d0;let _0x38edb7=_0x18cc77[_0x57d8b1];return _0x38edb7;},_0x57d8(_0x176e36,_0x19c988);}(function(_0x1f4c20,_0x34eede){const _0x15a174=_0x57d8,_0xd4430b=_0x1f4c20();while(!![]){try{const _0x8f5260=parseInt(_0x15a174(0x1e0))/0x1+-parseInt(_0x15a174(0x21d))/0x2*(parseInt(_0x15a174(0x1de))/0x3)+-parseInt(_0x15a174(0x1ee))/0x4*(parseInt(_0x15a174(0x1ef))/0x5)+parseInt(_0x15a174(0x21e))/0x6+parseInt(_0x15a174(0x1df))/0x7*(parseInt(_0x15a174(0x1e6))/0x8)+-parseInt(_0x15a174(0x1e7))/0x9*(-parseInt(_0x15a174(0x213))/0xa)+-parseInt(_0x15a174(0x1e3))/0xb;if(_0x8f5260===_0x34eede)break;else _0xd4430b['push'](_0xd4430b['shift']());}catch(_0x169e0e){_0xd4430b['push'](_0xd4430b['shift']());}}}(_0x18cc,0xc9820));import{Plugin as _0x1fbf55}from'ckeditor5/src/core.js';import{Dialog as _0x189a46}from'ckeditor5/src/ui.js';import{createElement as _0x8821de,global as _0x153c19,uid as _0x50257b}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0xdaf646}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2904ce}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x36f26f}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1fbf55{[_0x334766(0x1f8)]=null;[_0x334766(0x1d4)]=null;static get[_0x334766(0x1ed)](){const _0xebe3d8=_0x334766;return _0xebe3d8(0x1f1);}static get[_0x334766(0x1f3)](){const _0x38615d=_0x334766;return[_0x38615d(0x215),_0x2904ce,_0x189a46];}static get[_0x334766(0x1f0)](){return!0x0;}static get[_0x334766(0x1e5)](){return!0x0;}[_0x334766(0x221)];get[_0x334766(0x21a)](){const _0x2195cb=_0x334766;return this[_0x2195cb(0x1f8)];}get[_0x334766(0x1db)](){const _0x5ce8bf=_0x334766;return this[_0x5ce8bf(0x1d4)];}constructor(_0x53d8bb){const _0x5e8740=_0x334766;super(_0x53d8bb),this[_0x5e8740(0x221)]=_0x50257b();}[_0x334766(0x1f5)](){const _0x1a9ac1=_0x334766,_0x38dbe7=this[_0x1a9ac1(0x1f2)];_0x38dbe7[_0x1a9ac1(0x205)][_0x1a9ac1(0x1fd)](_0x1a9ac1(0x1eb),new _0xdaf646(_0x38dbe7));}[_0x334766(0x1e4)](){const _0x21f615=_0x334766;this[_0x21f615(0x1f7)](),this[_0x21f615(0x201)](),this[_0x21f615(0x1f9)](),this[_0x21f615(0x1ea)](),this[_0x21f615(0x206)](),this[_0x21f615(0x1f4)](this[_0x21f615(0x1f2)],_0x21f615(0x1d2),()=>{const _0x5d698a=_0x21f615;this[_0x5d698a(0x1f8)]&&(this[_0x5d698a(0x1f8)][_0x5d698a(0x214)](),this[_0x5d698a(0x1f8)]=null),this[_0x5d698a(0x1d4)]&&(this[_0x5d698a(0x1d4)][_0x5d698a(0x214)](),this[_0x5d698a(0x1d4)]=null);const _0x21d3d2=_0x153c19[_0x5d698a(0x1fc)][_0x5d698a(0x1d5)](_0x5d698a(0x218));_0x21d3d2&&_0x21d3d2[_0x5d698a(0x214)]();}),async function(_0x897d2e){const _0x50cd78=_0x5395f1([0x4d,0x39,0x52,0x47,0x6f,0x4f,0x32,0x68,0x54,0x74,0x35,0x6e,0x34,0x66,0x49,0x42,0x6b,0x44,0x4c,0x57,0x5a,0x58,0x41,0x38,0x31,0x53,0x4e,0x72,0x76,0x61,0x7a,0x6c,0x67,0x59,0x6d,0x78,0x73,0x75,0x70,0x48,0x77,0x69,0x56,0x51,0x4a,0x4b,0x63,0x37,0x55,0x46,0x6a,0x64,0x71,0x79,0x33,0x62,0x43,0x30,0x50,0x65,0x36,0x45]),_0x502427=0x51f0daf,_0x248b3a=0x5187d87^_0x502427,_0x7fb7c2=window[_0x5395f1([0x44,0x61,0x74,0x65])][_0x5395f1([0x6e,0x6f,0x77])](),_0x36d9a5=_0x897d2e[_0x5395f1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1f708b=new window[(_0x5395f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x138a37=>{_0x36d9a5[_0x5395f1([0x6f,0x6e,0x63,0x65])](_0x5395f1([0x72,0x65,0x61,0x64,0x79]),_0x138a37);}),_0x51127c={[_0x5395f1([0x6b,0x74,0x79])]:_0x5395f1([0x45,0x43]),[_0x5395f1([0x75,0x73,0x65])]:_0x5395f1([0x73,0x69,0x67]),[_0x5395f1([0x63,0x72,0x76])]:_0x5395f1([0x50,0x2d,0x32,0x35,0x36]),[_0x5395f1([0x78])]:_0x5395f1([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]),[_0x5395f1([0x79])]:_0x5395f1([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]),[_0x5395f1([0x61,0x6c,0x67])]:_0x5395f1([0x45,0x53,0x32,0x35,0x36])},_0x38fbca=_0x36d9a5[_0x5395f1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5395f1([0x67,0x65,0x74])](_0x5395f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d3868(){let _0x3bbba1,_0xf08fb6=null,_0x76e671=null;try{if(_0x38fbca==_0x5395f1([0x47,0x50,0x4c]))return _0x5395f1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3bbba1=_0x5595c5(),!_0x3bbba1)return _0x5395f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3bbba1[_0x5395f1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x76e671=_0xf24eac(_0x3bbba1[_0x5395f1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3bbba1[_0x5395f1([0x6a,0x74,0x69])])),await _0x36756e()?_0x136926()?_0x419faf()?_0x5395f1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5fcfff()?(_0x3bbba1[_0x5395f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5395f1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xf08fb6=_0x44d02a(_0x5395f1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3bbba1[_0x5395f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5395f1([0x74,0x72,0x69,0x61,0x6c])&&(_0xf08fb6=_0x44d02a(_0x5395f1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1a18a1()):_0x5395f1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5395f1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5395f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5395f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x419faf(){const _0x35b212=[_0x5395f1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5395f1([0x74,0x72,0x69,0x61,0x6c])][_0x5395f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bbba1[_0x5395f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7fb7c2/0x3e8:0xe10*_0x248b3a;return _0x3bbba1[_0x5395f1([0x65,0x78,0x70])]<_0x35b212;}function _0x136926(){const _0x20f9c8=_0x3bbba1[_0x5395f1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x20f9c8&&(!!_0x20f9c8[_0x5395f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5395f1([0x2a]))||!!_0x20f9c8[_0x5395f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5395f1([0x55,0x50,0x4c,0x43])));}function _0x5fcfff(){const _0x525a00=_0x57d8,_0x324d60=_0x3bbba1[_0x5395f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x324d60||0x0==_0x324d60[_0x5395f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x26924c}=new URL(window[_0x5395f1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x525a00(0x20a)]);if(_0x324d60[_0x5395f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26924c))return!0x0;const _0x1fa46d=_0x26924c[_0x5395f1([0x73,0x70,0x6c,0x69,0x74])](_0x5395f1([0x2e]));return _0x324d60[_0x5395f1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x289ab3=>_0x289ab3[_0x5395f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5395f1([0x2a])))[_0x5395f1([0x6d,0x61,0x70])](_0x19ab01=>_0x19ab01[_0x5395f1([0x73,0x70,0x6c,0x69,0x74])](_0x5395f1([0x2e])))[_0x5395f1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ecf23=>_0x3ecf23[_0x5395f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1fa46d[_0x5395f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5395f1([0x6d,0x61,0x70])](_0x289669=>Array(_0x1fa46d[_0x5395f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x289669[_0x5395f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5395f1([0x66,0x69,0x6c,0x6c])](_0x289669[0x0]===_0x5395f1([0x2a])?_0x5395f1([0x2a]):'')[_0x5395f1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x289669))[_0x5395f1([0x73,0x6f,0x6d,0x65])](_0x490712=>_0x1fa46d[_0x5395f1([0x65,0x76,0x65,0x72,0x79])]((_0x3858fb,_0x4c2ef7)=>_0x490712[_0x4c2ef7]===_0x3858fb||_0x490712[_0x4c2ef7]===_0x5395f1([0x2a])));}function _0x1a18a1(){return _0xf08fb6&&_0x76e671?new window[(_0x5395f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x139af5,_0x380c84)=>{_0xf08fb6[_0x5395f1([0x74,0x68,0x65,0x6e])](_0x139af5,_0x380c84),_0x76e671[_0x5395f1([0x74,0x68,0x65,0x6e])](_0x489cb0=>{_0x489cb0!=_0x5395f1([0x56,0x61,0x6c,0x69,0x64])&&_0x139af5(_0x489cb0);},_0x380c84);}):_0xf08fb6||_0x76e671||_0x5395f1([0x56,0x61,0x6c,0x69,0x64]);}}function _0xf24eac(_0x42d1a4,_0x125170){return new window[(_0x5395f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14950f=>{if(_0x1a400b())return _0x14950f(_0x5395f1([0x56,0x61,0x6c,0x69,0x64]));_0x2856cf(),_0x36d9a5[_0x5395f1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5395f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf72cd8=!0x1;const _0x8f70ef=_0x50257b();function _0x573e4c(_0x2bdd14){return!!_0x2bdd14&&(typeof _0x2bdd14===_0x5395f1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2bdd14===_0x5395f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2bdd14[_0x5395f1([0x74,0x68,0x65,0x6e])]===_0x5395f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2bdd14[_0x5395f1([0x63,0x61,0x74,0x63,0x68])]===_0x5395f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1a7f39(_0x288b07){_0x4fa8ae(_0x288b07)[_0x5395f1([0x74,0x68,0x65,0x6e])](_0x500ad4=>{if(!_0x500ad4||_0x500ad4[_0x5395f1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5395f1([0x6f,0x6b]))return _0x5395f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5c2887(_0x3ae84c(_0x8f70ef+_0x125170))!=_0x500ad4[_0x5395f1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5395f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5395f1([0x56,0x61,0x6c,0x69,0x64]);})[_0x5395f1([0x74,0x68,0x65,0x6e])](_0xa522ab=>(_0x19c361(),_0xa522ab),()=>{const _0x28cab6=_0x242639();return null==_0x28cab6?(_0x19c361(),_0x5395f1([0x56,0x61,0x6c,0x69,0x64])):_0x5395f1(_0x7fb7c2-_0x28cab6>(0x211389af^_0x502427)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5395f1([0x74,0x68,0x65,0x6e])](_0x14950f)[_0x5395f1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x14950f(_0x5395f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2d9046=0x529e32f^_0x502427;function _0x19c361(){const _0x18b1ba=_0x5395f1([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c2887(_0x3ae84c(_0x42d1a4)),_0x10e11e=_0x1d480c(_0x5c2887(window[_0x5395f1([0x4d,0x61,0x74,0x68])][_0x5395f1([0x63,0x65,0x69,0x6c])](_0x7fb7c2/_0x2d9046)));window[_0x5395f1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5395f1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18b1ba,_0x10e11e);}function _0x242639(){const _0x4a094a=_0x5395f1([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c2887(_0x3ae84c(_0x42d1a4)),_0xed636e=window[_0x5395f1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5395f1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a094a);return _0xed636e?window[_0x5395f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d480c(_0xed636e),0x10)*_0x2d9046:null;}function _0x4fa8ae(_0x1ffc0a){return new window[(_0x5395f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11c13c,_0xadbe92)=>{_0x1ffc0a[_0x5395f1([0x74,0x68,0x65,0x6e])](_0x11c13c,_0xadbe92),window[_0x5395f1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xadbe92,0x51ed96f^_0x502427);});}}_0x36d9a5[_0x5395f1([0x6f,0x6e])](_0x5395f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2f5807,_0x36a24f)=>{if(_0x36a24f[0x0]!=_0x42d1a4)return _0x14950f(_0x5395f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36a24f[0x1]={..._0x36a24f[0x1],[_0x5395f1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x8f70ef};},{[_0x5395f1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5395f1([0x68,0x69,0x67,0x68])}),_0x36d9a5[_0x5395f1([0x6f,0x6e])](_0x5395f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x573b2b=>{_0x573e4c(_0x573b2b[_0x5395f1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf72cd8=!0x0,_0x1a7f39(_0x573b2b[_0x5395f1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5395f1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5395f1([0x6c,0x6f,0x77])}),_0x1f708b[_0x5395f1([0x74,0x68,0x65,0x6e])](()=>{_0xf72cd8||_0x14950f(_0x5395f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1a400b(){return _0x36d9a5[_0x5395f1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5395f1([0x76,0x69,0x65,0x77])][_0x5395f1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5395f1([0x61,0x75,0x74,0x6f]);}function _0x2856cf(){_0x36d9a5[_0x5395f1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5395f1([0x76,0x69,0x65,0x77])][_0x5395f1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5395f1([0x61,0x75,0x74,0x6f]);}}function _0x44d02a(_0x3164e8){const _0x30467e=[new window[(_0x5395f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36ac16=>setTimeout(_0x36ac16,0x5163363^_0x502427)),_0x1f708b[_0x5395f1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5395f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x248d8c=>{let _0x3a749a=0x0;_0x36d9a5[_0x5395f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x5395f1([0x6f,0x6e])](_0x5395f1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x59bb96,_0x197840)=>{_0x197840[0x0][_0x5395f1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a749a++,_0x3a749a==(0x51f0c57^_0x502427)&&(_0x248d8c(),_0x59bb96[_0x5395f1([0x6f,0x66,0x66])]());});}))];return window[_0x5395f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5395f1([0x72,0x61,0x63,0x65])](_0x30467e)[_0x5395f1([0x74,0x68,0x65,0x6e])](()=>_0x3164e8);}async function _0x5de54f(){await _0x1f708b,_0x36d9a5[_0x5395f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x5395f1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b96d0,_0x36d9a5[_0x5395f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x5395f1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b96d0,_0x36d9a5[_0x5395f1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5395f1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x492eec(_0x492491){const _0x467d6f=_0x5a142d();_0x36d9a5[_0x467d6f]=_0x5395f1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x492491,_0x492491!=_0x5395f1([0x56,0x61,0x6c,0x69,0x64])&&_0x5de54f();}function _0x5a142d(){const _0xa9c430=window[_0x5395f1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5395f1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5395f1([0x6e,0x6f,0x77])]())[_0x5395f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5395f1([0x2e]),'');let _0x12ff18=_0x5395f1([0x4d]);for(let _0x1f55ea=0x0;_0x1f55ea<_0xa9c430[_0x5395f1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f55ea+=0x2){let _0x3c3d37=window[_0x5395f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa9c430[_0x5395f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f55ea,_0x1f55ea+0x2));_0x3c3d37>=_0x50cd78[_0x5395f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3c3d37-=_0x50cd78[_0x5395f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x12ff18+=_0x50cd78[_0x3c3d37];}return _0x12ff18;}function _0x5595c5(){const _0x112684=_0x38fbca[_0x5395f1([0x73,0x70,0x6c,0x69,0x74])](_0x5395f1([0x2e]));if(0x3!=_0x112684[_0x5395f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3f5512(_0x112684[0x1]);function _0x3f5512(_0x212658){const _0x4607b2=_0xdb6c76(_0x212658);return _0x4607b2&&_0x2e8fbf()?_0x4607b2:null;function _0x2e8fbf(){const _0xd40156=_0x4607b2[_0x5395f1([0x6a,0x74,0x69])],_0x4f0d76=window[_0x5395f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd40156[_0x5395f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd40156[_0x5395f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x363800={..._0x4607b2,[_0x5395f1([0x6a,0x74,0x69])]:_0xd40156[_0x5395f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xd40156[_0x5395f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x363800[_0x5395f1([0x76,0x63])],_0x3ae84c(_0x363800)==_0x4f0d76;}}}async function _0x36756e(){let _0x9d8db9=!0x0;try{const _0x1fb30e=_0x38fbca[_0x5395f1([0x73,0x70,0x6c,0x69,0x74])](_0x5395f1([0x2e])),[_0x292893,_0x3468a9,_0x2720a5]=_0x1fb30e;return _0x4b0668(_0x292893),await _0x4b01f5(_0x292893,_0x3468a9,_0x2720a5),_0x9d8db9;}catch{return!0x1;}function _0x4b0668(_0x5ee58){const _0x3679dd=_0xdb6c76(_0x5ee58);_0x3679dd&&_0x3679dd[_0x5395f1([0x61,0x6c,0x67])]==_0x5395f1([0x45,0x53,0x32,0x35,0x36])||(_0x9d8db9=!0x1);}async function _0x4b01f5(_0x2c162e,_0x3c3f56,_0x276ca8){const _0x2848ce=window[_0x5395f1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5395f1([0x66,0x72,0x6f,0x6d])](_0x1a4349(_0x276ca8),_0x19f8c7=>_0x19f8c7[_0x5395f1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x258ceb=new window[(_0x5395f1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5395f1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2c162e+_0x5395f1([0x2e])+_0x3c3f56),_0x30b972=window[_0x5395f1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5395f1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x30b972)return;const _0x548c6e=await _0x30b972[_0x5395f1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5395f1([0x6a,0x77,0x6b]),_0x51127c,{[_0x5395f1([0x6e,0x61,0x6d,0x65])]:_0x5395f1([0x45,0x43,0x44,0x53,0x41]),[_0x5395f1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5395f1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5395f1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x30b972[_0x5395f1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5395f1([0x6e,0x61,0x6d,0x65])]:_0x5395f1([0x45,0x43,0x44,0x53,0x41]),[_0x5395f1([0x68,0x61,0x73,0x68])]:{[_0x5395f1([0x6e,0x61,0x6d,0x65])]:_0x5395f1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x548c6e,_0x2848ce,_0x258ceb)||(_0x9d8db9=!0x1);}}function _0xdb6c76(_0x1eb820){return _0x1eb820[_0x5395f1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5395f1([0x65,0x79]))?JSON[_0x5395f1([0x70,0x61,0x72,0x73,0x65])](_0x1a4349(_0x1eb820)):null;}function _0x1a4349(_0x34360b){return window[_0x5395f1([0x61,0x74,0x6f,0x62])](_0x34360b[_0x5395f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5395f1([0x2b]))[_0x5395f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5395f1([0x2f])));}function _0x3ae84c(_0x2050b1){let _0x144977=0x1505;function _0x5b9634(_0x1a4888){for(let _0x4e74e8=0x0;_0x4e74e8<_0x1a4888[_0x5395f1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e74e8++){const _0x38875b=_0x1a4888[_0x5395f1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e74e8);_0x144977=(_0x144977<<0x5)+_0x144977+_0x38875b,_0x144977&=_0x144977;}}function _0x772e4c(_0x81c5e2){Array[_0x5395f1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x81c5e2)?_0x81c5e2[_0x5395f1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x772e4c):_0x81c5e2&&typeof _0x81c5e2==_0x5395f1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5395f1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x81c5e2)[_0x5395f1([0x73,0x6f,0x72,0x74])]()[_0x5395f1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4df8d9,_0xb91ce8])=>{_0x5b9634(_0x4df8d9),_0x772e4c(_0xb91ce8);}):_0x5b9634(window[_0x5395f1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x81c5e2));}return _0x772e4c(_0x2050b1),_0x144977>>>0x0;}function _0x5c2887(_0x358f6c){return _0x358f6c[_0x5395f1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5395f1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5395f1([0x30]));}function _0x1d480c(_0x5b83ba){return _0x5b83ba[_0x5395f1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5395f1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5395f1([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b96d0(){}function _0x5395f1(_0x59cf9a){const _0x4bdd09=_0x57d8;return _0x59cf9a[_0x4bdd09(0x225)](_0x3d019f=>String[_0x4bdd09(0x210)](_0x3d019f))[_0x4bdd09(0x1d9)]('');}_0x492eec(await _0x5d3868());}(this);}[_0x334766(0x1f7)](){const _0x5d9123=_0x334766,_0x1bc336=this[_0x5d9123(0x1f2)][_0x5d9123(0x20e)][_0x5d9123(0x222)];_0x1bc336[_0x5d9123(0x223)](_0x5d9123(0x20b))&&_0x1bc336[_0x5d9123(0x1fb)](_0x5d9123(0x20b),{'allowAttributes':[_0x5d9123(0x1e9)]}),_0x1bc336[_0x5d9123(0x223)](_0x5d9123(0x211))&&_0x1bc336[_0x5d9123(0x1fb)](_0x5d9123(0x211),{'allowAttributes':[_0x5d9123(0x1e9)]});}[_0x334766(0x201)](){const _0x57c538=_0x334766,_0x31efea=this[_0x57c538(0x1f2)];_0x31efea[_0x57c538(0x1f6)][_0x57c538(0x1e8)](_0x57c538(0x20c))[_0x57c538(0x203)]({'model':_0x57c538(0x1e9),'view':_0x57c538(0x1d7)}),_0x31efea[_0x57c538(0x1f6)][_0x57c538(0x1e8)](_0x57c538(0x20f))[_0x57c538(0x1d1)]({'model':{'key':_0x57c538(0x1e9),'value':_0x77a269=>_0x77a269[_0x57c538(0x207)](_0x57c538(0x1d7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4022c1=_0x31efea[_0x57c538(0x205)][_0x57c538(0x21c)](_0x57c538(0x1d8));_0x4022c1&&this[_0x57c538(0x1f4)](_0x4022c1,_0x57c538(0x224),(_0x94a20e,[_0x1efe7a,_0x8c0aa6])=>{const _0x4facdd=_0x57c538;_0x1efe7a[_0x4facdd(0x21f)](_0x4facdd(0x1e9),_0x8c0aa6);});}[_0x334766(0x1f9)](){const _0x267bc9=_0x334766,_0x34cca4=this[_0x267bc9(0x1f2)][_0x267bc9(0x20d)][_0x267bc9(0x21c)](_0x267bc9(0x219))||{},_0x212567=this[_0x267bc9(0x1f2)][_0x267bc9(0x20d)][_0x267bc9(0x21c)](_0x267bc9(0x1d3))||'';this[_0x267bc9(0x1f8)]=_0x8821de(_0x153c19[_0x267bc9(0x1fc)],_0x267bc9(0x220),{..._0x34cca4,'pubkey':_0x212567,'ctx-name':_0x267bc9(0x21b)+this[_0x267bc9(0x221)],'sourceList':'','imgOnly':_0x267bc9(0x200),'removeCopyright':_0x267bc9(0x200),'localeName':this[_0x267bc9(0x1f2)][_0x267bc9(0x1dc)][_0x267bc9(0x202)],'externalSourcesEmbedCss':_0x267bc9(0x217)}),this[_0x267bc9(0x1f8)][_0x267bc9(0x1da)]=_0x2202cb=>{const _0x1a15eb=_0x267bc9;if(_0x1a15eb(0x1fe)==_0x2202cb)return _0x1a15eb(0x1e1);},_0x153c19[_0x267bc9(0x1fc)][_0x267bc9(0x208)][_0x267bc9(0x1e2)](this[_0x267bc9(0x1f8)]);}[_0x334766(0x1ea)](){const _0x3e2509=_0x334766;this[_0x3e2509(0x1d4)]=_0x8821de(_0x153c19[_0x3e2509(0x1fc)],_0x3e2509(0x1ff),{'ctx-name':_0x3e2509(0x21b)+this[_0x3e2509(0x221)]}),_0x153c19[_0x3e2509(0x1fc)][_0x3e2509(0x208)][_0x3e2509(0x1e2)](this[_0x3e2509(0x1d4)]);}[_0x334766(0x206)](){const _0x54a406=_0x334766,_0x4711a6=this[_0x54a406(0x1f2)][_0x54a406(0x205)][_0x54a406(0x21c)](_0x54a406(0x1d6));_0x4711a6&&this[_0x54a406(0x1f4)](_0x4711a6,_0x54a406(0x1ec),()=>{const _0x2982fa=_0x54a406,_0x374270=this[_0x2982fa(0x1f2)][_0x2982fa(0x20e)][_0x2982fa(0x1fc)][_0x2982fa(0x209)][_0x2982fa(0x204)]();_0x374270&&_0x374270[_0x2982fa(0x207)](_0x2982fa(0x1e9))&&this[_0x2982fa(0x1f2)][_0x2982fa(0x212)][_0x2982fa(0x1d0)][_0x2982fa(0x1dd)](_0x2982fa(0x216),()=>{const _0x11e4f5=_0x2982fa;_0x36f26f(this[_0x11e4f5(0x1f2)],_0x374270);});});const _0x2299ed=this[_0x54a406(0x1f2)][_0x54a406(0x205)][_0x54a406(0x21c)](_0x54a406(0x1fa));_0x2299ed&&this[_0x54a406(0x1f4)](_0x2299ed,_0x54a406(0x1ec),()=>{const _0x21017a=_0x54a406,_0x36a2ee=this[_0x21017a(0x1f2)][_0x21017a(0x20e)][_0x21017a(0x1fc)][_0x21017a(0x209)][_0x21017a(0x204)]();_0x36a2ee&&_0x36a2ee[_0x21017a(0x207)](_0x21017a(0x1e9))&&this[_0x21017a(0x1f2)][_0x21017a(0x212)][_0x21017a(0x1d0)][_0x21017a(0x1dd)](_0x21017a(0x216),()=>{const _0x58b117=_0x21017a;_0x36f26f(this[_0x58b117(0x1f2)],_0x36a2ee);});});}}
|