@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250421.0 → 0.0.0-nightly-20250422.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/uploadcareediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x23d547,Command as _0x937566}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4eca3f,IconGooglePhotos as _0x226244,IconGoogleDrive as _0x4845c1,IconFacebook as _0x102674,IconDropbox as _0x311954,IconUploadcareLink as _0x32c6aa,IconUploadcareImageUpload as _0x4cade3,IconError as et,IconUploadcareImageEdit as _0x19032a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1c1089,MenuBarMenuListItemButtonView as _0x383849,View as _0x1d33b5,FocusCycler as _0x282734,Dialog as _0xaba52e,DialogViewPosition as _0x3bc20e,SpinnerView as _0x518971,IconView as at,Notification as _0x184f04}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xd13535,DomEmitterMixin as _0x36f4a7,global as _0x1915e9,getAncestors as _0x2a11e7,ObservableMixin as _0x5e6b33,createElement as _0x5a5841,uid as _0x32241f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x585297}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x61d20f,info as _0x5f0b3e}from'@uploadcare/upload-client';import*as _0x2df8e7 from'@uploadcare/file-uploader';var o=function(_0x91901){return _0x91901['Local']='local',_0x91901['URL']='url',_0x91901['Dropbox']='dropbox',_0x91901['GDrive']='gdrive',_0x91901['Facebook']='facebook',_0x91901['GPhotos']='gphotos',_0x91901['OneDrive']='onedrive',_0x91901;}({});function _(_0x5cbea8,_0x386ad1,_0x26edfb){const t=_0x5cbea8['t'],_0x466e91=_0x5cbea8['t'];switch(_0x386ad1){case o['Local']:return{'text':_0x466e91('Insert'===_0x26edfb?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x466e91('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x26edfb?_0x466e91('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x466e91('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x26edfb?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x26edfb?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x26edfb?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x26edfb?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x26edfb?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x386ad1;}}class e extends _0x23d547{['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 _0x4f4522=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5c0dc5;for(const _0x3f64ab in _0x4f4522){const _0x4a1278=_0x3f64ab,_0x301910=_0x4f4522[_0x4a1278];if('uploadcareLicenseKeyValid'==_0x301910||'uploadcareLicenseKeyInvalid'==_0x301910||'uploadcareLicenseKeyExpired'==_0x301910||'uploadcareLicenseKeyDomainLimit'==_0x301910||'uploadcareLicenseKeyNotAllowed'==_0x301910||'uploadcareLicenseKeyEvaluationLimit'==_0x301910||'uploadcareLicenseKeyTrialLimit'==_0x301910||'uploadcareLicenseKeyUsageLimit'==_0x301910){delete _0x4f4522[_0x4a1278],_0x5c0dc5=_0x301910,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5c0dc5&&_0x4f4522['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5c0dc5&&_0x4f4522['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5c0dc5&&_0x4f4522['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5c0dc5&&_0x4f4522['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5c0dc5&&_0x4f4522['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5c0dc5&&_0x4f4522['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5c0dc5&&_0x4f4522['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x11598a}=this,_0x5b51aa=_0x11598a['commands']['get']('uploadcare');if(!_0x5b51aa)return;const _0x367001=this['_normalizeConfigSourceList'](_0x11598a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x11f422,_0x415aab)=>{const _0x2ea474=this['_getIntegrationKey'](_0x415aab['type']);return _0x11f422[_0x2ea474]||(_0x11f422[_0x2ea474]=[]),_0x11f422[_0x2ea474]['push'](_0x415aab),_0x11f422;},{});_0x11598a['plugins']['has']('ImageInsertUI')&&_0x11598a['commands']['get']('uploadcare')&&Object['entries'](_0x367001)['forEach'](([_0x3e1235,_0x514242])=>{_0x11598a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3e1235,'observable':()=>_0x5b51aa,'buttonViewCreator':()=>this['_createToolbarButton'](_0x514242),'formViewCreator':()=>this['_createDropdownButtons'](_0x514242),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x514242),'override':'assetManager'!==_0x3e1235});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xbd03f9){const {locale:_0x15db32}=this['editor'];return _0xbd03f9['map'](_0x130f99=>{const _0xba0a9f=_(_0x15db32,_0x130f99,'Insert');switch(_0x130f99){case o['Local']:return{'icon':_0x4cade3,'type':o['Local'],..._0xba0a9f};case o['URL']:return{'icon':_0x32c6aa,'type':o['URL'],..._0xba0a9f};case o['Dropbox']:return{'icon':_0x311954,'type':o['Dropbox'],..._0xba0a9f};case o['Facebook']:return{'icon':_0x102674,'type':o['Facebook'],..._0xba0a9f};case o['GDrive']:return{'icon':_0x4845c1,'type':o['GDrive'],..._0xba0a9f};case o['GPhotos']:return{'icon':_0x226244,'type':o['GPhotos'],..._0xba0a9f};case o['OneDrive']:return{'icon':_0x4eca3f,'type':o['OneDrive'],..._0xba0a9f};}});}['_getIntegrationKey'](_0x1c01f9){switch(_0x1c01f9){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x347cb3,_0x35edbc){const _0xaaaa8=this['editor'],_0x259bae=new _0x347cb3(_0xaaaa8['locale']),_0x3411bd=_0xaaaa8['commands']['get']('uploadcare');return _0x259bae['bind']('isEnabled')['to'](_0x3411bd),_0x259bae['on']('execute',()=>{_0x3411bd['execute'](_0x35edbc);}),_0x259bae;}['_createToolbarButton'](_0x1c99de){const {locale:_0x49943e}=this['editor'],_0x6097ea=this['editor']['plugins']['get']('ImageInsertUI'),_0x116b04=_0x1c99de[0x0],_0x12f1f1=this['_createButton'](_0x1c1089,_0x116b04['type']);return _0x12f1f1['icon']=_0x116b04['icon'],_0x12f1f1['bind']('label')['to'](_0x6097ea,'isImageSelected',_0x3c293b=>_(_0x49943e,_0x116b04['type'],_0x3c293b?'Replace':'Insert')['text']),_0x12f1f1['tooltip']=!0x0,_0x12f1f1;}['_createDropdownButtons'](_0x1634c7){const {locale:_0x598d82}=this['editor'],_0x5e555c=this['editor']['plugins']['get']('ImageInsertUI');return _0x1634c7['map'](_0x20053b=>{const _0x2263c9=this['_createButton'](_0x1c1089,_0x20053b['type']);return _0x2263c9['withText']=!0x0,_0x2263c9['icon']=_0x20053b['icon'],_0x2263c9['bind']('label')['to'](_0x5e555c,'isImageSelected',_0x45cdbb=>_(_0x598d82,_0x20053b['type'],_0x45cdbb?'Replace':'Insert')['text']),_0x2263c9;});}['_createMenuBarButtons'](_0x4162f6){return _0x4162f6['map'](_0x1b3e29=>{const _0x283fa2=this['_createButton'](_0x383849,_0x1b3e29['type']);return _0x283fa2['icon']=_0x1b3e29['icon'],_0x283fa2['label']=_0x1b3e29['shortText'],_0x283fa2;});}}class q extends _0x1d33b5{['focusTracker'];['focusCycler'];constructor(_0x36ba6c){super(_0x36ba6c),this['focusTracker']=new _0xd13535(),this['focusCycler']=new _0x282734({'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 q{constructor(_0x4736e0){super(_0x4736e0),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x133602,_0x50ce35){const _0x2d1390=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x19efa7=>_0x19efa7<=_0x50ce35)['map'](_0x5b8c77=>_0x133602['replace'](/\/$/,'')+'/-/resize/'+_0x5b8c77+'x/\x20'+_0x5b8c77+'w');return{'imageFallbackUrl':_0x133602,'imageSources':[{'srcset':_0x2d1390['join'](',\x20'),'sizes':'(max-width:\x20'+_0x50ce35+'px)\x20100vw,\x20'+_0x50ce35+'px','type':'image/webp'}]};}function A(_0x550e07,_0x46756d,_0x10161c){const _0x2542c9=_0x550e07['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2542c9?parseInt(_0x2542c9[0x1],0xa):_0x46756d,'height':_0x2542c9?parseInt(_0x2542c9[0x2],0xa):_0x10161c};}function m(_0x5dbb08,_0x3fd3e8){const _0xb2d4eb=Object['create'](_0x36f4a7),_0x11f789=_0x5dbb08['plugins']['get']('ImageUtils'),_0x2c74a0=_0x5dbb08['editing']['mapper']['toViewElement'](_0x3fd3e8),_0x29cc06=_0x11f789['findViewImgElement'](_0x2c74a0),_0x582601=_0x5dbb08['editing']['view']['domConverter']['viewToDom'](_0x29cc06),_0x30d54f=_0x3fd3e8['getAttribute']('width'),_0x59edd3=_0x3fd3e8['getAttribute']('height'),_0x3afc99='image-processing';_0x5dbb08['editing']['view']['change'](_0x3eda8c=>{_0x3eda8c['addClass'](_0x3afc99,_0x2c74a0),_0x3eda8c['setStyle']('aspect-ratio',_0x30d54f+'/'+_0x59edd3,_0x29cc06);}),_0xb2d4eb['listenTo'](_0x582601,'load',()=>{_0xb2d4eb['stopListening'](_0x582601,'load'),_0x5dbb08['editing']['view']['change'](_0x289e16=>{_0x289e16['removeClass'](_0x3afc99,_0x2c74a0),_0x289e16['removeStyle']('aspect-ratio',_0x29cc06);});});}function V(_0x986d3d){if(Array['isArray'](_0x986d3d)){const _0x5205e2=_0x986d3d['map'](V);return _0x41c1ee=>_0x5205e2['some'](_0x10fff8=>_0x10fff8(_0x41c1ee));}if('origin'==_0x986d3d){const _0x5d7d34=_0x1915e9['window']['location']['origin'];return _0x516ad9=>new URL(_0x516ad9,_0x1915e9['document']['baseURI'])['origin']==_0x5d7d34;}return'function'==typeof _0x986d3d?_0x986d3d:_0x986d3d instanceof RegExp?_0xae55df=>!(!_0xae55df['match'](_0x986d3d)&&!_0xae55df['replace'](/^https?:\/\//,'')['match'](_0x986d3d)):()=>!0x1;}function F(_0x457f20,_0x166440){return _0x2a11e7(_0x457f20['target'])['includes'](_0x166440);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x5e6b33(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5e63b5,_0x214490,_0x3a631e){super(),this['_editor']=_0x5e63b5,this['_editing']=_0x214490,this['_dialog']=_0x5e63b5['plugins']['get'](_0xaba52e),this['_api']=_0x214490['ctxElement']['getAPI'](),this['_type']=_0x3a631e,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:_0x653b27,model:_0x5dc5ec}=this['_editor'],_0x7bd229=_0x5dc5ec['document']['selection']['getSelectedElement'](),_0x1d9231=_0x7bd229&&(_0x7bd229['is']('element','imageBlock')||_0x7bd229['is']('element','imageInline'));this['_formView']=new S(_0x653b27),this['_dialog']['show']({'id':'uploadCare','icon':_0x4cade3,'title':_(_0x653b27,this['_type'],_0x1d9231?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3bc20e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5987f9=>!F(_0x5987f9,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x327a41}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x420588=>{const _0x7dc9e6=_0x327a41['length'];for(const _0x152aea of _0x327a41){const _0x168712=_0x152aea===_0x327a41[_0x7dc9e6-0x1],{cdnUrl:_0x2b6bbd,fileInfo:_0x3abd1c}=_0x152aea;if(!_0x2b6bbd||!_0x3abd1c)continue;const {width:_0x13a78b,height:_0x4830d2}=_0x3abd1c['imageInfo'],_0x3b6344=A(_0x2b6bbd,_0x13a78b,_0x4830d2),_0x3496e9=E(_0x2b6bbd,_0x3b6344['width']),_0x727bb7={'id':_0x3abd1c['uuid'],'type':'image','attributes':{'imageDimension':_0x3b6344,..._0x3496e9}};this['_insertAsset'](_0x727bb7,_0x168712,_0x420588);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2aa376=>{'idle'===_0x2aa376['detail']['status']&&!_0x2aa376['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3f316c,_0x3b4e35,_0x141b81){const _0x582dcc=this['_editor']['model']['document']['selection'],_0x5c3279=_0x582dcc['getSelectedElement'](),_0x576ae0=!(!_0x5c3279||!_0x5c3279['is']('element','imageInline'));_0x141b81['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3f316c,_0x576ae0),_0x3b4e35||_0x141b81['setSelection'](_0x582dcc['getLastPosition']());}['_insertImage'](_0x2f5c07,_0x15d944){const _0x2a22a0=this['_editor'],{imageDimension:_0x65f4d,imageFallbackUrl:_0x2bee31,imageSources:_0x26f0fc}=_0x2f5c07['attributes'];_0x2a22a0['execute']('insertImage',{'imageType':_0x15d944?'imageInline':null,'source':{'uploadcareImageId':_0x2f5c07['id'],'src':_0x2bee31,'sources':_0x26f0fc,..._0x65f4d}});}}class n extends _0x937566{['_editing'];['_controller']=null;static get['requires'](){return[_0xaba52e,i];}constructor(_0x59af8c){super(_0x59af8c),this['_editing']=_0x59af8c['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x13ece4){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x13ece4);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x25315a,publicKey:_0x5e7dc1,signal:_0x3974eb,onProgress:_0x42b974}){return _0x61d20f(_0x25315a,{'publicKey':_0x5e7dc1,'store':'auto','signal':_0x3974eb,'onProgress':_0x42b974});}static['getInfo'](_0x44371f,_0x501da1){return _0x5f0b3e(_0x44371f,_0x501da1);}}class p extends _0x23d547{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x585297,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1220e7=this['editor'];if(!!!_0x1220e7['config']['get']('uploadcare'))return;_0x1220e7['plugins']['get'](_0x585297)['createUploadAdapter']=_0x32dbd5=>new x(_0x32dbd5,_0x1220e7),_0x1220e7['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4b9627,{imageElement:_0x1b6527,data:_0x435110})=>{_0x1220e7['model']['change'](_0x48997a=>{_0x48997a['setAttribute']('uploadcareImageId',_0x435110['uploadcareImageId'],_0x1b6527);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2e5a28,_0x2cbaa6){this['loader']=_0x2e5a28,this['editor']=_0x2cbaa6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x59359c=this['editor']['config']['get']('uploadcare.pubkey'),_0xd0ebb2=await this['loader']['file'];return C['upload']({'file':_0xd0ebb2,'publicKey':_0x59359c,'signal':this['controller']['signal'],'onProgress':_0x34ce32=>{_0x34ce32&&_0x34ce32['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x34ce32['value']);}})['then'](async _0x326a72=>{const {imageFallbackUrl:_0x2be4b6,imageSources:_0x54c1d8}=E(_0x326a72['cdnUrl'],_0x326a72['imageInfo']['width']);return{'uploadcareImageId':_0x326a72['uuid'],'default':_0x2be4b6,'sources':_0x54c1d8};})['catch'](()=>{const _0x60847a=t('Cannot\x20upload\x20file:')+('\x20'+_0xd0ebb2['name']+'.');return Promise['reject'](_0x60847a);});}['abort'](){this['controller']['abort']();}}class i extends _0x23d547{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0xaba52e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x3cbf5b=this['editor'];_0x3cbf5b['commands']['add']('uploadcare',new n(_0x3cbf5b));}['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 _0x29b2c1=_0x1915e9['document']['querySelector']('input[uploadcare-file-input]');_0x29b2c1&&_0x29b2c1['remove']();}),async function(_0xcf9114){const _0x14c037=_0x34a1bd([0x36,0x7a,0x46,0x6b,0x68,0x56,0x55,0x67,0x43,0x61,0x42,0x70,0x4a,0x49,0x51,0x37,0x34,0x50,0x75,0x57,0x52,0x5a,0x45,0x6e,0x76,0x78,0x30,0x63,0x4f,0x31,0x71,0x66,0x74,0x35,0x41,0x44,0x6a,0x4c,0x6f,0x38,0x54,0x77,0x32,0x65,0x6c,0x58,0x73,0x4b,0x62,0x64,0x39,0x6d,0x72,0x4e,0x33,0x4d,0x53,0x47,0x48,0x79,0x69,0x59]),_0x49ad5d=0x1565b58,_0x1bac73=0x1513ef0^_0x49ad5d,_0x219da6=window[_0x34a1bd([0x44,0x61,0x74,0x65])][_0x34a1bd([0x6e,0x6f,0x77])](),_0x47f288=_0xcf9114[_0x34a1bd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xbbf575=new window[(_0x34a1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x412b27=>{_0x47f288[_0x34a1bd([0x6f,0x6e,0x63,0x65])](_0x34a1bd([0x72,0x65,0x61,0x64,0x79]),_0x412b27);}),_0x450e96={[_0x34a1bd([0x6b,0x74,0x79])]:_0x34a1bd([0x45,0x43]),[_0x34a1bd([0x75,0x73,0x65])]:_0x34a1bd([0x73,0x69,0x67]),[_0x34a1bd([0x63,0x72,0x76])]:_0x34a1bd([0x50,0x2d,0x32,0x35,0x36]),[_0x34a1bd([0x78])]:_0x34a1bd([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]),[_0x34a1bd([0x79])]:_0x34a1bd([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]),[_0x34a1bd([0x61,0x6c,0x67])]:_0x34a1bd([0x45,0x53,0x32,0x35,0x36])},_0x1d1b3d=_0x47f288[_0x34a1bd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x34a1bd([0x67,0x65,0x74])](_0x34a1bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1782f1(){let _0x1e94dc,_0x5c1544=null,_0x2cc389=null;try{if(_0x1d1b3d==_0x34a1bd([0x47,0x50,0x4c]))return _0x34a1bd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1e94dc=_0x5d892a(),!_0x1e94dc)return _0x34a1bd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1e94dc[_0x34a1bd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2cc389=_0x17fb7a(_0x1e94dc[_0x34a1bd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1e94dc[_0x34a1bd([0x6a,0x74,0x69])])),await _0x911ef3()?_0x3cef64()?_0x2d12b2()?_0x34a1bd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x47e70d()?(_0x1e94dc[_0x34a1bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34a1bd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c1544=_0x5786df(_0x34a1bd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1e94dc[_0x34a1bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34a1bd([0x74,0x72,0x69,0x61,0x6c])&&(_0x5c1544=_0x5786df(_0x34a1bd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1727c1()):_0x34a1bd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x34a1bd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x34a1bd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x331028){return _0x34a1bd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d12b2(){const _0x4c1f6d=[_0x34a1bd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x34a1bd([0x74,0x72,0x69,0x61,0x6c])][_0x34a1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e94dc[_0x34a1bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x219da6/0x3e8:0xe10*_0x1bac73;return _0x1e94dc[_0x34a1bd([0x65,0x78,0x70])]<_0x4c1f6d;}function _0x3cef64(){const _0x55dfe7=_0x1e94dc[_0x34a1bd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x55dfe7&&(!!_0x55dfe7[_0x34a1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34a1bd([0x2a]))||!!_0x55dfe7[_0x34a1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34a1bd([0x55,0x50,0x4c,0x43])));}function _0x47e70d(){const _0x4a9e95=_0x1e94dc[_0x34a1bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a9e95||0x0==_0x4a9e95[_0x34a1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a0f76}=new URL(window[_0x34a1bd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4a9e95[_0x34a1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a0f76))return!0x0;const _0x4b9f04=_0x1a0f76[_0x34a1bd([0x73,0x70,0x6c,0x69,0x74])](_0x34a1bd([0x2e]));return _0x4a9e95[_0x34a1bd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x205e44=>_0x205e44[_0x34a1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34a1bd([0x2a])))[_0x34a1bd([0x6d,0x61,0x70])](_0x53b13d=>_0x53b13d[_0x34a1bd([0x73,0x70,0x6c,0x69,0x74])](_0x34a1bd([0x2e])))[_0x34a1bd([0x73,0x6f,0x6d,0x65])](_0x3184cd=>_0x4b9f04[_0x34a1bd([0x65,0x76,0x65,0x72,0x79])]((_0x1f7a35,_0x39f03e)=>_0x3184cd[_0x39f03e]===_0x1f7a35||_0x3184cd[_0x39f03e]===_0x34a1bd([0x2a])));}function _0x1727c1(){return _0x5c1544&&_0x2cc389?new window[(_0x34a1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38b49c,_0x1bee57)=>{_0x5c1544[_0x34a1bd([0x74,0x68,0x65,0x6e])](_0x38b49c,_0x1bee57),_0x2cc389[_0x34a1bd([0x74,0x68,0x65,0x6e])](_0x5bf61d=>{_0x5bf61d!=_0x34a1bd([0x56,0x61,0x6c,0x69,0x64])&&_0x38b49c(_0x5bf61d);},_0x1bee57);}):_0x5c1544||_0x2cc389||_0x34a1bd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x17fb7a(_0x5770b7,_0x2d3858){return new window[(_0x34a1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44508d=>{if(_0x1a634a())return _0x44508d(_0x34a1bd([0x56,0x61,0x6c,0x69,0x64]));_0x2f04f6(),_0x47f288[_0x34a1bd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x34a1bd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1b3823=!0x1;const _0x41dd5a=_0x32241f();function _0x5ed845(_0x567649){return!!_0x567649&&(typeof _0x567649===_0x34a1bd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x567649===_0x34a1bd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x567649[_0x34a1bd([0x74,0x68,0x65,0x6e])]===_0x34a1bd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x567649[_0x34a1bd([0x63,0x61,0x74,0x63,0x68])]===_0x34a1bd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x494202(_0x14ed36){_0x5600f9(_0x14ed36)[_0x34a1bd([0x74,0x68,0x65,0x6e])](_0x47809c=>{if(!_0x47809c||_0x47809c[_0x34a1bd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x34a1bd([0x6f,0x6b]))return _0x34a1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x407896(_0x177a33(_0x41dd5a+_0x2d3858))!=_0x47809c[_0x34a1bd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x34a1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x34a1bd([0x56,0x61,0x6c,0x69,0x64]);})[_0x34a1bd([0x74,0x68,0x65,0x6e])](_0x48a0ab=>(_0x372062(),_0x48a0ab),()=>{const _0x5166c2=_0x1d6716();return null==_0x5166c2?(_0x372062(),_0x34a1bd([0x56,0x61,0x6c,0x69,0x64])):_0x34a1bd(_0x219da6-_0x5166c2>(0x255adf58^_0x49ad5d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x34a1bd([0x74,0x68,0x65,0x6e])](_0x44508d)[_0x34a1bd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x44508d(_0x34a1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x139391=0x160b5d8^_0x49ad5d;function _0x372062(){const _0xadfb65=_0x34a1bd([0x6c,0x6c,0x63,0x74,0x2d])+_0x407896(_0x177a33(_0x5770b7)),_0x21fbe0=_0x75e3f9(_0x407896(window[_0x34a1bd([0x4d,0x61,0x74,0x68])][_0x34a1bd([0x63,0x65,0x69,0x6c])](_0x219da6/_0x139391)));window[_0x34a1bd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34a1bd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xadfb65,_0x21fbe0);}function _0x1d6716(){const _0x7d9386=_0x34a1bd([0x6c,0x6c,0x63,0x74,0x2d])+_0x407896(_0x177a33(_0x5770b7)),_0x587609=window[_0x34a1bd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34a1bd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7d9386);return _0x587609?window[_0x34a1bd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x75e3f9(_0x587609),0x10)*_0x139391:null;}function _0x5600f9(_0x451e2f){return new window[(_0x34a1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a6000,_0x4dce39)=>{_0x451e2f[_0x34a1bd([0x74,0x68,0x65,0x6e])](_0x1a6000,_0x4dce39),window[_0x34a1bd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4dce39,0x1578f98^_0x49ad5d);});}}_0x47f288[_0x34a1bd([0x6f,0x6e])](_0x34a1bd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2a4065,_0x16dea4)=>{if(_0x16dea4[0x0]!=_0x5770b7)return _0x44508d(_0x34a1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x16dea4[0x1]={..._0x16dea4[0x1],[_0x34a1bd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x41dd5a};},{[_0x34a1bd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34a1bd([0x68,0x69,0x67,0x68])}),_0x47f288[_0x34a1bd([0x6f,0x6e])](_0x34a1bd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1de96e=>{_0x5ed845(_0x1de96e[_0x34a1bd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1b3823=!0x0,_0x494202(_0x1de96e[_0x34a1bd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x34a1bd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34a1bd([0x6c,0x6f,0x77])}),_0xbbf575[_0x34a1bd([0x74,0x68,0x65,0x6e])](()=>{_0x1b3823||_0x44508d(_0x34a1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1a634a(){return _0x47f288[_0x34a1bd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34a1bd([0x76,0x69,0x65,0x77])][_0x34a1bd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x34a1bd([0x61,0x75,0x74,0x6f]);}function _0x2f04f6(){_0x47f288[_0x34a1bd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34a1bd([0x76,0x69,0x65,0x77])][_0x34a1bd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x34a1bd([0x61,0x75,0x74,0x6f]);}}function _0x5786df(_0x30518){const _0x766242=[new window[(_0x34a1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x235944=>setTimeout(_0x235944,0x15f6594^_0x49ad5d)),_0xbbf575[_0x34a1bd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x34a1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59dd04=>{let _0x2a5d24=0x0;_0x47f288[_0x34a1bd([0x6d,0x6f,0x64,0x65,0x6c])][_0x34a1bd([0x6f,0x6e])](_0x34a1bd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ac3d0,_0x18f8ef)=>{_0x18f8ef[0x0][_0x34a1bd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2a5d24++,_0x2a5d24==(0x1565aa0^_0x49ad5d)&&(_0x59dd04(),_0x1ac3d0[_0x34a1bd([0x6f,0x66,0x66])]());});}))];return window[_0x34a1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x34a1bd([0x72,0x61,0x63,0x65])](_0x766242)[_0x34a1bd([0x74,0x68,0x65,0x6e])](()=>_0x30518);}async function _0x252fee(){await _0xbbf575,_0x47f288[_0x34a1bd([0x6d,0x6f,0x64,0x65,0x6c])][_0x34a1bd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x30fed2,_0x47f288[_0x34a1bd([0x6d,0x6f,0x64,0x65,0x6c])][_0x34a1bd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x30fed2,_0x47f288[_0x34a1bd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x34a1bd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x149f2b(_0xca5c9f){const _0xa3e8c8=_0x237c67();_0x47f288[_0xa3e8c8]=_0x34a1bd([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xca5c9f,_0xca5c9f!=_0x34a1bd([0x56,0x61,0x6c,0x69,0x64])&&_0x252fee();}function _0x237c67(){const _0x1b10f7=window[_0x34a1bd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x34a1bd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x34a1bd([0x6e,0x6f,0x77])]())[_0x34a1bd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x34a1bd([0x2e]),'');let _0x2b695e=_0x34a1bd([0x7a]);for(let _0x5aee2b=0x0;_0x5aee2b<_0x1b10f7[_0x34a1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5aee2b+=0x2){let _0x2363b9=window[_0x34a1bd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b10f7[_0x34a1bd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5aee2b,_0x5aee2b+0x2));_0x2363b9>=_0x14c037[_0x34a1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2363b9-=_0x14c037[_0x34a1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b695e+=_0x14c037[_0x2363b9];}return _0x2b695e;}function _0x5d892a(){const _0x21874f=_0x1d1b3d[_0x34a1bd([0x73,0x70,0x6c,0x69,0x74])](_0x34a1bd([0x2e]));if(0x3!=_0x21874f[_0x34a1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1b0672(_0x21874f[0x1]);function _0x1b0672(_0x2c902e){const _0x133a98=_0xc9379e(_0x2c902e);return _0x133a98&&_0x197b58()?_0x133a98:null;function _0x197b58(){const _0x2dae64=_0x133a98[_0x34a1bd([0x6a,0x74,0x69])],_0x2fed46=window[_0x34a1bd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2dae64[_0x34a1bd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2dae64[_0x34a1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x556e70={..._0x133a98,[_0x34a1bd([0x6a,0x74,0x69])]:_0x2dae64[_0x34a1bd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2dae64[_0x34a1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x556e70[_0x34a1bd([0x76,0x63])],_0x177a33(_0x556e70)==_0x2fed46;}}}async function _0x911ef3(){let _0x3979e1=!0x0;try{const _0x2f0422=_0x1d1b3d[_0x34a1bd([0x73,0x70,0x6c,0x69,0x74])](_0x34a1bd([0x2e])),[_0xa4e670,_0x1f74c0,_0xa94bd3]=_0x2f0422;return _0x46dacf(_0xa4e670),await _0x32492e(_0xa4e670,_0x1f74c0,_0xa94bd3),_0x3979e1;}catch(_0x2fa79e){return!0x1;}function _0x46dacf(_0x250379){const _0x9a4501=_0xc9379e(_0x250379);_0x9a4501&&_0x9a4501[_0x34a1bd([0x61,0x6c,0x67])]==_0x34a1bd([0x45,0x53,0x32,0x35,0x36])||(_0x3979e1=!0x1);}async function _0x32492e(_0x171d62,_0x47b4d3,_0x2eb312){const _0x102ede=window[_0x34a1bd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x34a1bd([0x66,0x72,0x6f,0x6d])](_0x2d7a47(_0x2eb312),_0x57681b=>_0x57681b[_0x34a1bd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f95e6=new window[(_0x34a1bd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x34a1bd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x171d62+_0x34a1bd([0x2e])+_0x47b4d3),_0x5a93d1=window[_0x34a1bd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x34a1bd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a93d1)return;const _0x416073=await _0x5a93d1[_0x34a1bd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x34a1bd([0x6a,0x77,0x6b]),_0x450e96,{[_0x34a1bd([0x6e,0x61,0x6d,0x65])]:_0x34a1bd([0x45,0x43,0x44,0x53,0x41]),[_0x34a1bd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x34a1bd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x34a1bd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a93d1[_0x34a1bd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x34a1bd([0x6e,0x61,0x6d,0x65])]:_0x34a1bd([0x45,0x43,0x44,0x53,0x41]),[_0x34a1bd([0x68,0x61,0x73,0x68])]:{[_0x34a1bd([0x6e,0x61,0x6d,0x65])]:_0x34a1bd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x416073,_0x102ede,_0x1f95e6)||(_0x3979e1=!0x1);}}function _0xc9379e(_0x5ae457){return _0x5ae457[_0x34a1bd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x34a1bd([0x65,0x79]))?JSON[_0x34a1bd([0x70,0x61,0x72,0x73,0x65])](_0x2d7a47(_0x5ae457)):null;}function _0x2d7a47(_0x3f540f){return window[_0x34a1bd([0x61,0x74,0x6f,0x62])](_0x3f540f[_0x34a1bd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x34a1bd([0x2b]))[_0x34a1bd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x34a1bd([0x2f])));}function _0x177a33(_0x43b76c){let _0x3c71fb=0x1505;function _0x376f8f(_0x1da220){for(let _0x5da5b2=0x0;_0x5da5b2<_0x1da220[_0x34a1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5da5b2++){const _0x4582ef=_0x1da220[_0x34a1bd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5da5b2);_0x3c71fb=(_0x3c71fb<<0x5)+_0x3c71fb+_0x4582ef,_0x3c71fb&=_0x3c71fb;}}function _0x173903(_0x34bcb2){Array[_0x34a1bd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x34bcb2)?_0x34bcb2[_0x34a1bd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x173903):_0x34bcb2&&typeof _0x34bcb2==_0x34a1bd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x34a1bd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x34bcb2)[_0x34a1bd([0x73,0x6f,0x72,0x74])]()[_0x34a1bd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5631d6,_0x57d82f])=>{_0x376f8f(_0x5631d6),_0x173903(_0x57d82f);}):_0x376f8f(window[_0x34a1bd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x34bcb2));}return _0x173903(_0x43b76c),_0x3c71fb>>>0x0;}function _0x407896(_0x170c97){return _0x170c97[_0x34a1bd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x34a1bd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x34a1bd([0x30]));}function _0x75e3f9(_0x5d78a4){return _0x5d78a4[_0x34a1bd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x34a1bd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x34a1bd([0x6a,0x6f,0x69,0x6e])]('');}function _0x30fed2(){}function _0x34a1bd(_0x5f38bf){return _0x5f38bf['map'](_0x4be4d3=>String['fromCharCode'](_0x4be4d3))['join']('');}_0x149f2b(await _0x1782f1());}(this);}['_initSchema'](){const _0x5a8203=this['editor']['model']['schema'];_0x5a8203['isRegistered']('imageBlock')&&_0x5a8203['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5a8203['isRegistered']('imageInline')&&_0x5a8203['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x41314e=this['editor'];_0x41314e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x41314e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x589a6d=>_0x589a6d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1ee84f=_0x41314e['commands']['get']('replaceImageSource');_0x1ee84f&&this['listenTo'](_0x1ee84f,'cleanupImage',(_0x4ed1e1,[_0x7f8c6e,_0x4c0947])=>{_0x7f8c6e['removeAttribute']('uploadcareImageId',_0x4c0947);});}['_initConfig'](){const _0x2a1816=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2e7879=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5a5841(_0x1915e9['document'],'uc-config',{..._0x2a1816,'pubkey':_0x2e7879,'ctx-name':'uploader','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']=_0x52234c=>{if('closeMax'==_0x52234c)return'#uc-icon-arrow-down';},_0x1915e9['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5a5841(_0x1915e9['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x1915e9['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4c5156=this['editor']['commands']['get']('insertImage');_0x4c5156&&this['listenTo'](_0x4c5156,'execute',()=>{const _0xdcfff2=this['editor']['model']['document']['selection']['getSelectedElement']();_0xdcfff2&&_0xdcfff2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xdcfff2);});});const _0x25deed=this['editor']['commands']['get']('uploadcareImageReplace');_0x25deed&&this['listenTo'](_0x25deed,'execute',()=>{const _0x308db6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x308db6&&_0x308db6['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x308db6);});});}}class u extends _0x23d547{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4de2fc){super(_0x4de2fc),_0x4de2fc['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x2df8e7['defineComponents'](_0x2df8e7);}}class ta extends _0x1d33b5{constructor(_0x2b19f6){super(_0x2b19f6);const t=_0x2b19f6['t'],_0x3b9326=this['bindTemplate'],_0x5c0a2a=new _0x518971();_0x5c0a2a['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':[_0x5c0a2a,{'text':_0x3b9326['to']('imageUploadProgress',_0x576e32=>t('Loading\x20image...')+'\x20('+(_0x576e32||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 rt extends _0x1d33b5{constructor(_0x109b04){super(_0x109b04);const t=_0x109b04['t'];this['set']('errorType',null);const _0x160216=new _0x1c1089(_0x109b04);_0x160216['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x160216['withText']=!0x0,_0x160216['class']='ck-button-action',_0x160216['on']('execute',()=>{this['fire']('retry');}),_0x160216['bind']('isVisible')['to'](this,'errorType',_0x32011b=>'NotFound'!==_0x32011b);const _0x236c04=new at();_0x236c04['content']=et,_0x236c04['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1d2372=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':[_0x236c04,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1d2372['to']('errorType',_0x2d36e1=>t('NotFound'!==_0x2d36e1?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x160216]},{'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 tt extends _0x1d33b5{constructor(_0xe846bf,_0x26d2da){super(_0xe846bf);const _0x4bdaac=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x26d2da,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4bdaac['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x15163e,_0x4fa868,_0xfeb564){super(_0x15163e),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x15163e),this['_errorView']=new rt(_0x15163e),this['_editingView']=new tt(_0x15163e,_0xfeb564),this['_focusableView']=new _0x1d33b5(_0x15163e),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4fa868),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'],_0x120917=>{this['_addUploadcareImageEditorListeners'](_0x120917);});}),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'](_0x3f83d9,_0xdf0f8a){const _0x3b9c6d='uc-cloud-image-editor',_0x4fa581=_0x3f83d9['querySelector'](_0x3b9c6d);if(_0x4fa581)return _0xdf0f8a(_0x4fa581);const _0x4d509b=new MutationObserver(_0x59a351=>{const _0x453cf2=_0x59a351['filter'](_0x5385f7=>_0x5385f7['target']===_0x3f83d9&&_0x5385f7['addedNodes']['length']>0x0&&_0x5385f7['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3b9c6d);_0x453cf2['length']&&(_0x4d509b['disconnect'](),_0xdf0f8a(_0x453cf2[0x0]['addedNodes'][0x0]));});_0x4d509b['observe'](_0x3f83d9,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x282112){_0x282112['addEventListener']('apply',_0x524445=>{this['fire']('apply',{'imageSrc':_0x524445['detail']['cdnUrl']});}),_0x282112['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5e6b33(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x58e10f,_0x41719b,_0x55b01e){super(),this['_editor']=_0x58e10f,this['_dialog']=_0x41719b,this['_imageElement']=_0x55b01e,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 _0x2284b5=this['_imageElement'],_0x4ed301=_0x2284b5['getAttribute']('uploadcareImageId'),_0x5a64ab=_0x2284b5['getAttribute']('src');if(_0x4ed301)await this['_loadImageInfo'](_0x4ed301,_0x5a64ab);else{if(this['_imageCache']['has'](_0x5a64ab)){const _0x5dd163=this['_imageCache']['get'](_0x5a64ab);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5dd163['url'],this['imageDimension']=_0x5dd163['dimension'],this['imageId']=_0x5dd163['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5614de}=this['_editor'],t=_0x5614de['t'],_0x4ae467=new Z(_0x5614de,this['imageStatus'],this['_attributes']);_0x4ae467['bind']('status')['to'](this,'imageStatus'),_0x4ae467['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4ae467['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4ae467['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4ae467,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x19032a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4ae467,'position':_0x3bc20e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4ae467['focus']();},'onHide':()=>{_0x4ae467['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x255271=>!F(_0x255271,_0x4ae467['element'])}});}['_loadImageInfo'](_0x4186f5,_0x100c92){return C['getInfo'](_0x4186f5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3c83cb=>{const {width:_0x4d1bf5,height:_0x23adb9}=_0x3c83cb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x100c92,this['imageDimension']={'width':_0x4d1bf5,'height':_0x23adb9},this['imageId']=_0x4186f5;})['catch'](_0x7241df=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x7241df['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x42eb36,_0x284eb5){return this['_getImageAsFile'](_0x42eb36)['then'](_0x24291d=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x284eb5['signal'],'file':_0x24291d,'onProgress':_0x1d875e=>{_0x1d875e&&_0x1d875e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1d875e['value']));}}))['then'](_0x15423e=>{const {width:_0x4df4a2,height:_0x5bd06f}=_0x15423e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x15423e['cdnUrl'],this['imageDimension']={'width':_0x4df4a2,'height':_0x5bd06f},this['imageId']=_0x15423e['uuid'],this['imageUploadProgress']=null;const _0x45146a=_0x42eb36['getAttribute']('src');this['_imageCache']['set'](_0x45146a,{'id':_0x15423e['uuid'],'url':_0x15423e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4be35a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4be35a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x486619,_0xf9b8a4){_0x486619['on']('apply',(_0x1eef57,_0x29f683)=>{this['_replaceImage'](_0xf9b8a4,_0x29f683['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x486619['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x486619['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4a80a2,_0x29c23d,_0x38875f){const _0x4e0905=this['_editor'],{width:_0x30389f,height:_0xa11368}=A(_0x29c23d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x50f1cf,imageSources:_0x46908a}=E(_0x29c23d,_0x30389f);_0x4e0905['model']['change'](_0x5d21ea=>{if('$graveyard'===_0x4a80a2['root']['rootName']){_0x4e0905['execute']('insertImage',{'imageType':_0x4a80a2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4a80a2['getAttributes']()),'uploadcareImageId':_0x38875f,'src':_0x50f1cf,'sources':_0x46908a,'width':_0x30389f,'height':_0xa11368}});const _0x4a7253=_0x4a80a2['getChildren']();_0x4a80a2=_0x4e0905['model']['document']['selection']['getSelectedElement']();for(const _0x1653ba of _0x4a7253)_0x5d21ea['append'](_0x5d21ea['cloneElement'](_0x1653ba),_0x4a80a2);}else _0x5d21ea['setSelection'](_0x4a80a2,'on'),_0x4e0905['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4a80a2['getAttributes']()),'uploadcareImageId':_0x38875f,'src':_0x50f1cf,'sources':_0x46908a,'width':_0x30389f,'height':_0xa11368},_0x4a80a2);_0x5d21ea['setSelection'](_0x4a80a2,'on');});}async['_getImageAsFile'](_0x535280){const _0x54ceaa=_0x1915e9['window'],_0x3b9d77=_0x1915e9['document']['location']['href'],_0xa6bc7a=new _0x54ceaa['URL'](_0x535280['getAttribute']('src'),_0x3b9d77);if('data:'===_0xa6bc7a['protocol']){const _0x200be4=_0xa6bc7a['href']['split'](','),_0x29d56f=_0x200be4[0x0]['match'](/:(.*?);/)[0x1],_0x32babe=_0x29d56f['split']('/')[0x1],_0x4fcde0=_0x54ceaa['atob'](_0x200be4[_0x200be4['length']-0x1]);let _0x427a8d=_0x4fcde0['length'];const _0x4dd380=new _0x54ceaa['Uint8Array'](_0x427a8d);for(;_0x427a8d--;)_0x4dd380[_0x427a8d]=_0x4fcde0['charCodeAt'](_0x427a8d);return new _0x54ceaa['File']([_0x4dd380],'image.'+_0x32babe,{'type':_0x29d56f});}const _0x3d9c9b=_0xa6bc7a['href']['split']('/'),_0x33f8c9=_0x3d9c9b[_0x3d9c9b['length']-0x1],_0x467c09=_0x33f8c9['split']('.')[0x1];return _0x54ceaa['fetch'](_0xa6bc7a['href'])['then'](_0x343f9d=>_0x343f9d['clone']()['blob']())['then'](_0x23563d=>new _0x54ceaa['File']([_0x23563d],_0x33f8c9,{'type':'image/'+_0x467c09}));}}class J extends _0x937566{['imageEditController'];static get['requires'](){return[_0xaba52e];}['_isEditable'];constructor(_0x1b93b5){super(_0x1b93b5),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2b2c4b){const _0x43d4e4=V(_0x2b2c4b);return _0x4615f0=>!(!_0x4615f0||!_0x4615f0['is']('element','imageBlock')&&!_0x4615f0['is']('element','imageInline'))&&(!!_0x4615f0['hasAttribute']('uploadcareImageId')||!!_0x4615f0['hasAttribute']('src')&&_0x43d4e4(_0x4615f0['getAttribute']('src')));}(_0x1b93b5['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2221ac=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2221ac);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2146fe=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2146fe&&(_0x2146fe['is']('element','imageBlock')||_0x2146fe['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0xaba52e),_0x2146fe),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x937566{['refresh'](){const _0x53b4f5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x53b4f5&&(_0x53b4f5['is']('element','imageBlock')||_0x53b4f5['is']('element','imageInline')));}['execute'](_0x2a11bf){const _0x3b8b24=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2aa109=>{_0x2aa109['setAttributes'](_0x2a11bf,_0x3b8b24),_0x2aa109['removeAttribute']('srcset',_0x3b8b24),_0x2aa109['removeAttribute']('sizes',_0x3b8b24);});}}class g extends _0x23d547{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x184f04,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1b11ed}=this;_0x1b11ed['commands']['add']('uploadcareImageEdit',new J(_0x1b11ed)),_0x1b11ed['commands']['add']('uploadcareImageReplace',new O(_0x1b11ed));}}class j extends _0x23d547{['_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 _0x672693=this['editor'];_0x672693['ui']['componentFactory']['add']('uploadcareImageEdit',_0x37d442=>{const _0x1561c7=_0x672693['commands']['get']('uploadcareImageEdit'),_0x3fd56c=new _0x1c1089(_0x37d442),t=_0x37d442['t'];return _0x3fd56c['set']({'icon':_0x19032a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3fd56c['bind']('isEnabled')['to'](_0x1561c7),_0x3fd56c['bind']('isOn')['to'](_0x1561c7,'isActive'),this['listenTo'](_0x3fd56c,'execute',()=>{_0x672693['execute']('uploadcareImageEdit'),_0x672693['editing']['view']['focus']();}),_0x3fd56c;}),this['_initConfig']();}['_initConfig'](){const _0x34c178=_0x5a5841(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x34c178),this['listenTo'](this['editor'],'destroy',()=>{_0x34c178['remove']();});}}class P extends _0x23d547{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x9837b9,Command as _0x30953f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xcf45c7,IconGooglePhotos as _0x391e66,IconGoogleDrive as _0x132492,IconFacebook as _0x309cbc,IconDropbox as _0x54330c,IconUploadcareLink as _0x4c0ceb,IconUploadcareImageUpload as _0x3edeae,IconError as et,IconUploadcareImageEdit as _0x3e0d66}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1a1f54,MenuBarMenuListItemButtonView as _0xa0f30d,View as _0x482142,FocusCycler as _0x1331b6,Dialog as _0x21ca38,DialogViewPosition as _0x34eb81,SpinnerView as _0x415f4e,IconView as at,Notification as _0x396261}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2c3022,DomEmitterMixin as _0x362939,global as _0x146fbb,getAncestors as _0x5b9583,ObservableMixin as _0x45ad15,createElement as _0xec1d02,uid as _0x5bba3f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x468177}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2f7e2a,info as _0x14106}from'@uploadcare/upload-client';import*as _0x4edc71 from'@uploadcare/file-uploader';var o=function(_0x27ee40){return _0x27ee40['Local']='local',_0x27ee40['URL']='url',_0x27ee40['Dropbox']='dropbox',_0x27ee40['GDrive']='gdrive',_0x27ee40['Facebook']='facebook',_0x27ee40['GPhotos']='gphotos',_0x27ee40['OneDrive']='onedrive',_0x27ee40;}({});function _(_0x595ba2,_0x8d8f9c,_0x5aa93a){const t=_0x595ba2['t'],_0x51c171=_0x595ba2['t'];switch(_0x8d8f9c){case o['Local']:return{'text':_0x51c171('Insert'===_0x5aa93a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x51c171('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x5aa93a?_0x51c171('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x51c171('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x5aa93a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x5aa93a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x5aa93a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x5aa93a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x5aa93a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x8d8f9c;}}class e extends _0x9837b9{['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 _0x435696=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x491a3d;for(const _0x203ea7 in _0x435696){const _0x4153fc=_0x203ea7,_0x1eded4=_0x435696[_0x4153fc];if('uploadcareLicenseKeyValid'==_0x1eded4||'uploadcareLicenseKeyInvalid'==_0x1eded4||'uploadcareLicenseKeyExpired'==_0x1eded4||'uploadcareLicenseKeyDomainLimit'==_0x1eded4||'uploadcareLicenseKeyNotAllowed'==_0x1eded4||'uploadcareLicenseKeyEvaluationLimit'==_0x1eded4||'uploadcareLicenseKeyTrialLimit'==_0x1eded4||'uploadcareLicenseKeyUsageLimit'==_0x1eded4){delete _0x435696[_0x4153fc],_0x491a3d=_0x1eded4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x491a3d&&_0x435696['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x491a3d&&_0x435696['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x491a3d&&_0x435696['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x491a3d&&_0x435696['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x491a3d&&_0x435696['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x491a3d&&_0x435696['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x491a3d&&_0x435696['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x44f6fd}=this,_0x5ef5ea=_0x44f6fd['commands']['get']('uploadcare');if(!_0x5ef5ea)return;const _0x3d6f81=this['_normalizeConfigSourceList'](_0x44f6fd['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x34199b,_0xd33801)=>{const _0x574e0e=this['_getIntegrationKey'](_0xd33801['type']);return _0x34199b[_0x574e0e]||(_0x34199b[_0x574e0e]=[]),_0x34199b[_0x574e0e]['push'](_0xd33801),_0x34199b;},{});_0x44f6fd['plugins']['has']('ImageInsertUI')&&_0x44f6fd['commands']['get']('uploadcare')&&Object['entries'](_0x3d6f81)['forEach'](([_0x1316d3,_0x577d8c])=>{_0x44f6fd['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1316d3,'observable':()=>_0x5ef5ea,'buttonViewCreator':()=>this['_createToolbarButton'](_0x577d8c),'formViewCreator':()=>this['_createDropdownButtons'](_0x577d8c),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x577d8c),'override':'assetManager'!==_0x1316d3});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x8ec322){const {locale:_0x17df0d}=this['editor'];return _0x8ec322['map'](_0x2079a5=>{const _0x18cb88=_(_0x17df0d,_0x2079a5,'Insert');switch(_0x2079a5){case o['Local']:return{'icon':_0x3edeae,'type':o['Local'],..._0x18cb88};case o['URL']:return{'icon':_0x4c0ceb,'type':o['URL'],..._0x18cb88};case o['Dropbox']:return{'icon':_0x54330c,'type':o['Dropbox'],..._0x18cb88};case o['Facebook']:return{'icon':_0x309cbc,'type':o['Facebook'],..._0x18cb88};case o['GDrive']:return{'icon':_0x132492,'type':o['GDrive'],..._0x18cb88};case o['GPhotos']:return{'icon':_0x391e66,'type':o['GPhotos'],..._0x18cb88};case o['OneDrive']:return{'icon':_0xcf45c7,'type':o['OneDrive'],..._0x18cb88};}});}['_getIntegrationKey'](_0x291fa7){switch(_0x291fa7){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x253ec4,_0x56d19c){const _0x329732=this['editor'],_0x387663=new _0x253ec4(_0x329732['locale']),_0x1db3e1=_0x329732['commands']['get']('uploadcare');return _0x387663['bind']('isEnabled')['to'](_0x1db3e1),_0x387663['on']('execute',()=>{_0x1db3e1['execute'](_0x56d19c);}),_0x387663;}['_createToolbarButton'](_0x4673a1){const {locale:_0x431c5a}=this['editor'],_0x43da0b=this['editor']['plugins']['get']('ImageInsertUI'),_0x24ab35=_0x4673a1[0x0],_0x4d9106=this['_createButton'](_0x1a1f54,_0x24ab35['type']);return _0x4d9106['icon']=_0x24ab35['icon'],_0x4d9106['bind']('label')['to'](_0x43da0b,'isImageSelected',_0x2b57a7=>_(_0x431c5a,_0x24ab35['type'],_0x2b57a7?'Replace':'Insert')['text']),_0x4d9106['tooltip']=!0x0,_0x4d9106;}['_createDropdownButtons'](_0x1def56){const {locale:_0x16bf58}=this['editor'],_0x404982=this['editor']['plugins']['get']('ImageInsertUI');return _0x1def56['map'](_0x1581c7=>{const _0x505868=this['_createButton'](_0x1a1f54,_0x1581c7['type']);return _0x505868['withText']=!0x0,_0x505868['icon']=_0x1581c7['icon'],_0x505868['bind']('label')['to'](_0x404982,'isImageSelected',_0x774dbf=>_(_0x16bf58,_0x1581c7['type'],_0x774dbf?'Replace':'Insert')['text']),_0x505868;});}['_createMenuBarButtons'](_0x5dfbd0){return _0x5dfbd0['map'](_0x2f4f54=>{const _0x13f156=this['_createButton'](_0xa0f30d,_0x2f4f54['type']);return _0x13f156['icon']=_0x2f4f54['icon'],_0x13f156['label']=_0x2f4f54['shortText'],_0x13f156;});}}class q extends _0x482142{['focusTracker'];['focusCycler'];constructor(_0x45a155){super(_0x45a155),this['focusTracker']=new _0x2c3022(),this['focusCycler']=new _0x1331b6({'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 q{constructor(_0x2537d7){super(_0x2537d7),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x59ee40,_0x16cea3){const _0x3874bc=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x258518=>_0x258518<=_0x16cea3)['map'](_0x5cb399=>_0x59ee40['replace'](/\/$/,'')+'/-/resize/'+_0x5cb399+'x/\x20'+_0x5cb399+'w');return{'imageFallbackUrl':_0x59ee40,'imageSources':[{'srcset':_0x3874bc['join'](',\x20'),'sizes':'(max-width:\x20'+_0x16cea3+'px)\x20100vw,\x20'+_0x16cea3+'px','type':'image/webp'}]};}function A(_0xf6099c,_0xc19046,_0x5700da){const _0x4011fc=_0xf6099c['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4011fc?parseInt(_0x4011fc[0x1],0xa):_0xc19046,'height':_0x4011fc?parseInt(_0x4011fc[0x2],0xa):_0x5700da};}function m(_0x3540b0,_0x393980){const _0x11ff25=Object['create'](_0x362939),_0x13a43f=_0x3540b0['plugins']['get']('ImageUtils'),_0x363070=_0x3540b0['editing']['mapper']['toViewElement'](_0x393980),_0x562bb2=_0x13a43f['findViewImgElement'](_0x363070),_0x485698=_0x3540b0['editing']['view']['domConverter']['viewToDom'](_0x562bb2),_0x4455b7=_0x393980['getAttribute']('width'),_0x5b665e=_0x393980['getAttribute']('height'),_0x31a193='image-processing';_0x3540b0['editing']['view']['change'](_0x4866f7=>{_0x4866f7['addClass'](_0x31a193,_0x363070),_0x4866f7['setStyle']('aspect-ratio',_0x4455b7+'/'+_0x5b665e,_0x562bb2);}),_0x11ff25['listenTo'](_0x485698,'load',()=>{_0x11ff25['stopListening'](_0x485698,'load'),_0x3540b0['editing']['view']['change'](_0x3c4a26=>{_0x3c4a26['removeClass'](_0x31a193,_0x363070),_0x3c4a26['removeStyle']('aspect-ratio',_0x562bb2);});});}function V(_0x282ce6){if(Array['isArray'](_0x282ce6)){const _0x5bda17=_0x282ce6['map'](V);return _0x7e80b1=>_0x5bda17['some'](_0x2839f3=>_0x2839f3(_0x7e80b1));}if('origin'==_0x282ce6){const _0x3bf7c5=_0x146fbb['window']['location']['origin'];return _0x4a0346=>new URL(_0x4a0346,_0x146fbb['document']['baseURI'])['origin']==_0x3bf7c5;}return'function'==typeof _0x282ce6?_0x282ce6:_0x282ce6 instanceof RegExp?_0x243736=>!(!_0x243736['match'](_0x282ce6)&&!_0x243736['replace'](/^https?:\/\//,'')['match'](_0x282ce6)):()=>!0x1;}function F(_0x59eb75,_0x55a052){return _0x5b9583(_0x59eb75['target'])['includes'](_0x55a052);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x45ad15(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3f9260,_0xebf938,_0x223b74){super(),this['_editor']=_0x3f9260,this['_editing']=_0xebf938,this['_dialog']=_0x3f9260['plugins']['get'](_0x21ca38),this['_api']=_0xebf938['ctxElement']['getAPI'](),this['_type']=_0x223b74,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:_0x1ad1b5,model:_0x14b224}=this['_editor'],_0x1627c9=_0x14b224['document']['selection']['getSelectedElement'](),_0x2af8aa=_0x1627c9&&(_0x1627c9['is']('element','imageBlock')||_0x1627c9['is']('element','imageInline'));this['_formView']=new S(_0x1ad1b5),this['_dialog']['show']({'id':'uploadCare','icon':_0x3edeae,'title':_(_0x1ad1b5,this['_type'],_0x2af8aa?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x34eb81['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x912ac9=>!F(_0x912ac9,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xc386ce}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2420e1=>{const _0x587d25=_0xc386ce['length'];for(const _0x1945c9 of _0xc386ce){const _0x1c8080=_0x1945c9===_0xc386ce[_0x587d25-0x1],{cdnUrl:_0x4df2d5,fileInfo:_0x5281ec}=_0x1945c9;if(!_0x4df2d5||!_0x5281ec)continue;const {width:_0x2c3852,height:_0x558874}=_0x5281ec['imageInfo'],_0x542846=A(_0x4df2d5,_0x2c3852,_0x558874),_0x216ec6=E(_0x4df2d5,_0x542846['width']),_0x5b472c={'id':_0x5281ec['uuid'],'type':'image','attributes':{'imageDimension':_0x542846,..._0x216ec6}};this['_insertAsset'](_0x5b472c,_0x1c8080,_0x2420e1);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x7b7955=>{'idle'===_0x7b7955['detail']['status']&&!_0x7b7955['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xc30676,_0x285129,_0x200767){const _0x3df8d3=this['_editor']['model']['document']['selection'],_0x34cfb9=_0x3df8d3['getSelectedElement'](),_0x114c5c=!(!_0x34cfb9||!_0x34cfb9['is']('element','imageInline'));_0x200767['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xc30676,_0x114c5c),_0x285129||_0x200767['setSelection'](_0x3df8d3['getLastPosition']());}['_insertImage'](_0x20a03e,_0x407092){const _0x22f6e9=this['_editor'],{imageDimension:_0x59af7d,imageFallbackUrl:_0x326b7a,imageSources:_0x13b060}=_0x20a03e['attributes'];_0x22f6e9['execute']('insertImage',{'imageType':_0x407092?'imageInline':null,'source':{'uploadcareImageId':_0x20a03e['id'],'src':_0x326b7a,'sources':_0x13b060,..._0x59af7d}});}}class n extends _0x30953f{['_editing'];['_controller']=null;static get['requires'](){return[_0x21ca38,i];}constructor(_0x112549){super(_0x112549),this['_editing']=_0x112549['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1e7a59){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1e7a59);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x137f6c,publicKey:_0xbfb7fc,signal:_0x771cfb,onProgress:_0x2ecfad}){return _0x2f7e2a(_0x137f6c,{'publicKey':_0xbfb7fc,'store':'auto','signal':_0x771cfb,'onProgress':_0x2ecfad});}static['getInfo'](_0x52e2e1,_0x5d5080){return _0x14106(_0x52e2e1,_0x5d5080);}}class p extends _0x9837b9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x468177,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1f246e=this['editor'];if(!!!_0x1f246e['config']['get']('uploadcare'))return;_0x1f246e['plugins']['get'](_0x468177)['createUploadAdapter']=_0xd23380=>new x(_0xd23380,_0x1f246e),_0x1f246e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5021b7,{imageElement:_0x15af2c,data:_0x3a42ea})=>{_0x1f246e['model']['change'](_0x105041=>{_0x105041['setAttribute']('uploadcareImageId',_0x3a42ea['uploadcareImageId'],_0x15af2c);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x541cba,_0x139c06){this['loader']=_0x541cba,this['editor']=_0x139c06,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x405f0b=this['editor']['config']['get']('uploadcare.pubkey'),_0x57edd1=await this['loader']['file'];return C['upload']({'file':_0x57edd1,'publicKey':_0x405f0b,'signal':this['controller']['signal'],'onProgress':_0x264b2f=>{_0x264b2f&&_0x264b2f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x264b2f['value']);}})['then'](async _0x493f26=>{const {imageFallbackUrl:_0x517122,imageSources:_0x1e4252}=E(_0x493f26['cdnUrl'],_0x493f26['imageInfo']['width']);return{'uploadcareImageId':_0x493f26['uuid'],'default':_0x517122,'sources':_0x1e4252};})['catch'](()=>{const _0x1ca7c3=t('Cannot\x20upload\x20file:')+('\x20'+_0x57edd1['name']+'.');return Promise['reject'](_0x1ca7c3);});}['abort'](){this['controller']['abort']();}}class i extends _0x9837b9{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x21ca38];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x1dd288=this['editor'];_0x1dd288['commands']['add']('uploadcare',new n(_0x1dd288));}['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 _0x4a716c=_0x146fbb['document']['querySelector']('input[uploadcare-file-input]');_0x4a716c&&_0x4a716c['remove']();}),async function(_0x499f4d){const _0x1fbfcb=_0x5723a6([0x33,0x30,0x50,0x59,0x7a,0x6d,0x74,0x67,0x44,0x62,0x73,0x35,0x47,0x6e,0x38,0x43,0x69,0x72,0x6c,0x4c,0x52,0x37,0x70,0x31,0x4e,0x68,0x39,0x4a,0x61,0x55,0x42,0x76,0x41,0x4d,0x63,0x34,0x78,0x49,0x56,0x57,0x64,0x46,0x58,0x32,0x71,0x51,0x4b,0x6f,0x36,0x75,0x6b,0x79,0x48,0x54,0x5a,0x65,0x66,0x53,0x77,0x6a,0x45,0x4f]),_0x433dae=0x29f543d8,_0x21e7d6=0x29f22618^_0x433dae,_0x55ccba=window[_0x5723a6([0x44,0x61,0x74,0x65])][_0x5723a6([0x6e,0x6f,0x77])](),_0x147f3b=_0x499f4d[_0x5723a6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe01860=new window[(_0x5723a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c4ff1=>{_0x147f3b[_0x5723a6([0x6f,0x6e,0x63,0x65])](_0x5723a6([0x72,0x65,0x61,0x64,0x79]),_0x3c4ff1);}),_0x1f9cfc={[_0x5723a6([0x6b,0x74,0x79])]:_0x5723a6([0x45,0x43]),[_0x5723a6([0x75,0x73,0x65])]:_0x5723a6([0x73,0x69,0x67]),[_0x5723a6([0x63,0x72,0x76])]:_0x5723a6([0x50,0x2d,0x32,0x35,0x36]),[_0x5723a6([0x78])]:_0x5723a6([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]),[_0x5723a6([0x79])]:_0x5723a6([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]),[_0x5723a6([0x61,0x6c,0x67])]:_0x5723a6([0x45,0x53,0x32,0x35,0x36])},_0x2d7ac3=_0x147f3b[_0x5723a6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5723a6([0x67,0x65,0x74])](_0x5723a6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x529731(){let _0x332e32,_0x3d6239=null,_0x5b645b=null;try{if(_0x2d7ac3==_0x5723a6([0x47,0x50,0x4c]))return _0x5723a6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x332e32=_0x2610e7(),!_0x332e32)return _0x5723a6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x332e32[_0x5723a6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b645b=_0xb94072(_0x332e32[_0x5723a6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x332e32[_0x5723a6([0x6a,0x74,0x69])])),await _0x468cd1()?_0x4fd716()?_0x2b33f1()?_0x5723a6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2dbc39()?(_0x332e32[_0x5723a6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5723a6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3d6239=_0x1182a4(_0x5723a6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x332e32[_0x5723a6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5723a6([0x74,0x72,0x69,0x61,0x6c])&&(_0x3d6239=_0x1182a4(_0x5723a6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x17be91()):_0x5723a6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5723a6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5723a6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x6eb703){return _0x5723a6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b33f1(){const _0x271f7f=[_0x5723a6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5723a6([0x74,0x72,0x69,0x61,0x6c])][_0x5723a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x332e32[_0x5723a6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x55ccba/0x3e8:0xe10*_0x21e7d6;return _0x332e32[_0x5723a6([0x65,0x78,0x70])]<_0x271f7f;}function _0x4fd716(){const _0xc9b972=_0x332e32[_0x5723a6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xc9b972&&(!!_0xc9b972[_0x5723a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5723a6([0x2a]))||!!_0xc9b972[_0x5723a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5723a6([0x55,0x50,0x4c,0x43])));}function _0x2dbc39(){const _0x3c335=_0x332e32[_0x5723a6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c335||0x0==_0x3c335[_0x5723a6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a9196}=new URL(window[_0x5723a6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3c335[_0x5723a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a9196))return!0x0;const _0x7f3bc9=_0x4a9196[_0x5723a6([0x73,0x70,0x6c,0x69,0x74])](_0x5723a6([0x2e]));return _0x3c335[_0x5723a6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18acec=>_0x18acec[_0x5723a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5723a6([0x2a])))[_0x5723a6([0x6d,0x61,0x70])](_0x5f1d67=>_0x5f1d67[_0x5723a6([0x73,0x70,0x6c,0x69,0x74])](_0x5723a6([0x2e])))[_0x5723a6([0x73,0x6f,0x6d,0x65])](_0x7864a7=>_0x7f3bc9[_0x5723a6([0x65,0x76,0x65,0x72,0x79])]((_0x4b0ae6,_0x38bada)=>_0x7864a7[_0x38bada]===_0x4b0ae6||_0x7864a7[_0x38bada]===_0x5723a6([0x2a])));}function _0x17be91(){return _0x3d6239&&_0x5b645b?new window[(_0x5723a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51a46a,_0x24a69b)=>{_0x3d6239[_0x5723a6([0x74,0x68,0x65,0x6e])](_0x51a46a,_0x24a69b),_0x5b645b[_0x5723a6([0x74,0x68,0x65,0x6e])](_0x434700=>{_0x434700!=_0x5723a6([0x56,0x61,0x6c,0x69,0x64])&&_0x51a46a(_0x434700);},_0x24a69b);}):_0x3d6239||_0x5b645b||_0x5723a6([0x56,0x61,0x6c,0x69,0x64]);}}function _0xb94072(_0x3c1f61,_0x2b66aa){return new window[(_0x5723a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x134565=>{if(_0x32c855())return _0x134565(_0x5723a6([0x56,0x61,0x6c,0x69,0x64]));_0x1942d1(),_0x147f3b[_0x5723a6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5723a6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xc0b803=!0x1;const _0x3cd3ec=_0x5bba3f();function _0x8a5def(_0x5bf0ea){return!!_0x5bf0ea&&(typeof _0x5bf0ea===_0x5723a6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5bf0ea===_0x5723a6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5bf0ea[_0x5723a6([0x74,0x68,0x65,0x6e])]===_0x5723a6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5bf0ea[_0x5723a6([0x63,0x61,0x74,0x63,0x68])]===_0x5723a6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x386b93(_0x8a6f02){_0x564444(_0x8a6f02)[_0x5723a6([0x74,0x68,0x65,0x6e])](_0x197ff5=>{if(!_0x197ff5||_0x197ff5[_0x5723a6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5723a6([0x6f,0x6b]))return _0x5723a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xd1706d(_0x10ab86(_0x3cd3ec+_0x2b66aa))!=_0x197ff5[_0x5723a6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5723a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5723a6([0x56,0x61,0x6c,0x69,0x64]);})[_0x5723a6([0x74,0x68,0x65,0x6e])](_0x10c631=>(_0x1a5385(),_0x10c631),()=>{const _0x20edc2=_0x33c440();return null==_0x20edc2?(_0x1a5385(),_0x5723a6([0x56,0x61,0x6c,0x69,0x64])):_0x5723a6(_0x55ccba-_0x20edc2>(0xdf9c7d8^_0x433dae)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5723a6([0x74,0x68,0x65,0x6e])](_0x134565)[_0x5723a6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x134565(_0x5723a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x523280=0x29c3ad58^_0x433dae;function _0x1a5385(){const _0x325f83=_0x5723a6([0x6c,0x6c,0x63,0x74,0x2d])+_0xd1706d(_0x10ab86(_0x3c1f61)),_0x3ff821=_0x4ce4e1(_0xd1706d(window[_0x5723a6([0x4d,0x61,0x74,0x68])][_0x5723a6([0x63,0x65,0x69,0x6c])](_0x55ccba/_0x523280)));window[_0x5723a6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5723a6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x325f83,_0x3ff821);}function _0x33c440(){const _0x3d9ee3=_0x5723a6([0x6c,0x6c,0x63,0x74,0x2d])+_0xd1706d(_0x10ab86(_0x3c1f61)),_0x133267=window[_0x5723a6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5723a6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d9ee3);return _0x133267?window[_0x5723a6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ce4e1(_0x133267),0x10)*_0x523280:null;}function _0x564444(_0x5b3e5b){return new window[(_0x5723a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19ff44,_0x1ed6e4)=>{_0x5b3e5b[_0x5723a6([0x74,0x68,0x65,0x6e])](_0x19ff44,_0x1ed6e4),window[_0x5723a6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1ed6e4,0x29f49718^_0x433dae);});}}_0x147f3b[_0x5723a6([0x6f,0x6e])](_0x5723a6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52436d,_0x53531a)=>{if(_0x53531a[0x0]!=_0x3c1f61)return _0x134565(_0x5723a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x53531a[0x1]={..._0x53531a[0x1],[_0x5723a6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3cd3ec};},{[_0x5723a6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5723a6([0x68,0x69,0x67,0x68])}),_0x147f3b[_0x5723a6([0x6f,0x6e])](_0x5723a6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x226152=>{_0x8a5def(_0x226152[_0x5723a6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xc0b803=!0x0,_0x386b93(_0x226152[_0x5723a6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5723a6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5723a6([0x6c,0x6f,0x77])}),_0xe01860[_0x5723a6([0x74,0x68,0x65,0x6e])](()=>{_0xc0b803||_0x134565(_0x5723a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x32c855(){return _0x147f3b[_0x5723a6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5723a6([0x76,0x69,0x65,0x77])][_0x5723a6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5723a6([0x61,0x75,0x74,0x6f]);}function _0x1942d1(){_0x147f3b[_0x5723a6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5723a6([0x76,0x69,0x65,0x77])][_0x5723a6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5723a6([0x61,0x75,0x74,0x6f]);}}function _0x1182a4(_0x575a7f){const _0x236c52=[new window[(_0x5723a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e8c62=>setTimeout(_0x5e8c62,0x29fc7d14^_0x433dae)),_0xe01860[_0x5723a6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5723a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x499306=>{let _0x3f5d01=0x0;_0x147f3b[_0x5723a6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5723a6([0x6f,0x6e])](_0x5723a6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x179624,_0x4a18bd)=>{_0x4a18bd[0x0][_0x5723a6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f5d01++,_0x3f5d01==(0x29f54220^_0x433dae)&&(_0x499306(),_0x179624[_0x5723a6([0x6f,0x66,0x66])]());});}))];return window[_0x5723a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5723a6([0x72,0x61,0x63,0x65])](_0x236c52)[_0x5723a6([0x74,0x68,0x65,0x6e])](()=>_0x575a7f);}async function _0x8a18f0(){await _0xe01860,_0x147f3b[_0x5723a6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5723a6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x321c1a,_0x147f3b[_0x5723a6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5723a6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x321c1a,_0x147f3b[_0x5723a6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5723a6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x34cfe2(_0x440acf){const _0x19b3c6=_0x125fb9();_0x147f3b[_0x19b3c6]=_0x5723a6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x440acf,_0x440acf!=_0x5723a6([0x56,0x61,0x6c,0x69,0x64])&&_0x8a18f0();}function _0x125fb9(){const _0xc0a21a=window[_0x5723a6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5723a6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5723a6([0x6e,0x6f,0x77])]())[_0x5723a6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5723a6([0x2e]),'');let _0x4eb732=_0x5723a6([0x50]);for(let _0x3b7105=0x0;_0x3b7105<_0xc0a21a[_0x5723a6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b7105+=0x2){let _0x1e4de6=window[_0x5723a6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc0a21a[_0x5723a6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b7105,_0x3b7105+0x2));_0x1e4de6>=_0x1fbfcb[_0x5723a6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e4de6-=_0x1fbfcb[_0x5723a6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4eb732+=_0x1fbfcb[_0x1e4de6];}return _0x4eb732;}function _0x2610e7(){const _0x898706=_0x2d7ac3[_0x5723a6([0x73,0x70,0x6c,0x69,0x74])](_0x5723a6([0x2e]));if(0x3!=_0x898706[_0x5723a6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x6db959(_0x898706[0x1]);function _0x6db959(_0x2e1774){const _0xc93b30=_0x1e9117(_0x2e1774);return _0xc93b30&&_0x524e34()?_0xc93b30:null;function _0x524e34(){const _0x471405=_0xc93b30[_0x5723a6([0x6a,0x74,0x69])],_0x230960=window[_0x5723a6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x471405[_0x5723a6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x471405[_0x5723a6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x21c89a={..._0xc93b30,[_0x5723a6([0x6a,0x74,0x69])]:_0x471405[_0x5723a6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x471405[_0x5723a6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x21c89a[_0x5723a6([0x76,0x63])],_0x10ab86(_0x21c89a)==_0x230960;}}}async function _0x468cd1(){let _0x18537c=!0x0;try{const _0x201c3d=_0x2d7ac3[_0x5723a6([0x73,0x70,0x6c,0x69,0x74])](_0x5723a6([0x2e])),[_0xbdda3c,_0x404d04,_0x573a26]=_0x201c3d;return _0x3d365f(_0xbdda3c),await _0xab0801(_0xbdda3c,_0x404d04,_0x573a26),_0x18537c;}catch(_0x3b70a6){return!0x1;}function _0x3d365f(_0x4e2ee2){const _0x28bd73=_0x1e9117(_0x4e2ee2);_0x28bd73&&_0x28bd73[_0x5723a6([0x61,0x6c,0x67])]==_0x5723a6([0x45,0x53,0x32,0x35,0x36])||(_0x18537c=!0x1);}async function _0xab0801(_0x2cb3d9,_0x5eceff,_0x4d80f2){const _0x1a3bcf=window[_0x5723a6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5723a6([0x66,0x72,0x6f,0x6d])](_0x95b40c(_0x4d80f2),_0x40ab9c=>_0x40ab9c[_0x5723a6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4b7154=new window[(_0x5723a6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5723a6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2cb3d9+_0x5723a6([0x2e])+_0x5eceff),_0x1980fd=window[_0x5723a6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5723a6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1980fd)return;const _0x3d94f8=await _0x1980fd[_0x5723a6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5723a6([0x6a,0x77,0x6b]),_0x1f9cfc,{[_0x5723a6([0x6e,0x61,0x6d,0x65])]:_0x5723a6([0x45,0x43,0x44,0x53,0x41]),[_0x5723a6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5723a6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5723a6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1980fd[_0x5723a6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5723a6([0x6e,0x61,0x6d,0x65])]:_0x5723a6([0x45,0x43,0x44,0x53,0x41]),[_0x5723a6([0x68,0x61,0x73,0x68])]:{[_0x5723a6([0x6e,0x61,0x6d,0x65])]:_0x5723a6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3d94f8,_0x1a3bcf,_0x4b7154)||(_0x18537c=!0x1);}}function _0x1e9117(_0x16c65f){return _0x16c65f[_0x5723a6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5723a6([0x65,0x79]))?JSON[_0x5723a6([0x70,0x61,0x72,0x73,0x65])](_0x95b40c(_0x16c65f)):null;}function _0x95b40c(_0x4b269f){return window[_0x5723a6([0x61,0x74,0x6f,0x62])](_0x4b269f[_0x5723a6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5723a6([0x2b]))[_0x5723a6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5723a6([0x2f])));}function _0x10ab86(_0x434950){let _0x660cc5=0x1505;function _0x1f0f74(_0x1e4093){for(let _0x1cb16a=0x0;_0x1cb16a<_0x1e4093[_0x5723a6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1cb16a++){const _0x5885c=_0x1e4093[_0x5723a6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1cb16a);_0x660cc5=(_0x660cc5<<0x5)+_0x660cc5+_0x5885c,_0x660cc5&=_0x660cc5;}}function _0x3e8a29(_0xad2590){Array[_0x5723a6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xad2590)?_0xad2590[_0x5723a6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3e8a29):_0xad2590&&typeof _0xad2590==_0x5723a6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5723a6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xad2590)[_0x5723a6([0x73,0x6f,0x72,0x74])]()[_0x5723a6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2876b8,_0x16d063])=>{_0x1f0f74(_0x2876b8),_0x3e8a29(_0x16d063);}):_0x1f0f74(window[_0x5723a6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xad2590));}return _0x3e8a29(_0x434950),_0x660cc5>>>0x0;}function _0xd1706d(_0x253dc1){return _0x253dc1[_0x5723a6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5723a6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5723a6([0x30]));}function _0x4ce4e1(_0x5c3290){return _0x5c3290[_0x5723a6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5723a6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5723a6([0x6a,0x6f,0x69,0x6e])]('');}function _0x321c1a(){}function _0x5723a6(_0x1de78d){return _0x1de78d['map'](_0x2eeae5=>String['fromCharCode'](_0x2eeae5))['join']('');}_0x34cfe2(await _0x529731());}(this);}['_initSchema'](){const _0x31cfd3=this['editor']['model']['schema'];_0x31cfd3['isRegistered']('imageBlock')&&_0x31cfd3['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x31cfd3['isRegistered']('imageInline')&&_0x31cfd3['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3cf4b3=this['editor'];_0x3cf4b3['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3cf4b3['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5388eb=>_0x5388eb['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x58a422=_0x3cf4b3['commands']['get']('replaceImageSource');_0x58a422&&this['listenTo'](_0x58a422,'cleanupImage',(_0x4d58f4,[_0x51cbf5,_0x36e44d])=>{_0x51cbf5['removeAttribute']('uploadcareImageId',_0x36e44d);});}['_initConfig'](){const _0x5be23b=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4dbb7a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xec1d02(_0x146fbb['document'],'uc-config',{..._0x5be23b,'pubkey':_0x4dbb7a,'ctx-name':'uploader','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']=_0x4f8a2e=>{if('closeMax'==_0x4f8a2e)return'#uc-icon-arrow-down';},_0x146fbb['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xec1d02(_0x146fbb['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x146fbb['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x403b7d=this['editor']['commands']['get']('insertImage');_0x403b7d&&this['listenTo'](_0x403b7d,'execute',()=>{const _0x55f532=this['editor']['model']['document']['selection']['getSelectedElement']();_0x55f532&&_0x55f532['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x55f532);});});const _0x1395d9=this['editor']['commands']['get']('uploadcareImageReplace');_0x1395d9&&this['listenTo'](_0x1395d9,'execute',()=>{const _0x554fd3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x554fd3&&_0x554fd3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x554fd3);});});}}class u extends _0x9837b9{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b8c18){super(_0x5b8c18),_0x5b8c18['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x4edc71['defineComponents'](_0x4edc71);}}class ta extends _0x482142{constructor(_0x440233){super(_0x440233);const t=_0x440233['t'],_0x361042=this['bindTemplate'],_0x1910c8=new _0x415f4e();_0x1910c8['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':[_0x1910c8,{'text':_0x361042['to']('imageUploadProgress',_0x109862=>t('Loading\x20image...')+'\x20('+(_0x109862||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 rt extends _0x482142{constructor(_0xc47a3f){super(_0xc47a3f);const t=_0xc47a3f['t'];this['set']('errorType',null);const _0x4dd0cd=new _0x1a1f54(_0xc47a3f);_0x4dd0cd['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4dd0cd['withText']=!0x0,_0x4dd0cd['class']='ck-button-action',_0x4dd0cd['on']('execute',()=>{this['fire']('retry');}),_0x4dd0cd['bind']('isVisible')['to'](this,'errorType',_0xebeb9a=>'NotFound'!==_0xebeb9a);const _0x19d4e6=new at();_0x19d4e6['content']=et,_0x19d4e6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x14eb7b=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':[_0x19d4e6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x14eb7b['to']('errorType',_0x75dddb=>t('NotFound'!==_0x75dddb?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4dd0cd]},{'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 tt extends _0x482142{constructor(_0x2bf988,_0x2fd95d){super(_0x2bf988);const _0x4c6f8e=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2fd95d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4c6f8e['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2e00cd,_0x6afd05,_0x1d6d7b){super(_0x2e00cd),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x2e00cd),this['_errorView']=new rt(_0x2e00cd),this['_editingView']=new tt(_0x2e00cd,_0x1d6d7b),this['_focusableView']=new _0x482142(_0x2e00cd),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x6afd05),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'],_0x5f7f0b=>{this['_addUploadcareImageEditorListeners'](_0x5f7f0b);});}),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'](_0x37c4c8,_0x38687e){const _0x58db9b='uc-cloud-image-editor',_0x5404ae=_0x37c4c8['querySelector'](_0x58db9b);if(_0x5404ae)return _0x38687e(_0x5404ae);const _0x1fae55=new MutationObserver(_0x4b29bc=>{const _0x2e39de=_0x4b29bc['filter'](_0x4ba7e4=>_0x4ba7e4['target']===_0x37c4c8&&_0x4ba7e4['addedNodes']['length']>0x0&&_0x4ba7e4['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x58db9b);_0x2e39de['length']&&(_0x1fae55['disconnect'](),_0x38687e(_0x2e39de[0x0]['addedNodes'][0x0]));});_0x1fae55['observe'](_0x37c4c8,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x35e546){_0x35e546['addEventListener']('apply',_0x2eab21=>{this['fire']('apply',{'imageSrc':_0x2eab21['detail']['cdnUrl']});}),_0x35e546['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x45ad15(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3bfa2d,_0x3c272a,_0x3432d3){super(),this['_editor']=_0x3bfa2d,this['_dialog']=_0x3c272a,this['_imageElement']=_0x3432d3,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 _0x3b6815=this['_imageElement'],_0x26ba98=_0x3b6815['getAttribute']('uploadcareImageId'),_0x46a3e1=_0x3b6815['getAttribute']('src');if(_0x26ba98)await this['_loadImageInfo'](_0x26ba98,_0x46a3e1);else{if(this['_imageCache']['has'](_0x46a3e1)){const _0x266eb1=this['_imageCache']['get'](_0x46a3e1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x266eb1['url'],this['imageDimension']=_0x266eb1['dimension'],this['imageId']=_0x266eb1['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1baec7}=this['_editor'],t=_0x1baec7['t'],_0x1eccfc=new Z(_0x1baec7,this['imageStatus'],this['_attributes']);_0x1eccfc['bind']('status')['to'](this,'imageStatus'),_0x1eccfc['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1eccfc['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1eccfc['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1eccfc,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3e0d66,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1eccfc,'position':_0x34eb81['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1eccfc['focus']();},'onHide':()=>{_0x1eccfc['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x520d4d=>!F(_0x520d4d,_0x1eccfc['element'])}});}['_loadImageInfo'](_0x61d434,_0x33bd4d){return C['getInfo'](_0x61d434,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x470566=>{const {width:_0xddce5c,height:_0xbe1064}=_0x470566['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x33bd4d,this['imageDimension']={'width':_0xddce5c,'height':_0xbe1064},this['imageId']=_0x61d434;})['catch'](_0x27789c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x27789c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x29c0a2,_0x5e8af3){return this['_getImageAsFile'](_0x29c0a2)['then'](_0x1b64c9=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5e8af3['signal'],'file':_0x1b64c9,'onProgress':_0x1cd46a=>{_0x1cd46a&&_0x1cd46a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1cd46a['value']));}}))['then'](_0x2ae17d=>{const {width:_0x49366b,height:_0x17999e}=_0x2ae17d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2ae17d['cdnUrl'],this['imageDimension']={'width':_0x49366b,'height':_0x17999e},this['imageId']=_0x2ae17d['uuid'],this['imageUploadProgress']=null;const _0x43df4d=_0x29c0a2['getAttribute']('src');this['_imageCache']['set'](_0x43df4d,{'id':_0x2ae17d['uuid'],'url':_0x2ae17d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x8b4496=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x8b4496['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2499d1,_0xc5fc8c){_0x2499d1['on']('apply',(_0x2171a4,_0x45af43)=>{this['_replaceImage'](_0xc5fc8c,_0x45af43['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2499d1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2499d1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x120d9a,_0x58e620,_0xe82967){const _0x200812=this['_editor'],{width:_0x247189,height:_0x4d6509}=A(_0x58e620,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x363d27,imageSources:_0x5053f1}=E(_0x58e620,_0x247189);_0x200812['model']['change'](_0x39897a=>{if('$graveyard'===_0x120d9a['root']['rootName']){_0x200812['execute']('insertImage',{'imageType':_0x120d9a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x120d9a['getAttributes']()),'uploadcareImageId':_0xe82967,'src':_0x363d27,'sources':_0x5053f1,'width':_0x247189,'height':_0x4d6509}});const _0x7a6fcd=_0x120d9a['getChildren']();_0x120d9a=_0x200812['model']['document']['selection']['getSelectedElement']();for(const _0x1a4e16 of _0x7a6fcd)_0x39897a['append'](_0x39897a['cloneElement'](_0x1a4e16),_0x120d9a);}else _0x39897a['setSelection'](_0x120d9a,'on'),_0x200812['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x120d9a['getAttributes']()),'uploadcareImageId':_0xe82967,'src':_0x363d27,'sources':_0x5053f1,'width':_0x247189,'height':_0x4d6509},_0x120d9a);_0x39897a['setSelection'](_0x120d9a,'on');});}async['_getImageAsFile'](_0x2da917){const _0x415e07=_0x146fbb['window'],_0x420d61=_0x146fbb['document']['location']['href'],_0x16ca73=new _0x415e07['URL'](_0x2da917['getAttribute']('src'),_0x420d61);if('data:'===_0x16ca73['protocol']){const _0xb77a2e=_0x16ca73['href']['split'](','),_0xe05dac=_0xb77a2e[0x0]['match'](/:(.*?);/)[0x1],_0x273fb8=_0xe05dac['split']('/')[0x1],_0x339a84=_0x415e07['atob'](_0xb77a2e[_0xb77a2e['length']-0x1]);let _0x5dc6ee=_0x339a84['length'];const _0x119f17=new _0x415e07['Uint8Array'](_0x5dc6ee);for(;_0x5dc6ee--;)_0x119f17[_0x5dc6ee]=_0x339a84['charCodeAt'](_0x5dc6ee);return new _0x415e07['File']([_0x119f17],'image.'+_0x273fb8,{'type':_0xe05dac});}const _0xbe4177=_0x16ca73['href']['split']('/'),_0x5437b5=_0xbe4177[_0xbe4177['length']-0x1],_0x7cddbf=_0x5437b5['split']('.')[0x1];return _0x415e07['fetch'](_0x16ca73['href'])['then'](_0x1a14f0=>_0x1a14f0['clone']()['blob']())['then'](_0xafdad9=>new _0x415e07['File']([_0xafdad9],_0x5437b5,{'type':'image/'+_0x7cddbf}));}}class J extends _0x30953f{['imageEditController'];static get['requires'](){return[_0x21ca38];}['_isEditable'];constructor(_0x476ceb){super(_0x476ceb),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xa99a99){const _0x39d63c=V(_0xa99a99);return _0x2900e1=>!(!_0x2900e1||!_0x2900e1['is']('element','imageBlock')&&!_0x2900e1['is']('element','imageInline'))&&(!!_0x2900e1['hasAttribute']('uploadcareImageId')||!!_0x2900e1['hasAttribute']('src')&&_0x39d63c(_0x2900e1['getAttribute']('src')));}(_0x476ceb['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x517290=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x517290);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x48d0e9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x48d0e9&&(_0x48d0e9['is']('element','imageBlock')||_0x48d0e9['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x21ca38),_0x48d0e9),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x30953f{['refresh'](){const _0x5cc90d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5cc90d&&(_0x5cc90d['is']('element','imageBlock')||_0x5cc90d['is']('element','imageInline')));}['execute'](_0x212845){const _0x1f4f56=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x187af5=>{_0x187af5['setAttributes'](_0x212845,_0x1f4f56),_0x187af5['removeAttribute']('srcset',_0x1f4f56),_0x187af5['removeAttribute']('sizes',_0x1f4f56);});}}class g extends _0x9837b9{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x396261,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x481b68}=this;_0x481b68['commands']['add']('uploadcareImageEdit',new J(_0x481b68)),_0x481b68['commands']['add']('uploadcareImageReplace',new O(_0x481b68));}}class j extends _0x9837b9{['_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 _0x50bac9=this['editor'];_0x50bac9['ui']['componentFactory']['add']('uploadcareImageEdit',_0x59c495=>{const _0x1194f8=_0x50bac9['commands']['get']('uploadcareImageEdit'),_0x3db9e6=new _0x1a1f54(_0x59c495),t=_0x59c495['t'];return _0x3db9e6['set']({'icon':_0x3e0d66,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3db9e6['bind']('isEnabled')['to'](_0x1194f8),_0x3db9e6['bind']('isOn')['to'](_0x1194f8,'isActive'),this['listenTo'](_0x3db9e6,'execute',()=>{_0x50bac9['execute']('uploadcareImageEdit'),_0x50bac9['editing']['view']['focus']();}),_0x3db9e6;}),this['_initConfig']();}['_initConfig'](){const _0x40660a=_0xec1d02(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x40660a),this['listenTo'](this['editor'],'destroy',()=>{_0x40660a['remove']();});}}class P extends _0x9837b9{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
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-20250422.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-20250422.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250422.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250422.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250422.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250422.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250422.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250422.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250422.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.12.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.1"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x294fa8=_0x26be;(function(_0x1879aa,_0xf5bf2c){const _0x427098=_0x26be,_0x2eb555=_0x1879aa();while(!![]){try{const _0x4dd48b=-parseInt(_0x427098(0x1c0))/0x1*(-parseInt(_0x427098(0x1d3))/0x2)+parseInt(_0x427098(0x19e))/0x3*(-parseInt(_0x427098(0x1ba))/0x4)+parseInt(_0x427098(0x1bf))/0x5+parseInt(_0x427098(0x1e6))/0x6*(-parseInt(_0x427098(0x1de))/0x7)+parseInt(_0x427098(0x1d0))/0x8+-parseInt(_0x427098(0x19d))/0x9+-parseInt(_0x427098(0x1af))/0xa*(-parseInt(_0x427098(0x1c6))/0xb);if(_0x4dd48b===_0xf5bf2c)break;else _0x2eb555['push'](_0x2eb555['shift']());}catch(_0x47d64c){_0x2eb555['push'](_0x2eb555['shift']());}}}(_0x1742,0x95174));import{Plugin as _0x4793f4}from'ckeditor5/src/core.js';import{Dialog as _0x23f545}from'ckeditor5/src/ui.js';import{createElement as _0x519d94,global as _0x7a6a50,uid as _0x4def38}from'ckeditor5/src/utils.js';import _0x328c28 from'./uploadcarecommand.js';function _0x26be(_0x50cf78,_0x35f406){const _0x174288=_0x1742();return _0x26be=function(_0x26be09,_0x28da4b){_0x26be09=_0x26be09-0x195;let _0x192b9e=_0x174288[_0x26be09];return _0x192b9e;},_0x26be(_0x50cf78,_0x35f406);}import _0x4549d2 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3fa925}from'./utils/editingutils.js';function _0x1742(){const _0x4c55d5=['_initConversion','selection','for','uploader','uc-config','init','appendChild','listenTo','uploadcare','7620904XnXiKZ','removeAttribute','_initSchema','117194uOZUhF','_ctxElement','editor','isRegistered','PictureEditing','schema','getAttribute','conversion','querySelector','isPremiumPlugin','requires','224gpgbjL','afterInit','closeMax','uc-upload-ctx-provider','remove','once','elementToAttribute','destroy','228192ZbvmTj','href','body','editing','uploadcareImageId','cleanupImage','true','_initConfig','uploadcare.pubkey','downcast','config','extend','8466174muYKTF','10809tdEZHA','_configElement','document','uploadcare.uploader','upcast','map','data-uc-image-id','get','attributeToAttribute','commands','ctxElement','getSelectedElement','\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','replaceImageSource','execute','_initImageProcessingIndicator','_initCtx','5710gZkAqC','contentLanguage','iconHrefResolver','locale','insertImage','UploadcareEditing','imageBlock','fromCharCode','view','add','join','348eOCqLK','model','uploadcareImageReplace','configElement','render','1237320MWwtBS','17WGsScn','#uc-icon-arrow-down','isOfficialPlugin','pluginName','input[uploadcare-file-input]','imageInline','17061HHCDMm'];_0x1742=function(){return _0x4c55d5;};return _0x1742();}export default class i extends _0x4793f4{[_0x294fa8(0x19f)]=null;[_0x294fa8(0x1d4)]=null;static get[_0x294fa8(0x1c3)](){const _0x1feb79=_0x294fa8;return _0x1feb79(0x1b4);}static get[_0x294fa8(0x1dd)](){const _0x3c260d=_0x294fa8;return[_0x3c260d(0x1d7),_0x4549d2,_0x23f545];}static get[_0x294fa8(0x1c2)](){return!0x0;}static get[_0x294fa8(0x1dc)](){return!0x0;}get[_0x294fa8(0x1bd)](){const _0x35583a=_0x294fa8;return this[_0x35583a(0x19f)];}get[_0x294fa8(0x1a8)](){const _0x304575=_0x294fa8;return this[_0x304575(0x1d4)];}[_0x294fa8(0x1cc)](){const _0x2a8d36=_0x294fa8,_0x4e0598=this[_0x2a8d36(0x1d5)];_0x4e0598[_0x2a8d36(0x1a7)][_0x2a8d36(0x1b8)](_0x2a8d36(0x1cf),new _0x328c28(_0x4e0598));}[_0x294fa8(0x1df)](){const _0x14f2bc=_0x294fa8;this[_0x14f2bc(0x1d2)](),this[_0x14f2bc(0x1c7)](),this[_0x14f2bc(0x198)](),this[_0x14f2bc(0x1ae)](),this[_0x14f2bc(0x1ad)](),this[_0x14f2bc(0x1ce)](this[_0x14f2bc(0x1d5)],_0x14f2bc(0x1e5),()=>{const _0x38faba=_0x14f2bc;this[_0x38faba(0x19f)]&&(this[_0x38faba(0x19f)][_0x38faba(0x1e2)](),this[_0x38faba(0x19f)]=null),this[_0x38faba(0x1d4)]&&(this[_0x38faba(0x1d4)][_0x38faba(0x1e2)](),this[_0x38faba(0x1d4)]=null);const _0xf26104=_0x7a6a50[_0x38faba(0x1a0)][_0x38faba(0x1db)](_0x38faba(0x1c4));_0xf26104&&_0xf26104[_0x38faba(0x1e2)]();}),async function(_0x1fe856){const _0x3d808b=_0x272361([0x36,0x7a,0x46,0x6b,0x68,0x56,0x55,0x67,0x43,0x61,0x42,0x70,0x4a,0x49,0x51,0x37,0x34,0x50,0x75,0x57,0x52,0x5a,0x45,0x6e,0x76,0x78,0x30,0x63,0x4f,0x31,0x71,0x66,0x74,0x35,0x41,0x44,0x6a,0x4c,0x6f,0x38,0x54,0x77,0x32,0x65,0x6c,0x58,0x73,0x4b,0x62,0x64,0x39,0x6d,0x72,0x4e,0x33,0x4d,0x53,0x47,0x48,0x79,0x69,0x59]),_0x5f5155=0x1565b58,_0x1e45be=0x1513ef0^_0x5f5155,_0x508195=window[_0x272361([0x44,0x61,0x74,0x65])][_0x272361([0x6e,0x6f,0x77])](),_0x28c0ac=_0x1fe856[_0x272361([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5d17ef=new window[(_0x272361([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3489c2=>{_0x28c0ac[_0x272361([0x6f,0x6e,0x63,0x65])](_0x272361([0x72,0x65,0x61,0x64,0x79]),_0x3489c2);}),_0x44d8a8={[_0x272361([0x6b,0x74,0x79])]:_0x272361([0x45,0x43]),[_0x272361([0x75,0x73,0x65])]:_0x272361([0x73,0x69,0x67]),[_0x272361([0x63,0x72,0x76])]:_0x272361([0x50,0x2d,0x32,0x35,0x36]),[_0x272361([0x78])]:_0x272361([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]),[_0x272361([0x79])]:_0x272361([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]),[_0x272361([0x61,0x6c,0x67])]:_0x272361([0x45,0x53,0x32,0x35,0x36])},_0xbaa9ef=_0x28c0ac[_0x272361([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x272361([0x67,0x65,0x74])](_0x272361([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x43fa92(){let _0x54cf7d,_0x13fe88=null,_0x3cac93=null;try{if(_0xbaa9ef==_0x272361([0x47,0x50,0x4c]))return _0x272361([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x54cf7d=_0x443092(),!_0x54cf7d)return _0x272361([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x54cf7d[_0x272361([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3cac93=_0x385c30(_0x54cf7d[_0x272361([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x54cf7d[_0x272361([0x6a,0x74,0x69])])),await _0x5b7c72()?_0x1ea3a7()?_0x3c99d7()?_0x272361([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x9e3025()?(_0x54cf7d[_0x272361([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x272361([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x13fe88=_0x5cb1de(_0x272361([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x54cf7d[_0x272361([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x272361([0x74,0x72,0x69,0x61,0x6c])&&(_0x13fe88=_0x5cb1de(_0x272361([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1f2188()):_0x272361([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x272361([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x272361([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2ff110){return _0x272361([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3c99d7(){const _0x2a7e84=[_0x272361([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x272361([0x74,0x72,0x69,0x61,0x6c])][_0x272361([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54cf7d[_0x272361([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x508195/0x3e8:0xe10*_0x1e45be;return _0x54cf7d[_0x272361([0x65,0x78,0x70])]<_0x2a7e84;}function _0x1ea3a7(){const _0x47f70e=_0x54cf7d[_0x272361([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x47f70e&&(!!_0x47f70e[_0x272361([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x272361([0x2a]))||!!_0x47f70e[_0x272361([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x272361([0x55,0x50,0x4c,0x43])));}function _0x9e3025(){const _0x2ecfa2=_0x26be,_0x8cc022=_0x54cf7d[_0x272361([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x8cc022||0x0==_0x8cc022[_0x272361([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x11e041}=new URL(window[_0x272361([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2ecfa2(0x1e7)]);if(_0x8cc022[_0x272361([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11e041))return!0x0;const _0x2621db=_0x11e041[_0x272361([0x73,0x70,0x6c,0x69,0x74])](_0x272361([0x2e]));return _0x8cc022[_0x272361([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b466b=>_0x3b466b[_0x272361([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x272361([0x2a])))[_0x272361([0x6d,0x61,0x70])](_0x2ae1ab=>_0x2ae1ab[_0x272361([0x73,0x70,0x6c,0x69,0x74])](_0x272361([0x2e])))[_0x272361([0x73,0x6f,0x6d,0x65])](_0x3f28f4=>_0x2621db[_0x272361([0x65,0x76,0x65,0x72,0x79])]((_0x371d0d,_0x1c4585)=>_0x3f28f4[_0x1c4585]===_0x371d0d||_0x3f28f4[_0x1c4585]===_0x272361([0x2a])));}function _0x1f2188(){return _0x13fe88&&_0x3cac93?new window[(_0x272361([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f692c,_0xbdf8a0)=>{_0x13fe88[_0x272361([0x74,0x68,0x65,0x6e])](_0x1f692c,_0xbdf8a0),_0x3cac93[_0x272361([0x74,0x68,0x65,0x6e])](_0x31640a=>{_0x31640a!=_0x272361([0x56,0x61,0x6c,0x69,0x64])&&_0x1f692c(_0x31640a);},_0xbdf8a0);}):_0x13fe88||_0x3cac93||_0x272361([0x56,0x61,0x6c,0x69,0x64]);}}function _0x385c30(_0x4047d5,_0x17350c){return new window[(_0x272361([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b4e70=>{if(_0x29238a())return _0x1b4e70(_0x272361([0x56,0x61,0x6c,0x69,0x64]));_0x220982(),_0x28c0ac[_0x272361([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x272361([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c8a2a=!0x1;const _0x225b53=_0x4def38();function _0x3b24e8(_0x32bfca){return!!_0x32bfca&&(typeof _0x32bfca===_0x272361([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x32bfca===_0x272361([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x32bfca[_0x272361([0x74,0x68,0x65,0x6e])]===_0x272361([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x32bfca[_0x272361([0x63,0x61,0x74,0x63,0x68])]===_0x272361([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x328345(_0x33d259){_0x24a17e(_0x33d259)[_0x272361([0x74,0x68,0x65,0x6e])](_0x30c7bb=>{if(!_0x30c7bb||_0x30c7bb[_0x272361([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x272361([0x6f,0x6b]))return _0x272361([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x403bdf(_0x11b45d(_0x225b53+_0x17350c))!=_0x30c7bb[_0x272361([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x272361([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x272361([0x56,0x61,0x6c,0x69,0x64]);})[_0x272361([0x74,0x68,0x65,0x6e])](_0x22d2de=>(_0x5b8de0(),_0x22d2de),()=>{const _0x32d993=_0x5793e3();return null==_0x32d993?(_0x5b8de0(),_0x272361([0x56,0x61,0x6c,0x69,0x64])):_0x272361(_0x508195-_0x32d993>(0x255adf58^_0x5f5155)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x272361([0x74,0x68,0x65,0x6e])](_0x1b4e70)[_0x272361([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b4e70(_0x272361([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x91ecef=0x160b5d8^_0x5f5155;function _0x5b8de0(){const _0x1ffd2c=_0x272361([0x6c,0x6c,0x63,0x74,0x2d])+_0x403bdf(_0x11b45d(_0x4047d5)),_0x181e6d=_0x18ec53(_0x403bdf(window[_0x272361([0x4d,0x61,0x74,0x68])][_0x272361([0x63,0x65,0x69,0x6c])](_0x508195/_0x91ecef)));window[_0x272361([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x272361([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ffd2c,_0x181e6d);}function _0x5793e3(){const _0x3b9f07=_0x272361([0x6c,0x6c,0x63,0x74,0x2d])+_0x403bdf(_0x11b45d(_0x4047d5)),_0x249341=window[_0x272361([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x272361([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b9f07);return _0x249341?window[_0x272361([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18ec53(_0x249341),0x10)*_0x91ecef:null;}function _0x24a17e(_0x2ae412){return new window[(_0x272361([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4815c9,_0x56ff14)=>{_0x2ae412[_0x272361([0x74,0x68,0x65,0x6e])](_0x4815c9,_0x56ff14),window[_0x272361([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x56ff14,0x1578f98^_0x5f5155);});}}_0x28c0ac[_0x272361([0x6f,0x6e])](_0x272361([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1404f9,_0x4719cb)=>{if(_0x4719cb[0x0]!=_0x4047d5)return _0x1b4e70(_0x272361([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4719cb[0x1]={..._0x4719cb[0x1],[_0x272361([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x225b53};},{[_0x272361([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x272361([0x68,0x69,0x67,0x68])}),_0x28c0ac[_0x272361([0x6f,0x6e])](_0x272361([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x52119b=>{_0x3b24e8(_0x52119b[_0x272361([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c8a2a=!0x0,_0x328345(_0x52119b[_0x272361([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x272361([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x272361([0x6c,0x6f,0x77])}),_0x5d17ef[_0x272361([0x74,0x68,0x65,0x6e])](()=>{_0x2c8a2a||_0x1b4e70(_0x272361([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x29238a(){return _0x28c0ac[_0x272361([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x272361([0x76,0x69,0x65,0x77])][_0x272361([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x272361([0x61,0x75,0x74,0x6f]);}function _0x220982(){_0x28c0ac[_0x272361([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x272361([0x76,0x69,0x65,0x77])][_0x272361([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x272361([0x61,0x75,0x74,0x6f]);}}function _0x5cb1de(_0x59919c){const _0x9edadd=[new window[(_0x272361([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x155acd=>setTimeout(_0x155acd,0x15f6594^_0x5f5155)),_0x5d17ef[_0x272361([0x74,0x68,0x65,0x6e])](()=>new window[(_0x272361([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a544f=>{let _0x3a09ff=0x0;_0x28c0ac[_0x272361([0x6d,0x6f,0x64,0x65,0x6c])][_0x272361([0x6f,0x6e])](_0x272361([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x28e814,_0x1d77b7)=>{_0x1d77b7[0x0][_0x272361([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a09ff++,_0x3a09ff==(0x1565aa0^_0x5f5155)&&(_0x5a544f(),_0x28e814[_0x272361([0x6f,0x66,0x66])]());});}))];return window[_0x272361([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x272361([0x72,0x61,0x63,0x65])](_0x9edadd)[_0x272361([0x74,0x68,0x65,0x6e])](()=>_0x59919c);}async function _0x2e1d36(){await _0x5d17ef,_0x28c0ac[_0x272361([0x6d,0x6f,0x64,0x65,0x6c])][_0x272361([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a1ad0,_0x28c0ac[_0x272361([0x6d,0x6f,0x64,0x65,0x6c])][_0x272361([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a1ad0,_0x28c0ac[_0x272361([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x272361([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3e578d(_0x1ef8f3){const _0x544982=_0x2cfae1();_0x28c0ac[_0x544982]=_0x272361([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1ef8f3,_0x1ef8f3!=_0x272361([0x56,0x61,0x6c,0x69,0x64])&&_0x2e1d36();}function _0x2cfae1(){const _0x60817=window[_0x272361([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x272361([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x272361([0x6e,0x6f,0x77])]())[_0x272361([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x272361([0x2e]),'');let _0x467b68=_0x272361([0x7a]);for(let _0x2db7fb=0x0;_0x2db7fb<_0x60817[_0x272361([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2db7fb+=0x2){let _0x192785=window[_0x272361([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x60817[_0x272361([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2db7fb,_0x2db7fb+0x2));_0x192785>=_0x3d808b[_0x272361([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x192785-=_0x3d808b[_0x272361([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x467b68+=_0x3d808b[_0x192785];}return _0x467b68;}function _0x443092(){const _0x449eb0=_0xbaa9ef[_0x272361([0x73,0x70,0x6c,0x69,0x74])](_0x272361([0x2e]));if(0x3!=_0x449eb0[_0x272361([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x266d84(_0x449eb0[0x1]);function _0x266d84(_0x163727){const _0x222016=_0x54e5ff(_0x163727);return _0x222016&&_0x52bda8()?_0x222016:null;function _0x52bda8(){const _0x41cbb4=_0x222016[_0x272361([0x6a,0x74,0x69])],_0x50c78e=window[_0x272361([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41cbb4[_0x272361([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x41cbb4[_0x272361([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x57408d={..._0x222016,[_0x272361([0x6a,0x74,0x69])]:_0x41cbb4[_0x272361([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x41cbb4[_0x272361([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x57408d[_0x272361([0x76,0x63])],_0x11b45d(_0x57408d)==_0x50c78e;}}}async function _0x5b7c72(){let _0x56a5f1=!0x0;try{const _0x463024=_0xbaa9ef[_0x272361([0x73,0x70,0x6c,0x69,0x74])](_0x272361([0x2e])),[_0x4496bf,_0x10ee1f,_0xc30e6d]=_0x463024;return _0x3c9281(_0x4496bf),await _0x27c5b1(_0x4496bf,_0x10ee1f,_0xc30e6d),_0x56a5f1;}catch(_0x22e62b){return!0x1;}function _0x3c9281(_0x553977){const _0x5a2f5e=_0x54e5ff(_0x553977);_0x5a2f5e&&_0x5a2f5e[_0x272361([0x61,0x6c,0x67])]==_0x272361([0x45,0x53,0x32,0x35,0x36])||(_0x56a5f1=!0x1);}async function _0x27c5b1(_0x4dc3c6,_0xe79933,_0x5889ce){const _0x3db953=window[_0x272361([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x272361([0x66,0x72,0x6f,0x6d])](_0x338294(_0x5889ce),_0x217906=>_0x217906[_0x272361([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x210723=new window[(_0x272361([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x272361([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4dc3c6+_0x272361([0x2e])+_0xe79933),_0x5999c5=window[_0x272361([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x272361([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5999c5)return;const _0x16e20f=await _0x5999c5[_0x272361([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x272361([0x6a,0x77,0x6b]),_0x44d8a8,{[_0x272361([0x6e,0x61,0x6d,0x65])]:_0x272361([0x45,0x43,0x44,0x53,0x41]),[_0x272361([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x272361([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x272361([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5999c5[_0x272361([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x272361([0x6e,0x61,0x6d,0x65])]:_0x272361([0x45,0x43,0x44,0x53,0x41]),[_0x272361([0x68,0x61,0x73,0x68])]:{[_0x272361([0x6e,0x61,0x6d,0x65])]:_0x272361([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x16e20f,_0x3db953,_0x210723)||(_0x56a5f1=!0x1);}}function _0x54e5ff(_0x1f1a01){return _0x1f1a01[_0x272361([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x272361([0x65,0x79]))?JSON[_0x272361([0x70,0x61,0x72,0x73,0x65])](_0x338294(_0x1f1a01)):null;}function _0x338294(_0x4e47bc){return window[_0x272361([0x61,0x74,0x6f,0x62])](_0x4e47bc[_0x272361([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x272361([0x2b]))[_0x272361([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x272361([0x2f])));}function _0x11b45d(_0x441b3c){let _0x13f46b=0x1505;function _0x485483(_0x116e92){for(let _0x5beb7d=0x0;_0x5beb7d<_0x116e92[_0x272361([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5beb7d++){const _0x559929=_0x116e92[_0x272361([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5beb7d);_0x13f46b=(_0x13f46b<<0x5)+_0x13f46b+_0x559929,_0x13f46b&=_0x13f46b;}}function _0x4381b1(_0xca6be){Array[_0x272361([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xca6be)?_0xca6be[_0x272361([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4381b1):_0xca6be&&typeof _0xca6be==_0x272361([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x272361([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xca6be)[_0x272361([0x73,0x6f,0x72,0x74])]()[_0x272361([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x623c9f,_0x5b3c00])=>{_0x485483(_0x623c9f),_0x4381b1(_0x5b3c00);}):_0x485483(window[_0x272361([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xca6be));}return _0x4381b1(_0x441b3c),_0x13f46b>>>0x0;}function _0x403bdf(_0x122cf7){return _0x122cf7[_0x272361([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x272361([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x272361([0x30]));}function _0x18ec53(_0x5c5f69){return _0x5c5f69[_0x272361([0x73,0x70,0x6c,0x69,0x74])]('')[_0x272361([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x272361([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a1ad0(){}function _0x272361(_0x2f3479){const _0x1c5b1a=_0x26be;return _0x2f3479[_0x1c5b1a(0x1a3)](_0x2adfb7=>String[_0x1c5b1a(0x1b6)](_0x2adfb7))[_0x1c5b1a(0x1b9)]('');}_0x3e578d(await _0x43fa92());}(this);}[_0x294fa8(0x1d2)](){const _0x3db2b6=_0x294fa8,_0x3b0acf=this[_0x3db2b6(0x1d5)][_0x3db2b6(0x1bb)][_0x3db2b6(0x1d8)];_0x3b0acf[_0x3db2b6(0x1d6)](_0x3db2b6(0x1b5))&&_0x3b0acf[_0x3db2b6(0x19c)](_0x3db2b6(0x1b5),{'allowAttributes':[_0x3db2b6(0x195)]}),_0x3b0acf[_0x3db2b6(0x1d6)](_0x3db2b6(0x1c5))&&_0x3b0acf[_0x3db2b6(0x19c)](_0x3db2b6(0x1c5),{'allowAttributes':[_0x3db2b6(0x195)]});}[_0x294fa8(0x1c7)](){const _0x1199fe=_0x294fa8,_0x50ed4f=this[_0x1199fe(0x1d5)];_0x50ed4f[_0x1199fe(0x1da)][_0x1199fe(0x1c9)](_0x1199fe(0x19a))[_0x1199fe(0x1a6)]({'model':_0x1199fe(0x195),'view':_0x1199fe(0x1a4)}),_0x50ed4f[_0x1199fe(0x1da)][_0x1199fe(0x1c9)](_0x1199fe(0x1a2))[_0x1199fe(0x1e4)]({'model':{'key':_0x1199fe(0x195),'value':_0x52f3b9=>_0x52f3b9[_0x1199fe(0x1d9)](_0x1199fe(0x1a4))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5f2a0f=_0x50ed4f[_0x1199fe(0x1a7)][_0x1199fe(0x1a5)](_0x1199fe(0x1ab));_0x5f2a0f&&this[_0x1199fe(0x1ce)](_0x5f2a0f,_0x1199fe(0x196),(_0x267074,[_0x498fd5,_0x19b5ac])=>{const _0x172a54=_0x1199fe;_0x498fd5[_0x172a54(0x1d1)](_0x172a54(0x195),_0x19b5ac);});}[_0x294fa8(0x198)](){const _0x2dd71a=_0x294fa8,_0x5dc327=this[_0x2dd71a(0x1d5)][_0x2dd71a(0x19b)][_0x2dd71a(0x1a5)](_0x2dd71a(0x1a1))||{},_0x31ee62=this[_0x2dd71a(0x1d5)][_0x2dd71a(0x19b)][_0x2dd71a(0x1a5)](_0x2dd71a(0x199))||'';this[_0x2dd71a(0x19f)]=_0x519d94(_0x7a6a50[_0x2dd71a(0x1a0)],_0x2dd71a(0x1cb),{..._0x5dc327,'pubkey':_0x31ee62,'ctx-name':_0x2dd71a(0x1ca),'sourceList':'','imgOnly':_0x2dd71a(0x197),'removeCopyright':_0x2dd71a(0x197),'localeName':this[_0x2dd71a(0x1d5)][_0x2dd71a(0x1b2)][_0x2dd71a(0x1b0)],'externalSourcesEmbedCss':_0x2dd71a(0x1aa)}),this[_0x2dd71a(0x19f)][_0x2dd71a(0x1b1)]=_0x59582f=>{const _0x353dae=_0x2dd71a;if(_0x353dae(0x1e0)==_0x59582f)return _0x353dae(0x1c1);},_0x7a6a50[_0x2dd71a(0x1a0)][_0x2dd71a(0x1e8)][_0x2dd71a(0x1cd)](this[_0x2dd71a(0x19f)]);}[_0x294fa8(0x1ae)](){const _0xb64ee3=_0x294fa8;this[_0xb64ee3(0x1d4)]=_0x519d94(_0x7a6a50[_0xb64ee3(0x1a0)],_0xb64ee3(0x1e1),{'ctx-name':_0xb64ee3(0x1ca)}),_0x7a6a50[_0xb64ee3(0x1a0)][_0xb64ee3(0x1e8)][_0xb64ee3(0x1cd)](this[_0xb64ee3(0x1d4)]);}[_0x294fa8(0x1ad)](){const _0x2055a3=_0x294fa8,_0x5b9725=this[_0x2055a3(0x1d5)][_0x2055a3(0x1a7)][_0x2055a3(0x1a5)](_0x2055a3(0x1b3));_0x5b9725&&this[_0x2055a3(0x1ce)](_0x5b9725,_0x2055a3(0x1ac),()=>{const _0x1101a3=_0x2055a3,_0x40077e=this[_0x1101a3(0x1d5)][_0x1101a3(0x1bb)][_0x1101a3(0x1a0)][_0x1101a3(0x1c8)][_0x1101a3(0x1a9)]();_0x40077e&&_0x40077e[_0x1101a3(0x1d9)](_0x1101a3(0x195))&&this[_0x1101a3(0x1d5)][_0x1101a3(0x1e9)][_0x1101a3(0x1b7)][_0x1101a3(0x1e3)](_0x1101a3(0x1be),()=>{const _0x41de32=_0x1101a3;_0x3fa925(this[_0x41de32(0x1d5)],_0x40077e);});});const _0x546056=this[_0x2055a3(0x1d5)][_0x2055a3(0x1a7)][_0x2055a3(0x1a5)](_0x2055a3(0x1bc));_0x546056&&this[_0x2055a3(0x1ce)](_0x546056,_0x2055a3(0x1ac),()=>{const _0x14981e=_0x2055a3,_0x490c6a=this[_0x14981e(0x1d5)][_0x14981e(0x1bb)][_0x14981e(0x1a0)][_0x14981e(0x1c8)][_0x14981e(0x1a9)]();_0x490c6a&&_0x490c6a[_0x14981e(0x1d9)](_0x14981e(0x195))&&this[_0x14981e(0x1d5)][_0x14981e(0x1e9)][_0x14981e(0x1b7)][_0x14981e(0x1e3)](_0x14981e(0x1be),()=>{const _0x321330=_0x14981e;_0x3fa925(this[_0x321330(0x1d5)],_0x490c6a);});});}}
|
|
23
|
+
const _0x328254=_0x2ebf;(function(_0x5f4920,_0x37c495){const _0x2c0c7c=_0x2ebf,_0x224f06=_0x5f4920();while(!![]){try{const _0x486358=-parseInt(_0x2c0c7c(0x177))/0x1*(-parseInt(_0x2c0c7c(0x172))/0x2)+-parseInt(_0x2c0c7c(0x17e))/0x3+-parseInt(_0x2c0c7c(0x167))/0x4*(-parseInt(_0x2c0c7c(0x1a3))/0x5)+-parseInt(_0x2c0c7c(0x182))/0x6+parseInt(_0x2c0c7c(0x181))/0x7*(parseInt(_0x2c0c7c(0x18c))/0x8)+-parseInt(_0x2c0c7c(0x1a2))/0x9*(parseInt(_0x2c0c7c(0x183))/0xa)+parseInt(_0x2c0c7c(0x1ac))/0xb;if(_0x486358===_0x37c495)break;else _0x224f06['push'](_0x224f06['shift']());}catch(_0x2b492e){_0x224f06['push'](_0x224f06['shift']());}}}(_0x2c6f,0x84f34));import{Plugin as _0xfc3de}from'ckeditor5/src/core.js';import{Dialog as _0x3ee0ad}from'ckeditor5/src/ui.js';import{createElement as _0x51d75b,global as _0x35ad4d,uid as _0x365838}from'ckeditor5/src/utils.js';function _0x2c6f(){const _0x54d711=['replaceImageSource','uc-upload-ctx-provider','136wEPZlU','for','_configElement','true','elementToAttribute','7432IkzUKd','uploadcare.pubkey','data-uc-image-id','ctxElement','closeMax','getSelectedElement','pluginName','1500741vFIQkW','\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','map','188867hSIcIX','1775514pgDjzD','2060DVMwzZ','_initImageProcessingIndicator','_ctxElement','fromCharCode','extend','schema','listenTo','cleanupImage','PictureEditing','56wkAmgl','editing','contentLanguage','document','config','attributeToAttribute','input[uploadcare-file-input]','isPremiumPlugin','render','iconHrefResolver','execute','querySelector','conversion','uploadcare.uploader','isRegistered','downcast','_initConfig','uploadcareImageId','locale','appendChild','imageInline','remove','20196fvAJtL','2745ifTZrp','_initConversion','destroy','imageBlock','insertImage','init','afterInit','model','get','3029059dfDGRz','uploadcare','requires','href','commands','UploadcareEditing','_initSchema','add','getAttribute','editor','upcast','uploadcareImageReplace','once','uc-config','view','configElement','6072yFuyzl','removeAttribute','selection','join','_initCtx','body','#uc-icon-arrow-down','isOfficialPlugin','uploader'];_0x2c6f=function(){return _0x54d711;};return _0x2c6f();}import _0x82864c from'./uploadcarecommand.js';import _0x4c2dd1 from'./uploadcareuploadadapter.js';function _0x2ebf(_0x3a8fe0,_0x6556c5){const _0x2c6f74=_0x2c6f();return _0x2ebf=function(_0x2ebff5,_0x2fd22c){_0x2ebff5=_0x2ebff5-0x165;let _0x448cad=_0x2c6f74[_0x2ebff5];return _0x448cad;},_0x2ebf(_0x3a8fe0,_0x6556c5);}import{showImageProcessingIndicator as _0x494ce5}from'./utils/editingutils.js';export default class i extends _0xfc3de{[_0x328254(0x174)]=null;[_0x328254(0x185)]=null;static get[_0x328254(0x17d)](){const _0x28fb46=_0x328254;return _0x28fb46(0x1b1);}static get[_0x328254(0x1ae)](){const _0x4c6156=_0x328254;return[_0x4c6156(0x18b),_0x4c2dd1,_0x3ee0ad];}static get[_0x328254(0x16e)](){return!0x0;}static get[_0x328254(0x193)](){return!0x0;}get[_0x328254(0x166)](){const _0xa9fb96=_0x328254;return this[_0xa9fb96(0x174)];}get[_0x328254(0x17a)](){const _0x6be261=_0x328254;return this[_0x6be261(0x185)];}[_0x328254(0x1a8)](){const _0x451fd2=_0x328254,_0x4ad7f9=this[_0x451fd2(0x1b5)];_0x4ad7f9[_0x451fd2(0x1b0)][_0x451fd2(0x1b3)](_0x451fd2(0x1ad),new _0x82864c(_0x4ad7f9));}[_0x328254(0x1a9)](){const _0x14126e=_0x328254;this[_0x14126e(0x1b2)](),this[_0x14126e(0x1a4)](),this[_0x14126e(0x19c)](),this[_0x14126e(0x16b)](),this[_0x14126e(0x184)](),this[_0x14126e(0x189)](this[_0x14126e(0x1b5)],_0x14126e(0x1a5),()=>{const _0x2f2da4=_0x14126e;this[_0x2f2da4(0x174)]&&(this[_0x2f2da4(0x174)][_0x2f2da4(0x1a1)](),this[_0x2f2da4(0x174)]=null),this[_0x2f2da4(0x185)]&&(this[_0x2f2da4(0x185)][_0x2f2da4(0x1a1)](),this[_0x2f2da4(0x185)]=null);const _0x2b0ef7=_0x35ad4d[_0x2f2da4(0x18f)][_0x2f2da4(0x197)](_0x2f2da4(0x192));_0x2b0ef7&&_0x2b0ef7[_0x2f2da4(0x1a1)]();}),async function(_0x49fc82){const _0x1cdd0d=_0x89a55a([0x33,0x30,0x50,0x59,0x7a,0x6d,0x74,0x67,0x44,0x62,0x73,0x35,0x47,0x6e,0x38,0x43,0x69,0x72,0x6c,0x4c,0x52,0x37,0x70,0x31,0x4e,0x68,0x39,0x4a,0x61,0x55,0x42,0x76,0x41,0x4d,0x63,0x34,0x78,0x49,0x56,0x57,0x64,0x46,0x58,0x32,0x71,0x51,0x4b,0x6f,0x36,0x75,0x6b,0x79,0x48,0x54,0x5a,0x65,0x66,0x53,0x77,0x6a,0x45,0x4f]),_0x398268=0x29f543d8,_0x4194ed=0x29f22618^_0x398268,_0x5dda12=window[_0x89a55a([0x44,0x61,0x74,0x65])][_0x89a55a([0x6e,0x6f,0x77])](),_0x31ad55=_0x49fc82[_0x89a55a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3c049b=new window[(_0x89a55a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x458bd9=>{_0x31ad55[_0x89a55a([0x6f,0x6e,0x63,0x65])](_0x89a55a([0x72,0x65,0x61,0x64,0x79]),_0x458bd9);}),_0x5d838c={[_0x89a55a([0x6b,0x74,0x79])]:_0x89a55a([0x45,0x43]),[_0x89a55a([0x75,0x73,0x65])]:_0x89a55a([0x73,0x69,0x67]),[_0x89a55a([0x63,0x72,0x76])]:_0x89a55a([0x50,0x2d,0x32,0x35,0x36]),[_0x89a55a([0x78])]:_0x89a55a([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]),[_0x89a55a([0x79])]:_0x89a55a([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]),[_0x89a55a([0x61,0x6c,0x67])]:_0x89a55a([0x45,0x53,0x32,0x35,0x36])},_0x5b07fc=_0x31ad55[_0x89a55a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x89a55a([0x67,0x65,0x74])](_0x89a55a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2e21f2(){let _0x55acd6,_0x5dba2b=null,_0x1a04a0=null;try{if(_0x5b07fc==_0x89a55a([0x47,0x50,0x4c]))return _0x89a55a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x55acd6=_0x5b2db3(),!_0x55acd6)return _0x89a55a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x55acd6[_0x89a55a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1a04a0=_0x1c9424(_0x55acd6[_0x89a55a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x55acd6[_0x89a55a([0x6a,0x74,0x69])])),await _0x8aa7d4()?_0x3e9ef8()?_0x5bea81()?_0x89a55a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xf9b64b()?(_0x55acd6[_0x89a55a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x89a55a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5dba2b=_0x435d29(_0x89a55a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x55acd6[_0x89a55a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x89a55a([0x74,0x72,0x69,0x61,0x6c])&&(_0x5dba2b=_0x435d29(_0x89a55a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2d2c31()):_0x89a55a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x89a55a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x89a55a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x9c6c59){return _0x89a55a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5bea81(){const _0x304a76=[_0x89a55a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x89a55a([0x74,0x72,0x69,0x61,0x6c])][_0x89a55a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55acd6[_0x89a55a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5dda12/0x3e8:0xe10*_0x4194ed;return _0x55acd6[_0x89a55a([0x65,0x78,0x70])]<_0x304a76;}function _0x3e9ef8(){const _0x1b387a=_0x55acd6[_0x89a55a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b387a&&(!!_0x1b387a[_0x89a55a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x89a55a([0x2a]))||!!_0x1b387a[_0x89a55a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x89a55a([0x55,0x50,0x4c,0x43])));}function _0xf9b64b(){const _0x40fbc3=_0x2ebf,_0x24c5d9=_0x55acd6[_0x89a55a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x24c5d9||0x0==_0x24c5d9[_0x89a55a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3319ec}=new URL(window[_0x89a55a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x40fbc3(0x1af)]);if(_0x24c5d9[_0x89a55a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3319ec))return!0x0;const _0x3d89e=_0x3319ec[_0x89a55a([0x73,0x70,0x6c,0x69,0x74])](_0x89a55a([0x2e]));return _0x24c5d9[_0x89a55a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x496c54=>_0x496c54[_0x89a55a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x89a55a([0x2a])))[_0x89a55a([0x6d,0x61,0x70])](_0x44c219=>_0x44c219[_0x89a55a([0x73,0x70,0x6c,0x69,0x74])](_0x89a55a([0x2e])))[_0x89a55a([0x73,0x6f,0x6d,0x65])](_0x5a2546=>_0x3d89e[_0x89a55a([0x65,0x76,0x65,0x72,0x79])]((_0x3ecd89,_0x126803)=>_0x5a2546[_0x126803]===_0x3ecd89||_0x5a2546[_0x126803]===_0x89a55a([0x2a])));}function _0x2d2c31(){return _0x5dba2b&&_0x1a04a0?new window[(_0x89a55a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13cf22,_0x5ad264)=>{_0x5dba2b[_0x89a55a([0x74,0x68,0x65,0x6e])](_0x13cf22,_0x5ad264),_0x1a04a0[_0x89a55a([0x74,0x68,0x65,0x6e])](_0x3c3f31=>{_0x3c3f31!=_0x89a55a([0x56,0x61,0x6c,0x69,0x64])&&_0x13cf22(_0x3c3f31);},_0x5ad264);}):_0x5dba2b||_0x1a04a0||_0x89a55a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c9424(_0x5c56da,_0x5205dd){return new window[(_0x89a55a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c0092=>{if(_0x259f42())return _0x1c0092(_0x89a55a([0x56,0x61,0x6c,0x69,0x64]));_0x5852e4(),_0x31ad55[_0x89a55a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x89a55a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x274ab9=!0x1;const _0x1b2ca3=_0x365838();function _0x3cdcc4(_0x271c91){return!!_0x271c91&&(typeof _0x271c91===_0x89a55a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x271c91===_0x89a55a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x271c91[_0x89a55a([0x74,0x68,0x65,0x6e])]===_0x89a55a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x271c91[_0x89a55a([0x63,0x61,0x74,0x63,0x68])]===_0x89a55a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x220ae6(_0x3e0cd9){_0x282eff(_0x3e0cd9)[_0x89a55a([0x74,0x68,0x65,0x6e])](_0x4e1db0=>{if(!_0x4e1db0||_0x4e1db0[_0x89a55a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x89a55a([0x6f,0x6b]))return _0x89a55a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x529c23(_0xf48478(_0x1b2ca3+_0x5205dd))!=_0x4e1db0[_0x89a55a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x89a55a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x89a55a([0x56,0x61,0x6c,0x69,0x64]);})[_0x89a55a([0x74,0x68,0x65,0x6e])](_0x37716c=>(_0x594ae5(),_0x37716c),()=>{const _0x1fb2fc=_0x210835();return null==_0x1fb2fc?(_0x594ae5(),_0x89a55a([0x56,0x61,0x6c,0x69,0x64])):_0x89a55a(_0x5dda12-_0x1fb2fc>(0xdf9c7d8^_0x398268)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x89a55a([0x74,0x68,0x65,0x6e])](_0x1c0092)[_0x89a55a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1c0092(_0x89a55a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b80ba=0x29c3ad58^_0x398268;function _0x594ae5(){const _0x453a58=_0x89a55a([0x6c,0x6c,0x63,0x74,0x2d])+_0x529c23(_0xf48478(_0x5c56da)),_0x4ef5ad=_0x5ec02e(_0x529c23(window[_0x89a55a([0x4d,0x61,0x74,0x68])][_0x89a55a([0x63,0x65,0x69,0x6c])](_0x5dda12/_0x3b80ba)));window[_0x89a55a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x89a55a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x453a58,_0x4ef5ad);}function _0x210835(){const _0x1fa044=_0x89a55a([0x6c,0x6c,0x63,0x74,0x2d])+_0x529c23(_0xf48478(_0x5c56da)),_0x54f374=window[_0x89a55a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x89a55a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1fa044);return _0x54f374?window[_0x89a55a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ec02e(_0x54f374),0x10)*_0x3b80ba:null;}function _0x282eff(_0x3a8463){return new window[(_0x89a55a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26e6fe,_0x1e9e10)=>{_0x3a8463[_0x89a55a([0x74,0x68,0x65,0x6e])](_0x26e6fe,_0x1e9e10),window[_0x89a55a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e9e10,0x29f49718^_0x398268);});}}_0x31ad55[_0x89a55a([0x6f,0x6e])](_0x89a55a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x501a97,_0x989857)=>{if(_0x989857[0x0]!=_0x5c56da)return _0x1c0092(_0x89a55a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x989857[0x1]={..._0x989857[0x1],[_0x89a55a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b2ca3};},{[_0x89a55a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x89a55a([0x68,0x69,0x67,0x68])}),_0x31ad55[_0x89a55a([0x6f,0x6e])](_0x89a55a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f8370=>{_0x3cdcc4(_0x4f8370[_0x89a55a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x274ab9=!0x0,_0x220ae6(_0x4f8370[_0x89a55a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x89a55a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x89a55a([0x6c,0x6f,0x77])}),_0x3c049b[_0x89a55a([0x74,0x68,0x65,0x6e])](()=>{_0x274ab9||_0x1c0092(_0x89a55a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x259f42(){return _0x31ad55[_0x89a55a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x89a55a([0x76,0x69,0x65,0x77])][_0x89a55a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x89a55a([0x61,0x75,0x74,0x6f]);}function _0x5852e4(){_0x31ad55[_0x89a55a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x89a55a([0x76,0x69,0x65,0x77])][_0x89a55a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x89a55a([0x61,0x75,0x74,0x6f]);}}function _0x435d29(_0x4fd153){const _0x5f48e0=[new window[(_0x89a55a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x271856=>setTimeout(_0x271856,0x29fc7d14^_0x398268)),_0x3c049b[_0x89a55a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x89a55a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3add48=>{let _0x4cfe52=0x0;_0x31ad55[_0x89a55a([0x6d,0x6f,0x64,0x65,0x6c])][_0x89a55a([0x6f,0x6e])](_0x89a55a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x53647d,_0x21fc7a)=>{_0x21fc7a[0x0][_0x89a55a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4cfe52++,_0x4cfe52==(0x29f54220^_0x398268)&&(_0x3add48(),_0x53647d[_0x89a55a([0x6f,0x66,0x66])]());});}))];return window[_0x89a55a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x89a55a([0x72,0x61,0x63,0x65])](_0x5f48e0)[_0x89a55a([0x74,0x68,0x65,0x6e])](()=>_0x4fd153);}async function _0x95b71e(){await _0x3c049b,_0x31ad55[_0x89a55a([0x6d,0x6f,0x64,0x65,0x6c])][_0x89a55a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x126ca4,_0x31ad55[_0x89a55a([0x6d,0x6f,0x64,0x65,0x6c])][_0x89a55a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x126ca4,_0x31ad55[_0x89a55a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x89a55a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x15b52e(_0x52f712){const _0x335d4b=_0x5691a7();_0x31ad55[_0x335d4b]=_0x89a55a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x52f712,_0x52f712!=_0x89a55a([0x56,0x61,0x6c,0x69,0x64])&&_0x95b71e();}function _0x5691a7(){const _0x44ad78=window[_0x89a55a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x89a55a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x89a55a([0x6e,0x6f,0x77])]())[_0x89a55a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x89a55a([0x2e]),'');let _0x3c4f76=_0x89a55a([0x50]);for(let _0x33bf0e=0x0;_0x33bf0e<_0x44ad78[_0x89a55a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33bf0e+=0x2){let _0x1d507b=window[_0x89a55a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44ad78[_0x89a55a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33bf0e,_0x33bf0e+0x2));_0x1d507b>=_0x1cdd0d[_0x89a55a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1d507b-=_0x1cdd0d[_0x89a55a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c4f76+=_0x1cdd0d[_0x1d507b];}return _0x3c4f76;}function _0x5b2db3(){const _0x4be815=_0x5b07fc[_0x89a55a([0x73,0x70,0x6c,0x69,0x74])](_0x89a55a([0x2e]));if(0x3!=_0x4be815[_0x89a55a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1cb6af(_0x4be815[0x1]);function _0x1cb6af(_0x2b4597){const _0x4f2b9e=_0x2ff693(_0x2b4597);return _0x4f2b9e&&_0x21be7c()?_0x4f2b9e:null;function _0x21be7c(){const _0x4a4bc4=_0x4f2b9e[_0x89a55a([0x6a,0x74,0x69])],_0x569238=window[_0x89a55a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a4bc4[_0x89a55a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a4bc4[_0x89a55a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x382883={..._0x4f2b9e,[_0x89a55a([0x6a,0x74,0x69])]:_0x4a4bc4[_0x89a55a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a4bc4[_0x89a55a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x382883[_0x89a55a([0x76,0x63])],_0xf48478(_0x382883)==_0x569238;}}}async function _0x8aa7d4(){let _0x155c25=!0x0;try{const _0x553cd5=_0x5b07fc[_0x89a55a([0x73,0x70,0x6c,0x69,0x74])](_0x89a55a([0x2e])),[_0x38b226,_0x195cbc,_0x45b498]=_0x553cd5;return _0x1b6871(_0x38b226),await _0x3b00cc(_0x38b226,_0x195cbc,_0x45b498),_0x155c25;}catch(_0x55e12f){return!0x1;}function _0x1b6871(_0x362286){const _0x2b918a=_0x2ff693(_0x362286);_0x2b918a&&_0x2b918a[_0x89a55a([0x61,0x6c,0x67])]==_0x89a55a([0x45,0x53,0x32,0x35,0x36])||(_0x155c25=!0x1);}async function _0x3b00cc(_0x3e35ca,_0x20b411,_0x104d9a){const _0x282b83=window[_0x89a55a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x89a55a([0x66,0x72,0x6f,0x6d])](_0x87e5d3(_0x104d9a),_0x1e727f=>_0x1e727f[_0x89a55a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3dfe95=new window[(_0x89a55a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x89a55a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3e35ca+_0x89a55a([0x2e])+_0x20b411),_0x57a6fd=window[_0x89a55a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x89a55a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x57a6fd)return;const _0x4fe084=await _0x57a6fd[_0x89a55a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x89a55a([0x6a,0x77,0x6b]),_0x5d838c,{[_0x89a55a([0x6e,0x61,0x6d,0x65])]:_0x89a55a([0x45,0x43,0x44,0x53,0x41]),[_0x89a55a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x89a55a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x89a55a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x57a6fd[_0x89a55a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x89a55a([0x6e,0x61,0x6d,0x65])]:_0x89a55a([0x45,0x43,0x44,0x53,0x41]),[_0x89a55a([0x68,0x61,0x73,0x68])]:{[_0x89a55a([0x6e,0x61,0x6d,0x65])]:_0x89a55a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4fe084,_0x282b83,_0x3dfe95)||(_0x155c25=!0x1);}}function _0x2ff693(_0x311009){return _0x311009[_0x89a55a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x89a55a([0x65,0x79]))?JSON[_0x89a55a([0x70,0x61,0x72,0x73,0x65])](_0x87e5d3(_0x311009)):null;}function _0x87e5d3(_0x2cf30c){return window[_0x89a55a([0x61,0x74,0x6f,0x62])](_0x2cf30c[_0x89a55a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x89a55a([0x2b]))[_0x89a55a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x89a55a([0x2f])));}function _0xf48478(_0x1ae62e){let _0x3fa664=0x1505;function _0x92b0cc(_0xdc2c85){for(let _0xf08c2=0x0;_0xf08c2<_0xdc2c85[_0x89a55a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf08c2++){const _0x3254c=_0xdc2c85[_0x89a55a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xf08c2);_0x3fa664=(_0x3fa664<<0x5)+_0x3fa664+_0x3254c,_0x3fa664&=_0x3fa664;}}function _0x1a335b(_0x3c6683){Array[_0x89a55a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c6683)?_0x3c6683[_0x89a55a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a335b):_0x3c6683&&typeof _0x3c6683==_0x89a55a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x89a55a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c6683)[_0x89a55a([0x73,0x6f,0x72,0x74])]()[_0x89a55a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x145572,_0xa4cdbc])=>{_0x92b0cc(_0x145572),_0x1a335b(_0xa4cdbc);}):_0x92b0cc(window[_0x89a55a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c6683));}return _0x1a335b(_0x1ae62e),_0x3fa664>>>0x0;}function _0x529c23(_0x4c10c3){return _0x4c10c3[_0x89a55a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x89a55a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x89a55a([0x30]));}function _0x5ec02e(_0x500f76){return _0x500f76[_0x89a55a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x89a55a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x89a55a([0x6a,0x6f,0x69,0x6e])]('');}function _0x126ca4(){}function _0x89a55a(_0x9be401){const _0x19d7af=_0x2ebf;return _0x9be401[_0x19d7af(0x180)](_0x3d8c0b=>String[_0x19d7af(0x186)](_0x3d8c0b))[_0x19d7af(0x16a)]('');}_0x15b52e(await _0x2e21f2());}(this);}[_0x328254(0x1b2)](){const _0x2f218d=_0x328254,_0x4fd163=this[_0x2f218d(0x1b5)][_0x2f218d(0x1aa)][_0x2f218d(0x188)];_0x4fd163[_0x2f218d(0x19a)](_0x2f218d(0x1a6))&&_0x4fd163[_0x2f218d(0x187)](_0x2f218d(0x1a6),{'allowAttributes':[_0x2f218d(0x19d)]}),_0x4fd163[_0x2f218d(0x19a)](_0x2f218d(0x1a0))&&_0x4fd163[_0x2f218d(0x187)](_0x2f218d(0x1a0),{'allowAttributes':[_0x2f218d(0x19d)]});}[_0x328254(0x1a4)](){const _0x1e73fd=_0x328254,_0x29bd8a=this[_0x1e73fd(0x1b5)];_0x29bd8a[_0x1e73fd(0x198)][_0x1e73fd(0x173)](_0x1e73fd(0x19b))[_0x1e73fd(0x191)]({'model':_0x1e73fd(0x19d),'view':_0x1e73fd(0x179)}),_0x29bd8a[_0x1e73fd(0x198)][_0x1e73fd(0x173)](_0x1e73fd(0x1b6))[_0x1e73fd(0x176)]({'model':{'key':_0x1e73fd(0x19d),'value':_0x58a650=>_0x58a650[_0x1e73fd(0x1b4)](_0x1e73fd(0x179))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3ba77f=_0x29bd8a[_0x1e73fd(0x1b0)][_0x1e73fd(0x1ab)](_0x1e73fd(0x170));_0x3ba77f&&this[_0x1e73fd(0x189)](_0x3ba77f,_0x1e73fd(0x18a),(_0x5cd928,[_0x2b3184,_0x1f1c53])=>{const _0x38c5d3=_0x1e73fd;_0x2b3184[_0x38c5d3(0x168)](_0x38c5d3(0x19d),_0x1f1c53);});}[_0x328254(0x19c)](){const _0x432d8e=_0x328254,_0x2a5746=this[_0x432d8e(0x1b5)][_0x432d8e(0x190)][_0x432d8e(0x1ab)](_0x432d8e(0x199))||{},_0x521ecc=this[_0x432d8e(0x1b5)][_0x432d8e(0x190)][_0x432d8e(0x1ab)](_0x432d8e(0x178))||'';this[_0x432d8e(0x174)]=_0x51d75b(_0x35ad4d[_0x432d8e(0x18f)],_0x432d8e(0x1b9),{..._0x2a5746,'pubkey':_0x521ecc,'ctx-name':_0x432d8e(0x16f),'sourceList':'','imgOnly':_0x432d8e(0x175),'removeCopyright':_0x432d8e(0x175),'localeName':this[_0x432d8e(0x1b5)][_0x432d8e(0x19e)][_0x432d8e(0x18e)],'externalSourcesEmbedCss':_0x432d8e(0x17f)}),this[_0x432d8e(0x174)][_0x432d8e(0x195)]=_0x2049f3=>{const _0x511067=_0x432d8e;if(_0x511067(0x17b)==_0x2049f3)return _0x511067(0x16d);},_0x35ad4d[_0x432d8e(0x18f)][_0x432d8e(0x16c)][_0x432d8e(0x19f)](this[_0x432d8e(0x174)]);}[_0x328254(0x16b)](){const _0x38dce6=_0x328254;this[_0x38dce6(0x185)]=_0x51d75b(_0x35ad4d[_0x38dce6(0x18f)],_0x38dce6(0x171),{'ctx-name':_0x38dce6(0x16f)}),_0x35ad4d[_0x38dce6(0x18f)][_0x38dce6(0x16c)][_0x38dce6(0x19f)](this[_0x38dce6(0x185)]);}[_0x328254(0x184)](){const _0x355367=_0x328254,_0x43e518=this[_0x355367(0x1b5)][_0x355367(0x1b0)][_0x355367(0x1ab)](_0x355367(0x1a7));_0x43e518&&this[_0x355367(0x189)](_0x43e518,_0x355367(0x196),()=>{const _0x2170ad=_0x355367,_0x29062a=this[_0x2170ad(0x1b5)][_0x2170ad(0x1aa)][_0x2170ad(0x18f)][_0x2170ad(0x169)][_0x2170ad(0x17c)]();_0x29062a&&_0x29062a[_0x2170ad(0x1b4)](_0x2170ad(0x19d))&&this[_0x2170ad(0x1b5)][_0x2170ad(0x18d)][_0x2170ad(0x165)][_0x2170ad(0x1b8)](_0x2170ad(0x194),()=>{const _0x5a58ba=_0x2170ad;_0x494ce5(this[_0x5a58ba(0x1b5)],_0x29062a);});});const _0x41d213=this[_0x355367(0x1b5)][_0x355367(0x1b0)][_0x355367(0x1ab)](_0x355367(0x1b7));_0x41d213&&this[_0x355367(0x189)](_0x41d213,_0x355367(0x196),()=>{const _0x2c953b=_0x355367,_0x3d6948=this[_0x2c953b(0x1b5)][_0x2c953b(0x1aa)][_0x2c953b(0x18f)][_0x2c953b(0x169)][_0x2c953b(0x17c)]();_0x3d6948&&_0x3d6948[_0x2c953b(0x1b4)](_0x2c953b(0x19d))&&this[_0x2c953b(0x1b5)][_0x2c953b(0x18d)][_0x2c953b(0x165)][_0x2c953b(0x1b8)](_0x2c953b(0x194),()=>{const _0x4243ee=_0x2c953b;_0x494ce5(this[_0x4243ee(0x1b5)],_0x3d6948);});});}}
|