@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251121.0 → 0.0.0-nightly-20251122.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x443f5c,Command as _0x57a68a}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x114eb9,IconGooglePhotos as _0x57984f,IconGoogleDrive as _0x909c29,IconFacebook as _0x4bc50f,IconDropbox as _0x412fbf,IconUploadcareLink as _0x43b16f,IconUploadcareImageUpload as _0x185b63,IconError as _0x100bd6,IconUploadcareImageEdit as _0x576c90}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x286d0a,MenuBarMenuListItemButtonView as _0x27997f,View as _0x2cd9eb,FocusCycler as _0x4938e6,Dialog as _0x9884e,DialogViewPosition as _0x52a94c,SpinnerView as _0xeaea56,IconView as _0x6a5aea,Notification as _0x4bc154}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x28c70b,DomEmitterMixin as _0x428e92,global as _0x138a30,getAncestors as _0x2497b1,ObservableMixin as _0x4187a9,uid as _0x2c62ef,createElement as _0x26334c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1fb0c1}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2061b0,info as _0xcea7fa}from'@uploadcare/upload-client';import*as _0x4c3e66 from'@uploadcare/file-uploader';var i=function(_0x6a42df){return _0x6a42df['Local']='local',_0x6a42df['URL']='url',_0x6a42df['Dropbox']='dropbox',_0x6a42df['GDrive']='gdrive',_0x6a42df['Facebook']='facebook',_0x6a42df['GPhotos']='gphotos',_0x6a42df['OneDrive']='onedrive',_0x6a42df;}({});function _(_0x2afd42,_0x45420c,_0x1598fa){const t=_0x2afd42['t'],_0x51bf8e=_0x2afd42['t'];switch(_0x45420c){case i['Local']:return{'text':_0x51bf8e('Insert'===_0x1598fa?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x51bf8e('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x1598fa?_0x51bf8e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x51bf8e('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x1598fa?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x1598fa?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x1598fa?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x1598fa?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x1598fa?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x45420c;}}class e extends _0x443f5c{['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 _0x52d70d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3ad883;for(const _0x16003b in _0x52d70d){const _0x463460=_0x16003b,_0x4190fd=_0x52d70d[_0x463460];if('uploadcareLicenseKeyValid'==_0x4190fd||'uploadcareLicenseKeyInvalid'==_0x4190fd||'uploadcareLicenseKeyExpired'==_0x4190fd||'uploadcareLicenseKeyDomainLimit'==_0x4190fd||'uploadcareLicenseKeyNotAllowed'==_0x4190fd||'uploadcareLicenseKeyEvaluationLimit'==_0x4190fd||'uploadcareLicenseKeyTrialLimit'==_0x4190fd||'uploadcareLicenseKeyUsageLimit'==_0x4190fd){delete _0x52d70d[_0x463460],_0x3ad883=_0x4190fd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3ad883&&_0x52d70d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3ad883&&_0x52d70d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3ad883&&_0x52d70d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3ad883&&_0x52d70d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3ad883&&_0x52d70d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3ad883&&_0x52d70d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3ad883&&_0x52d70d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4a3cfe}=this,_0x259b68=_0x4a3cfe['commands']['get']('uploadcare');if(!_0x259b68)return;const _0x3176eb=this['_normalizeConfigSourceList'](_0x4a3cfe['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5c719f,_0x29d381)=>{const _0x429155=this['_getIntegrationKey'](_0x29d381['type']);return _0x5c719f[_0x429155]||(_0x5c719f[_0x429155]=[]),_0x5c719f[_0x429155]['push'](_0x29d381),_0x5c719f;},{});_0x4a3cfe['plugins']['has']('ImageInsertUI')&&_0x4a3cfe['commands']['get']('uploadcare')&&Object['entries'](_0x3176eb)['forEach'](([_0x2676f4,_0x583391])=>{_0x4a3cfe['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2676f4,'observable':()=>_0x259b68,'buttonViewCreator':()=>this['_createToolbarButton'](_0x583391),'formViewCreator':()=>this['_createDropdownButtons'](_0x583391),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x583391),'override':'assetManager'!==_0x2676f4});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x424732){const {locale:_0x2d9e0c}=this['editor'];return _0x424732['map'](_0x470744=>{const _0x461030=_(_0x2d9e0c,_0x470744,'Insert');switch(_0x470744){case i['Local']:return{'icon':_0x185b63,'type':i['Local'],..._0x461030};case i['URL']:return{'icon':_0x43b16f,'type':i['URL'],..._0x461030};case i['Dropbox']:return{'icon':_0x412fbf,'type':i['Dropbox'],..._0x461030};case i['Facebook']:return{'icon':_0x4bc50f,'type':i['Facebook'],..._0x461030};case i['GDrive']:return{'icon':_0x909c29,'type':i['GDrive'],..._0x461030};case i['GPhotos']:return{'icon':_0x57984f,'type':i['GPhotos'],..._0x461030};case i['OneDrive']:return{'icon':_0x114eb9,'type':i['OneDrive'],..._0x461030};}});}['_getIntegrationKey'](_0x135ce8){switch(_0x135ce8){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xc7fdf,_0x5e06ab){const _0x613a7d=this['editor'],_0x2d8621=new _0xc7fdf(_0x613a7d['locale']),_0x500d2f=_0x613a7d['commands']['get']('uploadcare');return _0x2d8621['bind']('isEnabled')['to'](_0x500d2f),_0x2d8621['on']('execute',()=>{_0x500d2f['execute'](_0x5e06ab);}),_0x2d8621;}['_createToolbarButton'](_0x4b00d4){const {locale:_0x37f11c}=this['editor'],_0x59d1ff=this['editor']['plugins']['get']('ImageInsertUI'),_0x1a3564=_0x4b00d4[0x0],_0x24b88b=this['_createButton'](_0x286d0a,_0x1a3564['type']);return _0x24b88b['icon']=_0x1a3564['icon'],_0x24b88b['bind']('label')['to'](_0x59d1ff,'isImageSelected',_0x482f19=>_(_0x37f11c,_0x1a3564['type'],_0x482f19?'Replace':'Insert')['text']),_0x24b88b['tooltip']=!0x0,_0x24b88b;}['_createDropdownButtons'](_0xadf7a4){const {locale:_0x3468bc}=this['editor'],_0x352330=this['editor']['plugins']['get']('ImageInsertUI');return _0xadf7a4['map'](_0x17dc53=>{const _0x325564=this['_createButton'](_0x286d0a,_0x17dc53['type']);return _0x325564['withText']=!0x0,_0x325564['icon']=_0x17dc53['icon'],_0x325564['bind']('label')['to'](_0x352330,'isImageSelected',_0x31c990=>_(_0x3468bc,_0x17dc53['type'],_0x31c990?'Replace':'Insert')['text']),_0x325564;});}['_createMenuBarButtons'](_0x3a23e9){return _0x3a23e9['map'](_0x10dd7b=>{const _0x30fc4=this['_createButton'](_0x27997f,_0x10dd7b['type']);return _0x30fc4['icon']=_0x10dd7b['icon'],_0x30fc4['label']=_0x10dd7b['shortText'],_0x30fc4;});}}class F extends _0x2cd9eb{['focusTracker'];['focusCycler'];constructor(_0x13c2e8){super(_0x13c2e8),this['focusTracker']=new _0x28c70b(),this['focusCycler']=new _0x4938e6({'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(_0x5ce958,_0x525fdf){super(_0x5ce958),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-'+_0x525fdf}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x4db595,_0x4871d1){const _0x2b1109=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3c68d8=>_0x3c68d8<=_0x4871d1)['map'](_0x669e1a=>_0x4db595['replace'](/\/$/,'')+'/-/resize/'+_0x669e1a+'x/\x20'+_0x669e1a+'w');return{'imageFallbackUrl':_0x4db595,'imageSources':[{'srcset':_0x2b1109['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4871d1+'px)\x20100vw,\x20'+_0x4871d1+'px','type':'image/webp'}]};}function S(_0x8e9e80,_0x4c510f,_0x4ca568){const _0x314c68=_0x8e9e80['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x314c68?parseInt(_0x314c68[0x1],0xa):_0x4c510f,'height':_0x314c68?parseInt(_0x314c68[0x2],0xa):_0x4ca568};}function p(_0x537c33,_0x5534e9){const _0x157cea=new(_0x428e92())(),_0x24ba5e=_0x537c33['plugins']['get']('ImageUtils'),_0x32bd31=_0x537c33['editing']['mapper']['toViewElement'](_0x5534e9),_0x8bd303=_0x24ba5e['findViewImgElement'](_0x32bd31),_0xed98a3=_0x537c33['editing']['view']['domConverter']['viewToDom'](_0x8bd303),_0x276455=_0x5534e9['getAttribute']('width'),_0x483368=_0x5534e9['getAttribute']('height'),_0x20e7c1='image-processing';_0x537c33['editing']['view']['change'](_0x5bd20f=>{_0x5bd20f['addClass'](_0x20e7c1,_0x32bd31),_0x5bd20f['setStyle']('aspect-ratio',_0x276455+'/'+_0x483368,_0x8bd303);}),_0x157cea['listenTo'](_0xed98a3,'load',()=>{_0x157cea['stopListening'](_0xed98a3,'load'),_0x537c33['editing']['view']['change'](_0x3081d4=>{_0x3081d4['removeClass'](_0x20e7c1,_0x32bd31),_0x3081d4['removeStyle']('aspect-ratio',_0x8bd303);});});}function G(_0x54d9a7){if(Array['isArray'](_0x54d9a7)){const _0x5970ac=_0x54d9a7['map'](G);return _0x3a4efe=>_0x5970ac['some'](_0x15f973=>_0x15f973(_0x3a4efe));}if('origin'==_0x54d9a7){const _0x1d3702=_0x138a30['window']['location']['origin'];return _0x1683bb=>new URL(_0x1683bb,_0x138a30['document']['baseURI'])['origin']==_0x1d3702;}return'function'==typeof _0x54d9a7?_0x54d9a7:_0x54d9a7 instanceof RegExp?_0x5c6665=>!(!_0x5c6665['match'](_0x54d9a7)&&!_0x5c6665['replace'](/^https?:\/\//,'')['match'](_0x54d9a7)):()=>!0x1;}function A(_0x1a3a94,_0x1fcdfa){return _0x2497b1(_0x1a3a94['target'])['includes'](_0x1fcdfa);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x4187a9(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x563a85,_0x1d7e1f,_0x3f5379){super(),this['_editor']=_0x563a85,this['_editing']=_0x1d7e1f,this['_dialog']=_0x563a85['plugins']['get'](_0x9884e),this['_api']=_0x1d7e1f['ctxElement']['getAPI'](),this['_type']=_0x3f5379,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:_0x4f930d,model:_0x454ea5}=this['_editor'],_0x290a3e=_0x454ea5['document']['selection']['getSelectedElement'](),_0x510fea=_0x290a3e&&(_0x290a3e['is']('element','imageBlock')||_0x290a3e['is']('element','imageInline'));this['_formView']=new x(_0x4f930d,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x185b63,'title':_(_0x4f930d,this['_type'],_0x510fea?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x52a94c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1b961b=>!A(_0x1b961b,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5f24f4}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x376267=>{const _0x5b2913=_0x5f24f4['length'];for(const _0x5ebee8 of _0x5f24f4){const _0x48652d=_0x5ebee8===_0x5f24f4[_0x5b2913-0x1],{cdnUrl:_0x554c72,fileInfo:_0x2172bc}=_0x5ebee8;if(!_0x554c72||!_0x2172bc)continue;const {width:_0x1f1687,height:_0x37ece6}=_0x2172bc['imageInfo'],_0x22f036=S(_0x554c72,_0x1f1687,_0x37ece6),_0x34eb93=C(_0x554c72,_0x22f036['width']),_0x265ab3={'id':_0x2172bc['uuid'],'type':'image','attributes':{'imageDimension':_0x22f036,..._0x34eb93}};this['_insertAsset'](_0x265ab3,_0x48652d,_0x376267);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x286371=>{'idle'===_0x286371['detail']['status']&&!_0x286371['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5b51b8,_0x33b846,_0x852722){const _0x145a1b=this['_editor']['model']['document']['selection'],_0x4adbdb=_0x145a1b['getSelectedElement'](),_0x1dfbf5=!(!_0x4adbdb||!_0x4adbdb['is']('element','imageInline'));_0x852722['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5b51b8,_0x1dfbf5),_0x33b846||_0x852722['setSelection'](_0x145a1b['getLastPosition']());}['_insertImage'](_0x103a18,_0x2c541c){const _0x41b19a=this['_editor'],{imageDimension:_0x3b6938,imageFallbackUrl:_0x1173c0,imageSources:_0x11752f}=_0x103a18['attributes'];_0x41b19a['execute']('insertImage',{'imageType':_0x2c541c?'imageInline':null,'source':{'uploadcareImageId':_0x103a18['id'],'src':_0x1173c0,'sources':_0x11752f,..._0x3b6938}});}}class w extends _0x57a68a{['_editing'];['_controller']=null;static get['requires'](){return[_0x9884e,o];}constructor(_0x37c6b7){super(_0x37c6b7),this['_editing']=_0x37c6b7['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1e69dd){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1e69dd);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x450d0f,..._0x3111ca}){return _0x2061b0(_0x450d0f,_0x3111ca);}static['getInfo'](_0x29ee28,_0x31c143){return _0xcea7fa(_0x29ee28,_0x31c143);}}class f extends _0x443f5c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1fb0c1,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x12ca9e=this['editor'];if(!!!_0x12ca9e['config']['get']('uploadcare'))return;_0x12ca9e['plugins']['get'](_0x1fb0c1)['createUploadAdapter']=_0x188aad=>new k(_0x188aad,_0x12ca9e),_0x12ca9e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xfe4af1,{imageElement:_0x1c5efb,data:_0x3e93ce})=>{_0x12ca9e['model']['change'](_0x28704a=>{_0x28704a['setAttribute']('uploadcareImageId',_0x3e93ce['uploadcareImageId'],_0x1c5efb);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2144c8,_0x556da2){this['loader']=_0x2144c8,this['editor']=_0x556da2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x331ecb=await this['loader']['file'];return j['upload']({'file':_0x331ecb,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x4202ec=>{_0x4202ec&&_0x4202ec['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4202ec['value']);}})['then'](async _0x1d4054=>{const {imageFallbackUrl:_0x4271f1,imageSources:_0x227a2b}=C(_0x1d4054['cdnUrl'],_0x1d4054['imageInfo']['width']);return{'uploadcareImageId':_0x1d4054['uuid'],'default':_0x4271f1,'sources':_0x227a2b};})['catch'](()=>{const _0x3ab18f=t('Cannot\x20upload\x20file:')+('\x20'+_0x331ecb['name']+'.');return Promise['reject'](_0x3ab18f);});}['abort'](){this['controller']['abort']();}}class o extends _0x443f5c{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x9884e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x393b8c){super(_0x393b8c),this['ucContextId']=_0x2c62ef();}['init'](){const _0x7fed66=this['editor'];_0x7fed66['commands']['add']('uploadcare',new w(_0x7fed66));}['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 _0x5b781c=_0x138a30['document']['querySelector']('input[uploadcare-file-input]');_0x5b781c&&_0x5b781c['remove']();}),async function(_0x34fc22){const _0xd2e303=_0xa67f34([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x5e9357=0x535f8c3a,_0x270e1f=0x5358f582^_0x5e9357,_0x163190=window[_0xa67f34([0x44,0x61,0x74,0x65])][_0xa67f34([0x6e,0x6f,0x77])](),_0x2f6291=_0x34fc22[_0xa67f34([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59f402=new window[(_0xa67f34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58451e=>{_0x2f6291[_0xa67f34([0x6f,0x6e,0x63,0x65])](_0xa67f34([0x72,0x65,0x61,0x64,0x79]),_0x58451e);}),_0x418272={[_0xa67f34([0x6b,0x74,0x79])]:_0xa67f34([0x45,0x43]),[_0xa67f34([0x75,0x73,0x65])]:_0xa67f34([0x73,0x69,0x67]),[_0xa67f34([0x63,0x72,0x76])]:_0xa67f34([0x50,0x2d,0x32,0x35,0x36]),[_0xa67f34([0x78])]:_0xa67f34([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]),[_0xa67f34([0x79])]:_0xa67f34([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]),[_0xa67f34([0x61,0x6c,0x67])]:_0xa67f34([0x45,0x53,0x32,0x35,0x36])},_0x42d356=_0x2f6291[_0xa67f34([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa67f34([0x67,0x65,0x74])](_0xa67f34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x49ac88(){let _0xae8df4,_0x31acdb=null,_0x39a011=null;try{if(_0x42d356==_0xa67f34([0x47,0x50,0x4c]))return _0xa67f34([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xae8df4=_0x3595ce(),!_0xae8df4)return _0xa67f34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xae8df4[_0xa67f34([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x39a011=_0x19503f(_0xae8df4[_0xa67f34([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xae8df4[_0xa67f34([0x6a,0x74,0x69])])),await _0x10cc38()?_0x417490()?_0x48f53f()?_0xa67f34([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x56ebee()?(_0xae8df4[_0xa67f34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa67f34([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x31acdb=_0x3875f8(_0xa67f34([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xae8df4[_0xa67f34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa67f34([0x74,0x72,0x69,0x61,0x6c])&&(_0x31acdb=_0x3875f8(_0xa67f34([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5c2f07()):_0xa67f34([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa67f34([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa67f34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xa67f34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x48f53f(){const _0x57927a=[_0xa67f34([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa67f34([0x74,0x72,0x69,0x61,0x6c])][_0xa67f34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xae8df4[_0xa67f34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x163190/0x3e8:0xe10*_0x270e1f;return _0xae8df4[_0xa67f34([0x65,0x78,0x70])]<_0x57927a;}function _0x417490(){const _0x16834e=_0xae8df4[_0xa67f34([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x16834e&&(!!_0x16834e[_0xa67f34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa67f34([0x2a]))||!!_0x16834e[_0xa67f34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa67f34([0x55,0x50,0x4c,0x43])));}function _0x56ebee(){const _0x1cb4d1=_0xae8df4[_0xa67f34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1cb4d1||0x0==_0x1cb4d1[_0xa67f34([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4014a4}=new URL(window[_0xa67f34([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1cb4d1[_0xa67f34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4014a4))return!0x0;const _0x318d63=_0x4014a4[_0xa67f34([0x73,0x70,0x6c,0x69,0x74])](_0xa67f34([0x2e]));return _0x1cb4d1[_0xa67f34([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e32a0=>_0x1e32a0[_0xa67f34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa67f34([0x2a])))[_0xa67f34([0x6d,0x61,0x70])](_0x140525=>_0x140525[_0xa67f34([0x73,0x70,0x6c,0x69,0x74])](_0xa67f34([0x2e])))[_0xa67f34([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34ecae=>_0x34ecae[_0xa67f34([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x318d63[_0xa67f34([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa67f34([0x6d,0x61,0x70])](_0x5e2f12=>Array(_0x318d63[_0xa67f34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5e2f12[_0xa67f34([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa67f34([0x66,0x69,0x6c,0x6c])](_0x5e2f12[0x0]===_0xa67f34([0x2a])?_0xa67f34([0x2a]):'')[_0xa67f34([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5e2f12))[_0xa67f34([0x73,0x6f,0x6d,0x65])](_0x2f85b4=>_0x318d63[_0xa67f34([0x65,0x76,0x65,0x72,0x79])]((_0x2bc14e,_0x573fee)=>_0x2f85b4[_0x573fee]===_0x2bc14e||_0x2f85b4[_0x573fee]===_0xa67f34([0x2a])));}function _0x5c2f07(){return _0x31acdb&&_0x39a011?new window[(_0xa67f34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x12b145,_0x4b98ab)=>{_0x31acdb[_0xa67f34([0x74,0x68,0x65,0x6e])](_0x12b145,_0x4b98ab),_0x39a011[_0xa67f34([0x74,0x68,0x65,0x6e])](_0x1422e0=>{_0x1422e0!=_0xa67f34([0x56,0x61,0x6c,0x69,0x64])&&_0x12b145(_0x1422e0);},_0x4b98ab);}):_0x31acdb||_0x39a011||_0xa67f34([0x56,0x61,0x6c,0x69,0x64]);}}function _0x19503f(_0x4c15d0,_0x5ce283){return new window[(_0xa67f34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2730fb=>{if(_0x3f169f())return _0x2730fb(_0xa67f34([0x56,0x61,0x6c,0x69,0x64]));_0x3d0ca8(),_0x2f6291[_0xa67f34([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa67f34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xb5ed32=!0x1;const _0x38e37f=_0x2c62ef();function _0x251ac0(_0x31cf8b){return!!_0x31cf8b&&(typeof _0x31cf8b===_0xa67f34([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x31cf8b===_0xa67f34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x31cf8b[_0xa67f34([0x74,0x68,0x65,0x6e])]===_0xa67f34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x31cf8b[_0xa67f34([0x63,0x61,0x74,0x63,0x68])]===_0xa67f34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d3d7d(_0x599367){_0x4772f7(_0x599367)[_0xa67f34([0x74,0x68,0x65,0x6e])](_0x1c46f0=>{if(!_0x1c46f0||_0x1c46f0[_0xa67f34([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa67f34([0x6f,0x6b]))return _0xa67f34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5693c1(_0x461c3e(_0x38e37f+_0x5ce283))!=_0x1c46f0[_0xa67f34([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa67f34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa67f34([0x56,0x61,0x6c,0x69,0x64]);})[_0xa67f34([0x74,0x68,0x65,0x6e])](_0x20f91e=>(_0x3f13e4(),_0x20f91e),()=>{const _0x3105fa=_0x2d5aca();return null==_0x3105fa?(_0x3f13e4(),_0xa67f34([0x56,0x61,0x6c,0x69,0x64])):_0xa67f34(_0x163190-_0x3105fa>(0x7753083a^_0x5e9357)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa67f34([0x74,0x68,0x65,0x6e])](_0x2730fb)[_0xa67f34([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2730fb(_0xa67f34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1dea07=0x536962ba^_0x5e9357;function _0x3f13e4(){const _0x13cdf7=_0xa67f34([0x6c,0x6c,0x63,0x74,0x2d])+_0x5693c1(_0x461c3e(_0x4c15d0)),_0x3e4edd=_0x105bad(_0x5693c1(window[_0xa67f34([0x4d,0x61,0x74,0x68])][_0xa67f34([0x63,0x65,0x69,0x6c])](_0x163190/_0x1dea07)));window[_0xa67f34([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa67f34([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13cdf7,_0x3e4edd);}function _0x2d5aca(){const _0x276e1d=_0xa67f34([0x6c,0x6c,0x63,0x74,0x2d])+_0x5693c1(_0x461c3e(_0x4c15d0)),_0x519e96=window[_0xa67f34([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa67f34([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x276e1d);return _0x519e96?window[_0xa67f34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x105bad(_0x519e96),0x10)*_0x1dea07:null;}function _0x4772f7(_0x36b23b){return new window[(_0xa67f34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a64ef,_0x4947b4)=>{_0x36b23b[_0xa67f34([0x74,0x68,0x65,0x6e])](_0x2a64ef,_0x4947b4),window[_0xa67f34([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4947b4,0x535e58fa^_0x5e9357);});}}_0x2f6291[_0xa67f34([0x6f,0x6e])](_0xa67f34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xdcd6a4,_0x1106b9)=>{if(_0x1106b9[0x0]!=_0x4c15d0)return _0x2730fb(_0xa67f34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1106b9[0x1]={..._0x1106b9[0x1],[_0xa67f34([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x38e37f};},{[_0xa67f34([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa67f34([0x68,0x69,0x67,0x68])}),_0x2f6291[_0xa67f34([0x6f,0x6e])](_0xa67f34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2fc982=>{_0x251ac0(_0x2fc982[_0xa67f34([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xb5ed32=!0x0,_0x5d3d7d(_0x2fc982[_0xa67f34([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa67f34([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa67f34([0x6c,0x6f,0x77])}),_0x59f402[_0xa67f34([0x74,0x68,0x65,0x6e])](()=>{_0xb5ed32||_0x2730fb(_0xa67f34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3f169f(){return _0x2f6291[_0xa67f34([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa67f34([0x76,0x69,0x65,0x77])][_0xa67f34([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa67f34([0x61,0x75,0x74,0x6f]);}function _0x3d0ca8(){_0x2f6291[_0xa67f34([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa67f34([0x76,0x69,0x65,0x77])][_0xa67f34([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa67f34([0x61,0x75,0x74,0x6f]);}}function _0x3875f8(_0x217c98){const _0x31e527=[new window[(_0xa67f34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40fbb3=>setTimeout(_0x40fbb3,0x5356b2f6^_0x5e9357)),_0x59f402[_0xa67f34([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa67f34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43cfd4=>{let _0x3bf63a=0x0;_0x2f6291[_0xa67f34([0x6d,0x6f,0x64,0x65,0x6c])][_0xa67f34([0x6f,0x6e])](_0xa67f34([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b80ab,_0x35ea6c)=>{_0x35ea6c[0x0][_0xa67f34([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3bf63a++,_0x3bf63a==(0x535f8dc2^_0x5e9357)&&(_0x43cfd4(),_0x3b80ab[_0xa67f34([0x6f,0x66,0x66])]());});}))];return window[_0xa67f34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa67f34([0x72,0x61,0x63,0x65])](_0x31e527)[_0xa67f34([0x74,0x68,0x65,0x6e])](()=>_0x217c98);}async function _0x514e6c(){await _0x59f402,_0x2f6291[_0xa67f34([0x6d,0x6f,0x64,0x65,0x6c])][_0xa67f34([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x53e684,_0x2f6291[_0xa67f34([0x6d,0x6f,0x64,0x65,0x6c])][_0xa67f34([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x53e684,_0x2f6291[_0xa67f34([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa67f34([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x412527(_0x11333c){const _0x51995a=_0xe7cf4f();_0x2f6291[_0x51995a]=_0xa67f34([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x11333c,_0x11333c!=_0xa67f34([0x56,0x61,0x6c,0x69,0x64])&&_0x514e6c();}function _0xe7cf4f(){const _0x576b21=window[_0xa67f34([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa67f34([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa67f34([0x6e,0x6f,0x77])]())[_0xa67f34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa67f34([0x2e]),'');let _0x12b741=_0xa67f34([0x68]);for(let _0x5f3efa=0x0;_0x5f3efa<_0x576b21[_0xa67f34([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5f3efa+=0x2){let _0x29a80b=window[_0xa67f34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x576b21[_0xa67f34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5f3efa,_0x5f3efa+0x2));_0x29a80b>=_0xd2e303[_0xa67f34([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x29a80b-=_0xd2e303[_0xa67f34([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x12b741+=_0xd2e303[_0x29a80b];}return _0x12b741;}function _0x3595ce(){const _0x342dd7=_0x42d356[_0xa67f34([0x73,0x70,0x6c,0x69,0x74])](_0xa67f34([0x2e]));if(0x3!=_0x342dd7[_0xa67f34([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c27af(_0x342dd7[0x1]);function _0x4c27af(_0x10a5ea){const _0x580cfc=_0x52f484(_0x10a5ea);return _0x580cfc&&_0x5e816e()?_0x580cfc:null;function _0x5e816e(){const _0x4bcbee=_0x580cfc[_0xa67f34([0x6a,0x74,0x69])],_0x529886=window[_0xa67f34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4bcbee[_0xa67f34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4bcbee[_0xa67f34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x414aa5={..._0x580cfc,[_0xa67f34([0x6a,0x74,0x69])]:_0x4bcbee[_0xa67f34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4bcbee[_0xa67f34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x414aa5[_0xa67f34([0x76,0x63])],_0x461c3e(_0x414aa5)==_0x529886;}}}async function _0x10cc38(){let _0x43d38c=!0x0;try{const _0x5539d0=_0x42d356[_0xa67f34([0x73,0x70,0x6c,0x69,0x74])](_0xa67f34([0x2e])),[_0x39e346,_0x49581d,_0x32b11d]=_0x5539d0;return _0x585bab(_0x39e346),await _0x487a66(_0x39e346,_0x49581d,_0x32b11d),_0x43d38c;}catch{return!0x1;}function _0x585bab(_0x40b470){const _0x298086=_0x52f484(_0x40b470);_0x298086&&_0x298086[_0xa67f34([0x61,0x6c,0x67])]==_0xa67f34([0x45,0x53,0x32,0x35,0x36])||(_0x43d38c=!0x1);}async function _0x487a66(_0x584dc3,_0x1a0a06,_0x195bd3){const _0x4d3730=window[_0xa67f34([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa67f34([0x66,0x72,0x6f,0x6d])](_0x7a0db1(_0x195bd3),_0x5d03f8=>_0x5d03f8[_0xa67f34([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x186e02=new window[(_0xa67f34([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa67f34([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x584dc3+_0xa67f34([0x2e])+_0x1a0a06),_0x58100b=window[_0xa67f34([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa67f34([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x58100b)return;const _0x38464b=await _0x58100b[_0xa67f34([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa67f34([0x6a,0x77,0x6b]),_0x418272,{[_0xa67f34([0x6e,0x61,0x6d,0x65])]:_0xa67f34([0x45,0x43,0x44,0x53,0x41]),[_0xa67f34([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa67f34([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa67f34([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x58100b[_0xa67f34([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa67f34([0x6e,0x61,0x6d,0x65])]:_0xa67f34([0x45,0x43,0x44,0x53,0x41]),[_0xa67f34([0x68,0x61,0x73,0x68])]:{[_0xa67f34([0x6e,0x61,0x6d,0x65])]:_0xa67f34([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x38464b,_0x4d3730,_0x186e02)||(_0x43d38c=!0x1);}}function _0x52f484(_0x4dec47){return _0x4dec47[_0xa67f34([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa67f34([0x65,0x79]))?JSON[_0xa67f34([0x70,0x61,0x72,0x73,0x65])](_0x7a0db1(_0x4dec47)):null;}function _0x7a0db1(_0x3c70fc){return window[_0xa67f34([0x61,0x74,0x6f,0x62])](_0x3c70fc[_0xa67f34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa67f34([0x2b]))[_0xa67f34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa67f34([0x2f])));}function _0x461c3e(_0x35de83){let _0x1d9b83=0x1505;function _0x168b8b(_0x1d97e3){for(let _0x3c2ae6=0x0;_0x3c2ae6<_0x1d97e3[_0xa67f34([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c2ae6++){const _0x75310a=_0x1d97e3[_0xa67f34([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3c2ae6);_0x1d9b83=(_0x1d9b83<<0x5)+_0x1d9b83+_0x75310a,_0x1d9b83&=_0x1d9b83;}}function _0x52c050(_0x35c8ae){Array[_0xa67f34([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x35c8ae)?_0x35c8ae[_0xa67f34([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x52c050):_0x35c8ae&&typeof _0x35c8ae==_0xa67f34([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa67f34([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x35c8ae)[_0xa67f34([0x73,0x6f,0x72,0x74])]()[_0xa67f34([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x535dac,_0x5c8857])=>{_0x168b8b(_0x535dac),_0x52c050(_0x5c8857);}):_0x168b8b(window[_0xa67f34([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x35c8ae));}return _0x52c050(_0x35de83),_0x1d9b83>>>0x0;}function _0x5693c1(_0x55ec7a){return _0x55ec7a[_0xa67f34([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa67f34([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa67f34([0x30]));}function _0x105bad(_0x51637b){return _0x51637b[_0xa67f34([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa67f34([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa67f34([0x6a,0x6f,0x69,0x6e])]('');}function _0x53e684(){}function _0xa67f34(_0x4e8815){return _0x4e8815['map'](_0x3097c0=>String['fromCharCode'](_0x3097c0))['join']('');}_0x412527(await _0x49ac88());}(this);}['_initSchema'](){const _0x55e7d7=this['editor']['model']['schema'];_0x55e7d7['isRegistered']('imageBlock')&&_0x55e7d7['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x55e7d7['isRegistered']('imageInline')&&_0x55e7d7['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4882fd=this['editor'];_0x4882fd['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4882fd['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1a510d=>_0x1a510d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5baac7=_0x4882fd['commands']['get']('replaceImageSource');_0x5baac7&&this['listenTo'](_0x5baac7,'cleanupImage',(_0x4fe6c1,[_0x1785fb,_0x1a1f7c])=>{_0x1785fb['removeAttribute']('uploadcareImageId',_0x1a1f7c);});}['_initConfig'](){const _0xe9a67c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3a3dd4=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x26334c(_0x138a30['document'],'uc-config',{..._0xe9a67c,'pubkey':_0x3a3dd4,'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']=_0x30f852=>{if('closeMax'==_0x30f852)return'#uc-icon-arrow-down';},_0x138a30['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x26334c(_0x138a30['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x138a30['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5c1ee6=this['editor']['commands']['get']('insertImage');_0x5c1ee6&&this['listenTo'](_0x5c1ee6,'execute',()=>{const _0xec6555=this['editor']['model']['document']['selection']['getSelectedElement']();_0xec6555&&_0xec6555['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xec6555);});});const _0x3d69a5=this['editor']['commands']['get']('uploadcareImageReplace');_0x3d69a5&&this['listenTo'](_0x3d69a5,'execute',()=>{const _0x13e900=this['editor']['model']['document']['selection']['getSelectedElement']();_0x13e900&&_0x13e900['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x13e900);});});}}class tt extends _0x443f5c{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x862c14){super(_0x862c14),_0x862c14['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4c3e66['defineComponents'](_0x4c3e66),this['_defineLocale']();}['_defineLocale'](){const _0x1f1071=this['editor']['config']['get']('uploadcare.locale'),_0x39e613=this['editor']['locale']['contentLanguage'];_0x1f1071&&_0x4c3e66['defineLocale'](_0x39e613,_0x1f1071);}}class ii extends _0x2cd9eb{constructor(_0x1a8d9a){super(_0x1a8d9a);const t=_0x1a8d9a['t'],_0x5a8767=this['bindTemplate'],_0x1bfe62=new _0xeaea56();_0x1bfe62['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':[_0x1bfe62,{'text':_0x5a8767['to']('imageUploadProgress',_0x16c273=>t('Loading\x20image...')+'\x20('+(_0x16c273||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 _0x2cd9eb{constructor(_0x2aef22){super(_0x2aef22);const t=_0x2aef22['t'];this['set']('errorType',null);const _0x37f3e2=new _0x286d0a(_0x2aef22);_0x37f3e2['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x37f3e2['withText']=!0x0,_0x37f3e2['class']='ck-button-action',_0x37f3e2['on']('execute',()=>{this['fire']('retry');}),_0x37f3e2['bind']('isVisible')['to'](this,'errorType',_0x576005=>'NotFound'!==_0x576005);const _0x499669=new _0x6a5aea();_0x499669['content']=_0x100bd6,_0x499669['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2a11eb=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':[_0x499669,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2a11eb['to']('errorType',_0x552ed6=>t('NotFound'!==_0x552ed6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x37f3e2]},{'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 _0x2cd9eb{constructor(_0x2c2966,_0x35bac4){super(_0x2c2966);const _0x4ec463=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x35bac4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4ec463['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x32ed1b,_0xca45e9,_0x1b814f){super(_0x32ed1b),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x32ed1b),this['_errorView']=new ti(_0x32ed1b),this['_editingView']=new ei(_0x32ed1b,_0x1b814f),this['_focusableView']=new _0x2cd9eb(_0x32ed1b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xca45e9),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'],_0xce3487=>{this['_addUploadcareImageEditorListeners'](_0xce3487);});}),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'](_0x42c17e,_0x3e1cdf){const _0xb53dbc='uc-cloud-image-editor',_0x5a9519=_0x42c17e['querySelector'](_0xb53dbc);if(_0x5a9519)return _0x3e1cdf(_0x5a9519);const _0x439c81=new MutationObserver(_0x1b22a4=>{const _0x425864=_0x1b22a4['filter'](_0x35acf4=>_0x35acf4['target']===_0x42c17e&&_0x35acf4['addedNodes']['length']>0x0&&_0x35acf4['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xb53dbc);_0x425864['length']&&(_0x439c81['disconnect'](),_0x3e1cdf(_0x425864[0x0]['addedNodes'][0x0]));});_0x439c81['observe'](_0x42c17e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x227818){_0x227818['addEventListener']('apply',_0x230ff4=>{this['fire']('apply',{'imageSrc':_0x230ff4['detail']['cdnUrl']});}),_0x227818['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4187a9(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1ddeba,_0x46b162,_0x173c8c){super(),this['_editor']=_0x1ddeba,this['_dialog']=_0x46b162,this['_imageElement']=_0x173c8c,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 _0x54a2f8=this['_imageElement'],_0x525e13=_0x54a2f8['getAttribute']('uploadcareImageId'),_0x55b509=_0x54a2f8['getAttribute']('src');if(_0x525e13)await this['_loadImageInfo'](_0x525e13,_0x55b509);else{if(this['_imageCache']['has'](_0x55b509)){const _0x83fb43=this['_imageCache']['get'](_0x55b509);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x83fb43['url'],this['imageDimension']=_0x83fb43['dimension'],this['imageId']=_0x83fb43['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1e0249}=this['_editor'],t=_0x1e0249['t'],_0x6e1ca9=new X(_0x1e0249,this['imageStatus'],this['_attributes']);_0x6e1ca9['bind']('status')['to'](this,'imageStatus'),_0x6e1ca9['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x6e1ca9['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x6e1ca9['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x6e1ca9,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x576c90,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x6e1ca9,'position':_0x52a94c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x6e1ca9['focus']();},'onHide':()=>{_0x6e1ca9['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4deb86=>!A(_0x4deb86,_0x6e1ca9['element'])}});}['_loadImageInfo'](_0x47a4dd,_0x34993e){return j['getInfo'](_0x47a4dd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x23f55c=>{const {width:_0x5cebc7,height:_0x11992e}=_0x23f55c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x34993e,this['imageDimension']={'width':_0x5cebc7,'height':_0x11992e},this['imageId']=_0x47a4dd;})['catch'](_0x3d2b25=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3d2b25['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x106540,_0x3efff0){return this['_getImageAsFile'](_0x106540)['then'](_0x49c274=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x3efff0['signal'],'file':_0x49c274,'onProgress':_0x228c1e=>{_0x228c1e&&_0x228c1e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x228c1e['value']));}}))['then'](_0x6f3511=>{const {width:_0x509403,height:_0x26ab07}=_0x6f3511['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x6f3511['cdnUrl'],this['imageDimension']={'width':_0x509403,'height':_0x26ab07},this['imageId']=_0x6f3511['uuid'],this['imageUploadProgress']=null;const _0x57012f=_0x106540['getAttribute']('src');this['_imageCache']['set'](_0x57012f,{'id':_0x6f3511['uuid'],'url':_0x6f3511['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x246f08=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x246f08['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x325760,_0x342c89){_0x325760['on']('apply',(_0x4a1670,_0x51dd50)=>{this['_replaceImage'](_0x342c89,_0x51dd50['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x325760['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x325760['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xeffade,_0x3f7f00,_0x47b01d){const _0x4f84bf=this['_editor'],{width:_0x119ac6,height:_0x25eaa4}=S(_0x3f7f00,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x33be8c,imageSources:_0x4469c7}=C(_0x3f7f00,_0x119ac6);_0x4f84bf['model']['change'](_0x36adc7=>{if('$graveyard'===_0xeffade['root']['rootName']){_0x4f84bf['execute']('insertImage',{'imageType':_0xeffade['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xeffade['getAttributes']()),'uploadcareImageId':_0x47b01d,'src':_0x33be8c,'sources':_0x4469c7,'width':_0x119ac6,'height':_0x25eaa4}});const _0x5ab5b3=_0xeffade['getChildren']();_0xeffade=_0x4f84bf['model']['document']['selection']['getSelectedElement']();for(const _0x5074d7 of _0x5ab5b3)_0x36adc7['append'](_0x36adc7['cloneElement'](_0x5074d7),_0xeffade);}else _0x36adc7['setSelection'](_0xeffade,'on'),_0x4f84bf['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xeffade['getAttributes']()),'uploadcareImageId':_0x47b01d,'src':_0x33be8c,'sources':_0x4469c7,'width':_0x119ac6,'height':_0x25eaa4},_0xeffade);_0x36adc7['setSelection'](_0xeffade,'on');});}async['_getImageAsFile'](_0x3cedfe){const _0x1d2cd3=_0x138a30['window'],_0x37d5c5=_0x138a30['document']['location']['href'],_0xb71779=new _0x1d2cd3['URL'](_0x3cedfe['getAttribute']('src'),_0x37d5c5);if('data:'===_0xb71779['protocol']){const _0x519589=_0xb71779['href']['split'](','),_0x1bc903=_0x519589[0x0]['match'](/:(.*?);/)[0x1],_0x230642=_0x1bc903['split']('/')[0x1],_0x418891=_0x1d2cd3['atob'](_0x519589[_0x519589['length']-0x1]);let _0x55032e=_0x418891['length'];const _0x1007e8=new _0x1d2cd3['Uint8Array'](_0x55032e);for(;_0x55032e--;)_0x1007e8[_0x55032e]=_0x418891['charCodeAt'](_0x55032e);return new _0x1d2cd3['File']([_0x1007e8],'image.'+_0x230642,{'type':_0x1bc903});}const _0x5438c6=_0xb71779['href']['split']('/'),_0x3d1d03=_0x5438c6[_0x5438c6['length']-0x1],_0x1eb521=_0x3d1d03['split']('.')[0x1];return _0x1d2cd3['fetch'](_0xb71779['href'])['then'](_0x27c3de=>_0x27c3de['clone']()['blob']())['then'](_0x5de312=>new _0x1d2cd3['File']([_0x5de312],_0x3d1d03,{'type':'image/'+_0x1eb521}));}}class O extends _0x57a68a{['imageEditController'];static get['requires'](){return[_0x9884e];}['_isEditable'];constructor(_0x1a0ff7){super(_0x1a0ff7),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x283b13){const _0x28c86e=G(_0x283b13);return _0x171b23=>!(!_0x171b23||!_0x171b23['is']('element','imageBlock')&&!_0x171b23['is']('element','imageInline'))&&(!!_0x171b23['hasAttribute']('uploadcareImageId')||!!_0x171b23['hasAttribute']('src')&&_0x28c86e(_0x171b23['getAttribute']('src')));}(_0x1a0ff7['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x19baa9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x19baa9);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x14d62a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x14d62a&&(_0x14d62a['is']('element','imageBlock')||_0x14d62a['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x9884e),_0x14d62a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x57a68a{['refresh'](){const _0x53f728=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x53f728&&(_0x53f728['is']('element','imageBlock')||_0x53f728['is']('element','imageInline')));}['execute'](_0x133cc5){const _0x20c1a9=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5240b9=>{_0x5240b9['setAttributes'](_0x133cc5,_0x20c1a9),_0x5240b9['removeAttribute']('srcset',_0x20c1a9),_0x5240b9['removeAttribute']('sizes',_0x20c1a9);});}}class m extends _0x443f5c{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4bc154,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4f2c41}=this;_0x4f2c41['commands']['add']('uploadcareImageEdit',new O(_0x4f2c41)),_0x4f2c41['commands']['add']('uploadcareImageReplace',new R(_0x4f2c41));}}class g extends _0x443f5c{['_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 _0x234a3d=this['editor'];_0x234a3d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5405a8=>{const _0x8f2d51=_0x234a3d['commands']['get']('uploadcareImageEdit'),_0x3b62cb=new _0x286d0a(_0x5405a8),t=_0x5405a8['t'];return _0x3b62cb['set']({'icon':_0x576c90,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3b62cb['bind']('isEnabled')['to'](_0x8f2d51),_0x3b62cb['bind']('isOn')['to'](_0x8f2d51,'isActive'),this['listenTo'](_0x3b62cb,'execute',()=>{_0x234a3d['execute']('uploadcareImageEdit'),_0x234a3d['editing']['view']['focus']();}),_0x3b62cb;}),this['_initConfig']();}['_initConfig'](){const _0x13008d=_0x26334c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x13008d),this['listenTo'](this['editor'],'destroy',()=>{_0x13008d['remove']();});}}class et extends _0x443f5c{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x591147,Command as _0x130986}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xc2ad5b,IconGooglePhotos as _0x24de46,IconGoogleDrive as _0x202a7e,IconFacebook as _0x2e91ea,IconDropbox as _0x202267,IconUploadcareLink as _0x1a139f,IconUploadcareImageUpload as _0x32fcb2,IconError as _0x4d5ce6,IconUploadcareImageEdit as _0x166e76}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2ad41a,MenuBarMenuListItemButtonView as _0x58f1f5,View as _0xe784cc,FocusCycler as _0x1a93fb,Dialog as _0x166b41,DialogViewPosition as _0x54da96,SpinnerView as _0xe5c68a,IconView as _0x3c2139,Notification as _0x5c25f5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1c20bf,DomEmitterMixin as _0x653c37,global as _0x5d7562,getAncestors as _0x3e791f,ObservableMixin as _0x46efc5,uid as _0x59d2ba,createElement as _0x426134}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5b6e2f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x29d312,info as _0x37f536}from'@uploadcare/upload-client';import*as _0x4d39d4 from'@uploadcare/file-uploader';var i=function(_0x32fb98){return _0x32fb98['Local']='local',_0x32fb98['URL']='url',_0x32fb98['Dropbox']='dropbox',_0x32fb98['GDrive']='gdrive',_0x32fb98['Facebook']='facebook',_0x32fb98['GPhotos']='gphotos',_0x32fb98['OneDrive']='onedrive',_0x32fb98;}({});function _(_0x1c6386,_0x5aa299,_0x180872){const t=_0x1c6386['t'],_0x4c0721=_0x1c6386['t'];switch(_0x5aa299){case i['Local']:return{'text':_0x4c0721('Insert'===_0x180872?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4c0721('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x180872?_0x4c0721('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4c0721('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x180872?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x180872?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x180872?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x180872?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x180872?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5aa299;}}class e extends _0x591147{['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 _0x5e868c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5e5a5f;for(const _0xc6dfd9 in _0x5e868c){const _0x5a6cc0=_0xc6dfd9,_0x2a0b24=_0x5e868c[_0x5a6cc0];if('uploadcareLicenseKeyValid'==_0x2a0b24||'uploadcareLicenseKeyInvalid'==_0x2a0b24||'uploadcareLicenseKeyExpired'==_0x2a0b24||'uploadcareLicenseKeyDomainLimit'==_0x2a0b24||'uploadcareLicenseKeyNotAllowed'==_0x2a0b24||'uploadcareLicenseKeyEvaluationLimit'==_0x2a0b24||'uploadcareLicenseKeyTrialLimit'==_0x2a0b24||'uploadcareLicenseKeyUsageLimit'==_0x2a0b24){delete _0x5e868c[_0x5a6cc0],_0x5e5a5f=_0x2a0b24,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5e5a5f&&_0x5e868c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5e5a5f&&_0x5e868c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5e5a5f&&_0x5e868c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5e5a5f&&_0x5e868c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5e5a5f&&_0x5e868c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5e5a5f&&_0x5e868c['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5e5a5f&&_0x5e868c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x264268}=this,_0x20676e=_0x264268['commands']['get']('uploadcare');if(!_0x20676e)return;const _0x211e74=this['_normalizeConfigSourceList'](_0x264268['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x40d8c8,_0x16de78)=>{const _0x11f949=this['_getIntegrationKey'](_0x16de78['type']);return _0x40d8c8[_0x11f949]||(_0x40d8c8[_0x11f949]=[]),_0x40d8c8[_0x11f949]['push'](_0x16de78),_0x40d8c8;},{});_0x264268['plugins']['has']('ImageInsertUI')&&_0x264268['commands']['get']('uploadcare')&&Object['entries'](_0x211e74)['forEach'](([_0x195c41,_0x4b94fd])=>{_0x264268['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x195c41,'observable':()=>_0x20676e,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4b94fd),'formViewCreator':()=>this['_createDropdownButtons'](_0x4b94fd),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4b94fd),'override':'assetManager'!==_0x195c41});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x43586a){const {locale:_0xa10a43}=this['editor'];return _0x43586a['map'](_0x1f23b5=>{const _0x41faa4=_(_0xa10a43,_0x1f23b5,'Insert');switch(_0x1f23b5){case i['Local']:return{'icon':_0x32fcb2,'type':i['Local'],..._0x41faa4};case i['URL']:return{'icon':_0x1a139f,'type':i['URL'],..._0x41faa4};case i['Dropbox']:return{'icon':_0x202267,'type':i['Dropbox'],..._0x41faa4};case i['Facebook']:return{'icon':_0x2e91ea,'type':i['Facebook'],..._0x41faa4};case i['GDrive']:return{'icon':_0x202a7e,'type':i['GDrive'],..._0x41faa4};case i['GPhotos']:return{'icon':_0x24de46,'type':i['GPhotos'],..._0x41faa4};case i['OneDrive']:return{'icon':_0xc2ad5b,'type':i['OneDrive'],..._0x41faa4};}});}['_getIntegrationKey'](_0x442f1c){switch(_0x442f1c){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4e78ee,_0x37827a){const _0x5acaac=this['editor'],_0x1899ed=new _0x4e78ee(_0x5acaac['locale']),_0x516132=_0x5acaac['commands']['get']('uploadcare');return _0x1899ed['bind']('isEnabled')['to'](_0x516132),_0x1899ed['on']('execute',()=>{_0x516132['execute'](_0x37827a);}),_0x1899ed;}['_createToolbarButton'](_0x270431){const {locale:_0x3ffcd3}=this['editor'],_0x398641=this['editor']['plugins']['get']('ImageInsertUI'),_0x7dc80=_0x270431[0x0],_0x529de7=this['_createButton'](_0x2ad41a,_0x7dc80['type']);return _0x529de7['icon']=_0x7dc80['icon'],_0x529de7['bind']('label')['to'](_0x398641,'isImageSelected',_0x167e97=>_(_0x3ffcd3,_0x7dc80['type'],_0x167e97?'Replace':'Insert')['text']),_0x529de7['tooltip']=!0x0,_0x529de7;}['_createDropdownButtons'](_0x444373){const {locale:_0x1a56eb}=this['editor'],_0x207903=this['editor']['plugins']['get']('ImageInsertUI');return _0x444373['map'](_0x34375a=>{const _0x562c16=this['_createButton'](_0x2ad41a,_0x34375a['type']);return _0x562c16['withText']=!0x0,_0x562c16['icon']=_0x34375a['icon'],_0x562c16['bind']('label')['to'](_0x207903,'isImageSelected',_0x189b85=>_(_0x1a56eb,_0x34375a['type'],_0x189b85?'Replace':'Insert')['text']),_0x562c16;});}['_createMenuBarButtons'](_0x45e5e2){return _0x45e5e2['map'](_0x534da6=>{const _0x3d7e1f=this['_createButton'](_0x58f1f5,_0x534da6['type']);return _0x3d7e1f['icon']=_0x534da6['icon'],_0x3d7e1f['label']=_0x534da6['shortText'],_0x3d7e1f;});}}class V extends _0xe784cc{['focusTracker'];['focusCycler'];constructor(_0x48bea2){super(_0x48bea2),this['focusTracker']=new _0x1c20bf(),this['focusCycler']=new _0x1a93fb({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends V{constructor(_0x12f1d2,_0x57805a){super(_0x12f1d2),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-'+_0x57805a}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x52903a,_0x116178){const _0x1a89a2=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x694cbd=>_0x694cbd<=_0x116178)['map'](_0x1073ef=>_0x52903a['replace'](/\/$/,'')+'/-/resize/'+_0x1073ef+'x/\x20'+_0x1073ef+'w');return{'imageFallbackUrl':_0x52903a,'imageSources':[{'srcset':_0x1a89a2['join'](',\x20'),'sizes':'(max-width:\x20'+_0x116178+'px)\x20100vw,\x20'+_0x116178+'px','type':'image/webp'}]};}function F(_0x2ba9ac,_0xaaeb23,_0x1d7b62){const _0x2edfd1=_0x2ba9ac['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2edfd1?parseInt(_0x2edfd1[0x1],0xa):_0xaaeb23,'height':_0x2edfd1?parseInt(_0x2edfd1[0x2],0xa):_0x1d7b62};}function p(_0x156e3c,_0x1bdb1f){const _0x81a55d=new(_0x653c37())(),_0x114b35=_0x156e3c['plugins']['get']('ImageUtils'),_0x46613e=_0x156e3c['editing']['mapper']['toViewElement'](_0x1bdb1f),_0x3364c0=_0x114b35['findViewImgElement'](_0x46613e),_0x1e7852=_0x156e3c['editing']['view']['domConverter']['viewToDom'](_0x3364c0),_0x3ee342=_0x1bdb1f['getAttribute']('width'),_0x115fe7=_0x1bdb1f['getAttribute']('height'),_0x1ce951='image-processing';_0x156e3c['editing']['view']['change'](_0x1c84fb=>{_0x1c84fb['addClass'](_0x1ce951,_0x46613e),_0x1c84fb['setStyle']('aspect-ratio',_0x3ee342+'/'+_0x115fe7,_0x3364c0);}),_0x81a55d['listenTo'](_0x1e7852,'load',()=>{_0x81a55d['stopListening'](_0x1e7852,'load'),_0x156e3c['editing']['view']['change'](_0x3e73c2=>{_0x3e73c2['removeClass'](_0x1ce951,_0x46613e),_0x3e73c2['removeStyle']('aspect-ratio',_0x3364c0);});});}function R(_0x40f09e){if(Array['isArray'](_0x40f09e)){const _0x26ff7f=_0x40f09e['map'](R);return _0x59c9c1=>_0x26ff7f['some'](_0x71d565=>_0x71d565(_0x59c9c1));}if('origin'==_0x40f09e){const _0x52bab3=_0x5d7562['window']['location']['origin'];return _0x5455e9=>new URL(_0x5455e9,_0x5d7562['document']['baseURI'])['origin']==_0x52bab3;}return'function'==typeof _0x40f09e?_0x40f09e:_0x40f09e instanceof RegExp?_0x39a810=>!(!_0x39a810['match'](_0x40f09e)&&!_0x39a810['replace'](/^https?:\/\//,'')['match'](_0x40f09e)):()=>!0x1;}function M(_0x73db7d,_0x3e4e05){return _0x3e791f(_0x73db7d['target'])['includes'](_0x3e4e05);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x46efc5(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3be863,_0x2c2ed8,_0x12ce72){super(),this['_editor']=_0x3be863,this['_editing']=_0x2c2ed8,this['_dialog']=_0x3be863['plugins']['get'](_0x166b41),this['_api']=_0x2c2ed8['ctxElement']['getAPI'](),this['_type']=_0x12ce72,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:_0xf17426,model:_0x1a6145}=this['_editor'],_0x518343=_0x1a6145['document']['selection']['getSelectedElement'](),_0x176fc5=_0x518343&&(_0x518343['is']('element','imageBlock')||_0x518343['is']('element','imageInline'));this['_formView']=new S(_0xf17426,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x32fcb2,'title':_(_0xf17426,this['_type'],_0x176fc5?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x54da96['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x14b0df=>!M(_0x14b0df,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xa39dcd}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x263406=>{const _0x190993=_0xa39dcd['length'];for(const _0x9cb0a8 of _0xa39dcd){const _0x583e11=_0x9cb0a8===_0xa39dcd[_0x190993-0x1],{cdnUrl:_0x387d53,fileInfo:_0x123363}=_0x9cb0a8;if(!_0x387d53||!_0x123363)continue;const {width:_0x58a8f6,height:_0x2d890c}=_0x123363['imageInfo'],_0x1e6261=F(_0x387d53,_0x58a8f6,_0x2d890c),_0x15d99b=C(_0x387d53,_0x1e6261['width']),_0x566dcb={'id':_0x123363['uuid'],'type':'image','attributes':{'imageDimension':_0x1e6261,..._0x15d99b}};this['_insertAsset'](_0x566dcb,_0x583e11,_0x263406);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3a399d=>{'idle'===_0x3a399d['detail']['status']&&!_0x3a399d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3e9a4b,_0x1f958c,_0x348ce6){const _0x727e38=this['_editor']['model']['document']['selection'],_0x4ff890=_0x727e38['getSelectedElement'](),_0x2e8779=!(!_0x4ff890||!_0x4ff890['is']('element','imageInline'));_0x348ce6['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3e9a4b,_0x2e8779),_0x1f958c||_0x348ce6['setSelection'](_0x727e38['getLastPosition']());}['_insertImage'](_0x13bf10,_0x1edb52){const _0x5869ff=this['_editor'],{imageDimension:_0x4e1bc2,imageFallbackUrl:_0x15b397,imageSources:_0x3e14b5}=_0x13bf10['attributes'];_0x5869ff['execute']('insertImage',{'imageType':_0x1edb52?'imageInline':null,'source':{'uploadcareImageId':_0x13bf10['id'],'src':_0x15b397,'sources':_0x3e14b5,..._0x4e1bc2}});}}class w extends _0x130986{['_editing'];['_controller']=null;static get['requires'](){return[_0x166b41,o];}constructor(_0xea1660){super(_0xea1660),this['_editing']=_0xea1660['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2bf0a2){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2bf0a2);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xcde0f9,..._0x3507e7}){return _0x29d312(_0xcde0f9,_0x3507e7);}static['getInfo'](_0x21402e,_0x239a09){return _0x37f536(_0x21402e,_0x239a09);}}class f extends _0x591147{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5b6e2f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x531a9d=this['editor'];if(!!!_0x531a9d['config']['get']('uploadcare'))return;_0x531a9d['plugins']['get'](_0x5b6e2f)['createUploadAdapter']=_0x12474c=>new k(_0x12474c,_0x531a9d),_0x531a9d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2c93b0,{imageElement:_0x4749c1,data:_0x699bca})=>{_0x531a9d['model']['change'](_0x2b8293=>{_0x2b8293['setAttribute']('uploadcareImageId',_0x699bca['uploadcareImageId'],_0x4749c1);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5d548f,_0x339a81){this['loader']=_0x5d548f,this['editor']=_0x339a81,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x47b100=await this['loader']['file'];return j['upload']({'file':_0x47b100,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x75ece0=>{_0x75ece0&&_0x75ece0['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x75ece0['value']);}})['then'](async _0x28966b=>{const {imageFallbackUrl:_0x15f724,imageSources:_0x2beb66}=C(_0x28966b['cdnUrl'],_0x28966b['imageInfo']['width']);return{'uploadcareImageId':_0x28966b['uuid'],'default':_0x15f724,'sources':_0x2beb66};})['catch'](()=>{const _0x44b769=t('Cannot\x20upload\x20file:')+('\x20'+_0x47b100['name']+'.');return Promise['reject'](_0x44b769);});}['abort'](){this['controller']['abort']();}}class o extends _0x591147{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x166b41];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x20ab0b){super(_0x20ab0b),this['ucContextId']=_0x59d2ba();}['init'](){const _0x4f38e1=this['editor'];_0x4f38e1['commands']['add']('uploadcare',new w(_0x4f38e1));}['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 _0x577554=_0x5d7562['document']['querySelector']('input[uploadcare-file-input]');_0x577554&&_0x577554['remove']();}),async function(_0x32b2a0){const _0xe781d4=_0x4700a4([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1deeec=0x535f8c3a,_0x1fbf9a=0x5358f5ea^_0x1deeec,_0x11c276=window[_0x4700a4([0x44,0x61,0x74,0x65])][_0x4700a4([0x6e,0x6f,0x77])](),_0x6b5b0=_0x32b2a0[_0x4700a4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6d8f01=new window[(_0x4700a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x568d1f=>{_0x6b5b0[_0x4700a4([0x6f,0x6e,0x63,0x65])](_0x4700a4([0x72,0x65,0x61,0x64,0x79]),_0x568d1f);}),_0x2b0a4f={[_0x4700a4([0x6b,0x74,0x79])]:_0x4700a4([0x45,0x43]),[_0x4700a4([0x75,0x73,0x65])]:_0x4700a4([0x73,0x69,0x67]),[_0x4700a4([0x63,0x72,0x76])]:_0x4700a4([0x50,0x2d,0x32,0x35,0x36]),[_0x4700a4([0x78])]:_0x4700a4([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]),[_0x4700a4([0x79])]:_0x4700a4([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]),[_0x4700a4([0x61,0x6c,0x67])]:_0x4700a4([0x45,0x53,0x32,0x35,0x36])},_0xb640de=_0x6b5b0[_0x4700a4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4700a4([0x67,0x65,0x74])](_0x4700a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x272d28(){let _0x508e80,_0x97d78f=null,_0x177997=null;try{if(_0xb640de==_0x4700a4([0x47,0x50,0x4c]))return _0x4700a4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x508e80=_0x2fa670(),!_0x508e80)return _0x4700a4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x508e80[_0x4700a4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x177997=_0x587770(_0x508e80[_0x4700a4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x508e80[_0x4700a4([0x6a,0x74,0x69])])),await _0x2dd2ff()?_0x3841cf()?_0x596700()?_0x4700a4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2de82d()?(_0x508e80[_0x4700a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4700a4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x97d78f=_0x4a873d(_0x4700a4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x508e80[_0x4700a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4700a4([0x74,0x72,0x69,0x61,0x6c])&&(_0x97d78f=_0x4a873d(_0x4700a4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x35c7f7()):_0x4700a4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4700a4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4700a4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4700a4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x596700(){const _0x5b8a39=[_0x4700a4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4700a4([0x74,0x72,0x69,0x61,0x6c])][_0x4700a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x508e80[_0x4700a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x11c276/0x3e8:0xe10*_0x1fbf9a;return _0x508e80[_0x4700a4([0x65,0x78,0x70])]<_0x5b8a39;}function _0x3841cf(){const _0x41ae14=_0x508e80[_0x4700a4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x41ae14&&(!!_0x41ae14[_0x4700a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4700a4([0x2a]))||!!_0x41ae14[_0x4700a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4700a4([0x55,0x50,0x4c,0x43])));}function _0x2de82d(){const _0x2b4b00=_0x508e80[_0x4700a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b4b00||0x0==_0x2b4b00[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x46c92c}=new URL(window[_0x4700a4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2b4b00[_0x4700a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46c92c))return!0x0;const _0x4f89fd=_0x46c92c[_0x4700a4([0x73,0x70,0x6c,0x69,0x74])](_0x4700a4([0x2e]));return _0x2b4b00[_0x4700a4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4849ca=>_0x4849ca[_0x4700a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4700a4([0x2a])))[_0x4700a4([0x6d,0x61,0x70])](_0x19875d=>_0x19875d[_0x4700a4([0x73,0x70,0x6c,0x69,0x74])](_0x4700a4([0x2e])))[_0x4700a4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43ead1=>_0x43ead1[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4f89fd[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4700a4([0x6d,0x61,0x70])](_0x1cc99a=>Array(_0x4f89fd[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1cc99a[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4700a4([0x66,0x69,0x6c,0x6c])](_0x1cc99a[0x0]===_0x4700a4([0x2a])?_0x4700a4([0x2a]):'')[_0x4700a4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1cc99a))[_0x4700a4([0x73,0x6f,0x6d,0x65])](_0x5af592=>_0x4f89fd[_0x4700a4([0x65,0x76,0x65,0x72,0x79])]((_0x3ca6e4,_0x5c457c)=>_0x5af592[_0x5c457c]===_0x3ca6e4||_0x5af592[_0x5c457c]===_0x4700a4([0x2a])));}function _0x35c7f7(){return _0x97d78f&&_0x177997?new window[(_0x4700a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5bd6f7,_0x3410f0)=>{_0x97d78f[_0x4700a4([0x74,0x68,0x65,0x6e])](_0x5bd6f7,_0x3410f0),_0x177997[_0x4700a4([0x74,0x68,0x65,0x6e])](_0x658865=>{_0x658865!=_0x4700a4([0x56,0x61,0x6c,0x69,0x64])&&_0x5bd6f7(_0x658865);},_0x3410f0);}):_0x97d78f||_0x177997||_0x4700a4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x587770(_0x33cc28,_0x2b522b){return new window[(_0x4700a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a075b=>{if(_0x6ef1a2())return _0x3a075b(_0x4700a4([0x56,0x61,0x6c,0x69,0x64]));_0x589a63(),_0x6b5b0[_0x4700a4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4700a4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x32e8e7=!0x1;const _0x4a287f=_0x59d2ba();function _0x2bcb7d(_0x444a9f){return!!_0x444a9f&&(typeof _0x444a9f===_0x4700a4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x444a9f===_0x4700a4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x444a9f[_0x4700a4([0x74,0x68,0x65,0x6e])]===_0x4700a4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x444a9f[_0x4700a4([0x63,0x61,0x74,0x63,0x68])]===_0x4700a4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x316244(_0x29fa4e){_0x32c0c5(_0x29fa4e)[_0x4700a4([0x74,0x68,0x65,0x6e])](_0x2dddac=>{if(!_0x2dddac||_0x2dddac[_0x4700a4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4700a4([0x6f,0x6b]))return _0x4700a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b1a67(_0x2c0079(_0x4a287f+_0x2b522b))!=_0x2dddac[_0x4700a4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4700a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4700a4([0x56,0x61,0x6c,0x69,0x64]);})[_0x4700a4([0x74,0x68,0x65,0x6e])](_0x5406b4=>(_0x8156d8(),_0x5406b4),()=>{const _0x5e1c45=_0x388b10();return null==_0x5e1c45?(_0x8156d8(),_0x4700a4([0x56,0x61,0x6c,0x69,0x64])):_0x4700a4(_0x11c276-_0x5e1c45>(0x7753083a^_0x1deeec)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4700a4([0x74,0x68,0x65,0x6e])](_0x3a075b)[_0x4700a4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3a075b(_0x4700a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xdf2ed0=0x536962ba^_0x1deeec;function _0x8156d8(){const _0x21330=_0x4700a4([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b1a67(_0x2c0079(_0x33cc28)),_0x5e51d7=_0x4304af(_0x1b1a67(window[_0x4700a4([0x4d,0x61,0x74,0x68])][_0x4700a4([0x63,0x65,0x69,0x6c])](_0x11c276/_0xdf2ed0)));window[_0x4700a4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4700a4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21330,_0x5e51d7);}function _0x388b10(){const _0x5627b2=_0x4700a4([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b1a67(_0x2c0079(_0x33cc28)),_0x35fdae=window[_0x4700a4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4700a4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5627b2);return _0x35fdae?window[_0x4700a4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4304af(_0x35fdae),0x10)*_0xdf2ed0:null;}function _0x32c0c5(_0x30d109){return new window[(_0x4700a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14f76e,_0x2747eb)=>{_0x30d109[_0x4700a4([0x74,0x68,0x65,0x6e])](_0x14f76e,_0x2747eb),window[_0x4700a4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2747eb,0x535e58fa^_0x1deeec);});}}_0x6b5b0[_0x4700a4([0x6f,0x6e])](_0x4700a4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e98a4,_0x35d354)=>{if(_0x35d354[0x0]!=_0x33cc28)return _0x3a075b(_0x4700a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x35d354[0x1]={..._0x35d354[0x1],[_0x4700a4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4a287f};},{[_0x4700a4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4700a4([0x68,0x69,0x67,0x68])}),_0x6b5b0[_0x4700a4([0x6f,0x6e])](_0x4700a4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3602c5=>{_0x2bcb7d(_0x3602c5[_0x4700a4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x32e8e7=!0x0,_0x316244(_0x3602c5[_0x4700a4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4700a4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4700a4([0x6c,0x6f,0x77])}),_0x6d8f01[_0x4700a4([0x74,0x68,0x65,0x6e])](()=>{_0x32e8e7||_0x3a075b(_0x4700a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x6ef1a2(){return _0x6b5b0[_0x4700a4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4700a4([0x76,0x69,0x65,0x77])][_0x4700a4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4700a4([0x61,0x75,0x74,0x6f]);}function _0x589a63(){_0x6b5b0[_0x4700a4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4700a4([0x76,0x69,0x65,0x77])][_0x4700a4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4700a4([0x61,0x75,0x74,0x6f]);}}function _0x4a873d(_0x243e99){const _0x158d94=[new window[(_0x4700a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x215d5d=>setTimeout(_0x215d5d,0x5356b2f6^_0x1deeec)),_0x6d8f01[_0x4700a4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4700a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8ea423=>{let _0xa57bec=0x0;_0x6b5b0[_0x4700a4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4700a4([0x6f,0x6e])](_0x4700a4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xce1291,_0x213f60)=>{_0x213f60[0x0][_0x4700a4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xa57bec++,_0xa57bec==(0x535f8dc2^_0x1deeec)&&(_0x8ea423(),_0xce1291[_0x4700a4([0x6f,0x66,0x66])]());});}))];return window[_0x4700a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4700a4([0x72,0x61,0x63,0x65])](_0x158d94)[_0x4700a4([0x74,0x68,0x65,0x6e])](()=>_0x243e99);}async function _0xe781bd(){await _0x6d8f01,_0x6b5b0[_0x4700a4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4700a4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x205284,_0x6b5b0[_0x4700a4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4700a4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x205284,_0x6b5b0[_0x4700a4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4700a4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x320d00(_0x58e628){const _0x38b5ff=_0x30f25d();_0x6b5b0[_0x38b5ff]=_0x4700a4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x58e628,_0x58e628!=_0x4700a4([0x56,0x61,0x6c,0x69,0x64])&&_0xe781bd();}function _0x30f25d(){const _0x51b622=window[_0x4700a4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4700a4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4700a4([0x6e,0x6f,0x77])]())[_0x4700a4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4700a4([0x2e]),'');let _0x18f64b=_0x4700a4([0x68]);for(let _0xf4bf98=0x0;_0xf4bf98<_0x51b622[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf4bf98+=0x2){let _0x114566=window[_0x4700a4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51b622[_0x4700a4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf4bf98,_0xf4bf98+0x2));_0x114566>=_0xe781d4[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x114566-=_0xe781d4[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x18f64b+=_0xe781d4[_0x114566];}return _0x18f64b;}function _0x2fa670(){const _0x3dc47d=_0xb640de[_0x4700a4([0x73,0x70,0x6c,0x69,0x74])](_0x4700a4([0x2e]));if(0x3!=_0x3dc47d[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4b2bf0(_0x3dc47d[0x1]);function _0x4b2bf0(_0x38def7){const _0x669aee=_0x3b66e7(_0x38def7);return _0x669aee&&_0x4e89d1()?_0x669aee:null;function _0x4e89d1(){const _0xfeedf8=_0x669aee[_0x4700a4([0x6a,0x74,0x69])],_0x108007=window[_0x4700a4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfeedf8[_0x4700a4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xfeedf8[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5ce822={..._0x669aee,[_0x4700a4([0x6a,0x74,0x69])]:_0xfeedf8[_0x4700a4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xfeedf8[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5ce822[_0x4700a4([0x76,0x63])],_0x2c0079(_0x5ce822)==_0x108007;}}}async function _0x2dd2ff(){let _0x532fd5=!0x0;try{const _0x27bfeb=_0xb640de[_0x4700a4([0x73,0x70,0x6c,0x69,0x74])](_0x4700a4([0x2e])),[_0x2bdf7e,_0x5616b5,_0x195714]=_0x27bfeb;return _0x20b2cb(_0x2bdf7e),await _0x13d133(_0x2bdf7e,_0x5616b5,_0x195714),_0x532fd5;}catch{return!0x1;}function _0x20b2cb(_0x192710){const _0x3c031b=_0x3b66e7(_0x192710);_0x3c031b&&_0x3c031b[_0x4700a4([0x61,0x6c,0x67])]==_0x4700a4([0x45,0x53,0x32,0x35,0x36])||(_0x532fd5=!0x1);}async function _0x13d133(_0x1b08b9,_0x1d66e6,_0x42a414){const _0x18f842=window[_0x4700a4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4700a4([0x66,0x72,0x6f,0x6d])](_0x52a4ad(_0x42a414),_0x2a584e=>_0x2a584e[_0x4700a4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x28f433=new window[(_0x4700a4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4700a4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1b08b9+_0x4700a4([0x2e])+_0x1d66e6),_0x169436=window[_0x4700a4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4700a4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x169436)return;const _0x29e80e=await _0x169436[_0x4700a4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4700a4([0x6a,0x77,0x6b]),_0x2b0a4f,{[_0x4700a4([0x6e,0x61,0x6d,0x65])]:_0x4700a4([0x45,0x43,0x44,0x53,0x41]),[_0x4700a4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4700a4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4700a4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x169436[_0x4700a4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4700a4([0x6e,0x61,0x6d,0x65])]:_0x4700a4([0x45,0x43,0x44,0x53,0x41]),[_0x4700a4([0x68,0x61,0x73,0x68])]:{[_0x4700a4([0x6e,0x61,0x6d,0x65])]:_0x4700a4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x29e80e,_0x18f842,_0x28f433)||(_0x532fd5=!0x1);}}function _0x3b66e7(_0x28cdee){return _0x28cdee[_0x4700a4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4700a4([0x65,0x79]))?JSON[_0x4700a4([0x70,0x61,0x72,0x73,0x65])](_0x52a4ad(_0x28cdee)):null;}function _0x52a4ad(_0x44bfc3){return window[_0x4700a4([0x61,0x74,0x6f,0x62])](_0x44bfc3[_0x4700a4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4700a4([0x2b]))[_0x4700a4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4700a4([0x2f])));}function _0x2c0079(_0x3223d0){let _0x1d2668=0x1505;function _0xf17cf(_0x5d9a3f){for(let _0x55e4a1=0x0;_0x55e4a1<_0x5d9a3f[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55e4a1++){const _0x541d98=_0x5d9a3f[_0x4700a4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55e4a1);_0x1d2668=(_0x1d2668<<0x5)+_0x1d2668+_0x541d98,_0x1d2668&=_0x1d2668;}}function _0x248f0e(_0x3c9f12){Array[_0x4700a4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c9f12)?_0x3c9f12[_0x4700a4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x248f0e):_0x3c9f12&&typeof _0x3c9f12==_0x4700a4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4700a4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c9f12)[_0x4700a4([0x73,0x6f,0x72,0x74])]()[_0x4700a4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5f2d70,_0x5dbe19])=>{_0xf17cf(_0x5f2d70),_0x248f0e(_0x5dbe19);}):_0xf17cf(window[_0x4700a4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c9f12));}return _0x248f0e(_0x3223d0),_0x1d2668>>>0x0;}function _0x1b1a67(_0x1851e7){return _0x1851e7[_0x4700a4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4700a4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4700a4([0x30]));}function _0x4304af(_0x180333){return _0x180333[_0x4700a4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4700a4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4700a4([0x6a,0x6f,0x69,0x6e])]('');}function _0x205284(){}function _0x4700a4(_0x1685a3){return _0x1685a3['map'](_0x17777b=>String['fromCharCode'](_0x17777b))['join']('');}_0x320d00(await _0x272d28());}(this);}['_initSchema'](){const _0x14afd1=this['editor']['model']['schema'];_0x14afd1['isRegistered']('imageBlock')&&_0x14afd1['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x14afd1['isRegistered']('imageInline')&&_0x14afd1['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3b9b3d=this['editor'];_0x3b9b3d['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3b9b3d['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x17183e=>_0x17183e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x178cfc=_0x3b9b3d['commands']['get']('replaceImageSource');_0x178cfc&&this['listenTo'](_0x178cfc,'cleanupImage',(_0x383d84,[_0x418825,_0x55f724])=>{_0x418825['removeAttribute']('uploadcareImageId',_0x55f724);});}['_initConfig'](){const _0x1b7e0e=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2f7701=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x426134(_0x5d7562['document'],'uc-config',{..._0x1b7e0e,'pubkey':_0x2f7701,'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']=_0x4c4649=>{if('closeMax'==_0x4c4649)return'#uc-icon-arrow-down';},_0x5d7562['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x426134(_0x5d7562['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5d7562['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x45902a=this['editor']['commands']['get']('insertImage');_0x45902a&&this['listenTo'](_0x45902a,'execute',()=>{const _0x556205=this['editor']['model']['document']['selection']['getSelectedElement']();_0x556205&&_0x556205['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x556205);});});const _0x387e3d=this['editor']['commands']['get']('uploadcareImageReplace');_0x387e3d&&this['listenTo'](_0x387e3d,'execute',()=>{const _0x37cd6b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x37cd6b&&_0x37cd6b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x37cd6b);});});}}class tt extends _0x591147{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x374149){super(_0x374149),_0x374149['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4d39d4['defineComponents'](_0x4d39d4),this['_defineLocale']();}['_defineLocale'](){const _0x15cd18=this['editor']['config']['get']('uploadcare.locale'),_0x3aca5d=this['editor']['locale']['contentLanguage'];_0x15cd18&&_0x4d39d4['defineLocale'](_0x3aca5d,_0x15cd18);}}class ii extends _0xe784cc{constructor(_0x5b0537){super(_0x5b0537);const t=_0x5b0537['t'],_0x4ee64a=this['bindTemplate'],_0x57c33f=new _0xe5c68a();_0x57c33f['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':[_0x57c33f,{'text':_0x4ee64a['to']('imageUploadProgress',_0x1bfacc=>t('Loading\x20image...')+'\x20('+(_0x1bfacc||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 _0xe784cc{constructor(_0x189773){super(_0x189773);const t=_0x189773['t'];this['set']('errorType',null);const _0x419d11=new _0x2ad41a(_0x189773);_0x419d11['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x419d11['withText']=!0x0,_0x419d11['class']='ck-button-action',_0x419d11['on']('execute',()=>{this['fire']('retry');}),_0x419d11['bind']('isVisible')['to'](this,'errorType',_0x51c15c=>'NotFound'!==_0x51c15c);const _0x2987b6=new _0x3c2139();_0x2987b6['content']=_0x4d5ce6,_0x2987b6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4da778=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':[_0x2987b6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4da778['to']('errorType',_0x31ebc9=>t('NotFound'!==_0x31ebc9?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x419d11]},{'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 _0xe784cc{constructor(_0x1ce7d4,_0x475d6b){super(_0x1ce7d4);const _0x4c45a4=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x475d6b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4c45a4['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2ee425,_0x2bf158,_0x239fb1){super(_0x2ee425),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2ee425),this['_errorView']=new ti(_0x2ee425),this['_editingView']=new ei(_0x2ee425,_0x239fb1),this['_focusableView']=new _0xe784cc(_0x2ee425),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2bf158),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'],_0x55913f=>{this['_addUploadcareImageEditorListeners'](_0x55913f);});}),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'](_0x59b51f,_0xb3d12e){const _0x607670='uc-cloud-image-editor',_0x31d240=_0x59b51f['querySelector'](_0x607670);if(_0x31d240)return _0xb3d12e(_0x31d240);const _0x486081=new MutationObserver(_0x1f43ad=>{const _0x346342=_0x1f43ad['filter'](_0x26996a=>_0x26996a['target']===_0x59b51f&&_0x26996a['addedNodes']['length']>0x0&&_0x26996a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x607670);_0x346342['length']&&(_0x486081['disconnect'](),_0xb3d12e(_0x346342[0x0]['addedNodes'][0x0]));});_0x486081['observe'](_0x59b51f,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1284f7){_0x1284f7['addEventListener']('apply',_0xa1f0ec=>{this['fire']('apply',{'imageSrc':_0xa1f0ec['detail']['cdnUrl']});}),_0x1284f7['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x46efc5(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x291468,_0xbfe40d,_0x491ba0){super(),this['_editor']=_0x291468,this['_dialog']=_0xbfe40d,this['_imageElement']=_0x491ba0,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 _0xadd773=this['_imageElement'],_0x5db9e0=_0xadd773['getAttribute']('uploadcareImageId'),_0xa437f6=_0xadd773['getAttribute']('src');if(_0x5db9e0)await this['_loadImageInfo'](_0x5db9e0,_0xa437f6);else{if(this['_imageCache']['has'](_0xa437f6)){const _0x5d6102=this['_imageCache']['get'](_0xa437f6);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5d6102['url'],this['imageDimension']=_0x5d6102['dimension'],this['imageId']=_0x5d6102['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x159500}=this['_editor'],t=_0x159500['t'],_0x461b84=new X(_0x159500,this['imageStatus'],this['_attributes']);_0x461b84['bind']('status')['to'](this,'imageStatus'),_0x461b84['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x461b84['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x461b84['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x461b84,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x166e76,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x461b84,'position':_0x54da96['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x461b84['focus']();},'onHide':()=>{_0x461b84['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x56c518=>!M(_0x56c518,_0x461b84['element'])}});}['_loadImageInfo'](_0x51e7e7,_0x4d2298){return j['getInfo'](_0x51e7e7,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4484ac=>{const {width:_0x18f13a,height:_0x1ba01b}=_0x4484ac['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4d2298,this['imageDimension']={'width':_0x18f13a,'height':_0x1ba01b},this['imageId']=_0x51e7e7;})['catch'](_0x1143c6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1143c6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x258cde,_0x1336cf){return this['_getImageAsFile'](_0x258cde)['then'](_0x3980bb=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x1336cf['signal'],'file':_0x3980bb,'onProgress':_0x21caec=>{_0x21caec&&_0x21caec['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x21caec['value']));}}))['then'](_0x5985c4=>{const {width:_0x2cd10f,height:_0x139ab3}=_0x5985c4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5985c4['cdnUrl'],this['imageDimension']={'width':_0x2cd10f,'height':_0x139ab3},this['imageId']=_0x5985c4['uuid'],this['imageUploadProgress']=null;const _0x10b404=_0x258cde['getAttribute']('src');this['_imageCache']['set'](_0x10b404,{'id':_0x5985c4['uuid'],'url':_0x5985c4['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1bffae=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1bffae['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x341e2f,_0x34d964){_0x341e2f['on']('apply',(_0x36c525,_0x21241a)=>{this['_replaceImage'](_0x34d964,_0x21241a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x341e2f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x341e2f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4ea477,_0x43afea,_0x3f97fc){const _0x5601c2=this['_editor'],{width:_0x257ed7,height:_0xdf9b5b}=F(_0x43afea,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x888c91,imageSources:_0x4bc266}=C(_0x43afea,_0x257ed7);_0x5601c2['model']['change'](_0x261540=>{if('$graveyard'===_0x4ea477['root']['rootName']){_0x5601c2['execute']('insertImage',{'imageType':_0x4ea477['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4ea477['getAttributes']()),'uploadcareImageId':_0x3f97fc,'src':_0x888c91,'sources':_0x4bc266,'width':_0x257ed7,'height':_0xdf9b5b}});const _0x312a05=_0x4ea477['getChildren']();_0x4ea477=_0x5601c2['model']['document']['selection']['getSelectedElement']();for(const _0x3ed745 of _0x312a05)_0x261540['append'](_0x261540['cloneElement'](_0x3ed745),_0x4ea477);}else _0x261540['setSelection'](_0x4ea477,'on'),_0x5601c2['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4ea477['getAttributes']()),'uploadcareImageId':_0x3f97fc,'src':_0x888c91,'sources':_0x4bc266,'width':_0x257ed7,'height':_0xdf9b5b},_0x4ea477);_0x261540['setSelection'](_0x4ea477,'on');});}async['_getImageAsFile'](_0x257b47){const _0x576dc9=_0x5d7562['window'],_0xe1ebde=_0x5d7562['document']['location']['href'],_0x273887=new _0x576dc9['URL'](_0x257b47['getAttribute']('src'),_0xe1ebde);if('data:'===_0x273887['protocol']){const _0xbc7309=_0x273887['href']['split'](','),_0x13b1d4=_0xbc7309[0x0]['match'](/:(.*?);/)[0x1],_0x20d45b=_0x13b1d4['split']('/')[0x1],_0x9f9d0c=_0x576dc9['atob'](_0xbc7309[_0xbc7309['length']-0x1]);let _0x3290ec=_0x9f9d0c['length'];const _0x1b577e=new _0x576dc9['Uint8Array'](_0x3290ec);for(;_0x3290ec--;)_0x1b577e[_0x3290ec]=_0x9f9d0c['charCodeAt'](_0x3290ec);return new _0x576dc9['File']([_0x1b577e],'image.'+_0x20d45b,{'type':_0x13b1d4});}const _0x397a5e=_0x273887['href']['split']('/'),_0x5d27a2=_0x397a5e[_0x397a5e['length']-0x1],_0x44bf57=_0x5d27a2['split']('.')[0x1];return _0x576dc9['fetch'](_0x273887['href'])['then'](_0x8406b7=>_0x8406b7['clone']()['blob']())['then'](_0x27bb67=>new _0x576dc9['File']([_0x27bb67],_0x5d27a2,{'type':'image/'+_0x44bf57}));}}class N extends _0x130986{['imageEditController'];static get['requires'](){return[_0x166b41];}['_isEditable'];constructor(_0x4010de){super(_0x4010de),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x34c5e9){const _0x52c9d7=R(_0x34c5e9);return _0x147a18=>!(!_0x147a18||!_0x147a18['is']('element','imageBlock')&&!_0x147a18['is']('element','imageInline'))&&(!!_0x147a18['hasAttribute']('uploadcareImageId')||!!_0x147a18['hasAttribute']('src')&&_0x52c9d7(_0x147a18['getAttribute']('src')));}(_0x4010de['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x9cc1a0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x9cc1a0);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2752f5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2752f5&&(_0x2752f5['is']('element','imageBlock')||_0x2752f5['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x166b41),_0x2752f5),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x130986{['refresh'](){const _0x2efd9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2efd9&&(_0x2efd9['is']('element','imageBlock')||_0x2efd9['is']('element','imageInline')));}['execute'](_0x5b6f9e){const _0x3cd409=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x472350=>{_0x472350['setAttributes'](_0x5b6f9e,_0x3cd409),_0x472350['removeAttribute']('srcset',_0x3cd409),_0x472350['removeAttribute']('sizes',_0x3cd409);});}}class m extends _0x591147{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x5c25f5,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3d93de}=this;_0x3d93de['commands']['add']('uploadcareImageEdit',new N(_0x3d93de)),_0x3d93de['commands']['add']('uploadcareImageReplace',new O(_0x3d93de));}}class g extends _0x591147{['_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 _0x168cbb=this['editor'];_0x168cbb['ui']['componentFactory']['add']('uploadcareImageEdit',_0x542c36=>{const _0x28e5d6=_0x168cbb['commands']['get']('uploadcareImageEdit'),_0x359092=new _0x2ad41a(_0x542c36),t=_0x542c36['t'];return _0x359092['set']({'icon':_0x166e76,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x359092['bind']('isEnabled')['to'](_0x28e5d6),_0x359092['bind']('isOn')['to'](_0x28e5d6,'isActive'),this['listenTo'](_0x359092,'execute',()=>{_0x168cbb['execute']('uploadcareImageEdit'),_0x168cbb['editing']['view']['focus']();}),_0x359092;}),this['_initConfig']();}['_initConfig'](){const _0x2bc8c5=_0x426134(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2bc8c5),this['listenTo'](this['editor'],'destroy',()=>{_0x2bc8c5['remove']();});}}class et extends _0x591147{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,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20251122.0",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20251122.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251122.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20251122.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251122.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251122.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251122.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251122.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251122.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.19.4",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
function _0x2a2e(){const _0x5a121a=['get','document','6ipVayu','getSelectedElement','hide','detail','ucContextId','getOutputCollectionState','setAttribute','_initListeners','length','_editing','104350xspeGL','show','1309246VIGNls','idle','getAPI','removeSelectionAttribute','image','imageBlock','removeAllFiles','done-click','_dialog','element','6170YzpNxT','_initDialog','change','_formView','selection','initFlow','linkHref','status','252eOuElx','editing','destroy','setCurrentActivity','configElement','imageInfo','9238638VIOqst','uuid','7947379rDTLID','focus','attributes','allEntries','_editor','model','insertImage','_type','ctxElement','_insertAsset','Local','doneFlow','addEventListener','width','stopListening','EDITOR_TOP_CENTER','view','isOpen','404619yfRkcu','plugins','Replace','stopDelegating','72bkubgY','uploadCare','source-list','7aBUkBI','_insertImage','imageInline','setSelection','text','2588dCpEba','getLastPosition','Insert','execute','7034832ZysPIG','_api'];_0x2a2e=function(){return _0x5a121a;};return _0x2a2e();}const _0x49808c=_0x5309;function _0x5309(_0x2e7f69,_0x5679e5){const _0x2a2eb6=_0x2a2e();return _0x5309=function(_0x530936,_0x4f9e7b){_0x530936=_0x530936-0x8c;let _0xaac1d9=_0x2a2eb6[_0x530936];return _0xaac1d9;},_0x5309(_0x2e7f69,_0x5679e5);}(function(_0x4f366b,_0x4466a3){const _0xb8fb=_0x5309,_0x435082=_0x4f366b();while(!![]){try{const _0x5c99e8=parseInt(_0xb8fb(0xcb))/0x1+-parseInt(_0xb8fb(0x9f))/0x2*(-parseInt(_0xb8fb(0x93))/0x3)+-parseInt(_0xb8fb(0xd7))/0x4*(-parseInt(_0xb8fb(0xa9))/0x5)+parseInt(_0xb8fb(0xb7))/0x6*(parseInt(_0xb8fb(0xd2))/0x7)+parseInt(_0xb8fb(0x8f))/0x8+-parseInt(_0xb8fb(0xb1))/0x9*(-parseInt(_0xb8fb(0x9d))/0xa)+-parseInt(_0xb8fb(0xb9))/0xb*(parseInt(_0xb8fb(0xcf))/0xc);if(_0x5c99e8===_0x4466a3)break;else _0x435082['push'](_0x435082['shift']());}catch(_0x341946){_0x435082['push'](_0x435082['shift']());}}}(_0x2a2e,0xd8f3c));import{IconUploadcareImageUpload as _0x1079f3}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x57b8af}from'ckeditor5/src/utils.js';import{Dialog as _0x53478a,DialogViewPosition as _0x3d3632}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x4a5d89}from'./uploadcareformview.js';import{UploadcareSource as _0x5f109a}from'../uploadcareconfig.js';import{getTranslation as _0x4d78e4}from'../utils/common-translations.js';import{getImageUrls as _0x57a339,getImageDimension as _0x3a05b0}from'../utils/editingutils.js';import{isAncestor as _0x3a7885}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x57b8af(){[_0x49808c(0xbd)];[_0x49808c(0xa7)];[_0x49808c(0x9c)];[_0x49808c(0x90)];[_0x49808c(0xc0)]=null;[_0x49808c(0xac)]=null;constructor(_0x2cc968,_0x1a3dae,_0x4eedf1){const _0x2be3bf=_0x49808c;super(),this[_0x2be3bf(0xbd)]=_0x2cc968,this[_0x2be3bf(0x9c)]=_0x1a3dae,this[_0x2be3bf(0xa7)]=_0x2cc968[_0x2be3bf(0xcc)][_0x2be3bf(0x91)](_0x53478a),this[_0x2be3bf(0x90)]=_0x1a3dae[_0x2be3bf(0xc1)][_0x2be3bf(0xa1)](),this[_0x2be3bf(0xc0)]=_0x4eedf1,this[_0x2be3bf(0x9c)][_0x2be3bf(0xb5)][_0x2be3bf(0x99)](_0x2be3bf(0xd1),this[_0x2be3bf(0xc0)]),this[_0x2be3bf(0xaa)](),this[_0x2be3bf(0x9a)](),this[_0x2be3bf(0x90)][_0x2be3bf(0xae)]();}[_0x49808c(0xb3)](){const _0x2b6473=_0x49808c;this[_0x2b6473(0xac)]&&(this[_0x2b6473(0xac)][_0x2b6473(0xb3)](),this[_0x2b6473(0xac)]=null),this[_0x2b6473(0x90)]&&this[_0x2b6473(0x90)][_0x2b6473(0xc4)](),this[_0x2b6473(0xc7)](),this[_0x2b6473(0xce)]();}[_0x49808c(0xaa)](){const _0x22ba13=_0x49808c,{locale:_0x3ea5fc,model:_0x2ec062}=this[_0x22ba13(0xbd)],_0xb5315b=_0x2ec062[_0x22ba13(0x92)][_0x22ba13(0xad)][_0x22ba13(0x94)](),_0x14e43d=_0xb5315b&&(_0xb5315b['is'](_0x22ba13(0xa8),_0x22ba13(0xa4))||_0xb5315b['is'](_0x22ba13(0xa8),_0x22ba13(0xd4)));this[_0x22ba13(0xac)]=new _0x4a5d89(_0x3ea5fc,this[_0x22ba13(0x9c)][_0x22ba13(0x97)]),this[_0x22ba13(0xa7)][_0x22ba13(0x9e)]({'id':_0x22ba13(0xd0),'icon':_0x1079f3,'title':_0x4d78e4(_0x3ea5fc,this[_0x22ba13(0xc0)],_0x14e43d?_0x22ba13(0xcd):_0x22ba13(0x8d))[_0x22ba13(0xd6)],'content':this[_0x22ba13(0xac)],'position':_0x3d3632[_0x22ba13(0xc8)],'isModal':!0x0,'onShow':()=>{const _0x443266=_0x22ba13;this[_0x443266(0xac)][_0x443266(0xba)]();},'onHide':()=>{const _0x14ce2a=_0x22ba13;this[_0x14ce2a(0x90)][_0x14ce2a(0xa5)](),this[_0x14ce2a(0xbd)][_0x14ce2a(0xb2)][_0x14ce2a(0xc9)][_0x14ce2a(0xba)](),this[_0x14ce2a(0xb3)]();},'keystrokeHandlerOptions':{'filter':_0x32b266=>!_0x3a7885(_0x32b266,this[_0x22ba13(0xac)][_0x22ba13(0xa8)])}});}[_0x49808c(0x9a)](){const _0x150084=_0x49808c;this[_0x150084(0x9c)][_0x150084(0xc1)][_0x150084(0xc5)](_0x150084(0xa6),()=>{const _0x89476c=_0x150084,{allEntries:_0x55608a}=this[_0x89476c(0x90)][_0x89476c(0x98)]();this[_0x89476c(0xbd)][_0x89476c(0xbe)][_0x89476c(0xab)](_0x531045=>{const _0x2fd46d=_0x89476c,_0x39f9f6=_0x55608a[_0x2fd46d(0x9b)];for(const _0x519c67 of _0x55608a){const _0x4cec89=_0x519c67===_0x55608a[_0x39f9f6-0x1],{cdnUrl:_0x93cf62,fileInfo:_0x3c34fa}=_0x519c67;if(!_0x93cf62||!_0x3c34fa)continue;const {width:_0x18e79c,height:_0x50e26a}=_0x3c34fa[_0x2fd46d(0xb6)],_0x34793c=_0x3a05b0(_0x93cf62,_0x18e79c,_0x50e26a),_0x365a0f=_0x57a339(_0x93cf62,_0x34793c[_0x2fd46d(0xc6)]),_0x43949f={'id':_0x3c34fa[_0x2fd46d(0xb8)],'type':_0x2fd46d(0xa3),'attributes':{'imageDimension':_0x34793c,..._0x365a0f}};this[_0x2fd46d(0xc2)](_0x43949f,_0x4cec89,_0x531045);}}),this[_0x89476c(0xa7)][_0x89476c(0x95)]();}),this[_0x150084(0x9c)][_0x150084(0xc1)][_0x150084(0xc5)](_0x150084(0xab),_0x51c7b3=>{const _0x24ae7d=_0x150084;_0x24ae7d(0xa0)===_0x51c7b3[_0x24ae7d(0x96)][_0x24ae7d(0xb0)]&&!_0x51c7b3[_0x24ae7d(0x96)][_0x24ae7d(0xbc)][_0x24ae7d(0x9b)]&&this[_0x24ae7d(0xa7)][_0x24ae7d(0xca)]&&(this[_0x24ae7d(0xc0)]===_0x5f109a[_0x24ae7d(0xc3)]?this[_0x24ae7d(0x90)][_0x24ae7d(0xb4)](_0x5f109a[_0x24ae7d(0xc3)]):this[_0x24ae7d(0x90)][_0x24ae7d(0xae)]());});}[_0x49808c(0xc2)](_0x24ba69,_0x2dd3fe,_0x5d5ba3){const _0x15030c=_0x49808c,_0x4c75aa=this[_0x15030c(0xbd)][_0x15030c(0xbe)][_0x15030c(0x92)][_0x15030c(0xad)],_0x6b88df=_0x4c75aa[_0x15030c(0x94)](),_0x2bd5e5=!(!_0x6b88df||!_0x6b88df['is'](_0x15030c(0xa8),_0x15030c(0xd4)));_0x5d5ba3[_0x15030c(0xa2)](_0x15030c(0xaf)),this[_0x15030c(0xd3)](_0x24ba69,_0x2bd5e5),_0x2dd3fe||_0x5d5ba3[_0x15030c(0xd5)](_0x4c75aa[_0x15030c(0x8c)]());}[_0x49808c(0xd3)](_0x2e80d7,_0x3308b7){const _0x270a8a=_0x49808c,_0x258594=this[_0x270a8a(0xbd)],{imageDimension:_0xdee58c,imageFallbackUrl:_0x5ef912,imageSources:_0x54bf48}=_0x2e80d7[_0x270a8a(0xbb)];_0x258594[_0x270a8a(0x8e)](_0x270a8a(0xbf),{'imageType':_0x3308b7?_0x270a8a(0xd4):null,'source':{'uploadcareImageId':_0x2e80d7['id'],'src':_0x5ef912,'sources':_0x54bf48,..._0xdee58c}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0xb410d3=_0x2f63;(function(_0x1a7875,_0x3b0b22){var _0x1055be=_0x2f63,_0x25eaf2=_0x1a7875();while(!![]){try{var _0x11b476=-parseInt(_0x1055be(0x108))/0x1+parseInt(_0x1055be(0xfc))/0x2*(-parseInt(_0x1055be(0x100))/0x3)+-parseInt(_0x1055be(0x103))/0x4*(-parseInt(_0x1055be(0x10a))/0x5)+parseInt(_0x1055be(0x104))/0x6*(-parseInt(_0x1055be(0x106))/0x7)+parseInt(_0x1055be(0x109))/0x8+-parseInt(_0x1055be(0x105))/0x9*(-parseInt(_0x1055be(0x10b))/0xa)+-parseInt(_0x1055be(0x10f))/0xb*(parseInt(_0x1055be(0xfe))/0xc);if(_0x11b476===_0x3b0b22)break;else _0x25eaf2['push'](_0x25eaf2['shift']());}catch(_0x37b446){_0x25eaf2['push'](_0x25eaf2['shift']());}}}(_0xfc15,0xf1c6d));function _0x2f63(_0x134ecc,_0x59a794){var _0xfc151a=_0xfc15();return _0x2f63=function(_0x2f6330,_0x49113a){_0x2f6330=_0x2f6330-0xfc;var _0x55679f=_0xfc151a[_0x2f6330];return _0x55679f;},_0x2f63(_0x134ecc,_0x59a794);}import{DialogFocusManagerView as _0x26ce94}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';function _0xfc15(){var _0x4f7112=['getFocusableElement','focus','2191629xnaJUh','element','uc-file-uploader-inline','uc-light','2dSDSIc','div','12vTJlDu','setTemplate','2838078VvfuCm','ck-uploadcare-theme','uploader-','24jXmZgv','1757424hJjhCv','14076poECbJ','14SWPnmS','ck-reset_all-excluded','1355426dcYPyy','10719008knRjJH','1626510AtdNtP','5020BkxSwP','ck-uploadcare-form'];_0xfc15=function(){return _0x4f7112;};return _0xfc15();}export class UploadcareFormView extends _0x26ce94{constructor(_0x5b6cb4,_0x4b57d2){var _0x1571d1=_0x2f63;super(_0x5b6cb4),this[_0x1571d1(0xff)]({'tag':_0x1571d1(0xfd),'attributes':{'class':['ck',_0x1571d1(0x107),_0x1571d1(0x10c)],'tabindex':'-1'},'children':[{'tag':_0x1571d1(0x111),'attributes':{'class':[_0x1571d1(0x112),_0x1571d1(0x101)],'ctx-name':_0x1571d1(0x102)+_0x4b57d2}},this[_0x1571d1(0x10d)]()]});}[_0xb410d3(0x10e)](){var _0x39dc6a=_0xb410d3;this[_0x39dc6a(0x110)][_0x39dc6a(0x10e)]();}}
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3238dc=_0x80b2;(function(_0x12aab9,_0x78ab13){const _0x53df20=_0x80b2,_0x5a2abf=_0x12aab9();while(!![]){try{const _0x42abe7=parseInt(_0x53df20(0x1f2))/0x1*(parseInt(_0x53df20(0x1d7))/0x2)+-parseInt(_0x53df20(0x217))/0x3+parseInt(_0x53df20(0x218))/0x4*(parseInt(_0x53df20(0x202))/0x5)+-parseInt(_0x53df20(0x1e7))/0x6+parseInt(_0x53df20(0x1de))/0x7+parseInt(_0x53df20(0x214))/0x8*(parseInt(_0x53df20(0x20a))/0x9)+parseInt(_0x53df20(0x1f5))/0xa*(-parseInt(_0x53df20(0x201))/0xb);if(_0x42abe7===_0x78ab13)break;else _0x5a2abf['push'](_0x5a2abf['shift']());}catch(_0x3fea1c){_0x5a2abf['push'](_0x5a2abf['shift']());}}}(_0x4d2a,0x946c0));function _0x80b2(_0x2842b4,_0x5e70d6){const _0x4d2a42=_0x4d2a();return _0x80b2=function(_0x80b2b6,_0xc236ad){_0x80b2b6=_0x80b2b6-0x1c5;let _0x21a5ed=_0x4d2a42[_0x80b2b6];return _0x21a5ed;},_0x80b2(_0x2842b4,_0x5e70d6);}import{Plugin as _0x5e3f17}from'ckeditor5/src/core.js';import{Dialog as _0xd2b812}from'ckeditor5/src/ui.js';import{createElement as _0x356cc2,global as _0x403eea,uid as _0x4f0c77}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x41803a}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5eb76b}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5cfac2}from'./utils/editingutils.js';function _0x4d2a(){const _0x3824e9=['ucContextId','render','replaceImageSource','config','listenTo','get','removeAttribute','1147374ceWzhZ','downcast','uc-config','isRegistered','getSelectedElement','init','PictureEditing','UploadcareEditing','destroy','_configElement','40FyPovL','querySelector','execute','2706912DnqKVK','4WtuZIx','extend','elementToAttribute','isPremiumPlugin','join','schema','getAttribute','_ctxElement','pluginName','imageInline','map','data-uc-image-id','commands','uploadcareImageReplace','input[uploadcare-file-input]','_initSchema','href','insertImage','selection','uploadcare.uploader','_initConversion','2YrIvPk','once','appendChild','_initCtx','remove','document','locale','7261317QsOaHc','editor','conversion','uploader-','view','imageBlock','#uc-icon-arrow-down','ctxElement','attributeToAttribute','6701694lTybxa','closeMax','afterInit','fromCharCode','add','iconHrefResolver','cleanupImage','configElement','upcast','\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','body','852309OxJSlK','isOfficialPlugin','for','13360JBRDVL','editing','_initConfig','uc-upload-ctx-provider','true','model','uploadcareImageId','uploadcare','_initImageProcessingIndicator','contentLanguage','uploadcare.pubkey','requires','9119vjstYU','6038315FzrHpU'];_0x4d2a=function(){return _0x3824e9;};return _0x4d2a();}export class UploadcareEditing extends _0x5e3f17{[_0x3238dc(0x213)]=null;[_0x3238dc(0x1c9)]=null;static get[_0x3238dc(0x1ca)](){const _0x5975d9=_0x3238dc;return _0x5975d9(0x211);}static get[_0x3238dc(0x200)](){const _0x38f5e4=_0x3238dc;return[_0x38f5e4(0x210),_0x5eb76b,_0xd2b812];}static get[_0x3238dc(0x1f3)](){return!0x0;}static get[_0x3238dc(0x1c5)](){return!0x0;}[_0x3238dc(0x203)];get[_0x3238dc(0x1ee)](){const _0x189a4e=_0x3238dc;return this[_0x189a4e(0x213)];}get[_0x3238dc(0x1e5)](){const _0x523e1f=_0x3238dc;return this[_0x523e1f(0x1c9)];}constructor(_0x4e3c54){const _0x4be2fa=_0x3238dc;super(_0x4e3c54),this[_0x4be2fa(0x203)]=_0x4f0c77();}[_0x3238dc(0x20f)](){const _0x10133e=_0x3238dc,_0x3ca8df=this[_0x10133e(0x1df)];_0x3ca8df[_0x10133e(0x1ce)][_0x10133e(0x1eb)](_0x10133e(0x1fc),new _0x41803a(_0x3ca8df));}[_0x3238dc(0x1e9)](){const _0x5be83d=_0x3238dc;this[_0x5be83d(0x1d1)](),this[_0x5be83d(0x1d6)](),this[_0x5be83d(0x1f7)](),this[_0x5be83d(0x1da)](),this[_0x5be83d(0x1fd)](),this[_0x5be83d(0x207)](this[_0x5be83d(0x1df)],_0x5be83d(0x212),()=>{const _0x319c6d=_0x5be83d;this[_0x319c6d(0x213)]&&(this[_0x319c6d(0x213)][_0x319c6d(0x1db)](),this[_0x319c6d(0x213)]=null),this[_0x319c6d(0x1c9)]&&(this[_0x319c6d(0x1c9)][_0x319c6d(0x1db)](),this[_0x319c6d(0x1c9)]=null);const _0x2ca8a7=_0x403eea[_0x319c6d(0x1dc)][_0x319c6d(0x215)](_0x319c6d(0x1d0));_0x2ca8a7&&_0x2ca8a7[_0x319c6d(0x1db)]();}),async function(_0x313482){const _0x6345c=_0x14b473([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x2da639=0x535f8c3a,_0x116590=0x5358f582^_0x2da639,_0xcb4a58=window[_0x14b473([0x44,0x61,0x74,0x65])][_0x14b473([0x6e,0x6f,0x77])](),_0x918492=_0x313482[_0x14b473([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5429fb=new window[(_0x14b473([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d9507=>{_0x918492[_0x14b473([0x6f,0x6e,0x63,0x65])](_0x14b473([0x72,0x65,0x61,0x64,0x79]),_0x1d9507);}),_0x400691={[_0x14b473([0x6b,0x74,0x79])]:_0x14b473([0x45,0x43]),[_0x14b473([0x75,0x73,0x65])]:_0x14b473([0x73,0x69,0x67]),[_0x14b473([0x63,0x72,0x76])]:_0x14b473([0x50,0x2d,0x32,0x35,0x36]),[_0x14b473([0x78])]:_0x14b473([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]),[_0x14b473([0x79])]:_0x14b473([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]),[_0x14b473([0x61,0x6c,0x67])]:_0x14b473([0x45,0x53,0x32,0x35,0x36])},_0x33cc36=_0x918492[_0x14b473([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x14b473([0x67,0x65,0x74])](_0x14b473([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e8027(){let _0x4364ed,_0x1f4309=null,_0x2a1942=null;try{if(_0x33cc36==_0x14b473([0x47,0x50,0x4c]))return _0x14b473([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4364ed=_0x15c433(),!_0x4364ed)return _0x14b473([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4364ed[_0x14b473([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a1942=_0x1a6b63(_0x4364ed[_0x14b473([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4364ed[_0x14b473([0x6a,0x74,0x69])])),await _0x2504c3()?_0x199979()?_0x1fc1d5()?_0x14b473([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2919f4()?(_0x4364ed[_0x14b473([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14b473([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1f4309=_0x19f46e(_0x14b473([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4364ed[_0x14b473([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14b473([0x74,0x72,0x69,0x61,0x6c])&&(_0x1f4309=_0x19f46e(_0x14b473([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ec6d9()):_0x14b473([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x14b473([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x14b473([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x14b473([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1fc1d5(){const _0x59c37e=[_0x14b473([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x14b473([0x74,0x72,0x69,0x61,0x6c])][_0x14b473([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4364ed[_0x14b473([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xcb4a58/0x3e8:0xe10*_0x116590;return _0x4364ed[_0x14b473([0x65,0x78,0x70])]<_0x59c37e;}function _0x199979(){const _0x15d806=_0x4364ed[_0x14b473([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x15d806&&(!!_0x15d806[_0x14b473([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b473([0x2a]))||!!_0x15d806[_0x14b473([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b473([0x55,0x50,0x4c,0x43])));}function _0x2919f4(){const _0x5bc56a=_0x80b2,_0x11756e=_0x4364ed[_0x14b473([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x11756e||0x0==_0x11756e[_0x14b473([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xbe3a57}=new URL(window[_0x14b473([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5bc56a(0x1d2)]);if(_0x11756e[_0x14b473([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbe3a57))return!0x0;const _0x1640ad=_0xbe3a57[_0x14b473([0x73,0x70,0x6c,0x69,0x74])](_0x14b473([0x2e]));return _0x11756e[_0x14b473([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e45eb=>_0x3e45eb[_0x14b473([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b473([0x2a])))[_0x14b473([0x6d,0x61,0x70])](_0x3975e8=>_0x3975e8[_0x14b473([0x73,0x70,0x6c,0x69,0x74])](_0x14b473([0x2e])))[_0x14b473([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f12f2=>_0x3f12f2[_0x14b473([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1640ad[_0x14b473([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14b473([0x6d,0x61,0x70])](_0xf7cf12=>Array(_0x1640ad[_0x14b473([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xf7cf12[_0x14b473([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14b473([0x66,0x69,0x6c,0x6c])](_0xf7cf12[0x0]===_0x14b473([0x2a])?_0x14b473([0x2a]):'')[_0x14b473([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xf7cf12))[_0x14b473([0x73,0x6f,0x6d,0x65])](_0x1fa7f2=>_0x1640ad[_0x14b473([0x65,0x76,0x65,0x72,0x79])]((_0x1435cd,_0x262a64)=>_0x1fa7f2[_0x262a64]===_0x1435cd||_0x1fa7f2[_0x262a64]===_0x14b473([0x2a])));}function _0x4ec6d9(){return _0x1f4309&&_0x2a1942?new window[(_0x14b473([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x292185,_0x4baf2d)=>{_0x1f4309[_0x14b473([0x74,0x68,0x65,0x6e])](_0x292185,_0x4baf2d),_0x2a1942[_0x14b473([0x74,0x68,0x65,0x6e])](_0xd8300f=>{_0xd8300f!=_0x14b473([0x56,0x61,0x6c,0x69,0x64])&&_0x292185(_0xd8300f);},_0x4baf2d);}):_0x1f4309||_0x2a1942||_0x14b473([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1a6b63(_0x33456d,_0xded599){return new window[(_0x14b473([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27eb46=>{if(_0x1f588a())return _0x27eb46(_0x14b473([0x56,0x61,0x6c,0x69,0x64]));_0x25d19d(),_0x918492[_0x14b473([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x14b473([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x49545a=!0x1;const _0x3f66e6=_0x4f0c77();function _0x1174e6(_0x637095){return!!_0x637095&&(typeof _0x637095===_0x14b473([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x637095===_0x14b473([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x637095[_0x14b473([0x74,0x68,0x65,0x6e])]===_0x14b473([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x637095[_0x14b473([0x63,0x61,0x74,0x63,0x68])]===_0x14b473([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x182dbf(_0x416995){_0x3abbd6(_0x416995)[_0x14b473([0x74,0x68,0x65,0x6e])](_0xb67fe0=>{if(!_0xb67fe0||_0xb67fe0[_0x14b473([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x14b473([0x6f,0x6b]))return _0x14b473([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x12b39f(_0x4baaf9(_0x3f66e6+_0xded599))!=_0xb67fe0[_0x14b473([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x14b473([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x14b473([0x56,0x61,0x6c,0x69,0x64]);})[_0x14b473([0x74,0x68,0x65,0x6e])](_0x182a7b=>(_0x57cf4c(),_0x182a7b),()=>{const _0x40e8b5=_0x367d9f();return null==_0x40e8b5?(_0x57cf4c(),_0x14b473([0x56,0x61,0x6c,0x69,0x64])):_0x14b473(_0xcb4a58-_0x40e8b5>(0x7753083a^_0x2da639)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x14b473([0x74,0x68,0x65,0x6e])](_0x27eb46)[_0x14b473([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27eb46(_0x14b473([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x57727d=0x536962ba^_0x2da639;function _0x57cf4c(){const _0x4bdf59=_0x14b473([0x6c,0x6c,0x63,0x74,0x2d])+_0x12b39f(_0x4baaf9(_0x33456d)),_0x381c90=_0x2fcdda(_0x12b39f(window[_0x14b473([0x4d,0x61,0x74,0x68])][_0x14b473([0x63,0x65,0x69,0x6c])](_0xcb4a58/_0x57727d)));window[_0x14b473([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14b473([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4bdf59,_0x381c90);}function _0x367d9f(){const _0x17b3c0=_0x14b473([0x6c,0x6c,0x63,0x74,0x2d])+_0x12b39f(_0x4baaf9(_0x33456d)),_0x2592bd=window[_0x14b473([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14b473([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x17b3c0);return _0x2592bd?window[_0x14b473([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fcdda(_0x2592bd),0x10)*_0x57727d:null;}function _0x3abbd6(_0x59dbfe){return new window[(_0x14b473([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b13bb,_0x3f13af)=>{_0x59dbfe[_0x14b473([0x74,0x68,0x65,0x6e])](_0x5b13bb,_0x3f13af),window[_0x14b473([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3f13af,0x535e58fa^_0x2da639);});}}_0x918492[_0x14b473([0x6f,0x6e])](_0x14b473([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x487cfb,_0xa71f69)=>{if(_0xa71f69[0x0]!=_0x33456d)return _0x27eb46(_0x14b473([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa71f69[0x1]={..._0xa71f69[0x1],[_0x14b473([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f66e6};},{[_0x14b473([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14b473([0x68,0x69,0x67,0x68])}),_0x918492[_0x14b473([0x6f,0x6e])](_0x14b473([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4e439c=>{_0x1174e6(_0x4e439c[_0x14b473([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x49545a=!0x0,_0x182dbf(_0x4e439c[_0x14b473([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x14b473([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14b473([0x6c,0x6f,0x77])}),_0x5429fb[_0x14b473([0x74,0x68,0x65,0x6e])](()=>{_0x49545a||_0x27eb46(_0x14b473([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1f588a(){return _0x918492[_0x14b473([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14b473([0x76,0x69,0x65,0x77])][_0x14b473([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x14b473([0x61,0x75,0x74,0x6f]);}function _0x25d19d(){_0x918492[_0x14b473([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14b473([0x76,0x69,0x65,0x77])][_0x14b473([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14b473([0x61,0x75,0x74,0x6f]);}}function _0x19f46e(_0x1637da){const _0x49ef15=[new window[(_0x14b473([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xde0d52=>setTimeout(_0xde0d52,0x5356b2f6^_0x2da639)),_0x5429fb[_0x14b473([0x74,0x68,0x65,0x6e])](()=>new window[(_0x14b473([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f3a9d=>{let _0x176d2b=0x0;_0x918492[_0x14b473([0x6d,0x6f,0x64,0x65,0x6c])][_0x14b473([0x6f,0x6e])](_0x14b473([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x174ef9,_0x36ac03)=>{_0x36ac03[0x0][_0x14b473([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x176d2b++,_0x176d2b==(0x535f8dc2^_0x2da639)&&(_0x5f3a9d(),_0x174ef9[_0x14b473([0x6f,0x66,0x66])]());});}))];return window[_0x14b473([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14b473([0x72,0x61,0x63,0x65])](_0x49ef15)[_0x14b473([0x74,0x68,0x65,0x6e])](()=>_0x1637da);}async function _0x30e40c(){await _0x5429fb,_0x918492[_0x14b473([0x6d,0x6f,0x64,0x65,0x6c])][_0x14b473([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2efedb,_0x918492[_0x14b473([0x6d,0x6f,0x64,0x65,0x6c])][_0x14b473([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2efedb,_0x918492[_0x14b473([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x14b473([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x241afc(_0x4ee693){const _0x393934=_0x3d8a9d();_0x918492[_0x393934]=_0x14b473([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ee693,_0x4ee693!=_0x14b473([0x56,0x61,0x6c,0x69,0x64])&&_0x30e40c();}function _0x3d8a9d(){const _0x14043b=window[_0x14b473([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x14b473([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x14b473([0x6e,0x6f,0x77])]())[_0x14b473([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x14b473([0x2e]),'');let _0x3bbd51=_0x14b473([0x68]);for(let _0x204cb0=0x0;_0x204cb0<_0x14043b[_0x14b473([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x204cb0+=0x2){let _0x157671=window[_0x14b473([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14043b[_0x14b473([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x204cb0,_0x204cb0+0x2));_0x157671>=_0x6345c[_0x14b473([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x157671-=_0x6345c[_0x14b473([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3bbd51+=_0x6345c[_0x157671];}return _0x3bbd51;}function _0x15c433(){const _0x1cb238=_0x33cc36[_0x14b473([0x73,0x70,0x6c,0x69,0x74])](_0x14b473([0x2e]));if(0x3!=_0x1cb238[_0x14b473([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1ca9ea(_0x1cb238[0x1]);function _0x1ca9ea(_0x2d8a72){const _0x3d14e6=_0x4ac67d(_0x2d8a72);return _0x3d14e6&&_0xad677b()?_0x3d14e6:null;function _0xad677b(){const _0x2ced04=_0x3d14e6[_0x14b473([0x6a,0x74,0x69])],_0x2dbc43=window[_0x14b473([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ced04[_0x14b473([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ced04[_0x14b473([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33284c={..._0x3d14e6,[_0x14b473([0x6a,0x74,0x69])]:_0x2ced04[_0x14b473([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2ced04[_0x14b473([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33284c[_0x14b473([0x76,0x63])],_0x4baaf9(_0x33284c)==_0x2dbc43;}}}async function _0x2504c3(){let _0x4762a2=!0x0;try{const _0x76815d=_0x33cc36[_0x14b473([0x73,0x70,0x6c,0x69,0x74])](_0x14b473([0x2e])),[_0x176354,_0xbc419c,_0x5f1fbc]=_0x76815d;return _0x116b2c(_0x176354),await _0x4a2469(_0x176354,_0xbc419c,_0x5f1fbc),_0x4762a2;}catch{return!0x1;}function _0x116b2c(_0x2589ea){const _0x11e393=_0x4ac67d(_0x2589ea);_0x11e393&&_0x11e393[_0x14b473([0x61,0x6c,0x67])]==_0x14b473([0x45,0x53,0x32,0x35,0x36])||(_0x4762a2=!0x1);}async function _0x4a2469(_0x4945f5,_0x439716,_0x5702fe){const _0x26517c=window[_0x14b473([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x14b473([0x66,0x72,0x6f,0x6d])](_0x153a71(_0x5702fe),_0x45ffbd=>_0x45ffbd[_0x14b473([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x22da6d=new window[(_0x14b473([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x14b473([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4945f5+_0x14b473([0x2e])+_0x439716),_0x17aefa=window[_0x14b473([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x14b473([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x17aefa)return;const _0x35d565=await _0x17aefa[_0x14b473([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x14b473([0x6a,0x77,0x6b]),_0x400691,{[_0x14b473([0x6e,0x61,0x6d,0x65])]:_0x14b473([0x45,0x43,0x44,0x53,0x41]),[_0x14b473([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x14b473([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x14b473([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x17aefa[_0x14b473([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x14b473([0x6e,0x61,0x6d,0x65])]:_0x14b473([0x45,0x43,0x44,0x53,0x41]),[_0x14b473([0x68,0x61,0x73,0x68])]:{[_0x14b473([0x6e,0x61,0x6d,0x65])]:_0x14b473([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x35d565,_0x26517c,_0x22da6d)||(_0x4762a2=!0x1);}}function _0x4ac67d(_0x5a9bd5){return _0x5a9bd5[_0x14b473([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x14b473([0x65,0x79]))?JSON[_0x14b473([0x70,0x61,0x72,0x73,0x65])](_0x153a71(_0x5a9bd5)):null;}function _0x153a71(_0x1a5ff2){return window[_0x14b473([0x61,0x74,0x6f,0x62])](_0x1a5ff2[_0x14b473([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x14b473([0x2b]))[_0x14b473([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x14b473([0x2f])));}function _0x4baaf9(_0x2e0eb9){let _0x59d62b=0x1505;function _0x197abe(_0x348e42){for(let _0x4b94d4=0x0;_0x4b94d4<_0x348e42[_0x14b473([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b94d4++){const _0xad6b52=_0x348e42[_0x14b473([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4b94d4);_0x59d62b=(_0x59d62b<<0x5)+_0x59d62b+_0xad6b52,_0x59d62b&=_0x59d62b;}}function _0x5db730(_0x2646c0){Array[_0x14b473([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2646c0)?_0x2646c0[_0x14b473([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5db730):_0x2646c0&&typeof _0x2646c0==_0x14b473([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x14b473([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2646c0)[_0x14b473([0x73,0x6f,0x72,0x74])]()[_0x14b473([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x238bdf,_0x2d338f])=>{_0x197abe(_0x238bdf),_0x5db730(_0x2d338f);}):_0x197abe(window[_0x14b473([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2646c0));}return _0x5db730(_0x2e0eb9),_0x59d62b>>>0x0;}function _0x12b39f(_0x1b9059){return _0x1b9059[_0x14b473([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x14b473([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x14b473([0x30]));}function _0x2fcdda(_0x40aa96){return _0x40aa96[_0x14b473([0x73,0x70,0x6c,0x69,0x74])]('')[_0x14b473([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x14b473([0x6a,0x6f,0x69,0x6e])]('');}function _0x2efedb(){}function _0x14b473(_0x5975f6){const _0x579d9f=_0x80b2;return _0x5975f6[_0x579d9f(0x1cc)](_0x2c96ef=>String[_0x579d9f(0x1ea)](_0x2c96ef))[_0x579d9f(0x1c6)]('');}_0x241afc(await _0x4e8027());}(this);}[_0x3238dc(0x1d1)](){const _0x4a6975=_0x3238dc,_0x303dbf=this[_0x4a6975(0x1df)][_0x4a6975(0x1fa)][_0x4a6975(0x1c7)];_0x303dbf[_0x4a6975(0x20d)](_0x4a6975(0x1e3))&&_0x303dbf[_0x4a6975(0x219)](_0x4a6975(0x1e3),{'allowAttributes':[_0x4a6975(0x1fb)]}),_0x303dbf[_0x4a6975(0x20d)](_0x4a6975(0x1cb))&&_0x303dbf[_0x4a6975(0x219)](_0x4a6975(0x1cb),{'allowAttributes':[_0x4a6975(0x1fb)]});}[_0x3238dc(0x1d6)](){const _0x3a1045=_0x3238dc,_0xc00801=this[_0x3a1045(0x1df)];_0xc00801[_0x3a1045(0x1e0)][_0x3a1045(0x1f4)](_0x3a1045(0x20b))[_0x3a1045(0x1e6)]({'model':_0x3a1045(0x1fb),'view':_0x3a1045(0x1cd)}),_0xc00801[_0x3a1045(0x1e0)][_0x3a1045(0x1f4)](_0x3a1045(0x1ef))[_0x3a1045(0x21a)]({'model':{'key':_0x3a1045(0x1fb),'value':_0x1fdf39=>_0x1fdf39[_0x3a1045(0x1c8)](_0x3a1045(0x1cd))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x51ec51=_0xc00801[_0x3a1045(0x1ce)][_0x3a1045(0x208)](_0x3a1045(0x205));_0x51ec51&&this[_0x3a1045(0x207)](_0x51ec51,_0x3a1045(0x1ed),(_0x48ead0,[_0x50836e,_0x2704f9])=>{const _0x24bfc6=_0x3a1045;_0x50836e[_0x24bfc6(0x209)](_0x24bfc6(0x1fb),_0x2704f9);});}[_0x3238dc(0x1f7)](){const _0x2fc552=_0x3238dc,_0x471e9b=this[_0x2fc552(0x1df)][_0x2fc552(0x206)][_0x2fc552(0x208)](_0x2fc552(0x1d5))||{},_0x4788ce=this[_0x2fc552(0x1df)][_0x2fc552(0x206)][_0x2fc552(0x208)](_0x2fc552(0x1ff))||'';this[_0x2fc552(0x213)]=_0x356cc2(_0x403eea[_0x2fc552(0x1dc)],_0x2fc552(0x20c),{..._0x471e9b,'pubkey':_0x4788ce,'ctx-name':_0x2fc552(0x1e1)+this[_0x2fc552(0x203)],'sourceList':'','imgOnly':_0x2fc552(0x1f9),'removeCopyright':_0x2fc552(0x1f9),'localeName':this[_0x2fc552(0x1df)][_0x2fc552(0x1dd)][_0x2fc552(0x1fe)],'externalSourcesEmbedCss':_0x2fc552(0x1f0)}),this[_0x2fc552(0x213)][_0x2fc552(0x1ec)]=_0x21b041=>{const _0x1e4f37=_0x2fc552;if(_0x1e4f37(0x1e8)==_0x21b041)return _0x1e4f37(0x1e4);},_0x403eea[_0x2fc552(0x1dc)][_0x2fc552(0x1f1)][_0x2fc552(0x1d9)](this[_0x2fc552(0x213)]);}[_0x3238dc(0x1da)](){const _0x1435f0=_0x3238dc;this[_0x1435f0(0x1c9)]=_0x356cc2(_0x403eea[_0x1435f0(0x1dc)],_0x1435f0(0x1f8),{'ctx-name':_0x1435f0(0x1e1)+this[_0x1435f0(0x203)]}),_0x403eea[_0x1435f0(0x1dc)][_0x1435f0(0x1f1)][_0x1435f0(0x1d9)](this[_0x1435f0(0x1c9)]);}[_0x3238dc(0x1fd)](){const _0x11c15d=_0x3238dc,_0x5b7a42=this[_0x11c15d(0x1df)][_0x11c15d(0x1ce)][_0x11c15d(0x208)](_0x11c15d(0x1d3));_0x5b7a42&&this[_0x11c15d(0x207)](_0x5b7a42,_0x11c15d(0x216),()=>{const _0x13c26e=_0x11c15d,_0x3620b0=this[_0x13c26e(0x1df)][_0x13c26e(0x1fa)][_0x13c26e(0x1dc)][_0x13c26e(0x1d4)][_0x13c26e(0x20e)]();_0x3620b0&&_0x3620b0[_0x13c26e(0x1c8)](_0x13c26e(0x1fb))&&this[_0x13c26e(0x1df)][_0x13c26e(0x1f6)][_0x13c26e(0x1e2)][_0x13c26e(0x1d8)](_0x13c26e(0x204),()=>{const _0x21308a=_0x13c26e;_0x5cfac2(this[_0x21308a(0x1df)],_0x3620b0);});});const _0x40f5f9=this[_0x11c15d(0x1df)][_0x11c15d(0x1ce)][_0x11c15d(0x208)](_0x11c15d(0x1cf));_0x40f5f9&&this[_0x11c15d(0x207)](_0x40f5f9,_0x11c15d(0x216),()=>{const _0x20840f=_0x11c15d,_0x4b3472=this[_0x20840f(0x1df)][_0x20840f(0x1fa)][_0x20840f(0x1dc)][_0x20840f(0x1d4)][_0x20840f(0x20e)]();_0x4b3472&&_0x4b3472[_0x20840f(0x1c8)](_0x20840f(0x1fb))&&this[_0x20840f(0x1df)][_0x20840f(0x1f6)][_0x20840f(0x1e2)][_0x20840f(0x1d8)](_0x20840f(0x204),()=>{const _0x328be4=_0x20840f;_0x5cfac2(this[_0x328be4(0x1df)],_0x4b3472);});});}}
|
|
23
|
+
const _0x28eaef=_0x299d;(function(_0x24185b,_0xeab6cb){const _0x200ee1=_0x299d,_0x2e90f5=_0x24185b();while(!![]){try{const _0x41f43c=parseInt(_0x200ee1(0x10f))/0x1*(-parseInt(_0x200ee1(0x162))/0x2)+parseInt(_0x200ee1(0x146))/0x3*(parseInt(_0x200ee1(0x13a))/0x4)+-parseInt(_0x200ee1(0x127))/0x5+-parseInt(_0x200ee1(0x157))/0x6+parseInt(_0x200ee1(0x117))/0x7*(-parseInt(_0x200ee1(0x138))/0x8)+parseInt(_0x200ee1(0x11a))/0x9+parseInt(_0x200ee1(0x11e))/0xa;if(_0x41f43c===_0xeab6cb)break;else _0x2e90f5['push'](_0x2e90f5['shift']());}catch(_0x1badb4){_0x2e90f5['push'](_0x2e90f5['shift']());}}}(_0x3f2c,0x96e15));function _0x3f2c(){const _0x161083=['true','requires','8167446yalfrd','selection','isOfficialPlugin','add','19347670gmfvmE','uc-upload-ctx-provider','listenTo','destroy','join','iconHrefResolver','commands','remove','data-uc-image-id','4588130typnaK','document','body','\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','UploadcareEditing','_ctxElement','_configElement','isPremiumPlugin','_initSchema','configElement','imageBlock','editor','fromCharCode','config','_initConfig','map','locale','16opWkTt','getAttribute','3808532bHixLu','once','getSelectedElement','imageInline','href','elementToAttribute','ucContextId','input[uploadcare-file-input]','uc-config','conversion','render','uploadcare.uploader','3cQnjkd','ctxElement','uploader-','execute','uploadcare.pubkey','upcast','_initImageProcessingIndicator','schema','editing','cleanupImage','removeAttribute','init','replaceImageSource','view','downcast','extend','PictureEditing','6830862qdEHft','closeMax','model','isRegistered','get','_initCtx','appendChild','uploadcareImageReplace','afterInit','contentLanguage','insertImage','216iLROvT','attributeToAttribute','5082LkojZD','pluginName','for','#uc-icon-arrow-down','uploadcare','uploadcareImageId','_initConversion','querySelector','2000005qfPYoh'];_0x3f2c=function(){return _0x161083;};return _0x3f2c();}import{Plugin as _0x2bed9c}from'ckeditor5/src/core.js';import{Dialog as _0x176802}from'ckeditor5/src/ui.js';import{createElement as _0xadc071,global as _0x4cce95,uid as _0xbc8fc9}from'ckeditor5/src/utils.js';function _0x299d(_0x45c7a4,_0x44c546){const _0x3f2cfc=_0x3f2c();return _0x299d=function(_0x299de5,_0x25fa7f){_0x299de5=_0x299de5-0x10f;let _0x59af63=_0x3f2cfc[_0x299de5];return _0x59af63;},_0x299d(_0x45c7a4,_0x44c546);}import{UploadcareCommand as _0x4a38f9}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x589663}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2aa37d}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2bed9c{[_0x28eaef(0x12d)]=null;[_0x28eaef(0x12c)]=null;static get[_0x28eaef(0x110)](){const _0x2c2ffe=_0x28eaef;return _0x2c2ffe(0x12b);}static get[_0x28eaef(0x119)](){const _0x21732d=_0x28eaef;return[_0x21732d(0x156),_0x589663,_0x176802];}static get[_0x28eaef(0x11c)](){return!0x0;}static get[_0x28eaef(0x12e)](){return!0x0;}[_0x28eaef(0x140)];get[_0x28eaef(0x130)](){const _0x1f5b0d=_0x28eaef;return this[_0x1f5b0d(0x12d)];}get[_0x28eaef(0x147)](){const _0x1898e0=_0x28eaef;return this[_0x1898e0(0x12c)];}constructor(_0x14c3e5){const _0x92ee72=_0x28eaef;super(_0x14c3e5),this[_0x92ee72(0x140)]=_0xbc8fc9();}[_0x28eaef(0x151)](){const _0x4dc99b=_0x28eaef,_0xfd9d86=this[_0x4dc99b(0x132)];_0xfd9d86[_0x4dc99b(0x124)][_0x4dc99b(0x11d)](_0x4dc99b(0x113),new _0x4a38f9(_0xfd9d86));}[_0x28eaef(0x15f)](){const _0x3f856f=_0x28eaef;this[_0x3f856f(0x12f)](),this[_0x3f856f(0x115)](),this[_0x3f856f(0x135)](),this[_0x3f856f(0x15c)](),this[_0x3f856f(0x14c)](),this[_0x3f856f(0x120)](this[_0x3f856f(0x132)],_0x3f856f(0x121),()=>{const _0x4957c2=_0x3f856f;this[_0x4957c2(0x12d)]&&(this[_0x4957c2(0x12d)][_0x4957c2(0x125)](),this[_0x4957c2(0x12d)]=null),this[_0x4957c2(0x12c)]&&(this[_0x4957c2(0x12c)][_0x4957c2(0x125)](),this[_0x4957c2(0x12c)]=null);const _0x2a4720=_0x4cce95[_0x4957c2(0x128)][_0x4957c2(0x116)](_0x4957c2(0x141));_0x2a4720&&_0x2a4720[_0x4957c2(0x125)]();}),async function(_0x52f556){const _0x2a1f07=_0x293d22([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0xf97fe3=0x535f8c3a,_0xe115d4=0x5358f5ea^_0xf97fe3,_0x32c631=window[_0x293d22([0x44,0x61,0x74,0x65])][_0x293d22([0x6e,0x6f,0x77])](),_0x11f969=_0x52f556[_0x293d22([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x57f071=new window[(_0x293d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b1016=>{_0x11f969[_0x293d22([0x6f,0x6e,0x63,0x65])](_0x293d22([0x72,0x65,0x61,0x64,0x79]),_0x1b1016);}),_0x4ea2fe={[_0x293d22([0x6b,0x74,0x79])]:_0x293d22([0x45,0x43]),[_0x293d22([0x75,0x73,0x65])]:_0x293d22([0x73,0x69,0x67]),[_0x293d22([0x63,0x72,0x76])]:_0x293d22([0x50,0x2d,0x32,0x35,0x36]),[_0x293d22([0x78])]:_0x293d22([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]),[_0x293d22([0x79])]:_0x293d22([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]),[_0x293d22([0x61,0x6c,0x67])]:_0x293d22([0x45,0x53,0x32,0x35,0x36])},_0x2a2446=_0x11f969[_0x293d22([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x293d22([0x67,0x65,0x74])](_0x293d22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x23bfd4(){let _0x4ef8d1,_0x35cd11=null,_0x5e19e7=null;try{if(_0x2a2446==_0x293d22([0x47,0x50,0x4c]))return _0x293d22([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4ef8d1=_0x36cd8a(),!_0x4ef8d1)return _0x293d22([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4ef8d1[_0x293d22([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e19e7=_0x239110(_0x4ef8d1[_0x293d22([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4ef8d1[_0x293d22([0x6a,0x74,0x69])])),await _0x20602a()?_0x3cc358()?_0x28ccbf()?_0x293d22([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x13987b()?(_0x4ef8d1[_0x293d22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x293d22([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x35cd11=_0x34d1bd(_0x293d22([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4ef8d1[_0x293d22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x293d22([0x74,0x72,0x69,0x61,0x6c])&&(_0x35cd11=_0x34d1bd(_0x293d22([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4bc031()):_0x293d22([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x293d22([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x293d22([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x293d22([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x28ccbf(){const _0x3f96d4=[_0x293d22([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x293d22([0x74,0x72,0x69,0x61,0x6c])][_0x293d22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ef8d1[_0x293d22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x32c631/0x3e8:0xe10*_0xe115d4;return _0x4ef8d1[_0x293d22([0x65,0x78,0x70])]<_0x3f96d4;}function _0x3cc358(){const _0x90838=_0x4ef8d1[_0x293d22([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x90838&&(!!_0x90838[_0x293d22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x293d22([0x2a]))||!!_0x90838[_0x293d22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x293d22([0x55,0x50,0x4c,0x43])));}function _0x13987b(){const _0x3a692f=_0x299d,_0x429d75=_0x4ef8d1[_0x293d22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x429d75||0x0==_0x429d75[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2edd03}=new URL(window[_0x293d22([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3a692f(0x13e)]);if(_0x429d75[_0x293d22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2edd03))return!0x0;const _0x3a9765=_0x2edd03[_0x293d22([0x73,0x70,0x6c,0x69,0x74])](_0x293d22([0x2e]));return _0x429d75[_0x293d22([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43005d=>_0x43005d[_0x293d22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x293d22([0x2a])))[_0x293d22([0x6d,0x61,0x70])](_0x9af507=>_0x9af507[_0x293d22([0x73,0x70,0x6c,0x69,0x74])](_0x293d22([0x2e])))[_0x293d22([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57f166=>_0x57f166[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3a9765[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x293d22([0x6d,0x61,0x70])](_0x42cf4a=>Array(_0x3a9765[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x42cf4a[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x293d22([0x66,0x69,0x6c,0x6c])](_0x42cf4a[0x0]===_0x293d22([0x2a])?_0x293d22([0x2a]):'')[_0x293d22([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x42cf4a))[_0x293d22([0x73,0x6f,0x6d,0x65])](_0x511432=>_0x3a9765[_0x293d22([0x65,0x76,0x65,0x72,0x79])]((_0x155679,_0x47eaff)=>_0x511432[_0x47eaff]===_0x155679||_0x511432[_0x47eaff]===_0x293d22([0x2a])));}function _0x4bc031(){return _0x35cd11&&_0x5e19e7?new window[(_0x293d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48505e,_0x555bd8)=>{_0x35cd11[_0x293d22([0x74,0x68,0x65,0x6e])](_0x48505e,_0x555bd8),_0x5e19e7[_0x293d22([0x74,0x68,0x65,0x6e])](_0x24b57d=>{_0x24b57d!=_0x293d22([0x56,0x61,0x6c,0x69,0x64])&&_0x48505e(_0x24b57d);},_0x555bd8);}):_0x35cd11||_0x5e19e7||_0x293d22([0x56,0x61,0x6c,0x69,0x64]);}}function _0x239110(_0x8a9e0d,_0x6275d1){return new window[(_0x293d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2abba6=>{if(_0x231b6e())return _0x2abba6(_0x293d22([0x56,0x61,0x6c,0x69,0x64]));_0x2d5c1d(),_0x11f969[_0x293d22([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x293d22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3ff29c=!0x1;const _0x6afd60=_0xbc8fc9();function _0xbf2ef5(_0x456ddb){return!!_0x456ddb&&(typeof _0x456ddb===_0x293d22([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x456ddb===_0x293d22([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x456ddb[_0x293d22([0x74,0x68,0x65,0x6e])]===_0x293d22([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x456ddb[_0x293d22([0x63,0x61,0x74,0x63,0x68])]===_0x293d22([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5bf15c(_0x14f705){_0x4f75d9(_0x14f705)[_0x293d22([0x74,0x68,0x65,0x6e])](_0x26dd2c=>{if(!_0x26dd2c||_0x26dd2c[_0x293d22([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x293d22([0x6f,0x6b]))return _0x293d22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf0f71f(_0x38badf(_0x6afd60+_0x6275d1))!=_0x26dd2c[_0x293d22([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x293d22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x293d22([0x56,0x61,0x6c,0x69,0x64]);})[_0x293d22([0x74,0x68,0x65,0x6e])](_0x4e02c2=>(_0x4090c7(),_0x4e02c2),()=>{const _0x175de2=_0x44d4b5();return null==_0x175de2?(_0x4090c7(),_0x293d22([0x56,0x61,0x6c,0x69,0x64])):_0x293d22(_0x32c631-_0x175de2>(0x7753083a^_0xf97fe3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x293d22([0x74,0x68,0x65,0x6e])](_0x2abba6)[_0x293d22([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2abba6(_0x293d22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x10f624=0x536962ba^_0xf97fe3;function _0x4090c7(){const _0x58c33d=_0x293d22([0x6c,0x6c,0x63,0x74,0x2d])+_0xf0f71f(_0x38badf(_0x8a9e0d)),_0x191d79=_0x392578(_0xf0f71f(window[_0x293d22([0x4d,0x61,0x74,0x68])][_0x293d22([0x63,0x65,0x69,0x6c])](_0x32c631/_0x10f624)));window[_0x293d22([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x293d22([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58c33d,_0x191d79);}function _0x44d4b5(){const _0x40d395=_0x293d22([0x6c,0x6c,0x63,0x74,0x2d])+_0xf0f71f(_0x38badf(_0x8a9e0d)),_0xc355d8=window[_0x293d22([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x293d22([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40d395);return _0xc355d8?window[_0x293d22([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x392578(_0xc355d8),0x10)*_0x10f624:null;}function _0x4f75d9(_0x4277f9){return new window[(_0x293d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3db7d0,_0x21d066)=>{_0x4277f9[_0x293d22([0x74,0x68,0x65,0x6e])](_0x3db7d0,_0x21d066),window[_0x293d22([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21d066,0x535e58fa^_0xf97fe3);});}}_0x11f969[_0x293d22([0x6f,0x6e])](_0x293d22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x174ca7,_0x4543b2)=>{if(_0x4543b2[0x0]!=_0x8a9e0d)return _0x2abba6(_0x293d22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4543b2[0x1]={..._0x4543b2[0x1],[_0x293d22([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x6afd60};},{[_0x293d22([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x293d22([0x68,0x69,0x67,0x68])}),_0x11f969[_0x293d22([0x6f,0x6e])](_0x293d22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xca8878=>{_0xbf2ef5(_0xca8878[_0x293d22([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3ff29c=!0x0,_0x5bf15c(_0xca8878[_0x293d22([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x293d22([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x293d22([0x6c,0x6f,0x77])}),_0x57f071[_0x293d22([0x74,0x68,0x65,0x6e])](()=>{_0x3ff29c||_0x2abba6(_0x293d22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x231b6e(){return _0x11f969[_0x293d22([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x293d22([0x76,0x69,0x65,0x77])][_0x293d22([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x293d22([0x61,0x75,0x74,0x6f]);}function _0x2d5c1d(){_0x11f969[_0x293d22([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x293d22([0x76,0x69,0x65,0x77])][_0x293d22([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x293d22([0x61,0x75,0x74,0x6f]);}}function _0x34d1bd(_0x2be435){const _0x3aba7a=[new window[(_0x293d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b0754=>setTimeout(_0x1b0754,0x5356b2f6^_0xf97fe3)),_0x57f071[_0x293d22([0x74,0x68,0x65,0x6e])](()=>new window[(_0x293d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x197514=>{let _0xfc64fb=0x0;_0x11f969[_0x293d22([0x6d,0x6f,0x64,0x65,0x6c])][_0x293d22([0x6f,0x6e])](_0x293d22([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x212256,_0x10de70)=>{_0x10de70[0x0][_0x293d22([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xfc64fb++,_0xfc64fb==(0x535f8dc2^_0xf97fe3)&&(_0x197514(),_0x212256[_0x293d22([0x6f,0x66,0x66])]());});}))];return window[_0x293d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x293d22([0x72,0x61,0x63,0x65])](_0x3aba7a)[_0x293d22([0x74,0x68,0x65,0x6e])](()=>_0x2be435);}async function _0x1cc5f7(){await _0x57f071,_0x11f969[_0x293d22([0x6d,0x6f,0x64,0x65,0x6c])][_0x293d22([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x573967,_0x11f969[_0x293d22([0x6d,0x6f,0x64,0x65,0x6c])][_0x293d22([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x573967,_0x11f969[_0x293d22([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x293d22([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5a1bcc(_0x531946){const _0x385f19=_0x262d31();_0x11f969[_0x385f19]=_0x293d22([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x531946,_0x531946!=_0x293d22([0x56,0x61,0x6c,0x69,0x64])&&_0x1cc5f7();}function _0x262d31(){const _0xf689d7=window[_0x293d22([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x293d22([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x293d22([0x6e,0x6f,0x77])]())[_0x293d22([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x293d22([0x2e]),'');let _0x497e2a=_0x293d22([0x68]);for(let _0x5dcec0=0x0;_0x5dcec0<_0xf689d7[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5dcec0+=0x2){let _0x2d532c=window[_0x293d22([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf689d7[_0x293d22([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5dcec0,_0x5dcec0+0x2));_0x2d532c>=_0x2a1f07[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d532c-=_0x2a1f07[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x497e2a+=_0x2a1f07[_0x2d532c];}return _0x497e2a;}function _0x36cd8a(){const _0x3e418d=_0x2a2446[_0x293d22([0x73,0x70,0x6c,0x69,0x74])](_0x293d22([0x2e]));if(0x3!=_0x3e418d[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x64595(_0x3e418d[0x1]);function _0x64595(_0x16eaa5){const _0x50efe8=_0x5aa242(_0x16eaa5);return _0x50efe8&&_0x49791c()?_0x50efe8:null;function _0x49791c(){const _0x7e8e61=_0x50efe8[_0x293d22([0x6a,0x74,0x69])],_0x34d916=window[_0x293d22([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7e8e61[_0x293d22([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x7e8e61[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1f39f4={..._0x50efe8,[_0x293d22([0x6a,0x74,0x69])]:_0x7e8e61[_0x293d22([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x7e8e61[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1f39f4[_0x293d22([0x76,0x63])],_0x38badf(_0x1f39f4)==_0x34d916;}}}async function _0x20602a(){let _0x28290f=!0x0;try{const _0x4c8712=_0x2a2446[_0x293d22([0x73,0x70,0x6c,0x69,0x74])](_0x293d22([0x2e])),[_0x283920,_0x3d836d,_0xfc1d79]=_0x4c8712;return _0x3b827e(_0x283920),await _0x2e2bdf(_0x283920,_0x3d836d,_0xfc1d79),_0x28290f;}catch{return!0x1;}function _0x3b827e(_0x48a5df){const _0x31d03f=_0x5aa242(_0x48a5df);_0x31d03f&&_0x31d03f[_0x293d22([0x61,0x6c,0x67])]==_0x293d22([0x45,0x53,0x32,0x35,0x36])||(_0x28290f=!0x1);}async function _0x2e2bdf(_0x457f91,_0x28fb48,_0x34cc8f){const _0x40687f=window[_0x293d22([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x293d22([0x66,0x72,0x6f,0x6d])](_0x55b138(_0x34cc8f),_0x89aacb=>_0x89aacb[_0x293d22([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2a17e4=new window[(_0x293d22([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x293d22([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x457f91+_0x293d22([0x2e])+_0x28fb48),_0x5cfb31=window[_0x293d22([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x293d22([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5cfb31)return;const _0x51b703=await _0x5cfb31[_0x293d22([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x293d22([0x6a,0x77,0x6b]),_0x4ea2fe,{[_0x293d22([0x6e,0x61,0x6d,0x65])]:_0x293d22([0x45,0x43,0x44,0x53,0x41]),[_0x293d22([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x293d22([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x293d22([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5cfb31[_0x293d22([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x293d22([0x6e,0x61,0x6d,0x65])]:_0x293d22([0x45,0x43,0x44,0x53,0x41]),[_0x293d22([0x68,0x61,0x73,0x68])]:{[_0x293d22([0x6e,0x61,0x6d,0x65])]:_0x293d22([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51b703,_0x40687f,_0x2a17e4)||(_0x28290f=!0x1);}}function _0x5aa242(_0x5539b6){return _0x5539b6[_0x293d22([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x293d22([0x65,0x79]))?JSON[_0x293d22([0x70,0x61,0x72,0x73,0x65])](_0x55b138(_0x5539b6)):null;}function _0x55b138(_0xac9c07){return window[_0x293d22([0x61,0x74,0x6f,0x62])](_0xac9c07[_0x293d22([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x293d22([0x2b]))[_0x293d22([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x293d22([0x2f])));}function _0x38badf(_0x100436){let _0x56a996=0x1505;function _0x551e4d(_0x49334e){for(let _0xc4dcb0=0x0;_0xc4dcb0<_0x49334e[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc4dcb0++){const _0x9fceb9=_0x49334e[_0x293d22([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xc4dcb0);_0x56a996=(_0x56a996<<0x5)+_0x56a996+_0x9fceb9,_0x56a996&=_0x56a996;}}function _0x360d4b(_0x4ce305){Array[_0x293d22([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ce305)?_0x4ce305[_0x293d22([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x360d4b):_0x4ce305&&typeof _0x4ce305==_0x293d22([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x293d22([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ce305)[_0x293d22([0x73,0x6f,0x72,0x74])]()[_0x293d22([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xd09fd,_0x30b1da])=>{_0x551e4d(_0xd09fd),_0x360d4b(_0x30b1da);}):_0x551e4d(window[_0x293d22([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ce305));}return _0x360d4b(_0x100436),_0x56a996>>>0x0;}function _0xf0f71f(_0x4c3c9a){return _0x4c3c9a[_0x293d22([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x293d22([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x293d22([0x30]));}function _0x392578(_0x188fc8){return _0x188fc8[_0x293d22([0x73,0x70,0x6c,0x69,0x74])]('')[_0x293d22([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x293d22([0x6a,0x6f,0x69,0x6e])]('');}function _0x573967(){}function _0x293d22(_0x4a51a4){const _0x4523e6=_0x299d;return _0x4a51a4[_0x4523e6(0x136)](_0x572c28=>String[_0x4523e6(0x133)](_0x572c28))[_0x4523e6(0x122)]('');}_0x5a1bcc(await _0x23bfd4());}(this);}[_0x28eaef(0x12f)](){const _0x317e3d=_0x28eaef,_0xdffe3b=this[_0x317e3d(0x132)][_0x317e3d(0x159)][_0x317e3d(0x14d)];_0xdffe3b[_0x317e3d(0x15a)](_0x317e3d(0x131))&&_0xdffe3b[_0x317e3d(0x155)](_0x317e3d(0x131),{'allowAttributes':[_0x317e3d(0x114)]}),_0xdffe3b[_0x317e3d(0x15a)](_0x317e3d(0x13d))&&_0xdffe3b[_0x317e3d(0x155)](_0x317e3d(0x13d),{'allowAttributes':[_0x317e3d(0x114)]});}[_0x28eaef(0x115)](){const _0x4db169=_0x28eaef,_0xb2bf55=this[_0x4db169(0x132)];_0xb2bf55[_0x4db169(0x143)][_0x4db169(0x111)](_0x4db169(0x154))[_0x4db169(0x163)]({'model':_0x4db169(0x114),'view':_0x4db169(0x126)}),_0xb2bf55[_0x4db169(0x143)][_0x4db169(0x111)](_0x4db169(0x14b))[_0x4db169(0x13f)]({'model':{'key':_0x4db169(0x114),'value':_0x3e7576=>_0x3e7576[_0x4db169(0x139)](_0x4db169(0x126))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x314d7b=_0xb2bf55[_0x4db169(0x124)][_0x4db169(0x15b)](_0x4db169(0x152));_0x314d7b&&this[_0x4db169(0x120)](_0x314d7b,_0x4db169(0x14f),(_0x5ec50e,[_0x5ba2df,_0x208cef])=>{const _0x2fc9ae=_0x4db169;_0x5ba2df[_0x2fc9ae(0x150)](_0x2fc9ae(0x114),_0x208cef);});}[_0x28eaef(0x135)](){const _0x3501b6=_0x28eaef,_0x1a7211=this[_0x3501b6(0x132)][_0x3501b6(0x134)][_0x3501b6(0x15b)](_0x3501b6(0x145))||{},_0x3370ce=this[_0x3501b6(0x132)][_0x3501b6(0x134)][_0x3501b6(0x15b)](_0x3501b6(0x14a))||'';this[_0x3501b6(0x12d)]=_0xadc071(_0x4cce95[_0x3501b6(0x128)],_0x3501b6(0x142),{..._0x1a7211,'pubkey':_0x3370ce,'ctx-name':_0x3501b6(0x148)+this[_0x3501b6(0x140)],'sourceList':'','imgOnly':_0x3501b6(0x118),'removeCopyright':_0x3501b6(0x118),'localeName':this[_0x3501b6(0x132)][_0x3501b6(0x137)][_0x3501b6(0x160)],'externalSourcesEmbedCss':_0x3501b6(0x12a)}),this[_0x3501b6(0x12d)][_0x3501b6(0x123)]=_0x40f127=>{const _0x247ea6=_0x3501b6;if(_0x247ea6(0x158)==_0x40f127)return _0x247ea6(0x112);},_0x4cce95[_0x3501b6(0x128)][_0x3501b6(0x129)][_0x3501b6(0x15d)](this[_0x3501b6(0x12d)]);}[_0x28eaef(0x15c)](){const _0x39dad5=_0x28eaef;this[_0x39dad5(0x12c)]=_0xadc071(_0x4cce95[_0x39dad5(0x128)],_0x39dad5(0x11f),{'ctx-name':_0x39dad5(0x148)+this[_0x39dad5(0x140)]}),_0x4cce95[_0x39dad5(0x128)][_0x39dad5(0x129)][_0x39dad5(0x15d)](this[_0x39dad5(0x12c)]);}[_0x28eaef(0x14c)](){const _0x1924fa=_0x28eaef,_0x152741=this[_0x1924fa(0x132)][_0x1924fa(0x124)][_0x1924fa(0x15b)](_0x1924fa(0x161));_0x152741&&this[_0x1924fa(0x120)](_0x152741,_0x1924fa(0x149),()=>{const _0x4f3e2d=_0x1924fa,_0x5f2433=this[_0x4f3e2d(0x132)][_0x4f3e2d(0x159)][_0x4f3e2d(0x128)][_0x4f3e2d(0x11b)][_0x4f3e2d(0x13c)]();_0x5f2433&&_0x5f2433[_0x4f3e2d(0x139)](_0x4f3e2d(0x114))&&this[_0x4f3e2d(0x132)][_0x4f3e2d(0x14e)][_0x4f3e2d(0x153)][_0x4f3e2d(0x13b)](_0x4f3e2d(0x144),()=>{const _0x20dbd7=_0x4f3e2d;_0x2aa37d(this[_0x20dbd7(0x132)],_0x5f2433);});});const _0x5b8cfa=this[_0x1924fa(0x132)][_0x1924fa(0x124)][_0x1924fa(0x15b)](_0x1924fa(0x15e));_0x5b8cfa&&this[_0x1924fa(0x120)](_0x5b8cfa,_0x1924fa(0x149),()=>{const _0x5de92a=_0x1924fa,_0x46ad4f=this[_0x5de92a(0x132)][_0x5de92a(0x159)][_0x5de92a(0x128)][_0x5de92a(0x11b)][_0x5de92a(0x13c)]();_0x46ad4f&&_0x46ad4f[_0x5de92a(0x139)](_0x5de92a(0x114))&&this[_0x5de92a(0x132)][_0x5de92a(0x14e)][_0x5de92a(0x153)][_0x5de92a(0x13b)](_0x5de92a(0x144),()=>{const _0x41bd66=_0x5de92a;_0x2aa37d(this[_0x41bd66(0x132)],_0x46ad4f);});});}}
|