@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251101.0 → 0.0.0-nightly-20251102.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x3ba018,Command as _0x9f6c51}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4fee3b,IconGooglePhotos as _0x1be7fd,IconGoogleDrive as _0x14ad76,IconFacebook as _0x5ffbe3,IconDropbox as _0x26ecdf,IconUploadcareLink as _0xb9a571,IconUploadcareImageUpload as _0x41031d,IconError as _0x5982d1,IconUploadcareImageEdit as _0x492800}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5d53c9,MenuBarMenuListItemButtonView as _0x4b1183,View as _0x4d65b1,FocusCycler as _0x21b020,Dialog as _0x1395c3,DialogViewPosition as _0x2152e4,SpinnerView as _0x391b89,IconView as _0x4f4a55,Notification as _0x34cd1c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x24489b,DomEmitterMixin as _0x4f8bd1,global as _0x11e893,getAncestors as _0x554b32,ObservableMixin as _0x2dfaf0,uid as _0x437ba5,createElement as _0x16c64c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xccc9da}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x40f05e,info as _0x490086}from'@uploadcare/upload-client';import*as _0x214642 from'@uploadcare/file-uploader';var i=function(_0x1ff45d){return _0x1ff45d['Local']='local',_0x1ff45d['URL']='url',_0x1ff45d['Dropbox']='dropbox',_0x1ff45d['GDrive']='gdrive',_0x1ff45d['Facebook']='facebook',_0x1ff45d['GPhotos']='gphotos',_0x1ff45d['OneDrive']='onedrive',_0x1ff45d;}({});function _(_0x3b029f,_0x9ade34,_0x47c27f){const t=_0x3b029f['t'],_0xbac574=_0x3b029f['t'];switch(_0x9ade34){case i['Local']:return{'text':_0xbac574('Insert'===_0x47c27f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xbac574('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x47c27f?_0xbac574('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xbac574('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x47c27f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x47c27f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x47c27f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x47c27f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x47c27f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x9ade34;}}class e extends _0x3ba018{['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 _0x2f384d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4e2134;for(const _0x2f0f6c in _0x2f384d){const _0x2b9ba1=_0x2f0f6c,_0x25994c=_0x2f384d[_0x2b9ba1];if('uploadcareLicenseKeyValid'==_0x25994c||'uploadcareLicenseKeyInvalid'==_0x25994c||'uploadcareLicenseKeyExpired'==_0x25994c||'uploadcareLicenseKeyDomainLimit'==_0x25994c||'uploadcareLicenseKeyNotAllowed'==_0x25994c||'uploadcareLicenseKeyEvaluationLimit'==_0x25994c||'uploadcareLicenseKeyTrialLimit'==_0x25994c||'uploadcareLicenseKeyUsageLimit'==_0x25994c){delete _0x2f384d[_0x2b9ba1],_0x4e2134=_0x25994c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4e2134&&_0x2f384d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4e2134&&_0x2f384d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4e2134&&_0x2f384d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4e2134&&_0x2f384d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4e2134&&_0x2f384d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4e2134&&_0x2f384d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4e2134&&_0x2f384d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xe2dae2}=this,_0x4d01ca=_0xe2dae2['commands']['get']('uploadcare');if(!_0x4d01ca)return;const _0x3fd6c0=this['_normalizeConfigSourceList'](_0xe2dae2['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5b59db,_0x4d4253)=>{const _0x41226f=this['_getIntegrationKey'](_0x4d4253['type']);return _0x5b59db[_0x41226f]||(_0x5b59db[_0x41226f]=[]),_0x5b59db[_0x41226f]['push'](_0x4d4253),_0x5b59db;},{});_0xe2dae2['plugins']['has']('ImageInsertUI')&&_0xe2dae2['commands']['get']('uploadcare')&&Object['entries'](_0x3fd6c0)['forEach'](([_0x19d808,_0x59030a])=>{_0xe2dae2['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x19d808,'observable':()=>_0x4d01ca,'buttonViewCreator':()=>this['_createToolbarButton'](_0x59030a),'formViewCreator':()=>this['_createDropdownButtons'](_0x59030a),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x59030a),'override':'assetManager'!==_0x19d808});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x339e81){const {locale:_0x128b5e}=this['editor'];return _0x339e81['map'](_0x2bb7ae=>{const _0x5980a9=_(_0x128b5e,_0x2bb7ae,'Insert');switch(_0x2bb7ae){case i['Local']:return{'icon':_0x41031d,'type':i['Local'],..._0x5980a9};case i['URL']:return{'icon':_0xb9a571,'type':i['URL'],..._0x5980a9};case i['Dropbox']:return{'icon':_0x26ecdf,'type':i['Dropbox'],..._0x5980a9};case i['Facebook']:return{'icon':_0x5ffbe3,'type':i['Facebook'],..._0x5980a9};case i['GDrive']:return{'icon':_0x14ad76,'type':i['GDrive'],..._0x5980a9};case i['GPhotos']:return{'icon':_0x1be7fd,'type':i['GPhotos'],..._0x5980a9};case i['OneDrive']:return{'icon':_0x4fee3b,'type':i['OneDrive'],..._0x5980a9};}});}['_getIntegrationKey'](_0xbf0f9f){switch(_0xbf0f9f){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4c04ba,_0x16137c){const _0x2dac26=this['editor'],_0x27182d=new _0x4c04ba(_0x2dac26['locale']),_0x24801b=_0x2dac26['commands']['get']('uploadcare');return _0x27182d['bind']('isEnabled')['to'](_0x24801b),_0x27182d['on']('execute',()=>{_0x24801b['execute'](_0x16137c);}),_0x27182d;}['_createToolbarButton'](_0x4a0dc5){const {locale:_0x2143d6}=this['editor'],_0x43edc5=this['editor']['plugins']['get']('ImageInsertUI'),_0x4163c4=_0x4a0dc5[0x0],_0x53b3f8=this['_createButton'](_0x5d53c9,_0x4163c4['type']);return _0x53b3f8['icon']=_0x4163c4['icon'],_0x53b3f8['bind']('label')['to'](_0x43edc5,'isImageSelected',_0x313d53=>_(_0x2143d6,_0x4163c4['type'],_0x313d53?'Replace':'Insert')['text']),_0x53b3f8['tooltip']=!0x0,_0x53b3f8;}['_createDropdownButtons'](_0x3f2cab){const {locale:_0x2b1850}=this['editor'],_0x2a4cb9=this['editor']['plugins']['get']('ImageInsertUI');return _0x3f2cab['map'](_0x530182=>{const _0x2a7efc=this['_createButton'](_0x5d53c9,_0x530182['type']);return _0x2a7efc['withText']=!0x0,_0x2a7efc['icon']=_0x530182['icon'],_0x2a7efc['bind']('label')['to'](_0x2a4cb9,'isImageSelected',_0x3877e0=>_(_0x2b1850,_0x530182['type'],_0x3877e0?'Replace':'Insert')['text']),_0x2a7efc;});}['_createMenuBarButtons'](_0x54bc56){return _0x54bc56['map'](_0x48ea34=>{const _0x1bdf28=this['_createButton'](_0x4b1183,_0x48ea34['type']);return _0x1bdf28['icon']=_0x48ea34['icon'],_0x1bdf28['label']=_0x48ea34['shortText'],_0x1bdf28;});}}class F extends _0x4d65b1{['focusTracker'];['focusCycler'];constructor(_0x472664){super(_0x472664),this['focusTracker']=new _0x24489b(),this['focusCycler']=new _0x21b020({'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(_0xf020b9,_0x27a2e8){super(_0xf020b9),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-'+_0x27a2e8}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x583097,_0x2b7cf7){const _0x43cc7e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5b8474=>_0x5b8474<=_0x2b7cf7)['map'](_0xa41ab5=>_0x583097['replace'](/\/$/,'')+'/-/resize/'+_0xa41ab5+'x/\x20'+_0xa41ab5+'w');return{'imageFallbackUrl':_0x583097,'imageSources':[{'srcset':_0x43cc7e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2b7cf7+'px)\x20100vw,\x20'+_0x2b7cf7+'px','type':'image/webp'}]};}function S(_0x20efcc,_0x188c62,_0x5bc38c){const _0x5f5216=_0x20efcc['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5f5216?parseInt(_0x5f5216[0x1],0xa):_0x188c62,'height':_0x5f5216?parseInt(_0x5f5216[0x2],0xa):_0x5bc38c};}function p(_0x590632,_0x24dacb){const _0x247de5=new(_0x4f8bd1())(),_0x1a8563=_0x590632['plugins']['get']('ImageUtils'),_0x2c073e=_0x590632['editing']['mapper']['toViewElement'](_0x24dacb),_0x54f650=_0x1a8563['findViewImgElement'](_0x2c073e),_0x539afa=_0x590632['editing']['view']['domConverter']['viewToDom'](_0x54f650),_0x394ae9=_0x24dacb['getAttribute']('width'),_0x28abef=_0x24dacb['getAttribute']('height'),_0x38e879='image-processing';_0x590632['editing']['view']['change'](_0xbf391a=>{_0xbf391a['addClass'](_0x38e879,_0x2c073e),_0xbf391a['setStyle']('aspect-ratio',_0x394ae9+'/'+_0x28abef,_0x54f650);}),_0x247de5['listenTo'](_0x539afa,'load',()=>{_0x247de5['stopListening'](_0x539afa,'load'),_0x590632['editing']['view']['change'](_0x29bfcb=>{_0x29bfcb['removeClass'](_0x38e879,_0x2c073e),_0x29bfcb['removeStyle']('aspect-ratio',_0x54f650);});});}function z(_0x270cb0){if(Array['isArray'](_0x270cb0)){const _0x27a70c=_0x270cb0['map'](z);return _0x11b037=>_0x27a70c['some'](_0x762df2=>_0x762df2(_0x11b037));}if('origin'==_0x270cb0){const _0x5225e8=_0x11e893['window']['location']['origin'];return _0x363e24=>new URL(_0x363e24,_0x11e893['document']['baseURI'])['origin']==_0x5225e8;}return'function'==typeof _0x270cb0?_0x270cb0:_0x270cb0 instanceof RegExp?_0x53487f=>!(!_0x53487f['match'](_0x270cb0)&&!_0x53487f['replace'](/^https?:\/\//,'')['match'](_0x270cb0)):()=>!0x1;}function A(_0x5e9653,_0x56f315){return _0x554b32(_0x5e9653['target'])['includes'](_0x56f315);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x2dfaf0(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5735e9,_0x55d9e7,_0xeb7c14){super(),this['_editor']=_0x5735e9,this['_editing']=_0x55d9e7,this['_dialog']=_0x5735e9['plugins']['get'](_0x1395c3),this['_api']=_0x55d9e7['ctxElement']['getAPI'](),this['_type']=_0xeb7c14,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:_0x26968b,model:_0x46c710}=this['_editor'],_0x32527e=_0x46c710['document']['selection']['getSelectedElement'](),_0x58f54f=_0x32527e&&(_0x32527e['is']('element','imageBlock')||_0x32527e['is']('element','imageInline'));this['_formView']=new x(_0x26968b,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x41031d,'title':_(_0x26968b,this['_type'],_0x58f54f?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2152e4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x622ba4=>!A(_0x622ba4,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4c5e51}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x17940f=>{const _0x102c6f=_0x4c5e51['length'];for(const _0xaf208 of _0x4c5e51){const _0x2d4c53=_0xaf208===_0x4c5e51[_0x102c6f-0x1],{cdnUrl:_0x3f1e45,fileInfo:_0x3252b4}=_0xaf208;if(!_0x3f1e45||!_0x3252b4)continue;const {width:_0x3514d2,height:_0x57089d}=_0x3252b4['imageInfo'],_0x1a9804=S(_0x3f1e45,_0x3514d2,_0x57089d),_0x6ca649=C(_0x3f1e45,_0x1a9804['width']),_0x2d069d={'id':_0x3252b4['uuid'],'type':'image','attributes':{'imageDimension':_0x1a9804,..._0x6ca649}};this['_insertAsset'](_0x2d069d,_0x2d4c53,_0x17940f);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x15b704=>{'idle'===_0x15b704['detail']['status']&&!_0x15b704['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x56d85e,_0x2a92b4,_0x3ac1dd){const _0x43dbce=this['_editor']['model']['document']['selection'],_0x20d894=_0x43dbce['getSelectedElement'](),_0x70053a=!(!_0x20d894||!_0x20d894['is']('element','imageInline'));_0x3ac1dd['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x56d85e,_0x70053a),_0x2a92b4||_0x3ac1dd['setSelection'](_0x43dbce['getLastPosition']());}['_insertImage'](_0x4915a8,_0x5e41bd){const _0x568342=this['_editor'],{imageDimension:_0x443a41,imageFallbackUrl:_0x56f147,imageSources:_0x273ccc}=_0x4915a8['attributes'];_0x568342['execute']('insertImage',{'imageType':_0x5e41bd?'imageInline':null,'source':{'uploadcareImageId':_0x4915a8['id'],'src':_0x56f147,'sources':_0x273ccc,..._0x443a41}});}}class w extends _0x9f6c51{['_editing'];['_controller']=null;static get['requires'](){return[_0x1395c3,o];}constructor(_0x2b12c5){super(_0x2b12c5),this['_editing']=_0x2b12c5['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1987a2){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1987a2);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1f15ea,..._0x59b69a}){return _0x40f05e(_0x1f15ea,_0x59b69a);}static['getInfo'](_0x67ebfd,_0x3717e7){return _0x490086(_0x67ebfd,_0x3717e7);}}class f extends _0x3ba018{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xccc9da,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3a5b19=this['editor'];if(!!!_0x3a5b19['config']['get']('uploadcare'))return;_0x3a5b19['plugins']['get'](_0xccc9da)['createUploadAdapter']=_0x52817c=>new k(_0x52817c,_0x3a5b19),_0x3a5b19['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x20eae8,{imageElement:_0x1ccebf,data:_0x252efe})=>{_0x3a5b19['model']['change'](_0x3abe65=>{_0x3abe65['setAttribute']('uploadcareImageId',_0x252efe['uploadcareImageId'],_0x1ccebf);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x45137c,_0x2fc4a5){this['loader']=_0x45137c,this['editor']=_0x2fc4a5,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4fd958=await this['loader']['file'];return j['upload']({'file':_0x4fd958,'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':_0xf604f1=>{_0xf604f1&&_0xf604f1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xf604f1['value']);}})['then'](async _0x5037a4=>{const {imageFallbackUrl:_0x5dd40c,imageSources:_0x1c8815}=C(_0x5037a4['cdnUrl'],_0x5037a4['imageInfo']['width']);return{'uploadcareImageId':_0x5037a4['uuid'],'default':_0x5dd40c,'sources':_0x1c8815};})['catch'](()=>{const _0x2c0a2a=t('Cannot\x20upload\x20file:')+('\x20'+_0x4fd958['name']+'.');return Promise['reject'](_0x2c0a2a);});}['abort'](){this['controller']['abort']();}}class o extends _0x3ba018{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1395c3];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x53b156){super(_0x53b156),this['ucContextId']=_0x437ba5();}['init'](){const _0x2b5598=this['editor'];_0x2b5598['commands']['add']('uploadcare',new w(_0x2b5598));}['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 _0x368cb0=_0x11e893['document']['querySelector']('input[uploadcare-file-input]');_0x368cb0&&_0x368cb0['remove']();}),async function(_0x4e9d41){const _0x247278=_0x5c3eac([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]),_0x14b282=0x535f8c3a,_0x3fc548=0x5358fbe2^_0x14b282,_0x269df1=window[_0x5c3eac([0x44,0x61,0x74,0x65])][_0x5c3eac([0x6e,0x6f,0x77])](),_0x4bcb61=_0x4e9d41[_0x5c3eac([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x258436=new window[(_0x5c3eac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ad17b=>{_0x4bcb61[_0x5c3eac([0x6f,0x6e,0x63,0x65])](_0x5c3eac([0x72,0x65,0x61,0x64,0x79]),_0x3ad17b);}),_0x32261c={[_0x5c3eac([0x6b,0x74,0x79])]:_0x5c3eac([0x45,0x43]),[_0x5c3eac([0x75,0x73,0x65])]:_0x5c3eac([0x73,0x69,0x67]),[_0x5c3eac([0x63,0x72,0x76])]:_0x5c3eac([0x50,0x2d,0x32,0x35,0x36]),[_0x5c3eac([0x78])]:_0x5c3eac([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]),[_0x5c3eac([0x79])]:_0x5c3eac([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]),[_0x5c3eac([0x61,0x6c,0x67])]:_0x5c3eac([0x45,0x53,0x32,0x35,0x36])},_0x18ab0d=_0x4bcb61[_0x5c3eac([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5c3eac([0x67,0x65,0x74])](_0x5c3eac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xe438b3(){let _0x3dbf2b,_0x2e983c=null,_0x4ee266=null;try{if(_0x18ab0d==_0x5c3eac([0x47,0x50,0x4c]))return _0x5c3eac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3dbf2b=_0x4880fa(),!_0x3dbf2b)return _0x5c3eac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3dbf2b[_0x5c3eac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ee266=_0x265635(_0x3dbf2b[_0x5c3eac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3dbf2b[_0x5c3eac([0x6a,0x74,0x69])])),await _0x2c86a8()?_0x474761()?_0x43235e()?_0x5c3eac([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x25fb28()?(_0x3dbf2b[_0x5c3eac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c3eac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2e983c=_0x2fb57d(_0x5c3eac([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3dbf2b[_0x5c3eac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c3eac([0x74,0x72,0x69,0x61,0x6c])&&(_0x2e983c=_0x2fb57d(_0x5c3eac([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b2112()):_0x5c3eac([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5c3eac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5c3eac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5c3eac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x43235e(){const _0x1dc692=[_0x5c3eac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5c3eac([0x74,0x72,0x69,0x61,0x6c])][_0x5c3eac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3dbf2b[_0x5c3eac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x269df1/0x3e8:0xe10*_0x3fc548;return _0x3dbf2b[_0x5c3eac([0x65,0x78,0x70])]<_0x1dc692;}function _0x474761(){const _0x4d886c=_0x3dbf2b[_0x5c3eac([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4d886c&&(!!_0x4d886c[_0x5c3eac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c3eac([0x2a]))||!!_0x4d886c[_0x5c3eac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c3eac([0x55,0x50,0x4c,0x43])));}function _0x25fb28(){const _0x21a2d2=_0x3dbf2b[_0x5c3eac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x21a2d2||0x0==_0x21a2d2[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x41f4dc}=new URL(window[_0x5c3eac([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x21a2d2[_0x5c3eac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41f4dc))return!0x0;const _0x232c45=_0x41f4dc[_0x5c3eac([0x73,0x70,0x6c,0x69,0x74])](_0x5c3eac([0x2e]));return _0x21a2d2[_0x5c3eac([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xbee62e=>_0xbee62e[_0x5c3eac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c3eac([0x2a])))[_0x5c3eac([0x6d,0x61,0x70])](_0x5c24eb=>_0x5c24eb[_0x5c3eac([0x73,0x70,0x6c,0x69,0x74])](_0x5c3eac([0x2e])))[_0x5c3eac([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32a079=>_0x32a079[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x232c45[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c3eac([0x6d,0x61,0x70])](_0x1bc55c=>Array(_0x232c45[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1bc55c[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c3eac([0x66,0x69,0x6c,0x6c])](_0x1bc55c[0x0]===_0x5c3eac([0x2a])?_0x5c3eac([0x2a]):'')[_0x5c3eac([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1bc55c))[_0x5c3eac([0x73,0x6f,0x6d,0x65])](_0x212013=>_0x232c45[_0x5c3eac([0x65,0x76,0x65,0x72,0x79])]((_0x140f6f,_0x2e5cbf)=>_0x212013[_0x2e5cbf]===_0x140f6f||_0x212013[_0x2e5cbf]===_0x5c3eac([0x2a])));}function _0x3b2112(){return _0x2e983c&&_0x4ee266?new window[(_0x5c3eac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x443311,_0x4ec2f4)=>{_0x2e983c[_0x5c3eac([0x74,0x68,0x65,0x6e])](_0x443311,_0x4ec2f4),_0x4ee266[_0x5c3eac([0x74,0x68,0x65,0x6e])](_0x2b9b6e=>{_0x2b9b6e!=_0x5c3eac([0x56,0x61,0x6c,0x69,0x64])&&_0x443311(_0x2b9b6e);},_0x4ec2f4);}):_0x2e983c||_0x4ee266||_0x5c3eac([0x56,0x61,0x6c,0x69,0x64]);}}function _0x265635(_0x3fc632,_0x14a963){return new window[(_0x5c3eac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2969e3=>{if(_0x1866a9())return _0x2969e3(_0x5c3eac([0x56,0x61,0x6c,0x69,0x64]));_0x4a1b50(),_0x4bcb61[_0x5c3eac([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5c3eac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x52e76e=!0x1;const _0x4a3f44=_0x437ba5();function _0x52f587(_0x2a8504){return!!_0x2a8504&&(typeof _0x2a8504===_0x5c3eac([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2a8504===_0x5c3eac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2a8504[_0x5c3eac([0x74,0x68,0x65,0x6e])]===_0x5c3eac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2a8504[_0x5c3eac([0x63,0x61,0x74,0x63,0x68])]===_0x5c3eac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f5a19(_0x252fe0){_0x243539(_0x252fe0)[_0x5c3eac([0x74,0x68,0x65,0x6e])](_0x4c9bef=>{if(!_0x4c9bef||_0x4c9bef[_0x5c3eac([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5c3eac([0x6f,0x6b]))return _0x5c3eac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1f437a(_0x1f0b9b(_0x4a3f44+_0x14a963))!=_0x4c9bef[_0x5c3eac([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5c3eac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5c3eac([0x56,0x61,0x6c,0x69,0x64]);})[_0x5c3eac([0x74,0x68,0x65,0x6e])](_0x2fad9f=>(_0x2ea710(),_0x2fad9f),()=>{const _0x119118=_0x1d837a();return null==_0x119118?(_0x2ea710(),_0x5c3eac([0x56,0x61,0x6c,0x69,0x64])):_0x5c3eac(_0x269df1-_0x119118>(0x7753083a^_0x14b282)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5c3eac([0x74,0x68,0x65,0x6e])](_0x2969e3)[_0x5c3eac([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2969e3(_0x5c3eac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4afd76=0x536962ba^_0x14b282;function _0x2ea710(){const _0x2720a1=_0x5c3eac([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f437a(_0x1f0b9b(_0x3fc632)),_0x3935dc=_0x55c320(_0x1f437a(window[_0x5c3eac([0x4d,0x61,0x74,0x68])][_0x5c3eac([0x63,0x65,0x69,0x6c])](_0x269df1/_0x4afd76)));window[_0x5c3eac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c3eac([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2720a1,_0x3935dc);}function _0x1d837a(){const _0xb6a1e6=_0x5c3eac([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f437a(_0x1f0b9b(_0x3fc632)),_0x278c8b=window[_0x5c3eac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c3eac([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb6a1e6);return _0x278c8b?window[_0x5c3eac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55c320(_0x278c8b),0x10)*_0x4afd76:null;}function _0x243539(_0x57ea7c){return new window[(_0x5c3eac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3866ee,_0x35fe97)=>{_0x57ea7c[_0x5c3eac([0x74,0x68,0x65,0x6e])](_0x3866ee,_0x35fe97),window[_0x5c3eac([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35fe97,0x535e58fa^_0x14b282);});}}_0x4bcb61[_0x5c3eac([0x6f,0x6e])](_0x5c3eac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x225b23,_0x4c2fb8)=>{if(_0x4c2fb8[0x0]!=_0x3fc632)return _0x2969e3(_0x5c3eac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c2fb8[0x1]={..._0x4c2fb8[0x1],[_0x5c3eac([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4a3f44};},{[_0x5c3eac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c3eac([0x68,0x69,0x67,0x68])}),_0x4bcb61[_0x5c3eac([0x6f,0x6e])](_0x5c3eac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2bcefa=>{_0x52f587(_0x2bcefa[_0x5c3eac([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x52e76e=!0x0,_0x2f5a19(_0x2bcefa[_0x5c3eac([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5c3eac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c3eac([0x6c,0x6f,0x77])}),_0x258436[_0x5c3eac([0x74,0x68,0x65,0x6e])](()=>{_0x52e76e||_0x2969e3(_0x5c3eac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1866a9(){return _0x4bcb61[_0x5c3eac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c3eac([0x76,0x69,0x65,0x77])][_0x5c3eac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5c3eac([0x61,0x75,0x74,0x6f]);}function _0x4a1b50(){_0x4bcb61[_0x5c3eac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c3eac([0x76,0x69,0x65,0x77])][_0x5c3eac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c3eac([0x61,0x75,0x74,0x6f]);}}function _0x2fb57d(_0x126169){const _0x34f92c=[new window[(_0x5c3eac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x434231=>setTimeout(_0x434231,0x5356b2f6^_0x14b282)),_0x258436[_0x5c3eac([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5c3eac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f2d98=>{let _0x4f4f20=0x0;_0x4bcb61[_0x5c3eac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c3eac([0x6f,0x6e])](_0x5c3eac([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3da41f,_0x447d91)=>{_0x447d91[0x0][_0x5c3eac([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4f4f20++,_0x4f4f20==(0x535f8dc2^_0x14b282)&&(_0x4f2d98(),_0x3da41f[_0x5c3eac([0x6f,0x66,0x66])]());});}))];return window[_0x5c3eac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c3eac([0x72,0x61,0x63,0x65])](_0x34f92c)[_0x5c3eac([0x74,0x68,0x65,0x6e])](()=>_0x126169);}async function _0x178e8e(){await _0x258436,_0x4bcb61[_0x5c3eac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c3eac([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1abb55,_0x4bcb61[_0x5c3eac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c3eac([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1abb55,_0x4bcb61[_0x5c3eac([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5c3eac([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x341131(_0x4fb4fe){const _0x3d98b8=_0xb7e01e();_0x4bcb61[_0x3d98b8]=_0x5c3eac([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4fb4fe,_0x4fb4fe!=_0x5c3eac([0x56,0x61,0x6c,0x69,0x64])&&_0x178e8e();}function _0xb7e01e(){const _0x1e4207=window[_0x5c3eac([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5c3eac([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5c3eac([0x6e,0x6f,0x77])]())[_0x5c3eac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5c3eac([0x2e]),'');let _0x47af30=_0x5c3eac([0x68]);for(let _0x2eda36=0x0;_0x2eda36<_0x1e4207[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2eda36+=0x2){let _0x4ee7f2=window[_0x5c3eac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e4207[_0x5c3eac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2eda36,_0x2eda36+0x2));_0x4ee7f2>=_0x247278[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ee7f2-=_0x247278[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x47af30+=_0x247278[_0x4ee7f2];}return _0x47af30;}function _0x4880fa(){const _0x4313ed=_0x18ab0d[_0x5c3eac([0x73,0x70,0x6c,0x69,0x74])](_0x5c3eac([0x2e]));if(0x3!=_0x4313ed[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x96d6aa(_0x4313ed[0x1]);function _0x96d6aa(_0x24c6a2){const _0x18af27=_0x10b27c(_0x24c6a2);return _0x18af27&&_0x47f94e()?_0x18af27:null;function _0x47f94e(){const _0x5bc88f=_0x18af27[_0x5c3eac([0x6a,0x74,0x69])],_0x110cec=window[_0x5c3eac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bc88f[_0x5c3eac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5bc88f[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x446e1b={..._0x18af27,[_0x5c3eac([0x6a,0x74,0x69])]:_0x5bc88f[_0x5c3eac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5bc88f[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x446e1b[_0x5c3eac([0x76,0x63])],_0x1f0b9b(_0x446e1b)==_0x110cec;}}}async function _0x2c86a8(){let _0x5a4991=!0x0;try{const _0x5a1cae=_0x18ab0d[_0x5c3eac([0x73,0x70,0x6c,0x69,0x74])](_0x5c3eac([0x2e])),[_0x52ce4b,_0x2a44e2,_0x59c7a5]=_0x5a1cae;return _0x1a9d25(_0x52ce4b),await _0x4c090f(_0x52ce4b,_0x2a44e2,_0x59c7a5),_0x5a4991;}catch{return!0x1;}function _0x1a9d25(_0x4da29f){const _0x4d0184=_0x10b27c(_0x4da29f);_0x4d0184&&_0x4d0184[_0x5c3eac([0x61,0x6c,0x67])]==_0x5c3eac([0x45,0x53,0x32,0x35,0x36])||(_0x5a4991=!0x1);}async function _0x4c090f(_0x5ceb47,_0x2bf7f2,_0x16a626){const _0x4d0f62=window[_0x5c3eac([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5c3eac([0x66,0x72,0x6f,0x6d])](_0xdb4d59(_0x16a626),_0x529f5e=>_0x529f5e[_0x5c3eac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1a837d=new window[(_0x5c3eac([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5c3eac([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5ceb47+_0x5c3eac([0x2e])+_0x2bf7f2),_0x3a871a=window[_0x5c3eac([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5c3eac([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3a871a)return;const _0x59e61f=await _0x3a871a[_0x5c3eac([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5c3eac([0x6a,0x77,0x6b]),_0x32261c,{[_0x5c3eac([0x6e,0x61,0x6d,0x65])]:_0x5c3eac([0x45,0x43,0x44,0x53,0x41]),[_0x5c3eac([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5c3eac([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5c3eac([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3a871a[_0x5c3eac([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5c3eac([0x6e,0x61,0x6d,0x65])]:_0x5c3eac([0x45,0x43,0x44,0x53,0x41]),[_0x5c3eac([0x68,0x61,0x73,0x68])]:{[_0x5c3eac([0x6e,0x61,0x6d,0x65])]:_0x5c3eac([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x59e61f,_0x4d0f62,_0x1a837d)||(_0x5a4991=!0x1);}}function _0x10b27c(_0x250ea8){return _0x250ea8[_0x5c3eac([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5c3eac([0x65,0x79]))?JSON[_0x5c3eac([0x70,0x61,0x72,0x73,0x65])](_0xdb4d59(_0x250ea8)):null;}function _0xdb4d59(_0x13fb9d){return window[_0x5c3eac([0x61,0x74,0x6f,0x62])](_0x13fb9d[_0x5c3eac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5c3eac([0x2b]))[_0x5c3eac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5c3eac([0x2f])));}function _0x1f0b9b(_0x46f1c0){let _0x5578c7=0x1505;function _0x4bf014(_0x2f608c){for(let _0x567ef7=0x0;_0x567ef7<_0x2f608c[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x567ef7++){const _0x572ae4=_0x2f608c[_0x5c3eac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x567ef7);_0x5578c7=(_0x5578c7<<0x5)+_0x5578c7+_0x572ae4,_0x5578c7&=_0x5578c7;}}function _0x581433(_0x103078){Array[_0x5c3eac([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x103078)?_0x103078[_0x5c3eac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x581433):_0x103078&&typeof _0x103078==_0x5c3eac([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5c3eac([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x103078)[_0x5c3eac([0x73,0x6f,0x72,0x74])]()[_0x5c3eac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c200b,_0x5f5471])=>{_0x4bf014(_0x3c200b),_0x581433(_0x5f5471);}):_0x4bf014(window[_0x5c3eac([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x103078));}return _0x581433(_0x46f1c0),_0x5578c7>>>0x0;}function _0x1f437a(_0x4c018c){return _0x4c018c[_0x5c3eac([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5c3eac([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5c3eac([0x30]));}function _0x55c320(_0x49c772){return _0x49c772[_0x5c3eac([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5c3eac([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5c3eac([0x6a,0x6f,0x69,0x6e])]('');}function _0x1abb55(){}function _0x5c3eac(_0x247a4f){return _0x247a4f['map'](_0x4dd542=>String['fromCharCode'](_0x4dd542))['join']('');}_0x341131(await _0xe438b3());}(this);}['_initSchema'](){const _0x131beb=this['editor']['model']['schema'];_0x131beb['isRegistered']('imageBlock')&&_0x131beb['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x131beb['isRegistered']('imageInline')&&_0x131beb['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x54f738=this['editor'];_0x54f738['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x54f738['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4e9c3a=>_0x4e9c3a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xa197e0=_0x54f738['commands']['get']('replaceImageSource');_0xa197e0&&this['listenTo'](_0xa197e0,'cleanupImage',(_0x22ed61,[_0x4b251c,_0x159168])=>{_0x4b251c['removeAttribute']('uploadcareImageId',_0x159168);});}['_initConfig'](){const _0x528492=this['editor']['config']['get']('uploadcare.uploader')||{},_0x54408c=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x16c64c(_0x11e893['document'],'uc-config',{..._0x528492,'pubkey':_0x54408c,'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']=_0x8514a9=>{if('closeMax'==_0x8514a9)return'#uc-icon-arrow-down';},_0x11e893['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x16c64c(_0x11e893['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x11e893['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x30c762=this['editor']['commands']['get']('insertImage');_0x30c762&&this['listenTo'](_0x30c762,'execute',()=>{const _0x44fc03=this['editor']['model']['document']['selection']['getSelectedElement']();_0x44fc03&&_0x44fc03['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x44fc03);});});const _0xb3160d=this['editor']['commands']['get']('uploadcareImageReplace');_0xb3160d&&this['listenTo'](_0xb3160d,'execute',()=>{const _0x8d0ae4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x8d0ae4&&_0x8d0ae4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x8d0ae4);});});}}class tt extends _0x3ba018{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4339aa){super(_0x4339aa),_0x4339aa['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x214642['defineComponents'](_0x214642),this['_defineLocale']();}['_defineLocale'](){const _0x681798=this['editor']['config']['get']('uploadcare.locale'),_0xf82b31=this['editor']['locale']['contentLanguage'];_0x681798&&_0x214642['defineLocale'](_0xf82b31,_0x681798);}}class ii extends _0x4d65b1{constructor(_0x4b1d04){super(_0x4b1d04);const t=_0x4b1d04['t'],_0xd38beb=this['bindTemplate'],_0x4db95a=new _0x391b89();_0x4db95a['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':[_0x4db95a,{'text':_0xd38beb['to']('imageUploadProgress',_0x557f76=>t('Loading\x20image...')+'\x20('+(_0x557f76||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 _0x4d65b1{constructor(_0x141d43){super(_0x141d43);const t=_0x141d43['t'];this['set']('errorType',null);const _0x410158=new _0x5d53c9(_0x141d43);_0x410158['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x410158['withText']=!0x0,_0x410158['class']='ck-button-action',_0x410158['on']('execute',()=>{this['fire']('retry');}),_0x410158['bind']('isVisible')['to'](this,'errorType',_0x249b87=>'NotFound'!==_0x249b87);const _0x2db016=new _0x4f4a55();_0x2db016['content']=_0x5982d1,_0x2db016['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x51fcbd=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':[_0x2db016,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x51fcbd['to']('errorType',_0x4d44e6=>t('NotFound'!==_0x4d44e6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x410158]},{'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 _0x4d65b1{constructor(_0x1d2c70,_0x3bf259){super(_0x1d2c70);const _0x129253=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3bf259,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x129253['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1fc96d,_0x3f3dbd,_0x56b957){super(_0x1fc96d),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1fc96d),this['_errorView']=new ti(_0x1fc96d),this['_editingView']=new ei(_0x1fc96d,_0x56b957),this['_focusableView']=new _0x4d65b1(_0x1fc96d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3f3dbd),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'],_0x2f5c9c=>{this['_addUploadcareImageEditorListeners'](_0x2f5c9c);});}),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'](_0x1af66c,_0x5defd5){const _0x11b5bb='uc-cloud-image-editor',_0x4cb505=_0x1af66c['querySelector'](_0x11b5bb);if(_0x4cb505)return _0x5defd5(_0x4cb505);const _0x1fc80c=new MutationObserver(_0x3e4ab6=>{const _0x4cd729=_0x3e4ab6['filter'](_0x1623e6=>_0x1623e6['target']===_0x1af66c&&_0x1623e6['addedNodes']['length']>0x0&&_0x1623e6['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x11b5bb);_0x4cd729['length']&&(_0x1fc80c['disconnect'](),_0x5defd5(_0x4cd729[0x0]['addedNodes'][0x0]));});_0x1fc80c['observe'](_0x1af66c,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x25d7dd){_0x25d7dd['addEventListener']('apply',_0x48b27b=>{this['fire']('apply',{'imageSrc':_0x48b27b['detail']['cdnUrl']});}),_0x25d7dd['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2dfaf0(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4e1e90,_0x3ddd15,_0x157f20){super(),this['_editor']=_0x4e1e90,this['_dialog']=_0x3ddd15,this['_imageElement']=_0x157f20,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 _0x9f8613=this['_imageElement'],_0x320587=_0x9f8613['getAttribute']('uploadcareImageId'),_0xe9d783=_0x9f8613['getAttribute']('src');if(_0x320587)await this['_loadImageInfo'](_0x320587,_0xe9d783);else{if(this['_imageCache']['has'](_0xe9d783)){const _0x5023d4=this['_imageCache']['get'](_0xe9d783);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5023d4['url'],this['imageDimension']=_0x5023d4['dimension'],this['imageId']=_0x5023d4['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3131a5}=this['_editor'],t=_0x3131a5['t'],_0x6ae334=new X(_0x3131a5,this['imageStatus'],this['_attributes']);_0x6ae334['bind']('status')['to'](this,'imageStatus'),_0x6ae334['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x6ae334['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x6ae334['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x6ae334,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x492800,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x6ae334,'position':_0x2152e4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x6ae334['focus']();},'onHide':()=>{_0x6ae334['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x200383=>!A(_0x200383,_0x6ae334['element'])}});}['_loadImageInfo'](_0x52fdbd,_0x5e5190){return j['getInfo'](_0x52fdbd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x182afd=>{const {width:_0x28a186,height:_0xb9b658}=_0x182afd['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5e5190,this['imageDimension']={'width':_0x28a186,'height':_0xb9b658},this['imageId']=_0x52fdbd;})['catch'](_0x5e3c70=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5e3c70['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3faf7f,_0x2bebb5){return this['_getImageAsFile'](_0x3faf7f)['then'](_0x58a84b=>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':_0x2bebb5['signal'],'file':_0x58a84b,'onProgress':_0x9e75ee=>{_0x9e75ee&&_0x9e75ee['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x9e75ee['value']));}}))['then'](_0x56359b=>{const {width:_0x3a8756,height:_0x2dc43e}=_0x56359b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x56359b['cdnUrl'],this['imageDimension']={'width':_0x3a8756,'height':_0x2dc43e},this['imageId']=_0x56359b['uuid'],this['imageUploadProgress']=null;const _0x56593a=_0x3faf7f['getAttribute']('src');this['_imageCache']['set'](_0x56593a,{'id':_0x56359b['uuid'],'url':_0x56359b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5d9276=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5d9276['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1eff7a,_0x5a0656){_0x1eff7a['on']('apply',(_0x149e1c,_0x4ca142)=>{this['_replaceImage'](_0x5a0656,_0x4ca142['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1eff7a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1eff7a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x422731,_0x4d3834,_0x1aa30b){const _0x135746=this['_editor'],{width:_0x1e641f,height:_0x40067c}=S(_0x4d3834,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3dae91,imageSources:_0x423214}=C(_0x4d3834,_0x1e641f);_0x135746['model']['change'](_0x2d257b=>{if('$graveyard'===_0x422731['root']['rootName']){_0x135746['execute']('insertImage',{'imageType':_0x422731['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x422731['getAttributes']()),'uploadcareImageId':_0x1aa30b,'src':_0x3dae91,'sources':_0x423214,'width':_0x1e641f,'height':_0x40067c}});const _0x38ccad=_0x422731['getChildren']();_0x422731=_0x135746['model']['document']['selection']['getSelectedElement']();for(const _0x1f91fb of _0x38ccad)_0x2d257b['append'](_0x2d257b['cloneElement'](_0x1f91fb),_0x422731);}else _0x2d257b['setSelection'](_0x422731,'on'),_0x135746['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x422731['getAttributes']()),'uploadcareImageId':_0x1aa30b,'src':_0x3dae91,'sources':_0x423214,'width':_0x1e641f,'height':_0x40067c},_0x422731);_0x2d257b['setSelection'](_0x422731,'on');});}async['_getImageAsFile'](_0x45027f){const _0x2b39bb=_0x11e893['window'],_0x81211c=_0x11e893['document']['location']['href'],_0x9f0edb=new _0x2b39bb['URL'](_0x45027f['getAttribute']('src'),_0x81211c);if('data:'===_0x9f0edb['protocol']){const _0x5def00=_0x9f0edb['href']['split'](','),_0x2cff07=_0x5def00[0x0]['match'](/:(.*?);/)[0x1],_0x29f74b=_0x2cff07['split']('/')[0x1],_0x5b2fcd=_0x2b39bb['atob'](_0x5def00[_0x5def00['length']-0x1]);let _0x2ee950=_0x5b2fcd['length'];const _0x320268=new _0x2b39bb['Uint8Array'](_0x2ee950);for(;_0x2ee950--;)_0x320268[_0x2ee950]=_0x5b2fcd['charCodeAt'](_0x2ee950);return new _0x2b39bb['File']([_0x320268],'image.'+_0x29f74b,{'type':_0x2cff07});}const _0x7c84fa=_0x9f0edb['href']['split']('/'),_0x5065e4=_0x7c84fa[_0x7c84fa['length']-0x1],_0x370856=_0x5065e4['split']('.')[0x1];return _0x2b39bb['fetch'](_0x9f0edb['href'])['then'](_0x4be2fb=>_0x4be2fb['clone']()['blob']())['then'](_0x12525e=>new _0x2b39bb['File']([_0x12525e],_0x5065e4,{'type':'image/'+_0x370856}));}}class Q extends _0x9f6c51{['imageEditController'];static get['requires'](){return[_0x1395c3];}['_isEditable'];constructor(_0x37ffc7){super(_0x37ffc7),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2252c8){const _0x5c84a9=z(_0x2252c8);return _0x1ced25=>!(!_0x1ced25||!_0x1ced25['is']('element','imageBlock')&&!_0x1ced25['is']('element','imageInline'))&&(!!_0x1ced25['hasAttribute']('uploadcareImageId')||!!_0x1ced25['hasAttribute']('src')&&_0x5c84a9(_0x1ced25['getAttribute']('src')));}(_0x37ffc7['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x583564=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x583564);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xd7703c=this['editor']['model']['document']['selection']['getSelectedElement']();_0xd7703c&&(_0xd7703c['is']('element','imageBlock')||_0xd7703c['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x1395c3),_0xd7703c),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x9f6c51{['refresh'](){const _0x31f757=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x31f757&&(_0x31f757['is']('element','imageBlock')||_0x31f757['is']('element','imageInline')));}['execute'](_0x340903){const _0x5269fe=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1b2b23=>{_0x1b2b23['setAttributes'](_0x340903,_0x5269fe),_0x1b2b23['removeAttribute']('srcset',_0x5269fe),_0x1b2b23['removeAttribute']('sizes',_0x5269fe);});}}class m extends _0x3ba018{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x34cd1c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x111cd4}=this;_0x111cd4['commands']['add']('uploadcareImageEdit',new Q(_0x111cd4)),_0x111cd4['commands']['add']('uploadcareImageReplace',new V(_0x111cd4));}}class g extends _0x3ba018{['_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 _0x447e55=this['editor'];_0x447e55['ui']['componentFactory']['add']('uploadcareImageEdit',_0x23071c=>{const _0x309941=_0x447e55['commands']['get']('uploadcareImageEdit'),_0x179c00=new _0x5d53c9(_0x23071c),t=_0x23071c['t'];return _0x179c00['set']({'icon':_0x492800,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x179c00['bind']('isEnabled')['to'](_0x309941),_0x179c00['bind']('isOn')['to'](_0x309941,'isActive'),this['listenTo'](_0x179c00,'execute',()=>{_0x447e55['execute']('uploadcareImageEdit'),_0x447e55['editing']['view']['focus']();}),_0x179c00;}),this['_initConfig']();}['_initConfig'](){const _0x31077c=_0x16c64c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x31077c),this['listenTo'](this['editor'],'destroy',()=>{_0x31077c['remove']();});}}class et extends _0x3ba018{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x2e76a1,Command as _0xd16021}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1ac82b,IconGooglePhotos as _0x383296,IconGoogleDrive as _0x2e2165,IconFacebook as _0x48918e,IconDropbox as _0x38e171,IconUploadcareLink as _0x33acab,IconUploadcareImageUpload as _0x4a89ab,IconError as _0x209ce5,IconUploadcareImageEdit as _0x59d083}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1f3200,MenuBarMenuListItemButtonView as _0x3e4ef1,View as _0x44c7d0,FocusCycler as _0x301768,Dialog as _0x34b959,DialogViewPosition as _0x2922bc,SpinnerView as _0x369209,IconView as _0x4e6146,Notification as _0x3d68e7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x400784,DomEmitterMixin as _0x42b3a8,global as _0x236e47,getAncestors as _0x35d8b7,ObservableMixin as _0x2ca4d6,uid as _0x29f44e,createElement as _0x54cee4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x60955c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3385fb,info as _0x473552}from'@uploadcare/upload-client';import*as _0x80ea85 from'@uploadcare/file-uploader';var i=function(_0x4422e2){return _0x4422e2['Local']='local',_0x4422e2['URL']='url',_0x4422e2['Dropbox']='dropbox',_0x4422e2['GDrive']='gdrive',_0x4422e2['Facebook']='facebook',_0x4422e2['GPhotos']='gphotos',_0x4422e2['OneDrive']='onedrive',_0x4422e2;}({});function _(_0x2fd2c0,_0x5313ec,_0x47b276){const t=_0x2fd2c0['t'],_0x25fb7a=_0x2fd2c0['t'];switch(_0x5313ec){case i['Local']:return{'text':_0x25fb7a('Insert'===_0x47b276?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x25fb7a('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x47b276?_0x25fb7a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x25fb7a('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x47b276?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x47b276?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x47b276?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x47b276?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x47b276?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5313ec;}}class e extends _0x2e76a1{['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 _0x59e7d3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x57c0b6;for(const _0x311657 in _0x59e7d3){const _0x33c2ea=_0x311657,_0x11e396=_0x59e7d3[_0x33c2ea];if('uploadcareLicenseKeyValid'==_0x11e396||'uploadcareLicenseKeyInvalid'==_0x11e396||'uploadcareLicenseKeyExpired'==_0x11e396||'uploadcareLicenseKeyDomainLimit'==_0x11e396||'uploadcareLicenseKeyNotAllowed'==_0x11e396||'uploadcareLicenseKeyEvaluationLimit'==_0x11e396||'uploadcareLicenseKeyTrialLimit'==_0x11e396||'uploadcareLicenseKeyUsageLimit'==_0x11e396){delete _0x59e7d3[_0x33c2ea],_0x57c0b6=_0x11e396,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x57c0b6&&_0x59e7d3['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x57c0b6&&_0x59e7d3['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x57c0b6&&_0x59e7d3['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x57c0b6&&_0x59e7d3['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x57c0b6&&_0x59e7d3['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x57c0b6&&_0x59e7d3['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x57c0b6&&_0x59e7d3['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3b1066}=this,_0x23f525=_0x3b1066['commands']['get']('uploadcare');if(!_0x23f525)return;const _0x3d0c8e=this['_normalizeConfigSourceList'](_0x3b1066['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2c1fde,_0x38db91)=>{const _0x3455f6=this['_getIntegrationKey'](_0x38db91['type']);return _0x2c1fde[_0x3455f6]||(_0x2c1fde[_0x3455f6]=[]),_0x2c1fde[_0x3455f6]['push'](_0x38db91),_0x2c1fde;},{});_0x3b1066['plugins']['has']('ImageInsertUI')&&_0x3b1066['commands']['get']('uploadcare')&&Object['entries'](_0x3d0c8e)['forEach'](([_0x2ccc61,_0x55fa09])=>{_0x3b1066['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2ccc61,'observable':()=>_0x23f525,'buttonViewCreator':()=>this['_createToolbarButton'](_0x55fa09),'formViewCreator':()=>this['_createDropdownButtons'](_0x55fa09),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x55fa09),'override':'assetManager'!==_0x2ccc61});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2dbd2c){const {locale:_0x57a7d9}=this['editor'];return _0x2dbd2c['map'](_0x22391e=>{const _0xebe523=_(_0x57a7d9,_0x22391e,'Insert');switch(_0x22391e){case i['Local']:return{'icon':_0x4a89ab,'type':i['Local'],..._0xebe523};case i['URL']:return{'icon':_0x33acab,'type':i['URL'],..._0xebe523};case i['Dropbox']:return{'icon':_0x38e171,'type':i['Dropbox'],..._0xebe523};case i['Facebook']:return{'icon':_0x48918e,'type':i['Facebook'],..._0xebe523};case i['GDrive']:return{'icon':_0x2e2165,'type':i['GDrive'],..._0xebe523};case i['GPhotos']:return{'icon':_0x383296,'type':i['GPhotos'],..._0xebe523};case i['OneDrive']:return{'icon':_0x1ac82b,'type':i['OneDrive'],..._0xebe523};}});}['_getIntegrationKey'](_0x38dce6){switch(_0x38dce6){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x38b3ef,_0x29245f){const _0x130c96=this['editor'],_0x167974=new _0x38b3ef(_0x130c96['locale']),_0x221f2f=_0x130c96['commands']['get']('uploadcare');return _0x167974['bind']('isEnabled')['to'](_0x221f2f),_0x167974['on']('execute',()=>{_0x221f2f['execute'](_0x29245f);}),_0x167974;}['_createToolbarButton'](_0x58f780){const {locale:_0x4fbb5b}=this['editor'],_0x1e5135=this['editor']['plugins']['get']('ImageInsertUI'),_0x2e2e19=_0x58f780[0x0],_0x360024=this['_createButton'](_0x1f3200,_0x2e2e19['type']);return _0x360024['icon']=_0x2e2e19['icon'],_0x360024['bind']('label')['to'](_0x1e5135,'isImageSelected',_0x3439d5=>_(_0x4fbb5b,_0x2e2e19['type'],_0x3439d5?'Replace':'Insert')['text']),_0x360024['tooltip']=!0x0,_0x360024;}['_createDropdownButtons'](_0x4f582c){const {locale:_0xdd6a56}=this['editor'],_0xfa5f80=this['editor']['plugins']['get']('ImageInsertUI');return _0x4f582c['map'](_0x529b69=>{const _0x28d39b=this['_createButton'](_0x1f3200,_0x529b69['type']);return _0x28d39b['withText']=!0x0,_0x28d39b['icon']=_0x529b69['icon'],_0x28d39b['bind']('label')['to'](_0xfa5f80,'isImageSelected',_0x475b90=>_(_0xdd6a56,_0x529b69['type'],_0x475b90?'Replace':'Insert')['text']),_0x28d39b;});}['_createMenuBarButtons'](_0x5d5ecb){return _0x5d5ecb['map'](_0x38e6bb=>{const _0x5074d1=this['_createButton'](_0x3e4ef1,_0x38e6bb['type']);return _0x5074d1['icon']=_0x38e6bb['icon'],_0x5074d1['label']=_0x38e6bb['shortText'],_0x5074d1;});}}class V extends _0x44c7d0{['focusTracker'];['focusCycler'];constructor(_0xad5c03){super(_0xad5c03),this['focusTracker']=new _0x400784(),this['focusCycler']=new _0x301768({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends V{constructor(_0x962fb7,_0x11e909){super(_0x962fb7),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-'+_0x11e909}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x540229,_0x566e38){const _0x3121c3=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x34bfc9=>_0x34bfc9<=_0x566e38)['map'](_0x1f20d2=>_0x540229['replace'](/\/$/,'')+'/-/resize/'+_0x1f20d2+'x/\x20'+_0x1f20d2+'w');return{'imageFallbackUrl':_0x540229,'imageSources':[{'srcset':_0x3121c3['join'](',\x20'),'sizes':'(max-width:\x20'+_0x566e38+'px)\x20100vw,\x20'+_0x566e38+'px','type':'image/webp'}]};}function F(_0x3263b8,_0x5644d8,_0x1763dc){const _0x16cb74=_0x3263b8['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x16cb74?parseInt(_0x16cb74[0x1],0xa):_0x5644d8,'height':_0x16cb74?parseInt(_0x16cb74[0x2],0xa):_0x1763dc};}function p(_0x592d2d,_0x372b7c){const _0x251ff3=new(_0x42b3a8())(),_0x9f0c28=_0x592d2d['plugins']['get']('ImageUtils'),_0x56498a=_0x592d2d['editing']['mapper']['toViewElement'](_0x372b7c),_0x3047fe=_0x9f0c28['findViewImgElement'](_0x56498a),_0x4bc4e9=_0x592d2d['editing']['view']['domConverter']['viewToDom'](_0x3047fe),_0x2ccc5f=_0x372b7c['getAttribute']('width'),_0x7ebc21=_0x372b7c['getAttribute']('height'),_0x3e089d='image-processing';_0x592d2d['editing']['view']['change'](_0x1a36af=>{_0x1a36af['addClass'](_0x3e089d,_0x56498a),_0x1a36af['setStyle']('aspect-ratio',_0x2ccc5f+'/'+_0x7ebc21,_0x3047fe);}),_0x251ff3['listenTo'](_0x4bc4e9,'load',()=>{_0x251ff3['stopListening'](_0x4bc4e9,'load'),_0x592d2d['editing']['view']['change'](_0x29cfb3=>{_0x29cfb3['removeClass'](_0x3e089d,_0x56498a),_0x29cfb3['removeStyle']('aspect-ratio',_0x3047fe);});});}function R(_0xb3bfc){if(Array['isArray'](_0xb3bfc)){const _0x49681c=_0xb3bfc['map'](R);return _0x2318f7=>_0x49681c['some'](_0x523983=>_0x523983(_0x2318f7));}if('origin'==_0xb3bfc){const _0x468cf0=_0x236e47['window']['location']['origin'];return _0x5c8936=>new URL(_0x5c8936,_0x236e47['document']['baseURI'])['origin']==_0x468cf0;}return'function'==typeof _0xb3bfc?_0xb3bfc:_0xb3bfc instanceof RegExp?_0x4ace2e=>!(!_0x4ace2e['match'](_0xb3bfc)&&!_0x4ace2e['replace'](/^https?:\/\//,'')['match'](_0xb3bfc)):()=>!0x1;}function M(_0x24edad,_0x3e968b){return _0x35d8b7(_0x24edad['target'])['includes'](_0x3e968b);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2ca4d6(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5610c2,_0x1744c6,_0x2b2caa){super(),this['_editor']=_0x5610c2,this['_editing']=_0x1744c6,this['_dialog']=_0x5610c2['plugins']['get'](_0x34b959),this['_api']=_0x1744c6['ctxElement']['getAPI'](),this['_type']=_0x2b2caa,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:_0x18c4c8,model:_0x19716d}=this['_editor'],_0x437444=_0x19716d['document']['selection']['getSelectedElement'](),_0x2b147c=_0x437444&&(_0x437444['is']('element','imageBlock')||_0x437444['is']('element','imageInline'));this['_formView']=new S(_0x18c4c8,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4a89ab,'title':_(_0x18c4c8,this['_type'],_0x2b147c?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2922bc['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x48d32b=>!M(_0x48d32b,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5786e8}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5f122a=>{const _0x208721=_0x5786e8['length'];for(const _0x132af0 of _0x5786e8){const _0x25f8c9=_0x132af0===_0x5786e8[_0x208721-0x1],{cdnUrl:_0x28eab4,fileInfo:_0xa1679a}=_0x132af0;if(!_0x28eab4||!_0xa1679a)continue;const {width:_0x482d4a,height:_0x13073b}=_0xa1679a['imageInfo'],_0x11ebe2=F(_0x28eab4,_0x482d4a,_0x13073b),_0x380cb7=C(_0x28eab4,_0x11ebe2['width']),_0x2bc36b={'id':_0xa1679a['uuid'],'type':'image','attributes':{'imageDimension':_0x11ebe2,..._0x380cb7}};this['_insertAsset'](_0x2bc36b,_0x25f8c9,_0x5f122a);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xdd11e4=>{'idle'===_0xdd11e4['detail']['status']&&!_0xdd11e4['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x517d9b,_0xe8a814,_0x4b0c50){const _0x1d3494=this['_editor']['model']['document']['selection'],_0x3acbdc=_0x1d3494['getSelectedElement'](),_0x3b4b47=!(!_0x3acbdc||!_0x3acbdc['is']('element','imageInline'));_0x4b0c50['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x517d9b,_0x3b4b47),_0xe8a814||_0x4b0c50['setSelection'](_0x1d3494['getLastPosition']());}['_insertImage'](_0x127665,_0x442fe2){const _0x12bc20=this['_editor'],{imageDimension:_0x287dc4,imageFallbackUrl:_0x3a45fa,imageSources:_0x59f30e}=_0x127665['attributes'];_0x12bc20['execute']('insertImage',{'imageType':_0x442fe2?'imageInline':null,'source':{'uploadcareImageId':_0x127665['id'],'src':_0x3a45fa,'sources':_0x59f30e,..._0x287dc4}});}}class w extends _0xd16021{['_editing'];['_controller']=null;static get['requires'](){return[_0x34b959,o];}constructor(_0x5d11d3){super(_0x5d11d3),this['_editing']=_0x5d11d3['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2f4c16){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2f4c16);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x20173f,..._0x2793bc}){return _0x3385fb(_0x20173f,_0x2793bc);}static['getInfo'](_0x3d970e,_0x4fc990){return _0x473552(_0x3d970e,_0x4fc990);}}class f extends _0x2e76a1{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x60955c,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x436874=this['editor'];if(!!!_0x436874['config']['get']('uploadcare'))return;_0x436874['plugins']['get'](_0x60955c)['createUploadAdapter']=_0x1f37f5=>new k(_0x1f37f5,_0x436874),_0x436874['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x16a430,{imageElement:_0x547324,data:_0x46113c})=>{_0x436874['model']['change'](_0x5378fb=>{_0x5378fb['setAttribute']('uploadcareImageId',_0x46113c['uploadcareImageId'],_0x547324);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x566e71,_0x33a4fc){this['loader']=_0x566e71,this['editor']=_0x33a4fc,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x489b1c=await this['loader']['file'];return j['upload']({'file':_0x489b1c,'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':_0x1815cb=>{_0x1815cb&&_0x1815cb['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1815cb['value']);}})['then'](async _0x29eea9=>{const {imageFallbackUrl:_0x340c30,imageSources:_0x2b5ad9}=C(_0x29eea9['cdnUrl'],_0x29eea9['imageInfo']['width']);return{'uploadcareImageId':_0x29eea9['uuid'],'default':_0x340c30,'sources':_0x2b5ad9};})['catch'](()=>{const _0x119e92=t('Cannot\x20upload\x20file:')+('\x20'+_0x489b1c['name']+'.');return Promise['reject'](_0x119e92);});}['abort'](){this['controller']['abort']();}}class o extends _0x2e76a1{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x34b959];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xdfda7c){super(_0xdfda7c),this['ucContextId']=_0x29f44e();}['init'](){const _0x44454a=this['editor'];_0x44454a['commands']['add']('uploadcare',new w(_0x44454a));}['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 _0x29597a=_0x236e47['document']['querySelector']('input[uploadcare-file-input]');_0x29597a&&_0x29597a['remove']();}),async function(_0x1be96e){const _0x9e2a7f=_0x17b85c([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]),_0x48ef95=0x535f8c3a,_0x9ff7c8=0x5358fbca^_0x48ef95,_0x18c18b=window[_0x17b85c([0x44,0x61,0x74,0x65])][_0x17b85c([0x6e,0x6f,0x77])](),_0x27abf7=_0x1be96e[_0x17b85c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x46b60c=new window[(_0x17b85c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1af72e=>{_0x27abf7[_0x17b85c([0x6f,0x6e,0x63,0x65])](_0x17b85c([0x72,0x65,0x61,0x64,0x79]),_0x1af72e);}),_0x5d72dc={[_0x17b85c([0x6b,0x74,0x79])]:_0x17b85c([0x45,0x43]),[_0x17b85c([0x75,0x73,0x65])]:_0x17b85c([0x73,0x69,0x67]),[_0x17b85c([0x63,0x72,0x76])]:_0x17b85c([0x50,0x2d,0x32,0x35,0x36]),[_0x17b85c([0x78])]:_0x17b85c([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]),[_0x17b85c([0x79])]:_0x17b85c([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]),[_0x17b85c([0x61,0x6c,0x67])]:_0x17b85c([0x45,0x53,0x32,0x35,0x36])},_0x50ba21=_0x27abf7[_0x17b85c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x17b85c([0x67,0x65,0x74])](_0x17b85c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x48c587(){let _0x302317,_0x3f9901=null,_0x256f8c=null;try{if(_0x50ba21==_0x17b85c([0x47,0x50,0x4c]))return _0x17b85c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x302317=_0x370fc7(),!_0x302317)return _0x17b85c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x302317[_0x17b85c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x256f8c=_0x4cbffd(_0x302317[_0x17b85c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x302317[_0x17b85c([0x6a,0x74,0x69])])),await _0x5a19f0()?_0x4e2c62()?_0x5a2342()?_0x17b85c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x42d21c()?(_0x302317[_0x17b85c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17b85c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3f9901=_0x38aa5f(_0x17b85c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x302317[_0x17b85c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17b85c([0x74,0x72,0x69,0x61,0x6c])&&(_0x3f9901=_0x38aa5f(_0x17b85c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x15f6c8()):_0x17b85c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x17b85c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x17b85c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x17b85c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5a2342(){const _0x75cb52=[_0x17b85c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x17b85c([0x74,0x72,0x69,0x61,0x6c])][_0x17b85c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x302317[_0x17b85c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x18c18b/0x3e8:0xe10*_0x9ff7c8;return _0x302317[_0x17b85c([0x65,0x78,0x70])]<_0x75cb52;}function _0x4e2c62(){const _0x7bd217=_0x302317[_0x17b85c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x7bd217&&(!!_0x7bd217[_0x17b85c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17b85c([0x2a]))||!!_0x7bd217[_0x17b85c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17b85c([0x55,0x50,0x4c,0x43])));}function _0x42d21c(){const _0x35af90=_0x302317[_0x17b85c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x35af90||0x0==_0x35af90[_0x17b85c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x32cd84}=new URL(window[_0x17b85c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x35af90[_0x17b85c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32cd84))return!0x0;const _0x4db6ce=_0x32cd84[_0x17b85c([0x73,0x70,0x6c,0x69,0x74])](_0x17b85c([0x2e]));return _0x35af90[_0x17b85c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f7c3b=>_0x2f7c3b[_0x17b85c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17b85c([0x2a])))[_0x17b85c([0x6d,0x61,0x70])](_0x56cc33=>_0x56cc33[_0x17b85c([0x73,0x70,0x6c,0x69,0x74])](_0x17b85c([0x2e])))[_0x17b85c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e0f7e=>_0x3e0f7e[_0x17b85c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4db6ce[_0x17b85c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17b85c([0x6d,0x61,0x70])](_0x47688d=>Array(_0x4db6ce[_0x17b85c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x47688d[_0x17b85c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17b85c([0x66,0x69,0x6c,0x6c])](_0x47688d[0x0]===_0x17b85c([0x2a])?_0x17b85c([0x2a]):'')[_0x17b85c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x47688d))[_0x17b85c([0x73,0x6f,0x6d,0x65])](_0x2e0603=>_0x4db6ce[_0x17b85c([0x65,0x76,0x65,0x72,0x79])]((_0x4d9777,_0x57ade8)=>_0x2e0603[_0x57ade8]===_0x4d9777||_0x2e0603[_0x57ade8]===_0x17b85c([0x2a])));}function _0x15f6c8(){return _0x3f9901&&_0x256f8c?new window[(_0x17b85c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f7743,_0x4ba151)=>{_0x3f9901[_0x17b85c([0x74,0x68,0x65,0x6e])](_0x2f7743,_0x4ba151),_0x256f8c[_0x17b85c([0x74,0x68,0x65,0x6e])](_0x4510c0=>{_0x4510c0!=_0x17b85c([0x56,0x61,0x6c,0x69,0x64])&&_0x2f7743(_0x4510c0);},_0x4ba151);}):_0x3f9901||_0x256f8c||_0x17b85c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4cbffd(_0x417b56,_0x2590ef){return new window[(_0x17b85c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4659b8=>{if(_0x58ad3e())return _0x4659b8(_0x17b85c([0x56,0x61,0x6c,0x69,0x64]));_0x501b9b(),_0x27abf7[_0x17b85c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x17b85c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x104efd=!0x1;const _0x19850c=_0x29f44e();function _0x5f4715(_0x1dcfeb){return!!_0x1dcfeb&&(typeof _0x1dcfeb===_0x17b85c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1dcfeb===_0x17b85c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1dcfeb[_0x17b85c([0x74,0x68,0x65,0x6e])]===_0x17b85c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1dcfeb[_0x17b85c([0x63,0x61,0x74,0x63,0x68])]===_0x17b85c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x19f56c(_0x1dded5){_0x3d55fd(_0x1dded5)[_0x17b85c([0x74,0x68,0x65,0x6e])](_0x11daee=>{if(!_0x11daee||_0x11daee[_0x17b85c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x17b85c([0x6f,0x6b]))return _0x17b85c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2945ac(_0x15eb5f(_0x19850c+_0x2590ef))!=_0x11daee[_0x17b85c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x17b85c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x17b85c([0x56,0x61,0x6c,0x69,0x64]);})[_0x17b85c([0x74,0x68,0x65,0x6e])](_0x527280=>(_0x33c2ef(),_0x527280),()=>{const _0x3a37ba=_0x16ee07();return null==_0x3a37ba?(_0x33c2ef(),_0x17b85c([0x56,0x61,0x6c,0x69,0x64])):_0x17b85c(_0x18c18b-_0x3a37ba>(0x7753083a^_0x48ef95)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x17b85c([0x74,0x68,0x65,0x6e])](_0x4659b8)[_0x17b85c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4659b8(_0x17b85c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x667d0b=0x536962ba^_0x48ef95;function _0x33c2ef(){const _0x554c8=_0x17b85c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2945ac(_0x15eb5f(_0x417b56)),_0x455a41=_0x3af35c(_0x2945ac(window[_0x17b85c([0x4d,0x61,0x74,0x68])][_0x17b85c([0x63,0x65,0x69,0x6c])](_0x18c18b/_0x667d0b)));window[_0x17b85c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17b85c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x554c8,_0x455a41);}function _0x16ee07(){const _0x535934=_0x17b85c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2945ac(_0x15eb5f(_0x417b56)),_0xcffdf0=window[_0x17b85c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17b85c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x535934);return _0xcffdf0?window[_0x17b85c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3af35c(_0xcffdf0),0x10)*_0x667d0b:null;}function _0x3d55fd(_0x5c3b0d){return new window[(_0x17b85c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42cd04,_0x5bbe64)=>{_0x5c3b0d[_0x17b85c([0x74,0x68,0x65,0x6e])](_0x42cd04,_0x5bbe64),window[_0x17b85c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5bbe64,0x535e58fa^_0x48ef95);});}}_0x27abf7[_0x17b85c([0x6f,0x6e])](_0x17b85c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x14691e,_0x49117d)=>{if(_0x49117d[0x0]!=_0x417b56)return _0x4659b8(_0x17b85c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x49117d[0x1]={..._0x49117d[0x1],[_0x17b85c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x19850c};},{[_0x17b85c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17b85c([0x68,0x69,0x67,0x68])}),_0x27abf7[_0x17b85c([0x6f,0x6e])](_0x17b85c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x28fdbf=>{_0x5f4715(_0x28fdbf[_0x17b85c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x104efd=!0x0,_0x19f56c(_0x28fdbf[_0x17b85c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x17b85c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17b85c([0x6c,0x6f,0x77])}),_0x46b60c[_0x17b85c([0x74,0x68,0x65,0x6e])](()=>{_0x104efd||_0x4659b8(_0x17b85c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x58ad3e(){return _0x27abf7[_0x17b85c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17b85c([0x76,0x69,0x65,0x77])][_0x17b85c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x17b85c([0x61,0x75,0x74,0x6f]);}function _0x501b9b(){_0x27abf7[_0x17b85c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17b85c([0x76,0x69,0x65,0x77])][_0x17b85c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17b85c([0x61,0x75,0x74,0x6f]);}}function _0x38aa5f(_0x5eda4d){const _0x4b41c7=[new window[(_0x17b85c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x205df6=>setTimeout(_0x205df6,0x5356b2f6^_0x48ef95)),_0x46b60c[_0x17b85c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x17b85c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x371a75=>{let _0x1ee31d=0x0;_0x27abf7[_0x17b85c([0x6d,0x6f,0x64,0x65,0x6c])][_0x17b85c([0x6f,0x6e])](_0x17b85c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e4da9,_0x57a5eb)=>{_0x57a5eb[0x0][_0x17b85c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ee31d++,_0x1ee31d==(0x535f8dc2^_0x48ef95)&&(_0x371a75(),_0x1e4da9[_0x17b85c([0x6f,0x66,0x66])]());});}))];return window[_0x17b85c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17b85c([0x72,0x61,0x63,0x65])](_0x4b41c7)[_0x17b85c([0x74,0x68,0x65,0x6e])](()=>_0x5eda4d);}async function _0x558aac(){await _0x46b60c,_0x27abf7[_0x17b85c([0x6d,0x6f,0x64,0x65,0x6c])][_0x17b85c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ee89c,_0x27abf7[_0x17b85c([0x6d,0x6f,0x64,0x65,0x6c])][_0x17b85c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ee89c,_0x27abf7[_0x17b85c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x17b85c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5a8b84(_0x54b458){const _0x53c5c5=_0x256e68();_0x27abf7[_0x53c5c5]=_0x17b85c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x54b458,_0x54b458!=_0x17b85c([0x56,0x61,0x6c,0x69,0x64])&&_0x558aac();}function _0x256e68(){const _0xa34bfe=window[_0x17b85c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x17b85c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x17b85c([0x6e,0x6f,0x77])]())[_0x17b85c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x17b85c([0x2e]),'');let _0x167b07=_0x17b85c([0x68]);for(let _0x17e2a4=0x0;_0x17e2a4<_0xa34bfe[_0x17b85c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17e2a4+=0x2){let _0x543c2d=window[_0x17b85c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa34bfe[_0x17b85c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17e2a4,_0x17e2a4+0x2));_0x543c2d>=_0x9e2a7f[_0x17b85c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x543c2d-=_0x9e2a7f[_0x17b85c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x167b07+=_0x9e2a7f[_0x543c2d];}return _0x167b07;}function _0x370fc7(){const _0x4b46b=_0x50ba21[_0x17b85c([0x73,0x70,0x6c,0x69,0x74])](_0x17b85c([0x2e]));if(0x3!=_0x4b46b[_0x17b85c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x31daf1(_0x4b46b[0x1]);function _0x31daf1(_0x36e955){const _0x5c9939=_0x2041b9(_0x36e955);return _0x5c9939&&_0x48b881()?_0x5c9939:null;function _0x48b881(){const _0x5e7039=_0x5c9939[_0x17b85c([0x6a,0x74,0x69])],_0x1524d4=window[_0x17b85c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e7039[_0x17b85c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e7039[_0x17b85c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2375e0={..._0x5c9939,[_0x17b85c([0x6a,0x74,0x69])]:_0x5e7039[_0x17b85c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5e7039[_0x17b85c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2375e0[_0x17b85c([0x76,0x63])],_0x15eb5f(_0x2375e0)==_0x1524d4;}}}async function _0x5a19f0(){let _0x4bce4f=!0x0;try{const _0x392bc6=_0x50ba21[_0x17b85c([0x73,0x70,0x6c,0x69,0x74])](_0x17b85c([0x2e])),[_0x59d97e,_0x58449f,_0x2e0423]=_0x392bc6;return _0x1f576b(_0x59d97e),await _0x53ac41(_0x59d97e,_0x58449f,_0x2e0423),_0x4bce4f;}catch{return!0x1;}function _0x1f576b(_0x5d16da){const _0x355aa5=_0x2041b9(_0x5d16da);_0x355aa5&&_0x355aa5[_0x17b85c([0x61,0x6c,0x67])]==_0x17b85c([0x45,0x53,0x32,0x35,0x36])||(_0x4bce4f=!0x1);}async function _0x53ac41(_0x13baa7,_0x109878,_0x38294a){const _0x1a1fe5=window[_0x17b85c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x17b85c([0x66,0x72,0x6f,0x6d])](_0x13687a(_0x38294a),_0x24d0cb=>_0x24d0cb[_0x17b85c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f75e2=new window[(_0x17b85c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x17b85c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x13baa7+_0x17b85c([0x2e])+_0x109878),_0x49e74e=window[_0x17b85c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x17b85c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x49e74e)return;const _0x58fa94=await _0x49e74e[_0x17b85c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x17b85c([0x6a,0x77,0x6b]),_0x5d72dc,{[_0x17b85c([0x6e,0x61,0x6d,0x65])]:_0x17b85c([0x45,0x43,0x44,0x53,0x41]),[_0x17b85c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x17b85c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x17b85c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x49e74e[_0x17b85c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x17b85c([0x6e,0x61,0x6d,0x65])]:_0x17b85c([0x45,0x43,0x44,0x53,0x41]),[_0x17b85c([0x68,0x61,0x73,0x68])]:{[_0x17b85c([0x6e,0x61,0x6d,0x65])]:_0x17b85c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x58fa94,_0x1a1fe5,_0x1f75e2)||(_0x4bce4f=!0x1);}}function _0x2041b9(_0x1e01e0){return _0x1e01e0[_0x17b85c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x17b85c([0x65,0x79]))?JSON[_0x17b85c([0x70,0x61,0x72,0x73,0x65])](_0x13687a(_0x1e01e0)):null;}function _0x13687a(_0x7dc686){return window[_0x17b85c([0x61,0x74,0x6f,0x62])](_0x7dc686[_0x17b85c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x17b85c([0x2b]))[_0x17b85c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x17b85c([0x2f])));}function _0x15eb5f(_0x3dabb7){let _0x47c493=0x1505;function _0x321e0a(_0x20847b){for(let _0x222da2=0x0;_0x222da2<_0x20847b[_0x17b85c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x222da2++){const _0x120e7b=_0x20847b[_0x17b85c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x222da2);_0x47c493=(_0x47c493<<0x5)+_0x47c493+_0x120e7b,_0x47c493&=_0x47c493;}}function _0x391c3b(_0x45282c){Array[_0x17b85c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x45282c)?_0x45282c[_0x17b85c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x391c3b):_0x45282c&&typeof _0x45282c==_0x17b85c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x17b85c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x45282c)[_0x17b85c([0x73,0x6f,0x72,0x74])]()[_0x17b85c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4db520,_0x24c1b8])=>{_0x321e0a(_0x4db520),_0x391c3b(_0x24c1b8);}):_0x321e0a(window[_0x17b85c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x45282c));}return _0x391c3b(_0x3dabb7),_0x47c493>>>0x0;}function _0x2945ac(_0x4db09c){return _0x4db09c[_0x17b85c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x17b85c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x17b85c([0x30]));}function _0x3af35c(_0x5a64eb){return _0x5a64eb[_0x17b85c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x17b85c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x17b85c([0x6a,0x6f,0x69,0x6e])]('');}function _0x4ee89c(){}function _0x17b85c(_0x2c6ee2){return _0x2c6ee2['map'](_0x563095=>String['fromCharCode'](_0x563095))['join']('');}_0x5a8b84(await _0x48c587());}(this);}['_initSchema'](){const _0x4e5149=this['editor']['model']['schema'];_0x4e5149['isRegistered']('imageBlock')&&_0x4e5149['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4e5149['isRegistered']('imageInline')&&_0x4e5149['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x489669=this['editor'];_0x489669['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x489669['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5d1302=>_0x5d1302['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x15dc3b=_0x489669['commands']['get']('replaceImageSource');_0x15dc3b&&this['listenTo'](_0x15dc3b,'cleanupImage',(_0x349d32,[_0x1b1e05,_0x2a1f05])=>{_0x1b1e05['removeAttribute']('uploadcareImageId',_0x2a1f05);});}['_initConfig'](){const _0x500dec=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5062c4=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x54cee4(_0x236e47['document'],'uc-config',{..._0x500dec,'pubkey':_0x5062c4,'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']=_0x50fb1b=>{if('closeMax'==_0x50fb1b)return'#uc-icon-arrow-down';},_0x236e47['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x54cee4(_0x236e47['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x236e47['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3bf0bb=this['editor']['commands']['get']('insertImage');_0x3bf0bb&&this['listenTo'](_0x3bf0bb,'execute',()=>{const _0xf53ed9=this['editor']['model']['document']['selection']['getSelectedElement']();_0xf53ed9&&_0xf53ed9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xf53ed9);});});const _0x1f16ab=this['editor']['commands']['get']('uploadcareImageReplace');_0x1f16ab&&this['listenTo'](_0x1f16ab,'execute',()=>{const _0x28def6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x28def6&&_0x28def6['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x28def6);});});}}class tt extends _0x2e76a1{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x40a236){super(_0x40a236),_0x40a236['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x80ea85['defineComponents'](_0x80ea85),this['_defineLocale']();}['_defineLocale'](){const _0x568472=this['editor']['config']['get']('uploadcare.locale'),_0x32680e=this['editor']['locale']['contentLanguage'];_0x568472&&_0x80ea85['defineLocale'](_0x32680e,_0x568472);}}class ii extends _0x44c7d0{constructor(_0x35ccae){super(_0x35ccae);const t=_0x35ccae['t'],_0x2bffa3=this['bindTemplate'],_0x4e022a=new _0x369209();_0x4e022a['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':[_0x4e022a,{'text':_0x2bffa3['to']('imageUploadProgress',_0x560728=>t('Loading\x20image...')+'\x20('+(_0x560728||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 _0x44c7d0{constructor(_0x42fe28){super(_0x42fe28);const t=_0x42fe28['t'];this['set']('errorType',null);const _0x57bd7f=new _0x1f3200(_0x42fe28);_0x57bd7f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x57bd7f['withText']=!0x0,_0x57bd7f['class']='ck-button-action',_0x57bd7f['on']('execute',()=>{this['fire']('retry');}),_0x57bd7f['bind']('isVisible')['to'](this,'errorType',_0x13c9d1=>'NotFound'!==_0x13c9d1);const _0x379261=new _0x4e6146();_0x379261['content']=_0x209ce5,_0x379261['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x18e0be=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':[_0x379261,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x18e0be['to']('errorType',_0x27f98a=>t('NotFound'!==_0x27f98a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x57bd7f]},{'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 _0x44c7d0{constructor(_0x348455,_0x2d6a81){super(_0x348455);const _0x21e04d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2d6a81,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x21e04d['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xcbdd2f,_0x31288a,_0x3aff28){super(_0xcbdd2f),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xcbdd2f),this['_errorView']=new ti(_0xcbdd2f),this['_editingView']=new ei(_0xcbdd2f,_0x3aff28),this['_focusableView']=new _0x44c7d0(_0xcbdd2f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x31288a),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'],_0x124e63=>{this['_addUploadcareImageEditorListeners'](_0x124e63);});}),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'](_0x1eba53,_0x1cfdeb){const _0x244ce2='uc-cloud-image-editor',_0x12f47b=_0x1eba53['querySelector'](_0x244ce2);if(_0x12f47b)return _0x1cfdeb(_0x12f47b);const _0x5ee6dc=new MutationObserver(_0x22e51c=>{const _0x1e9dc7=_0x22e51c['filter'](_0x11db84=>_0x11db84['target']===_0x1eba53&&_0x11db84['addedNodes']['length']>0x0&&_0x11db84['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x244ce2);_0x1e9dc7['length']&&(_0x5ee6dc['disconnect'](),_0x1cfdeb(_0x1e9dc7[0x0]['addedNodes'][0x0]));});_0x5ee6dc['observe'](_0x1eba53,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xb232ee){_0xb232ee['addEventListener']('apply',_0x374c9b=>{this['fire']('apply',{'imageSrc':_0x374c9b['detail']['cdnUrl']});}),_0xb232ee['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2ca4d6(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xcf4498,_0x27c799,_0x4c7080){super(),this['_editor']=_0xcf4498,this['_dialog']=_0x27c799,this['_imageElement']=_0x4c7080,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 _0xa9b038=this['_imageElement'],_0x57d156=_0xa9b038['getAttribute']('uploadcareImageId'),_0x3cc4cd=_0xa9b038['getAttribute']('src');if(_0x57d156)await this['_loadImageInfo'](_0x57d156,_0x3cc4cd);else{if(this['_imageCache']['has'](_0x3cc4cd)){const _0xefe186=this['_imageCache']['get'](_0x3cc4cd);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xefe186['url'],this['imageDimension']=_0xefe186['dimension'],this['imageId']=_0xefe186['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x37d4fd}=this['_editor'],t=_0x37d4fd['t'],_0x5df8c3=new X(_0x37d4fd,this['imageStatus'],this['_attributes']);_0x5df8c3['bind']('status')['to'](this,'imageStatus'),_0x5df8c3['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5df8c3['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5df8c3['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5df8c3,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x59d083,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5df8c3,'position':_0x2922bc['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5df8c3['focus']();},'onHide':()=>{_0x5df8c3['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3c8a67=>!M(_0x3c8a67,_0x5df8c3['element'])}});}['_loadImageInfo'](_0x39b975,_0x14f054){return j['getInfo'](_0x39b975,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1304e2=>{const {width:_0x68a073,height:_0x5b5d97}=_0x1304e2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x14f054,this['imageDimension']={'width':_0x68a073,'height':_0x5b5d97},this['imageId']=_0x39b975;})['catch'](_0x2de814=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2de814['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4076fc,_0x9c54dc){return this['_getImageAsFile'](_0x4076fc)['then'](_0x5b9bc3=>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':_0x9c54dc['signal'],'file':_0x5b9bc3,'onProgress':_0x115862=>{_0x115862&&_0x115862['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x115862['value']));}}))['then'](_0x13be87=>{const {width:_0x19c9a0,height:_0x4a3782}=_0x13be87['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x13be87['cdnUrl'],this['imageDimension']={'width':_0x19c9a0,'height':_0x4a3782},this['imageId']=_0x13be87['uuid'],this['imageUploadProgress']=null;const _0x4f29e4=_0x4076fc['getAttribute']('src');this['_imageCache']['set'](_0x4f29e4,{'id':_0x13be87['uuid'],'url':_0x13be87['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x18d6c3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x18d6c3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5d0e58,_0x4cf979){_0x5d0e58['on']('apply',(_0x4e348a,_0x595d13)=>{this['_replaceImage'](_0x4cf979,_0x595d13['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5d0e58['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5d0e58['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xbbe3c2,_0x154847,_0x94a5d0){const _0x5abf38=this['_editor'],{width:_0x19f746,height:_0x394b91}=F(_0x154847,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x332a5b,imageSources:_0x4f356d}=C(_0x154847,_0x19f746);_0x5abf38['model']['change'](_0x197d72=>{if('$graveyard'===_0xbbe3c2['root']['rootName']){_0x5abf38['execute']('insertImage',{'imageType':_0xbbe3c2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xbbe3c2['getAttributes']()),'uploadcareImageId':_0x94a5d0,'src':_0x332a5b,'sources':_0x4f356d,'width':_0x19f746,'height':_0x394b91}});const _0x172de6=_0xbbe3c2['getChildren']();_0xbbe3c2=_0x5abf38['model']['document']['selection']['getSelectedElement']();for(const _0x5a1476 of _0x172de6)_0x197d72['append'](_0x197d72['cloneElement'](_0x5a1476),_0xbbe3c2);}else _0x197d72['setSelection'](_0xbbe3c2,'on'),_0x5abf38['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xbbe3c2['getAttributes']()),'uploadcareImageId':_0x94a5d0,'src':_0x332a5b,'sources':_0x4f356d,'width':_0x19f746,'height':_0x394b91},_0xbbe3c2);_0x197d72['setSelection'](_0xbbe3c2,'on');});}async['_getImageAsFile'](_0x205b64){const _0x5ee96c=_0x236e47['window'],_0x8beb5a=_0x236e47['document']['location']['href'],_0x4eecec=new _0x5ee96c['URL'](_0x205b64['getAttribute']('src'),_0x8beb5a);if('data:'===_0x4eecec['protocol']){const _0x15ab8f=_0x4eecec['href']['split'](','),_0x808a9b=_0x15ab8f[0x0]['match'](/:(.*?);/)[0x1],_0x3d6455=_0x808a9b['split']('/')[0x1],_0x72b1ee=_0x5ee96c['atob'](_0x15ab8f[_0x15ab8f['length']-0x1]);let _0x5717e0=_0x72b1ee['length'];const _0x5d0269=new _0x5ee96c['Uint8Array'](_0x5717e0);for(;_0x5717e0--;)_0x5d0269[_0x5717e0]=_0x72b1ee['charCodeAt'](_0x5717e0);return new _0x5ee96c['File']([_0x5d0269],'image.'+_0x3d6455,{'type':_0x808a9b});}const _0x5d6b4f=_0x4eecec['href']['split']('/'),_0x1c724a=_0x5d6b4f[_0x5d6b4f['length']-0x1],_0x296285=_0x1c724a['split']('.')[0x1];return _0x5ee96c['fetch'](_0x4eecec['href'])['then'](_0x521e56=>_0x521e56['clone']()['blob']())['then'](_0x3e4263=>new _0x5ee96c['File']([_0x3e4263],_0x1c724a,{'type':'image/'+_0x296285}));}}class N extends _0xd16021{['imageEditController'];static get['requires'](){return[_0x34b959];}['_isEditable'];constructor(_0x1a2f82){super(_0x1a2f82),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3ac4c2){const _0x10b668=R(_0x3ac4c2);return _0x5ed33c=>!(!_0x5ed33c||!_0x5ed33c['is']('element','imageBlock')&&!_0x5ed33c['is']('element','imageInline'))&&(!!_0x5ed33c['hasAttribute']('uploadcareImageId')||!!_0x5ed33c['hasAttribute']('src')&&_0x10b668(_0x5ed33c['getAttribute']('src')));}(_0x1a2f82['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x598e5d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x598e5d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xe3a634=this['editor']['model']['document']['selection']['getSelectedElement']();_0xe3a634&&(_0xe3a634['is']('element','imageBlock')||_0xe3a634['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x34b959),_0xe3a634),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0xd16021{['refresh'](){const _0x1275de=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1275de&&(_0x1275de['is']('element','imageBlock')||_0x1275de['is']('element','imageInline')));}['execute'](_0x49cf06){const _0x1048b7=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x451a1e=>{_0x451a1e['setAttributes'](_0x49cf06,_0x1048b7),_0x451a1e['removeAttribute']('srcset',_0x1048b7),_0x451a1e['removeAttribute']('sizes',_0x1048b7);});}}class m extends _0x2e76a1{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3d68e7,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x111639}=this;_0x111639['commands']['add']('uploadcareImageEdit',new N(_0x111639)),_0x111639['commands']['add']('uploadcareImageReplace',new O(_0x111639));}}class g extends _0x2e76a1{['_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 _0x2d57d5=this['editor'];_0x2d57d5['ui']['componentFactory']['add']('uploadcareImageEdit',_0x6cf02a=>{const _0x2570d2=_0x2d57d5['commands']['get']('uploadcareImageEdit'),_0x2c16ae=new _0x1f3200(_0x6cf02a),t=_0x6cf02a['t'];return _0x2c16ae['set']({'icon':_0x59d083,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2c16ae['bind']('isEnabled')['to'](_0x2570d2),_0x2c16ae['bind']('isOn')['to'](_0x2570d2,'isActive'),this['listenTo'](_0x2c16ae,'execute',()=>{_0x2d57d5['execute']('uploadcareImageEdit'),_0x2d57d5['editing']['view']['focus']();}),_0x2c16ae;}),this['_initConfig']();}['_initConfig'](){const _0x53f308=_0x54cee4(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x53f308),this['listenTo'](this['editor'],'destroy',()=>{_0x53f308['remove']();});}}class et extends _0x2e76a1{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20251102.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-20251102.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251102.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20251102.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251102.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251102.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251102.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251102.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251102.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.19.4",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x2ee055=_0x34e0;(function(_0xd9bf60,_0x97b547){const _0x5f21d9=_0x34e0,_0x4beae5=_0xd9bf60();while(!![]){try{const _0x90330f=-parseInt(_0x5f21d9(0xe9))/0x1*(-parseInt(_0x5f21d9(0xf1))/0x2)+-parseInt(_0x5f21d9(0x118))/0x3*(-parseInt(_0x5f21d9(0x125))/0x4)+parseInt(_0x5f21d9(0xfb))/0x5+-parseInt(_0x5f21d9(0x11d))/0x6*(parseInt(_0x5f21d9(0x111))/0x7)+parseInt(_0x5f21d9(0xf8))/0x8*(parseInt(_0x5f21d9(0x10c))/0x9)+parseInt(_0x5f21d9(0x11e))/0xa+-parseInt(_0x5f21d9(0xf6))/0xb;if(_0x90330f===_0x97b547)break;else _0x4beae5['push'](_0x4beae5['shift']());}catch(_0x4ec6c3){_0x4beae5['push'](_0x4beae5['shift']());}}}(_0x445b,0x5bd0e));function _0x34e0(_0x5ce160,_0x1d397c){const _0x445bf6=_0x445b();return _0x34e0=function(_0x34e0fc,_0x1cb0e7){_0x34e0fc=_0x34e0fc-0xe4;let _0x467d31=_0x445bf6[_0x34e0fc];return _0x467d31;},_0x34e0(_0x5ce160,_0x1d397c);}import{IconUploadcareImageUpload as _0x37d240}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x905455}from'ckeditor5/src/utils.js';import{Dialog as _0x338778,DialogViewPosition as _0xdac5e}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0xa28df2}from'./uploadcareformview.js';function _0x445b(){const _0x40d8fd=['addEventListener','detail','193356igdaPv','stopListening','text','doneFlow','allEntries','get','ucContextId','editing','imageBlock','document','_formView','setSelection','isOpen','Insert','_type','39386PzoMbb','uuid','_editing','getAPI','_api','destroy','status','Local','26nLbGJt','focus','ctxElement','stopDelegating','idle','6525387NurvuL','getSelectedElement','3481792NQfjut','change','width','65655jzbwNY','show','_initDialog','getOutputCollectionState','initFlow','Replace','removeSelectionAttribute','source-list','plugins','imageInline','insertImage','attributes','configElement','model','_dialog','length','_insertAsset','9sqPhhx','_insertImage','imageInfo','linkHref','EDITOR_TOP_CENTER','175GrTiKY','removeAllFiles','_initListeners','selection','setAttribute','setCurrentActivity','done-click','21CiJVCT','image','uploadCare','hide','getLastPosition','166476IDKbNm','3641990azcyhr','view','element','_editor','execute'];_0x445b=function(){return _0x40d8fd;};return _0x445b();}import{UploadcareSource as _0x28c677}from'../uploadcareconfig.js';import{getTranslation as _0x37bafe}from'../utils/common-translations.js';import{getImageUrls as _0x300575,getImageDimension as _0x9aa54b}from'../utils/editingutils.js';import{isAncestor as _0x5f57cb}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x905455(){[_0x2ee055(0x121)];[_0x2ee055(0x109)];[_0x2ee055(0xeb)];[_0x2ee055(0xed)];[_0x2ee055(0xe8)]=null;[_0x2ee055(0xe4)]=null;constructor(_0x55082a,_0x260493,_0x2ce00d){const _0x5787b3=_0x2ee055;super(),this[_0x5787b3(0x121)]=_0x55082a,this[_0x5787b3(0xeb)]=_0x260493,this[_0x5787b3(0x109)]=_0x55082a[_0x5787b3(0x103)][_0x5787b3(0x12a)](_0x338778),this[_0x5787b3(0xed)]=_0x260493[_0x5787b3(0xf3)][_0x5787b3(0xec)](),this[_0x5787b3(0xe8)]=_0x2ce00d,this[_0x5787b3(0xeb)][_0x5787b3(0x107)][_0x5787b3(0x115)](_0x5787b3(0x102),this[_0x5787b3(0xe8)]),this[_0x5787b3(0xfd)](),this[_0x5787b3(0x113)](),this[_0x5787b3(0xed)][_0x5787b3(0xff)]();}[_0x2ee055(0xee)](){const _0x33d598=_0x2ee055;this[_0x33d598(0xe4)]&&(this[_0x33d598(0xe4)][_0x33d598(0xee)](),this[_0x33d598(0xe4)]=null),this[_0x33d598(0xed)]&&this[_0x33d598(0xed)][_0x33d598(0x128)](),this[_0x33d598(0x126)](),this[_0x33d598(0xf4)]();}[_0x2ee055(0xfd)](){const _0x4dff2d=_0x2ee055,{locale:_0x2af270,model:_0x1a889c}=this[_0x4dff2d(0x121)],_0xae7ddb=_0x1a889c[_0x4dff2d(0x12e)][_0x4dff2d(0x114)][_0x4dff2d(0xf7)](),_0x151146=_0xae7ddb&&(_0xae7ddb['is'](_0x4dff2d(0x120),_0x4dff2d(0x12d))||_0xae7ddb['is'](_0x4dff2d(0x120),_0x4dff2d(0x104)));this[_0x4dff2d(0xe4)]=new _0xa28df2(_0x2af270,this[_0x4dff2d(0xeb)][_0x4dff2d(0x12b)]),this[_0x4dff2d(0x109)][_0x4dff2d(0xfc)]({'id':_0x4dff2d(0x11a),'icon':_0x37d240,'title':_0x37bafe(_0x2af270,this[_0x4dff2d(0xe8)],_0x151146?_0x4dff2d(0x100):_0x4dff2d(0xe7))[_0x4dff2d(0x127)],'content':this[_0x4dff2d(0xe4)],'position':_0xdac5e[_0x4dff2d(0x110)],'isModal':!0x0,'onShow':()=>{const _0x4c052e=_0x4dff2d;this[_0x4c052e(0xe4)][_0x4c052e(0xf2)]();},'onHide':()=>{const _0x3e8183=_0x4dff2d;this[_0x3e8183(0xed)][_0x3e8183(0x112)](),this[_0x3e8183(0x121)][_0x3e8183(0x12c)][_0x3e8183(0x11f)][_0x3e8183(0xf2)](),this[_0x3e8183(0xee)]();},'keystrokeHandlerOptions':{'filter':_0x5ab096=>!_0x5f57cb(_0x5ab096,this[_0x4dff2d(0xe4)][_0x4dff2d(0x120)])}});}[_0x2ee055(0x113)](){const _0x28ab95=_0x2ee055;this[_0x28ab95(0xeb)][_0x28ab95(0xf3)][_0x28ab95(0x123)](_0x28ab95(0x117),()=>{const _0xd2891=_0x28ab95,{allEntries:_0x3d2145}=this[_0xd2891(0xed)][_0xd2891(0xfe)]();this[_0xd2891(0x121)][_0xd2891(0x108)][_0xd2891(0xf9)](_0x5eaca8=>{const _0x32be57=_0xd2891,_0x2626c4=_0x3d2145[_0x32be57(0x10a)];for(const _0x1d7ee2 of _0x3d2145){const _0x1306d0=_0x1d7ee2===_0x3d2145[_0x2626c4-0x1],{cdnUrl:_0x3dc121,fileInfo:_0x377052}=_0x1d7ee2;if(!_0x3dc121||!_0x377052)continue;const {width:_0x397c1a,height:_0x46cdb0}=_0x377052[_0x32be57(0x10e)],_0x4ff4bf=_0x9aa54b(_0x3dc121,_0x397c1a,_0x46cdb0),_0x54541b=_0x300575(_0x3dc121,_0x4ff4bf[_0x32be57(0xfa)]),_0x54d861={'id':_0x377052[_0x32be57(0xea)],'type':_0x32be57(0x119),'attributes':{'imageDimension':_0x4ff4bf,..._0x54541b}};this[_0x32be57(0x10b)](_0x54d861,_0x1306d0,_0x5eaca8);}}),this[_0xd2891(0x109)][_0xd2891(0x11b)]();}),this[_0x28ab95(0xeb)][_0x28ab95(0xf3)][_0x28ab95(0x123)](_0x28ab95(0xf9),_0x4eefbf=>{const _0x24d7aa=_0x28ab95;_0x24d7aa(0xf5)===_0x4eefbf[_0x24d7aa(0x124)][_0x24d7aa(0xef)]&&!_0x4eefbf[_0x24d7aa(0x124)][_0x24d7aa(0x129)][_0x24d7aa(0x10a)]&&this[_0x24d7aa(0x109)][_0x24d7aa(0xe6)]&&(this[_0x24d7aa(0xe8)]===_0x28c677[_0x24d7aa(0xf0)]?this[_0x24d7aa(0xed)][_0x24d7aa(0x116)](_0x28c677[_0x24d7aa(0xf0)]):this[_0x24d7aa(0xed)][_0x24d7aa(0xff)]());});}[_0x2ee055(0x10b)](_0xbf16a8,_0x5f9d98,_0x2fd566){const _0x1b7c53=_0x2ee055,_0x2753e7=this[_0x1b7c53(0x121)][_0x1b7c53(0x108)][_0x1b7c53(0x12e)][_0x1b7c53(0x114)],_0x114da1=_0x2753e7[_0x1b7c53(0xf7)](),_0x52941f=!(!_0x114da1||!_0x114da1['is'](_0x1b7c53(0x120),_0x1b7c53(0x104)));_0x2fd566[_0x1b7c53(0x101)](_0x1b7c53(0x10f)),this[_0x1b7c53(0x10d)](_0xbf16a8,_0x52941f),_0x5f9d98||_0x2fd566[_0x1b7c53(0xe5)](_0x2753e7[_0x1b7c53(0x11c)]());}[_0x2ee055(0x10d)](_0xc13c10,_0x4c3411){const _0x179c0f=_0x2ee055,_0x56ad46=this[_0x179c0f(0x121)],{imageDimension:_0x24fb79,imageFallbackUrl:_0x59595c,imageSources:_0x4c0deb}=_0xc13c10[_0x179c0f(0x106)];_0x56ad46[_0x179c0f(0x122)](_0x179c0f(0x105),{'imageType':_0x4c3411?_0x179c0f(0x104):null,'source':{'uploadcareImageId':_0xc13c10['id'],'src':_0x59595c,'sources':_0x4c0deb,..._0x24fb79}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x50f69c=_0x1352;(function(_0x3b9806,_0x4f5c3e){var _0x14fd86=_0x1352,_0x1bb533=_0x3b9806();while(!![]){try{var _0x59b0e5=parseInt(_0x14fd86(0x106))/0x1+parseInt(_0x14fd86(0x10a))/0x2+-parseInt(_0x14fd86(0x104))/0x3+-parseInt(_0x14fd86(0x109))/0x4+parseInt(_0x14fd86(0x10c))/0x5*(-parseInt(_0x14fd86(0x108))/0x6)+-parseInt(_0x14fd86(0x113))/0x7+parseInt(_0x14fd86(0x116))/0x8*(parseInt(_0x14fd86(0x10b))/0x9);if(_0x59b0e5===_0x4f5c3e)break;else _0x1bb533['push'](_0x1bb533['shift']());}catch(_0x5bedd7){_0x1bb533['push'](_0x1bb533['shift']());}}}(_0x3156,0x7d136));import{DialogFocusManagerView as _0x3b0126}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x3b0126{constructor(_0x960e60,_0x435cda){var _0x198e9e=_0x1352;super(_0x960e60),this[_0x198e9e(0x107)]({'tag':_0x198e9e(0x105),'attributes':{'class':['ck',_0x198e9e(0x111),_0x198e9e(0x103)],'tabindex':'-1'},'children':[{'tag':_0x198e9e(0x110),'attributes':{'class':[_0x198e9e(0x115),_0x198e9e(0x114)],'ctx-name':_0x198e9e(0x10e)+_0x435cda}},this[_0x198e9e(0x10f)]()]});}[_0x50f69c(0x10d)](){var _0x5f0168=_0x50f69c;this[_0x5f0168(0x112)][_0x5f0168(0x10d)]();}}function _0x1352(_0xeeb91,_0x34633a){var _0x3156f=_0x3156();return _0x1352=function(_0x1352ec,_0x13eaf4){_0x1352ec=_0x1352ec-0x103;var _0x597b8c=_0x3156f[_0x1352ec];return _0x597b8c;},_0x1352(_0xeeb91,_0x34633a);}function _0x3156(){var _0x4aa80e=['getFocusableElement','uc-file-uploader-inline','ck-reset_all-excluded','element','1633604lhrXPW','ck-uploadcare-theme','uc-light','464smCNkr','ck-uploadcare-form','839490QxymGd','div','698669DhVQRI','setTemplate','822aIrbqq','3009664RGxiDR','1343708WxDRKm','76122PGNSTM','3035hdwijx','focus','uploader-'];_0x3156=function(){return _0x4aa80e;};return _0x3156();}
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x42a7ba=_0x54f2;(function(_0x4c2abe,_0x394cf6){const _0x367468=_0x54f2,_0x25db74=_0x4c2abe();while(!![]){try{const _0x14853c=parseInt(_0x367468(0x1e9))/0x1+-parseInt(_0x367468(0x1f0))/0x2+parseInt(_0x367468(0x213))/0x3*(-parseInt(_0x367468(0x22a))/0x4)+parseInt(_0x367468(0x20a))/0x5*(-parseInt(_0x367468(0x222))/0x6)+parseInt(_0x367468(0x21e))/0x7+parseInt(_0x367468(0x227))/0x8+parseInt(_0x367468(0x201))/0x9;if(_0x14853c===_0x394cf6)break;else _0x25db74['push'](_0x25db74['shift']());}catch(_0x5338ad){_0x25db74['push'](_0x25db74['shift']());}}}(_0x1d8a,0x8143c));import{Plugin as _0x1c5e18}from'ckeditor5/src/core.js';function _0x54f2(_0x2d9c9b,_0x1d56eb){const _0x1d8a5c=_0x1d8a();return _0x54f2=function(_0x54f250,_0x4629e3){_0x54f250=_0x54f250-0x1e3;let _0x11519a=_0x1d8a5c[_0x54f250];return _0x11519a;},_0x54f2(_0x2d9c9b,_0x1d56eb);}import{Dialog as _0x1063f3}from'ckeditor5/src/ui.js';import{createElement as _0x532829,global as _0x1a68e8,uid as _0x796596}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x13217f}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x28ebfa}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4dd0d7}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1c5e18{[_0x42a7ba(0x1f6)]=null;[_0x42a7ba(0x1ef)]=null;static get[_0x42a7ba(0x214)](){const _0x377ab2=_0x42a7ba;return _0x377ab2(0x21f);}static get[_0x42a7ba(0x21a)](){const _0x26a4b6=_0x42a7ba;return[_0x26a4b6(0x21c),_0x28ebfa,_0x1063f3];}static get[_0x42a7ba(0x203)](){return!0x0;}static get[_0x42a7ba(0x205)](){return!0x0;}[_0x42a7ba(0x208)];get[_0x42a7ba(0x233)](){const _0x107f49=_0x42a7ba;return this[_0x107f49(0x1f6)];}get[_0x42a7ba(0x235)](){const _0x10d858=_0x42a7ba;return this[_0x10d858(0x1ef)];}constructor(_0x531a6d){const _0x339d95=_0x42a7ba;super(_0x531a6d),this[_0x339d95(0x208)]=_0x796596();}[_0x42a7ba(0x20e)](){const _0x30d981=_0x42a7ba,_0x384314=this[_0x30d981(0x1ed)];_0x384314[_0x30d981(0x1ee)][_0x30d981(0x221)](_0x30d981(0x22b),new _0x13217f(_0x384314));}[_0x42a7ba(0x218)](){const _0x25e7c0=_0x42a7ba;this[_0x25e7c0(0x232)](),this[_0x25e7c0(0x1fa)](),this[_0x25e7c0(0x1ec)](),this[_0x25e7c0(0x200)](),this[_0x25e7c0(0x223)](),this[_0x25e7c0(0x1fb)](this[_0x25e7c0(0x1ed)],_0x25e7c0(0x22c),()=>{const _0xad8f11=_0x25e7c0;this[_0xad8f11(0x1f6)]&&(this[_0xad8f11(0x1f6)][_0xad8f11(0x231)](),this[_0xad8f11(0x1f6)]=null),this[_0xad8f11(0x1ef)]&&(this[_0xad8f11(0x1ef)][_0xad8f11(0x231)](),this[_0xad8f11(0x1ef)]=null);const _0xb85659=_0x1a68e8[_0xad8f11(0x207)][_0xad8f11(0x210)](_0xad8f11(0x204));_0xb85659&&_0xb85659[_0xad8f11(0x231)]();}),async function(_0x469a05){const _0x23338e=_0x2f32e3([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]),_0x46ce6f=0x535f8c3a,_0x4e43b4=0x5358fbe2^_0x46ce6f,_0x3ef574=window[_0x2f32e3([0x44,0x61,0x74,0x65])][_0x2f32e3([0x6e,0x6f,0x77])](),_0x54f118=_0x469a05[_0x2f32e3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5864a6=new window[(_0x2f32e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dd980=>{_0x54f118[_0x2f32e3([0x6f,0x6e,0x63,0x65])](_0x2f32e3([0x72,0x65,0x61,0x64,0x79]),_0x4dd980);}),_0x2536da={[_0x2f32e3([0x6b,0x74,0x79])]:_0x2f32e3([0x45,0x43]),[_0x2f32e3([0x75,0x73,0x65])]:_0x2f32e3([0x73,0x69,0x67]),[_0x2f32e3([0x63,0x72,0x76])]:_0x2f32e3([0x50,0x2d,0x32,0x35,0x36]),[_0x2f32e3([0x78])]:_0x2f32e3([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]),[_0x2f32e3([0x79])]:_0x2f32e3([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]),[_0x2f32e3([0x61,0x6c,0x67])]:_0x2f32e3([0x45,0x53,0x32,0x35,0x36])},_0x25e3c3=_0x54f118[_0x2f32e3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2f32e3([0x67,0x65,0x74])](_0x2f32e3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34c246(){let _0x2fcc9c,_0x4b3f98=null,_0x9e0e42=null;try{if(_0x25e3c3==_0x2f32e3([0x47,0x50,0x4c]))return _0x2f32e3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2fcc9c=_0x56f757(),!_0x2fcc9c)return _0x2f32e3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2fcc9c[_0x2f32e3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9e0e42=_0x2ff18c(_0x2fcc9c[_0x2f32e3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2fcc9c[_0x2f32e3([0x6a,0x74,0x69])])),await _0x1ba0c5()?_0x28ad79()?_0x39b7a5()?_0x2f32e3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c0481()?(_0x2fcc9c[_0x2f32e3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f32e3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b3f98=_0x444345(_0x2f32e3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2fcc9c[_0x2f32e3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f32e3([0x74,0x72,0x69,0x61,0x6c])&&(_0x4b3f98=_0x444345(_0x2f32e3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2dec01()):_0x2f32e3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2f32e3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2f32e3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2f32e3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x39b7a5(){const _0x1953dc=[_0x2f32e3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2f32e3([0x74,0x72,0x69,0x61,0x6c])][_0x2f32e3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fcc9c[_0x2f32e3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ef574/0x3e8:0xe10*_0x4e43b4;return _0x2fcc9c[_0x2f32e3([0x65,0x78,0x70])]<_0x1953dc;}function _0x28ad79(){const _0x509578=_0x2fcc9c[_0x2f32e3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x509578&&(!!_0x509578[_0x2f32e3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f32e3([0x2a]))||!!_0x509578[_0x2f32e3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f32e3([0x55,0x50,0x4c,0x43])));}function _0x5c0481(){const _0xd0191a=_0x54f2,_0x596bda=_0x2fcc9c[_0x2f32e3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x596bda||0x0==_0x596bda[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x66a83f}=new URL(window[_0x2f32e3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xd0191a(0x209)]);if(_0x596bda[_0x2f32e3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x66a83f))return!0x0;const _0x1a7597=_0x66a83f[_0x2f32e3([0x73,0x70,0x6c,0x69,0x74])](_0x2f32e3([0x2e]));return _0x596bda[_0x2f32e3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54c472=>_0x54c472[_0x2f32e3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f32e3([0x2a])))[_0x2f32e3([0x6d,0x61,0x70])](_0x5e80b4=>_0x5e80b4[_0x2f32e3([0x73,0x70,0x6c,0x69,0x74])](_0x2f32e3([0x2e])))[_0x2f32e3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x556765=>_0x556765[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1a7597[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f32e3([0x6d,0x61,0x70])](_0xba1fc2=>Array(_0x1a7597[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xba1fc2[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f32e3([0x66,0x69,0x6c,0x6c])](_0xba1fc2[0x0]===_0x2f32e3([0x2a])?_0x2f32e3([0x2a]):'')[_0x2f32e3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xba1fc2))[_0x2f32e3([0x73,0x6f,0x6d,0x65])](_0x516e54=>_0x1a7597[_0x2f32e3([0x65,0x76,0x65,0x72,0x79])]((_0x47a3f2,_0x4a9ae9)=>_0x516e54[_0x4a9ae9]===_0x47a3f2||_0x516e54[_0x4a9ae9]===_0x2f32e3([0x2a])));}function _0x2dec01(){return _0x4b3f98&&_0x9e0e42?new window[(_0x2f32e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c4ee0,_0x536cd9)=>{_0x4b3f98[_0x2f32e3([0x74,0x68,0x65,0x6e])](_0x3c4ee0,_0x536cd9),_0x9e0e42[_0x2f32e3([0x74,0x68,0x65,0x6e])](_0x72dbd2=>{_0x72dbd2!=_0x2f32e3([0x56,0x61,0x6c,0x69,0x64])&&_0x3c4ee0(_0x72dbd2);},_0x536cd9);}):_0x4b3f98||_0x9e0e42||_0x2f32e3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2ff18c(_0x2c1525,_0x29c370){return new window[(_0x2f32e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x111a5c=>{if(_0x87e117())return _0x111a5c(_0x2f32e3([0x56,0x61,0x6c,0x69,0x64]));_0x2a617d(),_0x54f118[_0x2f32e3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2f32e3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3bdc67=!0x1;const _0x2318a3=_0x796596();function _0x2a7906(_0x2ade0b){return!!_0x2ade0b&&(typeof _0x2ade0b===_0x2f32e3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ade0b===_0x2f32e3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ade0b[_0x2f32e3([0x74,0x68,0x65,0x6e])]===_0x2f32e3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ade0b[_0x2f32e3([0x63,0x61,0x74,0x63,0x68])]===_0x2f32e3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x422549(_0x57d0bc){_0x26a012(_0x57d0bc)[_0x2f32e3([0x74,0x68,0x65,0x6e])](_0x40f298=>{if(!_0x40f298||_0x40f298[_0x2f32e3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2f32e3([0x6f,0x6b]))return _0x2f32e3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x294e7d(_0x3f9de4(_0x2318a3+_0x29c370))!=_0x40f298[_0x2f32e3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2f32e3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2f32e3([0x56,0x61,0x6c,0x69,0x64]);})[_0x2f32e3([0x74,0x68,0x65,0x6e])](_0xa5543b=>(_0x52778a(),_0xa5543b),()=>{const _0xef985e=_0xafc1ac();return null==_0xef985e?(_0x52778a(),_0x2f32e3([0x56,0x61,0x6c,0x69,0x64])):_0x2f32e3(_0x3ef574-_0xef985e>(0x7753083a^_0x46ce6f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2f32e3([0x74,0x68,0x65,0x6e])](_0x111a5c)[_0x2f32e3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x111a5c(_0x2f32e3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x52848c=0x536962ba^_0x46ce6f;function _0x52778a(){const _0x2494e7=_0x2f32e3([0x6c,0x6c,0x63,0x74,0x2d])+_0x294e7d(_0x3f9de4(_0x2c1525)),_0x2194ad=_0x114439(_0x294e7d(window[_0x2f32e3([0x4d,0x61,0x74,0x68])][_0x2f32e3([0x63,0x65,0x69,0x6c])](_0x3ef574/_0x52848c)));window[_0x2f32e3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f32e3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2494e7,_0x2194ad);}function _0xafc1ac(){const _0x40d3d6=_0x2f32e3([0x6c,0x6c,0x63,0x74,0x2d])+_0x294e7d(_0x3f9de4(_0x2c1525)),_0x5b8b94=window[_0x2f32e3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f32e3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40d3d6);return _0x5b8b94?window[_0x2f32e3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x114439(_0x5b8b94),0x10)*_0x52848c:null;}function _0x26a012(_0x5e9f0e){return new window[(_0x2f32e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c0b2e,_0x36b550)=>{_0x5e9f0e[_0x2f32e3([0x74,0x68,0x65,0x6e])](_0x4c0b2e,_0x36b550),window[_0x2f32e3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x36b550,0x535e58fa^_0x46ce6f);});}}_0x54f118[_0x2f32e3([0x6f,0x6e])](_0x2f32e3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x42ab3a,_0x346b4e)=>{if(_0x346b4e[0x0]!=_0x2c1525)return _0x111a5c(_0x2f32e3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x346b4e[0x1]={..._0x346b4e[0x1],[_0x2f32e3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2318a3};},{[_0x2f32e3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f32e3([0x68,0x69,0x67,0x68])}),_0x54f118[_0x2f32e3([0x6f,0x6e])](_0x2f32e3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1edf9e=>{_0x2a7906(_0x1edf9e[_0x2f32e3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3bdc67=!0x0,_0x422549(_0x1edf9e[_0x2f32e3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2f32e3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f32e3([0x6c,0x6f,0x77])}),_0x5864a6[_0x2f32e3([0x74,0x68,0x65,0x6e])](()=>{_0x3bdc67||_0x111a5c(_0x2f32e3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x87e117(){return _0x54f118[_0x2f32e3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f32e3([0x76,0x69,0x65,0x77])][_0x2f32e3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2f32e3([0x61,0x75,0x74,0x6f]);}function _0x2a617d(){_0x54f118[_0x2f32e3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f32e3([0x76,0x69,0x65,0x77])][_0x2f32e3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f32e3([0x61,0x75,0x74,0x6f]);}}function _0x444345(_0x3a8766){const _0x40ec61=[new window[(_0x2f32e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c13c4=>setTimeout(_0x5c13c4,0x5356b2f6^_0x46ce6f)),_0x5864a6[_0x2f32e3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2f32e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c2aaf=>{let _0x56f0f1=0x0;_0x54f118[_0x2f32e3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f32e3([0x6f,0x6e])](_0x2f32e3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x591156,_0x5d0344)=>{_0x5d0344[0x0][_0x2f32e3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x56f0f1++,_0x56f0f1==(0x535f8dc2^_0x46ce6f)&&(_0x5c2aaf(),_0x591156[_0x2f32e3([0x6f,0x66,0x66])]());});}))];return window[_0x2f32e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f32e3([0x72,0x61,0x63,0x65])](_0x40ec61)[_0x2f32e3([0x74,0x68,0x65,0x6e])](()=>_0x3a8766);}async function _0x3c15b8(){await _0x5864a6,_0x54f118[_0x2f32e3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f32e3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x53a811,_0x54f118[_0x2f32e3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f32e3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x53a811,_0x54f118[_0x2f32e3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2f32e3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3e9776(_0x45dd96){const _0x53acbf=_0x59cdc3();_0x54f118[_0x53acbf]=_0x2f32e3([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x45dd96,_0x45dd96!=_0x2f32e3([0x56,0x61,0x6c,0x69,0x64])&&_0x3c15b8();}function _0x59cdc3(){const _0x5aee12=window[_0x2f32e3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2f32e3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2f32e3([0x6e,0x6f,0x77])]())[_0x2f32e3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2f32e3([0x2e]),'');let _0x413bb5=_0x2f32e3([0x68]);for(let _0x29c9cc=0x0;_0x29c9cc<_0x5aee12[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29c9cc+=0x2){let _0x73458=window[_0x2f32e3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5aee12[_0x2f32e3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29c9cc,_0x29c9cc+0x2));_0x73458>=_0x23338e[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x73458-=_0x23338e[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x413bb5+=_0x23338e[_0x73458];}return _0x413bb5;}function _0x56f757(){const _0x3ef0e1=_0x25e3c3[_0x2f32e3([0x73,0x70,0x6c,0x69,0x74])](_0x2f32e3([0x2e]));if(0x3!=_0x3ef0e1[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2d8a73(_0x3ef0e1[0x1]);function _0x2d8a73(_0x41da23){const _0x5552a3=_0x49ea0c(_0x41da23);return _0x5552a3&&_0x1e6b1d()?_0x5552a3:null;function _0x1e6b1d(){const _0x520b76=_0x5552a3[_0x2f32e3([0x6a,0x74,0x69])],_0x1b3dfd=window[_0x2f32e3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x520b76[_0x2f32e3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x520b76[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x431bb3={..._0x5552a3,[_0x2f32e3([0x6a,0x74,0x69])]:_0x520b76[_0x2f32e3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x520b76[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x431bb3[_0x2f32e3([0x76,0x63])],_0x3f9de4(_0x431bb3)==_0x1b3dfd;}}}async function _0x1ba0c5(){let _0x38fd89=!0x0;try{const _0x765a4f=_0x25e3c3[_0x2f32e3([0x73,0x70,0x6c,0x69,0x74])](_0x2f32e3([0x2e])),[_0x3cd1f9,_0x381eea,_0x1bf647]=_0x765a4f;return _0x4f3901(_0x3cd1f9),await _0x3ad0fa(_0x3cd1f9,_0x381eea,_0x1bf647),_0x38fd89;}catch{return!0x1;}function _0x4f3901(_0x5993b4){const _0x590605=_0x49ea0c(_0x5993b4);_0x590605&&_0x590605[_0x2f32e3([0x61,0x6c,0x67])]==_0x2f32e3([0x45,0x53,0x32,0x35,0x36])||(_0x38fd89=!0x1);}async function _0x3ad0fa(_0x1853b3,_0x1fea06,_0x254638){const _0x3ec707=window[_0x2f32e3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2f32e3([0x66,0x72,0x6f,0x6d])](_0x3481f5(_0x254638),_0x30eadc=>_0x30eadc[_0x2f32e3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x39ab28=new window[(_0x2f32e3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2f32e3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1853b3+_0x2f32e3([0x2e])+_0x1fea06),_0x3d1e96=window[_0x2f32e3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2f32e3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3d1e96)return;const _0x2905cc=await _0x3d1e96[_0x2f32e3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2f32e3([0x6a,0x77,0x6b]),_0x2536da,{[_0x2f32e3([0x6e,0x61,0x6d,0x65])]:_0x2f32e3([0x45,0x43,0x44,0x53,0x41]),[_0x2f32e3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2f32e3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2f32e3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3d1e96[_0x2f32e3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2f32e3([0x6e,0x61,0x6d,0x65])]:_0x2f32e3([0x45,0x43,0x44,0x53,0x41]),[_0x2f32e3([0x68,0x61,0x73,0x68])]:{[_0x2f32e3([0x6e,0x61,0x6d,0x65])]:_0x2f32e3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2905cc,_0x3ec707,_0x39ab28)||(_0x38fd89=!0x1);}}function _0x49ea0c(_0x375fe0){return _0x375fe0[_0x2f32e3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2f32e3([0x65,0x79]))?JSON[_0x2f32e3([0x70,0x61,0x72,0x73,0x65])](_0x3481f5(_0x375fe0)):null;}function _0x3481f5(_0x15b41e){return window[_0x2f32e3([0x61,0x74,0x6f,0x62])](_0x15b41e[_0x2f32e3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2f32e3([0x2b]))[_0x2f32e3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2f32e3([0x2f])));}function _0x3f9de4(_0x54fbcd){let _0xd81fe7=0x1505;function _0x498e96(_0x248614){for(let _0x30603c=0x0;_0x30603c<_0x248614[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30603c++){const _0x5e7842=_0x248614[_0x2f32e3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x30603c);_0xd81fe7=(_0xd81fe7<<0x5)+_0xd81fe7+_0x5e7842,_0xd81fe7&=_0xd81fe7;}}function _0x6d2228(_0x450f1c){Array[_0x2f32e3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x450f1c)?_0x450f1c[_0x2f32e3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x6d2228):_0x450f1c&&typeof _0x450f1c==_0x2f32e3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2f32e3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x450f1c)[_0x2f32e3([0x73,0x6f,0x72,0x74])]()[_0x2f32e3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x35d7fc,_0x344bc0])=>{_0x498e96(_0x35d7fc),_0x6d2228(_0x344bc0);}):_0x498e96(window[_0x2f32e3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x450f1c));}return _0x6d2228(_0x54fbcd),_0xd81fe7>>>0x0;}function _0x294e7d(_0x3786c8){return _0x3786c8[_0x2f32e3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2f32e3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2f32e3([0x30]));}function _0x114439(_0xbf4d03){return _0xbf4d03[_0x2f32e3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2f32e3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2f32e3([0x6a,0x6f,0x69,0x6e])]('');}function _0x53a811(){}function _0x2f32e3(_0x218522){const _0x2313be=_0x54f2;return _0x218522[_0x2313be(0x1e8)](_0x2d2681=>String[_0x2313be(0x228)](_0x2d2681))[_0x2313be(0x212)]('');}_0x3e9776(await _0x34c246());}(this);}[_0x42a7ba(0x232)](){const _0x3300ad=_0x42a7ba,_0x5e61ff=this[_0x3300ad(0x1ed)][_0x3300ad(0x1f8)][_0x3300ad(0x1f2)];_0x5e61ff[_0x3300ad(0x1e5)](_0x3300ad(0x211))&&_0x5e61ff[_0x3300ad(0x1e3)](_0x3300ad(0x211),{'allowAttributes':[_0x3300ad(0x220)]}),_0x5e61ff[_0x3300ad(0x1e5)](_0x3300ad(0x1e7))&&_0x5e61ff[_0x3300ad(0x1e3)](_0x3300ad(0x1e7),{'allowAttributes':[_0x3300ad(0x220)]});}[_0x42a7ba(0x1fa)](){const _0x303b07=_0x42a7ba,_0x54c0d9=this[_0x303b07(0x1ed)];_0x54c0d9[_0x303b07(0x1f1)][_0x303b07(0x230)](_0x303b07(0x1eb))[_0x303b07(0x20f)]({'model':_0x303b07(0x220),'view':_0x303b07(0x202)}),_0x54c0d9[_0x303b07(0x1f1)][_0x303b07(0x230)](_0x303b07(0x22e))[_0x303b07(0x20d)]({'model':{'key':_0x303b07(0x220),'value':_0x28eae6=>_0x28eae6[_0x303b07(0x21b)](_0x303b07(0x202))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x59af56=_0x54c0d9[_0x303b07(0x1ee)][_0x303b07(0x216)](_0x303b07(0x1f7));_0x59af56&&this[_0x303b07(0x1fb)](_0x59af56,_0x303b07(0x225),(_0x7f5ec6,[_0x4af58d,_0x2aac80])=>{const _0x41b56c=_0x303b07;_0x4af58d[_0x41b56c(0x20c)](_0x41b56c(0x220),_0x2aac80);});}[_0x42a7ba(0x1ec)](){const _0x2e882b=_0x42a7ba,_0x1b8cf5=this[_0x2e882b(0x1ed)][_0x2e882b(0x1ea)][_0x2e882b(0x216)](_0x2e882b(0x226))||{},_0x505d9d=this[_0x2e882b(0x1ed)][_0x2e882b(0x1ea)][_0x2e882b(0x216)](_0x2e882b(0x217))||'';this[_0x2e882b(0x1f6)]=_0x532829(_0x1a68e8[_0x2e882b(0x207)],_0x2e882b(0x1ff),{..._0x1b8cf5,'pubkey':_0x505d9d,'ctx-name':_0x2e882b(0x1f9)+this[_0x2e882b(0x208)],'sourceList':'','imgOnly':_0x2e882b(0x1f5),'removeCopyright':_0x2e882b(0x1f5),'localeName':this[_0x2e882b(0x1ed)][_0x2e882b(0x206)][_0x2e882b(0x224)],'externalSourcesEmbedCss':_0x2e882b(0x215)}),this[_0x2e882b(0x1f6)][_0x2e882b(0x22d)]=_0x36a2f9=>{const _0x44f3e2=_0x2e882b;if(_0x44f3e2(0x229)==_0x36a2f9)return _0x44f3e2(0x234);},_0x1a68e8[_0x2e882b(0x207)][_0x2e882b(0x1e4)][_0x2e882b(0x219)](this[_0x2e882b(0x1f6)]);}[_0x42a7ba(0x200)](){const _0x4efd00=_0x42a7ba;this[_0x4efd00(0x1ef)]=_0x532829(_0x1a68e8[_0x4efd00(0x207)],_0x4efd00(0x22f),{'ctx-name':_0x4efd00(0x1f9)+this[_0x4efd00(0x208)]}),_0x1a68e8[_0x4efd00(0x207)][_0x4efd00(0x1e4)][_0x4efd00(0x219)](this[_0x4efd00(0x1ef)]);}[_0x42a7ba(0x223)](){const _0x39a2ff=_0x42a7ba,_0x213e83=this[_0x39a2ff(0x1ed)][_0x39a2ff(0x1ee)][_0x39a2ff(0x216)](_0x39a2ff(0x236));_0x213e83&&this[_0x39a2ff(0x1fb)](_0x213e83,_0x39a2ff(0x1fd),()=>{const _0x518253=_0x39a2ff,_0x3640c8=this[_0x518253(0x1ed)][_0x518253(0x1f8)][_0x518253(0x207)][_0x518253(0x1fc)][_0x518253(0x21d)]();_0x3640c8&&_0x3640c8[_0x518253(0x21b)](_0x518253(0x220))&&this[_0x518253(0x1ed)][_0x518253(0x1fe)][_0x518253(0x1e6)][_0x518253(0x1f4)](_0x518253(0x1f3),()=>{const _0x1ea705=_0x518253;_0x4dd0d7(this[_0x1ea705(0x1ed)],_0x3640c8);});});const _0x63d3e3=this[_0x39a2ff(0x1ed)][_0x39a2ff(0x1ee)][_0x39a2ff(0x216)](_0x39a2ff(0x20b));_0x63d3e3&&this[_0x39a2ff(0x1fb)](_0x63d3e3,_0x39a2ff(0x1fd),()=>{const _0x4f7005=_0x39a2ff,_0x5588f2=this[_0x4f7005(0x1ed)][_0x4f7005(0x1f8)][_0x4f7005(0x207)][_0x4f7005(0x1fc)][_0x4f7005(0x21d)]();_0x5588f2&&_0x5588f2[_0x4f7005(0x21b)](_0x4f7005(0x220))&&this[_0x4f7005(0x1ed)][_0x4f7005(0x1fe)][_0x4f7005(0x1e6)][_0x4f7005(0x1f4)](_0x4f7005(0x1f3),()=>{const _0x54cd7f=_0x4f7005;_0x4dd0d7(this[_0x54cd7f(0x1ed)],_0x5588f2);});});}}function _0x1d8a(){const _0x522478=['downcast','_initConfig','editor','commands','_ctxElement','273080LiTxQa','conversion','schema','render','once','true','_configElement','replaceImageSource','model','uploader-','_initConversion','listenTo','selection','execute','editing','uc-config','_initCtx','7149393ohQjCM','data-uc-image-id','isOfficialPlugin','input[uploadcare-file-input]','isPremiumPlugin','locale','document','ucContextId','href','4759185TFNsWe','uploadcareImageReplace','removeAttribute','elementToAttribute','init','attributeToAttribute','querySelector','imageBlock','join','410415cFSYVn','pluginName','\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','get','uploadcare.pubkey','afterInit','appendChild','requires','getAttribute','PictureEditing','getSelectedElement','2342956JMcGGw','UploadcareEditing','uploadcareImageId','add','6YPANZB','_initImageProcessingIndicator','contentLanguage','cleanupImage','uploadcare.uploader','4320600tyvJUn','fromCharCode','closeMax','28TieRVw','uploadcare','destroy','iconHrefResolver','upcast','uc-upload-ctx-provider','for','remove','_initSchema','configElement','#uc-icon-arrow-down','ctxElement','insertImage','extend','body','isRegistered','view','imageInline','map','906320kjiaqk','config'];_0x1d8a=function(){return _0x522478;};return _0x1d8a();}
|
|
23
|
+
function _0x3d25(){const _0x10d957=['_initConversion','querySelector','_initCtx','38996FwSNkt','17888koToZd','getAttribute','join','requires','upcast','insertImage','locale','data-uc-image-id','\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','isPremiumPlugin','get','removeAttribute','uploadcare','once','true','destroy','elementToAttribute','3eAImCF','UploadcareEditing','editor','attributeToAttribute','isOfficialPlugin','remove','selection','body','uploader-','listenTo','commands','input[uploadcare-file-input]','document','uc-config','uc-upload-ctx-provider','editing','add','2076560GTXJAa','configElement','afterInit','downcast','extend','489906Oycyxp','contentLanguage','model','init','uploadcareImageId','getSelectedElement','ucContextId','pluginName','conversion','PictureEditing','10hbyJhS','uploadcare.pubkey','iconHrefResolver','372KVDcPY','cleanupImage','ctxElement','_initSchema','imageInline','href','replaceImageSource','isRegistered','#uc-icon-arrow-down','map','execute','2275441QLvzFz','closeMax','appendChild','render','for','uploadcareImageReplace','_initConfig','_ctxElement','view','fromCharCode','1532920cTPlOw','imageBlock','config','_configElement','uploadcare.uploader','542442Gpgwkr','schema','_initImageProcessingIndicator'];_0x3d25=function(){return _0x10d957;};return _0x3d25();}const _0x1d59e6=_0x1187;(function(_0x47d583,_0x5213ab){const _0xa02122=_0x1187,_0x312e87=_0x47d583();while(!![]){try{const _0x40f3c8=parseInt(_0xa02122(0x1f3))/0x1*(-parseInt(_0xa02122(0x1e1))/0x2)+-parseInt(_0xa02122(0x216))/0x3*(-parseInt(_0xa02122(0x1e2))/0x4)+parseInt(_0xa02122(0x213))/0x5*(-parseInt(_0xa02122(0x1db))/0x6)+parseInt(_0xa02122(0x1cc))/0x7+-parseInt(_0xa02122(0x1d6))/0x8+parseInt(_0xa02122(0x209))/0x9+-parseInt(_0xa02122(0x204))/0xa;if(_0x40f3c8===_0x5213ab)break;else _0x312e87['push'](_0x312e87['shift']());}catch(_0x122960){_0x312e87['push'](_0x312e87['shift']());}}}(_0x3d25,0x48216));import{Plugin as _0x2c9f1d}from'ckeditor5/src/core.js';import{Dialog as _0x4b3a3f}from'ckeditor5/src/ui.js';function _0x1187(_0x3c1333,_0x337a11){const _0x3d258d=_0x3d25();return _0x1187=function(_0x11872f,_0x4bbfe4){_0x11872f=_0x11872f-0x1c7;let _0x2bd22b=_0x3d258d[_0x11872f];return _0x2bd22b;},_0x1187(_0x3c1333,_0x337a11);}import{createElement as _0x17bf91,global as _0x37ab1f,uid as _0x514b46}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5847e4}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x12a9a3}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5c1121}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2c9f1d{[_0x1d59e6(0x1d9)]=null;[_0x1d59e6(0x1d3)]=null;static get[_0x1d59e6(0x210)](){const _0x2bb444=_0x1d59e6;return _0x2bb444(0x1f4);}static get[_0x1d59e6(0x1e5)](){const _0x11fcbf=_0x1d59e6;return[_0x11fcbf(0x212),_0x12a9a3,_0x4b3a3f];}static get[_0x1d59e6(0x1f7)](){return!0x0;}static get[_0x1d59e6(0x1eb)](){return!0x0;}[_0x1d59e6(0x20f)];get[_0x1d59e6(0x205)](){const _0x14a42e=_0x1d59e6;return this[_0x14a42e(0x1d9)];}get[_0x1d59e6(0x218)](){const _0x6f203b=_0x1d59e6;return this[_0x6f203b(0x1d3)];}constructor(_0x2d63fa){const _0x3328a5=_0x1d59e6;super(_0x2d63fa),this[_0x3328a5(0x20f)]=_0x514b46();}[_0x1d59e6(0x20c)](){const _0x1f4972=_0x1d59e6,_0x3023f0=this[_0x1f4972(0x1f5)];_0x3023f0[_0x1f4972(0x1fd)][_0x1f4972(0x203)](_0x1f4972(0x1ee),new _0x5847e4(_0x3023f0));}[_0x1d59e6(0x206)](){const _0x2ea589=_0x1d59e6;this[_0x2ea589(0x219)](),this[_0x2ea589(0x1de)](),this[_0x2ea589(0x1d2)](),this[_0x2ea589(0x1e0)](),this[_0x2ea589(0x1dd)](),this[_0x2ea589(0x1fc)](this[_0x2ea589(0x1f5)],_0x2ea589(0x1f1),()=>{const _0x4745da=_0x2ea589;this[_0x4745da(0x1d9)]&&(this[_0x4745da(0x1d9)][_0x4745da(0x1f8)](),this[_0x4745da(0x1d9)]=null),this[_0x4745da(0x1d3)]&&(this[_0x4745da(0x1d3)][_0x4745da(0x1f8)](),this[_0x4745da(0x1d3)]=null);const _0x4a274b=_0x37ab1f[_0x4745da(0x1ff)][_0x4745da(0x1df)](_0x4745da(0x1fe));_0x4a274b&&_0x4a274b[_0x4745da(0x1f8)]();}),async function(_0x215832){const _0x56d1f7=_0x533484([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]),_0x3f9a36=0x535f8c3a,_0x1faefb=0x5358fbca^_0x3f9a36,_0x3f463d=window[_0x533484([0x44,0x61,0x74,0x65])][_0x533484([0x6e,0x6f,0x77])](),_0x191377=_0x215832[_0x533484([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x170af6=new window[(_0x533484([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30c169=>{_0x191377[_0x533484([0x6f,0x6e,0x63,0x65])](_0x533484([0x72,0x65,0x61,0x64,0x79]),_0x30c169);}),_0x3643cc={[_0x533484([0x6b,0x74,0x79])]:_0x533484([0x45,0x43]),[_0x533484([0x75,0x73,0x65])]:_0x533484([0x73,0x69,0x67]),[_0x533484([0x63,0x72,0x76])]:_0x533484([0x50,0x2d,0x32,0x35,0x36]),[_0x533484([0x78])]:_0x533484([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]),[_0x533484([0x79])]:_0x533484([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]),[_0x533484([0x61,0x6c,0x67])]:_0x533484([0x45,0x53,0x32,0x35,0x36])},_0x54167a=_0x191377[_0x533484([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x533484([0x67,0x65,0x74])](_0x533484([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x31ba60(){let _0xf8a871,_0x1a6ae4=null,_0x2cf32b=null;try{if(_0x54167a==_0x533484([0x47,0x50,0x4c]))return _0x533484([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf8a871=_0x5bd46f(),!_0xf8a871)return _0x533484([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf8a871[_0x533484([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2cf32b=_0x36ae02(_0xf8a871[_0x533484([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf8a871[_0x533484([0x6a,0x74,0x69])])),await _0x1cb28e()?_0x49a94f()?_0x15ae27()?_0x533484([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x337022()?(_0xf8a871[_0x533484([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x533484([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1a6ae4=_0x2064f1(_0x533484([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xf8a871[_0x533484([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x533484([0x74,0x72,0x69,0x61,0x6c])&&(_0x1a6ae4=_0x2064f1(_0x533484([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x202fd1()):_0x533484([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x533484([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x533484([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x533484([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x15ae27(){const _0x5060e2=[_0x533484([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x533484([0x74,0x72,0x69,0x61,0x6c])][_0x533484([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf8a871[_0x533484([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3f463d/0x3e8:0xe10*_0x1faefb;return _0xf8a871[_0x533484([0x65,0x78,0x70])]<_0x5060e2;}function _0x49a94f(){const _0x471915=_0xf8a871[_0x533484([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x471915&&(!!_0x471915[_0x533484([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x533484([0x2a]))||!!_0x471915[_0x533484([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x533484([0x55,0x50,0x4c,0x43])));}function _0x337022(){const _0x1f44d7=_0x1187,_0x944247=_0xf8a871[_0x533484([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x944247||0x0==_0x944247[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a0e8c}=new URL(window[_0x533484([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1f44d7(0x21b)]);if(_0x944247[_0x533484([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a0e8c))return!0x0;const _0x56b5fc=_0x5a0e8c[_0x533484([0x73,0x70,0x6c,0x69,0x74])](_0x533484([0x2e]));return _0x944247[_0x533484([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x436cd0=>_0x436cd0[_0x533484([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x533484([0x2a])))[_0x533484([0x6d,0x61,0x70])](_0x422cfd=>_0x422cfd[_0x533484([0x73,0x70,0x6c,0x69,0x74])](_0x533484([0x2e])))[_0x533484([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39b675=>_0x39b675[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x56b5fc[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x533484([0x6d,0x61,0x70])](_0x36cdc7=>Array(_0x56b5fc[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x36cdc7[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x533484([0x66,0x69,0x6c,0x6c])](_0x36cdc7[0x0]===_0x533484([0x2a])?_0x533484([0x2a]):'')[_0x533484([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x36cdc7))[_0x533484([0x73,0x6f,0x6d,0x65])](_0xad822a=>_0x56b5fc[_0x533484([0x65,0x76,0x65,0x72,0x79])]((_0x668930,_0x1b209a)=>_0xad822a[_0x1b209a]===_0x668930||_0xad822a[_0x1b209a]===_0x533484([0x2a])));}function _0x202fd1(){return _0x1a6ae4&&_0x2cf32b?new window[(_0x533484([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x573aa4,_0x50892b)=>{_0x1a6ae4[_0x533484([0x74,0x68,0x65,0x6e])](_0x573aa4,_0x50892b),_0x2cf32b[_0x533484([0x74,0x68,0x65,0x6e])](_0x5c5e40=>{_0x5c5e40!=_0x533484([0x56,0x61,0x6c,0x69,0x64])&&_0x573aa4(_0x5c5e40);},_0x50892b);}):_0x1a6ae4||_0x2cf32b||_0x533484([0x56,0x61,0x6c,0x69,0x64]);}}function _0x36ae02(_0x1c2988,_0x3bd1f1){return new window[(_0x533484([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ba4fe=>{if(_0x2b2b35())return _0x1ba4fe(_0x533484([0x56,0x61,0x6c,0x69,0x64]));_0xfdce3e(),_0x191377[_0x533484([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x533484([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x12ff93=!0x1;const _0x5518ca=_0x514b46();function _0x39989e(_0x4ca6d7){return!!_0x4ca6d7&&(typeof _0x4ca6d7===_0x533484([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4ca6d7===_0x533484([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4ca6d7[_0x533484([0x74,0x68,0x65,0x6e])]===_0x533484([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4ca6d7[_0x533484([0x63,0x61,0x74,0x63,0x68])]===_0x533484([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4f9e03(_0x4cf477){_0x4a852b(_0x4cf477)[_0x533484([0x74,0x68,0x65,0x6e])](_0x18161f=>{if(!_0x18161f||_0x18161f[_0x533484([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x533484([0x6f,0x6b]))return _0x533484([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x115512(_0x1285f2(_0x5518ca+_0x3bd1f1))!=_0x18161f[_0x533484([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x533484([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x533484([0x56,0x61,0x6c,0x69,0x64]);})[_0x533484([0x74,0x68,0x65,0x6e])](_0x390254=>(_0x40cfa8(),_0x390254),()=>{const _0x2839eb=_0x2ebd7f();return null==_0x2839eb?(_0x40cfa8(),_0x533484([0x56,0x61,0x6c,0x69,0x64])):_0x533484(_0x3f463d-_0x2839eb>(0x7753083a^_0x3f9a36)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x533484([0x74,0x68,0x65,0x6e])](_0x1ba4fe)[_0x533484([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1ba4fe(_0x533484([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2149fe=0x536962ba^_0x3f9a36;function _0x40cfa8(){const _0x391d50=_0x533484([0x6c,0x6c,0x63,0x74,0x2d])+_0x115512(_0x1285f2(_0x1c2988)),_0x83464a=_0x4567ff(_0x115512(window[_0x533484([0x4d,0x61,0x74,0x68])][_0x533484([0x63,0x65,0x69,0x6c])](_0x3f463d/_0x2149fe)));window[_0x533484([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x533484([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x391d50,_0x83464a);}function _0x2ebd7f(){const _0xd9094=_0x533484([0x6c,0x6c,0x63,0x74,0x2d])+_0x115512(_0x1285f2(_0x1c2988)),_0x440ed4=window[_0x533484([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x533484([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd9094);return _0x440ed4?window[_0x533484([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4567ff(_0x440ed4),0x10)*_0x2149fe:null;}function _0x4a852b(_0x35f230){return new window[(_0x533484([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x317cad,_0x101e03)=>{_0x35f230[_0x533484([0x74,0x68,0x65,0x6e])](_0x317cad,_0x101e03),window[_0x533484([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x101e03,0x535e58fa^_0x3f9a36);});}}_0x191377[_0x533484([0x6f,0x6e])](_0x533484([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5f55db,_0x454fbe)=>{if(_0x454fbe[0x0]!=_0x1c2988)return _0x1ba4fe(_0x533484([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x454fbe[0x1]={..._0x454fbe[0x1],[_0x533484([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5518ca};},{[_0x533484([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x533484([0x68,0x69,0x67,0x68])}),_0x191377[_0x533484([0x6f,0x6e])](_0x533484([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5da4f3=>{_0x39989e(_0x5da4f3[_0x533484([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x12ff93=!0x0,_0x4f9e03(_0x5da4f3[_0x533484([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x533484([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x533484([0x6c,0x6f,0x77])}),_0x170af6[_0x533484([0x74,0x68,0x65,0x6e])](()=>{_0x12ff93||_0x1ba4fe(_0x533484([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b2b35(){return _0x191377[_0x533484([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x533484([0x76,0x69,0x65,0x77])][_0x533484([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x533484([0x61,0x75,0x74,0x6f]);}function _0xfdce3e(){_0x191377[_0x533484([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x533484([0x76,0x69,0x65,0x77])][_0x533484([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x533484([0x61,0x75,0x74,0x6f]);}}function _0x2064f1(_0x2bdc60){const _0x435485=[new window[(_0x533484([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21718d=>setTimeout(_0x21718d,0x5356b2f6^_0x3f9a36)),_0x170af6[_0x533484([0x74,0x68,0x65,0x6e])](()=>new window[(_0x533484([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f1aae=>{let _0x11b586=0x0;_0x191377[_0x533484([0x6d,0x6f,0x64,0x65,0x6c])][_0x533484([0x6f,0x6e])](_0x533484([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x296fd7,_0x588732)=>{_0x588732[0x0][_0x533484([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x11b586++,_0x11b586==(0x535f8dc2^_0x3f9a36)&&(_0x5f1aae(),_0x296fd7[_0x533484([0x6f,0x66,0x66])]());});}))];return window[_0x533484([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x533484([0x72,0x61,0x63,0x65])](_0x435485)[_0x533484([0x74,0x68,0x65,0x6e])](()=>_0x2bdc60);}async function _0x3735b4(){await _0x170af6,_0x191377[_0x533484([0x6d,0x6f,0x64,0x65,0x6c])][_0x533484([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2c6708,_0x191377[_0x533484([0x6d,0x6f,0x64,0x65,0x6c])][_0x533484([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2c6708,_0x191377[_0x533484([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x533484([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x513bb7(_0x2811f7){const _0x33b480=_0x3bd901();_0x191377[_0x33b480]=_0x533484([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2811f7,_0x2811f7!=_0x533484([0x56,0x61,0x6c,0x69,0x64])&&_0x3735b4();}function _0x3bd901(){const _0xb0b9a3=window[_0x533484([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x533484([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x533484([0x6e,0x6f,0x77])]())[_0x533484([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x533484([0x2e]),'');let _0xc5b359=_0x533484([0x68]);for(let _0x43f33d=0x0;_0x43f33d<_0xb0b9a3[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43f33d+=0x2){let _0x2f9557=window[_0x533484([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb0b9a3[_0x533484([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43f33d,_0x43f33d+0x2));_0x2f9557>=_0x56d1f7[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f9557-=_0x56d1f7[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xc5b359+=_0x56d1f7[_0x2f9557];}return _0xc5b359;}function _0x5bd46f(){const _0x49d6a0=_0x54167a[_0x533484([0x73,0x70,0x6c,0x69,0x74])](_0x533484([0x2e]));if(0x3!=_0x49d6a0[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x128a53(_0x49d6a0[0x1]);function _0x128a53(_0x579af4){const _0x31db48=_0xf892b0(_0x579af4);return _0x31db48&&_0xa3d481()?_0x31db48:null;function _0xa3d481(){const _0xde02f0=_0x31db48[_0x533484([0x6a,0x74,0x69])],_0x417517=window[_0x533484([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xde02f0[_0x533484([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xde02f0[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x34118d={..._0x31db48,[_0x533484([0x6a,0x74,0x69])]:_0xde02f0[_0x533484([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xde02f0[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x34118d[_0x533484([0x76,0x63])],_0x1285f2(_0x34118d)==_0x417517;}}}async function _0x1cb28e(){let _0x302d9d=!0x0;try{const _0xdae5ec=_0x54167a[_0x533484([0x73,0x70,0x6c,0x69,0x74])](_0x533484([0x2e])),[_0x204105,_0x3c0c35,_0x2ea5b6]=_0xdae5ec;return _0x40661d(_0x204105),await _0x2d66ad(_0x204105,_0x3c0c35,_0x2ea5b6),_0x302d9d;}catch{return!0x1;}function _0x40661d(_0x2be25b){const _0x1a121b=_0xf892b0(_0x2be25b);_0x1a121b&&_0x1a121b[_0x533484([0x61,0x6c,0x67])]==_0x533484([0x45,0x53,0x32,0x35,0x36])||(_0x302d9d=!0x1);}async function _0x2d66ad(_0xc94d8b,_0x4db467,_0x14d8f3){const _0x1b4bb8=window[_0x533484([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x533484([0x66,0x72,0x6f,0x6d])](_0x51fb90(_0x14d8f3),_0x5e3229=>_0x5e3229[_0x533484([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x58dd06=new window[(_0x533484([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x533484([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc94d8b+_0x533484([0x2e])+_0x4db467),_0x3cb582=window[_0x533484([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x533484([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3cb582)return;const _0x360727=await _0x3cb582[_0x533484([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x533484([0x6a,0x77,0x6b]),_0x3643cc,{[_0x533484([0x6e,0x61,0x6d,0x65])]:_0x533484([0x45,0x43,0x44,0x53,0x41]),[_0x533484([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x533484([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x533484([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3cb582[_0x533484([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x533484([0x6e,0x61,0x6d,0x65])]:_0x533484([0x45,0x43,0x44,0x53,0x41]),[_0x533484([0x68,0x61,0x73,0x68])]:{[_0x533484([0x6e,0x61,0x6d,0x65])]:_0x533484([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x360727,_0x1b4bb8,_0x58dd06)||(_0x302d9d=!0x1);}}function _0xf892b0(_0x58c6b5){return _0x58c6b5[_0x533484([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x533484([0x65,0x79]))?JSON[_0x533484([0x70,0x61,0x72,0x73,0x65])](_0x51fb90(_0x58c6b5)):null;}function _0x51fb90(_0x3feb82){return window[_0x533484([0x61,0x74,0x6f,0x62])](_0x3feb82[_0x533484([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x533484([0x2b]))[_0x533484([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x533484([0x2f])));}function _0x1285f2(_0x203ec3){let _0x5ef31f=0x1505;function _0x3a10f0(_0x1ba698){for(let _0x55bfc9=0x0;_0x55bfc9<_0x1ba698[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55bfc9++){const _0x1eeb23=_0x1ba698[_0x533484([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55bfc9);_0x5ef31f=(_0x5ef31f<<0x5)+_0x5ef31f+_0x1eeb23,_0x5ef31f&=_0x5ef31f;}}function _0x8891d4(_0x391cbc){Array[_0x533484([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x391cbc)?_0x391cbc[_0x533484([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x8891d4):_0x391cbc&&typeof _0x391cbc==_0x533484([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x533484([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x391cbc)[_0x533484([0x73,0x6f,0x72,0x74])]()[_0x533484([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x476b47,_0x5ca3aa])=>{_0x3a10f0(_0x476b47),_0x8891d4(_0x5ca3aa);}):_0x3a10f0(window[_0x533484([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x391cbc));}return _0x8891d4(_0x203ec3),_0x5ef31f>>>0x0;}function _0x115512(_0x2cd51b){return _0x2cd51b[_0x533484([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x533484([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x533484([0x30]));}function _0x4567ff(_0x5669e9){return _0x5669e9[_0x533484([0x73,0x70,0x6c,0x69,0x74])]('')[_0x533484([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x533484([0x6a,0x6f,0x69,0x6e])]('');}function _0x2c6708(){}function _0x533484(_0x25fc1c){const _0x7d165b=_0x1187;return _0x25fc1c[_0x7d165b(0x1ca)](_0x314de6=>String[_0x7d165b(0x1d5)](_0x314de6))[_0x7d165b(0x1e4)]('');}_0x513bb7(await _0x31ba60());}(this);}[_0x1d59e6(0x219)](){const _0x55d75e=_0x1d59e6,_0x49f8e0=this[_0x55d75e(0x1f5)][_0x55d75e(0x20b)][_0x55d75e(0x1dc)];_0x49f8e0[_0x55d75e(0x1c8)](_0x55d75e(0x1d7))&&_0x49f8e0[_0x55d75e(0x208)](_0x55d75e(0x1d7),{'allowAttributes':[_0x55d75e(0x20d)]}),_0x49f8e0[_0x55d75e(0x1c8)](_0x55d75e(0x21a))&&_0x49f8e0[_0x55d75e(0x208)](_0x55d75e(0x21a),{'allowAttributes':[_0x55d75e(0x20d)]});}[_0x1d59e6(0x1de)](){const _0x5a4a6d=_0x1d59e6,_0x5f1c2c=this[_0x5a4a6d(0x1f5)];_0x5f1c2c[_0x5a4a6d(0x211)][_0x5a4a6d(0x1d0)](_0x5a4a6d(0x207))[_0x5a4a6d(0x1f6)]({'model':_0x5a4a6d(0x20d),'view':_0x5a4a6d(0x1e9)}),_0x5f1c2c[_0x5a4a6d(0x211)][_0x5a4a6d(0x1d0)](_0x5a4a6d(0x1e6))[_0x5a4a6d(0x1f2)]({'model':{'key':_0x5a4a6d(0x20d),'value':_0xbed8cf=>_0xbed8cf[_0x5a4a6d(0x1e3)](_0x5a4a6d(0x1e9))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x29dd64=_0x5f1c2c[_0x5a4a6d(0x1fd)][_0x5a4a6d(0x1ec)](_0x5a4a6d(0x1c7));_0x29dd64&&this[_0x5a4a6d(0x1fc)](_0x29dd64,_0x5a4a6d(0x217),(_0x351cb1,[_0x361d64,_0x454977])=>{const _0x23960c=_0x5a4a6d;_0x361d64[_0x23960c(0x1ed)](_0x23960c(0x20d),_0x454977);});}[_0x1d59e6(0x1d2)](){const _0xc346=_0x1d59e6,_0x482e4b=this[_0xc346(0x1f5)][_0xc346(0x1d8)][_0xc346(0x1ec)](_0xc346(0x1da))||{},_0x129eab=this[_0xc346(0x1f5)][_0xc346(0x1d8)][_0xc346(0x1ec)](_0xc346(0x214))||'';this[_0xc346(0x1d9)]=_0x17bf91(_0x37ab1f[_0xc346(0x1ff)],_0xc346(0x200),{..._0x482e4b,'pubkey':_0x129eab,'ctx-name':_0xc346(0x1fb)+this[_0xc346(0x20f)],'sourceList':'','imgOnly':_0xc346(0x1f0),'removeCopyright':_0xc346(0x1f0),'localeName':this[_0xc346(0x1f5)][_0xc346(0x1e8)][_0xc346(0x20a)],'externalSourcesEmbedCss':_0xc346(0x1ea)}),this[_0xc346(0x1d9)][_0xc346(0x215)]=_0x3fe817=>{const _0x4becbc=_0xc346;if(_0x4becbc(0x1cd)==_0x3fe817)return _0x4becbc(0x1c9);},_0x37ab1f[_0xc346(0x1ff)][_0xc346(0x1fa)][_0xc346(0x1ce)](this[_0xc346(0x1d9)]);}[_0x1d59e6(0x1e0)](){const _0xe8d040=_0x1d59e6;this[_0xe8d040(0x1d3)]=_0x17bf91(_0x37ab1f[_0xe8d040(0x1ff)],_0xe8d040(0x201),{'ctx-name':_0xe8d040(0x1fb)+this[_0xe8d040(0x20f)]}),_0x37ab1f[_0xe8d040(0x1ff)][_0xe8d040(0x1fa)][_0xe8d040(0x1ce)](this[_0xe8d040(0x1d3)]);}[_0x1d59e6(0x1dd)](){const _0x4c266b=_0x1d59e6,_0x1213e5=this[_0x4c266b(0x1f5)][_0x4c266b(0x1fd)][_0x4c266b(0x1ec)](_0x4c266b(0x1e7));_0x1213e5&&this[_0x4c266b(0x1fc)](_0x1213e5,_0x4c266b(0x1cb),()=>{const _0x2461af=_0x4c266b,_0x4eadea=this[_0x2461af(0x1f5)][_0x2461af(0x20b)][_0x2461af(0x1ff)][_0x2461af(0x1f9)][_0x2461af(0x20e)]();_0x4eadea&&_0x4eadea[_0x2461af(0x1e3)](_0x2461af(0x20d))&&this[_0x2461af(0x1f5)][_0x2461af(0x202)][_0x2461af(0x1d4)][_0x2461af(0x1ef)](_0x2461af(0x1cf),()=>{const _0x3ee14c=_0x2461af;_0x5c1121(this[_0x3ee14c(0x1f5)],_0x4eadea);});});const _0x307dcf=this[_0x4c266b(0x1f5)][_0x4c266b(0x1fd)][_0x4c266b(0x1ec)](_0x4c266b(0x1d1));_0x307dcf&&this[_0x4c266b(0x1fc)](_0x307dcf,_0x4c266b(0x1cb),()=>{const _0x49b365=_0x4c266b,_0x17ba22=this[_0x49b365(0x1f5)][_0x49b365(0x20b)][_0x49b365(0x1ff)][_0x49b365(0x1f9)][_0x49b365(0x20e)]();_0x17ba22&&_0x17ba22[_0x49b365(0x1e3)](_0x49b365(0x20d))&&this[_0x49b365(0x1f5)][_0x49b365(0x202)][_0x49b365(0x1d4)][_0x49b365(0x1ef)](_0x49b365(0x1cf),()=>{const _0x2a89e3=_0x49b365;_0x5c1121(this[_0x2a89e3(0x1f5)],_0x17ba22);});});}}
|