@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250405.0 → 0.0.0-nightly-20250406.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 _0x3821fe,Command as _0x2599c5}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1e56a0,IconGooglePhotos as _0x462ccb,IconGoogleDrive as _0x49dc0b,IconFacebook as _0x363a91,IconDropbox as _0x56493e,IconUploadcareLink as _0x389ca9,IconUploadcareImageUpload as _0x37d42b,IconError as et,IconUploadcareImageEdit as _0x2ed8e7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x10db66,MenuBarMenuListItemButtonView as _0x247083,View as _0x4f2214,FocusCycler as _0x48036d,Dialog as _0x331fd4,DialogViewPosition as _0x3cdd97,SpinnerView as _0x30566d,IconView as at,Notification as _0x2f4b79}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xcd8aa2,DomEmitterMixin as _0xe46be2,global as _0x3aee88,getAncestors as _0x232906,ObservableMixin as _0x1186de,createElement as _0x4d9f06,uid as _0x773cde}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x56015f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4b9161,info as _0x5ae453}from'@uploadcare/upload-client';import*as _0x3c93ea from'@uploadcare/file-uploader';var o=function(_0x47b711){return _0x47b711['Local']='local',_0x47b711['URL']='url',_0x47b711['Dropbox']='dropbox',_0x47b711['GDrive']='gdrive',_0x47b711['Facebook']='facebook',_0x47b711['GPhotos']='gphotos',_0x47b711['OneDrive']='onedrive',_0x47b711;}({});function _(_0x1ba111,_0x1526a6,_0x4f9edf){const t=_0x1ba111['t'],_0x1c7790=_0x1ba111['t'];switch(_0x1526a6){case o['Local']:return{'text':_0x1c7790('Insert'===_0x4f9edf?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1c7790('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x4f9edf?_0x1c7790('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1c7790('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x4f9edf?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x4f9edf?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x4f9edf?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x4f9edf?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x4f9edf?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1526a6;}}class e extends _0x3821fe{['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 _0x23d3d4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x382b94;for(const _0x29df61 in _0x23d3d4){const _0x95bcd8=_0x29df61,_0x4262a8=_0x23d3d4[_0x95bcd8];if('uploadcareLicenseKeyValid'==_0x4262a8||'uploadcareLicenseKeyInvalid'==_0x4262a8||'uploadcareLicenseKeyExpired'==_0x4262a8||'uploadcareLicenseKeyDomainLimit'==_0x4262a8||'uploadcareLicenseKeyNotAllowed'==_0x4262a8||'uploadcareLicenseKeyEvaluationLimit'==_0x4262a8||'uploadcareLicenseKeyTrialLimit'==_0x4262a8||'uploadcareLicenseKeyUsageLimit'==_0x4262a8){delete _0x23d3d4[_0x95bcd8],_0x382b94=_0x4262a8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x382b94&&_0x23d3d4['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x382b94&&_0x23d3d4['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x382b94&&_0x23d3d4['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x382b94&&_0x23d3d4['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x382b94&&_0x23d3d4['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x382b94&&_0x23d3d4['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x382b94&&_0x23d3d4['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x418d97}=this,_0x207e7f=_0x418d97['commands']['get']('uploadcare');if(!_0x207e7f)return;const _0xdf95d1=this['_normalizeConfigSourceList'](_0x418d97['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x41e37e,_0x311b60)=>{const _0x2ed41b=this['_getIntegrationKey'](_0x311b60['type']);return _0x41e37e[_0x2ed41b]||(_0x41e37e[_0x2ed41b]=[]),_0x41e37e[_0x2ed41b]['push'](_0x311b60),_0x41e37e;},{});_0x418d97['plugins']['has']('ImageInsertUI')&&_0x418d97['commands']['get']('uploadcare')&&Object['entries'](_0xdf95d1)['forEach'](([_0x318e2a,_0x47a71f])=>{_0x418d97['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x318e2a,'observable':()=>_0x207e7f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x47a71f),'formViewCreator':()=>this['_createDropdownButtons'](_0x47a71f),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x47a71f),'override':'assetManager'!==_0x318e2a});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3ec817){const {locale:_0x3078c0}=this['editor'];return _0x3ec817['map'](_0x39ead8=>{const _0x3a5854=_(_0x3078c0,_0x39ead8,'Insert');switch(_0x39ead8){case o['Local']:return{'icon':_0x37d42b,'type':o['Local'],..._0x3a5854};case o['URL']:return{'icon':_0x389ca9,'type':o['URL'],..._0x3a5854};case o['Dropbox']:return{'icon':_0x56493e,'type':o['Dropbox'],..._0x3a5854};case o['Facebook']:return{'icon':_0x363a91,'type':o['Facebook'],..._0x3a5854};case o['GDrive']:return{'icon':_0x49dc0b,'type':o['GDrive'],..._0x3a5854};case o['GPhotos']:return{'icon':_0x462ccb,'type':o['GPhotos'],..._0x3a5854};case o['OneDrive']:return{'icon':_0x1e56a0,'type':o['OneDrive'],..._0x3a5854};}});}['_getIntegrationKey'](_0x31c355){switch(_0x31c355){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4eb859,_0x26f25b){const _0x3da41b=this['editor'],_0x585502=new _0x4eb859(_0x3da41b['locale']),_0x5d3744=_0x3da41b['commands']['get']('uploadcare');return _0x585502['bind']('isEnabled')['to'](_0x5d3744),_0x585502['on']('execute',()=>{_0x5d3744['execute'](_0x26f25b);}),_0x585502;}['_createToolbarButton'](_0x25652c){const {locale:_0x10d37a}=this['editor'],_0x4988b1=this['editor']['plugins']['get']('ImageInsertUI'),_0x51e5e0=_0x25652c[0x0],_0x44fac7=this['_createButton'](_0x10db66,_0x51e5e0['type']);return _0x44fac7['icon']=_0x51e5e0['icon'],_0x44fac7['bind']('label')['to'](_0x4988b1,'isImageSelected',_0x51a103=>_(_0x10d37a,_0x51e5e0['type'],_0x51a103?'Replace':'Insert')['text']),_0x44fac7['tooltip']=!0x0,_0x44fac7;}['_createDropdownButtons'](_0x5d5bb1){const {locale:_0x55c89a}=this['editor'],_0x146058=this['editor']['plugins']['get']('ImageInsertUI');return _0x5d5bb1['map'](_0x1879ff=>{const _0x99d8ee=this['_createButton'](_0x10db66,_0x1879ff['type']);return _0x99d8ee['withText']=!0x0,_0x99d8ee['icon']=_0x1879ff['icon'],_0x99d8ee['bind']('label')['to'](_0x146058,'isImageSelected',_0x15f4e2=>_(_0x55c89a,_0x1879ff['type'],_0x15f4e2?'Replace':'Insert')['text']),_0x99d8ee;});}['_createMenuBarButtons'](_0x37a275){return _0x37a275['map'](_0x1a17f7=>{const _0x178a0e=this['_createButton'](_0x247083,_0x1a17f7['type']);return _0x178a0e['icon']=_0x1a17f7['icon'],_0x178a0e['label']=_0x1a17f7['shortText'],_0x178a0e;});}}class q extends _0x4f2214{['focusTracker'];['focusCycler'];constructor(_0x4f89ad){super(_0x4f89ad),this['focusTracker']=new _0xcd8aa2(),this['focusCycler']=new _0x48036d({'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(_0x3e1ea6){super(_0x3e1ea6),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(_0x4dc376,_0x351491){const _0xb22fdc=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x34ec7f=>_0x34ec7f<=_0x351491)['map'](_0x105cf6=>_0x4dc376['replace'](/\/$/,'')+'/-/resize/'+_0x105cf6+'x/\x20'+_0x105cf6+'w');return{'imageFallbackUrl':_0x4dc376,'imageSources':[{'srcset':_0xb22fdc['join'](',\x20'),'sizes':'(max-width:\x20'+_0x351491+'px)\x20100vw,\x20'+_0x351491+'px','type':'image/webp'}]};}function A(_0x146afc,_0x43e1f6,_0x1c1b9c){const _0xf4ff4e=_0x146afc['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xf4ff4e?parseInt(_0xf4ff4e[0x1],0xa):_0x43e1f6,'height':_0xf4ff4e?parseInt(_0xf4ff4e[0x2],0xa):_0x1c1b9c};}function m(_0x58f7ca,_0x1d49f1){const _0x11551b=Object['create'](_0xe46be2),_0x4b26a0=_0x58f7ca['plugins']['get']('ImageUtils'),_0x2a7912=_0x58f7ca['editing']['mapper']['toViewElement'](_0x1d49f1),_0x499f9a=_0x4b26a0['findViewImgElement'](_0x2a7912),_0x373a36=_0x58f7ca['editing']['view']['domConverter']['viewToDom'](_0x499f9a),_0x3a6af6=_0x1d49f1['getAttribute']('width'),_0x105489=_0x1d49f1['getAttribute']('height'),_0x4d9803='image-processing';_0x58f7ca['editing']['view']['change'](_0x19b565=>{_0x19b565['addClass'](_0x4d9803,_0x2a7912),_0x19b565['setStyle']('aspect-ratio',_0x3a6af6+'/'+_0x105489,_0x499f9a);}),_0x11551b['listenTo'](_0x373a36,'load',()=>{_0x11551b['stopListening'](_0x373a36,'load'),_0x58f7ca['editing']['view']['change'](_0x42b234=>{_0x42b234['removeClass'](_0x4d9803,_0x2a7912),_0x42b234['removeStyle']('aspect-ratio',_0x499f9a);});});}function V(_0x3b393d){if(Array['isArray'](_0x3b393d)){const _0x5e4291=_0x3b393d['map'](V);return _0x218c8e=>_0x5e4291['some'](_0x356c4d=>_0x356c4d(_0x218c8e));}if('origin'==_0x3b393d){const _0x5b7c27=_0x3aee88['window']['location']['origin'];return _0x51e801=>new URL(_0x51e801,_0x3aee88['document']['baseURI'])['origin']==_0x5b7c27;}return'function'==typeof _0x3b393d?_0x3b393d:_0x3b393d instanceof RegExp?_0x4e84b1=>!(!_0x4e84b1['match'](_0x3b393d)&&!_0x4e84b1['replace'](/^https?:\/\//,'')['match'](_0x3b393d)):()=>!0x1;}function F(_0xad2073,_0x931048){return _0x232906(_0xad2073['target'])['includes'](_0x931048);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x1186de(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5d0f57,_0x3b904d,_0x46d44f){super(),this['_editor']=_0x5d0f57,this['_editing']=_0x3b904d,this['_dialog']=_0x5d0f57['plugins']['get'](_0x331fd4),this['_api']=_0x3b904d['ctxElement']['getAPI'](),this['_type']=_0x46d44f,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:_0xbabeb,model:_0x550cd6}=this['_editor'],_0x2849bf=_0x550cd6['document']['selection']['getSelectedElement'](),_0x36a7d1=_0x2849bf&&(_0x2849bf['is']('element','imageBlock')||_0x2849bf['is']('element','imageInline'));this['_formView']=new S(_0xbabeb),this['_dialog']['show']({'id':'uploadCare','icon':_0x37d42b,'title':_(_0xbabeb,this['_type'],_0x36a7d1?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3cdd97['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4f8f75=>!F(_0x4f8f75,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2f6e92}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4c584c=>{const _0x2aaa7c=_0x2f6e92['length'];for(const _0x34a4b5 of _0x2f6e92){const _0xd6404d=_0x34a4b5===_0x2f6e92[_0x2aaa7c-0x1],{cdnUrl:_0x1d77f5,fileInfo:_0x27903b}=_0x34a4b5;if(!_0x1d77f5||!_0x27903b)continue;const {width:_0x40cdc7,height:_0x36a07e}=_0x27903b['imageInfo'],_0x52c10d=A(_0x1d77f5,_0x40cdc7,_0x36a07e),_0x44f036=E(_0x1d77f5,_0x52c10d['width']),_0x79f4b4={'id':_0x27903b['uuid'],'type':'image','attributes':{'imageDimension':_0x52c10d,..._0x44f036}};this['_insertAsset'](_0x79f4b4,_0xd6404d,_0x4c584c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x101924=>{'idle'===_0x101924['detail']['status']&&!_0x101924['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x11fcea,_0x24870d,_0x5d51d9){const _0x2e3360=this['_editor']['model']['document']['selection'],_0x199421=_0x2e3360['getSelectedElement'](),_0x4c578c=!(!_0x199421||!_0x199421['is']('element','imageInline'));_0x5d51d9['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x11fcea,_0x4c578c),_0x24870d||_0x5d51d9['setSelection'](_0x2e3360['getLastPosition']());}['_insertImage'](_0x1d674a,_0x47c9a2){const _0x447a80=this['_editor'],{imageDimension:_0x5d6006,imageFallbackUrl:_0x4e69c3,imageSources:_0x49206f}=_0x1d674a['attributes'];_0x447a80['execute']('insertImage',{'imageType':_0x47c9a2?'imageInline':null,'source':{'uploadcareImageId':_0x1d674a['id'],'src':_0x4e69c3,'sources':_0x49206f,..._0x5d6006}});}}class n extends _0x2599c5{['_editing'];['_controller']=null;static get['requires'](){return[_0x331fd4,i];}constructor(_0x213a2d){super(_0x213a2d),this['_editing']=_0x213a2d['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1d2f13){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1d2f13);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x491759,publicKey:_0x1fec8d,signal:_0x3193f7,onProgress:_0x476a92}){return _0x4b9161(_0x491759,{'publicKey':_0x1fec8d,'store':'auto','signal':_0x3193f7,'onProgress':_0x476a92});}static['getInfo'](_0x5626ea,_0x4aba35){return _0x5ae453(_0x5626ea,_0x4aba35);}}class p extends _0x3821fe{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x56015f,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2f086f=this['editor'];if(!!!_0x2f086f['config']['get']('uploadcare'))return;_0x2f086f['plugins']['get'](_0x56015f)['createUploadAdapter']=_0x530e9b=>new x(_0x530e9b,_0x2f086f),_0x2f086f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x278b03,{imageElement:_0x20f58b,data:_0x3d5a1b})=>{_0x2f086f['model']['change'](_0x1eacb4=>{_0x1eacb4['setAttribute']('uploadcareImageId',_0x3d5a1b['uploadcareImageId'],_0x20f58b);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2a97b8,_0xa862d8){this['loader']=_0x2a97b8,this['editor']=_0xa862d8,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x21243d=this['editor']['config']['get']('uploadcare.pubkey'),_0xe7d062=await this['loader']['file'];return C['upload']({'file':_0xe7d062,'publicKey':_0x21243d,'signal':this['controller']['signal'],'onProgress':_0x5ce3b4=>{_0x5ce3b4&&_0x5ce3b4['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5ce3b4['value']);}})['then'](async _0x4e286b=>{const {imageFallbackUrl:_0x35d7c1,imageSources:_0x11fa58}=E(_0x4e286b['cdnUrl'],_0x4e286b['imageInfo']['width']);return{'uploadcareImageId':_0x4e286b['uuid'],'default':_0x35d7c1,'sources':_0x11fa58};})['catch'](()=>{const _0x1f80d7=t('Cannot\x20upload\x20file:')+('\x20'+_0xe7d062['name']+'.');return Promise['reject'](_0x1f80d7);});}['abort'](){this['controller']['abort']();}}class i extends _0x3821fe{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x331fd4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x7042f0=this['editor'];_0x7042f0['commands']['add']('uploadcare',new n(_0x7042f0));}['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 _0xe40678=_0x3aee88['document']['querySelector']('input[uploadcare-file-input]');_0xe40678&&_0xe40678['remove']();}),async function(_0x4bafa3){const _0xe96b6f=_0x3f05ff([0x72,0x5a,0x4a,0x6c,0x74,0x50,0x70,0x66,0x43,0x76,0x65,0x44,0x39,0x6f,0x47,0x59,0x69,0x54,0x42,0x6d,0x75,0x35,0x77,0x78,0x67,0x30,0x73,0x4d,0x32,0x38,0x6e,0x46,0x4b,0x56,0x7a,0x51,0x71,0x64,0x6a,0x36,0x79,0x41,0x62,0x6b,0x63,0x68,0x45,0x53,0x31,0x4f,0x61,0x58,0x48,0x34,0x33,0x49,0x4e,0x55,0x52,0x37,0x57,0x4c]),_0x3f764a=0x388f4fdc,_0x41db95=0x38882bf4^_0x3f764a,_0x3e203b=window[_0x3f05ff([0x44,0x61,0x74,0x65])][_0x3f05ff([0x6e,0x6f,0x77])](),_0x18b9fc=_0x4bafa3[_0x3f05ff([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x30e593=new window[(_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x196fbc=>{_0x18b9fc[_0x3f05ff([0x6f,0x6e,0x63,0x65])](_0x3f05ff([0x72,0x65,0x61,0x64,0x79]),_0x196fbc);}),_0x291b13={[_0x3f05ff([0x6b,0x74,0x79])]:_0x3f05ff([0x45,0x43]),[_0x3f05ff([0x75,0x73,0x65])]:_0x3f05ff([0x73,0x69,0x67]),[_0x3f05ff([0x63,0x72,0x76])]:_0x3f05ff([0x50,0x2d,0x32,0x35,0x36]),[_0x3f05ff([0x78])]:_0x3f05ff([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]),[_0x3f05ff([0x79])]:_0x3f05ff([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]),[_0x3f05ff([0x61,0x6c,0x67])]:_0x3f05ff([0x45,0x53,0x32,0x35,0x36])},_0x2c74c9=_0x18b9fc[_0x3f05ff([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3f05ff([0x67,0x65,0x74])](_0x3f05ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a7214(){let _0x30cfa7,_0x519544=null,_0x2a69f3=null;try{if(_0x2c74c9==_0x3f05ff([0x47,0x50,0x4c]))return _0x3f05ff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x30cfa7=_0x272658(),!_0x30cfa7)return _0x3f05ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x30cfa7[_0x3f05ff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a69f3=_0x51fe80(_0x30cfa7[_0x3f05ff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x30cfa7[_0x3f05ff([0x6a,0x74,0x69])])),await _0x44d927()?_0x377eac()?_0x3bcc98()?_0x3f05ff([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3b5c12()?(_0x30cfa7[_0x3f05ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f05ff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x519544=_0x5781e1(_0x3f05ff([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x30cfa7[_0x3f05ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f05ff([0x74,0x72,0x69,0x61,0x6c])&&(_0x519544=_0x5781e1(_0x3f05ff([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x37a6c2()):_0x3f05ff([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3f05ff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3f05ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x57d0f7){return _0x3f05ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3bcc98(){const _0x1b87f8=[_0x3f05ff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3f05ff([0x74,0x72,0x69,0x61,0x6c])][_0x3f05ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30cfa7[_0x3f05ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e203b/0x3e8:0xe10*_0x41db95;return _0x30cfa7[_0x3f05ff([0x65,0x78,0x70])]<_0x1b87f8;}function _0x377eac(){const _0x1e4c71=_0x30cfa7[_0x3f05ff([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1e4c71&&(!!_0x1e4c71[_0x3f05ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f05ff([0x2a]))||!!_0x1e4c71[_0x3f05ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f05ff([0x55,0x50,0x4c,0x43])));}function _0x3b5c12(){const _0x5291be=_0x30cfa7[_0x3f05ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5291be||0x0==_0x5291be[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1e67f1}=new URL(window[_0x3f05ff([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5291be[_0x3f05ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e67f1))return!0x0;const _0x19b26d=_0x1e67f1[_0x3f05ff([0x73,0x70,0x6c,0x69,0x74])](_0x3f05ff([0x2e]));return _0x5291be[_0x3f05ff([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x44ee37=>_0x44ee37[_0x3f05ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f05ff([0x2a])))[_0x3f05ff([0x6d,0x61,0x70])](_0x2ae65c=>_0x2ae65c[_0x3f05ff([0x73,0x70,0x6c,0x69,0x74])](_0x3f05ff([0x2e])))[_0x3f05ff([0x73,0x6f,0x6d,0x65])](_0xd3ee07=>_0x19b26d[_0x3f05ff([0x65,0x76,0x65,0x72,0x79])]((_0x2a5764,_0x5899bf)=>_0xd3ee07[_0x5899bf]===_0x2a5764||_0xd3ee07[_0x5899bf]===_0x3f05ff([0x2a])));}function _0x37a6c2(){return _0x519544&&_0x2a69f3?new window[(_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ad35f,_0x20bada)=>{_0x519544[_0x3f05ff([0x74,0x68,0x65,0x6e])](_0x1ad35f,_0x20bada),_0x2a69f3[_0x3f05ff([0x74,0x68,0x65,0x6e])](_0x4ecf1e=>{_0x4ecf1e!=_0x3f05ff([0x56,0x61,0x6c,0x69,0x64])&&_0x1ad35f(_0x4ecf1e);},_0x20bada);}):_0x519544||_0x2a69f3||_0x3f05ff([0x56,0x61,0x6c,0x69,0x64]);}}function _0x51fe80(_0x592871,_0x485af2){return new window[(_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e7f5d=>{if(_0x2b84d3())return _0x4e7f5d(_0x3f05ff([0x56,0x61,0x6c,0x69,0x64]));_0xc4f58b(),_0x18b9fc[_0x3f05ff([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3f05ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3c03ff=!0x1;const _0x1c0b34=_0x773cde();function _0x5c769d(_0x233957){return!!_0x233957&&(typeof _0x233957===_0x3f05ff([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x233957===_0x3f05ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x233957[_0x3f05ff([0x74,0x68,0x65,0x6e])]===_0x3f05ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x233957[_0x3f05ff([0x63,0x61,0x74,0x63,0x68])]===_0x3f05ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5dd44e(_0x37e160){_0x3b54b9(_0x37e160)[_0x3f05ff([0x74,0x68,0x65,0x6e])](_0x557edd=>{if(!_0x557edd||_0x557edd[_0x3f05ff([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3f05ff([0x6f,0x6b]))return _0x3f05ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x47c454(_0x483ce5(_0x1c0b34+_0x485af2))!=_0x557edd[_0x3f05ff([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3f05ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3f05ff([0x56,0x61,0x6c,0x69,0x64]);})[_0x3f05ff([0x74,0x68,0x65,0x6e])](_0x47ef42=>(_0x4976d0(),_0x47ef42),()=>{const _0x4de38d=_0x3b03ce();return null==_0x4de38d?(_0x4976d0(),_0x3f05ff([0x56,0x61,0x6c,0x69,0x64])):_0x3f05ff(_0x3e203b-_0x4de38d>(0x1c83cbdc^_0x3f764a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3f05ff([0x74,0x68,0x65,0x6e])](_0x4e7f5d)[_0x3f05ff([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e7f5d(_0x3f05ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4a7aba=0x38b9a15c^_0x3f764a;function _0x4976d0(){const _0x4e81b7=_0x3f05ff([0x6c,0x6c,0x63,0x74,0x2d])+_0x47c454(_0x483ce5(_0x592871)),_0x36f6d7=_0x152932(_0x47c454(window[_0x3f05ff([0x4d,0x61,0x74,0x68])][_0x3f05ff([0x63,0x65,0x69,0x6c])](_0x3e203b/_0x4a7aba)));window[_0x3f05ff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f05ff([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e81b7,_0x36f6d7);}function _0x3b03ce(){const _0x43f194=_0x3f05ff([0x6c,0x6c,0x63,0x74,0x2d])+_0x47c454(_0x483ce5(_0x592871)),_0xd9bd39=window[_0x3f05ff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f05ff([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43f194);return _0xd9bd39?window[_0x3f05ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x152932(_0xd9bd39),0x10)*_0x4a7aba:null;}function _0x3b54b9(_0x5dfd69){return new window[(_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xeae280,_0x1ba687)=>{_0x5dfd69[_0x3f05ff([0x74,0x68,0x65,0x6e])](_0xeae280,_0x1ba687),window[_0x3f05ff([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1ba687,0x388e9b1c^_0x3f764a);});}}_0x18b9fc[_0x3f05ff([0x6f,0x6e])](_0x3f05ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2f8b67,_0x57272d)=>{if(_0x57272d[0x0]!=_0x592871)return _0x4e7f5d(_0x3f05ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x57272d[0x1]={..._0x57272d[0x1],[_0x3f05ff([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1c0b34};},{[_0x3f05ff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f05ff([0x68,0x69,0x67,0x68])}),_0x18b9fc[_0x3f05ff([0x6f,0x6e])](_0x3f05ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1ec7b1=>{_0x5c769d(_0x1ec7b1[_0x3f05ff([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3c03ff=!0x0,_0x5dd44e(_0x1ec7b1[_0x3f05ff([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3f05ff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f05ff([0x6c,0x6f,0x77])}),_0x30e593[_0x3f05ff([0x74,0x68,0x65,0x6e])](()=>{_0x3c03ff||_0x4e7f5d(_0x3f05ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b84d3(){return _0x18b9fc[_0x3f05ff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f05ff([0x76,0x69,0x65,0x77])][_0x3f05ff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3f05ff([0x61,0x75,0x74,0x6f]);}function _0xc4f58b(){_0x18b9fc[_0x3f05ff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f05ff([0x76,0x69,0x65,0x77])][_0x3f05ff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f05ff([0x61,0x75,0x74,0x6f]);}}function _0x5781e1(_0x10db24){const _0x296cfd=[new window[(_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x302513=>setTimeout(_0x302513,0x38867110^_0x3f764a)),_0x30e593[_0x3f05ff([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c0222=>{let _0xc53160=0x0;_0x18b9fc[_0x3f05ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f05ff([0x6f,0x6e])](_0x3f05ff([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2d1319,_0x4efcf7)=>{_0x4efcf7[0x0][_0x3f05ff([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc53160++,_0xc53160==(0x388f4e24^_0x3f764a)&&(_0x1c0222(),_0x2d1319[_0x3f05ff([0x6f,0x66,0x66])]());});}))];return window[_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f05ff([0x72,0x61,0x63,0x65])](_0x296cfd)[_0x3f05ff([0x74,0x68,0x65,0x6e])](()=>_0x10db24);}async function _0x3ed2f1(){await _0x30e593,_0x18b9fc[_0x3f05ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f05ff([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1948e5,_0x18b9fc[_0x3f05ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f05ff([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1948e5,_0x18b9fc[_0x3f05ff([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3f05ff([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ade63(_0x519941){const _0x4e3f66=_0x2dcea0();_0x18b9fc[_0x4e3f66]=_0x3f05ff([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x519941,_0x519941!=_0x3f05ff([0x56,0x61,0x6c,0x69,0x64])&&_0x3ed2f1();}function _0x2dcea0(){const _0x56e884=window[_0x3f05ff([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3f05ff([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3f05ff([0x6e,0x6f,0x77])]())[_0x3f05ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3f05ff([0x2e]),'');let _0x26ba18=_0x3f05ff([0x72]);for(let _0xaa2a95=0x0;_0xaa2a95<_0x56e884[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xaa2a95+=0x2){let _0x1e6cc9=window[_0x3f05ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56e884[_0x3f05ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xaa2a95,_0xaa2a95+0x2));_0x1e6cc9>=_0xe96b6f[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e6cc9-=_0xe96b6f[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26ba18+=_0xe96b6f[_0x1e6cc9];}return _0x26ba18;}function _0x272658(){const _0xed67e9=_0x2c74c9[_0x3f05ff([0x73,0x70,0x6c,0x69,0x74])](_0x3f05ff([0x2e]));if(0x3!=_0xed67e9[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xa7c0d2(_0xed67e9[0x1]);function _0xa7c0d2(_0x102c84){const _0x23be28=_0x303954(_0x102c84);return _0x23be28&&_0x486f78()?_0x23be28:null;function _0x486f78(){const _0x27b8e1=_0x23be28[_0x3f05ff([0x6a,0x74,0x69])],_0x1fe08d=window[_0x3f05ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27b8e1[_0x3f05ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27b8e1[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3cd81d={..._0x23be28,[_0x3f05ff([0x6a,0x74,0x69])]:_0x27b8e1[_0x3f05ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x27b8e1[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3cd81d[_0x3f05ff([0x76,0x63])],_0x483ce5(_0x3cd81d)==_0x1fe08d;}}}async function _0x44d927(){let _0x471544=!0x0;try{const _0x3625f3=_0x2c74c9[_0x3f05ff([0x73,0x70,0x6c,0x69,0x74])](_0x3f05ff([0x2e])),[_0x57b7ab,_0x2270b1,_0x516d27]=_0x3625f3;return _0x5ce0a9(_0x57b7ab),await _0x13d794(_0x57b7ab,_0x2270b1,_0x516d27),_0x471544;}catch(_0x1faf17){return!0x1;}function _0x5ce0a9(_0x44b4db){const _0x576f30=_0x303954(_0x44b4db);_0x576f30&&_0x576f30[_0x3f05ff([0x61,0x6c,0x67])]==_0x3f05ff([0x45,0x53,0x32,0x35,0x36])||(_0x471544=!0x1);}async function _0x13d794(_0xce3d48,_0x1aaf28,_0x49657f){const _0x49ee46=window[_0x3f05ff([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3f05ff([0x66,0x72,0x6f,0x6d])](_0x3c8f30(_0x49657f),_0x550c86=>_0x550c86[_0x3f05ff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f67c3=new window[(_0x3f05ff([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3f05ff([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xce3d48+_0x3f05ff([0x2e])+_0x1aaf28),_0x1ea97d=window[_0x3f05ff([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3f05ff([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1ea97d)return;const _0x9de8c0=await _0x1ea97d[_0x3f05ff([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3f05ff([0x6a,0x77,0x6b]),_0x291b13,{[_0x3f05ff([0x6e,0x61,0x6d,0x65])]:_0x3f05ff([0x45,0x43,0x44,0x53,0x41]),[_0x3f05ff([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3f05ff([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3f05ff([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1ea97d[_0x3f05ff([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3f05ff([0x6e,0x61,0x6d,0x65])]:_0x3f05ff([0x45,0x43,0x44,0x53,0x41]),[_0x3f05ff([0x68,0x61,0x73,0x68])]:{[_0x3f05ff([0x6e,0x61,0x6d,0x65])]:_0x3f05ff([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x9de8c0,_0x49ee46,_0x1f67c3)||(_0x471544=!0x1);}}function _0x303954(_0x29c807){return _0x29c807[_0x3f05ff([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3f05ff([0x65,0x79]))?JSON[_0x3f05ff([0x70,0x61,0x72,0x73,0x65])](_0x3c8f30(_0x29c807)):null;}function _0x3c8f30(_0x2c3019){return window[_0x3f05ff([0x61,0x74,0x6f,0x62])](_0x2c3019[_0x3f05ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3f05ff([0x2b]))[_0x3f05ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3f05ff([0x2f])));}function _0x483ce5(_0x187c3c){let _0x391d47=0x1505;function _0x147c03(_0x3cc82f){for(let _0x4df009=0x0;_0x4df009<_0x3cc82f[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4df009++){const _0x19ecf0=_0x3cc82f[_0x3f05ff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4df009);_0x391d47=(_0x391d47<<0x5)+_0x391d47+_0x19ecf0,_0x391d47&=_0x391d47;}}function _0x38cea9(_0x5b155f){Array[_0x3f05ff([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5b155f)?_0x5b155f[_0x3f05ff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x38cea9):_0x5b155f&&typeof _0x5b155f==_0x3f05ff([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3f05ff([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5b155f)[_0x3f05ff([0x73,0x6f,0x72,0x74])]()[_0x3f05ff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x511a5e,_0x5bc8fa])=>{_0x147c03(_0x511a5e),_0x38cea9(_0x5bc8fa);}):_0x147c03(window[_0x3f05ff([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5b155f));}return _0x38cea9(_0x187c3c),_0x391d47>>>0x0;}function _0x47c454(_0x3aea5d){return _0x3aea5d[_0x3f05ff([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3f05ff([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3f05ff([0x30]));}function _0x152932(_0x5154da){return _0x5154da[_0x3f05ff([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3f05ff([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3f05ff([0x6a,0x6f,0x69,0x6e])]('');}function _0x1948e5(){}function _0x3f05ff(_0xc5d5e4){return _0xc5d5e4['map'](_0x101c86=>String['fromCharCode'](_0x101c86))['join']('');}_0x3ade63(await _0x2a7214());}(this);}['_initSchema'](){const _0xb9d63e=this['editor']['model']['schema'];_0xb9d63e['isRegistered']('imageBlock')&&_0xb9d63e['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xb9d63e['isRegistered']('imageInline')&&_0xb9d63e['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5a70ed=this['editor'];_0x5a70ed['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5a70ed['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x33a063=>_0x33a063['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2f0a72=_0x5a70ed['commands']['get']('replaceImageSource');_0x2f0a72&&this['listenTo'](_0x2f0a72,'cleanupImage',(_0x5b02c8,[_0x269370,_0xf3bab3])=>{_0x269370['removeAttribute']('uploadcareImageId',_0xf3bab3);});}['_initConfig'](){const _0x23c5b8=this['editor']['config']['get']('uploadcare.uploader')||{},_0x29cda7=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4d9f06(_0x3aee88['document'],'uc-config',{..._0x23c5b8,'pubkey':_0x29cda7,'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']=_0xbd2bef=>{if('closeMax'==_0xbd2bef)return'#uc-icon-arrow-down';},_0x3aee88['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4d9f06(_0x3aee88['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x3aee88['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5ef235=this['editor']['commands']['get']('insertImage');_0x5ef235&&this['listenTo'](_0x5ef235,'execute',()=>{const _0x4314d8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4314d8&&_0x4314d8['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4314d8);});});const _0x28653a=this['editor']['commands']['get']('uploadcareImageReplace');_0x28653a&&this['listenTo'](_0x28653a,'execute',()=>{const _0x33d9d0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x33d9d0&&_0x33d9d0['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x33d9d0);});});}}class u extends _0x3821fe{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b7b8f){super(_0x5b7b8f),_0x5b7b8f['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x3c93ea['defineComponents'](_0x3c93ea);}}class ta extends _0x4f2214{constructor(_0x1fd0ba){super(_0x1fd0ba);const t=_0x1fd0ba['t'],_0x1b14ad=this['bindTemplate'],_0x300831=new _0x30566d();_0x300831['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':[_0x300831,{'text':_0x1b14ad['to']('imageUploadProgress',_0x252a33=>t('Loading\x20image...')+'\x20('+(_0x252a33||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 _0x4f2214{constructor(_0x2033be){super(_0x2033be);const t=_0x2033be['t'];this['set']('errorType',null);const _0x26bd98=new _0x10db66(_0x2033be);_0x26bd98['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x26bd98['withText']=!0x0,_0x26bd98['class']='ck-button-action',_0x26bd98['on']('execute',()=>{this['fire']('retry');}),_0x26bd98['bind']('isVisible')['to'](this,'errorType',_0x808174=>'NotFound'!==_0x808174);const _0x28cfd7=new at();_0x28cfd7['content']=et,_0x28cfd7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x242163=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':[_0x28cfd7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x242163['to']('errorType',_0x533639=>t('NotFound'!==_0x533639?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x26bd98]},{'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 _0x4f2214{constructor(_0x4f2f02,_0x141d88){super(_0x4f2f02);const _0x2c96f8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x141d88,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2c96f8['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1bf10d,_0x3f8052,_0x840525){super(_0x1bf10d),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x1bf10d),this['_errorView']=new rt(_0x1bf10d),this['_editingView']=new tt(_0x1bf10d,_0x840525),this['_focusableView']=new _0x4f2214(_0x1bf10d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3f8052),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'],_0xc5c4a7=>{this['_addUploadcareImageEditorListeners'](_0xc5c4a7);});}),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'](_0x12a73d,_0x26acfe){const _0x43c8c7='uc-cloud-image-editor',_0x264a0e=_0x12a73d['querySelector'](_0x43c8c7);if(_0x264a0e)return _0x26acfe(_0x264a0e);const _0x58f613=new MutationObserver(_0x2a1dc7=>{const _0x293997=_0x2a1dc7['filter'](_0x528750=>_0x528750['target']===_0x12a73d&&_0x528750['addedNodes']['length']>0x0&&_0x528750['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x43c8c7);_0x293997['length']&&(_0x58f613['disconnect'](),_0x26acfe(_0x293997[0x0]['addedNodes'][0x0]));});_0x58f613['observe'](_0x12a73d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x18dfc2){_0x18dfc2['addEventListener']('apply',_0x10a71e=>{this['fire']('apply',{'imageSrc':_0x10a71e['detail']['cdnUrl']});}),_0x18dfc2['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1186de(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2bda3d,_0x4d0946,_0x3947ca){super(),this['_editor']=_0x2bda3d,this['_dialog']=_0x4d0946,this['_imageElement']=_0x3947ca,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 _0x185bcb=this['_imageElement'],_0x40343d=_0x185bcb['getAttribute']('uploadcareImageId'),_0x1f9795=_0x185bcb['getAttribute']('src');if(_0x40343d)await this['_loadImageInfo'](_0x40343d,_0x1f9795);else{if(this['_imageCache']['has'](_0x1f9795)){const _0x37eea5=this['_imageCache']['get'](_0x1f9795);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x37eea5['url'],this['imageDimension']=_0x37eea5['dimension'],this['imageId']=_0x37eea5['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x164db9}=this['_editor'],t=_0x164db9['t'],_0x4507cb=new Z(_0x164db9,this['imageStatus'],this['_attributes']);_0x4507cb['bind']('status')['to'](this,'imageStatus'),_0x4507cb['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4507cb['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4507cb['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4507cb,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2ed8e7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4507cb,'position':_0x3cdd97['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4507cb['focus']();},'onHide':()=>{_0x4507cb['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x18731a=>!F(_0x18731a,_0x4507cb['element'])}});}['_loadImageInfo'](_0x267102,_0x120218){return C['getInfo'](_0x267102,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x23ed9b=>{const {width:_0x50a296,height:_0x20d167}=_0x23ed9b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x120218,this['imageDimension']={'width':_0x50a296,'height':_0x20d167},this['imageId']=_0x267102;})['catch'](_0xea0a14=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xea0a14['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x58331b,_0x5735a8){return this['_getImageAsFile'](_0x58331b)['then'](_0x5a55d7=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5735a8['signal'],'file':_0x5a55d7,'onProgress':_0x166890=>{_0x166890&&_0x166890['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x166890['value']));}}))['then'](_0x344e12=>{const {width:_0x2695de,height:_0x2cf547}=_0x344e12['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x344e12['cdnUrl'],this['imageDimension']={'width':_0x2695de,'height':_0x2cf547},this['imageId']=_0x344e12['uuid'],this['imageUploadProgress']=null;const _0x1a00b0=_0x58331b['getAttribute']('src');this['_imageCache']['set'](_0x1a00b0,{'id':_0x344e12['uuid'],'url':_0x344e12['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x29fd77=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x29fd77['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x51c756,_0x55984d){_0x51c756['on']('apply',(_0x1e5a90,_0x4e10fe)=>{this['_replaceImage'](_0x55984d,_0x4e10fe['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x51c756['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x51c756['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x53789f,_0x101cf1,_0x39476d){const _0x4e8ed9=this['_editor'],{width:_0x4d1be0,height:_0x3b8647}=A(_0x101cf1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x492565,imageSources:_0x4f3147}=E(_0x101cf1,_0x4d1be0);_0x4e8ed9['model']['change'](_0x451eed=>{if('$graveyard'===_0x53789f['root']['rootName']){_0x4e8ed9['execute']('insertImage',{'imageType':_0x53789f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x53789f['getAttributes']()),'uploadcareImageId':_0x39476d,'src':_0x492565,'sources':_0x4f3147,'width':_0x4d1be0,'height':_0x3b8647}});const _0x424d70=_0x53789f['getChildren']();_0x53789f=_0x4e8ed9['model']['document']['selection']['getSelectedElement']();for(const _0x23cf9e of _0x424d70)_0x451eed['append'](_0x451eed['cloneElement'](_0x23cf9e),_0x53789f);}else _0x451eed['setSelection'](_0x53789f,'on'),_0x4e8ed9['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x53789f['getAttributes']()),'uploadcareImageId':_0x39476d,'src':_0x492565,'sources':_0x4f3147,'width':_0x4d1be0,'height':_0x3b8647},_0x53789f);_0x451eed['setSelection'](_0x53789f,'on');});}async['_getImageAsFile'](_0x4bcd97){const _0x3a3935=_0x3aee88['window'],_0x3ce1bd=_0x3aee88['document']['location']['href'],_0x20a0ba=new _0x3a3935['URL'](_0x4bcd97['getAttribute']('src'),_0x3ce1bd);if('data:'===_0x20a0ba['protocol']){const _0x3e1c2a=_0x20a0ba['href']['split'](','),_0x8c2589=_0x3e1c2a[0x0]['match'](/:(.*?);/)[0x1],_0x505502=_0x8c2589['split']('/')[0x1],_0xb7d65d=_0x3a3935['atob'](_0x3e1c2a[_0x3e1c2a['length']-0x1]);let _0x17703d=_0xb7d65d['length'];const _0x4d26e7=new _0x3a3935['Uint8Array'](_0x17703d);for(;_0x17703d--;)_0x4d26e7[_0x17703d]=_0xb7d65d['charCodeAt'](_0x17703d);return new _0x3a3935['File']([_0x4d26e7],'image.'+_0x505502,{'type':_0x8c2589});}const _0x8b937d=_0x20a0ba['href']['split']('/'),_0xfa1c6e=_0x8b937d[_0x8b937d['length']-0x1],_0x179c13=_0xfa1c6e['split']('.')[0x1];return _0x3a3935['fetch'](_0x20a0ba['href'])['then'](_0xa99a6e=>_0xa99a6e['clone']()['blob']())['then'](_0x1dcc4f=>new _0x3a3935['File']([_0x1dcc4f],_0xfa1c6e,{'type':'image/'+_0x179c13}));}}class J extends _0x2599c5{['imageEditController'];static get['requires'](){return[_0x331fd4];}['_isEditable'];constructor(_0x584366){super(_0x584366),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x48f057){const _0x123034=V(_0x48f057);return _0x5e13ce=>!(!_0x5e13ce||!_0x5e13ce['is']('element','imageBlock')&&!_0x5e13ce['is']('element','imageInline'))&&(!!_0x5e13ce['hasAttribute']('uploadcareImageId')||!!_0x5e13ce['hasAttribute']('src')&&_0x123034(_0x5e13ce['getAttribute']('src')));}(_0x584366['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x19ae8a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x19ae8a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x18b37d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x18b37d&&(_0x18b37d['is']('element','imageBlock')||_0x18b37d['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x331fd4),_0x18b37d),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x2599c5{['refresh'](){const _0x281d7e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x281d7e&&(_0x281d7e['is']('element','imageBlock')||_0x281d7e['is']('element','imageInline')));}['execute'](_0x2e9c5e){const _0x5cd146=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x40245c=>{_0x40245c['setAttributes'](_0x2e9c5e,_0x5cd146),_0x40245c['removeAttribute']('srcset',_0x5cd146),_0x40245c['removeAttribute']('sizes',_0x5cd146);});}}class g extends _0x3821fe{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x2f4b79,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2d25b5}=this;_0x2d25b5['commands']['add']('uploadcareImageEdit',new J(_0x2d25b5)),_0x2d25b5['commands']['add']('uploadcareImageReplace',new O(_0x2d25b5));}}class j extends _0x3821fe{['_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 _0x3d8c38=this['editor'];_0x3d8c38['ui']['componentFactory']['add']('uploadcareImageEdit',_0x7a44a=>{const _0x38861e=_0x3d8c38['commands']['get']('uploadcareImageEdit'),_0x4a6fc5=new _0x10db66(_0x7a44a),t=_0x7a44a['t'];return _0x4a6fc5['set']({'icon':_0x2ed8e7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4a6fc5['bind']('isEnabled')['to'](_0x38861e),_0x4a6fc5['bind']('isOn')['to'](_0x38861e,'isActive'),this['listenTo'](_0x4a6fc5,'execute',()=>{_0x3d8c38['execute']('uploadcareImageEdit'),_0x3d8c38['editing']['view']['focus']();}),_0x4a6fc5;}),this['_initConfig']();}['_initConfig'](){const _0x22c720=_0x4d9f06(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x22c720),this['listenTo'](this['editor'],'destroy',()=>{_0x22c720['remove']();});}}class P extends _0x3821fe{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 _0x1dd4a0,Command as _0x3f38b4}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4635ec,IconGooglePhotos as _0x5114cc,IconGoogleDrive as _0x4bc24a,IconFacebook as _0x1724ea,IconDropbox as _0x3f6ebe,IconUploadcareLink as _0x2542bf,IconUploadcareImageUpload as _0x511ef4,IconError as et,IconUploadcareImageEdit as _0x56a8ab}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x16b6ef,MenuBarMenuListItemButtonView as _0x4ea981,View as _0x1fa2e2,FocusCycler as _0x47f75a,Dialog as _0x5c5908,DialogViewPosition as _0x1c3d19,SpinnerView as _0x11ebe3,IconView as at,Notification as _0x43e758}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4569b8,DomEmitterMixin as _0x3626f0,global as _0x1cff4f,getAncestors as _0x16f5be,ObservableMixin as _0x31b995,createElement as _0x379973,uid as _0x4c5b6b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3ac3a5}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x40ee51,info as _0x2d12c3}from'@uploadcare/upload-client';import*as _0x44de83 from'@uploadcare/file-uploader';var o=function(_0x18275c){return _0x18275c['Local']='local',_0x18275c['URL']='url',_0x18275c['Dropbox']='dropbox',_0x18275c['GDrive']='gdrive',_0x18275c['Facebook']='facebook',_0x18275c['GPhotos']='gphotos',_0x18275c['OneDrive']='onedrive',_0x18275c;}({});function _(_0x4664aa,_0x4f4380,_0x404f28){const t=_0x4664aa['t'],_0x2d0237=_0x4664aa['t'];switch(_0x4f4380){case o['Local']:return{'text':_0x2d0237('Insert'===_0x404f28?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2d0237('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x404f28?_0x2d0237('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2d0237('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x404f28?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x404f28?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x404f28?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x404f28?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x404f28?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4f4380;}}class e extends _0x1dd4a0{['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 _0x5c6ef9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x34daf3;for(const _0x369c78 in _0x5c6ef9){const _0x1eb2f1=_0x369c78,_0x339ffe=_0x5c6ef9[_0x1eb2f1];if('uploadcareLicenseKeyValid'==_0x339ffe||'uploadcareLicenseKeyInvalid'==_0x339ffe||'uploadcareLicenseKeyExpired'==_0x339ffe||'uploadcareLicenseKeyDomainLimit'==_0x339ffe||'uploadcareLicenseKeyNotAllowed'==_0x339ffe||'uploadcareLicenseKeyEvaluationLimit'==_0x339ffe||'uploadcareLicenseKeyTrialLimit'==_0x339ffe||'uploadcareLicenseKeyUsageLimit'==_0x339ffe){delete _0x5c6ef9[_0x1eb2f1],_0x34daf3=_0x339ffe,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x24db7d}=this,_0x28f5a7=_0x24db7d['commands']['get']('uploadcare');if(!_0x28f5a7)return;const _0x18e1c9=this['_normalizeConfigSourceList'](_0x24db7d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x599e63,_0x15a01b)=>{const _0x58595b=this['_getIntegrationKey'](_0x15a01b['type']);return _0x599e63[_0x58595b]||(_0x599e63[_0x58595b]=[]),_0x599e63[_0x58595b]['push'](_0x15a01b),_0x599e63;},{});_0x24db7d['plugins']['has']('ImageInsertUI')&&_0x24db7d['commands']['get']('uploadcare')&&Object['entries'](_0x18e1c9)['forEach'](([_0x1ade82,_0x11ee8b])=>{_0x24db7d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1ade82,'observable':()=>_0x28f5a7,'buttonViewCreator':()=>this['_createToolbarButton'](_0x11ee8b),'formViewCreator':()=>this['_createDropdownButtons'](_0x11ee8b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x11ee8b),'override':'assetManager'!==_0x1ade82});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3c80dd){const {locale:_0x3a696b}=this['editor'];return _0x3c80dd['map'](_0x47ace3=>{const _0x40fa1b=_(_0x3a696b,_0x47ace3,'Insert');switch(_0x47ace3){case o['Local']:return{'icon':_0x511ef4,'type':o['Local'],..._0x40fa1b};case o['URL']:return{'icon':_0x2542bf,'type':o['URL'],..._0x40fa1b};case o['Dropbox']:return{'icon':_0x3f6ebe,'type':o['Dropbox'],..._0x40fa1b};case o['Facebook']:return{'icon':_0x1724ea,'type':o['Facebook'],..._0x40fa1b};case o['GDrive']:return{'icon':_0x4bc24a,'type':o['GDrive'],..._0x40fa1b};case o['GPhotos']:return{'icon':_0x5114cc,'type':o['GPhotos'],..._0x40fa1b};case o['OneDrive']:return{'icon':_0x4635ec,'type':o['OneDrive'],..._0x40fa1b};}});}['_getIntegrationKey'](_0x2ce3ff){switch(_0x2ce3ff){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4a7585,_0x2babdd){const _0xedcd72=this['editor'],_0x150ce1=new _0x4a7585(_0xedcd72['locale']),_0x6a59ae=_0xedcd72['commands']['get']('uploadcare');return _0x150ce1['bind']('isEnabled')['to'](_0x6a59ae),_0x150ce1['on']('execute',()=>{_0x6a59ae['execute'](_0x2babdd);}),_0x150ce1;}['_createToolbarButton'](_0x56ae6a){const {locale:_0xac7d54}=this['editor'],_0x1aed11=this['editor']['plugins']['get']('ImageInsertUI'),_0x2be731=_0x56ae6a[0x0],_0x16edba=this['_createButton'](_0x16b6ef,_0x2be731['type']);return _0x16edba['icon']=_0x2be731['icon'],_0x16edba['bind']('label')['to'](_0x1aed11,'isImageSelected',_0x246d04=>_(_0xac7d54,_0x2be731['type'],_0x246d04?'Replace':'Insert')['text']),_0x16edba['tooltip']=!0x0,_0x16edba;}['_createDropdownButtons'](_0x598ccc){const {locale:_0x311086}=this['editor'],_0x52d8c1=this['editor']['plugins']['get']('ImageInsertUI');return _0x598ccc['map'](_0x31c46b=>{const _0x4b1816=this['_createButton'](_0x16b6ef,_0x31c46b['type']);return _0x4b1816['withText']=!0x0,_0x4b1816['icon']=_0x31c46b['icon'],_0x4b1816['bind']('label')['to'](_0x52d8c1,'isImageSelected',_0x51ad66=>_(_0x311086,_0x31c46b['type'],_0x51ad66?'Replace':'Insert')['text']),_0x4b1816;});}['_createMenuBarButtons'](_0x3192b3){return _0x3192b3['map'](_0x5b7d5f=>{const _0x4039f1=this['_createButton'](_0x4ea981,_0x5b7d5f['type']);return _0x4039f1['icon']=_0x5b7d5f['icon'],_0x4039f1['label']=_0x5b7d5f['shortText'],_0x4039f1;});}}class q extends _0x1fa2e2{['focusTracker'];['focusCycler'];constructor(_0x4c64d2){super(_0x4c64d2),this['focusTracker']=new _0x4569b8(),this['focusCycler']=new _0x47f75a({'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(_0x670eae){super(_0x670eae),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(_0x5cbcfd,_0x5e397a){const _0x99959=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2f7e47=>_0x2f7e47<=_0x5e397a)['map'](_0x116375=>_0x5cbcfd['replace'](/\/$/,'')+'/-/resize/'+_0x116375+'x/\x20'+_0x116375+'w');return{'imageFallbackUrl':_0x5cbcfd,'imageSources':[{'srcset':_0x99959['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5e397a+'px)\x20100vw,\x20'+_0x5e397a+'px','type':'image/webp'}]};}function A(_0xa2af93,_0x5d40d3,_0x5c658b){const _0x22a137=_0xa2af93['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x22a137?parseInt(_0x22a137[0x1],0xa):_0x5d40d3,'height':_0x22a137?parseInt(_0x22a137[0x2],0xa):_0x5c658b};}function m(_0x9c870c,_0x555675){const _0x3cb6c5=Object['create'](_0x3626f0),_0x4983c5=_0x9c870c['plugins']['get']('ImageUtils'),_0x47aeef=_0x9c870c['editing']['mapper']['toViewElement'](_0x555675),_0x32aad4=_0x4983c5['findViewImgElement'](_0x47aeef),_0x56be74=_0x9c870c['editing']['view']['domConverter']['viewToDom'](_0x32aad4),_0x26cbad=_0x555675['getAttribute']('width'),_0x4a63cf=_0x555675['getAttribute']('height'),_0x4f8003='image-processing';_0x9c870c['editing']['view']['change'](_0x329590=>{_0x329590['addClass'](_0x4f8003,_0x47aeef),_0x329590['setStyle']('aspect-ratio',_0x26cbad+'/'+_0x4a63cf,_0x32aad4);}),_0x3cb6c5['listenTo'](_0x56be74,'load',()=>{_0x3cb6c5['stopListening'](_0x56be74,'load'),_0x9c870c['editing']['view']['change'](_0x400509=>{_0x400509['removeClass'](_0x4f8003,_0x47aeef),_0x400509['removeStyle']('aspect-ratio',_0x32aad4);});});}function V(_0x33459f){if(Array['isArray'](_0x33459f)){const _0x59073b=_0x33459f['map'](V);return _0x33d372=>_0x59073b['some'](_0x3f407e=>_0x3f407e(_0x33d372));}if('origin'==_0x33459f){const _0x59d4f8=_0x1cff4f['window']['location']['origin'];return _0x4149e9=>new URL(_0x4149e9,_0x1cff4f['document']['baseURI'])['origin']==_0x59d4f8;}return'function'==typeof _0x33459f?_0x33459f:_0x33459f instanceof RegExp?_0x3fc669=>!(!_0x3fc669['match'](_0x33459f)&&!_0x3fc669['replace'](/^https?:\/\//,'')['match'](_0x33459f)):()=>!0x1;}function F(_0x2ff5ce,_0x2ec18e){return _0x16f5be(_0x2ff5ce['target'])['includes'](_0x2ec18e);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x31b995(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xd61ffc,_0x4d3d36,_0x5ae613){super(),this['_editor']=_0xd61ffc,this['_editing']=_0x4d3d36,this['_dialog']=_0xd61ffc['plugins']['get'](_0x5c5908),this['_api']=_0x4d3d36['ctxElement']['getAPI'](),this['_type']=_0x5ae613,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:_0x1a2d6b,model:_0x5c0780}=this['_editor'],_0x63e331=_0x5c0780['document']['selection']['getSelectedElement'](),_0x1cdade=_0x63e331&&(_0x63e331['is']('element','imageBlock')||_0x63e331['is']('element','imageInline'));this['_formView']=new S(_0x1a2d6b),this['_dialog']['show']({'id':'uploadCare','icon':_0x511ef4,'title':_(_0x1a2d6b,this['_type'],_0x1cdade?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1c3d19['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x36a11f=>!F(_0x36a11f,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3874ed}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x54f9c9=>{const _0x3a6dd2=_0x3874ed['length'];for(const _0x4aa22a of _0x3874ed){const _0x51b5a8=_0x4aa22a===_0x3874ed[_0x3a6dd2-0x1],{cdnUrl:_0x54b33c,fileInfo:_0x157349}=_0x4aa22a;if(!_0x54b33c||!_0x157349)continue;const {width:_0x3485fd,height:_0x3c31ef}=_0x157349['imageInfo'],_0x1af81e=A(_0x54b33c,_0x3485fd,_0x3c31ef),_0x49aca7=E(_0x54b33c,_0x1af81e['width']),_0x35d3bd={'id':_0x157349['uuid'],'type':'image','attributes':{'imageDimension':_0x1af81e,..._0x49aca7}};this['_insertAsset'](_0x35d3bd,_0x51b5a8,_0x54f9c9);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x22ec39=>{'idle'===_0x22ec39['detail']['status']&&!_0x22ec39['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4015a9,_0x35e60c,_0x204fae){const _0xe4f2e2=this['_editor']['model']['document']['selection'],_0x432264=_0xe4f2e2['getSelectedElement'](),_0x5b0879=!(!_0x432264||!_0x432264['is']('element','imageInline'));_0x204fae['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4015a9,_0x5b0879),_0x35e60c||_0x204fae['setSelection'](_0xe4f2e2['getLastPosition']());}['_insertImage'](_0x239fcf,_0x2b502b){const _0xb1fa61=this['_editor'],{imageDimension:_0x57a5fa,imageFallbackUrl:_0x27a583,imageSources:_0x8c6962}=_0x239fcf['attributes'];_0xb1fa61['execute']('insertImage',{'imageType':_0x2b502b?'imageInline':null,'source':{'uploadcareImageId':_0x239fcf['id'],'src':_0x27a583,'sources':_0x8c6962,..._0x57a5fa}});}}class n extends _0x3f38b4{['_editing'];['_controller']=null;static get['requires'](){return[_0x5c5908,i];}constructor(_0x149f28){super(_0x149f28),this['_editing']=_0x149f28['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2115ae){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x2115ae);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x1b6250,publicKey:_0xf3c293,signal:_0x39bd3d,onProgress:_0x56196c}){return _0x40ee51(_0x1b6250,{'publicKey':_0xf3c293,'store':'auto','signal':_0x39bd3d,'onProgress':_0x56196c});}static['getInfo'](_0x1f7336,_0x48d234){return _0x2d12c3(_0x1f7336,_0x48d234);}}class p extends _0x1dd4a0{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3ac3a5,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x8c4cde=this['editor'];if(!!!_0x8c4cde['config']['get']('uploadcare'))return;_0x8c4cde['plugins']['get'](_0x3ac3a5)['createUploadAdapter']=_0x1136e7=>new x(_0x1136e7,_0x8c4cde),_0x8c4cde['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x344fa0,{imageElement:_0x4bdbe3,data:_0x4a5d47})=>{_0x8c4cde['model']['change'](_0x3d1d90=>{_0x3d1d90['setAttribute']('uploadcareImageId',_0x4a5d47['uploadcareImageId'],_0x4bdbe3);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x557b78,_0x1eabeb){this['loader']=_0x557b78,this['editor']=_0x1eabeb,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1af6cd=this['editor']['config']['get']('uploadcare.pubkey'),_0x341486=await this['loader']['file'];return C['upload']({'file':_0x341486,'publicKey':_0x1af6cd,'signal':this['controller']['signal'],'onProgress':_0x410561=>{_0x410561&&_0x410561['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x410561['value']);}})['then'](async _0x484416=>{const {imageFallbackUrl:_0x326d53,imageSources:_0x133d97}=E(_0x484416['cdnUrl'],_0x484416['imageInfo']['width']);return{'uploadcareImageId':_0x484416['uuid'],'default':_0x326d53,'sources':_0x133d97};})['catch'](()=>{const _0x21de68=t('Cannot\x20upload\x20file:')+('\x20'+_0x341486['name']+'.');return Promise['reject'](_0x21de68);});}['abort'](){this['controller']['abort']();}}class i extends _0x1dd4a0{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x5c5908];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x96568a=this['editor'];_0x96568a['commands']['add']('uploadcare',new n(_0x96568a));}['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 _0x5d0e5e=_0x1cff4f['document']['querySelector']('input[uploadcare-file-input]');_0x5d0e5e&&_0x5d0e5e['remove']();}),async function(_0x299808){const _0x2809a2=_0x2296f5([0x4f,0x7a,0x6c,0x5a,0x30,0x56,0x52,0x49,0x39,0x50,0x4e,0x54,0x66,0x31,0x36,0x53,0x78,0x43,0x35,0x69,0x63,0x6b,0x4d,0x4c,0x55,0x46,0x73,0x71,0x79,0x41,0x58,0x6e,0x6a,0x67,0x47,0x61,0x76,0x37,0x48,0x32,0x72,0x33,0x6f,0x44,0x65,0x4b,0x4a,0x34,0x75,0x64,0x57,0x68,0x6d,0x59,0x51,0x42,0x45,0x62,0x38,0x77,0x70,0x74]),_0x30a921=0x3bcbc51c,_0x239c79=0x3bcca15c^_0x30a921,_0xdf3596=window[_0x2296f5([0x44,0x61,0x74,0x65])][_0x2296f5([0x6e,0x6f,0x77])](),_0x3bc9ba=_0x299808[_0x2296f5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1b3e9d=new window[(_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32904a=>{_0x3bc9ba[_0x2296f5([0x6f,0x6e,0x63,0x65])](_0x2296f5([0x72,0x65,0x61,0x64,0x79]),_0x32904a);}),_0x10a639={[_0x2296f5([0x6b,0x74,0x79])]:_0x2296f5([0x45,0x43]),[_0x2296f5([0x75,0x73,0x65])]:_0x2296f5([0x73,0x69,0x67]),[_0x2296f5([0x63,0x72,0x76])]:_0x2296f5([0x50,0x2d,0x32,0x35,0x36]),[_0x2296f5([0x78])]:_0x2296f5([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]),[_0x2296f5([0x79])]:_0x2296f5([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]),[_0x2296f5([0x61,0x6c,0x67])]:_0x2296f5([0x45,0x53,0x32,0x35,0x36])},_0x4e016a=_0x3bc9ba[_0x2296f5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2296f5([0x67,0x65,0x74])](_0x2296f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x52f8a5(){let _0x5c00ed,_0x449399=null,_0x1660dd=null;try{if(_0x4e016a==_0x2296f5([0x47,0x50,0x4c]))return _0x2296f5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5c00ed=_0x27f7da(),!_0x5c00ed)return _0x2296f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5c00ed[_0x2296f5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1660dd=_0x23462e(_0x5c00ed[_0x2296f5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5c00ed[_0x2296f5([0x6a,0x74,0x69])])),await _0x2c084e()?_0x4e61f3()?_0x400561()?_0x2296f5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1831f8()?(_0x5c00ed[_0x2296f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2296f5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x449399=_0x374308(_0x2296f5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5c00ed[_0x2296f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2296f5([0x74,0x72,0x69,0x61,0x6c])&&(_0x449399=_0x374308(_0x2296f5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x24e63f()):_0x2296f5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2296f5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2296f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4a2790){return _0x2296f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x400561(){const _0x51aac7=[_0x2296f5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2296f5([0x74,0x72,0x69,0x61,0x6c])][_0x2296f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c00ed[_0x2296f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xdf3596/0x3e8:0xe10*_0x239c79;return _0x5c00ed[_0x2296f5([0x65,0x78,0x70])]<_0x51aac7;}function _0x4e61f3(){const _0x36ce85=_0x5c00ed[_0x2296f5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x36ce85&&(!!_0x36ce85[_0x2296f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2296f5([0x2a]))||!!_0x36ce85[_0x2296f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2296f5([0x55,0x50,0x4c,0x43])));}function _0x1831f8(){const _0x3d1391=_0x5c00ed[_0x2296f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3d1391||0x0==_0x3d1391[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc992f4}=new URL(window[_0x2296f5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3d1391[_0x2296f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc992f4))return!0x0;const _0x3470c4=_0xc992f4[_0x2296f5([0x73,0x70,0x6c,0x69,0x74])](_0x2296f5([0x2e]));return _0x3d1391[_0x2296f5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b8ad3=>_0x2b8ad3[_0x2296f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2296f5([0x2a])))[_0x2296f5([0x6d,0x61,0x70])](_0x3abc04=>_0x3abc04[_0x2296f5([0x73,0x70,0x6c,0x69,0x74])](_0x2296f5([0x2e])))[_0x2296f5([0x73,0x6f,0x6d,0x65])](_0x5a7a95=>_0x3470c4[_0x2296f5([0x65,0x76,0x65,0x72,0x79])]((_0x5cdd18,_0x26a624)=>_0x5a7a95[_0x26a624]===_0x5cdd18||_0x5a7a95[_0x26a624]===_0x2296f5([0x2a])));}function _0x24e63f(){return _0x449399&&_0x1660dd?new window[(_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c8751,_0x216f8d)=>{_0x449399[_0x2296f5([0x74,0x68,0x65,0x6e])](_0x3c8751,_0x216f8d),_0x1660dd[_0x2296f5([0x74,0x68,0x65,0x6e])](_0x447fb8=>{_0x447fb8!=_0x2296f5([0x56,0x61,0x6c,0x69,0x64])&&_0x3c8751(_0x447fb8);},_0x216f8d);}):_0x449399||_0x1660dd||_0x2296f5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x23462e(_0x286e17,_0x5bb5a6){return new window[(_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x92571f=>{if(_0xc2d07b())return _0x92571f(_0x2296f5([0x56,0x61,0x6c,0x69,0x64]));_0x1907ab(),_0x3bc9ba[_0x2296f5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2296f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4f5d15=!0x1;const _0x3e5327=_0x4c5b6b();function _0x559e55(_0x437e45){return!!_0x437e45&&(typeof _0x437e45===_0x2296f5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x437e45===_0x2296f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x437e45[_0x2296f5([0x74,0x68,0x65,0x6e])]===_0x2296f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x437e45[_0x2296f5([0x63,0x61,0x74,0x63,0x68])]===_0x2296f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4be237(_0x5abaaf){_0x34ed4d(_0x5abaaf)[_0x2296f5([0x74,0x68,0x65,0x6e])](_0x55ce11=>{if(!_0x55ce11||_0x55ce11[_0x2296f5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2296f5([0x6f,0x6b]))return _0x2296f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xec165a(_0x2d87d7(_0x3e5327+_0x5bb5a6))!=_0x55ce11[_0x2296f5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2296f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2296f5([0x56,0x61,0x6c,0x69,0x64]);})[_0x2296f5([0x74,0x68,0x65,0x6e])](_0x41a0ec=>(_0x25d563(),_0x41a0ec),()=>{const _0x57581a=_0x32420e();return null==_0x57581a?(_0x25d563(),_0x2296f5([0x56,0x61,0x6c,0x69,0x64])):_0x2296f5(_0xdf3596-_0x57581a>(0x1fc7411c^_0x30a921)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2296f5([0x74,0x68,0x65,0x6e])](_0x92571f)[_0x2296f5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x92571f(_0x2296f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x39fe39=0x3bfd2b9c^_0x30a921;function _0x25d563(){const _0x4ded9b=_0x2296f5([0x6c,0x6c,0x63,0x74,0x2d])+_0xec165a(_0x2d87d7(_0x286e17)),_0x2c1fb3=_0x3ecc64(_0xec165a(window[_0x2296f5([0x4d,0x61,0x74,0x68])][_0x2296f5([0x63,0x65,0x69,0x6c])](_0xdf3596/_0x39fe39)));window[_0x2296f5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2296f5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ded9b,_0x2c1fb3);}function _0x32420e(){const _0x44b4c=_0x2296f5([0x6c,0x6c,0x63,0x74,0x2d])+_0xec165a(_0x2d87d7(_0x286e17)),_0x3d8aa1=window[_0x2296f5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2296f5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44b4c);return _0x3d8aa1?window[_0x2296f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ecc64(_0x3d8aa1),0x10)*_0x39fe39:null;}function _0x34ed4d(_0x25ed76){return new window[(_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4990b8,_0xa29e66)=>{_0x25ed76[_0x2296f5([0x74,0x68,0x65,0x6e])](_0x4990b8,_0xa29e66),window[_0x2296f5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xa29e66,0x3bca11dc^_0x30a921);});}}_0x3bc9ba[_0x2296f5([0x6f,0x6e])](_0x2296f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x594111,_0x528abb)=>{if(_0x528abb[0x0]!=_0x286e17)return _0x92571f(_0x2296f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x528abb[0x1]={..._0x528abb[0x1],[_0x2296f5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e5327};},{[_0x2296f5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2296f5([0x68,0x69,0x67,0x68])}),_0x3bc9ba[_0x2296f5([0x6f,0x6e])](_0x2296f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2bb89d=>{_0x559e55(_0x2bb89d[_0x2296f5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4f5d15=!0x0,_0x4be237(_0x2bb89d[_0x2296f5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2296f5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2296f5([0x6c,0x6f,0x77])}),_0x1b3e9d[_0x2296f5([0x74,0x68,0x65,0x6e])](()=>{_0x4f5d15||_0x92571f(_0x2296f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc2d07b(){return _0x3bc9ba[_0x2296f5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2296f5([0x76,0x69,0x65,0x77])][_0x2296f5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2296f5([0x61,0x75,0x74,0x6f]);}function _0x1907ab(){_0x3bc9ba[_0x2296f5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2296f5([0x76,0x69,0x65,0x77])][_0x2296f5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2296f5([0x61,0x75,0x74,0x6f]);}}function _0x374308(_0x3bc433){const _0x3a0323=[new window[(_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28bb29=>setTimeout(_0x28bb29,0x3bc2fbd0^_0x30a921)),_0x1b3e9d[_0x2296f5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x261653=>{let _0x6600a5=0x0;_0x3bc9ba[_0x2296f5([0x6d,0x6f,0x64,0x65,0x6c])][_0x2296f5([0x6f,0x6e])](_0x2296f5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x226a6f,_0x1958ca)=>{_0x1958ca[0x0][_0x2296f5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x6600a5++,_0x6600a5==(0x3bcbc4e4^_0x30a921)&&(_0x261653(),_0x226a6f[_0x2296f5([0x6f,0x66,0x66])]());});}))];return window[_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2296f5([0x72,0x61,0x63,0x65])](_0x3a0323)[_0x2296f5([0x74,0x68,0x65,0x6e])](()=>_0x3bc433);}async function _0xe6f264(){await _0x1b3e9d,_0x3bc9ba[_0x2296f5([0x6d,0x6f,0x64,0x65,0x6c])][_0x2296f5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c272a,_0x3bc9ba[_0x2296f5([0x6d,0x6f,0x64,0x65,0x6c])][_0x2296f5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c272a,_0x3bc9ba[_0x2296f5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2296f5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x273394(_0x4a4b5a){const _0x6ebdee=_0x202764();_0x3bc9ba[_0x6ebdee]=_0x2296f5([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4a4b5a,_0x4a4b5a!=_0x2296f5([0x56,0x61,0x6c,0x69,0x64])&&_0xe6f264();}function _0x202764(){const _0x23efcc=window[_0x2296f5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2296f5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2296f5([0x6e,0x6f,0x77])]())[_0x2296f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2296f5([0x2e]),'');let _0x5c5c7a=_0x2296f5([0x4f]);for(let _0x1ae4c5=0x0;_0x1ae4c5<_0x23efcc[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ae4c5+=0x2){let _0x3fe59d=window[_0x2296f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23efcc[_0x2296f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ae4c5,_0x1ae4c5+0x2));_0x3fe59d>=_0x2809a2[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3fe59d-=_0x2809a2[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5c5c7a+=_0x2809a2[_0x3fe59d];}return _0x5c5c7a;}function _0x27f7da(){const _0xbef4cd=_0x4e016a[_0x2296f5([0x73,0x70,0x6c,0x69,0x74])](_0x2296f5([0x2e]));if(0x3!=_0xbef4cd[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x191320(_0xbef4cd[0x1]);function _0x191320(_0x2fecc6){const _0x14dc51=_0xedf7f4(_0x2fecc6);return _0x14dc51&&_0x5c7027()?_0x14dc51:null;function _0x5c7027(){const _0x5dbbc7=_0x14dc51[_0x2296f5([0x6a,0x74,0x69])],_0x12857e=window[_0x2296f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dbbc7[_0x2296f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5dbbc7[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc25daa={..._0x14dc51,[_0x2296f5([0x6a,0x74,0x69])]:_0x5dbbc7[_0x2296f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5dbbc7[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc25daa[_0x2296f5([0x76,0x63])],_0x2d87d7(_0xc25daa)==_0x12857e;}}}async function _0x2c084e(){let _0x672588=!0x0;try{const _0x6509f9=_0x4e016a[_0x2296f5([0x73,0x70,0x6c,0x69,0x74])](_0x2296f5([0x2e])),[_0x1effe2,_0x49f419,_0x32415b]=_0x6509f9;return _0x56adde(_0x1effe2),await _0x57e4d8(_0x1effe2,_0x49f419,_0x32415b),_0x672588;}catch(_0x48fa90){return!0x1;}function _0x56adde(_0x36610e){const _0x1f58a8=_0xedf7f4(_0x36610e);_0x1f58a8&&_0x1f58a8[_0x2296f5([0x61,0x6c,0x67])]==_0x2296f5([0x45,0x53,0x32,0x35,0x36])||(_0x672588=!0x1);}async function _0x57e4d8(_0x157fd0,_0x4e7e3f,_0x1aa553){const _0x352362=window[_0x2296f5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2296f5([0x66,0x72,0x6f,0x6d])](_0x498867(_0x1aa553),_0x165395=>_0x165395[_0x2296f5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x504df3=new window[(_0x2296f5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2296f5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x157fd0+_0x2296f5([0x2e])+_0x4e7e3f),_0x6fb1c=window[_0x2296f5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2296f5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6fb1c)return;const _0x1a776f=await _0x6fb1c[_0x2296f5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2296f5([0x6a,0x77,0x6b]),_0x10a639,{[_0x2296f5([0x6e,0x61,0x6d,0x65])]:_0x2296f5([0x45,0x43,0x44,0x53,0x41]),[_0x2296f5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2296f5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2296f5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6fb1c[_0x2296f5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2296f5([0x6e,0x61,0x6d,0x65])]:_0x2296f5([0x45,0x43,0x44,0x53,0x41]),[_0x2296f5([0x68,0x61,0x73,0x68])]:{[_0x2296f5([0x6e,0x61,0x6d,0x65])]:_0x2296f5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a776f,_0x352362,_0x504df3)||(_0x672588=!0x1);}}function _0xedf7f4(_0x50796e){return _0x50796e[_0x2296f5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2296f5([0x65,0x79]))?JSON[_0x2296f5([0x70,0x61,0x72,0x73,0x65])](_0x498867(_0x50796e)):null;}function _0x498867(_0x24fb9c){return window[_0x2296f5([0x61,0x74,0x6f,0x62])](_0x24fb9c[_0x2296f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2296f5([0x2b]))[_0x2296f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2296f5([0x2f])));}function _0x2d87d7(_0x129d6c){let _0x5542da=0x1505;function _0x398712(_0x40129d){for(let _0x2c8a4b=0x0;_0x2c8a4b<_0x40129d[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c8a4b++){const _0x353f58=_0x40129d[_0x2296f5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c8a4b);_0x5542da=(_0x5542da<<0x5)+_0x5542da+_0x353f58,_0x5542da&=_0x5542da;}}function _0x115170(_0x1562bc){Array[_0x2296f5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1562bc)?_0x1562bc[_0x2296f5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x115170):_0x1562bc&&typeof _0x1562bc==_0x2296f5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2296f5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1562bc)[_0x2296f5([0x73,0x6f,0x72,0x74])]()[_0x2296f5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xdeed05,_0x322595])=>{_0x398712(_0xdeed05),_0x115170(_0x322595);}):_0x398712(window[_0x2296f5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1562bc));}return _0x115170(_0x129d6c),_0x5542da>>>0x0;}function _0xec165a(_0x2fed1e){return _0x2fed1e[_0x2296f5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2296f5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2296f5([0x30]));}function _0x3ecc64(_0x3a1142){return _0x3a1142[_0x2296f5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2296f5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2296f5([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c272a(){}function _0x2296f5(_0x475217){return _0x475217['map'](_0x44f032=>String['fromCharCode'](_0x44f032))['join']('');}_0x273394(await _0x52f8a5());}(this);}['_initSchema'](){const _0x26ce7a=this['editor']['model']['schema'];_0x26ce7a['isRegistered']('imageBlock')&&_0x26ce7a['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x26ce7a['isRegistered']('imageInline')&&_0x26ce7a['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4d6fb3=this['editor'];_0x4d6fb3['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4d6fb3['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4eb29=>_0x4eb29['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4e14e6=_0x4d6fb3['commands']['get']('replaceImageSource');_0x4e14e6&&this['listenTo'](_0x4e14e6,'cleanupImage',(_0x2dad59,[_0x1c5ede,_0x4ccf86])=>{_0x1c5ede['removeAttribute']('uploadcareImageId',_0x4ccf86);});}['_initConfig'](){const _0x59266a=this['editor']['config']['get']('uploadcare.uploader')||{},_0xc14d05=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x379973(_0x1cff4f['document'],'uc-config',{..._0x59266a,'pubkey':_0xc14d05,'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']=_0x13927e=>{if('closeMax'==_0x13927e)return'#uc-icon-arrow-down';},_0x1cff4f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x379973(_0x1cff4f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x1cff4f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x53f16e=this['editor']['commands']['get']('insertImage');_0x53f16e&&this['listenTo'](_0x53f16e,'execute',()=>{const _0x24d448=this['editor']['model']['document']['selection']['getSelectedElement']();_0x24d448&&_0x24d448['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x24d448);});});const _0x4ee7a8=this['editor']['commands']['get']('uploadcareImageReplace');_0x4ee7a8&&this['listenTo'](_0x4ee7a8,'execute',()=>{const _0x595132=this['editor']['model']['document']['selection']['getSelectedElement']();_0x595132&&_0x595132['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x595132);});});}}class u extends _0x1dd4a0{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3499ec){super(_0x3499ec),_0x3499ec['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x44de83['defineComponents'](_0x44de83);}}class ta extends _0x1fa2e2{constructor(_0x2d7ba7){super(_0x2d7ba7);const t=_0x2d7ba7['t'],_0x27ce46=this['bindTemplate'],_0x513e5f=new _0x11ebe3();_0x513e5f['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':[_0x513e5f,{'text':_0x27ce46['to']('imageUploadProgress',_0x3fdded=>t('Loading\x20image...')+'\x20('+(_0x3fdded||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 _0x1fa2e2{constructor(_0x410c87){super(_0x410c87);const t=_0x410c87['t'];this['set']('errorType',null);const _0x583d53=new _0x16b6ef(_0x410c87);_0x583d53['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x583d53['withText']=!0x0,_0x583d53['class']='ck-button-action',_0x583d53['on']('execute',()=>{this['fire']('retry');}),_0x583d53['bind']('isVisible')['to'](this,'errorType',_0x3114ab=>'NotFound'!==_0x3114ab);const _0x3ed5b0=new at();_0x3ed5b0['content']=et,_0x3ed5b0['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x11415e=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':[_0x3ed5b0,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x11415e['to']('errorType',_0x4db2cb=>t('NotFound'!==_0x4db2cb?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x583d53]},{'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 _0x1fa2e2{constructor(_0x17391b,_0x1863ff){super(_0x17391b);const _0x29436d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1863ff,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x29436d['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2ffe31,_0x23f942,_0x2d3b6f){super(_0x2ffe31),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x2ffe31),this['_errorView']=new rt(_0x2ffe31),this['_editingView']=new tt(_0x2ffe31,_0x2d3b6f),this['_focusableView']=new _0x1fa2e2(_0x2ffe31),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x23f942),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'],_0x23f2d8=>{this['_addUploadcareImageEditorListeners'](_0x23f2d8);});}),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'](_0x2395c5,_0x38ff9a){const _0x5ebbe4='uc-cloud-image-editor',_0x25d9e9=_0x2395c5['querySelector'](_0x5ebbe4);if(_0x25d9e9)return _0x38ff9a(_0x25d9e9);const _0x58a3be=new MutationObserver(_0x4f073c=>{const _0x5d9bcf=_0x4f073c['filter'](_0x502e95=>_0x502e95['target']===_0x2395c5&&_0x502e95['addedNodes']['length']>0x0&&_0x502e95['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5ebbe4);_0x5d9bcf['length']&&(_0x58a3be['disconnect'](),_0x38ff9a(_0x5d9bcf[0x0]['addedNodes'][0x0]));});_0x58a3be['observe'](_0x2395c5,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x42d7ba){_0x42d7ba['addEventListener']('apply',_0x1e88ea=>{this['fire']('apply',{'imageSrc':_0x1e88ea['detail']['cdnUrl']});}),_0x42d7ba['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x31b995(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5302a5,_0xbc0ae5,_0x8371d6){super(),this['_editor']=_0x5302a5,this['_dialog']=_0xbc0ae5,this['_imageElement']=_0x8371d6,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 _0x52a2dd=this['_imageElement'],_0x10ae4a=_0x52a2dd['getAttribute']('uploadcareImageId'),_0xef33f8=_0x52a2dd['getAttribute']('src');if(_0x10ae4a)await this['_loadImageInfo'](_0x10ae4a,_0xef33f8);else{if(this['_imageCache']['has'](_0xef33f8)){const _0x544db0=this['_imageCache']['get'](_0xef33f8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x544db0['url'],this['imageDimension']=_0x544db0['dimension'],this['imageId']=_0x544db0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x47073b}=this['_editor'],t=_0x47073b['t'],_0x8b1491=new Z(_0x47073b,this['imageStatus'],this['_attributes']);_0x8b1491['bind']('status')['to'](this,'imageStatus'),_0x8b1491['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x8b1491['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x8b1491['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x8b1491,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x56a8ab,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x8b1491,'position':_0x1c3d19['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x8b1491['focus']();},'onHide':()=>{_0x8b1491['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x588a12=>!F(_0x588a12,_0x8b1491['element'])}});}['_loadImageInfo'](_0x3aa8e8,_0x2d2c6e){return C['getInfo'](_0x3aa8e8,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x549c70=>{const {width:_0x5ecaa7,height:_0x44c8b8}=_0x549c70['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2d2c6e,this['imageDimension']={'width':_0x5ecaa7,'height':_0x44c8b8},this['imageId']=_0x3aa8e8;})['catch'](_0xcae8a2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xcae8a2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x52ba99,_0x40df70){return this['_getImageAsFile'](_0x52ba99)['then'](_0xca12f7=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x40df70['signal'],'file':_0xca12f7,'onProgress':_0x3d6f68=>{_0x3d6f68&&_0x3d6f68['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3d6f68['value']));}}))['then'](_0x14955c=>{const {width:_0x359d1a,height:_0x32ceef}=_0x14955c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x14955c['cdnUrl'],this['imageDimension']={'width':_0x359d1a,'height':_0x32ceef},this['imageId']=_0x14955c['uuid'],this['imageUploadProgress']=null;const _0x3f0b7e=_0x52ba99['getAttribute']('src');this['_imageCache']['set'](_0x3f0b7e,{'id':_0x14955c['uuid'],'url':_0x14955c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x46bde6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x46bde6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xd19539,_0x5e0b6f){_0xd19539['on']('apply',(_0x57b3f4,_0x20e8cd)=>{this['_replaceImage'](_0x5e0b6f,_0x20e8cd['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xd19539['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xd19539['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3fe5c9,_0x39ba6f,_0x366895){const _0x9da0e4=this['_editor'],{width:_0x258452,height:_0x59bff1}=A(_0x39ba6f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x16a1a4,imageSources:_0x19299e}=E(_0x39ba6f,_0x258452);_0x9da0e4['model']['change'](_0xf7d8d7=>{if('$graveyard'===_0x3fe5c9['root']['rootName']){_0x9da0e4['execute']('insertImage',{'imageType':_0x3fe5c9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3fe5c9['getAttributes']()),'uploadcareImageId':_0x366895,'src':_0x16a1a4,'sources':_0x19299e,'width':_0x258452,'height':_0x59bff1}});const _0x510199=_0x3fe5c9['getChildren']();_0x3fe5c9=_0x9da0e4['model']['document']['selection']['getSelectedElement']();for(const _0x599273 of _0x510199)_0xf7d8d7['append'](_0xf7d8d7['cloneElement'](_0x599273),_0x3fe5c9);}else _0xf7d8d7['setSelection'](_0x3fe5c9,'on'),_0x9da0e4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3fe5c9['getAttributes']()),'uploadcareImageId':_0x366895,'src':_0x16a1a4,'sources':_0x19299e,'width':_0x258452,'height':_0x59bff1},_0x3fe5c9);_0xf7d8d7['setSelection'](_0x3fe5c9,'on');});}async['_getImageAsFile'](_0x2f8747){const _0x3dfdb3=_0x1cff4f['window'],_0x3d5368=_0x1cff4f['document']['location']['href'],_0x124949=new _0x3dfdb3['URL'](_0x2f8747['getAttribute']('src'),_0x3d5368);if('data:'===_0x124949['protocol']){const _0x454616=_0x124949['href']['split'](','),_0x30b387=_0x454616[0x0]['match'](/:(.*?);/)[0x1],_0x432e81=_0x30b387['split']('/')[0x1],_0x30df7a=_0x3dfdb3['atob'](_0x454616[_0x454616['length']-0x1]);let _0x12e878=_0x30df7a['length'];const _0x3d73a6=new _0x3dfdb3['Uint8Array'](_0x12e878);for(;_0x12e878--;)_0x3d73a6[_0x12e878]=_0x30df7a['charCodeAt'](_0x12e878);return new _0x3dfdb3['File']([_0x3d73a6],'image.'+_0x432e81,{'type':_0x30b387});}const _0x19c1b3=_0x124949['href']['split']('/'),_0x16fbf4=_0x19c1b3[_0x19c1b3['length']-0x1],_0x110dac=_0x16fbf4['split']('.')[0x1];return _0x3dfdb3['fetch'](_0x124949['href'])['then'](_0x3b5034=>_0x3b5034['clone']()['blob']())['then'](_0x4f377f=>new _0x3dfdb3['File']([_0x4f377f],_0x16fbf4,{'type':'image/'+_0x110dac}));}}class J extends _0x3f38b4{['imageEditController'];static get['requires'](){return[_0x5c5908];}['_isEditable'];constructor(_0x99f578){super(_0x99f578),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x112ed3){const _0x3f448d=V(_0x112ed3);return _0x48b6aa=>!(!_0x48b6aa||!_0x48b6aa['is']('element','imageBlock')&&!_0x48b6aa['is']('element','imageInline'))&&(!!_0x48b6aa['hasAttribute']('uploadcareImageId')||!!_0x48b6aa['hasAttribute']('src')&&_0x3f448d(_0x48b6aa['getAttribute']('src')));}(_0x99f578['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5548b6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5548b6);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x559455=this['editor']['model']['document']['selection']['getSelectedElement']();_0x559455&&(_0x559455['is']('element','imageBlock')||_0x559455['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x5c5908),_0x559455),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x3f38b4{['refresh'](){const _0x26f0b7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x26f0b7&&(_0x26f0b7['is']('element','imageBlock')||_0x26f0b7['is']('element','imageInline')));}['execute'](_0x2e89f2){const _0x36a679=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x295ae0=>{_0x295ae0['setAttributes'](_0x2e89f2,_0x36a679),_0x295ae0['removeAttribute']('srcset',_0x36a679),_0x295ae0['removeAttribute']('sizes',_0x36a679);});}}class g extends _0x1dd4a0{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x43e758,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x291ce8}=this;_0x291ce8['commands']['add']('uploadcareImageEdit',new J(_0x291ce8)),_0x291ce8['commands']['add']('uploadcareImageReplace',new O(_0x291ce8));}}class j extends _0x1dd4a0{['_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 _0xff4561=this['editor'];_0xff4561['ui']['componentFactory']['add']('uploadcareImageEdit',_0x100334=>{const _0x558767=_0xff4561['commands']['get']('uploadcareImageEdit'),_0x143343=new _0x16b6ef(_0x100334),t=_0x100334['t'];return _0x143343['set']({'icon':_0x56a8ab,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x143343['bind']('isEnabled')['to'](_0x558767),_0x143343['bind']('isOn')['to'](_0x558767,'isActive'),this['listenTo'](_0x143343,'execute',()=>{_0xff4561['execute']('uploadcareImageEdit'),_0xff4561['editing']['view']['focus']();}),_0x143343;}),this['_initConfig']();}['_initConfig'](){const _0x480b96=_0x379973(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x480b96),this['listenTo'](this['editor'],'destroy',()=>{_0x480b96['remove']();});}}class P extends _0x1dd4a0{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-20250406.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-20250406.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250406.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250406.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250406.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250406.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250406.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250406.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250406.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 _0x158dfa=_0x74bb;(function(_0x31e19a,_0x58c30c){const _0x2f9414=_0x74bb,_0x5f2527=_0x31e19a();while(!![]){try{const _0x43bb5f=-parseInt(_0x2f9414(0x195))/0x1+parseInt(_0x2f9414(0x1cf))/0x2*(-parseInt(_0x2f9414(0x1cb))/0x3)+-parseInt(_0x2f9414(0x1e2))/0x4+-parseInt(_0x2f9414(0x197))/0x5+-parseInt(_0x2f9414(0x1a6))/0x6*(parseInt(_0x2f9414(0x1d1))/0x7)+-parseInt(_0x2f9414(0x19f))/0x8+parseInt(_0x2f9414(0x1af))/0x9;if(_0x43bb5f===_0x58c30c)break;else _0x5f2527['push'](_0x5f2527['shift']());}catch(_0x1d3759){_0x5f2527['push'](_0x5f2527['shift']());}}}(_0x28cf,0xcc6de));import{Plugin as _0x30045c}from'ckeditor5/src/core.js';function _0x74bb(_0x2bc4be,_0x20d424){const _0x28cfe2=_0x28cf();return _0x74bb=function(_0x74bb19,_0x511ab8){_0x74bb19=_0x74bb19-0x195;let _0x1eca15=_0x28cfe2[_0x74bb19];return _0x1eca15;},_0x74bb(_0x2bc4be,_0x20d424);}function _0x28cf(){const _0x5c2d7d=['elementToAttribute','8063620MZqNqh','extend','appendChild','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','downcast','uploadcare.uploader','render','8826784pmViBo','_ctxElement','_configElement','uploader','uploadcare','uc-config','data-uc-image-id','494250JsSWZf','once','body','schema','isPremiumPlugin','contentLanguage','uploadcareImageId','#uc-icon-arrow-down','_initSchema','46956042fiAaZL','href','destroy','closeMax','editor','listenTo','_initConversion','requires','remove','view','attributeToAttribute','removeAttribute','querySelector','_initCtx','configElement','document','locale','UploadcareEditing','imageInline','replaceImageSource','fromCharCode','model','iconHrefResolver','config','join','insertImage','cleanupImage','editing','73230pBAtdX','add','pluginName','for','26UQYAzt','_initImageProcessingIndicator','35MnKlGG','_initConfig','uploadcare.pubkey','commands','imageBlock','uploadcareImageReplace','isRegistered','selection','afterInit','true','uc-upload-ctx-provider','execute','getAttribute','input[uploadcare-file-input]','upcast','get','map','2595120roixCz','conversion','PictureEditing','ctxElement','init','isOfficialPlugin','285939TuyjRs'];_0x28cf=function(){return _0x5c2d7d;};return _0x28cf();}import{Dialog as _0x42b765}from'ckeditor5/src/ui.js';import{createElement as _0x3459bd,global as _0x51c861,uid as _0x126b3e}from'ckeditor5/src/utils.js';import _0x1a4a4a from'./uploadcarecommand.js';import _0x4dc040 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x57ffc3}from'./utils/editingutils.js';export default class i extends _0x30045c{[_0x158dfa(0x1a1)]=null;[_0x158dfa(0x1a0)]=null;static get[_0x158dfa(0x1cd)](){const _0x206377=_0x158dfa;return _0x206377(0x1c0);}static get[_0x158dfa(0x1b6)](){const _0x155356=_0x158dfa;return[_0x155356(0x1e4),_0x4dc040,_0x42b765];}static get[_0x158dfa(0x1e7)](){return!0x0;}static get[_0x158dfa(0x1aa)](){return!0x0;}get[_0x158dfa(0x1bd)](){const _0x148e01=_0x158dfa;return this[_0x148e01(0x1a1)];}get[_0x158dfa(0x1e5)](){const _0x3fde3d=_0x158dfa;return this[_0x3fde3d(0x1a0)];}[_0x158dfa(0x1e6)](){const _0x11386d=_0x158dfa,_0x1fbbb1=this[_0x11386d(0x1b3)];_0x1fbbb1[_0x11386d(0x1d4)][_0x11386d(0x1cc)](_0x11386d(0x1a3),new _0x1a4a4a(_0x1fbbb1));}[_0x158dfa(0x1d9)](){const _0x12982e=_0x158dfa;this[_0x12982e(0x1ae)](),this[_0x12982e(0x1b5)](),this[_0x12982e(0x1d2)](),this[_0x12982e(0x1bc)](),this[_0x12982e(0x1d0)](),this[_0x12982e(0x1b4)](this[_0x12982e(0x1b3)],_0x12982e(0x1b1),()=>{const _0x2a33b8=_0x12982e;this[_0x2a33b8(0x1a1)]&&(this[_0x2a33b8(0x1a1)][_0x2a33b8(0x1b7)](),this[_0x2a33b8(0x1a1)]=null),this[_0x2a33b8(0x1a0)]&&(this[_0x2a33b8(0x1a0)][_0x2a33b8(0x1b7)](),this[_0x2a33b8(0x1a0)]=null);const _0xdd3fa4=_0x51c861[_0x2a33b8(0x1be)][_0x2a33b8(0x1bb)](_0x2a33b8(0x1de));_0xdd3fa4&&_0xdd3fa4[_0x2a33b8(0x1b7)]();}),async function(_0x524612){const _0x1326b9=_0x17b4d0([0x72,0x5a,0x4a,0x6c,0x74,0x50,0x70,0x66,0x43,0x76,0x65,0x44,0x39,0x6f,0x47,0x59,0x69,0x54,0x42,0x6d,0x75,0x35,0x77,0x78,0x67,0x30,0x73,0x4d,0x32,0x38,0x6e,0x46,0x4b,0x56,0x7a,0x51,0x71,0x64,0x6a,0x36,0x79,0x41,0x62,0x6b,0x63,0x68,0x45,0x53,0x31,0x4f,0x61,0x58,0x48,0x34,0x33,0x49,0x4e,0x55,0x52,0x37,0x57,0x4c]),_0x394ef9=0x388f4fdc,_0x55a920=0x38882bf4^_0x394ef9,_0xa98175=window[_0x17b4d0([0x44,0x61,0x74,0x65])][_0x17b4d0([0x6e,0x6f,0x77])](),_0x41ec64=_0x524612[_0x17b4d0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2df855=new window[(_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ccfaf=>{_0x41ec64[_0x17b4d0([0x6f,0x6e,0x63,0x65])](_0x17b4d0([0x72,0x65,0x61,0x64,0x79]),_0x5ccfaf);}),_0x311ecf={[_0x17b4d0([0x6b,0x74,0x79])]:_0x17b4d0([0x45,0x43]),[_0x17b4d0([0x75,0x73,0x65])]:_0x17b4d0([0x73,0x69,0x67]),[_0x17b4d0([0x63,0x72,0x76])]:_0x17b4d0([0x50,0x2d,0x32,0x35,0x36]),[_0x17b4d0([0x78])]:_0x17b4d0([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]),[_0x17b4d0([0x79])]:_0x17b4d0([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]),[_0x17b4d0([0x61,0x6c,0x67])]:_0x17b4d0([0x45,0x53,0x32,0x35,0x36])},_0x5670bb=_0x41ec64[_0x17b4d0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x17b4d0([0x67,0x65,0x74])](_0x17b4d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x39d40a(){let _0x3790fa,_0x5e89b0=null,_0x308b47=null;try{if(_0x5670bb==_0x17b4d0([0x47,0x50,0x4c]))return _0x17b4d0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3790fa=_0xa701b2(),!_0x3790fa)return _0x17b4d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3790fa[_0x17b4d0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x308b47=_0x33f7a2(_0x3790fa[_0x17b4d0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3790fa[_0x17b4d0([0x6a,0x74,0x69])])),await _0x36a8c6()?_0x1e69cf()?_0x2535dd()?_0x17b4d0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xb80cc0()?(_0x3790fa[_0x17b4d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17b4d0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e89b0=_0x15b9d0(_0x17b4d0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3790fa[_0x17b4d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17b4d0([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e89b0=_0x15b9d0(_0x17b4d0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x29b790()):_0x17b4d0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x17b4d0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x17b4d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1eb8ee){return _0x17b4d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2535dd(){const _0x510df3=[_0x17b4d0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x17b4d0([0x74,0x72,0x69,0x61,0x6c])][_0x17b4d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3790fa[_0x17b4d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xa98175/0x3e8:0xe10*_0x55a920;return _0x3790fa[_0x17b4d0([0x65,0x78,0x70])]<_0x510df3;}function _0x1e69cf(){const _0x5c01ac=_0x3790fa[_0x17b4d0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5c01ac&&(!!_0x5c01ac[_0x17b4d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17b4d0([0x2a]))||!!_0x5c01ac[_0x17b4d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17b4d0([0x55,0x50,0x4c,0x43])));}function _0xb80cc0(){const _0x554595=_0x74bb,_0x3c4a43=_0x3790fa[_0x17b4d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c4a43||0x0==_0x3c4a43[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x378983}=new URL(window[_0x17b4d0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x554595(0x1b0)]);if(_0x3c4a43[_0x17b4d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x378983))return!0x0;const _0xd19c68=_0x378983[_0x17b4d0([0x73,0x70,0x6c,0x69,0x74])](_0x17b4d0([0x2e]));return _0x3c4a43[_0x17b4d0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19838f=>_0x19838f[_0x17b4d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17b4d0([0x2a])))[_0x17b4d0([0x6d,0x61,0x70])](_0x7f0831=>_0x7f0831[_0x17b4d0([0x73,0x70,0x6c,0x69,0x74])](_0x17b4d0([0x2e])))[_0x17b4d0([0x73,0x6f,0x6d,0x65])](_0x14caba=>_0xd19c68[_0x17b4d0([0x65,0x76,0x65,0x72,0x79])]((_0x9cc7ac,_0x20316e)=>_0x14caba[_0x20316e]===_0x9cc7ac||_0x14caba[_0x20316e]===_0x17b4d0([0x2a])));}function _0x29b790(){return _0x5e89b0&&_0x308b47?new window[(_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x171bf7,_0x4848d6)=>{_0x5e89b0[_0x17b4d0([0x74,0x68,0x65,0x6e])](_0x171bf7,_0x4848d6),_0x308b47[_0x17b4d0([0x74,0x68,0x65,0x6e])](_0x1b83ac=>{_0x1b83ac!=_0x17b4d0([0x56,0x61,0x6c,0x69,0x64])&&_0x171bf7(_0x1b83ac);},_0x4848d6);}):_0x5e89b0||_0x308b47||_0x17b4d0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x33f7a2(_0x2fe638,_0x2bbc69){return new window[(_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5377f0=>{if(_0x100661())return _0x5377f0(_0x17b4d0([0x56,0x61,0x6c,0x69,0x64]));_0x5a4b62(),_0x41ec64[_0x17b4d0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x17b4d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1cca6b=!0x1;const _0x2f03b8=_0x126b3e();function _0x2b9880(_0x5a0b76){return!!_0x5a0b76&&(typeof _0x5a0b76===_0x17b4d0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a0b76===_0x17b4d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a0b76[_0x17b4d0([0x74,0x68,0x65,0x6e])]===_0x17b4d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a0b76[_0x17b4d0([0x63,0x61,0x74,0x63,0x68])]===_0x17b4d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5682a7(_0x317dec){_0xf89a04(_0x317dec)[_0x17b4d0([0x74,0x68,0x65,0x6e])](_0xf9ae04=>{if(!_0xf9ae04||_0xf9ae04[_0x17b4d0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x17b4d0([0x6f,0x6b]))return _0x17b4d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5f3d4f(_0x3a024e(_0x2f03b8+_0x2bbc69))!=_0xf9ae04[_0x17b4d0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x17b4d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x17b4d0([0x56,0x61,0x6c,0x69,0x64]);})[_0x17b4d0([0x74,0x68,0x65,0x6e])](_0x43a0e8=>(_0x59bf6b(),_0x43a0e8),()=>{const _0xcc7764=_0x49d6f2();return null==_0xcc7764?(_0x59bf6b(),_0x17b4d0([0x56,0x61,0x6c,0x69,0x64])):_0x17b4d0(_0xa98175-_0xcc7764>(0x1c83cbdc^_0x394ef9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x17b4d0([0x74,0x68,0x65,0x6e])](_0x5377f0)[_0x17b4d0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5377f0(_0x17b4d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1726f2=0x38b9a15c^_0x394ef9;function _0x59bf6b(){const _0x4ead88=_0x17b4d0([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f3d4f(_0x3a024e(_0x2fe638)),_0x3ccd1b=_0x12dfcc(_0x5f3d4f(window[_0x17b4d0([0x4d,0x61,0x74,0x68])][_0x17b4d0([0x63,0x65,0x69,0x6c])](_0xa98175/_0x1726f2)));window[_0x17b4d0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17b4d0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ead88,_0x3ccd1b);}function _0x49d6f2(){const _0xfa7cb3=_0x17b4d0([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f3d4f(_0x3a024e(_0x2fe638)),_0x27ca71=window[_0x17b4d0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17b4d0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfa7cb3);return _0x27ca71?window[_0x17b4d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12dfcc(_0x27ca71),0x10)*_0x1726f2:null;}function _0xf89a04(_0x784ace){return new window[(_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc15a6e,_0x423ce5)=>{_0x784ace[_0x17b4d0([0x74,0x68,0x65,0x6e])](_0xc15a6e,_0x423ce5),window[_0x17b4d0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x423ce5,0x388e9b1c^_0x394ef9);});}}_0x41ec64[_0x17b4d0([0x6f,0x6e])](_0x17b4d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1e05c6,_0xbf9e55)=>{if(_0xbf9e55[0x0]!=_0x2fe638)return _0x5377f0(_0x17b4d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xbf9e55[0x1]={..._0xbf9e55[0x1],[_0x17b4d0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f03b8};},{[_0x17b4d0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17b4d0([0x68,0x69,0x67,0x68])}),_0x41ec64[_0x17b4d0([0x6f,0x6e])](_0x17b4d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x50537c=>{_0x2b9880(_0x50537c[_0x17b4d0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1cca6b=!0x0,_0x5682a7(_0x50537c[_0x17b4d0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x17b4d0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17b4d0([0x6c,0x6f,0x77])}),_0x2df855[_0x17b4d0([0x74,0x68,0x65,0x6e])](()=>{_0x1cca6b||_0x5377f0(_0x17b4d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x100661(){return _0x41ec64[_0x17b4d0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17b4d0([0x76,0x69,0x65,0x77])][_0x17b4d0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x17b4d0([0x61,0x75,0x74,0x6f]);}function _0x5a4b62(){_0x41ec64[_0x17b4d0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17b4d0([0x76,0x69,0x65,0x77])][_0x17b4d0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17b4d0([0x61,0x75,0x74,0x6f]);}}function _0x15b9d0(_0x2eeb8b){const _0x435189=[new window[(_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d2645=>setTimeout(_0x3d2645,0x38867110^_0x394ef9)),_0x2df855[_0x17b4d0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4133ee=>{let _0x1ce95d=0x0;_0x41ec64[_0x17b4d0([0x6d,0x6f,0x64,0x65,0x6c])][_0x17b4d0([0x6f,0x6e])](_0x17b4d0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd66408,_0x2e4f4f)=>{_0x2e4f4f[0x0][_0x17b4d0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ce95d++,_0x1ce95d==(0x388f4e24^_0x394ef9)&&(_0x4133ee(),_0xd66408[_0x17b4d0([0x6f,0x66,0x66])]());});}))];return window[_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17b4d0([0x72,0x61,0x63,0x65])](_0x435189)[_0x17b4d0([0x74,0x68,0x65,0x6e])](()=>_0x2eeb8b);}async function _0x41d841(){await _0x2df855,_0x41ec64[_0x17b4d0([0x6d,0x6f,0x64,0x65,0x6c])][_0x17b4d0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2d0c92,_0x41ec64[_0x17b4d0([0x6d,0x6f,0x64,0x65,0x6c])][_0x17b4d0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2d0c92,_0x41ec64[_0x17b4d0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x17b4d0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x21752e(_0x59c178){const _0x11a70a=_0x4ac333();_0x41ec64[_0x11a70a]=_0x17b4d0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x59c178,_0x59c178!=_0x17b4d0([0x56,0x61,0x6c,0x69,0x64])&&_0x41d841();}function _0x4ac333(){const _0x4c520b=window[_0x17b4d0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x17b4d0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x17b4d0([0x6e,0x6f,0x77])]())[_0x17b4d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x17b4d0([0x2e]),'');let _0x335362=_0x17b4d0([0x72]);for(let _0xb62c23=0x0;_0xb62c23<_0x4c520b[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb62c23+=0x2){let _0x462291=window[_0x17b4d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c520b[_0x17b4d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb62c23,_0xb62c23+0x2));_0x462291>=_0x1326b9[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x462291-=_0x1326b9[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x335362+=_0x1326b9[_0x462291];}return _0x335362;}function _0xa701b2(){const _0x3e9b0d=_0x5670bb[_0x17b4d0([0x73,0x70,0x6c,0x69,0x74])](_0x17b4d0([0x2e]));if(0x3!=_0x3e9b0d[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c4849(_0x3e9b0d[0x1]);function _0x4c4849(_0x19842f){const _0x2dbf76=_0xe39e77(_0x19842f);return _0x2dbf76&&_0x3f4bb7()?_0x2dbf76:null;function _0x3f4bb7(){const _0x3b4f36=_0x2dbf76[_0x17b4d0([0x6a,0x74,0x69])],_0x4664bc=window[_0x17b4d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b4f36[_0x17b4d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b4f36[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x28f1a1={..._0x2dbf76,[_0x17b4d0([0x6a,0x74,0x69])]:_0x3b4f36[_0x17b4d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3b4f36[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x28f1a1[_0x17b4d0([0x76,0x63])],_0x3a024e(_0x28f1a1)==_0x4664bc;}}}async function _0x36a8c6(){let _0x67f857=!0x0;try{const _0x22beb3=_0x5670bb[_0x17b4d0([0x73,0x70,0x6c,0x69,0x74])](_0x17b4d0([0x2e])),[_0x5f0171,_0x16be1a,_0x4d6acc]=_0x22beb3;return _0x51f06e(_0x5f0171),await _0x46dd0b(_0x5f0171,_0x16be1a,_0x4d6acc),_0x67f857;}catch(_0x331880){return!0x1;}function _0x51f06e(_0x2fbe64){const _0x43fbe0=_0xe39e77(_0x2fbe64);_0x43fbe0&&_0x43fbe0[_0x17b4d0([0x61,0x6c,0x67])]==_0x17b4d0([0x45,0x53,0x32,0x35,0x36])||(_0x67f857=!0x1);}async function _0x46dd0b(_0x47a5e6,_0x1146f9,_0x493b95){const _0x2a2146=window[_0x17b4d0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x17b4d0([0x66,0x72,0x6f,0x6d])](_0x2e4935(_0x493b95),_0x4db50d=>_0x4db50d[_0x17b4d0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x310cd0=new window[(_0x17b4d0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x17b4d0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x47a5e6+_0x17b4d0([0x2e])+_0x1146f9),_0x6d8168=window[_0x17b4d0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x17b4d0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6d8168)return;const _0x305b01=await _0x6d8168[_0x17b4d0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x17b4d0([0x6a,0x77,0x6b]),_0x311ecf,{[_0x17b4d0([0x6e,0x61,0x6d,0x65])]:_0x17b4d0([0x45,0x43,0x44,0x53,0x41]),[_0x17b4d0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x17b4d0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x17b4d0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6d8168[_0x17b4d0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x17b4d0([0x6e,0x61,0x6d,0x65])]:_0x17b4d0([0x45,0x43,0x44,0x53,0x41]),[_0x17b4d0([0x68,0x61,0x73,0x68])]:{[_0x17b4d0([0x6e,0x61,0x6d,0x65])]:_0x17b4d0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x305b01,_0x2a2146,_0x310cd0)||(_0x67f857=!0x1);}}function _0xe39e77(_0x4c19fa){return _0x4c19fa[_0x17b4d0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x17b4d0([0x65,0x79]))?JSON[_0x17b4d0([0x70,0x61,0x72,0x73,0x65])](_0x2e4935(_0x4c19fa)):null;}function _0x2e4935(_0x468c0b){return window[_0x17b4d0([0x61,0x74,0x6f,0x62])](_0x468c0b[_0x17b4d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x17b4d0([0x2b]))[_0x17b4d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x17b4d0([0x2f])));}function _0x3a024e(_0x360da2){let _0x1693e7=0x1505;function _0x5934f4(_0x58e3dd){for(let _0x1ac9e8=0x0;_0x1ac9e8<_0x58e3dd[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ac9e8++){const _0x32adeb=_0x58e3dd[_0x17b4d0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1ac9e8);_0x1693e7=(_0x1693e7<<0x5)+_0x1693e7+_0x32adeb,_0x1693e7&=_0x1693e7;}}function _0x40bb54(_0x5b0f3e){Array[_0x17b4d0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5b0f3e)?_0x5b0f3e[_0x17b4d0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x40bb54):_0x5b0f3e&&typeof _0x5b0f3e==_0x17b4d0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x17b4d0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5b0f3e)[_0x17b4d0([0x73,0x6f,0x72,0x74])]()[_0x17b4d0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x397610,_0x133c19])=>{_0x5934f4(_0x397610),_0x40bb54(_0x133c19);}):_0x5934f4(window[_0x17b4d0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5b0f3e));}return _0x40bb54(_0x360da2),_0x1693e7>>>0x0;}function _0x5f3d4f(_0x1afec5){return _0x1afec5[_0x17b4d0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x17b4d0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x17b4d0([0x30]));}function _0x12dfcc(_0x41f519){return _0x41f519[_0x17b4d0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x17b4d0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x17b4d0([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d0c92(){}function _0x17b4d0(_0x2c4685){const _0x26524a=_0x74bb;return _0x2c4685[_0x26524a(0x1e1)](_0x466d48=>String[_0x26524a(0x1c3)](_0x466d48))[_0x26524a(0x1c7)]('');}_0x21752e(await _0x39d40a());}(this);}[_0x158dfa(0x1ae)](){const _0x359af0=_0x158dfa,_0x57f9b0=this[_0x359af0(0x1b3)][_0x359af0(0x1c4)][_0x359af0(0x1a9)];_0x57f9b0[_0x359af0(0x1d7)](_0x359af0(0x1d5))&&_0x57f9b0[_0x359af0(0x198)](_0x359af0(0x1d5),{'allowAttributes':[_0x359af0(0x1ac)]}),_0x57f9b0[_0x359af0(0x1d7)](_0x359af0(0x1c1))&&_0x57f9b0[_0x359af0(0x198)](_0x359af0(0x1c1),{'allowAttributes':[_0x359af0(0x1ac)]});}[_0x158dfa(0x1b5)](){const _0x38b5f5=_0x158dfa,_0x40add5=this[_0x38b5f5(0x1b3)];_0x40add5[_0x38b5f5(0x1e3)][_0x38b5f5(0x1ce)](_0x38b5f5(0x19c))[_0x38b5f5(0x1b9)]({'model':_0x38b5f5(0x1ac),'view':_0x38b5f5(0x1a5)}),_0x40add5[_0x38b5f5(0x1e3)][_0x38b5f5(0x1ce)](_0x38b5f5(0x1df))[_0x38b5f5(0x196)]({'model':{'key':_0x38b5f5(0x1ac),'value':_0x4ff925=>_0x4ff925[_0x38b5f5(0x1dd)](_0x38b5f5(0x1a5))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x51c504=_0x40add5[_0x38b5f5(0x1d4)][_0x38b5f5(0x1e0)](_0x38b5f5(0x1c2));_0x51c504&&this[_0x38b5f5(0x1b4)](_0x51c504,_0x38b5f5(0x1c9),(_0x3befdd,[_0x533af3,_0x3c1b94])=>{const _0x2f4a1a=_0x38b5f5;_0x533af3[_0x2f4a1a(0x1ba)](_0x2f4a1a(0x1ac),_0x3c1b94);});}[_0x158dfa(0x1d2)](){const _0x2cbca1=_0x158dfa,_0x5475d1=this[_0x2cbca1(0x1b3)][_0x2cbca1(0x1c6)][_0x2cbca1(0x1e0)](_0x2cbca1(0x19d))||{},_0x14f1a0=this[_0x2cbca1(0x1b3)][_0x2cbca1(0x1c6)][_0x2cbca1(0x1e0)](_0x2cbca1(0x1d3))||'';this[_0x2cbca1(0x1a1)]=_0x3459bd(_0x51c861[_0x2cbca1(0x1be)],_0x2cbca1(0x1a4),{..._0x5475d1,'pubkey':_0x14f1a0,'ctx-name':_0x2cbca1(0x1a2),'sourceList':'','imgOnly':_0x2cbca1(0x1da),'removeCopyright':_0x2cbca1(0x1da),'localeName':this[_0x2cbca1(0x1b3)][_0x2cbca1(0x1bf)][_0x2cbca1(0x1ab)],'externalSourcesEmbedCss':_0x2cbca1(0x19b)}),this[_0x2cbca1(0x1a1)][_0x2cbca1(0x1c5)]=_0x2c347a=>{const _0xbb86d6=_0x2cbca1;if(_0xbb86d6(0x1b2)==_0x2c347a)return _0xbb86d6(0x1ad);},_0x51c861[_0x2cbca1(0x1be)][_0x2cbca1(0x1a8)][_0x2cbca1(0x199)](this[_0x2cbca1(0x1a1)]);}[_0x158dfa(0x1bc)](){const _0xe654f8=_0x158dfa;this[_0xe654f8(0x1a0)]=_0x3459bd(_0x51c861[_0xe654f8(0x1be)],_0xe654f8(0x1db),{'ctx-name':_0xe654f8(0x1a2)}),_0x51c861[_0xe654f8(0x1be)][_0xe654f8(0x1a8)][_0xe654f8(0x199)](this[_0xe654f8(0x1a0)]);}[_0x158dfa(0x1d0)](){const _0x22ee65=_0x158dfa,_0xe465f6=this[_0x22ee65(0x1b3)][_0x22ee65(0x1d4)][_0x22ee65(0x1e0)](_0x22ee65(0x1c8));_0xe465f6&&this[_0x22ee65(0x1b4)](_0xe465f6,_0x22ee65(0x1dc),()=>{const _0x109f95=_0x22ee65,_0x357a2e=this[_0x109f95(0x1b3)][_0x109f95(0x1c4)][_0x109f95(0x1be)][_0x109f95(0x1d8)][_0x109f95(0x19a)]();_0x357a2e&&_0x357a2e[_0x109f95(0x1dd)](_0x109f95(0x1ac))&&this[_0x109f95(0x1b3)][_0x109f95(0x1ca)][_0x109f95(0x1b8)][_0x109f95(0x1a7)](_0x109f95(0x19e),()=>{const _0xbf245=_0x109f95;_0x57ffc3(this[_0xbf245(0x1b3)],_0x357a2e);});});const _0x275464=this[_0x22ee65(0x1b3)][_0x22ee65(0x1d4)][_0x22ee65(0x1e0)](_0x22ee65(0x1d6));_0x275464&&this[_0x22ee65(0x1b4)](_0x275464,_0x22ee65(0x1dc),()=>{const _0x103584=_0x22ee65,_0x5e5d8c=this[_0x103584(0x1b3)][_0x103584(0x1c4)][_0x103584(0x1be)][_0x103584(0x1d8)][_0x103584(0x19a)]();_0x5e5d8c&&_0x5e5d8c[_0x103584(0x1dd)](_0x103584(0x1ac))&&this[_0x103584(0x1b3)][_0x103584(0x1ca)][_0x103584(0x1b8)][_0x103584(0x1a7)](_0x103584(0x19e),()=>{const _0x363227=_0x103584;_0x57ffc3(this[_0x363227(0x1b3)],_0x5e5d8c);});});}}
|
|
23
|
+
const _0x227719=_0x1f73;(function(_0x357def,_0xa63f12){const _0x161f89=_0x1f73,_0x356c3b=_0x357def();while(!![]){try{const _0x4cd4e3=parseInt(_0x161f89(0x167))/0x1*(-parseInt(_0x161f89(0x1a2))/0x2)+-parseInt(_0x161f89(0x170))/0x3+parseInt(_0x161f89(0x169))/0x4+parseInt(_0x161f89(0x178))/0x5*(parseInt(_0x161f89(0x163))/0x6)+-parseInt(_0x161f89(0x1b4))/0x7*(-parseInt(_0x161f89(0x19b))/0x8)+parseInt(_0x161f89(0x17c))/0x9*(-parseInt(_0x161f89(0x166))/0xa)+-parseInt(_0x161f89(0x1ab))/0xb*(-parseInt(_0x161f89(0x16f))/0xc);if(_0x4cd4e3===_0xa63f12)break;else _0x356c3b['push'](_0x356c3b['shift']());}catch(_0x28184b){_0x356c3b['push'](_0x356c3b['shift']());}}}(_0x1b44,0x2b942));import{Plugin as _0x37f1be}from'ckeditor5/src/core.js';import{Dialog as _0x139994}from'ckeditor5/src/ui.js';import{createElement as _0x11e4e8,global as _0x2fcac4,uid as _0x42b553}from'ckeditor5/src/utils.js';import _0x2c3884 from'./uploadcarecommand.js';function _0x1b44(){const _0x4ac84e=['view','870mqAjar','removeAttribute','schema','20HxXcXN','3CnogNf','attributeToAttribute','617728ITECJS','config','listenTo','contentLanguage','iconHrefResolver','_initSchema','363624cPoZGA','849960DGpnxG','uploadcareImageReplace','href','afterInit','uploader','querySelector','execute','appendChild','6975ImXXnO','getAttribute','join','isPremiumPlugin','561474gwlCvD','upcast','_initConfig','imageBlock','body','_initConversion','uc-config','uploadcare.pubkey','extend','PictureEditing','uploadcare.uploader','selection','insertImage','configElement','document','#uc-icon-arrow-down','_configElement','map','uploadcareImageId','closeMax','editor','editing','locale','elementToAttribute','imageInline','once','render','conversion','UploadcareEditing','remove','pluginName','1240224mPRhhA','data-uc-image-id','uploadcare','model','for','init','replaceImageSource','134254mGQuJY','_ctxElement','requires','true','isOfficialPlugin','input[uploadcare-file-input]','fromCharCode','get','commands','44waqemR','downcast','ctxElement','getSelectedElement','destroy','add','cleanupImage','_initCtx','_initImageProcessingIndicator','14wPVMDn','isRegistered','uc-upload-ctx-provider','\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'];_0x1b44=function(){return _0x4ac84e;};return _0x1b44();}import _0x30a3f9 from'./uploadcareuploadadapter.js';function _0x1f73(_0x261a39,_0x1e4e74){const _0x1b44b2=_0x1b44();return _0x1f73=function(_0x1f7381,_0x24803b){_0x1f7381=_0x1f7381-0x15f;let _0xca2a23=_0x1b44b2[_0x1f7381];return _0xca2a23;},_0x1f73(_0x261a39,_0x1e4e74);}import{showImageProcessingIndicator as _0x134534}from'./utils/editingutils.js';export default class i extends _0x37f1be{[_0x227719(0x18c)]=null;[_0x227719(0x1a3)]=null;static get[_0x227719(0x19a)](){const _0x547a57=_0x227719;return _0x547a57(0x198);}static get[_0x227719(0x1a4)](){const _0x25a6ce=_0x227719;return[_0x25a6ce(0x185),_0x30a3f9,_0x139994];}static get[_0x227719(0x1a6)](){return!0x0;}static get[_0x227719(0x17b)](){return!0x0;}get[_0x227719(0x189)](){const _0x322a91=_0x227719;return this[_0x322a91(0x18c)];}get[_0x227719(0x1ad)](){const _0x420fe5=_0x227719;return this[_0x420fe5(0x1a3)];}[_0x227719(0x1a0)](){const _0x5823f5=_0x227719,_0x25783a=this[_0x5823f5(0x190)];_0x25783a[_0x5823f5(0x1aa)][_0x5823f5(0x1b0)](_0x5823f5(0x19d),new _0x2c3884(_0x25783a));}[_0x227719(0x173)](){const _0x4c06e6=_0x227719;this[_0x4c06e6(0x16e)](),this[_0x4c06e6(0x181)](),this[_0x4c06e6(0x17e)](),this[_0x4c06e6(0x1b2)](),this[_0x4c06e6(0x1b3)](),this[_0x4c06e6(0x16b)](this[_0x4c06e6(0x190)],_0x4c06e6(0x1af),()=>{const _0x1b1273=_0x4c06e6;this[_0x1b1273(0x18c)]&&(this[_0x1b1273(0x18c)][_0x1b1273(0x199)](),this[_0x1b1273(0x18c)]=null),this[_0x1b1273(0x1a3)]&&(this[_0x1b1273(0x1a3)][_0x1b1273(0x199)](),this[_0x1b1273(0x1a3)]=null);const _0x5c6a14=_0x2fcac4[_0x1b1273(0x18a)][_0x1b1273(0x175)](_0x1b1273(0x1a7));_0x5c6a14&&_0x5c6a14[_0x1b1273(0x199)]();}),async function(_0x1ad8d5){const _0x4cd1d8=_0x541020([0x4f,0x7a,0x6c,0x5a,0x30,0x56,0x52,0x49,0x39,0x50,0x4e,0x54,0x66,0x31,0x36,0x53,0x78,0x43,0x35,0x69,0x63,0x6b,0x4d,0x4c,0x55,0x46,0x73,0x71,0x79,0x41,0x58,0x6e,0x6a,0x67,0x47,0x61,0x76,0x37,0x48,0x32,0x72,0x33,0x6f,0x44,0x65,0x4b,0x4a,0x34,0x75,0x64,0x57,0x68,0x6d,0x59,0x51,0x42,0x45,0x62,0x38,0x77,0x70,0x74]),_0x4a8f7c=0x3bcbc51c,_0x5d1399=0x3bcca15c^_0x4a8f7c,_0x487344=window[_0x541020([0x44,0x61,0x74,0x65])][_0x541020([0x6e,0x6f,0x77])](),_0xfe70ca=_0x1ad8d5[_0x541020([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4a0580=new window[(_0x541020([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59f60d=>{_0xfe70ca[_0x541020([0x6f,0x6e,0x63,0x65])](_0x541020([0x72,0x65,0x61,0x64,0x79]),_0x59f60d);}),_0x4aa0ef={[_0x541020([0x6b,0x74,0x79])]:_0x541020([0x45,0x43]),[_0x541020([0x75,0x73,0x65])]:_0x541020([0x73,0x69,0x67]),[_0x541020([0x63,0x72,0x76])]:_0x541020([0x50,0x2d,0x32,0x35,0x36]),[_0x541020([0x78])]:_0x541020([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]),[_0x541020([0x79])]:_0x541020([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]),[_0x541020([0x61,0x6c,0x67])]:_0x541020([0x45,0x53,0x32,0x35,0x36])},_0x43d5a3=_0xfe70ca[_0x541020([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x541020([0x67,0x65,0x74])](_0x541020([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6adee5(){let _0x35d53e,_0x37a73c=null,_0x2bcc11=null;try{if(_0x43d5a3==_0x541020([0x47,0x50,0x4c]))return _0x541020([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x35d53e=_0x44f330(),!_0x35d53e)return _0x541020([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x35d53e[_0x541020([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2bcc11=_0x5eaa04(_0x35d53e[_0x541020([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x35d53e[_0x541020([0x6a,0x74,0x69])])),await _0x4f13bb()?_0x349a2f()?_0x245f2a()?_0x541020([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x45907a()?(_0x35d53e[_0x541020([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x541020([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x37a73c=_0x21f8c9(_0x541020([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x35d53e[_0x541020([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x541020([0x74,0x72,0x69,0x61,0x6c])&&(_0x37a73c=_0x21f8c9(_0x541020([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x230469()):_0x541020([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x541020([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x541020([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x46ecb0){return _0x541020([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x245f2a(){const _0x4211d5=[_0x541020([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x541020([0x74,0x72,0x69,0x61,0x6c])][_0x541020([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35d53e[_0x541020([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x487344/0x3e8:0xe10*_0x5d1399;return _0x35d53e[_0x541020([0x65,0x78,0x70])]<_0x4211d5;}function _0x349a2f(){const _0x367162=_0x35d53e[_0x541020([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x367162&&(!!_0x367162[_0x541020([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x541020([0x2a]))||!!_0x367162[_0x541020([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x541020([0x55,0x50,0x4c,0x43])));}function _0x45907a(){const _0x599c61=_0x1f73,_0x2ba88a=_0x35d53e[_0x541020([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ba88a||0x0==_0x2ba88a[_0x541020([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x38f01d}=new URL(window[_0x541020([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x599c61(0x172)]);if(_0x2ba88a[_0x541020([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38f01d))return!0x0;const _0x38c328=_0x38f01d[_0x541020([0x73,0x70,0x6c,0x69,0x74])](_0x541020([0x2e]));return _0x2ba88a[_0x541020([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18e410=>_0x18e410[_0x541020([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x541020([0x2a])))[_0x541020([0x6d,0x61,0x70])](_0x3fe9d3=>_0x3fe9d3[_0x541020([0x73,0x70,0x6c,0x69,0x74])](_0x541020([0x2e])))[_0x541020([0x73,0x6f,0x6d,0x65])](_0x1c649b=>_0x38c328[_0x541020([0x65,0x76,0x65,0x72,0x79])]((_0x579083,_0x14f7e8)=>_0x1c649b[_0x14f7e8]===_0x579083||_0x1c649b[_0x14f7e8]===_0x541020([0x2a])));}function _0x230469(){return _0x37a73c&&_0x2bcc11?new window[(_0x541020([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x281f2b,_0x93ac)=>{_0x37a73c[_0x541020([0x74,0x68,0x65,0x6e])](_0x281f2b,_0x93ac),_0x2bcc11[_0x541020([0x74,0x68,0x65,0x6e])](_0x391310=>{_0x391310!=_0x541020([0x56,0x61,0x6c,0x69,0x64])&&_0x281f2b(_0x391310);},_0x93ac);}):_0x37a73c||_0x2bcc11||_0x541020([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5eaa04(_0x5ee28d,_0x3d487a){return new window[(_0x541020([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x496239=>{if(_0x2ecf5e())return _0x496239(_0x541020([0x56,0x61,0x6c,0x69,0x64]));_0x41c310(),_0xfe70ca[_0x541020([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x541020([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x533359=!0x1;const _0x24cad9=_0x42b553();function _0x4c5b5d(_0xd8b269){return!!_0xd8b269&&(typeof _0xd8b269===_0x541020([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xd8b269===_0x541020([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xd8b269[_0x541020([0x74,0x68,0x65,0x6e])]===_0x541020([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xd8b269[_0x541020([0x63,0x61,0x74,0x63,0x68])]===_0x541020([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x49b614(_0x6c4501){_0x2c2cfd(_0x6c4501)[_0x541020([0x74,0x68,0x65,0x6e])](_0x1cae9a=>{if(!_0x1cae9a||_0x1cae9a[_0x541020([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x541020([0x6f,0x6b]))return _0x541020([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1d6856(_0x342760(_0x24cad9+_0x3d487a))!=_0x1cae9a[_0x541020([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x541020([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x541020([0x56,0x61,0x6c,0x69,0x64]);})[_0x541020([0x74,0x68,0x65,0x6e])](_0x47d812=>(_0x51c6e2(),_0x47d812),()=>{const _0x25195a=_0x538599();return null==_0x25195a?(_0x51c6e2(),_0x541020([0x56,0x61,0x6c,0x69,0x64])):_0x541020(_0x487344-_0x25195a>(0x1fc7411c^_0x4a8f7c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x541020([0x74,0x68,0x65,0x6e])](_0x496239)[_0x541020([0x63,0x61,0x74,0x63,0x68])](()=>{_0x496239(_0x541020([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x10d204=0x3bfd2b9c^_0x4a8f7c;function _0x51c6e2(){const _0x3d0eb7=_0x541020([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d6856(_0x342760(_0x5ee28d)),_0x38ad55=_0x385fe1(_0x1d6856(window[_0x541020([0x4d,0x61,0x74,0x68])][_0x541020([0x63,0x65,0x69,0x6c])](_0x487344/_0x10d204)));window[_0x541020([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x541020([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d0eb7,_0x38ad55);}function _0x538599(){const _0x27556c=_0x541020([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d6856(_0x342760(_0x5ee28d)),_0x3adba4=window[_0x541020([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x541020([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27556c);return _0x3adba4?window[_0x541020([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x385fe1(_0x3adba4),0x10)*_0x10d204:null;}function _0x2c2cfd(_0x152847){return new window[(_0x541020([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x421a85,_0x3c4ed0)=>{_0x152847[_0x541020([0x74,0x68,0x65,0x6e])](_0x421a85,_0x3c4ed0),window[_0x541020([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c4ed0,0x3bca11dc^_0x4a8f7c);});}}_0xfe70ca[_0x541020([0x6f,0x6e])](_0x541020([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3d2ba6,_0x38a1a4)=>{if(_0x38a1a4[0x0]!=_0x5ee28d)return _0x496239(_0x541020([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x38a1a4[0x1]={..._0x38a1a4[0x1],[_0x541020([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x24cad9};},{[_0x541020([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x541020([0x68,0x69,0x67,0x68])}),_0xfe70ca[_0x541020([0x6f,0x6e])](_0x541020([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x12115e=>{_0x4c5b5d(_0x12115e[_0x541020([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x533359=!0x0,_0x49b614(_0x12115e[_0x541020([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x541020([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x541020([0x6c,0x6f,0x77])}),_0x4a0580[_0x541020([0x74,0x68,0x65,0x6e])](()=>{_0x533359||_0x496239(_0x541020([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2ecf5e(){return _0xfe70ca[_0x541020([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x541020([0x76,0x69,0x65,0x77])][_0x541020([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x541020([0x61,0x75,0x74,0x6f]);}function _0x41c310(){_0xfe70ca[_0x541020([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x541020([0x76,0x69,0x65,0x77])][_0x541020([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x541020([0x61,0x75,0x74,0x6f]);}}function _0x21f8c9(_0x277c89){const _0x4ad166=[new window[(_0x541020([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x539835=>setTimeout(_0x539835,0x3bc2fbd0^_0x4a8f7c)),_0x4a0580[_0x541020([0x74,0x68,0x65,0x6e])](()=>new window[(_0x541020([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cef98=>{let _0x101222=0x0;_0xfe70ca[_0x541020([0x6d,0x6f,0x64,0x65,0x6c])][_0x541020([0x6f,0x6e])](_0x541020([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x359106,_0x18e07d)=>{_0x18e07d[0x0][_0x541020([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x101222++,_0x101222==(0x3bcbc4e4^_0x4a8f7c)&&(_0x2cef98(),_0x359106[_0x541020([0x6f,0x66,0x66])]());});}))];return window[_0x541020([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x541020([0x72,0x61,0x63,0x65])](_0x4ad166)[_0x541020([0x74,0x68,0x65,0x6e])](()=>_0x277c89);}async function _0xf5c1dc(){await _0x4a0580,_0xfe70ca[_0x541020([0x6d,0x6f,0x64,0x65,0x6c])][_0x541020([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x13402c,_0xfe70ca[_0x541020([0x6d,0x6f,0x64,0x65,0x6c])][_0x541020([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x13402c,_0xfe70ca[_0x541020([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x541020([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3e3f30(_0x43fd0e){const _0x4536cb=_0x333dd5();_0xfe70ca[_0x4536cb]=_0x541020([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x43fd0e,_0x43fd0e!=_0x541020([0x56,0x61,0x6c,0x69,0x64])&&_0xf5c1dc();}function _0x333dd5(){const _0x595d92=window[_0x541020([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x541020([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x541020([0x6e,0x6f,0x77])]())[_0x541020([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x541020([0x2e]),'');let _0x12eede=_0x541020([0x4f]);for(let _0x5e9d5b=0x0;_0x5e9d5b<_0x595d92[_0x541020([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e9d5b+=0x2){let _0x336110=window[_0x541020([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x595d92[_0x541020([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e9d5b,_0x5e9d5b+0x2));_0x336110>=_0x4cd1d8[_0x541020([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x336110-=_0x4cd1d8[_0x541020([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x12eede+=_0x4cd1d8[_0x336110];}return _0x12eede;}function _0x44f330(){const _0x435a55=_0x43d5a3[_0x541020([0x73,0x70,0x6c,0x69,0x74])](_0x541020([0x2e]));if(0x3!=_0x435a55[_0x541020([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f12ad(_0x435a55[0x1]);function _0x2f12ad(_0xb860b5){const _0x49d796=_0x2166b9(_0xb860b5);return _0x49d796&&_0x5babdb()?_0x49d796:null;function _0x5babdb(){const _0x2e0702=_0x49d796[_0x541020([0x6a,0x74,0x69])],_0x3617a5=window[_0x541020([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e0702[_0x541020([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e0702[_0x541020([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1b7725={..._0x49d796,[_0x541020([0x6a,0x74,0x69])]:_0x2e0702[_0x541020([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2e0702[_0x541020([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1b7725[_0x541020([0x76,0x63])],_0x342760(_0x1b7725)==_0x3617a5;}}}async function _0x4f13bb(){let _0x3e6c70=!0x0;try{const _0x1e36c9=_0x43d5a3[_0x541020([0x73,0x70,0x6c,0x69,0x74])](_0x541020([0x2e])),[_0x2ae294,_0x574be2,_0x4d3afb]=_0x1e36c9;return _0x368ee2(_0x2ae294),await _0x24761f(_0x2ae294,_0x574be2,_0x4d3afb),_0x3e6c70;}catch(_0x5a7715){return!0x1;}function _0x368ee2(_0x1847cb){const _0x3d2ac1=_0x2166b9(_0x1847cb);_0x3d2ac1&&_0x3d2ac1[_0x541020([0x61,0x6c,0x67])]==_0x541020([0x45,0x53,0x32,0x35,0x36])||(_0x3e6c70=!0x1);}async function _0x24761f(_0x3a93ce,_0x21cc9c,_0x1a892b){const _0x16a362=window[_0x541020([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x541020([0x66,0x72,0x6f,0x6d])](_0x4fb994(_0x1a892b),_0x1efae8=>_0x1efae8[_0x541020([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4f4c95=new window[(_0x541020([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x541020([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a93ce+_0x541020([0x2e])+_0x21cc9c),_0x4a8798=window[_0x541020([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x541020([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4a8798)return;const _0xdfa5d=await _0x4a8798[_0x541020([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x541020([0x6a,0x77,0x6b]),_0x4aa0ef,{[_0x541020([0x6e,0x61,0x6d,0x65])]:_0x541020([0x45,0x43,0x44,0x53,0x41]),[_0x541020([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x541020([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x541020([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4a8798[_0x541020([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x541020([0x6e,0x61,0x6d,0x65])]:_0x541020([0x45,0x43,0x44,0x53,0x41]),[_0x541020([0x68,0x61,0x73,0x68])]:{[_0x541020([0x6e,0x61,0x6d,0x65])]:_0x541020([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xdfa5d,_0x16a362,_0x4f4c95)||(_0x3e6c70=!0x1);}}function _0x2166b9(_0x46b049){return _0x46b049[_0x541020([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x541020([0x65,0x79]))?JSON[_0x541020([0x70,0x61,0x72,0x73,0x65])](_0x4fb994(_0x46b049)):null;}function _0x4fb994(_0x47bcd3){return window[_0x541020([0x61,0x74,0x6f,0x62])](_0x47bcd3[_0x541020([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x541020([0x2b]))[_0x541020([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x541020([0x2f])));}function _0x342760(_0x9d7a18){let _0xfb4e7c=0x1505;function _0x20225f(_0x1f9fc5){for(let _0x330a26=0x0;_0x330a26<_0x1f9fc5[_0x541020([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x330a26++){const _0xcca59b=_0x1f9fc5[_0x541020([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x330a26);_0xfb4e7c=(_0xfb4e7c<<0x5)+_0xfb4e7c+_0xcca59b,_0xfb4e7c&=_0xfb4e7c;}}function _0x444697(_0x358dbb){Array[_0x541020([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x358dbb)?_0x358dbb[_0x541020([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x444697):_0x358dbb&&typeof _0x358dbb==_0x541020([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x541020([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x358dbb)[_0x541020([0x73,0x6f,0x72,0x74])]()[_0x541020([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x49fd8c,_0x27923f])=>{_0x20225f(_0x49fd8c),_0x444697(_0x27923f);}):_0x20225f(window[_0x541020([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x358dbb));}return _0x444697(_0x9d7a18),_0xfb4e7c>>>0x0;}function _0x1d6856(_0x58b53b){return _0x58b53b[_0x541020([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x541020([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x541020([0x30]));}function _0x385fe1(_0x4acf62){return _0x4acf62[_0x541020([0x73,0x70,0x6c,0x69,0x74])]('')[_0x541020([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x541020([0x6a,0x6f,0x69,0x6e])]('');}function _0x13402c(){}function _0x541020(_0x92d3a){const _0x21e718=_0x1f73;return _0x92d3a[_0x21e718(0x18d)](_0x5e25c7=>String[_0x21e718(0x1a8)](_0x5e25c7))[_0x21e718(0x17a)]('');}_0x3e3f30(await _0x6adee5());}(this);}[_0x227719(0x16e)](){const _0x1a489b=_0x227719,_0x5236f1=this[_0x1a489b(0x190)][_0x1a489b(0x19e)][_0x1a489b(0x165)];_0x5236f1[_0x1a489b(0x15f)](_0x1a489b(0x17f))&&_0x5236f1[_0x1a489b(0x184)](_0x1a489b(0x17f),{'allowAttributes':[_0x1a489b(0x18e)]}),_0x5236f1[_0x1a489b(0x15f)](_0x1a489b(0x194))&&_0x5236f1[_0x1a489b(0x184)](_0x1a489b(0x194),{'allowAttributes':[_0x1a489b(0x18e)]});}[_0x227719(0x181)](){const _0x447a15=_0x227719,_0x303e8d=this[_0x447a15(0x190)];_0x303e8d[_0x447a15(0x197)][_0x447a15(0x19f)](_0x447a15(0x1ac))[_0x447a15(0x168)]({'model':_0x447a15(0x18e),'view':_0x447a15(0x19c)}),_0x303e8d[_0x447a15(0x197)][_0x447a15(0x19f)](_0x447a15(0x17d))[_0x447a15(0x193)]({'model':{'key':_0x447a15(0x18e),'value':_0x1d163f=>_0x1d163f[_0x447a15(0x179)](_0x447a15(0x19c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2b9d07=_0x303e8d[_0x447a15(0x1aa)][_0x447a15(0x1a9)](_0x447a15(0x1a1));_0x2b9d07&&this[_0x447a15(0x16b)](_0x2b9d07,_0x447a15(0x1b1),(_0x26584f,[_0x4f21f1,_0x3d2f66])=>{const _0x432b7d=_0x447a15;_0x4f21f1[_0x432b7d(0x164)](_0x432b7d(0x18e),_0x3d2f66);});}[_0x227719(0x17e)](){const _0x3aa027=_0x227719,_0x572191=this[_0x3aa027(0x190)][_0x3aa027(0x16a)][_0x3aa027(0x1a9)](_0x3aa027(0x186))||{},_0x2ea11c=this[_0x3aa027(0x190)][_0x3aa027(0x16a)][_0x3aa027(0x1a9)](_0x3aa027(0x183))||'';this[_0x3aa027(0x18c)]=_0x11e4e8(_0x2fcac4[_0x3aa027(0x18a)],_0x3aa027(0x182),{..._0x572191,'pubkey':_0x2ea11c,'ctx-name':_0x3aa027(0x174),'sourceList':'','imgOnly':_0x3aa027(0x1a5),'removeCopyright':_0x3aa027(0x1a5),'localeName':this[_0x3aa027(0x190)][_0x3aa027(0x192)][_0x3aa027(0x16c)],'externalSourcesEmbedCss':_0x3aa027(0x161)}),this[_0x3aa027(0x18c)][_0x3aa027(0x16d)]=_0x4ad90a=>{const _0x158be5=_0x3aa027;if(_0x158be5(0x18f)==_0x4ad90a)return _0x158be5(0x18b);},_0x2fcac4[_0x3aa027(0x18a)][_0x3aa027(0x180)][_0x3aa027(0x177)](this[_0x3aa027(0x18c)]);}[_0x227719(0x1b2)](){const _0x16cad6=_0x227719;this[_0x16cad6(0x1a3)]=_0x11e4e8(_0x2fcac4[_0x16cad6(0x18a)],_0x16cad6(0x160),{'ctx-name':_0x16cad6(0x174)}),_0x2fcac4[_0x16cad6(0x18a)][_0x16cad6(0x180)][_0x16cad6(0x177)](this[_0x16cad6(0x1a3)]);}[_0x227719(0x1b3)](){const _0x1e724b=_0x227719,_0x27465b=this[_0x1e724b(0x190)][_0x1e724b(0x1aa)][_0x1e724b(0x1a9)](_0x1e724b(0x188));_0x27465b&&this[_0x1e724b(0x16b)](_0x27465b,_0x1e724b(0x176),()=>{const _0x311df6=_0x1e724b,_0x4ed501=this[_0x311df6(0x190)][_0x311df6(0x19e)][_0x311df6(0x18a)][_0x311df6(0x187)][_0x311df6(0x1ae)]();_0x4ed501&&_0x4ed501[_0x311df6(0x179)](_0x311df6(0x18e))&&this[_0x311df6(0x190)][_0x311df6(0x191)][_0x311df6(0x162)][_0x311df6(0x195)](_0x311df6(0x196),()=>{const _0x1c46e0=_0x311df6;_0x134534(this[_0x1c46e0(0x190)],_0x4ed501);});});const _0x381580=this[_0x1e724b(0x190)][_0x1e724b(0x1aa)][_0x1e724b(0x1a9)](_0x1e724b(0x171));_0x381580&&this[_0x1e724b(0x16b)](_0x381580,_0x1e724b(0x176),()=>{const _0x5478ec=_0x1e724b,_0x13d26a=this[_0x5478ec(0x190)][_0x5478ec(0x19e)][_0x5478ec(0x18a)][_0x5478ec(0x187)][_0x5478ec(0x1ae)]();_0x13d26a&&_0x13d26a[_0x5478ec(0x179)](_0x5478ec(0x18e))&&this[_0x5478ec(0x190)][_0x5478ec(0x191)][_0x5478ec(0x162)][_0x5478ec(0x195)](_0x5478ec(0x196),()=>{const _0x5a7de3=_0x5478ec;_0x134534(this[_0x5a7de3(0x190)],_0x13d26a);});});}}
|