@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251110.0 → 0.0.0-nightly-20251112.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/uploadcareediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x19f08e,Command as _0x4d313d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x464689,IconGooglePhotos as _0xb87b36,IconGoogleDrive as _0x41b314,IconFacebook as _0x23b157,IconDropbox as _0x4d80e9,IconUploadcareLink as _0x499749,IconUploadcareImageUpload as _0x6a6866,IconError as _0xbb5f00,IconUploadcareImageEdit as _0x504244}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x101680,MenuBarMenuListItemButtonView as _0x3aebf6,View as _0x19c1d0,FocusCycler as _0x4ca092,Dialog as _0x23808a,DialogViewPosition as _0x2a627d,SpinnerView as _0x5374da,IconView as _0xfd2dcd,Notification as _0x2faf7d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2eade1,DomEmitterMixin as _0x40fb7d,global as _0x35dae1,getAncestors as _0x3875af,ObservableMixin as _0x758243,uid as _0x450c8e,createElement as _0x3b5d34}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x9df837}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x57a2cc,info as _0x3a35b0}from'@uploadcare/upload-client';import*as _0x12919e from'@uploadcare/file-uploader';var i=function(_0x5c1152){return _0x5c1152['Local']='local',_0x5c1152['URL']='url',_0x5c1152['Dropbox']='dropbox',_0x5c1152['GDrive']='gdrive',_0x5c1152['Facebook']='facebook',_0x5c1152['GPhotos']='gphotos',_0x5c1152['OneDrive']='onedrive',_0x5c1152;}({});function _(_0x5c4d61,_0x419f59,_0x45a27d){const t=_0x5c4d61['t'],_0x49ad00=_0x5c4d61['t'];switch(_0x419f59){case i['Local']:return{'text':_0x49ad00('Insert'===_0x45a27d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x49ad00('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x45a27d?_0x49ad00('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x49ad00('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x45a27d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x45a27d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x45a27d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x45a27d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x45a27d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x419f59;}}class e extends _0x19f08e{['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 _0x145d7d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x409ae9;for(const _0x4b8aff in _0x145d7d){const _0x4a713d=_0x4b8aff,_0x2c0115=_0x145d7d[_0x4a713d];if('uploadcareLicenseKeyValid'==_0x2c0115||'uploadcareLicenseKeyInvalid'==_0x2c0115||'uploadcareLicenseKeyExpired'==_0x2c0115||'uploadcareLicenseKeyDomainLimit'==_0x2c0115||'uploadcareLicenseKeyNotAllowed'==_0x2c0115||'uploadcareLicenseKeyEvaluationLimit'==_0x2c0115||'uploadcareLicenseKeyTrialLimit'==_0x2c0115||'uploadcareLicenseKeyUsageLimit'==_0x2c0115){delete _0x145d7d[_0x4a713d],_0x409ae9=_0x2c0115,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x409ae9&&_0x145d7d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x409ae9&&_0x145d7d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x409ae9&&_0x145d7d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x409ae9&&_0x145d7d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x409ae9&&_0x145d7d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x409ae9&&_0x145d7d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x409ae9&&_0x145d7d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x27a9a1}=this,_0x5a0dae=_0x27a9a1['commands']['get']('uploadcare');if(!_0x5a0dae)return;const _0x42f8e8=this['_normalizeConfigSourceList'](_0x27a9a1['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x53ea3d,_0xa4dc76)=>{const _0x2ef3b5=this['_getIntegrationKey'](_0xa4dc76['type']);return _0x53ea3d[_0x2ef3b5]||(_0x53ea3d[_0x2ef3b5]=[]),_0x53ea3d[_0x2ef3b5]['push'](_0xa4dc76),_0x53ea3d;},{});_0x27a9a1['plugins']['has']('ImageInsertUI')&&_0x27a9a1['commands']['get']('uploadcare')&&Object['entries'](_0x42f8e8)['forEach'](([_0x136534,_0x334805])=>{_0x27a9a1['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x136534,'observable':()=>_0x5a0dae,'buttonViewCreator':()=>this['_createToolbarButton'](_0x334805),'formViewCreator':()=>this['_createDropdownButtons'](_0x334805),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x334805),'override':'assetManager'!==_0x136534});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5672df){const {locale:_0x33fcc6}=this['editor'];return _0x5672df['map'](_0x101da7=>{const _0x187c86=_(_0x33fcc6,_0x101da7,'Insert');switch(_0x101da7){case i['Local']:return{'icon':_0x6a6866,'type':i['Local'],..._0x187c86};case i['URL']:return{'icon':_0x499749,'type':i['URL'],..._0x187c86};case i['Dropbox']:return{'icon':_0x4d80e9,'type':i['Dropbox'],..._0x187c86};case i['Facebook']:return{'icon':_0x23b157,'type':i['Facebook'],..._0x187c86};case i['GDrive']:return{'icon':_0x41b314,'type':i['GDrive'],..._0x187c86};case i['GPhotos']:return{'icon':_0xb87b36,'type':i['GPhotos'],..._0x187c86};case i['OneDrive']:return{'icon':_0x464689,'type':i['OneDrive'],..._0x187c86};}});}['_getIntegrationKey'](_0x5bd8fe){switch(_0x5bd8fe){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x433133,_0x321cb0){const _0x92ccd3=this['editor'],_0xf039cf=new _0x433133(_0x92ccd3['locale']),_0xf3b069=_0x92ccd3['commands']['get']('uploadcare');return _0xf039cf['bind']('isEnabled')['to'](_0xf3b069),_0xf039cf['on']('execute',()=>{_0xf3b069['execute'](_0x321cb0);}),_0xf039cf;}['_createToolbarButton'](_0x1f66e8){const {locale:_0x272452}=this['editor'],_0x465be2=this['editor']['plugins']['get']('ImageInsertUI'),_0x4545cf=_0x1f66e8[0x0],_0x27d637=this['_createButton'](_0x101680,_0x4545cf['type']);return _0x27d637['icon']=_0x4545cf['icon'],_0x27d637['bind']('label')['to'](_0x465be2,'isImageSelected',_0x28640b=>_(_0x272452,_0x4545cf['type'],_0x28640b?'Replace':'Insert')['text']),_0x27d637['tooltip']=!0x0,_0x27d637;}['_createDropdownButtons'](_0x3478a9){const {locale:_0x32666d}=this['editor'],_0x340c34=this['editor']['plugins']['get']('ImageInsertUI');return _0x3478a9['map'](_0x2e3dfe=>{const _0x40ac50=this['_createButton'](_0x101680,_0x2e3dfe['type']);return _0x40ac50['withText']=!0x0,_0x40ac50['icon']=_0x2e3dfe['icon'],_0x40ac50['bind']('label')['to'](_0x340c34,'isImageSelected',_0x336eba=>_(_0x32666d,_0x2e3dfe['type'],_0x336eba?'Replace':'Insert')['text']),_0x40ac50;});}['_createMenuBarButtons'](_0x11907a){return _0x11907a['map'](_0x235150=>{const _0x46007f=this['_createButton'](_0x3aebf6,_0x235150['type']);return _0x46007f['icon']=_0x235150['icon'],_0x46007f['label']=_0x235150['shortText'],_0x46007f;});}}class F extends _0x19c1d0{['focusTracker'];['focusCycler'];constructor(_0x563c2a){super(_0x563c2a),this['focusTracker']=new _0x2eade1(),this['focusCycler']=new _0x4ca092({'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(_0x297b62,_0x51e2dd){super(_0x297b62),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-'+_0x51e2dd}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x39bc67,_0x33e0c5){const _0x2fd1a1=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x20e187=>_0x20e187<=_0x33e0c5)['map'](_0x394415=>_0x39bc67['replace'](/\/$/,'')+'/-/resize/'+_0x394415+'x/\x20'+_0x394415+'w');return{'imageFallbackUrl':_0x39bc67,'imageSources':[{'srcset':_0x2fd1a1['join'](',\x20'),'sizes':'(max-width:\x20'+_0x33e0c5+'px)\x20100vw,\x20'+_0x33e0c5+'px','type':'image/webp'}]};}function S(_0x18c354,_0x47516d,_0x328493){const _0x5b89e2=_0x18c354['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5b89e2?parseInt(_0x5b89e2[0x1],0xa):_0x47516d,'height':_0x5b89e2?parseInt(_0x5b89e2[0x2],0xa):_0x328493};}function p(_0x25178c,_0x25f1db){const _0x14b0d4=new(_0x40fb7d())(),_0x53137a=_0x25178c['plugins']['get']('ImageUtils'),_0x4f91b5=_0x25178c['editing']['mapper']['toViewElement'](_0x25f1db),_0x355dc3=_0x53137a['findViewImgElement'](_0x4f91b5),_0x3fc37c=_0x25178c['editing']['view']['domConverter']['viewToDom'](_0x355dc3),_0x3ba2f9=_0x25f1db['getAttribute']('width'),_0x55cd67=_0x25f1db['getAttribute']('height'),_0x3273b8='image-processing';_0x25178c['editing']['view']['change'](_0x470ac4=>{_0x470ac4['addClass'](_0x3273b8,_0x4f91b5),_0x470ac4['setStyle']('aspect-ratio',_0x3ba2f9+'/'+_0x55cd67,_0x355dc3);}),_0x14b0d4['listenTo'](_0x3fc37c,'load',()=>{_0x14b0d4['stopListening'](_0x3fc37c,'load'),_0x25178c['editing']['view']['change'](_0x7ffd72=>{_0x7ffd72['removeClass'](_0x3273b8,_0x4f91b5),_0x7ffd72['removeStyle']('aspect-ratio',_0x355dc3);});});}function G(_0x30627e){if(Array['isArray'](_0x30627e)){const _0x5ec541=_0x30627e['map'](G);return _0x12f697=>_0x5ec541['some'](_0x161a49=>_0x161a49(_0x12f697));}if('origin'==_0x30627e){const _0x4f10d2=_0x35dae1['window']['location']['origin'];return _0x658cfc=>new URL(_0x658cfc,_0x35dae1['document']['baseURI'])['origin']==_0x4f10d2;}return'function'==typeof _0x30627e?_0x30627e:_0x30627e instanceof RegExp?_0x2d3af0=>!(!_0x2d3af0['match'](_0x30627e)&&!_0x2d3af0['replace'](/^https?:\/\//,'')['match'](_0x30627e)):()=>!0x1;}function A(_0x21f5c0,_0xea2816){return _0x3875af(_0x21f5c0['target'])['includes'](_0xea2816);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x758243(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3de85e,_0x4753eb,_0x19f52f){super(),this['_editor']=_0x3de85e,this['_editing']=_0x4753eb,this['_dialog']=_0x3de85e['plugins']['get'](_0x23808a),this['_api']=_0x4753eb['ctxElement']['getAPI'](),this['_type']=_0x19f52f,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:_0x4f3b22,model:_0x261317}=this['_editor'],_0x3facce=_0x261317['document']['selection']['getSelectedElement'](),_0x50c26c=_0x3facce&&(_0x3facce['is']('element','imageBlock')||_0x3facce['is']('element','imageInline'));this['_formView']=new x(_0x4f3b22,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x6a6866,'title':_(_0x4f3b22,this['_type'],_0x50c26c?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2a627d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x36d02b=>!A(_0x36d02b,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3a1a02}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x329b49=>{const _0xdc4259=_0x3a1a02['length'];for(const _0x336678 of _0x3a1a02){const _0x410bda=_0x336678===_0x3a1a02[_0xdc4259-0x1],{cdnUrl:_0x35c7e4,fileInfo:_0x554a3d}=_0x336678;if(!_0x35c7e4||!_0x554a3d)continue;const {width:_0x3d31cf,height:_0x3d30e6}=_0x554a3d['imageInfo'],_0x1ebe4e=S(_0x35c7e4,_0x3d31cf,_0x3d30e6),_0x5d2f90=C(_0x35c7e4,_0x1ebe4e['width']),_0x37989b={'id':_0x554a3d['uuid'],'type':'image','attributes':{'imageDimension':_0x1ebe4e,..._0x5d2f90}};this['_insertAsset'](_0x37989b,_0x410bda,_0x329b49);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1a07bd=>{'idle'===_0x1a07bd['detail']['status']&&!_0x1a07bd['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2aa1a9,_0x4b6822,_0x3edd4b){const _0x2be839=this['_editor']['model']['document']['selection'],_0xf4a58f=_0x2be839['getSelectedElement'](),_0x13ea3b=!(!_0xf4a58f||!_0xf4a58f['is']('element','imageInline'));_0x3edd4b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2aa1a9,_0x13ea3b),_0x4b6822||_0x3edd4b['setSelection'](_0x2be839['getLastPosition']());}['_insertImage'](_0xa27133,_0x3728bb){const _0x1442de=this['_editor'],{imageDimension:_0x2da490,imageFallbackUrl:_0x33b905,imageSources:_0x9ba7ef}=_0xa27133['attributes'];_0x1442de['execute']('insertImage',{'imageType':_0x3728bb?'imageInline':null,'source':{'uploadcareImageId':_0xa27133['id'],'src':_0x33b905,'sources':_0x9ba7ef,..._0x2da490}});}}class w extends _0x4d313d{['_editing'];['_controller']=null;static get['requires'](){return[_0x23808a,o];}constructor(_0x567468){super(_0x567468),this['_editing']=_0x567468['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x54dea9){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x54dea9);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x413cfc,..._0x32c933}){return _0x57a2cc(_0x413cfc,_0x32c933);}static['getInfo'](_0xdb3f93,_0x1e18d5){return _0x3a35b0(_0xdb3f93,_0x1e18d5);}}class f extends _0x19f08e{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x9df837,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x20c686=this['editor'];if(!!!_0x20c686['config']['get']('uploadcare'))return;_0x20c686['plugins']['get'](_0x9df837)['createUploadAdapter']=_0x177b3e=>new k(_0x177b3e,_0x20c686),_0x20c686['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x23106c,{imageElement:_0x20a56f,data:_0x1b5ca5})=>{_0x20c686['model']['change'](_0x244afe=>{_0x244afe['setAttribute']('uploadcareImageId',_0x1b5ca5['uploadcareImageId'],_0x20a56f);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4f2e5f,_0x2d1ec3){this['loader']=_0x4f2e5f,this['editor']=_0x2d1ec3,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4af817=await this['loader']['file'];return j['upload']({'file':_0x4af817,'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':_0x5dac1c=>{_0x5dac1c&&_0x5dac1c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5dac1c['value']);}})['then'](async _0x23dd17=>{const {imageFallbackUrl:_0x2173b5,imageSources:_0x2b4378}=C(_0x23dd17['cdnUrl'],_0x23dd17['imageInfo']['width']);return{'uploadcareImageId':_0x23dd17['uuid'],'default':_0x2173b5,'sources':_0x2b4378};})['catch'](()=>{const _0x3de930=t('Cannot\x20upload\x20file:')+('\x20'+_0x4af817['name']+'.');return Promise['reject'](_0x3de930);});}['abort'](){this['controller']['abort']();}}class o extends _0x19f08e{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x23808a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xa1a8fc){super(_0xa1a8fc),this['ucContextId']=_0x450c8e();}['init'](){const _0x2728ab=this['editor'];_0x2728ab['commands']['add']('uploadcare',new w(_0x2728ab));}['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 _0x4fcea5=_0x35dae1['document']['querySelector']('input[uploadcare-file-input]');_0x4fcea5&&_0x4fcea5['remove']();}),async function(_0x58194c){const _0xad245b=_0x3f5b7b([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]),_0x2b1551=0x535f8c3a,_0x5b03f1=0x5358f48a^_0x2b1551,_0x123318=window[_0x3f5b7b([0x44,0x61,0x74,0x65])][_0x3f5b7b([0x6e,0x6f,0x77])](),_0x289665=_0x58194c[_0x3f5b7b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3265da=new window[(_0x3f5b7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cfc9b=>{_0x289665[_0x3f5b7b([0x6f,0x6e,0x63,0x65])](_0x3f5b7b([0x72,0x65,0x61,0x64,0x79]),_0x2cfc9b);}),_0x453a09={[_0x3f5b7b([0x6b,0x74,0x79])]:_0x3f5b7b([0x45,0x43]),[_0x3f5b7b([0x75,0x73,0x65])]:_0x3f5b7b([0x73,0x69,0x67]),[_0x3f5b7b([0x63,0x72,0x76])]:_0x3f5b7b([0x50,0x2d,0x32,0x35,0x36]),[_0x3f5b7b([0x78])]:_0x3f5b7b([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]),[_0x3f5b7b([0x79])]:_0x3f5b7b([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]),[_0x3f5b7b([0x61,0x6c,0x67])]:_0x3f5b7b([0x45,0x53,0x32,0x35,0x36])},_0x5a1cf6=_0x289665[_0x3f5b7b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3f5b7b([0x67,0x65,0x74])](_0x3f5b7b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3a0717(){let _0x127285,_0x4392b6=null,_0x5a4b25=null;try{if(_0x5a1cf6==_0x3f5b7b([0x47,0x50,0x4c]))return _0x3f5b7b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x127285=_0x239702(),!_0x127285)return _0x3f5b7b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x127285[_0x3f5b7b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a4b25=_0x54d6ad(_0x127285[_0x3f5b7b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x127285[_0x3f5b7b([0x6a,0x74,0x69])])),await _0x1c4b25()?_0x45525e()?_0x2a21ea()?_0x3f5b7b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1f5bd0()?(_0x127285[_0x3f5b7b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f5b7b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4392b6=_0x2cc220(_0x3f5b7b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x127285[_0x3f5b7b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f5b7b([0x74,0x72,0x69,0x61,0x6c])&&(_0x4392b6=_0x2cc220(_0x3f5b7b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x42577f()):_0x3f5b7b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3f5b7b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3f5b7b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3f5b7b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2a21ea(){const _0x1ffc65=[_0x3f5b7b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3f5b7b([0x74,0x72,0x69,0x61,0x6c])][_0x3f5b7b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x127285[_0x3f5b7b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x123318/0x3e8:0xe10*_0x5b03f1;return _0x127285[_0x3f5b7b([0x65,0x78,0x70])]<_0x1ffc65;}function _0x45525e(){const _0x4d0903=_0x127285[_0x3f5b7b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4d0903&&(!!_0x4d0903[_0x3f5b7b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f5b7b([0x2a]))||!!_0x4d0903[_0x3f5b7b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f5b7b([0x55,0x50,0x4c,0x43])));}function _0x1f5bd0(){const _0x3a0e76=_0x127285[_0x3f5b7b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3a0e76||0x0==_0x3a0e76[_0x3f5b7b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5710f0}=new URL(window[_0x3f5b7b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3a0e76[_0x3f5b7b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5710f0))return!0x0;const _0x3f1b73=_0x5710f0[_0x3f5b7b([0x73,0x70,0x6c,0x69,0x74])](_0x3f5b7b([0x2e]));return _0x3a0e76[_0x3f5b7b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4093bf=>_0x4093bf[_0x3f5b7b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f5b7b([0x2a])))[_0x3f5b7b([0x6d,0x61,0x70])](_0xfa7c41=>_0xfa7c41[_0x3f5b7b([0x73,0x70,0x6c,0x69,0x74])](_0x3f5b7b([0x2e])))[_0x3f5b7b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x257416=>_0x257416[_0x3f5b7b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3f1b73[_0x3f5b7b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3f5b7b([0x6d,0x61,0x70])](_0x1f55f1=>Array(_0x3f1b73[_0x3f5b7b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1f55f1[_0x3f5b7b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3f5b7b([0x66,0x69,0x6c,0x6c])](_0x1f55f1[0x0]===_0x3f5b7b([0x2a])?_0x3f5b7b([0x2a]):'')[_0x3f5b7b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1f55f1))[_0x3f5b7b([0x73,0x6f,0x6d,0x65])](_0x18d394=>_0x3f1b73[_0x3f5b7b([0x65,0x76,0x65,0x72,0x79])]((_0x38b5da,_0x35b26a)=>_0x18d394[_0x35b26a]===_0x38b5da||_0x18d394[_0x35b26a]===_0x3f5b7b([0x2a])));}function _0x42577f(){return _0x4392b6&&_0x5a4b25?new window[(_0x3f5b7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10bb0e,_0x22c3da)=>{_0x4392b6[_0x3f5b7b([0x74,0x68,0x65,0x6e])](_0x10bb0e,_0x22c3da),_0x5a4b25[_0x3f5b7b([0x74,0x68,0x65,0x6e])](_0x5d24ef=>{_0x5d24ef!=_0x3f5b7b([0x56,0x61,0x6c,0x69,0x64])&&_0x10bb0e(_0x5d24ef);},_0x22c3da);}):_0x4392b6||_0x5a4b25||_0x3f5b7b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x54d6ad(_0xb73394,_0xc6609c){return new window[(_0x3f5b7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f5dde=>{if(_0x521cf4())return _0x4f5dde(_0x3f5b7b([0x56,0x61,0x6c,0x69,0x64]));_0x4f31b0(),_0x289665[_0x3f5b7b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3f5b7b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x165943=!0x1;const _0x512fc4=_0x450c8e();function _0x2f7ae4(_0x1e594d){return!!_0x1e594d&&(typeof _0x1e594d===_0x3f5b7b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1e594d===_0x3f5b7b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1e594d[_0x3f5b7b([0x74,0x68,0x65,0x6e])]===_0x3f5b7b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1e594d[_0x3f5b7b([0x63,0x61,0x74,0x63,0x68])]===_0x3f5b7b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x393360(_0xc8a93d){_0x2f0bce(_0xc8a93d)[_0x3f5b7b([0x74,0x68,0x65,0x6e])](_0x3f9897=>{if(!_0x3f9897||_0x3f9897[_0x3f5b7b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3f5b7b([0x6f,0x6b]))return _0x3f5b7b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb74707(_0x24bc06(_0x512fc4+_0xc6609c))!=_0x3f9897[_0x3f5b7b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3f5b7b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3f5b7b([0x56,0x61,0x6c,0x69,0x64]);})[_0x3f5b7b([0x74,0x68,0x65,0x6e])](_0x500757=>(_0x59d552(),_0x500757),()=>{const _0x109d49=_0x55a613();return null==_0x109d49?(_0x59d552(),_0x3f5b7b([0x56,0x61,0x6c,0x69,0x64])):_0x3f5b7b(_0x123318-_0x109d49>(0x7753083a^_0x2b1551)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3f5b7b([0x74,0x68,0x65,0x6e])](_0x4f5dde)[_0x3f5b7b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4f5dde(_0x3f5b7b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3abf97=0x536962ba^_0x2b1551;function _0x59d552(){const _0x448b5d=_0x3f5b7b([0x6c,0x6c,0x63,0x74,0x2d])+_0xb74707(_0x24bc06(_0xb73394)),_0x2dea34=_0x4dadc9(_0xb74707(window[_0x3f5b7b([0x4d,0x61,0x74,0x68])][_0x3f5b7b([0x63,0x65,0x69,0x6c])](_0x123318/_0x3abf97)));window[_0x3f5b7b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f5b7b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x448b5d,_0x2dea34);}function _0x55a613(){const _0x15c7b1=_0x3f5b7b([0x6c,0x6c,0x63,0x74,0x2d])+_0xb74707(_0x24bc06(_0xb73394)),_0x2da8de=window[_0x3f5b7b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f5b7b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15c7b1);return _0x2da8de?window[_0x3f5b7b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4dadc9(_0x2da8de),0x10)*_0x3abf97:null;}function _0x2f0bce(_0x4ce4c8){return new window[(_0x3f5b7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50778e,_0x8abd7c)=>{_0x4ce4c8[_0x3f5b7b([0x74,0x68,0x65,0x6e])](_0x50778e,_0x8abd7c),window[_0x3f5b7b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x8abd7c,0x535e58fa^_0x2b1551);});}}_0x289665[_0x3f5b7b([0x6f,0x6e])](_0x3f5b7b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x380c61,_0x381af5)=>{if(_0x381af5[0x0]!=_0xb73394)return _0x4f5dde(_0x3f5b7b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x381af5[0x1]={..._0x381af5[0x1],[_0x3f5b7b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x512fc4};},{[_0x3f5b7b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f5b7b([0x68,0x69,0x67,0x68])}),_0x289665[_0x3f5b7b([0x6f,0x6e])](_0x3f5b7b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3cb62e=>{_0x2f7ae4(_0x3cb62e[_0x3f5b7b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x165943=!0x0,_0x393360(_0x3cb62e[_0x3f5b7b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3f5b7b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f5b7b([0x6c,0x6f,0x77])}),_0x3265da[_0x3f5b7b([0x74,0x68,0x65,0x6e])](()=>{_0x165943||_0x4f5dde(_0x3f5b7b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x521cf4(){return _0x289665[_0x3f5b7b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f5b7b([0x76,0x69,0x65,0x77])][_0x3f5b7b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3f5b7b([0x61,0x75,0x74,0x6f]);}function _0x4f31b0(){_0x289665[_0x3f5b7b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f5b7b([0x76,0x69,0x65,0x77])][_0x3f5b7b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f5b7b([0x61,0x75,0x74,0x6f]);}}function _0x2cc220(_0x2173e1){const _0x488d17=[new window[(_0x3f5b7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a2ef5=>setTimeout(_0x3a2ef5,0x5356b2f6^_0x2b1551)),_0x3265da[_0x3f5b7b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3f5b7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b613e=>{let _0x1be17c=0x0;_0x289665[_0x3f5b7b([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f5b7b([0x6f,0x6e])](_0x3f5b7b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2df263,_0x4225a9)=>{_0x4225a9[0x0][_0x3f5b7b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1be17c++,_0x1be17c==(0x535f8dc2^_0x2b1551)&&(_0x5b613e(),_0x2df263[_0x3f5b7b([0x6f,0x66,0x66])]());});}))];return window[_0x3f5b7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f5b7b([0x72,0x61,0x63,0x65])](_0x488d17)[_0x3f5b7b([0x74,0x68,0x65,0x6e])](()=>_0x2173e1);}async function _0x488907(){await _0x3265da,_0x289665[_0x3f5b7b([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f5b7b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3707ed,_0x289665[_0x3f5b7b([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f5b7b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3707ed,_0x289665[_0x3f5b7b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3f5b7b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2a72ee(_0x9b0da0){const _0x308ecb=_0x4800cb();_0x289665[_0x308ecb]=_0x3f5b7b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x9b0da0,_0x9b0da0!=_0x3f5b7b([0x56,0x61,0x6c,0x69,0x64])&&_0x488907();}function _0x4800cb(){const _0x5d9585=window[_0x3f5b7b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3f5b7b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3f5b7b([0x6e,0x6f,0x77])]())[_0x3f5b7b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3f5b7b([0x2e]),'');let _0x2ade90=_0x3f5b7b([0x68]);for(let _0x1122f7=0x0;_0x1122f7<_0x5d9585[_0x3f5b7b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1122f7+=0x2){let _0x3aa00a=window[_0x3f5b7b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d9585[_0x3f5b7b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1122f7,_0x1122f7+0x2));_0x3aa00a>=_0xad245b[_0x3f5b7b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3aa00a-=_0xad245b[_0x3f5b7b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2ade90+=_0xad245b[_0x3aa00a];}return _0x2ade90;}function _0x239702(){const _0x37c460=_0x5a1cf6[_0x3f5b7b([0x73,0x70,0x6c,0x69,0x74])](_0x3f5b7b([0x2e]));if(0x3!=_0x37c460[_0x3f5b7b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x518604(_0x37c460[0x1]);function _0x518604(_0x326fb9){const _0xc4c612=_0x10b81d(_0x326fb9);return _0xc4c612&&_0x226fd5()?_0xc4c612:null;function _0x226fd5(){const _0x4d8be6=_0xc4c612[_0x3f5b7b([0x6a,0x74,0x69])],_0x474550=window[_0x3f5b7b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d8be6[_0x3f5b7b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d8be6[_0x3f5b7b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4758dd={..._0xc4c612,[_0x3f5b7b([0x6a,0x74,0x69])]:_0x4d8be6[_0x3f5b7b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4d8be6[_0x3f5b7b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4758dd[_0x3f5b7b([0x76,0x63])],_0x24bc06(_0x4758dd)==_0x474550;}}}async function _0x1c4b25(){let _0x293d08=!0x0;try{const _0x3957a0=_0x5a1cf6[_0x3f5b7b([0x73,0x70,0x6c,0x69,0x74])](_0x3f5b7b([0x2e])),[_0x26e68e,_0x367631,_0x78222a]=_0x3957a0;return _0x3f251b(_0x26e68e),await _0x53f776(_0x26e68e,_0x367631,_0x78222a),_0x293d08;}catch{return!0x1;}function _0x3f251b(_0x17e4b6){const _0x259665=_0x10b81d(_0x17e4b6);_0x259665&&_0x259665[_0x3f5b7b([0x61,0x6c,0x67])]==_0x3f5b7b([0x45,0x53,0x32,0x35,0x36])||(_0x293d08=!0x1);}async function _0x53f776(_0x22048d,_0x68081d,_0x32705b){const _0x3976b4=window[_0x3f5b7b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3f5b7b([0x66,0x72,0x6f,0x6d])](_0x174761(_0x32705b),_0x5b57ad=>_0x5b57ad[_0x3f5b7b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3cb98d=new window[(_0x3f5b7b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3f5b7b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x22048d+_0x3f5b7b([0x2e])+_0x68081d),_0x3682ca=window[_0x3f5b7b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3f5b7b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3682ca)return;const _0x252726=await _0x3682ca[_0x3f5b7b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3f5b7b([0x6a,0x77,0x6b]),_0x453a09,{[_0x3f5b7b([0x6e,0x61,0x6d,0x65])]:_0x3f5b7b([0x45,0x43,0x44,0x53,0x41]),[_0x3f5b7b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3f5b7b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3f5b7b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3682ca[_0x3f5b7b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3f5b7b([0x6e,0x61,0x6d,0x65])]:_0x3f5b7b([0x45,0x43,0x44,0x53,0x41]),[_0x3f5b7b([0x68,0x61,0x73,0x68])]:{[_0x3f5b7b([0x6e,0x61,0x6d,0x65])]:_0x3f5b7b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x252726,_0x3976b4,_0x3cb98d)||(_0x293d08=!0x1);}}function _0x10b81d(_0x4d1e64){return _0x4d1e64[_0x3f5b7b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3f5b7b([0x65,0x79]))?JSON[_0x3f5b7b([0x70,0x61,0x72,0x73,0x65])](_0x174761(_0x4d1e64)):null;}function _0x174761(_0x1f4412){return window[_0x3f5b7b([0x61,0x74,0x6f,0x62])](_0x1f4412[_0x3f5b7b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3f5b7b([0x2b]))[_0x3f5b7b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3f5b7b([0x2f])));}function _0x24bc06(_0x3c269b){let _0x3e8d19=0x1505;function _0x4c049a(_0x2b6f20){for(let _0x2e9198=0x0;_0x2e9198<_0x2b6f20[_0x3f5b7b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e9198++){const _0x22275d=_0x2b6f20[_0x3f5b7b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2e9198);_0x3e8d19=(_0x3e8d19<<0x5)+_0x3e8d19+_0x22275d,_0x3e8d19&=_0x3e8d19;}}function _0xc7b278(_0x3535d9){Array[_0x3f5b7b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3535d9)?_0x3535d9[_0x3f5b7b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xc7b278):_0x3535d9&&typeof _0x3535d9==_0x3f5b7b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3f5b7b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3535d9)[_0x3f5b7b([0x73,0x6f,0x72,0x74])]()[_0x3f5b7b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x20c746,_0x1f6cd1])=>{_0x4c049a(_0x20c746),_0xc7b278(_0x1f6cd1);}):_0x4c049a(window[_0x3f5b7b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3535d9));}return _0xc7b278(_0x3c269b),_0x3e8d19>>>0x0;}function _0xb74707(_0x58dc6e){return _0x58dc6e[_0x3f5b7b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3f5b7b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3f5b7b([0x30]));}function _0x4dadc9(_0x35e04c){return _0x35e04c[_0x3f5b7b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3f5b7b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3f5b7b([0x6a,0x6f,0x69,0x6e])]('');}function _0x3707ed(){}function _0x3f5b7b(_0x2417b5){return _0x2417b5['map'](_0x52212f=>String['fromCharCode'](_0x52212f))['join']('');}_0x2a72ee(await _0x3a0717());}(this);}['_initSchema'](){const _0x3dadeb=this['editor']['model']['schema'];_0x3dadeb['isRegistered']('imageBlock')&&_0x3dadeb['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3dadeb['isRegistered']('imageInline')&&_0x3dadeb['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xbc9b7d=this['editor'];_0xbc9b7d['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xbc9b7d['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3fd5c8=>_0x3fd5c8['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x38bdb1=_0xbc9b7d['commands']['get']('replaceImageSource');_0x38bdb1&&this['listenTo'](_0x38bdb1,'cleanupImage',(_0x124640,[_0xcb0401,_0x43616f])=>{_0xcb0401['removeAttribute']('uploadcareImageId',_0x43616f);});}['_initConfig'](){const _0x1f15f9=this['editor']['config']['get']('uploadcare.uploader')||{},_0x47a5fd=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3b5d34(_0x35dae1['document'],'uc-config',{..._0x1f15f9,'pubkey':_0x47a5fd,'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']=_0x486a2f=>{if('closeMax'==_0x486a2f)return'#uc-icon-arrow-down';},_0x35dae1['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3b5d34(_0x35dae1['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x35dae1['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x536069=this['editor']['commands']['get']('insertImage');_0x536069&&this['listenTo'](_0x536069,'execute',()=>{const _0x43f398=this['editor']['model']['document']['selection']['getSelectedElement']();_0x43f398&&_0x43f398['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x43f398);});});const _0x4f5309=this['editor']['commands']['get']('uploadcareImageReplace');_0x4f5309&&this['listenTo'](_0x4f5309,'execute',()=>{const _0x2b7103=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2b7103&&_0x2b7103['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2b7103);});});}}class tt extends _0x19f08e{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x539626){super(_0x539626),_0x539626['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x12919e['defineComponents'](_0x12919e),this['_defineLocale']();}['_defineLocale'](){const _0x496725=this['editor']['config']['get']('uploadcare.locale'),_0x40bcdc=this['editor']['locale']['contentLanguage'];_0x496725&&_0x12919e['defineLocale'](_0x40bcdc,_0x496725);}}class ii extends _0x19c1d0{constructor(_0xca9d40){super(_0xca9d40);const t=_0xca9d40['t'],_0x434432=this['bindTemplate'],_0x18c73e=new _0x5374da();_0x18c73e['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':[_0x18c73e,{'text':_0x434432['to']('imageUploadProgress',_0x16143c=>t('Loading\x20image...')+'\x20('+(_0x16143c||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 _0x19c1d0{constructor(_0x5c270b){super(_0x5c270b);const t=_0x5c270b['t'];this['set']('errorType',null);const _0xf76f22=new _0x101680(_0x5c270b);_0xf76f22['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xf76f22['withText']=!0x0,_0xf76f22['class']='ck-button-action',_0xf76f22['on']('execute',()=>{this['fire']('retry');}),_0xf76f22['bind']('isVisible')['to'](this,'errorType',_0x4079f6=>'NotFound'!==_0x4079f6);const _0x22a606=new _0xfd2dcd();_0x22a606['content']=_0xbb5f00,_0x22a606['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3bfc95=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':[_0x22a606,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3bfc95['to']('errorType',_0xaea584=>t('NotFound'!==_0xaea584?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xf76f22]},{'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 _0x19c1d0{constructor(_0x1ad4ef,_0x3e2de1){super(_0x1ad4ef);const _0x54ded7=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3e2de1,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x54ded7['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xc7f17c,_0x2c39a6,_0x10ca3c){super(_0xc7f17c),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xc7f17c),this['_errorView']=new ti(_0xc7f17c),this['_editingView']=new ei(_0xc7f17c,_0x10ca3c),this['_focusableView']=new _0x19c1d0(_0xc7f17c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2c39a6),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'],_0x477271=>{this['_addUploadcareImageEditorListeners'](_0x477271);});}),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'](_0x708f42,_0x5add2d){const _0x2ed2ed='uc-cloud-image-editor',_0x4448e3=_0x708f42['querySelector'](_0x2ed2ed);if(_0x4448e3)return _0x5add2d(_0x4448e3);const _0x4ba8c0=new MutationObserver(_0x29917f=>{const _0x21b865=_0x29917f['filter'](_0x456d15=>_0x456d15['target']===_0x708f42&&_0x456d15['addedNodes']['length']>0x0&&_0x456d15['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2ed2ed);_0x21b865['length']&&(_0x4ba8c0['disconnect'](),_0x5add2d(_0x21b865[0x0]['addedNodes'][0x0]));});_0x4ba8c0['observe'](_0x708f42,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x168137){_0x168137['addEventListener']('apply',_0x555876=>{this['fire']('apply',{'imageSrc':_0x555876['detail']['cdnUrl']});}),_0x168137['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x758243(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5c98d2,_0x5cacf6,_0x159791){super(),this['_editor']=_0x5c98d2,this['_dialog']=_0x5cacf6,this['_imageElement']=_0x159791,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 _0x5cbfe7=this['_imageElement'],_0x26fa6f=_0x5cbfe7['getAttribute']('uploadcareImageId'),_0x3192f1=_0x5cbfe7['getAttribute']('src');if(_0x26fa6f)await this['_loadImageInfo'](_0x26fa6f,_0x3192f1);else{if(this['_imageCache']['has'](_0x3192f1)){const _0xeb6295=this['_imageCache']['get'](_0x3192f1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xeb6295['url'],this['imageDimension']=_0xeb6295['dimension'],this['imageId']=_0xeb6295['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x7a753}=this['_editor'],t=_0x7a753['t'],_0x721384=new X(_0x7a753,this['imageStatus'],this['_attributes']);_0x721384['bind']('status')['to'](this,'imageStatus'),_0x721384['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x721384['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x721384['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x721384,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x504244,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x721384,'position':_0x2a627d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x721384['focus']();},'onHide':()=>{_0x721384['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x33c4a3=>!A(_0x33c4a3,_0x721384['element'])}});}['_loadImageInfo'](_0x25bc10,_0x1b5504){return j['getInfo'](_0x25bc10,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5725ae=>{const {width:_0x533141,height:_0x36bb10}=_0x5725ae['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b5504,this['imageDimension']={'width':_0x533141,'height':_0x36bb10},this['imageId']=_0x25bc10;})['catch'](_0x500b33=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x500b33['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x267bae,_0x14e6ce){return this['_getImageAsFile'](_0x267bae)['then'](_0x5ae879=>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':_0x14e6ce['signal'],'file':_0x5ae879,'onProgress':_0x51d4fb=>{_0x51d4fb&&_0x51d4fb['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x51d4fb['value']));}}))['then'](_0x426fd5=>{const {width:_0x30dc6b,height:_0x4b0257}=_0x426fd5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x426fd5['cdnUrl'],this['imageDimension']={'width':_0x30dc6b,'height':_0x4b0257},this['imageId']=_0x426fd5['uuid'],this['imageUploadProgress']=null;const _0x2a5d78=_0x267bae['getAttribute']('src');this['_imageCache']['set'](_0x2a5d78,{'id':_0x426fd5['uuid'],'url':_0x426fd5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5bfe17=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5bfe17['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2178fe,_0x2b6f9d){_0x2178fe['on']('apply',(_0x262f32,_0x8c0a99)=>{this['_replaceImage'](_0x2b6f9d,_0x8c0a99['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2178fe['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2178fe['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3f166e,_0x1599f5,_0x26ac5d){const _0x4b3d=this['_editor'],{width:_0x5c7d19,height:_0x16e9a4}=S(_0x1599f5,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x29f7ad,imageSources:_0x53e525}=C(_0x1599f5,_0x5c7d19);_0x4b3d['model']['change'](_0x368260=>{if('$graveyard'===_0x3f166e['root']['rootName']){_0x4b3d['execute']('insertImage',{'imageType':_0x3f166e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3f166e['getAttributes']()),'uploadcareImageId':_0x26ac5d,'src':_0x29f7ad,'sources':_0x53e525,'width':_0x5c7d19,'height':_0x16e9a4}});const _0x197f2a=_0x3f166e['getChildren']();_0x3f166e=_0x4b3d['model']['document']['selection']['getSelectedElement']();for(const _0x4d35fe of _0x197f2a)_0x368260['append'](_0x368260['cloneElement'](_0x4d35fe),_0x3f166e);}else _0x368260['setSelection'](_0x3f166e,'on'),_0x4b3d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3f166e['getAttributes']()),'uploadcareImageId':_0x26ac5d,'src':_0x29f7ad,'sources':_0x53e525,'width':_0x5c7d19,'height':_0x16e9a4},_0x3f166e);_0x368260['setSelection'](_0x3f166e,'on');});}async['_getImageAsFile'](_0x2eb721){const _0x1fffba=_0x35dae1['window'],_0x115e46=_0x35dae1['document']['location']['href'],_0x21dd70=new _0x1fffba['URL'](_0x2eb721['getAttribute']('src'),_0x115e46);if('data:'===_0x21dd70['protocol']){const _0x20f5b7=_0x21dd70['href']['split'](','),_0x26eb6d=_0x20f5b7[0x0]['match'](/:(.*?);/)[0x1],_0x3b7089=_0x26eb6d['split']('/')[0x1],_0xc87edd=_0x1fffba['atob'](_0x20f5b7[_0x20f5b7['length']-0x1]);let _0x1c359b=_0xc87edd['length'];const _0x280201=new _0x1fffba['Uint8Array'](_0x1c359b);for(;_0x1c359b--;)_0x280201[_0x1c359b]=_0xc87edd['charCodeAt'](_0x1c359b);return new _0x1fffba['File']([_0x280201],'image.'+_0x3b7089,{'type':_0x26eb6d});}const _0x1e527f=_0x21dd70['href']['split']('/'),_0x152c9f=_0x1e527f[_0x1e527f['length']-0x1],_0x520693=_0x152c9f['split']('.')[0x1];return _0x1fffba['fetch'](_0x21dd70['href'])['then'](_0x2bd69c=>_0x2bd69c['clone']()['blob']())['then'](_0x1934b5=>new _0x1fffba['File']([_0x1934b5],_0x152c9f,{'type':'image/'+_0x520693}));}}class O extends _0x4d313d{['imageEditController'];static get['requires'](){return[_0x23808a];}['_isEditable'];constructor(_0x4fa11e){super(_0x4fa11e),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x246f7c){const _0x25be05=G(_0x246f7c);return _0x5cc686=>!(!_0x5cc686||!_0x5cc686['is']('element','imageBlock')&&!_0x5cc686['is']('element','imageInline'))&&(!!_0x5cc686['hasAttribute']('uploadcareImageId')||!!_0x5cc686['hasAttribute']('src')&&_0x25be05(_0x5cc686['getAttribute']('src')));}(_0x4fa11e['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3d91f5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3d91f5);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x50bbb9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x50bbb9&&(_0x50bbb9['is']('element','imageBlock')||_0x50bbb9['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x23808a),_0x50bbb9),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4d313d{['refresh'](){const _0x26b902=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x26b902&&(_0x26b902['is']('element','imageBlock')||_0x26b902['is']('element','imageInline')));}['execute'](_0x12e682){const _0x2725de=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x27a217=>{_0x27a217['setAttributes'](_0x12e682,_0x2725de),_0x27a217['removeAttribute']('srcset',_0x2725de),_0x27a217['removeAttribute']('sizes',_0x2725de);});}}class m extends _0x19f08e{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2faf7d,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xab0253}=this;_0xab0253['commands']['add']('uploadcareImageEdit',new O(_0xab0253)),_0xab0253['commands']['add']('uploadcareImageReplace',new R(_0xab0253));}}class g extends _0x19f08e{['_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 _0x5331a0=this['editor'];_0x5331a0['ui']['componentFactory']['add']('uploadcareImageEdit',_0x462c25=>{const _0x4e7986=_0x5331a0['commands']['get']('uploadcareImageEdit'),_0x178bbf=new _0x101680(_0x462c25),t=_0x462c25['t'];return _0x178bbf['set']({'icon':_0x504244,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x178bbf['bind']('isEnabled')['to'](_0x4e7986),_0x178bbf['bind']('isOn')['to'](_0x4e7986,'isActive'),this['listenTo'](_0x178bbf,'execute',()=>{_0x5331a0['execute']('uploadcareImageEdit'),_0x5331a0['editing']['view']['focus']();}),_0x178bbf;}),this['_initConfig']();}['_initConfig'](){const _0x2dfbbe=_0x3b5d34(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2dfbbe),this['listenTo'](this['editor'],'destroy',()=>{_0x2dfbbe['remove']();});}}class et extends _0x19f08e{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 _0x53b6f9,Command as _0x4e6bbf}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3ef75b,IconGooglePhotos as _0xfccbf4,IconGoogleDrive as _0x4b5db9,IconFacebook as _0x15dfe8,IconDropbox as _0x3de0ea,IconUploadcareLink as _0x275190,IconUploadcareImageUpload as _0x44cbc6,IconError as _0x2dd766,IconUploadcareImageEdit as _0x334de5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x253b04,MenuBarMenuListItemButtonView as _0x1ac1e0,View as _0x5e6cee,FocusCycler as _0x5f3dbc,Dialog as _0x2349a4,DialogViewPosition as _0x489602,SpinnerView as _0x3248f9,IconView as _0x3ec9fb,Notification as _0x56d881}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x24c462,DomEmitterMixin as _0x21b3ca,global as _0x29d2f7,getAncestors as _0x74ca30,ObservableMixin as _0x342c1e,uid as _0x32ebb2,createElement as _0x4ccb05}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x25910c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2d96c4,info as _0x31436b}from'@uploadcare/upload-client';import*as _0x58322a from'@uploadcare/file-uploader';var i=function(_0x28603a){return _0x28603a['Local']='local',_0x28603a['URL']='url',_0x28603a['Dropbox']='dropbox',_0x28603a['GDrive']='gdrive',_0x28603a['Facebook']='facebook',_0x28603a['GPhotos']='gphotos',_0x28603a['OneDrive']='onedrive',_0x28603a;}({});function _(_0x116cfc,_0x45659d,_0x493c6a){const t=_0x116cfc['t'],_0x36b1a5=_0x116cfc['t'];switch(_0x45659d){case i['Local']:return{'text':_0x36b1a5('Insert'===_0x493c6a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x36b1a5('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x493c6a?_0x36b1a5('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x36b1a5('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x493c6a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x493c6a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x493c6a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x493c6a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x493c6a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x45659d;}}class e extends _0x53b6f9{['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 _0x343acb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2cbcef;for(const _0x102a5f in _0x343acb){const _0x3039a9=_0x102a5f,_0x30612f=_0x343acb[_0x3039a9];if('uploadcareLicenseKeyValid'==_0x30612f||'uploadcareLicenseKeyInvalid'==_0x30612f||'uploadcareLicenseKeyExpired'==_0x30612f||'uploadcareLicenseKeyDomainLimit'==_0x30612f||'uploadcareLicenseKeyNotAllowed'==_0x30612f||'uploadcareLicenseKeyEvaluationLimit'==_0x30612f||'uploadcareLicenseKeyTrialLimit'==_0x30612f||'uploadcareLicenseKeyUsageLimit'==_0x30612f){delete _0x343acb[_0x3039a9],_0x2cbcef=_0x30612f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2cbcef&&_0x343acb['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2cbcef&&_0x343acb['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2cbcef&&_0x343acb['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2cbcef&&_0x343acb['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2cbcef&&_0x343acb['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2cbcef&&_0x343acb['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2cbcef&&_0x343acb['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x49fa78}=this,_0x47e7d7=_0x49fa78['commands']['get']('uploadcare');if(!_0x47e7d7)return;const _0x1c4bc1=this['_normalizeConfigSourceList'](_0x49fa78['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x38133e,_0x28e157)=>{const _0x262dc5=this['_getIntegrationKey'](_0x28e157['type']);return _0x38133e[_0x262dc5]||(_0x38133e[_0x262dc5]=[]),_0x38133e[_0x262dc5]['push'](_0x28e157),_0x38133e;},{});_0x49fa78['plugins']['has']('ImageInsertUI')&&_0x49fa78['commands']['get']('uploadcare')&&Object['entries'](_0x1c4bc1)['forEach'](([_0x12e7a9,_0x17a569])=>{_0x49fa78['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x12e7a9,'observable':()=>_0x47e7d7,'buttonViewCreator':()=>this['_createToolbarButton'](_0x17a569),'formViewCreator':()=>this['_createDropdownButtons'](_0x17a569),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x17a569),'override':'assetManager'!==_0x12e7a9});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x28b7bf){const {locale:_0x178223}=this['editor'];return _0x28b7bf['map'](_0x4cd1a1=>{const _0x340c13=_(_0x178223,_0x4cd1a1,'Insert');switch(_0x4cd1a1){case i['Local']:return{'icon':_0x44cbc6,'type':i['Local'],..._0x340c13};case i['URL']:return{'icon':_0x275190,'type':i['URL'],..._0x340c13};case i['Dropbox']:return{'icon':_0x3de0ea,'type':i['Dropbox'],..._0x340c13};case i['Facebook']:return{'icon':_0x15dfe8,'type':i['Facebook'],..._0x340c13};case i['GDrive']:return{'icon':_0x4b5db9,'type':i['GDrive'],..._0x340c13};case i['GPhotos']:return{'icon':_0xfccbf4,'type':i['GPhotos'],..._0x340c13};case i['OneDrive']:return{'icon':_0x3ef75b,'type':i['OneDrive'],..._0x340c13};}});}['_getIntegrationKey'](_0x395727){switch(_0x395727){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1659da,_0x2e00a7){const _0x23342d=this['editor'],_0x57984=new _0x1659da(_0x23342d['locale']),_0x370282=_0x23342d['commands']['get']('uploadcare');return _0x57984['bind']('isEnabled')['to'](_0x370282),_0x57984['on']('execute',()=>{_0x370282['execute'](_0x2e00a7);}),_0x57984;}['_createToolbarButton'](_0x1ab3bf){const {locale:_0x3456c6}=this['editor'],_0x15bd56=this['editor']['plugins']['get']('ImageInsertUI'),_0x16a174=_0x1ab3bf[0x0],_0x1f68d7=this['_createButton'](_0x253b04,_0x16a174['type']);return _0x1f68d7['icon']=_0x16a174['icon'],_0x1f68d7['bind']('label')['to'](_0x15bd56,'isImageSelected',_0x5e61b6=>_(_0x3456c6,_0x16a174['type'],_0x5e61b6?'Replace':'Insert')['text']),_0x1f68d7['tooltip']=!0x0,_0x1f68d7;}['_createDropdownButtons'](_0xf48f78){const {locale:_0x581687}=this['editor'],_0x3be71d=this['editor']['plugins']['get']('ImageInsertUI');return _0xf48f78['map'](_0x2fde6a=>{const _0x551a21=this['_createButton'](_0x253b04,_0x2fde6a['type']);return _0x551a21['withText']=!0x0,_0x551a21['icon']=_0x2fde6a['icon'],_0x551a21['bind']('label')['to'](_0x3be71d,'isImageSelected',_0x20ac65=>_(_0x581687,_0x2fde6a['type'],_0x20ac65?'Replace':'Insert')['text']),_0x551a21;});}['_createMenuBarButtons'](_0x3561e7){return _0x3561e7['map'](_0x22c47a=>{const _0x3a3c17=this['_createButton'](_0x1ac1e0,_0x22c47a['type']);return _0x3a3c17['icon']=_0x22c47a['icon'],_0x3a3c17['label']=_0x22c47a['shortText'],_0x3a3c17;});}}class F extends _0x5e6cee{['focusTracker'];['focusCycler'];constructor(_0x57e158){super(_0x57e158),this['focusTracker']=new _0x24c462(),this['focusCycler']=new _0x5f3dbc({'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(_0x3a1258,_0x18bbf9){super(_0x3a1258),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-'+_0x18bbf9}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x4fda34,_0x56d922){const _0x555178=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x479d1a=>_0x479d1a<=_0x56d922)['map'](_0x50e793=>_0x4fda34['replace'](/\/$/,'')+'/-/resize/'+_0x50e793+'x/\x20'+_0x50e793+'w');return{'imageFallbackUrl':_0x4fda34,'imageSources':[{'srcset':_0x555178['join'](',\x20'),'sizes':'(max-width:\x20'+_0x56d922+'px)\x20100vw,\x20'+_0x56d922+'px','type':'image/webp'}]};}function S(_0x164fad,_0x3011e2,_0x137a54){const _0x4bd682=_0x164fad['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4bd682?parseInt(_0x4bd682[0x1],0xa):_0x3011e2,'height':_0x4bd682?parseInt(_0x4bd682[0x2],0xa):_0x137a54};}function p(_0x36167b,_0x4fefa8){const _0xf2467b=new(_0x21b3ca())(),_0x32799d=_0x36167b['plugins']['get']('ImageUtils'),_0x48d330=_0x36167b['editing']['mapper']['toViewElement'](_0x4fefa8),_0x31cc84=_0x32799d['findViewImgElement'](_0x48d330),_0x35655b=_0x36167b['editing']['view']['domConverter']['viewToDom'](_0x31cc84),_0x2ae4cc=_0x4fefa8['getAttribute']('width'),_0x3eec2b=_0x4fefa8['getAttribute']('height'),_0xf85285='image-processing';_0x36167b['editing']['view']['change'](_0x3aa939=>{_0x3aa939['addClass'](_0xf85285,_0x48d330),_0x3aa939['setStyle']('aspect-ratio',_0x2ae4cc+'/'+_0x3eec2b,_0x31cc84);}),_0xf2467b['listenTo'](_0x35655b,'load',()=>{_0xf2467b['stopListening'](_0x35655b,'load'),_0x36167b['editing']['view']['change'](_0x1eb55a=>{_0x1eb55a['removeClass'](_0xf85285,_0x48d330),_0x1eb55a['removeStyle']('aspect-ratio',_0x31cc84);});});}function G(_0x2ecc58){if(Array['isArray'](_0x2ecc58)){const _0x451dca=_0x2ecc58['map'](G);return _0xc3d2dc=>_0x451dca['some'](_0x394576=>_0x394576(_0xc3d2dc));}if('origin'==_0x2ecc58){const _0x22d5e0=_0x29d2f7['window']['location']['origin'];return _0x45d490=>new URL(_0x45d490,_0x29d2f7['document']['baseURI'])['origin']==_0x22d5e0;}return'function'==typeof _0x2ecc58?_0x2ecc58:_0x2ecc58 instanceof RegExp?_0x508517=>!(!_0x508517['match'](_0x2ecc58)&&!_0x508517['replace'](/^https?:\/\//,'')['match'](_0x2ecc58)):()=>!0x1;}function A(_0x3e5f0f,_0x50ffa3){return _0x74ca30(_0x3e5f0f['target'])['includes'](_0x50ffa3);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x342c1e(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x124649,_0x31390c,_0x10f3a4){super(),this['_editor']=_0x124649,this['_editing']=_0x31390c,this['_dialog']=_0x124649['plugins']['get'](_0x2349a4),this['_api']=_0x31390c['ctxElement']['getAPI'](),this['_type']=_0x10f3a4,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:_0x108e8a,model:_0x52931a}=this['_editor'],_0x422ab0=_0x52931a['document']['selection']['getSelectedElement'](),_0x57a80b=_0x422ab0&&(_0x422ab0['is']('element','imageBlock')||_0x422ab0['is']('element','imageInline'));this['_formView']=new x(_0x108e8a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x44cbc6,'title':_(_0x108e8a,this['_type'],_0x57a80b?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x489602['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x65d8ab=>!A(_0x65d8ab,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x256e70}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x20954d=>{const _0x5ec981=_0x256e70['length'];for(const _0x2872b8 of _0x256e70){const _0x3ac161=_0x2872b8===_0x256e70[_0x5ec981-0x1],{cdnUrl:_0x30cec6,fileInfo:_0x40646b}=_0x2872b8;if(!_0x30cec6||!_0x40646b)continue;const {width:_0x222108,height:_0x226ede}=_0x40646b['imageInfo'],_0x489a8=S(_0x30cec6,_0x222108,_0x226ede),_0x25a8d6=C(_0x30cec6,_0x489a8['width']),_0x20f488={'id':_0x40646b['uuid'],'type':'image','attributes':{'imageDimension':_0x489a8,..._0x25a8d6}};this['_insertAsset'](_0x20f488,_0x3ac161,_0x20954d);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x14441f=>{'idle'===_0x14441f['detail']['status']&&!_0x14441f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x9902ac,_0x4f5e88,_0x2d577b){const _0x688244=this['_editor']['model']['document']['selection'],_0x186476=_0x688244['getSelectedElement'](),_0x205571=!(!_0x186476||!_0x186476['is']('element','imageInline'));_0x2d577b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x9902ac,_0x205571),_0x4f5e88||_0x2d577b['setSelection'](_0x688244['getLastPosition']());}['_insertImage'](_0xdf275e,_0x25563b){const _0xa31cf1=this['_editor'],{imageDimension:_0x25270e,imageFallbackUrl:_0x5adb55,imageSources:_0xd5a83b}=_0xdf275e['attributes'];_0xa31cf1['execute']('insertImage',{'imageType':_0x25563b?'imageInline':null,'source':{'uploadcareImageId':_0xdf275e['id'],'src':_0x5adb55,'sources':_0xd5a83b,..._0x25270e}});}}class w extends _0x4e6bbf{['_editing'];['_controller']=null;static get['requires'](){return[_0x2349a4,o];}constructor(_0x3ac1bf){super(_0x3ac1bf),this['_editing']=_0x3ac1bf['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x8872b0){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x8872b0);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x189b88,..._0x1b3daf}){return _0x2d96c4(_0x189b88,_0x1b3daf);}static['getInfo'](_0x2a39fd,_0x36fb21){return _0x31436b(_0x2a39fd,_0x36fb21);}}class f extends _0x53b6f9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x25910c,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x506187=this['editor'];if(!!!_0x506187['config']['get']('uploadcare'))return;_0x506187['plugins']['get'](_0x25910c)['createUploadAdapter']=_0x55311a=>new k(_0x55311a,_0x506187),_0x506187['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5e754f,{imageElement:_0x2880ec,data:_0x2d8f17})=>{_0x506187['model']['change'](_0x596abe=>{_0x596abe['setAttribute']('uploadcareImageId',_0x2d8f17['uploadcareImageId'],_0x2880ec);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xb36552,_0x32d4c5){this['loader']=_0xb36552,this['editor']=_0x32d4c5,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x41bda1=await this['loader']['file'];return j['upload']({'file':_0x41bda1,'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':_0x4f7491=>{_0x4f7491&&_0x4f7491['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4f7491['value']);}})['then'](async _0x9e9ea9=>{const {imageFallbackUrl:_0x470b7c,imageSources:_0x184f5c}=C(_0x9e9ea9['cdnUrl'],_0x9e9ea9['imageInfo']['width']);return{'uploadcareImageId':_0x9e9ea9['uuid'],'default':_0x470b7c,'sources':_0x184f5c};})['catch'](()=>{const _0xa21eb4=t('Cannot\x20upload\x20file:')+('\x20'+_0x41bda1['name']+'.');return Promise['reject'](_0xa21eb4);});}['abort'](){this['controller']['abort']();}}class o extends _0x53b6f9{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2349a4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x6fbffc){super(_0x6fbffc),this['ucContextId']=_0x32ebb2();}['init'](){const _0x8738d4=this['editor'];_0x8738d4['commands']['add']('uploadcare',new w(_0x8738d4));}['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 _0x4b4226=_0x29d2f7['document']['querySelector']('input[uploadcare-file-input]');_0x4b4226&&_0x4b4226['remove']();}),async function(_0x3b0c3b){const _0x164df4=_0x2ec77d([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]),_0x30f1f1=0x535f8c3a,_0x5245c3=0x5358f4da^_0x30f1f1,_0x3ffd19=window[_0x2ec77d([0x44,0x61,0x74,0x65])][_0x2ec77d([0x6e,0x6f,0x77])](),_0x27b62e=_0x3b0c3b[_0x2ec77d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2fdde9=new window[(_0x2ec77d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x487cba=>{_0x27b62e[_0x2ec77d([0x6f,0x6e,0x63,0x65])](_0x2ec77d([0x72,0x65,0x61,0x64,0x79]),_0x487cba);}),_0x2c02be={[_0x2ec77d([0x6b,0x74,0x79])]:_0x2ec77d([0x45,0x43]),[_0x2ec77d([0x75,0x73,0x65])]:_0x2ec77d([0x73,0x69,0x67]),[_0x2ec77d([0x63,0x72,0x76])]:_0x2ec77d([0x50,0x2d,0x32,0x35,0x36]),[_0x2ec77d([0x78])]:_0x2ec77d([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]),[_0x2ec77d([0x79])]:_0x2ec77d([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]),[_0x2ec77d([0x61,0x6c,0x67])]:_0x2ec77d([0x45,0x53,0x32,0x35,0x36])},_0x1e2047=_0x27b62e[_0x2ec77d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2ec77d([0x67,0x65,0x74])](_0x2ec77d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2fb2e7(){let _0x34ade8,_0x2e45f3=null,_0x7d465b=null;try{if(_0x1e2047==_0x2ec77d([0x47,0x50,0x4c]))return _0x2ec77d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x34ade8=_0x2183aa(),!_0x34ade8)return _0x2ec77d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x34ade8[_0x2ec77d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x7d465b=_0x2f3d7b(_0x34ade8[_0x2ec77d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x34ade8[_0x2ec77d([0x6a,0x74,0x69])])),await _0x37b39f()?_0x1758a5()?_0x41f5e4()?_0x2ec77d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3ae47b()?(_0x34ade8[_0x2ec77d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ec77d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2e45f3=_0x5c4177(_0x2ec77d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x34ade8[_0x2ec77d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ec77d([0x74,0x72,0x69,0x61,0x6c])&&(_0x2e45f3=_0x5c4177(_0x2ec77d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4bfbfb()):_0x2ec77d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2ec77d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2ec77d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2ec77d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x41f5e4(){const _0x4f1a31=[_0x2ec77d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2ec77d([0x74,0x72,0x69,0x61,0x6c])][_0x2ec77d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34ade8[_0x2ec77d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ffd19/0x3e8:0xe10*_0x5245c3;return _0x34ade8[_0x2ec77d([0x65,0x78,0x70])]<_0x4f1a31;}function _0x1758a5(){const _0x24e6fe=_0x34ade8[_0x2ec77d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x24e6fe&&(!!_0x24e6fe[_0x2ec77d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ec77d([0x2a]))||!!_0x24e6fe[_0x2ec77d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ec77d([0x55,0x50,0x4c,0x43])));}function _0x3ae47b(){const _0x4b4860=_0x34ade8[_0x2ec77d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4b4860||0x0==_0x4b4860[_0x2ec77d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a2b64}=new URL(window[_0x2ec77d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4b4860[_0x2ec77d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a2b64))return!0x0;const _0x24ffef=_0x1a2b64[_0x2ec77d([0x73,0x70,0x6c,0x69,0x74])](_0x2ec77d([0x2e]));return _0x4b4860[_0x2ec77d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24d5c5=>_0x24d5c5[_0x2ec77d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ec77d([0x2a])))[_0x2ec77d([0x6d,0x61,0x70])](_0x2daf31=>_0x2daf31[_0x2ec77d([0x73,0x70,0x6c,0x69,0x74])](_0x2ec77d([0x2e])))[_0x2ec77d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ad210=>_0x3ad210[_0x2ec77d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x24ffef[_0x2ec77d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ec77d([0x6d,0x61,0x70])](_0x394cdf=>Array(_0x24ffef[_0x2ec77d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x394cdf[_0x2ec77d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ec77d([0x66,0x69,0x6c,0x6c])](_0x394cdf[0x0]===_0x2ec77d([0x2a])?_0x2ec77d([0x2a]):'')[_0x2ec77d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x394cdf))[_0x2ec77d([0x73,0x6f,0x6d,0x65])](_0x502a09=>_0x24ffef[_0x2ec77d([0x65,0x76,0x65,0x72,0x79])]((_0x29d124,_0x198d07)=>_0x502a09[_0x198d07]===_0x29d124||_0x502a09[_0x198d07]===_0x2ec77d([0x2a])));}function _0x4bfbfb(){return _0x2e45f3&&_0x7d465b?new window[(_0x2ec77d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x162813,_0x11f1e1)=>{_0x2e45f3[_0x2ec77d([0x74,0x68,0x65,0x6e])](_0x162813,_0x11f1e1),_0x7d465b[_0x2ec77d([0x74,0x68,0x65,0x6e])](_0x5343b4=>{_0x5343b4!=_0x2ec77d([0x56,0x61,0x6c,0x69,0x64])&&_0x162813(_0x5343b4);},_0x11f1e1);}):_0x2e45f3||_0x7d465b||_0x2ec77d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f3d7b(_0x2396b0,_0x5ef0e1){return new window[(_0x2ec77d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e904c=>{if(_0x2d831a())return _0x5e904c(_0x2ec77d([0x56,0x61,0x6c,0x69,0x64]));_0x160237(),_0x27b62e[_0x2ec77d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2ec77d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5d9a7d=!0x1;const _0x41be95=_0x32ebb2();function _0x1c3adc(_0x29adf4){return!!_0x29adf4&&(typeof _0x29adf4===_0x2ec77d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x29adf4===_0x2ec77d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x29adf4[_0x2ec77d([0x74,0x68,0x65,0x6e])]===_0x2ec77d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x29adf4[_0x2ec77d([0x63,0x61,0x74,0x63,0x68])]===_0x2ec77d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x59d8eb(_0x3b94d6){_0x27423f(_0x3b94d6)[_0x2ec77d([0x74,0x68,0x65,0x6e])](_0x5599fa=>{if(!_0x5599fa||_0x5599fa[_0x2ec77d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2ec77d([0x6f,0x6b]))return _0x2ec77d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1a9edc(_0x140542(_0x41be95+_0x5ef0e1))!=_0x5599fa[_0x2ec77d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2ec77d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2ec77d([0x56,0x61,0x6c,0x69,0x64]);})[_0x2ec77d([0x74,0x68,0x65,0x6e])](_0x23174e=>(_0x1b4736(),_0x23174e),()=>{const _0x16fa1c=_0x41b9e5();return null==_0x16fa1c?(_0x1b4736(),_0x2ec77d([0x56,0x61,0x6c,0x69,0x64])):_0x2ec77d(_0x3ffd19-_0x16fa1c>(0x7753083a^_0x30f1f1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2ec77d([0x74,0x68,0x65,0x6e])](_0x5e904c)[_0x2ec77d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5e904c(_0x2ec77d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b647b=0x536962ba^_0x30f1f1;function _0x1b4736(){const _0x1a834d=_0x2ec77d([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a9edc(_0x140542(_0x2396b0)),_0x2fdcd0=_0xeea380(_0x1a9edc(window[_0x2ec77d([0x4d,0x61,0x74,0x68])][_0x2ec77d([0x63,0x65,0x69,0x6c])](_0x3ffd19/_0x5b647b)));window[_0x2ec77d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ec77d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a834d,_0x2fdcd0);}function _0x41b9e5(){const _0x216fc4=_0x2ec77d([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a9edc(_0x140542(_0x2396b0)),_0x305b5c=window[_0x2ec77d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ec77d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x216fc4);return _0x305b5c?window[_0x2ec77d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xeea380(_0x305b5c),0x10)*_0x5b647b:null;}function _0x27423f(_0x5ae5c7){return new window[(_0x2ec77d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1cc165,_0x4a8054)=>{_0x5ae5c7[_0x2ec77d([0x74,0x68,0x65,0x6e])](_0x1cc165,_0x4a8054),window[_0x2ec77d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4a8054,0x535e58fa^_0x30f1f1);});}}_0x27b62e[_0x2ec77d([0x6f,0x6e])](_0x2ec77d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f7c77,_0x4836e2)=>{if(_0x4836e2[0x0]!=_0x2396b0)return _0x5e904c(_0x2ec77d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4836e2[0x1]={..._0x4836e2[0x1],[_0x2ec77d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x41be95};},{[_0x2ec77d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ec77d([0x68,0x69,0x67,0x68])}),_0x27b62e[_0x2ec77d([0x6f,0x6e])](_0x2ec77d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x52e847=>{_0x1c3adc(_0x52e847[_0x2ec77d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5d9a7d=!0x0,_0x59d8eb(_0x52e847[_0x2ec77d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2ec77d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ec77d([0x6c,0x6f,0x77])}),_0x2fdde9[_0x2ec77d([0x74,0x68,0x65,0x6e])](()=>{_0x5d9a7d||_0x5e904c(_0x2ec77d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2d831a(){return _0x27b62e[_0x2ec77d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ec77d([0x76,0x69,0x65,0x77])][_0x2ec77d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2ec77d([0x61,0x75,0x74,0x6f]);}function _0x160237(){_0x27b62e[_0x2ec77d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ec77d([0x76,0x69,0x65,0x77])][_0x2ec77d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2ec77d([0x61,0x75,0x74,0x6f]);}}function _0x5c4177(_0xbf36d){const _0x326c3c=[new window[(_0x2ec77d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50dc06=>setTimeout(_0x50dc06,0x5356b2f6^_0x30f1f1)),_0x2fdde9[_0x2ec77d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2ec77d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1211e4=>{let _0xeb0e44=0x0;_0x27b62e[_0x2ec77d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ec77d([0x6f,0x6e])](_0x2ec77d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x212731,_0x5d2d0c)=>{_0x5d2d0c[0x0][_0x2ec77d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xeb0e44++,_0xeb0e44==(0x535f8dc2^_0x30f1f1)&&(_0x1211e4(),_0x212731[_0x2ec77d([0x6f,0x66,0x66])]());});}))];return window[_0x2ec77d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2ec77d([0x72,0x61,0x63,0x65])](_0x326c3c)[_0x2ec77d([0x74,0x68,0x65,0x6e])](()=>_0xbf36d);}async function _0x564de8(){await _0x2fdde9,_0x27b62e[_0x2ec77d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ec77d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x57686b,_0x27b62e[_0x2ec77d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ec77d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x57686b,_0x27b62e[_0x2ec77d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2ec77d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x34549f(_0x1f5079){const _0x3e66a2=_0x339c9a();_0x27b62e[_0x3e66a2]=_0x2ec77d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1f5079,_0x1f5079!=_0x2ec77d([0x56,0x61,0x6c,0x69,0x64])&&_0x564de8();}function _0x339c9a(){const _0x13949e=window[_0x2ec77d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2ec77d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2ec77d([0x6e,0x6f,0x77])]())[_0x2ec77d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2ec77d([0x2e]),'');let _0x312a7d=_0x2ec77d([0x68]);for(let _0x1beaa=0x0;_0x1beaa<_0x13949e[_0x2ec77d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1beaa+=0x2){let _0x15451b=window[_0x2ec77d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13949e[_0x2ec77d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1beaa,_0x1beaa+0x2));_0x15451b>=_0x164df4[_0x2ec77d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x15451b-=_0x164df4[_0x2ec77d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x312a7d+=_0x164df4[_0x15451b];}return _0x312a7d;}function _0x2183aa(){const _0x1a9209=_0x1e2047[_0x2ec77d([0x73,0x70,0x6c,0x69,0x74])](_0x2ec77d([0x2e]));if(0x3!=_0x1a9209[_0x2ec77d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x20a37b(_0x1a9209[0x1]);function _0x20a37b(_0x25838f){const _0x1e5555=_0x44c071(_0x25838f);return _0x1e5555&&_0x363bef()?_0x1e5555:null;function _0x363bef(){const _0x5dc4eb=_0x1e5555[_0x2ec77d([0x6a,0x74,0x69])],_0x5af23e=window[_0x2ec77d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dc4eb[_0x2ec77d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5dc4eb[_0x2ec77d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x364bb3={..._0x1e5555,[_0x2ec77d([0x6a,0x74,0x69])]:_0x5dc4eb[_0x2ec77d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5dc4eb[_0x2ec77d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x364bb3[_0x2ec77d([0x76,0x63])],_0x140542(_0x364bb3)==_0x5af23e;}}}async function _0x37b39f(){let _0x397ecb=!0x0;try{const _0x2e8708=_0x1e2047[_0x2ec77d([0x73,0x70,0x6c,0x69,0x74])](_0x2ec77d([0x2e])),[_0x299e27,_0x402b24,_0x20bb0e]=_0x2e8708;return _0x286bdc(_0x299e27),await _0xdbb45b(_0x299e27,_0x402b24,_0x20bb0e),_0x397ecb;}catch{return!0x1;}function _0x286bdc(_0x5a0221){const _0x343688=_0x44c071(_0x5a0221);_0x343688&&_0x343688[_0x2ec77d([0x61,0x6c,0x67])]==_0x2ec77d([0x45,0x53,0x32,0x35,0x36])||(_0x397ecb=!0x1);}async function _0xdbb45b(_0x54de59,_0x46ac25,_0xa409c3){const _0x1394c2=window[_0x2ec77d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2ec77d([0x66,0x72,0x6f,0x6d])](_0xb93655(_0xa409c3),_0x706466=>_0x706466[_0x2ec77d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2c8bae=new window[(_0x2ec77d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2ec77d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x54de59+_0x2ec77d([0x2e])+_0x46ac25),_0x396945=window[_0x2ec77d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2ec77d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x396945)return;const _0x206a3a=await _0x396945[_0x2ec77d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2ec77d([0x6a,0x77,0x6b]),_0x2c02be,{[_0x2ec77d([0x6e,0x61,0x6d,0x65])]:_0x2ec77d([0x45,0x43,0x44,0x53,0x41]),[_0x2ec77d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2ec77d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2ec77d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x396945[_0x2ec77d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2ec77d([0x6e,0x61,0x6d,0x65])]:_0x2ec77d([0x45,0x43,0x44,0x53,0x41]),[_0x2ec77d([0x68,0x61,0x73,0x68])]:{[_0x2ec77d([0x6e,0x61,0x6d,0x65])]:_0x2ec77d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x206a3a,_0x1394c2,_0x2c8bae)||(_0x397ecb=!0x1);}}function _0x44c071(_0x4aba37){return _0x4aba37[_0x2ec77d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2ec77d([0x65,0x79]))?JSON[_0x2ec77d([0x70,0x61,0x72,0x73,0x65])](_0xb93655(_0x4aba37)):null;}function _0xb93655(_0xa978da){return window[_0x2ec77d([0x61,0x74,0x6f,0x62])](_0xa978da[_0x2ec77d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2ec77d([0x2b]))[_0x2ec77d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2ec77d([0x2f])));}function _0x140542(_0x21c90b){let _0x4925a0=0x1505;function _0x502fd5(_0x3b883b){for(let _0x307a28=0x0;_0x307a28<_0x3b883b[_0x2ec77d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x307a28++){const _0x54cb74=_0x3b883b[_0x2ec77d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x307a28);_0x4925a0=(_0x4925a0<<0x5)+_0x4925a0+_0x54cb74,_0x4925a0&=_0x4925a0;}}function _0x2ccd71(_0x188e35){Array[_0x2ec77d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x188e35)?_0x188e35[_0x2ec77d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ccd71):_0x188e35&&typeof _0x188e35==_0x2ec77d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2ec77d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x188e35)[_0x2ec77d([0x73,0x6f,0x72,0x74])]()[_0x2ec77d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x417943,_0x562db0])=>{_0x502fd5(_0x417943),_0x2ccd71(_0x562db0);}):_0x502fd5(window[_0x2ec77d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x188e35));}return _0x2ccd71(_0x21c90b),_0x4925a0>>>0x0;}function _0x1a9edc(_0x509d41){return _0x509d41[_0x2ec77d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2ec77d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2ec77d([0x30]));}function _0xeea380(_0x534fd4){return _0x534fd4[_0x2ec77d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2ec77d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2ec77d([0x6a,0x6f,0x69,0x6e])]('');}function _0x57686b(){}function _0x2ec77d(_0x3693c5){return _0x3693c5['map'](_0x5e1a8a=>String['fromCharCode'](_0x5e1a8a))['join']('');}_0x34549f(await _0x2fb2e7());}(this);}['_initSchema'](){const _0x333c85=this['editor']['model']['schema'];_0x333c85['isRegistered']('imageBlock')&&_0x333c85['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x333c85['isRegistered']('imageInline')&&_0x333c85['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x43d266=this['editor'];_0x43d266['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x43d266['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3c5afe=>_0x3c5afe['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1b4865=_0x43d266['commands']['get']('replaceImageSource');_0x1b4865&&this['listenTo'](_0x1b4865,'cleanupImage',(_0x4f162e,[_0x5c1e6a,_0x274fc2])=>{_0x5c1e6a['removeAttribute']('uploadcareImageId',_0x274fc2);});}['_initConfig'](){const _0x384434=this['editor']['config']['get']('uploadcare.uploader')||{},_0x593872=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4ccb05(_0x29d2f7['document'],'uc-config',{..._0x384434,'pubkey':_0x593872,'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']=_0x57397f=>{if('closeMax'==_0x57397f)return'#uc-icon-arrow-down';},_0x29d2f7['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4ccb05(_0x29d2f7['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x29d2f7['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4800ac=this['editor']['commands']['get']('insertImage');_0x4800ac&&this['listenTo'](_0x4800ac,'execute',()=>{const _0x1d3291=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1d3291&&_0x1d3291['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1d3291);});});const _0x5b6595=this['editor']['commands']['get']('uploadcareImageReplace');_0x5b6595&&this['listenTo'](_0x5b6595,'execute',()=>{const _0x23cd22=this['editor']['model']['document']['selection']['getSelectedElement']();_0x23cd22&&_0x23cd22['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x23cd22);});});}}class tt extends _0x53b6f9{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x16f9ac){super(_0x16f9ac),_0x16f9ac['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x58322a['defineComponents'](_0x58322a),this['_defineLocale']();}['_defineLocale'](){const _0x51ac03=this['editor']['config']['get']('uploadcare.locale'),_0x456a21=this['editor']['locale']['contentLanguage'];_0x51ac03&&_0x58322a['defineLocale'](_0x456a21,_0x51ac03);}}class ii extends _0x5e6cee{constructor(_0x489b7f){super(_0x489b7f);const t=_0x489b7f['t'],_0x453285=this['bindTemplate'],_0x47cd11=new _0x3248f9();_0x47cd11['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':[_0x47cd11,{'text':_0x453285['to']('imageUploadProgress',_0x5b6ea4=>t('Loading\x20image...')+'\x20('+(_0x5b6ea4||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 _0x5e6cee{constructor(_0x50d840){super(_0x50d840);const t=_0x50d840['t'];this['set']('errorType',null);const _0x1d0aca=new _0x253b04(_0x50d840);_0x1d0aca['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1d0aca['withText']=!0x0,_0x1d0aca['class']='ck-button-action',_0x1d0aca['on']('execute',()=>{this['fire']('retry');}),_0x1d0aca['bind']('isVisible')['to'](this,'errorType',_0xafe5d8=>'NotFound'!==_0xafe5d8);const _0x4a70ed=new _0x3ec9fb();_0x4a70ed['content']=_0x2dd766,_0x4a70ed['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1577ae=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':[_0x4a70ed,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1577ae['to']('errorType',_0x2cf4fb=>t('NotFound'!==_0x2cf4fb?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1d0aca]},{'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 _0x5e6cee{constructor(_0x354b45,_0x10b28c){super(_0x354b45);const _0x54e2c0=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x10b28c,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x54e2c0['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3b14f6,_0x4fec03,_0x28176b){super(_0x3b14f6),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x3b14f6),this['_errorView']=new ti(_0x3b14f6),this['_editingView']=new ei(_0x3b14f6,_0x28176b),this['_focusableView']=new _0x5e6cee(_0x3b14f6),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4fec03),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'],_0x242559=>{this['_addUploadcareImageEditorListeners'](_0x242559);});}),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'](_0x49e2a1,_0x168489){const _0x5d5324='uc-cloud-image-editor',_0x4c46d8=_0x49e2a1['querySelector'](_0x5d5324);if(_0x4c46d8)return _0x168489(_0x4c46d8);const _0x8fa168=new MutationObserver(_0x172d77=>{const _0x5ab932=_0x172d77['filter'](_0x461af1=>_0x461af1['target']===_0x49e2a1&&_0x461af1['addedNodes']['length']>0x0&&_0x461af1['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5d5324);_0x5ab932['length']&&(_0x8fa168['disconnect'](),_0x168489(_0x5ab932[0x0]['addedNodes'][0x0]));});_0x8fa168['observe'](_0x49e2a1,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1a1a18){_0x1a1a18['addEventListener']('apply',_0x8a7ec9=>{this['fire']('apply',{'imageSrc':_0x8a7ec9['detail']['cdnUrl']});}),_0x1a1a18['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x342c1e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3fcf4c,_0x5c02da,_0x4cabd2){super(),this['_editor']=_0x3fcf4c,this['_dialog']=_0x5c02da,this['_imageElement']=_0x4cabd2,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 _0x1b8735=this['_imageElement'],_0x1ff06c=_0x1b8735['getAttribute']('uploadcareImageId'),_0x1869f8=_0x1b8735['getAttribute']('src');if(_0x1ff06c)await this['_loadImageInfo'](_0x1ff06c,_0x1869f8);else{if(this['_imageCache']['has'](_0x1869f8)){const _0x51fd30=this['_imageCache']['get'](_0x1869f8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x51fd30['url'],this['imageDimension']=_0x51fd30['dimension'],this['imageId']=_0x51fd30['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4dab44}=this['_editor'],t=_0x4dab44['t'],_0x54d854=new X(_0x4dab44,this['imageStatus'],this['_attributes']);_0x54d854['bind']('status')['to'](this,'imageStatus'),_0x54d854['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x54d854['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x54d854['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x54d854,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x334de5,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x54d854,'position':_0x489602['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x54d854['focus']();},'onHide':()=>{_0x54d854['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4e6b21=>!A(_0x4e6b21,_0x54d854['element'])}});}['_loadImageInfo'](_0x143e60,_0x9674b9){return j['getInfo'](_0x143e60,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x62e7c1=>{const {width:_0x29f638,height:_0x44a699}=_0x62e7c1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x9674b9,this['imageDimension']={'width':_0x29f638,'height':_0x44a699},this['imageId']=_0x143e60;})['catch'](_0xfe5059=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xfe5059['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x6be610,_0x1c805a){return this['_getImageAsFile'](_0x6be610)['then'](_0x42b5c3=>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':_0x1c805a['signal'],'file':_0x42b5c3,'onProgress':_0x9cd7d4=>{_0x9cd7d4&&_0x9cd7d4['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x9cd7d4['value']));}}))['then'](_0x3a8eba=>{const {width:_0x57a082,height:_0x1f041f}=_0x3a8eba['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3a8eba['cdnUrl'],this['imageDimension']={'width':_0x57a082,'height':_0x1f041f},this['imageId']=_0x3a8eba['uuid'],this['imageUploadProgress']=null;const _0x25416b=_0x6be610['getAttribute']('src');this['_imageCache']['set'](_0x25416b,{'id':_0x3a8eba['uuid'],'url':_0x3a8eba['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x729c76=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x729c76['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2caa0e,_0x10c864){_0x2caa0e['on']('apply',(_0x120ec6,_0x3ff820)=>{this['_replaceImage'](_0x10c864,_0x3ff820['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2caa0e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2caa0e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x57ad00,_0x5b7b90,_0x45a64c){const _0x362a5e=this['_editor'],{width:_0xa8988,height:_0x4f3080}=S(_0x5b7b90,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x29cd61,imageSources:_0x482850}=C(_0x5b7b90,_0xa8988);_0x362a5e['model']['change'](_0x304cd0=>{if('$graveyard'===_0x57ad00['root']['rootName']){_0x362a5e['execute']('insertImage',{'imageType':_0x57ad00['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x57ad00['getAttributes']()),'uploadcareImageId':_0x45a64c,'src':_0x29cd61,'sources':_0x482850,'width':_0xa8988,'height':_0x4f3080}});const _0x326641=_0x57ad00['getChildren']();_0x57ad00=_0x362a5e['model']['document']['selection']['getSelectedElement']();for(const _0x55fe06 of _0x326641)_0x304cd0['append'](_0x304cd0['cloneElement'](_0x55fe06),_0x57ad00);}else _0x304cd0['setSelection'](_0x57ad00,'on'),_0x362a5e['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x57ad00['getAttributes']()),'uploadcareImageId':_0x45a64c,'src':_0x29cd61,'sources':_0x482850,'width':_0xa8988,'height':_0x4f3080},_0x57ad00);_0x304cd0['setSelection'](_0x57ad00,'on');});}async['_getImageAsFile'](_0x12a657){const _0x1640bb=_0x29d2f7['window'],_0x617b65=_0x29d2f7['document']['location']['href'],_0x4edf4d=new _0x1640bb['URL'](_0x12a657['getAttribute']('src'),_0x617b65);if('data:'===_0x4edf4d['protocol']){const _0x4a1597=_0x4edf4d['href']['split'](','),_0x2216aa=_0x4a1597[0x0]['match'](/:(.*?);/)[0x1],_0x2c842d=_0x2216aa['split']('/')[0x1],_0x49c591=_0x1640bb['atob'](_0x4a1597[_0x4a1597['length']-0x1]);let _0x2f2b0d=_0x49c591['length'];const _0x7e4357=new _0x1640bb['Uint8Array'](_0x2f2b0d);for(;_0x2f2b0d--;)_0x7e4357[_0x2f2b0d]=_0x49c591['charCodeAt'](_0x2f2b0d);return new _0x1640bb['File']([_0x7e4357],'image.'+_0x2c842d,{'type':_0x2216aa});}const _0x48023c=_0x4edf4d['href']['split']('/'),_0x43a069=_0x48023c[_0x48023c['length']-0x1],_0x30ed19=_0x43a069['split']('.')[0x1];return _0x1640bb['fetch'](_0x4edf4d['href'])['then'](_0x5588e1=>_0x5588e1['clone']()['blob']())['then'](_0x3f8016=>new _0x1640bb['File']([_0x3f8016],_0x43a069,{'type':'image/'+_0x30ed19}));}}class O extends _0x4e6bbf{['imageEditController'];static get['requires'](){return[_0x2349a4];}['_isEditable'];constructor(_0x437719){super(_0x437719),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x56aab1){const _0x5afb0b=G(_0x56aab1);return _0xf1a423=>!(!_0xf1a423||!_0xf1a423['is']('element','imageBlock')&&!_0xf1a423['is']('element','imageInline'))&&(!!_0xf1a423['hasAttribute']('uploadcareImageId')||!!_0xf1a423['hasAttribute']('src')&&_0x5afb0b(_0xf1a423['getAttribute']('src')));}(_0x437719['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x8af4a3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x8af4a3);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x11113e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x11113e&&(_0x11113e['is']('element','imageBlock')||_0x11113e['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x2349a4),_0x11113e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4e6bbf{['refresh'](){const _0x35a1b9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x35a1b9&&(_0x35a1b9['is']('element','imageBlock')||_0x35a1b9['is']('element','imageInline')));}['execute'](_0x6e4770){const _0x5ea56=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4b8975=>{_0x4b8975['setAttributes'](_0x6e4770,_0x5ea56),_0x4b8975['removeAttribute']('srcset',_0x5ea56),_0x4b8975['removeAttribute']('sizes',_0x5ea56);});}}class m extends _0x53b6f9{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x56d881,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x30944f}=this;_0x30944f['commands']['add']('uploadcareImageEdit',new O(_0x30944f)),_0x30944f['commands']['add']('uploadcareImageReplace',new R(_0x30944f));}}class g extends _0x53b6f9{['_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 _0x2e8f54=this['editor'];_0x2e8f54['ui']['componentFactory']['add']('uploadcareImageEdit',_0x270bcc=>{const _0x374e0e=_0x2e8f54['commands']['get']('uploadcareImageEdit'),_0x4b80f8=new _0x253b04(_0x270bcc),t=_0x270bcc['t'];return _0x4b80f8['set']({'icon':_0x334de5,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4b80f8['bind']('isEnabled')['to'](_0x374e0e),_0x4b80f8['bind']('isOn')['to'](_0x374e0e,'isActive'),this['listenTo'](_0x4b80f8,'execute',()=>{_0x2e8f54['execute']('uploadcareImageEdit'),_0x2e8f54['editing']['view']['focus']();}),_0x4b80f8;}),this['_initConfig']();}['_initConfig'](){const _0x539d7d=_0x4ccb05(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x539d7d),this['listenTo'](this['editor'],'destroy',()=>{_0x539d7d['remove']();});}}class et extends _0x53b6f9{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20251112.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-20251112.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251112.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20251112.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251112.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251112.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251112.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251112.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251112.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.19.4",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xa33963=_0x2bfe;(function(_0x411ac1,_0x2a8049){const _0x5890a6=_0x2bfe,_0x26a1e9=_0x411ac1();while(!![]){try{const _0x1aea58=-parseInt(_0x5890a6(0x10e))/0x1*(parseInt(_0x5890a6(0xfb))/0x2)+parseInt(_0x5890a6(0xee))/0x3+parseInt(_0x5890a6(0xc3))/0x4*(parseInt(_0x5890a6(0xf0))/0x5)+parseInt(_0x5890a6(0xc2))/0x6+parseInt(_0x5890a6(0xd8))/0x7*(parseInt(_0x5890a6(0xd0))/0x8)+parseInt(_0x5890a6(0xe9))/0x9+-parseInt(_0x5890a6(0x10b))/0xa;if(_0x1aea58===_0x2a8049)break;else _0x26a1e9['push'](_0x26a1e9['shift']());}catch(_0x5bd065){_0x26a1e9['push'](_0x26a1e9['shift']());}}}(_0x44e3,0xc9d2a));function _0x44e3(){const _0x3253e0=['locale','_initCtx','#uc-icon-arrow-down','uc-upload-ctx-provider','ucContextId','document','iconHrefResolver','uploadcare','cleanupImage','body','contentLanguage','23457490XWBGiQ','view','uploadcare.uploader','51059cAVLnA','extend','schema','href','add','input[uploadcare-file-input]','destroy','PictureEditing','configElement','2475942DblaLZ','5024444KuziOP','remove','uploader-','uploadcareImageId','data-uc-image-id','removeAttribute','uc-config','commands','listenTo','editing','upcast','afterInit','isOfficialPlugin','2144440wcoOmO','imageBlock','init','_initImageProcessingIndicator','replaceImageSource','pluginName','config','map','35dmtEKz','appendChild','UploadcareEditing','uploadcareImageReplace','get','selection','attributeToAttribute','downcast','requires','closeMax','insertImage','uploadcare.pubkey','_initConversion','isRegistered','model','imageInline','conversion','1262601YjTmos','_initConfig','fromCharCode','once','_ctxElement','835134XforSs','join','5PfSeWt','isPremiumPlugin','_configElement','elementToAttribute','render','true','ctxElement','querySelector','for','_initSchema','getAttribute','10pOKnhh','editor','\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','execute','getSelectedElement'];_0x44e3=function(){return _0x3253e0;};return _0x44e3();}import{Plugin as _0x23566c}from'ckeditor5/src/core.js';import{Dialog as _0x3f8f5f}from'ckeditor5/src/ui.js';import{createElement as _0x4ee181,global as _0x31cd2b,uid as _0x131d9a}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x554ade}from'./uploadcarecommand.js';function _0x2bfe(_0x7b0b6d,_0x325f07){const _0x44e3ef=_0x44e3();return _0x2bfe=function(_0x2bfed1,_0x29c88a){_0x2bfed1=_0x2bfed1-0xbe;let _0x2621e1=_0x44e3ef[_0x2bfed1];return _0x2621e1;},_0x2bfe(_0x7b0b6d,_0x325f07);}import{UploadcareUploadAdapter as _0x13a989}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2b3bfd}from'./utils/editingutils.js';export class UploadcareEditing extends _0x23566c{[_0xa33963(0xf2)]=null;[_0xa33963(0xed)]=null;static get[_0xa33963(0xd5)](){const _0x5eee95=_0xa33963;return _0x5eee95(0xda);}static get[_0xa33963(0xe0)](){const _0x3a529f=_0xa33963;return[_0x3a529f(0xc0),_0x13a989,_0x3f8f5f];}static get[_0xa33963(0xcf)](){return!0x0;}static get[_0xa33963(0xf1)](){return!0x0;}[_0xa33963(0x104)];get[_0xa33963(0xc1)](){const _0x3c1d77=_0xa33963;return this[_0x3c1d77(0xf2)];}get[_0xa33963(0xf6)](){const _0x5e3350=_0xa33963;return this[_0x5e3350(0xed)];}constructor(_0x40830c){const _0x6fd6c3=_0xa33963;super(_0x40830c),this[_0x6fd6c3(0x104)]=_0x131d9a();}[_0xa33963(0xd2)](){const _0x16ee20=_0xa33963,_0x8e35e7=this[_0x16ee20(0xfc)];_0x8e35e7[_0x16ee20(0xca)][_0x16ee20(0x112)](_0x16ee20(0x107),new _0x554ade(_0x8e35e7));}[_0xa33963(0xce)](){const _0x3209ae=_0xa33963;this[_0x3209ae(0xf9)](),this[_0x3209ae(0xe4)](),this[_0x3209ae(0xea)](),this[_0x3209ae(0x101)](),this[_0x3209ae(0xd3)](),this[_0x3209ae(0xcb)](this[_0x3209ae(0xfc)],_0x3209ae(0xbf),()=>{const _0x2d9de5=_0x3209ae;this[_0x2d9de5(0xf2)]&&(this[_0x2d9de5(0xf2)][_0x2d9de5(0xc4)](),this[_0x2d9de5(0xf2)]=null),this[_0x2d9de5(0xed)]&&(this[_0x2d9de5(0xed)][_0x2d9de5(0xc4)](),this[_0x2d9de5(0xed)]=null);const _0x2895e4=_0x31cd2b[_0x2d9de5(0x105)][_0x2d9de5(0xf7)](_0x2d9de5(0xbe));_0x2895e4&&_0x2895e4[_0x2d9de5(0xc4)]();}),async function(_0x4fb496){const _0x385438=_0x5bb356([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]),_0x493e92=0x535f8c3a,_0x348197=0x5358f48a^_0x493e92,_0x3224aa=window[_0x5bb356([0x44,0x61,0x74,0x65])][_0x5bb356([0x6e,0x6f,0x77])](),_0x4b37bd=_0x4fb496[_0x5bb356([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1f4b01=new window[(_0x5bb356([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40489b=>{_0x4b37bd[_0x5bb356([0x6f,0x6e,0x63,0x65])](_0x5bb356([0x72,0x65,0x61,0x64,0x79]),_0x40489b);}),_0x4e5ebf={[_0x5bb356([0x6b,0x74,0x79])]:_0x5bb356([0x45,0x43]),[_0x5bb356([0x75,0x73,0x65])]:_0x5bb356([0x73,0x69,0x67]),[_0x5bb356([0x63,0x72,0x76])]:_0x5bb356([0x50,0x2d,0x32,0x35,0x36]),[_0x5bb356([0x78])]:_0x5bb356([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]),[_0x5bb356([0x79])]:_0x5bb356([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]),[_0x5bb356([0x61,0x6c,0x67])]:_0x5bb356([0x45,0x53,0x32,0x35,0x36])},_0x5b63ea=_0x4b37bd[_0x5bb356([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5bb356([0x67,0x65,0x74])](_0x5bb356([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x339894(){let _0x278d9f,_0x53e6d7=null,_0x37f9f4=null;try{if(_0x5b63ea==_0x5bb356([0x47,0x50,0x4c]))return _0x5bb356([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x278d9f=_0x14a963(),!_0x278d9f)return _0x5bb356([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x278d9f[_0x5bb356([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x37f9f4=_0x48746b(_0x278d9f[_0x5bb356([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x278d9f[_0x5bb356([0x6a,0x74,0x69])])),await _0x4ca264()?_0x69e702()?_0x5745c9()?_0x5bb356([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x519c4c()?(_0x278d9f[_0x5bb356([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5bb356([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53e6d7=_0x57544a(_0x5bb356([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x278d9f[_0x5bb356([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5bb356([0x74,0x72,0x69,0x61,0x6c])&&(_0x53e6d7=_0x57544a(_0x5bb356([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3a8324()):_0x5bb356([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5bb356([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5bb356([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5bb356([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5745c9(){const _0x232528=[_0x5bb356([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5bb356([0x74,0x72,0x69,0x61,0x6c])][_0x5bb356([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x278d9f[_0x5bb356([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3224aa/0x3e8:0xe10*_0x348197;return _0x278d9f[_0x5bb356([0x65,0x78,0x70])]<_0x232528;}function _0x69e702(){const _0x893a74=_0x278d9f[_0x5bb356([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x893a74&&(!!_0x893a74[_0x5bb356([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bb356([0x2a]))||!!_0x893a74[_0x5bb356([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bb356([0x55,0x50,0x4c,0x43])));}function _0x519c4c(){const _0xa6705a=_0x2bfe,_0x39e096=_0x278d9f[_0x5bb356([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x39e096||0x0==_0x39e096[_0x5bb356([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x561388}=new URL(window[_0x5bb356([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xa6705a(0x111)]);if(_0x39e096[_0x5bb356([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x561388))return!0x0;const _0x5301b8=_0x561388[_0x5bb356([0x73,0x70,0x6c,0x69,0x74])](_0x5bb356([0x2e]));return _0x39e096[_0x5bb356([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xfe741=>_0xfe741[_0x5bb356([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bb356([0x2a])))[_0x5bb356([0x6d,0x61,0x70])](_0x35ccdd=>_0x35ccdd[_0x5bb356([0x73,0x70,0x6c,0x69,0x74])](_0x5bb356([0x2e])))[_0x5bb356([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3cc73d=>_0x3cc73d[_0x5bb356([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5301b8[_0x5bb356([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5bb356([0x6d,0x61,0x70])](_0x239fa7=>Array(_0x5301b8[_0x5bb356([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x239fa7[_0x5bb356([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5bb356([0x66,0x69,0x6c,0x6c])](_0x239fa7[0x0]===_0x5bb356([0x2a])?_0x5bb356([0x2a]):'')[_0x5bb356([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x239fa7))[_0x5bb356([0x73,0x6f,0x6d,0x65])](_0x5dab3e=>_0x5301b8[_0x5bb356([0x65,0x76,0x65,0x72,0x79])]((_0x466245,_0x5334fd)=>_0x5dab3e[_0x5334fd]===_0x466245||_0x5dab3e[_0x5334fd]===_0x5bb356([0x2a])));}function _0x3a8324(){return _0x53e6d7&&_0x37f9f4?new window[(_0x5bb356([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6509f0,_0x4ed9b4)=>{_0x53e6d7[_0x5bb356([0x74,0x68,0x65,0x6e])](_0x6509f0,_0x4ed9b4),_0x37f9f4[_0x5bb356([0x74,0x68,0x65,0x6e])](_0x2fe429=>{_0x2fe429!=_0x5bb356([0x56,0x61,0x6c,0x69,0x64])&&_0x6509f0(_0x2fe429);},_0x4ed9b4);}):_0x53e6d7||_0x37f9f4||_0x5bb356([0x56,0x61,0x6c,0x69,0x64]);}}function _0x48746b(_0x171b1a,_0x5880e1){return new window[(_0x5bb356([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54fb85=>{if(_0x2c8180())return _0x54fb85(_0x5bb356([0x56,0x61,0x6c,0x69,0x64]));_0x599dc5(),_0x4b37bd[_0x5bb356([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5bb356([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x426e6e=!0x1;const _0x388d0e=_0x131d9a();function _0x23fd4f(_0x5f272b){return!!_0x5f272b&&(typeof _0x5f272b===_0x5bb356([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5f272b===_0x5bb356([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5f272b[_0x5bb356([0x74,0x68,0x65,0x6e])]===_0x5bb356([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5f272b[_0x5bb356([0x63,0x61,0x74,0x63,0x68])]===_0x5bb356([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x22eb8c(_0x3f094b){_0x1c8e9f(_0x3f094b)[_0x5bb356([0x74,0x68,0x65,0x6e])](_0x1e23c8=>{if(!_0x1e23c8||_0x1e23c8[_0x5bb356([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5bb356([0x6f,0x6b]))return _0x5bb356([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5014c4(_0x4ced0e(_0x388d0e+_0x5880e1))!=_0x1e23c8[_0x5bb356([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5bb356([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5bb356([0x56,0x61,0x6c,0x69,0x64]);})[_0x5bb356([0x74,0x68,0x65,0x6e])](_0xb9ce33=>(_0xd1148(),_0xb9ce33),()=>{const _0x47219a=_0x22351e();return null==_0x47219a?(_0xd1148(),_0x5bb356([0x56,0x61,0x6c,0x69,0x64])):_0x5bb356(_0x3224aa-_0x47219a>(0x7753083a^_0x493e92)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5bb356([0x74,0x68,0x65,0x6e])](_0x54fb85)[_0x5bb356([0x63,0x61,0x74,0x63,0x68])](()=>{_0x54fb85(_0x5bb356([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d8d97=0x536962ba^_0x493e92;function _0xd1148(){const _0x1b9ba8=_0x5bb356([0x6c,0x6c,0x63,0x74,0x2d])+_0x5014c4(_0x4ced0e(_0x171b1a)),_0x13c92a=_0x461751(_0x5014c4(window[_0x5bb356([0x4d,0x61,0x74,0x68])][_0x5bb356([0x63,0x65,0x69,0x6c])](_0x3224aa/_0x5d8d97)));window[_0x5bb356([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5bb356([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b9ba8,_0x13c92a);}function _0x22351e(){const _0x7b5e32=_0x5bb356([0x6c,0x6c,0x63,0x74,0x2d])+_0x5014c4(_0x4ced0e(_0x171b1a)),_0x460661=window[_0x5bb356([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5bb356([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7b5e32);return _0x460661?window[_0x5bb356([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x461751(_0x460661),0x10)*_0x5d8d97:null;}function _0x1c8e9f(_0x5dacde){return new window[(_0x5bb356([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x343113,_0x566de9)=>{_0x5dacde[_0x5bb356([0x74,0x68,0x65,0x6e])](_0x343113,_0x566de9),window[_0x5bb356([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x566de9,0x535e58fa^_0x493e92);});}}_0x4b37bd[_0x5bb356([0x6f,0x6e])](_0x5bb356([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x19d8a1,_0x2821c9)=>{if(_0x2821c9[0x0]!=_0x171b1a)return _0x54fb85(_0x5bb356([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2821c9[0x1]={..._0x2821c9[0x1],[_0x5bb356([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x388d0e};},{[_0x5bb356([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5bb356([0x68,0x69,0x67,0x68])}),_0x4b37bd[_0x5bb356([0x6f,0x6e])](_0x5bb356([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc685c7=>{_0x23fd4f(_0xc685c7[_0x5bb356([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x426e6e=!0x0,_0x22eb8c(_0xc685c7[_0x5bb356([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5bb356([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5bb356([0x6c,0x6f,0x77])}),_0x1f4b01[_0x5bb356([0x74,0x68,0x65,0x6e])](()=>{_0x426e6e||_0x54fb85(_0x5bb356([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c8180(){return _0x4b37bd[_0x5bb356([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5bb356([0x76,0x69,0x65,0x77])][_0x5bb356([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5bb356([0x61,0x75,0x74,0x6f]);}function _0x599dc5(){_0x4b37bd[_0x5bb356([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5bb356([0x76,0x69,0x65,0x77])][_0x5bb356([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5bb356([0x61,0x75,0x74,0x6f]);}}function _0x57544a(_0x5eadc5){const _0x3a8725=[new window[(_0x5bb356([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fab79=>setTimeout(_0x2fab79,0x5356b2f6^_0x493e92)),_0x1f4b01[_0x5bb356([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5bb356([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x344ed9=>{let _0x173ea8=0x0;_0x4b37bd[_0x5bb356([0x6d,0x6f,0x64,0x65,0x6c])][_0x5bb356([0x6f,0x6e])](_0x5bb356([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4896ca,_0x2897ae)=>{_0x2897ae[0x0][_0x5bb356([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x173ea8++,_0x173ea8==(0x535f8dc2^_0x493e92)&&(_0x344ed9(),_0x4896ca[_0x5bb356([0x6f,0x66,0x66])]());});}))];return window[_0x5bb356([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5bb356([0x72,0x61,0x63,0x65])](_0x3a8725)[_0x5bb356([0x74,0x68,0x65,0x6e])](()=>_0x5eadc5);}async function _0x333be7(){await _0x1f4b01,_0x4b37bd[_0x5bb356([0x6d,0x6f,0x64,0x65,0x6c])][_0x5bb356([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x21a62d,_0x4b37bd[_0x5bb356([0x6d,0x6f,0x64,0x65,0x6c])][_0x5bb356([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x21a62d,_0x4b37bd[_0x5bb356([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5bb356([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x28bf7a(_0xd8e7fd){const _0x1986f0=_0x42d8b1();_0x4b37bd[_0x1986f0]=_0x5bb356([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xd8e7fd,_0xd8e7fd!=_0x5bb356([0x56,0x61,0x6c,0x69,0x64])&&_0x333be7();}function _0x42d8b1(){const _0x259a61=window[_0x5bb356([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5bb356([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5bb356([0x6e,0x6f,0x77])]())[_0x5bb356([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5bb356([0x2e]),'');let _0x4d9ee3=_0x5bb356([0x68]);for(let _0x45ff90=0x0;_0x45ff90<_0x259a61[_0x5bb356([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x45ff90+=0x2){let _0x5892a8=window[_0x5bb356([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x259a61[_0x5bb356([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45ff90,_0x45ff90+0x2));_0x5892a8>=_0x385438[_0x5bb356([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5892a8-=_0x385438[_0x5bb356([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4d9ee3+=_0x385438[_0x5892a8];}return _0x4d9ee3;}function _0x14a963(){const _0x56c635=_0x5b63ea[_0x5bb356([0x73,0x70,0x6c,0x69,0x74])](_0x5bb356([0x2e]));if(0x3!=_0x56c635[_0x5bb356([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x477e4a(_0x56c635[0x1]);function _0x477e4a(_0xfc4c67){const _0x538ae5=_0x4d2870(_0xfc4c67);return _0x538ae5&&_0x4a940c()?_0x538ae5:null;function _0x4a940c(){const _0x38b410=_0x538ae5[_0x5bb356([0x6a,0x74,0x69])],_0x9dbe39=window[_0x5bb356([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38b410[_0x5bb356([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38b410[_0x5bb356([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x22927f={..._0x538ae5,[_0x5bb356([0x6a,0x74,0x69])]:_0x38b410[_0x5bb356([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x38b410[_0x5bb356([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x22927f[_0x5bb356([0x76,0x63])],_0x4ced0e(_0x22927f)==_0x9dbe39;}}}async function _0x4ca264(){let _0x4f6529=!0x0;try{const _0x578ae7=_0x5b63ea[_0x5bb356([0x73,0x70,0x6c,0x69,0x74])](_0x5bb356([0x2e])),[_0x3bcac0,_0x3a9552,_0x52674b]=_0x578ae7;return _0x53deb5(_0x3bcac0),await _0x2802dc(_0x3bcac0,_0x3a9552,_0x52674b),_0x4f6529;}catch{return!0x1;}function _0x53deb5(_0xb724e2){const _0x31565b=_0x4d2870(_0xb724e2);_0x31565b&&_0x31565b[_0x5bb356([0x61,0x6c,0x67])]==_0x5bb356([0x45,0x53,0x32,0x35,0x36])||(_0x4f6529=!0x1);}async function _0x2802dc(_0x44b8fa,_0x4ab511,_0x415d23){const _0x3593b5=window[_0x5bb356([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5bb356([0x66,0x72,0x6f,0x6d])](_0x4a5338(_0x415d23),_0x10f91d=>_0x10f91d[_0x5bb356([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2270fb=new window[(_0x5bb356([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5bb356([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x44b8fa+_0x5bb356([0x2e])+_0x4ab511),_0x200e18=window[_0x5bb356([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5bb356([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x200e18)return;const _0xa73a6d=await _0x200e18[_0x5bb356([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5bb356([0x6a,0x77,0x6b]),_0x4e5ebf,{[_0x5bb356([0x6e,0x61,0x6d,0x65])]:_0x5bb356([0x45,0x43,0x44,0x53,0x41]),[_0x5bb356([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5bb356([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5bb356([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x200e18[_0x5bb356([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5bb356([0x6e,0x61,0x6d,0x65])]:_0x5bb356([0x45,0x43,0x44,0x53,0x41]),[_0x5bb356([0x68,0x61,0x73,0x68])]:{[_0x5bb356([0x6e,0x61,0x6d,0x65])]:_0x5bb356([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xa73a6d,_0x3593b5,_0x2270fb)||(_0x4f6529=!0x1);}}function _0x4d2870(_0x57bbad){return _0x57bbad[_0x5bb356([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5bb356([0x65,0x79]))?JSON[_0x5bb356([0x70,0x61,0x72,0x73,0x65])](_0x4a5338(_0x57bbad)):null;}function _0x4a5338(_0x19c4a5){return window[_0x5bb356([0x61,0x74,0x6f,0x62])](_0x19c4a5[_0x5bb356([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5bb356([0x2b]))[_0x5bb356([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5bb356([0x2f])));}function _0x4ced0e(_0x3cb0c7){let _0x569897=0x1505;function _0x2ba1f8(_0x2d987e){for(let _0x1b3215=0x0;_0x1b3215<_0x2d987e[_0x5bb356([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b3215++){const _0x25e607=_0x2d987e[_0x5bb356([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1b3215);_0x569897=(_0x569897<<0x5)+_0x569897+_0x25e607,_0x569897&=_0x569897;}}function _0x35c4ef(_0xecfc3a){Array[_0x5bb356([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xecfc3a)?_0xecfc3a[_0x5bb356([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x35c4ef):_0xecfc3a&&typeof _0xecfc3a==_0x5bb356([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5bb356([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xecfc3a)[_0x5bb356([0x73,0x6f,0x72,0x74])]()[_0x5bb356([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3d0853,_0x4800fa])=>{_0x2ba1f8(_0x3d0853),_0x35c4ef(_0x4800fa);}):_0x2ba1f8(window[_0x5bb356([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xecfc3a));}return _0x35c4ef(_0x3cb0c7),_0x569897>>>0x0;}function _0x5014c4(_0x55d471){return _0x55d471[_0x5bb356([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5bb356([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5bb356([0x30]));}function _0x461751(_0x45b075){return _0x45b075[_0x5bb356([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5bb356([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5bb356([0x6a,0x6f,0x69,0x6e])]('');}function _0x21a62d(){}function _0x5bb356(_0x5da1ee){const _0x2fc362=_0x2bfe;return _0x5da1ee[_0x2fc362(0xd7)](_0x27641f=>String[_0x2fc362(0xeb)](_0x27641f))[_0x2fc362(0xef)]('');}_0x28bf7a(await _0x339894());}(this);}[_0xa33963(0xf9)](){const _0x15cfb1=_0xa33963,_0x1a6a83=this[_0x15cfb1(0xfc)][_0x15cfb1(0xe6)][_0x15cfb1(0x110)];_0x1a6a83[_0x15cfb1(0xe5)](_0x15cfb1(0xd1))&&_0x1a6a83[_0x15cfb1(0x10f)](_0x15cfb1(0xd1),{'allowAttributes':[_0x15cfb1(0xc6)]}),_0x1a6a83[_0x15cfb1(0xe5)](_0x15cfb1(0xe7))&&_0x1a6a83[_0x15cfb1(0x10f)](_0x15cfb1(0xe7),{'allowAttributes':[_0x15cfb1(0xc6)]});}[_0xa33963(0xe4)](){const _0x537704=_0xa33963,_0x4a0afc=this[_0x537704(0xfc)];_0x4a0afc[_0x537704(0xe8)][_0x537704(0xf8)](_0x537704(0xdf))[_0x537704(0xde)]({'model':_0x537704(0xc6),'view':_0x537704(0xc7)}),_0x4a0afc[_0x537704(0xe8)][_0x537704(0xf8)](_0x537704(0xcd))[_0x537704(0xf3)]({'model':{'key':_0x537704(0xc6),'value':_0x402064=>_0x402064[_0x537704(0xfa)](_0x537704(0xc7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x12c40b=_0x4a0afc[_0x537704(0xca)][_0x537704(0xdc)](_0x537704(0xd4));_0x12c40b&&this[_0x537704(0xcb)](_0x12c40b,_0x537704(0x108),(_0x513aa4,[_0xf9e5ee,_0x420612])=>{const _0x30a367=_0x537704;_0xf9e5ee[_0x30a367(0xc8)](_0x30a367(0xc6),_0x420612);});}[_0xa33963(0xea)](){const _0x3c7040=_0xa33963,_0xe56dff=this[_0x3c7040(0xfc)][_0x3c7040(0xd6)][_0x3c7040(0xdc)](_0x3c7040(0x10d))||{},_0x1da6f3=this[_0x3c7040(0xfc)][_0x3c7040(0xd6)][_0x3c7040(0xdc)](_0x3c7040(0xe3))||'';this[_0x3c7040(0xf2)]=_0x4ee181(_0x31cd2b[_0x3c7040(0x105)],_0x3c7040(0xc9),{..._0xe56dff,'pubkey':_0x1da6f3,'ctx-name':_0x3c7040(0xc5)+this[_0x3c7040(0x104)],'sourceList':'','imgOnly':_0x3c7040(0xf5),'removeCopyright':_0x3c7040(0xf5),'localeName':this[_0x3c7040(0xfc)][_0x3c7040(0x100)][_0x3c7040(0x10a)],'externalSourcesEmbedCss':_0x3c7040(0xfd)}),this[_0x3c7040(0xf2)][_0x3c7040(0x106)]=_0x121514=>{const _0x424e0d=_0x3c7040;if(_0x424e0d(0xe1)==_0x121514)return _0x424e0d(0x102);},_0x31cd2b[_0x3c7040(0x105)][_0x3c7040(0x109)][_0x3c7040(0xd9)](this[_0x3c7040(0xf2)]);}[_0xa33963(0x101)](){const _0x4d2522=_0xa33963;this[_0x4d2522(0xed)]=_0x4ee181(_0x31cd2b[_0x4d2522(0x105)],_0x4d2522(0x103),{'ctx-name':_0x4d2522(0xc5)+this[_0x4d2522(0x104)]}),_0x31cd2b[_0x4d2522(0x105)][_0x4d2522(0x109)][_0x4d2522(0xd9)](this[_0x4d2522(0xed)]);}[_0xa33963(0xd3)](){const _0x46b986=_0xa33963,_0x39162f=this[_0x46b986(0xfc)][_0x46b986(0xca)][_0x46b986(0xdc)](_0x46b986(0xe2));_0x39162f&&this[_0x46b986(0xcb)](_0x39162f,_0x46b986(0xfe),()=>{const _0x2bc438=_0x46b986,_0x24e8c2=this[_0x2bc438(0xfc)][_0x2bc438(0xe6)][_0x2bc438(0x105)][_0x2bc438(0xdd)][_0x2bc438(0xff)]();_0x24e8c2&&_0x24e8c2[_0x2bc438(0xfa)](_0x2bc438(0xc6))&&this[_0x2bc438(0xfc)][_0x2bc438(0xcc)][_0x2bc438(0x10c)][_0x2bc438(0xec)](_0x2bc438(0xf4),()=>{const _0x308ecd=_0x2bc438;_0x2b3bfd(this[_0x308ecd(0xfc)],_0x24e8c2);});});const _0x1f2e2b=this[_0x46b986(0xfc)][_0x46b986(0xca)][_0x46b986(0xdc)](_0x46b986(0xdb));_0x1f2e2b&&this[_0x46b986(0xcb)](_0x1f2e2b,_0x46b986(0xfe),()=>{const _0x15d5aa=_0x46b986,_0x5cff88=this[_0x15d5aa(0xfc)][_0x15d5aa(0xe6)][_0x15d5aa(0x105)][_0x15d5aa(0xdd)][_0x15d5aa(0xff)]();_0x5cff88&&_0x5cff88[_0x15d5aa(0xfa)](_0x15d5aa(0xc6))&&this[_0x15d5aa(0xfc)][_0x15d5aa(0xcc)][_0x15d5aa(0x10c)][_0x15d5aa(0xec)](_0x15d5aa(0xf4),()=>{const _0x3e0889=_0x15d5aa;_0x2b3bfd(this[_0x3e0889(0xfc)],_0x5cff88);});});}}
|
|
23
|
+
const _0x44407e=_0x5a5b;(function(_0x550792,_0x31f9a0){const _0x49c45f=_0x5a5b,_0x43f418=_0x550792();while(!![]){try{const _0x3c3a16=parseInt(_0x49c45f(0x88))/0x1*(parseInt(_0x49c45f(0x8a))/0x2)+parseInt(_0x49c45f(0x9b))/0x3+-parseInt(_0x49c45f(0x8e))/0x4+parseInt(_0x49c45f(0x96))/0x5+parseInt(_0x49c45f(0xa3))/0x6*(parseInt(_0x49c45f(0xcf))/0x7)+-parseInt(_0x49c45f(0x89))/0x8+parseInt(_0x49c45f(0xba))/0x9*(parseInt(_0x49c45f(0xae))/0xa);if(_0x3c3a16===_0x31f9a0)break;else _0x43f418['push'](_0x43f418['shift']());}catch(_0x29f4b0){_0x43f418['push'](_0x43f418['shift']());}}}(_0x3a68,0x7e145));function _0x3a68(){const _0x47cb51=['model','downcast','40tfdsmk','locale','get','closeMax','_initConfig','#uc-icon-arrow-down','getSelectedElement','imageBlock','true','uploadcareImageReplace','querySelector','add','168867dOHoLx','contentLanguage','uc-config','imageInline','iconHrefResolver','uploadcare','cleanupImage','conversion','pluginName','replaceImageSource','editor','uploadcare.uploader','input[uploadcare-file-input]','insertImage','ucContextId','body','ctxElement','getAttribute','config','uploadcareImageId','_initConversion','194579MObjCT','editing','\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','_initSchema','_configElement','schema','requires','data-uc-image-id','view','map','appendChild','selection','for','uploadcare.pubkey','554DFbTAX','8211976muxfDl','1146niEVkt','uc-upload-ctx-provider','_initImageProcessingIndicator','UploadcareEditing','2869200sOfsPu','extend','uploader-','render','isRegistered','isPremiumPlugin','isOfficialPlugin','afterInit','2683175lOnfQu','removeAttribute','join','configElement','once','2909184AZzffV','PictureEditing','destroy','attributeToAttribute','fromCharCode','commands','_ctxElement','_initCtx','78FIOEEb','execute','upcast','href','listenTo','document','init','remove','elementToAttribute'];_0x3a68=function(){return _0x47cb51;};return _0x3a68();}import{Plugin as _0x6651f1}from'ckeditor5/src/core.js';import{Dialog as _0x22000a}from'ckeditor5/src/ui.js';import{createElement as _0x961146,global as _0x2c1961,uid as _0x179780}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4d1690}from'./uploadcarecommand.js';function _0x5a5b(_0x2b6feb,_0x20117e){const _0x3a68a5=_0x3a68();return _0x5a5b=function(_0x5a5bd4,_0x3197b8){_0x5a5bd4=_0x5a5bd4-0x85;let _0xd736ac=_0x3a68a5[_0x5a5bd4];return _0xd736ac;},_0x5a5b(_0x2b6feb,_0x20117e);}import{UploadcareUploadAdapter as _0x4b8787}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x473e61}from'./utils/editingutils.js';export class UploadcareEditing extends _0x6651f1{[_0x44407e(0xd3)]=null;[_0x44407e(0xa1)]=null;static get[_0x44407e(0xc2)](){const _0x5d1f8e=_0x44407e;return _0x5d1f8e(0x8d);}static get[_0x44407e(0xd5)](){const _0x351c81=_0x44407e;return[_0x351c81(0x9c),_0x4b8787,_0x22000a];}static get[_0x44407e(0x94)](){return!0x0;}static get[_0x44407e(0x93)](){return!0x0;}[_0x44407e(0xc8)];get[_0x44407e(0x99)](){const _0x4cf572=_0x44407e;return this[_0x4cf572(0xd3)];}get[_0x44407e(0xca)](){const _0x311035=_0x44407e;return this[_0x311035(0xa1)];}constructor(_0x26b81a){const _0x20dc67=_0x44407e;super(_0x26b81a),this[_0x20dc67(0xc8)]=_0x179780();}[_0x44407e(0xa9)](){const _0x12f941=_0x44407e,_0xeb3968=this[_0x12f941(0xc4)];_0xeb3968[_0x12f941(0xa0)][_0x12f941(0xb9)](_0x12f941(0xbf),new _0x4d1690(_0xeb3968));}[_0x44407e(0x95)](){const _0x31827e=_0x44407e;this[_0x31827e(0xd2)](),this[_0x31827e(0xce)](),this[_0x31827e(0xb2)](),this[_0x31827e(0xa2)](),this[_0x31827e(0x8c)](),this[_0x31827e(0xa7)](this[_0x31827e(0xc4)],_0x31827e(0x9d),()=>{const _0x54238c=_0x31827e;this[_0x54238c(0xd3)]&&(this[_0x54238c(0xd3)][_0x54238c(0xaa)](),this[_0x54238c(0xd3)]=null),this[_0x54238c(0xa1)]&&(this[_0x54238c(0xa1)][_0x54238c(0xaa)](),this[_0x54238c(0xa1)]=null);const _0x2c7cc1=_0x2c1961[_0x54238c(0xa8)][_0x54238c(0xb8)](_0x54238c(0xc6));_0x2c7cc1&&_0x2c7cc1[_0x54238c(0xaa)]();}),async function(_0x329b8d){const _0x58c0c3=_0x4a9bd8([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]),_0x434517=0x535f8c3a,_0x5bc556=0x5358f4da^_0x434517,_0x2a1b6a=window[_0x4a9bd8([0x44,0x61,0x74,0x65])][_0x4a9bd8([0x6e,0x6f,0x77])](),_0x4ec559=_0x329b8d[_0x4a9bd8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x11bfaf=new window[(_0x4a9bd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26c351=>{_0x4ec559[_0x4a9bd8([0x6f,0x6e,0x63,0x65])](_0x4a9bd8([0x72,0x65,0x61,0x64,0x79]),_0x26c351);}),_0x3c4949={[_0x4a9bd8([0x6b,0x74,0x79])]:_0x4a9bd8([0x45,0x43]),[_0x4a9bd8([0x75,0x73,0x65])]:_0x4a9bd8([0x73,0x69,0x67]),[_0x4a9bd8([0x63,0x72,0x76])]:_0x4a9bd8([0x50,0x2d,0x32,0x35,0x36]),[_0x4a9bd8([0x78])]:_0x4a9bd8([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]),[_0x4a9bd8([0x79])]:_0x4a9bd8([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]),[_0x4a9bd8([0x61,0x6c,0x67])]:_0x4a9bd8([0x45,0x53,0x32,0x35,0x36])},_0x132033=_0x4ec559[_0x4a9bd8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4a9bd8([0x67,0x65,0x74])](_0x4a9bd8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2d95a3(){let _0x11f716,_0x241355=null,_0x101789=null;try{if(_0x132033==_0x4a9bd8([0x47,0x50,0x4c]))return _0x4a9bd8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x11f716=_0x2563be(),!_0x11f716)return _0x4a9bd8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x11f716[_0x4a9bd8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x101789=_0x37f683(_0x11f716[_0x4a9bd8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x11f716[_0x4a9bd8([0x6a,0x74,0x69])])),await _0x183f99()?_0x547503()?_0x4e79e8()?_0x4a9bd8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x31809c()?(_0x11f716[_0x4a9bd8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4a9bd8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x241355=_0x54b7ea(_0x4a9bd8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x11f716[_0x4a9bd8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4a9bd8([0x74,0x72,0x69,0x61,0x6c])&&(_0x241355=_0x54b7ea(_0x4a9bd8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x636595()):_0x4a9bd8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4a9bd8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4a9bd8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4a9bd8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4e79e8(){const _0x552ccd=[_0x4a9bd8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4a9bd8([0x74,0x72,0x69,0x61,0x6c])][_0x4a9bd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11f716[_0x4a9bd8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2a1b6a/0x3e8:0xe10*_0x5bc556;return _0x11f716[_0x4a9bd8([0x65,0x78,0x70])]<_0x552ccd;}function _0x547503(){const _0x5c3d43=_0x11f716[_0x4a9bd8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5c3d43&&(!!_0x5c3d43[_0x4a9bd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a9bd8([0x2a]))||!!_0x5c3d43[_0x4a9bd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a9bd8([0x55,0x50,0x4c,0x43])));}function _0x31809c(){const _0x1e385e=_0x5a5b,_0x167c90=_0x11f716[_0x4a9bd8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x167c90||0x0==_0x167c90[_0x4a9bd8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d1bbe}=new URL(window[_0x4a9bd8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1e385e(0xa6)]);if(_0x167c90[_0x4a9bd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d1bbe))return!0x0;const _0x360296=_0x3d1bbe[_0x4a9bd8([0x73,0x70,0x6c,0x69,0x74])](_0x4a9bd8([0x2e]));return _0x167c90[_0x4a9bd8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2a75e0=>_0x2a75e0[_0x4a9bd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a9bd8([0x2a])))[_0x4a9bd8([0x6d,0x61,0x70])](_0x2ccaa9=>_0x2ccaa9[_0x4a9bd8([0x73,0x70,0x6c,0x69,0x74])](_0x4a9bd8([0x2e])))[_0x4a9bd8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f9a89=>_0x1f9a89[_0x4a9bd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x360296[_0x4a9bd8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4a9bd8([0x6d,0x61,0x70])](_0xe45ee8=>Array(_0x360296[_0x4a9bd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xe45ee8[_0x4a9bd8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4a9bd8([0x66,0x69,0x6c,0x6c])](_0xe45ee8[0x0]===_0x4a9bd8([0x2a])?_0x4a9bd8([0x2a]):'')[_0x4a9bd8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xe45ee8))[_0x4a9bd8([0x73,0x6f,0x6d,0x65])](_0x31fb38=>_0x360296[_0x4a9bd8([0x65,0x76,0x65,0x72,0x79])]((_0x4984dc,_0x21b327)=>_0x31fb38[_0x21b327]===_0x4984dc||_0x31fb38[_0x21b327]===_0x4a9bd8([0x2a])));}function _0x636595(){return _0x241355&&_0x101789?new window[(_0x4a9bd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c19e3,_0x463700)=>{_0x241355[_0x4a9bd8([0x74,0x68,0x65,0x6e])](_0x2c19e3,_0x463700),_0x101789[_0x4a9bd8([0x74,0x68,0x65,0x6e])](_0x401ffd=>{_0x401ffd!=_0x4a9bd8([0x56,0x61,0x6c,0x69,0x64])&&_0x2c19e3(_0x401ffd);},_0x463700);}):_0x241355||_0x101789||_0x4a9bd8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x37f683(_0x11f92d,_0x54b36b){return new window[(_0x4a9bd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e1287=>{if(_0x3c2895())return _0x1e1287(_0x4a9bd8([0x56,0x61,0x6c,0x69,0x64]));_0x2ffe44(),_0x4ec559[_0x4a9bd8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4a9bd8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x58d1db=!0x1;const _0x223c56=_0x179780();function _0x1c4246(_0x447df8){return!!_0x447df8&&(typeof _0x447df8===_0x4a9bd8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x447df8===_0x4a9bd8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x447df8[_0x4a9bd8([0x74,0x68,0x65,0x6e])]===_0x4a9bd8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x447df8[_0x4a9bd8([0x63,0x61,0x74,0x63,0x68])]===_0x4a9bd8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x492ecb(_0x3ef80f){_0x21fbe8(_0x3ef80f)[_0x4a9bd8([0x74,0x68,0x65,0x6e])](_0x3cfb08=>{if(!_0x3cfb08||_0x3cfb08[_0x4a9bd8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4a9bd8([0x6f,0x6b]))return _0x4a9bd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x26f5e1(_0x9056c7(_0x223c56+_0x54b36b))!=_0x3cfb08[_0x4a9bd8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4a9bd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4a9bd8([0x56,0x61,0x6c,0x69,0x64]);})[_0x4a9bd8([0x74,0x68,0x65,0x6e])](_0x411bae=>(_0x561b47(),_0x411bae),()=>{const _0x54c12c=_0x48e8c9();return null==_0x54c12c?(_0x561b47(),_0x4a9bd8([0x56,0x61,0x6c,0x69,0x64])):_0x4a9bd8(_0x2a1b6a-_0x54c12c>(0x7753083a^_0x434517)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4a9bd8([0x74,0x68,0x65,0x6e])](_0x1e1287)[_0x4a9bd8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1e1287(_0x4a9bd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2fd174=0x536962ba^_0x434517;function _0x561b47(){const _0x9c0f0a=_0x4a9bd8([0x6c,0x6c,0x63,0x74,0x2d])+_0x26f5e1(_0x9056c7(_0x11f92d)),_0x5bec12=_0xfcda31(_0x26f5e1(window[_0x4a9bd8([0x4d,0x61,0x74,0x68])][_0x4a9bd8([0x63,0x65,0x69,0x6c])](_0x2a1b6a/_0x2fd174)));window[_0x4a9bd8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a9bd8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x9c0f0a,_0x5bec12);}function _0x48e8c9(){const _0x158e43=_0x4a9bd8([0x6c,0x6c,0x63,0x74,0x2d])+_0x26f5e1(_0x9056c7(_0x11f92d)),_0x57938f=window[_0x4a9bd8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a9bd8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x158e43);return _0x57938f?window[_0x4a9bd8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfcda31(_0x57938f),0x10)*_0x2fd174:null;}function _0x21fbe8(_0x4d6d5c){return new window[(_0x4a9bd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5eaa78,_0xd90e7f)=>{_0x4d6d5c[_0x4a9bd8([0x74,0x68,0x65,0x6e])](_0x5eaa78,_0xd90e7f),window[_0x4a9bd8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xd90e7f,0x535e58fa^_0x434517);});}}_0x4ec559[_0x4a9bd8([0x6f,0x6e])](_0x4a9bd8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3125d2,_0x142760)=>{if(_0x142760[0x0]!=_0x11f92d)return _0x1e1287(_0x4a9bd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x142760[0x1]={..._0x142760[0x1],[_0x4a9bd8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x223c56};},{[_0x4a9bd8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a9bd8([0x68,0x69,0x67,0x68])}),_0x4ec559[_0x4a9bd8([0x6f,0x6e])](_0x4a9bd8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x466e35=>{_0x1c4246(_0x466e35[_0x4a9bd8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x58d1db=!0x0,_0x492ecb(_0x466e35[_0x4a9bd8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4a9bd8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a9bd8([0x6c,0x6f,0x77])}),_0x11bfaf[_0x4a9bd8([0x74,0x68,0x65,0x6e])](()=>{_0x58d1db||_0x1e1287(_0x4a9bd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c2895(){return _0x4ec559[_0x4a9bd8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a9bd8([0x76,0x69,0x65,0x77])][_0x4a9bd8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4a9bd8([0x61,0x75,0x74,0x6f]);}function _0x2ffe44(){_0x4ec559[_0x4a9bd8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a9bd8([0x76,0x69,0x65,0x77])][_0x4a9bd8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4a9bd8([0x61,0x75,0x74,0x6f]);}}function _0x54b7ea(_0x5d935c){const _0x29df9e=[new window[(_0x4a9bd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d502e=>setTimeout(_0x5d502e,0x5356b2f6^_0x434517)),_0x11bfaf[_0x4a9bd8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4a9bd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c2dfa=>{let _0x2af29b=0x0;_0x4ec559[_0x4a9bd8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a9bd8([0x6f,0x6e])](_0x4a9bd8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1f1fc6,_0x2ff003)=>{_0x2ff003[0x0][_0x4a9bd8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2af29b++,_0x2af29b==(0x535f8dc2^_0x434517)&&(_0x1c2dfa(),_0x1f1fc6[_0x4a9bd8([0x6f,0x66,0x66])]());});}))];return window[_0x4a9bd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4a9bd8([0x72,0x61,0x63,0x65])](_0x29df9e)[_0x4a9bd8([0x74,0x68,0x65,0x6e])](()=>_0x5d935c);}async function _0x3d5396(){await _0x11bfaf,_0x4ec559[_0x4a9bd8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a9bd8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b187d,_0x4ec559[_0x4a9bd8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a9bd8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b187d,_0x4ec559[_0x4a9bd8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4a9bd8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x408aa8(_0x534eb4){const _0x5185d1=_0x2febc7();_0x4ec559[_0x5185d1]=_0x4a9bd8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x534eb4,_0x534eb4!=_0x4a9bd8([0x56,0x61,0x6c,0x69,0x64])&&_0x3d5396();}function _0x2febc7(){const _0x3340fb=window[_0x4a9bd8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4a9bd8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4a9bd8([0x6e,0x6f,0x77])]())[_0x4a9bd8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4a9bd8([0x2e]),'');let _0x141530=_0x4a9bd8([0x68]);for(let _0x42c7f7=0x0;_0x42c7f7<_0x3340fb[_0x4a9bd8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42c7f7+=0x2){let _0x28494e=window[_0x4a9bd8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3340fb[_0x4a9bd8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42c7f7,_0x42c7f7+0x2));_0x28494e>=_0x58c0c3[_0x4a9bd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x28494e-=_0x58c0c3[_0x4a9bd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x141530+=_0x58c0c3[_0x28494e];}return _0x141530;}function _0x2563be(){const _0x232618=_0x132033[_0x4a9bd8([0x73,0x70,0x6c,0x69,0x74])](_0x4a9bd8([0x2e]));if(0x3!=_0x232618[_0x4a9bd8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x308298(_0x232618[0x1]);function _0x308298(_0x730ada){const _0x3b33f5=_0x7956ff(_0x730ada);return _0x3b33f5&&_0x459893()?_0x3b33f5:null;function _0x459893(){const _0x3b8594=_0x3b33f5[_0x4a9bd8([0x6a,0x74,0x69])],_0x452bb9=window[_0x4a9bd8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b8594[_0x4a9bd8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b8594[_0x4a9bd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3caa43={..._0x3b33f5,[_0x4a9bd8([0x6a,0x74,0x69])]:_0x3b8594[_0x4a9bd8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3b8594[_0x4a9bd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3caa43[_0x4a9bd8([0x76,0x63])],_0x9056c7(_0x3caa43)==_0x452bb9;}}}async function _0x183f99(){let _0x136f1e=!0x0;try{const _0xb1a163=_0x132033[_0x4a9bd8([0x73,0x70,0x6c,0x69,0x74])](_0x4a9bd8([0x2e])),[_0x30406a,_0xd0cc7e,_0x36a852]=_0xb1a163;return _0x309a9a(_0x30406a),await _0xff44e(_0x30406a,_0xd0cc7e,_0x36a852),_0x136f1e;}catch{return!0x1;}function _0x309a9a(_0x5b079d){const _0x474fe2=_0x7956ff(_0x5b079d);_0x474fe2&&_0x474fe2[_0x4a9bd8([0x61,0x6c,0x67])]==_0x4a9bd8([0x45,0x53,0x32,0x35,0x36])||(_0x136f1e=!0x1);}async function _0xff44e(_0x23d1fd,_0x19d35a,_0xdcd845){const _0x51f749=window[_0x4a9bd8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4a9bd8([0x66,0x72,0x6f,0x6d])](_0x3b1256(_0xdcd845),_0x16e197=>_0x16e197[_0x4a9bd8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x546bbf=new window[(_0x4a9bd8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4a9bd8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x23d1fd+_0x4a9bd8([0x2e])+_0x19d35a),_0x472a34=window[_0x4a9bd8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4a9bd8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x472a34)return;const _0x16c510=await _0x472a34[_0x4a9bd8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4a9bd8([0x6a,0x77,0x6b]),_0x3c4949,{[_0x4a9bd8([0x6e,0x61,0x6d,0x65])]:_0x4a9bd8([0x45,0x43,0x44,0x53,0x41]),[_0x4a9bd8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4a9bd8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4a9bd8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x472a34[_0x4a9bd8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4a9bd8([0x6e,0x61,0x6d,0x65])]:_0x4a9bd8([0x45,0x43,0x44,0x53,0x41]),[_0x4a9bd8([0x68,0x61,0x73,0x68])]:{[_0x4a9bd8([0x6e,0x61,0x6d,0x65])]:_0x4a9bd8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x16c510,_0x51f749,_0x546bbf)||(_0x136f1e=!0x1);}}function _0x7956ff(_0x2a8898){return _0x2a8898[_0x4a9bd8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4a9bd8([0x65,0x79]))?JSON[_0x4a9bd8([0x70,0x61,0x72,0x73,0x65])](_0x3b1256(_0x2a8898)):null;}function _0x3b1256(_0x5f334a){return window[_0x4a9bd8([0x61,0x74,0x6f,0x62])](_0x5f334a[_0x4a9bd8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4a9bd8([0x2b]))[_0x4a9bd8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4a9bd8([0x2f])));}function _0x9056c7(_0x245bb0){let _0x14bd4c=0x1505;function _0x4b7cfa(_0x4232e1){for(let _0x1bb7f5=0x0;_0x1bb7f5<_0x4232e1[_0x4a9bd8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1bb7f5++){const _0x340207=_0x4232e1[_0x4a9bd8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1bb7f5);_0x14bd4c=(_0x14bd4c<<0x5)+_0x14bd4c+_0x340207,_0x14bd4c&=_0x14bd4c;}}function _0x3996db(_0x1899d1){Array[_0x4a9bd8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1899d1)?_0x1899d1[_0x4a9bd8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3996db):_0x1899d1&&typeof _0x1899d1==_0x4a9bd8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4a9bd8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1899d1)[_0x4a9bd8([0x73,0x6f,0x72,0x74])]()[_0x4a9bd8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc5712,_0x41fd51])=>{_0x4b7cfa(_0xc5712),_0x3996db(_0x41fd51);}):_0x4b7cfa(window[_0x4a9bd8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1899d1));}return _0x3996db(_0x245bb0),_0x14bd4c>>>0x0;}function _0x26f5e1(_0x4b64cb){return _0x4b64cb[_0x4a9bd8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4a9bd8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4a9bd8([0x30]));}function _0xfcda31(_0x2cfa5d){return _0x2cfa5d[_0x4a9bd8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4a9bd8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4a9bd8([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b187d(){}function _0x4a9bd8(_0x206cb4){const _0x25f280=_0x5a5b;return _0x206cb4[_0x25f280(0xd8)](_0x45ff5f=>String[_0x25f280(0x9f)](_0x45ff5f))[_0x25f280(0x98)]('');}_0x408aa8(await _0x2d95a3());}(this);}[_0x44407e(0xd2)](){const _0x532c8e=_0x44407e,_0x4fd220=this[_0x532c8e(0xc4)][_0x532c8e(0xac)][_0x532c8e(0xd4)];_0x4fd220[_0x532c8e(0x92)](_0x532c8e(0xb5))&&_0x4fd220[_0x532c8e(0x8f)](_0x532c8e(0xb5),{'allowAttributes':[_0x532c8e(0xcd)]}),_0x4fd220[_0x532c8e(0x92)](_0x532c8e(0xbd))&&_0x4fd220[_0x532c8e(0x8f)](_0x532c8e(0xbd),{'allowAttributes':[_0x532c8e(0xcd)]});}[_0x44407e(0xce)](){const _0x59c319=_0x44407e,_0x6d3294=this[_0x59c319(0xc4)];_0x6d3294[_0x59c319(0xc1)][_0x59c319(0x86)](_0x59c319(0xad))[_0x59c319(0x9e)]({'model':_0x59c319(0xcd),'view':_0x59c319(0xd6)}),_0x6d3294[_0x59c319(0xc1)][_0x59c319(0x86)](_0x59c319(0xa5))[_0x59c319(0xab)]({'model':{'key':_0x59c319(0xcd),'value':_0x32b396=>_0x32b396[_0x59c319(0xcb)](_0x59c319(0xd6))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x202143=_0x6d3294[_0x59c319(0xa0)][_0x59c319(0xb0)](_0x59c319(0xc3));_0x202143&&this[_0x59c319(0xa7)](_0x202143,_0x59c319(0xc0),(_0x31e46c,[_0x39690b,_0x2ca109])=>{const _0x1ce67a=_0x59c319;_0x39690b[_0x1ce67a(0x97)](_0x1ce67a(0xcd),_0x2ca109);});}[_0x44407e(0xb2)](){const _0xe89d9a=_0x44407e,_0x58ba32=this[_0xe89d9a(0xc4)][_0xe89d9a(0xcc)][_0xe89d9a(0xb0)](_0xe89d9a(0xc5))||{},_0x1e6515=this[_0xe89d9a(0xc4)][_0xe89d9a(0xcc)][_0xe89d9a(0xb0)](_0xe89d9a(0x87))||'';this[_0xe89d9a(0xd3)]=_0x961146(_0x2c1961[_0xe89d9a(0xa8)],_0xe89d9a(0xbc),{..._0x58ba32,'pubkey':_0x1e6515,'ctx-name':_0xe89d9a(0x90)+this[_0xe89d9a(0xc8)],'sourceList':'','imgOnly':_0xe89d9a(0xb6),'removeCopyright':_0xe89d9a(0xb6),'localeName':this[_0xe89d9a(0xc4)][_0xe89d9a(0xaf)][_0xe89d9a(0xbb)],'externalSourcesEmbedCss':_0xe89d9a(0xd1)}),this[_0xe89d9a(0xd3)][_0xe89d9a(0xbe)]=_0x5eb468=>{const _0x393f70=_0xe89d9a;if(_0x393f70(0xb1)==_0x5eb468)return _0x393f70(0xb3);},_0x2c1961[_0xe89d9a(0xa8)][_0xe89d9a(0xc9)][_0xe89d9a(0xd9)](this[_0xe89d9a(0xd3)]);}[_0x44407e(0xa2)](){const _0x4ab28b=_0x44407e;this[_0x4ab28b(0xa1)]=_0x961146(_0x2c1961[_0x4ab28b(0xa8)],_0x4ab28b(0x8b),{'ctx-name':_0x4ab28b(0x90)+this[_0x4ab28b(0xc8)]}),_0x2c1961[_0x4ab28b(0xa8)][_0x4ab28b(0xc9)][_0x4ab28b(0xd9)](this[_0x4ab28b(0xa1)]);}[_0x44407e(0x8c)](){const _0x49e69e=_0x44407e,_0x31138f=this[_0x49e69e(0xc4)][_0x49e69e(0xa0)][_0x49e69e(0xb0)](_0x49e69e(0xc7));_0x31138f&&this[_0x49e69e(0xa7)](_0x31138f,_0x49e69e(0xa4),()=>{const _0x4769dc=_0x49e69e,_0x1a5607=this[_0x4769dc(0xc4)][_0x4769dc(0xac)][_0x4769dc(0xa8)][_0x4769dc(0x85)][_0x4769dc(0xb4)]();_0x1a5607&&_0x1a5607[_0x4769dc(0xcb)](_0x4769dc(0xcd))&&this[_0x4769dc(0xc4)][_0x4769dc(0xd0)][_0x4769dc(0xd7)][_0x4769dc(0x9a)](_0x4769dc(0x91),()=>{const _0x37d360=_0x4769dc;_0x473e61(this[_0x37d360(0xc4)],_0x1a5607);});});const _0x17c694=this[_0x49e69e(0xc4)][_0x49e69e(0xa0)][_0x49e69e(0xb0)](_0x49e69e(0xb7));_0x17c694&&this[_0x49e69e(0xa7)](_0x17c694,_0x49e69e(0xa4),()=>{const _0x4505d9=_0x49e69e,_0x48badd=this[_0x4505d9(0xc4)][_0x4505d9(0xac)][_0x4505d9(0xa8)][_0x4505d9(0x85)][_0x4505d9(0xb4)]();_0x48badd&&_0x48badd[_0x4505d9(0xcb)](_0x4505d9(0xcd))&&this[_0x4505d9(0xc4)][_0x4505d9(0xd0)][_0x4505d9(0xd7)][_0x4505d9(0x9a)](_0x4505d9(0x91),()=>{const _0x4ea589=_0x4505d9;_0x473e61(this[_0x4ea589(0xc4)],_0x48badd);});});}}
|