@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250303.0 → 0.0.0-nightly-next-20250304.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 _0x3d817d,Command as _0x115035}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4c1195,IconGooglePhotos as _0x4df2a7,IconGoogleDrive as _0x3fbbbf,IconFacebook as _0x5611e7,IconDropbox as _0x2eca92,IconUploadcareLink as _0x266ad5,IconUploadcareImageUpload as _0x157cc5,IconError as et,IconUploadcareImageEdit as _0x443958}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x42595b,MenuBarMenuListItemButtonView as _0x10c145,View as _0x29bc0b,FocusCycler as _0x50c2be,Dialog as _0x27869c,DialogViewPosition as _0x7a98a2,SpinnerView as _0x5cd3c7,IconView as at,Notification as _0x517338}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1a446a,DomEmitterMixin as _0x322422,global as _0xa7671f,getAncestors as _0x313f61,ObservableMixin as _0x5a22c7,createElement as _0x1aa41c,uid as _0x48c7bb}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x58646f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x59d836,info as _0x274396}from'@uploadcare/upload-client';import*as _0x442ed8 from'@uploadcare/file-uploader';var o=function(_0x305f75){return _0x305f75['Local']='local',_0x305f75['URL']='url',_0x305f75['Dropbox']='dropbox',_0x305f75['GDrive']='gdrive',_0x305f75['Facebook']='facebook',_0x305f75['GPhotos']='gphotos',_0x305f75['OneDrive']='onedrive',_0x305f75;}({});function _(_0x32d873,_0x42f924,_0x2f602c){const t=_0x32d873['t'],_0x1630f2=_0x32d873['t'];switch(_0x42f924){case o['Local']:return{'text':_0x1630f2('Insert'===_0x2f602c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1630f2('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x2f602c?_0x1630f2('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1630f2('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x2f602c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x2f602c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x2f602c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x2f602c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x2f602c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x42f924;}}class e extends _0x3d817d{['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 _0x2c8ff2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x46c828;for(const _0x5dcc8b in _0x2c8ff2){const _0x33cce3=_0x5dcc8b,_0x334077=_0x2c8ff2[_0x33cce3];if('uploadcareLicenseKeyValid'==_0x334077||'uploadcareLicenseKeyInvalid'==_0x334077||'uploadcareLicenseKeyExpired'==_0x334077||'uploadcareLicenseKeyDomainLimit'==_0x334077||'uploadcareLicenseKeyNotAllowed'==_0x334077||'uploadcareLicenseKeyEvaluationLimit'==_0x334077||'uploadcareLicenseKeyTrialLimit'==_0x334077||'uploadcareLicenseKeyUsageLimit'==_0x334077){delete _0x2c8ff2[_0x33cce3],_0x46c828=_0x334077,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x46c828&&_0x2c8ff2['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x46c828&&_0x2c8ff2['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x46c828&&_0x2c8ff2['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x46c828&&_0x2c8ff2['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x46c828&&_0x2c8ff2['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x46c828&&_0x2c8ff2['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x46c828&&_0x2c8ff2['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xed83fb}=this,_0x1a5872=_0xed83fb['commands']['get']('uploadcare');if(!_0x1a5872)return;const _0x4a8f36=this['_normalizeConfigSourceList'](_0xed83fb['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x349336,_0x188c9b)=>{const _0x3cbe52=this['_getIntegrationKey'](_0x188c9b['type']);return _0x349336[_0x3cbe52]||(_0x349336[_0x3cbe52]=[]),_0x349336[_0x3cbe52]['push'](_0x188c9b),_0x349336;},{});_0xed83fb['plugins']['has']('ImageInsertUI')&&_0xed83fb['commands']['get']('uploadcare')&&Object['entries'](_0x4a8f36)['forEach'](([_0x4ceb27,_0x4f9413])=>{_0xed83fb['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4ceb27,'observable':()=>_0x1a5872,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4f9413),'formViewCreator':()=>this['_createDropdownButtons'](_0x4f9413),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4f9413),'override':'assetManager'!==_0x4ceb27});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x58f478){const {locale:_0x33d8de}=this['editor'];return _0x58f478['map'](_0x34eb96=>{const _0x8cbf02=_(_0x33d8de,_0x34eb96,'Insert');switch(_0x34eb96){case o['Local']:return{'icon':_0x157cc5,'type':o['Local'],..._0x8cbf02};case o['URL']:return{'icon':_0x266ad5,'type':o['URL'],..._0x8cbf02};case o['Dropbox']:return{'icon':_0x2eca92,'type':o['Dropbox'],..._0x8cbf02};case o['Facebook']:return{'icon':_0x5611e7,'type':o['Facebook'],..._0x8cbf02};case o['GDrive']:return{'icon':_0x3fbbbf,'type':o['GDrive'],..._0x8cbf02};case o['GPhotos']:return{'icon':_0x4df2a7,'type':o['GPhotos'],..._0x8cbf02};case o['OneDrive']:return{'icon':_0x4c1195,'type':o['OneDrive'],..._0x8cbf02};}});}['_getIntegrationKey'](_0x3acc45){switch(_0x3acc45){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3cbdca,_0x2d3890){const _0x329a08=this['editor'],_0x26d61d=new _0x3cbdca(_0x329a08['locale']),_0x12c06a=_0x329a08['commands']['get']('uploadcare');return _0x26d61d['bind']('isEnabled')['to'](_0x12c06a),_0x26d61d['on']('execute',()=>{_0x12c06a['execute'](_0x2d3890);}),_0x26d61d;}['_createToolbarButton'](_0x23799c){const {locale:_0x3b3fe9}=this['editor'],_0x543865=this['editor']['plugins']['get']('ImageInsertUI'),_0x56da05=_0x23799c[0x0],_0x297dd9=this['_createButton'](_0x42595b,_0x56da05['type']);return _0x297dd9['icon']=_0x56da05['icon'],_0x297dd9['bind']('label')['to'](_0x543865,'isImageSelected',_0x129e6c=>_(_0x3b3fe9,_0x56da05['type'],_0x129e6c?'Replace':'Insert')['text']),_0x297dd9['tooltip']=!0x0,_0x297dd9;}['_createDropdownButtons'](_0x19590b){const {locale:_0x41b3eb}=this['editor'],_0x1c0b6c=this['editor']['plugins']['get']('ImageInsertUI');return _0x19590b['map'](_0x101583=>{const _0x1d9e94=this['_createButton'](_0x42595b,_0x101583['type']);return _0x1d9e94['withText']=!0x0,_0x1d9e94['icon']=_0x101583['icon'],_0x1d9e94['bind']('label')['to'](_0x1c0b6c,'isImageSelected',_0x2719ff=>_(_0x41b3eb,_0x101583['type'],_0x2719ff?'Replace':'Insert')['text']),_0x1d9e94;});}['_createMenuBarButtons'](_0x450e6b){return _0x450e6b['map'](_0x2e021b=>{const _0x557d7c=this['_createButton'](_0x10c145,_0x2e021b['type']);return _0x557d7c['icon']=_0x2e021b['icon'],_0x557d7c['label']=_0x2e021b['shortText'],_0x557d7c;});}}class q extends _0x29bc0b{['focusTracker'];['focusCycler'];constructor(_0xf97448){super(_0xf97448),this['focusTracker']=new _0x1a446a(),this['focusCycler']=new _0x50c2be({'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(_0x245096){super(_0x245096),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(_0x3f5ed8,_0x1d18b6){const _0x54765e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1c76b0=>_0x1c76b0<=_0x1d18b6)['map'](_0x4c79f1=>_0x3f5ed8['replace'](/\/$/,'')+'/-/resize/'+_0x4c79f1+'x/\x20'+_0x4c79f1+'w');return{'imageFallbackUrl':_0x3f5ed8,'imageSources':[{'srcset':_0x54765e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1d18b6+'px)\x20100vw,\x20'+_0x1d18b6+'px','type':'image/webp'}]};}function A(_0x43137b,_0x2d178b,_0x5daa6c){const _0x3923eb=_0x43137b['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3923eb?parseInt(_0x3923eb[0x1],0xa):_0x2d178b,'height':_0x3923eb?parseInt(_0x3923eb[0x2],0xa):_0x5daa6c};}function m(_0x5de49a,_0xa3184f){const _0x382c45=Object['create'](_0x322422),_0x7ada4d=_0x5de49a['plugins']['get']('ImageUtils'),_0x2b0205=_0x5de49a['editing']['mapper']['toViewElement'](_0xa3184f),_0xa46b36=_0x7ada4d['findViewImgElement'](_0x2b0205),_0x1efdb1=_0x5de49a['editing']['view']['domConverter']['viewToDom'](_0xa46b36),_0xe2e2d0=_0xa3184f['getAttribute']('width'),_0x5debcc=_0xa3184f['getAttribute']('height'),_0x4094dc='image-processing';_0x5de49a['editing']['view']['change'](_0x5f25ea=>{_0x5f25ea['addClass'](_0x4094dc,_0x2b0205),_0x5f25ea['setStyle']('aspect-ratio',_0xe2e2d0+'/'+_0x5debcc,_0xa46b36);}),_0x382c45['listenTo'](_0x1efdb1,'load',()=>{_0x382c45['stopListening'](_0x1efdb1,'load'),_0x5de49a['editing']['view']['change'](_0x451caa=>{_0x451caa['removeClass'](_0x4094dc,_0x2b0205),_0x451caa['removeStyle']('aspect-ratio',_0xa46b36);});});}function V(_0xe52583){if(Array['isArray'](_0xe52583)){const _0x3b5ab7=_0xe52583['map'](V);return _0x464743=>_0x3b5ab7['some'](_0x29cf2c=>_0x29cf2c(_0x464743));}if('origin'==_0xe52583){const _0x8cc35a=_0xa7671f['window']['location']['origin'];return _0x4350e7=>new URL(_0x4350e7,_0xa7671f['document']['baseURI'])['origin']==_0x8cc35a;}return'function'==typeof _0xe52583?_0xe52583:_0xe52583 instanceof RegExp?_0x56996e=>!(!_0x56996e['match'](_0xe52583)&&!_0x56996e['replace'](/^https?:\/\//,'')['match'](_0xe52583)):()=>!0x1;}function F(_0x4a9435,_0x466af5){return _0x313f61(_0x4a9435['target'])['includes'](_0x466af5);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x5a22c7(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x259bfc,_0x10be46,_0x76e4a0){super(),this['_editor']=_0x259bfc,this['_editing']=_0x10be46,this['_dialog']=_0x259bfc['plugins']['get'](_0x27869c),this['_api']=_0x10be46['ctxElement']['getAPI'](),this['_type']=_0x76e4a0,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:_0x5c4744,model:_0x9bedf5}=this['_editor'],_0x3f20aa=_0x9bedf5['document']['selection']['getSelectedElement'](),_0x4f2c41=_0x3f20aa&&(_0x3f20aa['is']('element','imageBlock')||_0x3f20aa['is']('element','imageInline'));this['_formView']=new S(_0x5c4744),this['_dialog']['show']({'id':'uploadCare','icon':_0x157cc5,'title':_(_0x5c4744,this['_type'],_0x4f2c41?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x7a98a2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x634369=>!F(_0x634369,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x209b4b}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x27444d=>{const _0x12f34e=_0x209b4b['length'];for(const _0x224bfc of _0x209b4b){const _0x3fb5a0=_0x224bfc===_0x209b4b[_0x12f34e-0x1],{cdnUrl:_0x2989a8,fileInfo:_0xdbe612}=_0x224bfc;if(!_0x2989a8||!_0xdbe612)continue;const {width:_0x30bd07,height:_0x5b2a32}=_0xdbe612['imageInfo'],_0x2e78d4=A(_0x2989a8,_0x30bd07,_0x5b2a32),_0x28f864=E(_0x2989a8,_0x2e78d4['width']),_0x87bf1d={'id':_0xdbe612['uuid'],'type':'image','attributes':{'imageDimension':_0x2e78d4,..._0x28f864}};this['_insertAsset'](_0x87bf1d,_0x3fb5a0,_0x27444d);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5cecf2=>{'idle'===_0x5cecf2['detail']['status']&&!_0x5cecf2['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x298a36,_0x2bf404,_0x37c3b3){const _0x11bb14=this['_editor']['model']['document']['selection'],_0x25d624=_0x11bb14['getSelectedElement'](),_0x462d61=!(!_0x25d624||!_0x25d624['is']('element','imageInline'));_0x37c3b3['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x298a36,_0x462d61),_0x2bf404||_0x37c3b3['setSelection'](_0x11bb14['getLastPosition']());}['_insertImage'](_0xdee1a2,_0x26c150){const _0x4ac61d=this['_editor'],{imageDimension:_0x587392,imageFallbackUrl:_0x59dd9d,imageSources:_0x5e82a0}=_0xdee1a2['attributes'];_0x4ac61d['execute']('insertImage',{'imageType':_0x26c150?'imageInline':null,'source':{'uploadcareImageId':_0xdee1a2['id'],'src':_0x59dd9d,'sources':_0x5e82a0,..._0x587392}});}}class n extends _0x115035{['_editing'];['_controller']=null;static get['requires'](){return[_0x27869c,i];}constructor(_0x4be60d){super(_0x4be60d),this['_editing']=_0x4be60d['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5b1a0a){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x5b1a0a);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0xdb37d0,publicKey:_0x3fff09,signal:_0x50bb1e,onProgress:_0x1f7867}){return _0x59d836(_0xdb37d0,{'publicKey':_0x3fff09,'store':'auto','signal':_0x50bb1e,'onProgress':_0x1f7867});}static['getInfo'](_0x1c00c2,_0x1618ee){return _0x274396(_0x1c00c2,_0x1618ee);}}class p extends _0x3d817d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x58646f,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1a44c7=this['editor'];if(!!!_0x1a44c7['config']['get']('uploadcare'))return;_0x1a44c7['plugins']['get'](_0x58646f)['createUploadAdapter']=_0x2b39e0=>new x(_0x2b39e0,_0x1a44c7),_0x1a44c7['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x555425,{imageElement:_0x4fd633,data:_0x4465d8})=>{_0x1a44c7['model']['change'](_0x37d7ef=>{_0x37d7ef['setAttribute']('uploadcareImageId',_0x4465d8['uploadcareImageId'],_0x4fd633);});});}}class x{['loader'];['editor'];['controller'];constructor(_0xc65f89,_0x487cf0){this['loader']=_0xc65f89,this['editor']=_0x487cf0,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x41abb8=this['editor']['config']['get']('uploadcare.pubkey'),_0x2d62e5=await this['loader']['file'];return C['upload']({'file':_0x2d62e5,'publicKey':_0x41abb8,'signal':this['controller']['signal'],'onProgress':_0x57ed2f=>{_0x57ed2f&&_0x57ed2f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x57ed2f['value']);}})['then'](async _0x413ae7=>{const {imageFallbackUrl:_0x1e7a24,imageSources:_0x323775}=E(_0x413ae7['cdnUrl'],_0x413ae7['imageInfo']['width']);return{'uploadcareImageId':_0x413ae7['uuid'],'default':_0x1e7a24,'sources':_0x323775};})['catch'](()=>{const _0x2882b1=t('Cannot\x20upload\x20file:')+('\x20'+_0x2d62e5['name']+'.');return Promise['reject'](_0x2882b1);});}['abort'](){this['controller']['abort']();}}class i extends _0x3d817d{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x27869c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x4cf48f=this['editor'];_0x4cf48f['commands']['add']('uploadcare',new n(_0x4cf48f));}['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 _0x5778a2=_0xa7671f['document']['querySelector']('input[uploadcare-file-input]');_0x5778a2&&_0x5778a2['remove']();}),async function(_0x25d762){const _0x1d1c90=_0x520326([0x5a,0x37,0x67,0x54,0x52,0x42,0x57,0x33,0x72,0x36,0x75,0x79,0x58,0x49,0x4e,0x6e,0x6f,0x65,0x51,0x55,0x56,0x4a,0x66,0x45,0x43,0x63,0x47,0x62,0x6d,0x59,0x48,0x32,0x46,0x77,0x69,0x78,0x71,0x30,0x44,0x61,0x6b,0x74,0x50,0x76,0x4f,0x34,0x4c,0x41,0x4b,0x73,0x6c,0x4d,0x70,0x53,0x31,0x68,0x35,0x38,0x7a,0x39,0x6a,0x64]),_0x259ed2=0x54194dc0,_0xdc0633=0x541e2cd0^_0x259ed2,_0x465a8a=window[_0x520326([0x44,0x61,0x74,0x65])][_0x520326([0x6e,0x6f,0x77])](),_0x388b4e=_0x25d762[_0x520326([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2d0d73=new window[(_0x520326([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1da29e=>{_0x388b4e[_0x520326([0x6f,0x6e,0x63,0x65])](_0x520326([0x72,0x65,0x61,0x64,0x79]),_0x1da29e);}),_0x18d6ab={[_0x520326([0x6b,0x74,0x79])]:_0x520326([0x45,0x43]),[_0x520326([0x75,0x73,0x65])]:_0x520326([0x73,0x69,0x67]),[_0x520326([0x63,0x72,0x76])]:_0x520326([0x50,0x2d,0x32,0x35,0x36]),[_0x520326([0x78])]:_0x520326([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]),[_0x520326([0x79])]:_0x520326([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]),[_0x520326([0x61,0x6c,0x67])]:_0x520326([0x45,0x53,0x32,0x35,0x36])},_0x377fa3=_0x388b4e[_0x520326([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x520326([0x67,0x65,0x74])](_0x520326([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5a527e(){let _0x1d79b8,_0x5c09aa=null,_0x263ed1=null;try{if(_0x377fa3==_0x520326([0x47,0x50,0x4c]))return _0x520326([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d79b8=_0x566ac6(),!_0x1d79b8)return _0x520326([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d79b8[_0x520326([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x263ed1=_0x577751(_0x1d79b8[_0x520326([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d79b8[_0x520326([0x6a,0x74,0x69])])),await _0x181c0f()?_0x5bf52d()?_0x320341()?_0x520326([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2d4d54()?(_0x1d79b8[_0x520326([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x520326([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c09aa=_0x5e767e(_0x520326([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1d79b8[_0x520326([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x520326([0x74,0x72,0x69,0x61,0x6c])&&(_0x5c09aa=_0x5e767e(_0x520326([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1f71ae()):_0x520326([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x520326([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x520326([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x878094){return _0x520326([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x320341(){const _0x1ed3c7=[_0x520326([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x520326([0x74,0x72,0x69,0x61,0x6c])][_0x520326([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d79b8[_0x520326([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x465a8a/0x3e8:0xe10*_0xdc0633;return _0x1d79b8[_0x520326([0x65,0x78,0x70])]<_0x1ed3c7;}function _0x5bf52d(){const _0x57ee48=_0x1d79b8[_0x520326([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x57ee48&&(!!_0x57ee48[_0x520326([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x520326([0x2a]))||!!_0x57ee48[_0x520326([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x520326([0x55,0x50,0x4c,0x43])));}function _0x2d4d54(){const _0x2b6e0e=_0x1d79b8[_0x520326([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b6e0e||0x0==_0x2b6e0e[_0x520326([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x35703c}=new URL(window[_0x520326([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2b6e0e[_0x520326([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35703c))return!0x0;const _0x135b47=_0x35703c[_0x520326([0x73,0x70,0x6c,0x69,0x74])](_0x520326([0x2e]));return _0x2b6e0e[_0x520326([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34c8d=>_0x34c8d[_0x520326([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x520326([0x2a])))[_0x520326([0x6d,0x61,0x70])](_0x524c53=>_0x524c53[_0x520326([0x73,0x70,0x6c,0x69,0x74])](_0x520326([0x2e])))[_0x520326([0x73,0x6f,0x6d,0x65])](_0x55dae1=>_0x135b47[_0x520326([0x65,0x76,0x65,0x72,0x79])]((_0x335416,_0x1be79f)=>_0x55dae1[_0x1be79f]===_0x335416||_0x55dae1[_0x1be79f]===_0x520326([0x2a])));}function _0x1f71ae(){return _0x5c09aa&&_0x263ed1?new window[(_0x520326([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1fa43c,_0x11548a)=>{_0x5c09aa[_0x520326([0x74,0x68,0x65,0x6e])](_0x1fa43c,_0x11548a),_0x263ed1[_0x520326([0x74,0x68,0x65,0x6e])](_0x341fb7=>{_0x341fb7!=_0x520326([0x56,0x61,0x6c,0x69,0x64])&&_0x1fa43c(_0x341fb7);},_0x11548a);}):_0x5c09aa||_0x263ed1||_0x520326([0x56,0x61,0x6c,0x69,0x64]);}}function _0x577751(_0x43afae,_0x5c8f21){return new window[(_0x520326([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x403438=>{if(_0x5cb91f())return _0x403438(_0x520326([0x56,0x61,0x6c,0x69,0x64]));_0x60354d(),_0x388b4e[_0x520326([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x520326([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1028b8=!0x1;const _0x2217e6=_0x48c7bb();function _0xb01f16(_0x91fc4c){return!!_0x91fc4c&&(typeof _0x91fc4c===_0x520326([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x91fc4c===_0x520326([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x91fc4c[_0x520326([0x74,0x68,0x65,0x6e])]===_0x520326([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x91fc4c[_0x520326([0x63,0x61,0x74,0x63,0x68])]===_0x520326([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4b33f7(_0x4c6787){_0xcd6da6(_0x4c6787)[_0x520326([0x74,0x68,0x65,0x6e])](_0x406124=>{if(!_0x406124||_0x406124[_0x520326([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x520326([0x6f,0x6b]))return _0x520326([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x321923(_0xdf550c(_0x2217e6+_0x5c8f21))!=_0x406124[_0x520326([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x520326([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x520326([0x56,0x61,0x6c,0x69,0x64]);})[_0x520326([0x74,0x68,0x65,0x6e])](_0x623585=>(_0x11e9b9(),_0x623585),()=>{const _0x2d51ab=_0x253a01();return null==_0x2d51ab?(_0x11e9b9(),_0x520326([0x56,0x61,0x6c,0x69,0x64])):_0x520326(_0x465a8a-_0x2d51ab>(0x7015c9c0^_0x259ed2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x520326([0x74,0x68,0x65,0x6e])](_0x403438)[_0x520326([0x63,0x61,0x74,0x63,0x68])](()=>{_0x403438(_0x520326([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x58dde0=0x542fa340^_0x259ed2;function _0x11e9b9(){const _0x22d2ce=_0x520326([0x6c,0x6c,0x63,0x74,0x2d])+_0x321923(_0xdf550c(_0x43afae)),_0x8b24d1=_0x591f28(_0x321923(window[_0x520326([0x4d,0x61,0x74,0x68])][_0x520326([0x63,0x65,0x69,0x6c])](_0x465a8a/_0x58dde0)));window[_0x520326([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x520326([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22d2ce,_0x8b24d1);}function _0x253a01(){const _0x1003e5=_0x520326([0x6c,0x6c,0x63,0x74,0x2d])+_0x321923(_0xdf550c(_0x43afae)),_0x49f11a=window[_0x520326([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x520326([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1003e5);return _0x49f11a?window[_0x520326([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x591f28(_0x49f11a),0x10)*_0x58dde0:null;}function _0xcd6da6(_0x20d4cf){return new window[(_0x520326([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x519b87,_0x350639)=>{_0x20d4cf[_0x520326([0x74,0x68,0x65,0x6e])](_0x519b87,_0x350639),window[_0x520326([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x350639,0x54189900^_0x259ed2);});}}_0x388b4e[_0x520326([0x6f,0x6e])](_0x520326([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c1acb,_0x4cc084)=>{if(_0x4cc084[0x0]!=_0x43afae)return _0x403438(_0x520326([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4cc084[0x1]={..._0x4cc084[0x1],[_0x520326([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2217e6};},{[_0x520326([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x520326([0x68,0x69,0x67,0x68])}),_0x388b4e[_0x520326([0x6f,0x6e])](_0x520326([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x460cac=>{_0xb01f16(_0x460cac[_0x520326([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1028b8=!0x0,_0x4b33f7(_0x460cac[_0x520326([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x520326([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x520326([0x6c,0x6f,0x77])}),_0x2d0d73[_0x520326([0x74,0x68,0x65,0x6e])](()=>{_0x1028b8||_0x403438(_0x520326([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5cb91f(){return _0x388b4e[_0x520326([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x520326([0x76,0x69,0x65,0x77])][_0x520326([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x520326([0x61,0x75,0x74,0x6f]);}function _0x60354d(){_0x388b4e[_0x520326([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x520326([0x76,0x69,0x65,0x77])][_0x520326([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x520326([0x61,0x75,0x74,0x6f]);}}function _0x5e767e(_0x2661f8){const _0x50746d=[new window[(_0x520326([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13a0ca=>setTimeout(_0x13a0ca,0x5410730c^_0x259ed2)),_0x2d0d73[_0x520326([0x74,0x68,0x65,0x6e])](()=>new window[(_0x520326([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc4eb92=>{let _0x55daaa=0x0;_0x388b4e[_0x520326([0x6d,0x6f,0x64,0x65,0x6c])][_0x520326([0x6f,0x6e])](_0x520326([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2716e1,_0x5cf83c)=>{_0x5cf83c[0x0][_0x520326([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x55daaa++,_0x55daaa==(0x54194c38^_0x259ed2)&&(_0xc4eb92(),_0x2716e1[_0x520326([0x6f,0x66,0x66])]());});}))];return window[_0x520326([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x520326([0x72,0x61,0x63,0x65])](_0x50746d)[_0x520326([0x74,0x68,0x65,0x6e])](()=>_0x2661f8);}async function _0x562883(){await _0x2d0d73,_0x388b4e[_0x520326([0x6d,0x6f,0x64,0x65,0x6c])][_0x520326([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x337ec4,_0x388b4e[_0x520326([0x6d,0x6f,0x64,0x65,0x6c])][_0x520326([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x337ec4,_0x388b4e[_0x520326([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x520326([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35c33c(_0x284d12){const _0x11859c=_0x111346();_0x388b4e[_0x11859c]=_0x520326([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x284d12,_0x284d12!=_0x520326([0x56,0x61,0x6c,0x69,0x64])&&_0x562883();}function _0x111346(){const _0x457036=window[_0x520326([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x520326([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x520326([0x6e,0x6f,0x77])]())[_0x520326([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x520326([0x2e]),'');let _0x53b226=_0x520326([0x5a]);for(let _0x3d5e6c=0x0;_0x3d5e6c<_0x457036[_0x520326([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d5e6c+=0x2){let _0x210c99=window[_0x520326([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x457036[_0x520326([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d5e6c,_0x3d5e6c+0x2));_0x210c99>=_0x1d1c90[_0x520326([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x210c99-=_0x1d1c90[_0x520326([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x53b226+=_0x1d1c90[_0x210c99];}return _0x53b226;}function _0x566ac6(){const _0x137a54=_0x377fa3[_0x520326([0x73,0x70,0x6c,0x69,0x74])](_0x520326([0x2e]));if(0x3!=_0x137a54[_0x520326([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x578d00(_0x137a54[0x1]);function _0x578d00(_0x28f70c){const _0x41e8e9=_0x38c96f(_0x28f70c);return _0x41e8e9&&_0x12404b()?_0x41e8e9:null;function _0x12404b(){const _0x3e148f=_0x41e8e9[_0x520326([0x6a,0x74,0x69])],_0x3b044f=window[_0x520326([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e148f[_0x520326([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e148f[_0x520326([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ba416={..._0x41e8e9,[_0x520326([0x6a,0x74,0x69])]:_0x3e148f[_0x520326([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3e148f[_0x520326([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ba416[_0x520326([0x76,0x63])],_0xdf550c(_0x2ba416)==_0x3b044f;}}}async function _0x181c0f(){let _0x10eae0=!0x0;try{const _0x5c7673=_0x377fa3[_0x520326([0x73,0x70,0x6c,0x69,0x74])](_0x520326([0x2e])),[_0x8db37d,_0x3effba,_0x1ed525]=_0x5c7673;return _0x458f30(_0x8db37d),await _0x4035ef(_0x8db37d,_0x3effba,_0x1ed525),_0x10eae0;}catch(_0xb70ad7){return!0x1;}function _0x458f30(_0x592e48){const _0x5a6367=_0x38c96f(_0x592e48);_0x5a6367&&_0x5a6367[_0x520326([0x61,0x6c,0x67])]==_0x520326([0x45,0x53,0x32,0x35,0x36])||(_0x10eae0=!0x1);}async function _0x4035ef(_0x2a6f1b,_0x4e8ab5,_0x27b8b1){const _0x48ce54=window[_0x520326([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x520326([0x66,0x72,0x6f,0x6d])](_0x4d68ad(_0x27b8b1),_0x41965a=>_0x41965a[_0x520326([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e738b=new window[(_0x520326([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x520326([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2a6f1b+_0x520326([0x2e])+_0x4e8ab5),_0x57c427=window[_0x520326([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x520326([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x57c427)return;const _0x368502=await _0x57c427[_0x520326([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x520326([0x6a,0x77,0x6b]),_0x18d6ab,{[_0x520326([0x6e,0x61,0x6d,0x65])]:_0x520326([0x45,0x43,0x44,0x53,0x41]),[_0x520326([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x520326([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x520326([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x57c427[_0x520326([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x520326([0x6e,0x61,0x6d,0x65])]:_0x520326([0x45,0x43,0x44,0x53,0x41]),[_0x520326([0x68,0x61,0x73,0x68])]:{[_0x520326([0x6e,0x61,0x6d,0x65])]:_0x520326([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x368502,_0x48ce54,_0x1e738b)||(_0x10eae0=!0x1);}}function _0x38c96f(_0x2cc17e){return _0x2cc17e[_0x520326([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x520326([0x65,0x79]))?JSON[_0x520326([0x70,0x61,0x72,0x73,0x65])](_0x4d68ad(_0x2cc17e)):null;}function _0x4d68ad(_0x2311d4){return window[_0x520326([0x61,0x74,0x6f,0x62])](_0x2311d4[_0x520326([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x520326([0x2b]))[_0x520326([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x520326([0x2f])));}function _0xdf550c(_0x55fb5d){let _0xeff604=0x1505;function _0xcc43fc(_0x32949f){for(let _0x34fc22=0x0;_0x34fc22<_0x32949f[_0x520326([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34fc22++){const _0x6bacb9=_0x32949f[_0x520326([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x34fc22);_0xeff604=(_0xeff604<<0x5)+_0xeff604+_0x6bacb9,_0xeff604&=_0xeff604;}}function _0x147dd2(_0x34a6f2){Array[_0x520326([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x34a6f2)?_0x34a6f2[_0x520326([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x147dd2):_0x34a6f2&&typeof _0x34a6f2==_0x520326([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x520326([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x34a6f2)[_0x520326([0x73,0x6f,0x72,0x74])]()[_0x520326([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x598d67,_0xb36fbd])=>{_0xcc43fc(_0x598d67),_0x147dd2(_0xb36fbd);}):_0xcc43fc(window[_0x520326([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x34a6f2));}return _0x147dd2(_0x55fb5d),_0xeff604>>>0x0;}function _0x321923(_0x488dfc){return _0x488dfc[_0x520326([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x520326([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x520326([0x30]));}function _0x591f28(_0x257e77){return _0x257e77[_0x520326([0x73,0x70,0x6c,0x69,0x74])]('')[_0x520326([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x520326([0x6a,0x6f,0x69,0x6e])]('');}function _0x337ec4(){}function _0x520326(_0x410a3c){return _0x410a3c['map'](_0xd9bb5c=>String['fromCharCode'](_0xd9bb5c))['join']('');}_0x35c33c(await _0x5a527e());}(this);}['_initSchema'](){const _0x3a7421=this['editor']['model']['schema'];_0x3a7421['isRegistered']('imageBlock')&&_0x3a7421['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3a7421['isRegistered']('imageInline')&&_0x3a7421['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x639572=this['editor'];_0x639572['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x639572['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1d5500=>_0x1d5500['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x291524=_0x639572['commands']['get']('replaceImageSource');_0x291524&&this['listenTo'](_0x291524,'cleanupImage',(_0x873ac2,[_0x46f9b4,_0x310da2])=>{_0x46f9b4['removeAttribute']('uploadcareImageId',_0x310da2);});}['_initConfig'](){const _0x2cb4c1=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4555bd=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1aa41c(_0xa7671f['document'],'uc-config',{..._0x2cb4c1,'pubkey':_0x4555bd,'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']=_0x2b2566=>{if('closeMax'==_0x2b2566)return'#uc-icon-arrow-down';},_0xa7671f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1aa41c(_0xa7671f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xa7671f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x570344=this['editor']['commands']['get']('insertImage');_0x570344&&this['listenTo'](_0x570344,'execute',()=>{const _0x134e2c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x134e2c&&_0x134e2c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x134e2c);});});const _0xaf215c=this['editor']['commands']['get']('uploadcareImageReplace');_0xaf215c&&this['listenTo'](_0xaf215c,'execute',()=>{const _0x58ec6a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x58ec6a&&_0x58ec6a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x58ec6a);});});}}class u extends _0x3d817d{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x18697c){super(_0x18697c),_0x18697c['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x442ed8['defineComponents'](_0x442ed8);}}class ta extends _0x29bc0b{constructor(_0x2d7855){super(_0x2d7855);const t=_0x2d7855['t'],_0x4ec05a=this['bindTemplate'],_0x393454=new _0x5cd3c7();_0x393454['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':[_0x393454,{'text':_0x4ec05a['to']('imageUploadProgress',_0x14fa9e=>t('Loading\x20image...')+'\x20('+(_0x14fa9e||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 _0x29bc0b{constructor(_0x5165aa){super(_0x5165aa);const t=_0x5165aa['t'];this['set']('errorType',null);const _0xc5d503=new _0x42595b(_0x5165aa);_0xc5d503['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xc5d503['withText']=!0x0,_0xc5d503['class']='ck-button-action',_0xc5d503['on']('execute',()=>{this['fire']('retry');}),_0xc5d503['bind']('isVisible')['to'](this,'errorType',_0x21393e=>'NotFound'!==_0x21393e);const _0x36c2cd=new at();_0x36c2cd['content']=et,_0x36c2cd['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3e0414=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':[_0x36c2cd,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3e0414['to']('errorType',_0x16956b=>t('NotFound'!==_0x16956b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xc5d503]},{'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 _0x29bc0b{constructor(_0x4b8b48,_0x41499b){super(_0x4b8b48);const _0x7bedf1=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x41499b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x7bedf1['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4de8fe,_0x343865,_0x3aa63f){super(_0x4de8fe),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x4de8fe),this['_errorView']=new rt(_0x4de8fe),this['_editingView']=new tt(_0x4de8fe,_0x3aa63f),this['_focusableView']=new _0x29bc0b(_0x4de8fe),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x343865),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'],_0x20328c=>{this['_addUploadcareImageEditorListeners'](_0x20328c);});}),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'](_0x2c3eb6,_0x57fd23){const _0x491b1a='uc-cloud-image-editor',_0x872f02=_0x2c3eb6['querySelector'](_0x491b1a);if(_0x872f02)return _0x57fd23(_0x872f02);const _0x4bc035=new MutationObserver(_0x106bb4=>{const _0x46bbad=_0x106bb4['filter'](_0x40eaee=>_0x40eaee['target']===_0x2c3eb6&&_0x40eaee['addedNodes']['length']>0x0&&_0x40eaee['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x491b1a);_0x46bbad['length']&&(_0x4bc035['disconnect'](),_0x57fd23(_0x46bbad[0x0]['addedNodes'][0x0]));});_0x4bc035['observe'](_0x2c3eb6,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1163d4){_0x1163d4['addEventListener']('apply',_0x373a3a=>{this['fire']('apply',{'imageSrc':_0x373a3a['detail']['cdnUrl']});}),_0x1163d4['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5a22c7(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xa6bc56,_0x35912e,_0x45704b){super(),this['_editor']=_0xa6bc56,this['_dialog']=_0x35912e,this['_imageElement']=_0x45704b,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 _0x42e3f6=this['_imageElement'],_0x2fb524=_0x42e3f6['getAttribute']('uploadcareImageId'),_0x12f53a=_0x42e3f6['getAttribute']('src');if(_0x2fb524)await this['_loadImageInfo'](_0x2fb524,_0x12f53a);else{if(this['_imageCache']['has'](_0x12f53a)){const _0x4f595a=this['_imageCache']['get'](_0x12f53a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4f595a['url'],this['imageDimension']=_0x4f595a['dimension'],this['imageId']=_0x4f595a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5e533c}=this['_editor'],t=_0x5e533c['t'],_0x511c11=new Z(_0x5e533c,this['imageStatus'],this['_attributes']);_0x511c11['bind']('status')['to'](this,'imageStatus'),_0x511c11['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x511c11['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x511c11['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x511c11,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x443958,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x511c11,'position':_0x7a98a2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x511c11['focus']();},'onHide':()=>{_0x511c11['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1a4437=>!F(_0x1a4437,_0x511c11['element'])}});}['_loadImageInfo'](_0x2ae744,_0x50ae07){return C['getInfo'](_0x2ae744,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3cacca=>{const {width:_0x359b55,height:_0xb6e5ee}=_0x3cacca['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x50ae07,this['imageDimension']={'width':_0x359b55,'height':_0xb6e5ee},this['imageId']=_0x2ae744;})['catch'](_0x342737=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x342737['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5155a4,_0x551089){return this['_getImageAsFile'](_0x5155a4)['then'](_0x390ed8=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x551089['signal'],'file':_0x390ed8,'onProgress':_0x1aea0c=>{_0x1aea0c&&_0x1aea0c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1aea0c['value']));}}))['then'](_0x150a7c=>{const {width:_0x391fd3,height:_0x3033ae}=_0x150a7c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x150a7c['cdnUrl'],this['imageDimension']={'width':_0x391fd3,'height':_0x3033ae},this['imageId']=_0x150a7c['uuid'],this['imageUploadProgress']=null;const _0x2ca3a2=_0x5155a4['getAttribute']('src');this['_imageCache']['set'](_0x2ca3a2,{'id':_0x150a7c['uuid'],'url':_0x150a7c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x40c80a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x40c80a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x210a95,_0x58d119){_0x210a95['on']('apply',(_0x58ff19,_0x3e1198)=>{this['_replaceImage'](_0x58d119,_0x3e1198['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x210a95['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x210a95['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x383465,_0xec83b7,_0x2666e3){const _0x165afa=this['_editor'],{width:_0x326e20,height:_0xd67a1d}=A(_0xec83b7,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xaea07f,imageSources:_0x151fac}=E(_0xec83b7,_0x326e20);_0x165afa['model']['change'](_0x1eb954=>{if('$graveyard'===_0x383465['root']['rootName']){_0x165afa['execute']('insertImage',{'imageType':_0x383465['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x383465['getAttributes']()),'uploadcareImageId':_0x2666e3,'src':_0xaea07f,'sources':_0x151fac,'width':_0x326e20,'height':_0xd67a1d}});const _0x102dea=_0x383465['getChildren']();_0x383465=_0x165afa['model']['document']['selection']['getSelectedElement']();for(const _0x5f4c6c of _0x102dea)_0x1eb954['append'](_0x1eb954['cloneElement'](_0x5f4c6c),_0x383465);}else _0x1eb954['setSelection'](_0x383465,'on'),_0x165afa['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x383465['getAttributes']()),'uploadcareImageId':_0x2666e3,'src':_0xaea07f,'sources':_0x151fac,'width':_0x326e20,'height':_0xd67a1d},_0x383465);_0x1eb954['setSelection'](_0x383465,'on');});}async['_getImageAsFile'](_0x1a5bf3){const _0x20c7ca=_0xa7671f['window'],_0x56373d=_0xa7671f['document']['location']['href'],_0x331ff4=new _0x20c7ca['URL'](_0x1a5bf3['getAttribute']('src'),_0x56373d);if('data:'===_0x331ff4['protocol']){const _0x14bc55=_0x331ff4['href']['split'](','),_0x1358ea=_0x14bc55[0x0]['match'](/:(.*?);/)[0x1],_0x21fb79=_0x1358ea['split']('/')[0x1],_0x3b57c2=_0x20c7ca['atob'](_0x14bc55[_0x14bc55['length']-0x1]);let _0x40c72b=_0x3b57c2['length'];const _0x83433f=new _0x20c7ca['Uint8Array'](_0x40c72b);for(;_0x40c72b--;)_0x83433f[_0x40c72b]=_0x3b57c2['charCodeAt'](_0x40c72b);return new _0x20c7ca['File']([_0x83433f],'image.'+_0x21fb79,{'type':_0x1358ea});}const _0x565d61=_0x331ff4['href']['split']('/'),_0x3c5437=_0x565d61[_0x565d61['length']-0x1],_0xa2c10=_0x3c5437['split']('.')[0x1];return _0x20c7ca['fetch'](_0x331ff4['href'])['then'](_0x44e50=>_0x44e50['clone']()['blob']())['then'](_0x1cfc93=>new _0x20c7ca['File']([_0x1cfc93],_0x3c5437,{'type':'image/'+_0xa2c10}));}}class J extends _0x115035{['imageEditController'];static get['requires'](){return[_0x27869c];}['_isEditable'];constructor(_0x5a2f30){super(_0x5a2f30),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xead3b0){const _0x40c806=V(_0xead3b0);return _0x30f4cf=>!(!_0x30f4cf||!_0x30f4cf['is']('element','imageBlock')&&!_0x30f4cf['is']('element','imageInline'))&&(!!_0x30f4cf['hasAttribute']('uploadcareImageId')||!!_0x30f4cf['hasAttribute']('src')&&_0x40c806(_0x30f4cf['getAttribute']('src')));}(_0x5a2f30['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xb75276=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xb75276);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x48c224=this['editor']['model']['document']['selection']['getSelectedElement']();_0x48c224&&(_0x48c224['is']('element','imageBlock')||_0x48c224['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x27869c),_0x48c224),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x115035{['refresh'](){const _0x5ee98e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5ee98e&&(_0x5ee98e['is']('element','imageBlock')||_0x5ee98e['is']('element','imageInline')));}['execute'](_0x2eb23d){const _0x42defa=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x408a08=>{_0x408a08['setAttributes'](_0x2eb23d,_0x42defa),_0x408a08['removeAttribute']('srcset',_0x42defa),_0x408a08['removeAttribute']('sizes',_0x42defa);});}}class g extends _0x3d817d{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x517338,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x17e8dd}=this;_0x17e8dd['commands']['add']('uploadcareImageEdit',new J(_0x17e8dd)),_0x17e8dd['commands']['add']('uploadcareImageReplace',new O(_0x17e8dd));}}class j extends _0x3d817d{['_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 _0x57720f=this['editor'];_0x57720f['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1f84e1=>{const _0x24b64c=_0x57720f['commands']['get']('uploadcareImageEdit'),_0xddce1e=new _0x42595b(_0x1f84e1),t=_0x1f84e1['t'];return _0xddce1e['set']({'icon':_0x443958,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xddce1e['bind']('isEnabled')['to'](_0x24b64c),_0xddce1e['bind']('isOn')['to'](_0x24b64c,'isActive'),this['listenTo'](_0xddce1e,'execute',()=>{_0x57720f['execute']('uploadcareImageEdit'),_0x57720f['editing']['view']['focus']();}),_0xddce1e;}),this['_initConfig']();}['_initConfig'](){const _0x227a32=_0x1aa41c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x227a32),this['listenTo'](this['editor'],'destroy',()=>{_0x227a32['remove']();});}}class P extends _0x3d817d{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 _0x50b672,Command as _0x5b8111}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5da74f,IconGooglePhotos as _0x216884,IconGoogleDrive as _0x3d5a8a,IconFacebook as _0x17dce4,IconDropbox as _0x2f3814,IconUploadcareLink as _0x14b685,IconUploadcareImageUpload as _0x31a107,IconError as et,IconUploadcareImageEdit as _0x18d57e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x108e5c,MenuBarMenuListItemButtonView as _0x12769f,View as _0x56aad3,FocusCycler as _0x14ccd4,Dialog as _0x3d7353,DialogViewPosition as _0x5d98f4,SpinnerView as _0x4c1e7a,IconView as at,Notification as _0x42eeb4}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1549aa,DomEmitterMixin as _0x141715,global as _0x5f1d08,getAncestors as _0x562a40,ObservableMixin as _0x345b5c,createElement as _0x157b02,uid as _0x59ba74}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x14dac5}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1efd6f,info as _0x5ec9d0}from'@uploadcare/upload-client';import*as _0x115514 from'@uploadcare/file-uploader';var o=function(_0x2a89d0){return _0x2a89d0['Local']='local',_0x2a89d0['URL']='url',_0x2a89d0['Dropbox']='dropbox',_0x2a89d0['GDrive']='gdrive',_0x2a89d0['Facebook']='facebook',_0x2a89d0['GPhotos']='gphotos',_0x2a89d0['OneDrive']='onedrive',_0x2a89d0;}({});function _(_0x5767a2,_0x421d75,_0x61c183){const t=_0x5767a2['t'],_0x4419c5=_0x5767a2['t'];switch(_0x421d75){case o['Local']:return{'text':_0x4419c5('Insert'===_0x61c183?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4419c5('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x61c183?_0x4419c5('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4419c5('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x61c183?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x61c183?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x61c183?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x61c183?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x61c183?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x421d75;}}class e extends _0x50b672{['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 _0x1dedb8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5bd6ea;for(const _0x288e42 in _0x1dedb8){const _0x133177=_0x288e42,_0x314289=_0x1dedb8[_0x133177];if('uploadcareLicenseKeyValid'==_0x314289||'uploadcareLicenseKeyInvalid'==_0x314289||'uploadcareLicenseKeyExpired'==_0x314289||'uploadcareLicenseKeyDomainLimit'==_0x314289||'uploadcareLicenseKeyNotAllowed'==_0x314289||'uploadcareLicenseKeyEvaluationLimit'==_0x314289||'uploadcareLicenseKeyTrialLimit'==_0x314289||'uploadcareLicenseKeyUsageLimit'==_0x314289){delete _0x1dedb8[_0x133177],_0x5bd6ea=_0x314289,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5bd6ea&&_0x1dedb8['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5bd6ea&&_0x1dedb8['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5bd6ea&&_0x1dedb8['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5bd6ea&&_0x1dedb8['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5bd6ea&&_0x1dedb8['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5bd6ea&&_0x1dedb8['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5bd6ea&&_0x1dedb8['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3dbba1}=this,_0x4567cb=_0x3dbba1['commands']['get']('uploadcare');if(!_0x4567cb)return;const _0x4b271f=this['_normalizeConfigSourceList'](_0x3dbba1['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xfa42bc,_0x5ac12c)=>{const _0x82fbdc=this['_getIntegrationKey'](_0x5ac12c['type']);return _0xfa42bc[_0x82fbdc]||(_0xfa42bc[_0x82fbdc]=[]),_0xfa42bc[_0x82fbdc]['push'](_0x5ac12c),_0xfa42bc;},{});_0x3dbba1['plugins']['has']('ImageInsertUI')&&_0x3dbba1['commands']['get']('uploadcare')&&Object['entries'](_0x4b271f)['forEach'](([_0x5be526,_0x58c5a8])=>{_0x3dbba1['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5be526,'observable':()=>_0x4567cb,'buttonViewCreator':()=>this['_createToolbarButton'](_0x58c5a8),'formViewCreator':()=>this['_createDropdownButtons'](_0x58c5a8),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x58c5a8),'override':'assetManager'!==_0x5be526});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5e35f7){const {locale:_0x729cf3}=this['editor'];return _0x5e35f7['map'](_0x1f6dad=>{const _0x1275d1=_(_0x729cf3,_0x1f6dad,'Insert');switch(_0x1f6dad){case o['Local']:return{'icon':_0x31a107,'type':o['Local'],..._0x1275d1};case o['URL']:return{'icon':_0x14b685,'type':o['URL'],..._0x1275d1};case o['Dropbox']:return{'icon':_0x2f3814,'type':o['Dropbox'],..._0x1275d1};case o['Facebook']:return{'icon':_0x17dce4,'type':o['Facebook'],..._0x1275d1};case o['GDrive']:return{'icon':_0x3d5a8a,'type':o['GDrive'],..._0x1275d1};case o['GPhotos']:return{'icon':_0x216884,'type':o['GPhotos'],..._0x1275d1};case o['OneDrive']:return{'icon':_0x5da74f,'type':o['OneDrive'],..._0x1275d1};}});}['_getIntegrationKey'](_0x23e5f3){switch(_0x23e5f3){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3d8df5,_0x47c124){const _0x10556d=this['editor'],_0x284b2a=new _0x3d8df5(_0x10556d['locale']),_0x4c0368=_0x10556d['commands']['get']('uploadcare');return _0x284b2a['bind']('isEnabled')['to'](_0x4c0368),_0x284b2a['on']('execute',()=>{_0x4c0368['execute'](_0x47c124);}),_0x284b2a;}['_createToolbarButton'](_0x4d465d){const {locale:_0x4a0362}=this['editor'],_0x25c49c=this['editor']['plugins']['get']('ImageInsertUI'),_0x5bfc2f=_0x4d465d[0x0],_0x2c8da8=this['_createButton'](_0x108e5c,_0x5bfc2f['type']);return _0x2c8da8['icon']=_0x5bfc2f['icon'],_0x2c8da8['bind']('label')['to'](_0x25c49c,'isImageSelected',_0x313099=>_(_0x4a0362,_0x5bfc2f['type'],_0x313099?'Replace':'Insert')['text']),_0x2c8da8['tooltip']=!0x0,_0x2c8da8;}['_createDropdownButtons'](_0x2bc992){const {locale:_0x2bb42e}=this['editor'],_0x4f7c43=this['editor']['plugins']['get']('ImageInsertUI');return _0x2bc992['map'](_0x316623=>{const _0x1f0b4d=this['_createButton'](_0x108e5c,_0x316623['type']);return _0x1f0b4d['withText']=!0x0,_0x1f0b4d['icon']=_0x316623['icon'],_0x1f0b4d['bind']('label')['to'](_0x4f7c43,'isImageSelected',_0x5174b6=>_(_0x2bb42e,_0x316623['type'],_0x5174b6?'Replace':'Insert')['text']),_0x1f0b4d;});}['_createMenuBarButtons'](_0x1f8ca3){return _0x1f8ca3['map'](_0x161c08=>{const _0x4f2975=this['_createButton'](_0x12769f,_0x161c08['type']);return _0x4f2975['icon']=_0x161c08['icon'],_0x4f2975['label']=_0x161c08['shortText'],_0x4f2975;});}}class q extends _0x56aad3{['focusTracker'];['focusCycler'];constructor(_0x1c89aa){super(_0x1c89aa),this['focusTracker']=new _0x1549aa(),this['focusCycler']=new _0x14ccd4({'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(_0x4758d4){super(_0x4758d4),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(_0x1517c5,_0x4e1674){const _0x1219ef=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xfdd632=>_0xfdd632<=_0x4e1674)['map'](_0x4a881e=>_0x1517c5['replace'](/\/$/,'')+'/-/resize/'+_0x4a881e+'x/\x20'+_0x4a881e+'w');return{'imageFallbackUrl':_0x1517c5,'imageSources':[{'srcset':_0x1219ef['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4e1674+'px)\x20100vw,\x20'+_0x4e1674+'px','type':'image/webp'}]};}function A(_0x2086e9,_0x103625,_0x3698cf){const _0x40e8a4=_0x2086e9['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x40e8a4?parseInt(_0x40e8a4[0x1],0xa):_0x103625,'height':_0x40e8a4?parseInt(_0x40e8a4[0x2],0xa):_0x3698cf};}function m(_0x444bc3,_0x2369eb){const _0x550227=Object['create'](_0x141715),_0x397f6d=_0x444bc3['plugins']['get']('ImageUtils'),_0x217548=_0x444bc3['editing']['mapper']['toViewElement'](_0x2369eb),_0x36d132=_0x397f6d['findViewImgElement'](_0x217548),_0x28c4b5=_0x444bc3['editing']['view']['domConverter']['viewToDom'](_0x36d132),_0x55cf9a=_0x2369eb['getAttribute']('width'),_0x35feb9=_0x2369eb['getAttribute']('height'),_0x2ba5c4='image-processing';_0x444bc3['editing']['view']['change'](_0x100fca=>{_0x100fca['addClass'](_0x2ba5c4,_0x217548),_0x100fca['setStyle']('aspect-ratio',_0x55cf9a+'/'+_0x35feb9,_0x36d132);}),_0x550227['listenTo'](_0x28c4b5,'load',()=>{_0x550227['stopListening'](_0x28c4b5,'load'),_0x444bc3['editing']['view']['change'](_0x1b6be6=>{_0x1b6be6['removeClass'](_0x2ba5c4,_0x217548),_0x1b6be6['removeStyle']('aspect-ratio',_0x36d132);});});}function V(_0x22e830){if(Array['isArray'](_0x22e830)){const _0x10a515=_0x22e830['map'](V);return _0x39d49e=>_0x10a515['some'](_0x36d182=>_0x36d182(_0x39d49e));}if('origin'==_0x22e830){const _0x227031=_0x5f1d08['window']['location']['origin'];return _0x49d2e8=>new URL(_0x49d2e8,_0x5f1d08['document']['baseURI'])['origin']==_0x227031;}return'function'==typeof _0x22e830?_0x22e830:_0x22e830 instanceof RegExp?_0x2db08e=>!(!_0x2db08e['match'](_0x22e830)&&!_0x2db08e['replace'](/^https?:\/\//,'')['match'](_0x22e830)):()=>!0x1;}function F(_0x74865e,_0x47b234){return _0x562a40(_0x74865e['target'])['includes'](_0x47b234);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x345b5c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x6c14e9,_0x209e19,_0x59bbdd){super(),this['_editor']=_0x6c14e9,this['_editing']=_0x209e19,this['_dialog']=_0x6c14e9['plugins']['get'](_0x3d7353),this['_api']=_0x209e19['ctxElement']['getAPI'](),this['_type']=_0x59bbdd,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:_0x2d0748,model:_0x113afb}=this['_editor'],_0x37acc4=_0x113afb['document']['selection']['getSelectedElement'](),_0x2526d2=_0x37acc4&&(_0x37acc4['is']('element','imageBlock')||_0x37acc4['is']('element','imageInline'));this['_formView']=new S(_0x2d0748),this['_dialog']['show']({'id':'uploadCare','icon':_0x31a107,'title':_(_0x2d0748,this['_type'],_0x2526d2?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5d98f4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x564272=>!F(_0x564272,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x39f01}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x297c51=>{const _0x3f1874=_0x39f01['length'];for(const _0x5154e4 of _0x39f01){const _0x5719a7=_0x5154e4===_0x39f01[_0x3f1874-0x1],{cdnUrl:_0x165dfb,fileInfo:_0x3bfd4b}=_0x5154e4;if(!_0x165dfb||!_0x3bfd4b)continue;const {width:_0x2d561f,height:_0x308f33}=_0x3bfd4b['imageInfo'],_0x5c7312=A(_0x165dfb,_0x2d561f,_0x308f33),_0x2d0ce6=E(_0x165dfb,_0x5c7312['width']),_0x27d04a={'id':_0x3bfd4b['uuid'],'type':'image','attributes':{'imageDimension':_0x5c7312,..._0x2d0ce6}};this['_insertAsset'](_0x27d04a,_0x5719a7,_0x297c51);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3f4b50=>{'idle'===_0x3f4b50['detail']['status']&&!_0x3f4b50['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3a4f41,_0x178d3f,_0x4dbf5e){const _0x1c0c95=this['_editor']['model']['document']['selection'],_0x28e6dc=_0x1c0c95['getSelectedElement'](),_0xf05d74=!(!_0x28e6dc||!_0x28e6dc['is']('element','imageInline'));_0x4dbf5e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3a4f41,_0xf05d74),_0x178d3f||_0x4dbf5e['setSelection'](_0x1c0c95['getLastPosition']());}['_insertImage'](_0x548158,_0x1ca530){const _0x57757d=this['_editor'],{imageDimension:_0x5a9f10,imageFallbackUrl:_0x7bee36,imageSources:_0x4eea1b}=_0x548158['attributes'];_0x57757d['execute']('insertImage',{'imageType':_0x1ca530?'imageInline':null,'source':{'uploadcareImageId':_0x548158['id'],'src':_0x7bee36,'sources':_0x4eea1b,..._0x5a9f10}});}}class n extends _0x5b8111{['_editing'];['_controller']=null;static get['requires'](){return[_0x3d7353,i];}constructor(_0xc53407){super(_0xc53407),this['_editing']=_0xc53407['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x14a95c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x14a95c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x3c4cf4,publicKey:_0x59a970,signal:_0x29716f,onProgress:_0x500368}){return _0x1efd6f(_0x3c4cf4,{'publicKey':_0x59a970,'store':'auto','signal':_0x29716f,'onProgress':_0x500368});}static['getInfo'](_0x24a1a7,_0x5df964){return _0x5ec9d0(_0x24a1a7,_0x5df964);}}class p extends _0x50b672{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x14dac5,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x190c69=this['editor'];if(!!!_0x190c69['config']['get']('uploadcare'))return;_0x190c69['plugins']['get'](_0x14dac5)['createUploadAdapter']=_0x4194e8=>new x(_0x4194e8,_0x190c69),_0x190c69['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x373c3c,{imageElement:_0x47220e,data:_0x54b7a8})=>{_0x190c69['model']['change'](_0x2e5a4a=>{_0x2e5a4a['setAttribute']('uploadcareImageId',_0x54b7a8['uploadcareImageId'],_0x47220e);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x394092,_0x245075){this['loader']=_0x394092,this['editor']=_0x245075,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xb38f59=this['editor']['config']['get']('uploadcare.pubkey'),_0x732cf1=await this['loader']['file'];return C['upload']({'file':_0x732cf1,'publicKey':_0xb38f59,'signal':this['controller']['signal'],'onProgress':_0x3e6d65=>{_0x3e6d65&&_0x3e6d65['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3e6d65['value']);}})['then'](async _0xf38d4c=>{const {imageFallbackUrl:_0x42fd93,imageSources:_0x3b6d59}=E(_0xf38d4c['cdnUrl'],_0xf38d4c['imageInfo']['width']);return{'uploadcareImageId':_0xf38d4c['uuid'],'default':_0x42fd93,'sources':_0x3b6d59};})['catch'](()=>{const _0x5ee549=t('Cannot\x20upload\x20file:')+('\x20'+_0x732cf1['name']+'.');return Promise['reject'](_0x5ee549);});}['abort'](){this['controller']['abort']();}}class i extends _0x50b672{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x3d7353];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x153557=this['editor'];_0x153557['commands']['add']('uploadcare',new n(_0x153557));}['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 _0x3403c6=_0x5f1d08['document']['querySelector']('input[uploadcare-file-input]');_0x3403c6&&_0x3403c6['remove']();}),async function(_0x2ae25a){const _0x18b2b2=_0x1d98e2([0x6d,0x6b,0x52,0x4e,0x69,0x51,0x4b,0x70,0x73,0x6f,0x57,0x74,0x54,0x64,0x6a,0x66,0x79,0x4c,0x58,0x59,0x6c,0x67,0x35,0x44,0x36,0x68,0x63,0x37,0x6e,0x39,0x72,0x77,0x78,0x50,0x48,0x32,0x38,0x76,0x45,0x43,0x46,0x71,0x56,0x47,0x62,0x33,0x61,0x30,0x53,0x65,0x55,0x7a,0x4d,0x42,0x75,0x4f,0x5a,0x49,0x4a,0x41,0x34,0x31]),_0x90ddf1=0x62d3fbc8,_0x5b2b68=0x62d49ae0^_0x90ddf1,_0x10e027=window[_0x1d98e2([0x44,0x61,0x74,0x65])][_0x1d98e2([0x6e,0x6f,0x77])](),_0x23587e=_0x2ae25a[_0x1d98e2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb09fb3=new window[(_0x1d98e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28112f=>{_0x23587e[_0x1d98e2([0x6f,0x6e,0x63,0x65])](_0x1d98e2([0x72,0x65,0x61,0x64,0x79]),_0x28112f);}),_0x2df2af={[_0x1d98e2([0x6b,0x74,0x79])]:_0x1d98e2([0x45,0x43]),[_0x1d98e2([0x75,0x73,0x65])]:_0x1d98e2([0x73,0x69,0x67]),[_0x1d98e2([0x63,0x72,0x76])]:_0x1d98e2([0x50,0x2d,0x32,0x35,0x36]),[_0x1d98e2([0x78])]:_0x1d98e2([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]),[_0x1d98e2([0x79])]:_0x1d98e2([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]),[_0x1d98e2([0x61,0x6c,0x67])]:_0x1d98e2([0x45,0x53,0x32,0x35,0x36])},_0x5d8236=_0x23587e[_0x1d98e2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1d98e2([0x67,0x65,0x74])](_0x1d98e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e3857(){let _0xb655e0,_0x47fbe1=null,_0x1e68aa=null;try{if(_0x5d8236==_0x1d98e2([0x47,0x50,0x4c]))return _0x1d98e2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xb655e0=_0x4a1348(),!_0xb655e0)return _0x1d98e2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xb655e0[_0x1d98e2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e68aa=_0x55f60b(_0xb655e0[_0x1d98e2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xb655e0[_0x1d98e2([0x6a,0x74,0x69])])),await _0x4ab2b9()?_0x4055ac()?_0x48ead9()?_0x1d98e2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x34f65c()?(_0xb655e0[_0x1d98e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d98e2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x47fbe1=_0x21eedd(_0x1d98e2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xb655e0[_0x1d98e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d98e2([0x74,0x72,0x69,0x61,0x6c])&&(_0x47fbe1=_0x21eedd(_0x1d98e2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x32f33f()):_0x1d98e2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1d98e2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1d98e2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1ee420){return _0x1d98e2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x48ead9(){const _0x4bc2ea=[_0x1d98e2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1d98e2([0x74,0x72,0x69,0x61,0x6c])][_0x1d98e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb655e0[_0x1d98e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x10e027/0x3e8:0xe10*_0x5b2b68;return _0xb655e0[_0x1d98e2([0x65,0x78,0x70])]<_0x4bc2ea;}function _0x4055ac(){const _0x20ca79=_0xb655e0[_0x1d98e2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x20ca79&&(!!_0x20ca79[_0x1d98e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d98e2([0x2a]))||!!_0x20ca79[_0x1d98e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d98e2([0x55,0x50,0x4c,0x43])));}function _0x34f65c(){const _0xebb5=_0xb655e0[_0x1d98e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xebb5||0x0==_0xebb5[_0x1d98e2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4cffc7}=new URL(window[_0x1d98e2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xebb5[_0x1d98e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cffc7))return!0x0;const _0x4ae3b6=_0x4cffc7[_0x1d98e2([0x73,0x70,0x6c,0x69,0x74])](_0x1d98e2([0x2e]));return _0xebb5[_0x1d98e2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1dbd7e=>_0x1dbd7e[_0x1d98e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d98e2([0x2a])))[_0x1d98e2([0x6d,0x61,0x70])](_0x5ea213=>_0x5ea213[_0x1d98e2([0x73,0x70,0x6c,0x69,0x74])](_0x1d98e2([0x2e])))[_0x1d98e2([0x73,0x6f,0x6d,0x65])](_0x20a53b=>_0x4ae3b6[_0x1d98e2([0x65,0x76,0x65,0x72,0x79])]((_0x487705,_0x271893)=>_0x20a53b[_0x271893]===_0x487705||_0x20a53b[_0x271893]===_0x1d98e2([0x2a])));}function _0x32f33f(){return _0x47fbe1&&_0x1e68aa?new window[(_0x1d98e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x24c419,_0x4a6215)=>{_0x47fbe1[_0x1d98e2([0x74,0x68,0x65,0x6e])](_0x24c419,_0x4a6215),_0x1e68aa[_0x1d98e2([0x74,0x68,0x65,0x6e])](_0x455889=>{_0x455889!=_0x1d98e2([0x56,0x61,0x6c,0x69,0x64])&&_0x24c419(_0x455889);},_0x4a6215);}):_0x47fbe1||_0x1e68aa||_0x1d98e2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x55f60b(_0xbae57b,_0xe673e3){return new window[(_0x1d98e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cdd61=>{if(_0x34133d())return _0x4cdd61(_0x1d98e2([0x56,0x61,0x6c,0x69,0x64]));_0x375a60(),_0x23587e[_0x1d98e2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1d98e2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5db44b=!0x1;const _0x3a95f6=_0x59ba74();function _0x478d47(_0xa571ab){return!!_0xa571ab&&(typeof _0xa571ab===_0x1d98e2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa571ab===_0x1d98e2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa571ab[_0x1d98e2([0x74,0x68,0x65,0x6e])]===_0x1d98e2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa571ab[_0x1d98e2([0x63,0x61,0x74,0x63,0x68])]===_0x1d98e2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x31639d(_0x13f5b1){_0x2f3c36(_0x13f5b1)[_0x1d98e2([0x74,0x68,0x65,0x6e])](_0x3dc345=>{if(!_0x3dc345||_0x3dc345[_0x1d98e2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1d98e2([0x6f,0x6b]))return _0x1d98e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2e9562(_0x5b6e7f(_0x3a95f6+_0xe673e3))!=_0x3dc345[_0x1d98e2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1d98e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1d98e2([0x56,0x61,0x6c,0x69,0x64]);})[_0x1d98e2([0x74,0x68,0x65,0x6e])](_0x37cf60=>(_0x2ac026(),_0x37cf60),()=>{const _0x4d75fb=_0x2e0c98();return null==_0x4d75fb?(_0x2ac026(),_0x1d98e2([0x56,0x61,0x6c,0x69,0x64])):_0x1d98e2(_0x10e027-_0x4d75fb>(0x46df7fc8^_0x90ddf1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1d98e2([0x74,0x68,0x65,0x6e])](_0x4cdd61)[_0x1d98e2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4cdd61(_0x1d98e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x28e71e=0x62e51548^_0x90ddf1;function _0x2ac026(){const _0x37ec99=_0x1d98e2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2e9562(_0x5b6e7f(_0xbae57b)),_0x10fcda=_0x15e229(_0x2e9562(window[_0x1d98e2([0x4d,0x61,0x74,0x68])][_0x1d98e2([0x63,0x65,0x69,0x6c])](_0x10e027/_0x28e71e)));window[_0x1d98e2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d98e2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37ec99,_0x10fcda);}function _0x2e0c98(){const _0x3f5115=_0x1d98e2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2e9562(_0x5b6e7f(_0xbae57b)),_0x2000fe=window[_0x1d98e2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d98e2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f5115);return _0x2000fe?window[_0x1d98e2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15e229(_0x2000fe),0x10)*_0x28e71e:null;}function _0x2f3c36(_0x50dacf){return new window[(_0x1d98e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x413b85,_0xcc5c44)=>{_0x50dacf[_0x1d98e2([0x74,0x68,0x65,0x6e])](_0x413b85,_0xcc5c44),window[_0x1d98e2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xcc5c44,0x62d22f08^_0x90ddf1);});}}_0x23587e[_0x1d98e2([0x6f,0x6e])](_0x1d98e2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x18cb9b,_0x199012)=>{if(_0x199012[0x0]!=_0xbae57b)return _0x4cdd61(_0x1d98e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x199012[0x1]={..._0x199012[0x1],[_0x1d98e2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3a95f6};},{[_0x1d98e2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d98e2([0x68,0x69,0x67,0x68])}),_0x23587e[_0x1d98e2([0x6f,0x6e])](_0x1d98e2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3704a7=>{_0x478d47(_0x3704a7[_0x1d98e2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5db44b=!0x0,_0x31639d(_0x3704a7[_0x1d98e2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1d98e2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d98e2([0x6c,0x6f,0x77])}),_0xb09fb3[_0x1d98e2([0x74,0x68,0x65,0x6e])](()=>{_0x5db44b||_0x4cdd61(_0x1d98e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x34133d(){return _0x23587e[_0x1d98e2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d98e2([0x76,0x69,0x65,0x77])][_0x1d98e2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1d98e2([0x61,0x75,0x74,0x6f]);}function _0x375a60(){_0x23587e[_0x1d98e2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d98e2([0x76,0x69,0x65,0x77])][_0x1d98e2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d98e2([0x61,0x75,0x74,0x6f]);}}function _0x21eedd(_0x36e785){const _0x437bf4=[new window[(_0x1d98e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd2feea=>setTimeout(_0xd2feea,0x62dac504^_0x90ddf1)),_0xb09fb3[_0x1d98e2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1d98e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x523fed=>{let _0x5f0dc4=0x0;_0x23587e[_0x1d98e2([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d98e2([0x6f,0x6e])](_0x1d98e2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x13ae96,_0x4c2b84)=>{_0x4c2b84[0x0][_0x1d98e2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5f0dc4++,_0x5f0dc4==(0x62d3fa30^_0x90ddf1)&&(_0x523fed(),_0x13ae96[_0x1d98e2([0x6f,0x66,0x66])]());});}))];return window[_0x1d98e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d98e2([0x72,0x61,0x63,0x65])](_0x437bf4)[_0x1d98e2([0x74,0x68,0x65,0x6e])](()=>_0x36e785);}async function _0x263fb8(){await _0xb09fb3,_0x23587e[_0x1d98e2([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d98e2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x26cc9e,_0x23587e[_0x1d98e2([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d98e2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x26cc9e,_0x23587e[_0x1d98e2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1d98e2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x176ece(_0x45e585){const _0x4df3c2=_0x257f6f();_0x23587e[_0x4df3c2]=_0x1d98e2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x45e585,_0x45e585!=_0x1d98e2([0x56,0x61,0x6c,0x69,0x64])&&_0x263fb8();}function _0x257f6f(){const _0x362942=window[_0x1d98e2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1d98e2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1d98e2([0x6e,0x6f,0x77])]())[_0x1d98e2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1d98e2([0x2e]),'');let _0x14018f=_0x1d98e2([0x6d]);for(let _0x232efb=0x0;_0x232efb<_0x362942[_0x1d98e2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x232efb+=0x2){let _0x3bcf4d=window[_0x1d98e2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x362942[_0x1d98e2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x232efb,_0x232efb+0x2));_0x3bcf4d>=_0x18b2b2[_0x1d98e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3bcf4d-=_0x18b2b2[_0x1d98e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x14018f+=_0x18b2b2[_0x3bcf4d];}return _0x14018f;}function _0x4a1348(){const _0x28e7fb=_0x5d8236[_0x1d98e2([0x73,0x70,0x6c,0x69,0x74])](_0x1d98e2([0x2e]));if(0x3!=_0x28e7fb[_0x1d98e2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x483725(_0x28e7fb[0x1]);function _0x483725(_0x410201){const _0x385c1a=_0x2f39a5(_0x410201);return _0x385c1a&&_0x3e9f38()?_0x385c1a:null;function _0x3e9f38(){const _0x5d8feb=_0x385c1a[_0x1d98e2([0x6a,0x74,0x69])],_0x573a90=window[_0x1d98e2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d8feb[_0x1d98e2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d8feb[_0x1d98e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x13c180={..._0x385c1a,[_0x1d98e2([0x6a,0x74,0x69])]:_0x5d8feb[_0x1d98e2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5d8feb[_0x1d98e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x13c180[_0x1d98e2([0x76,0x63])],_0x5b6e7f(_0x13c180)==_0x573a90;}}}async function _0x4ab2b9(){let _0x1d618a=!0x0;try{const _0x8de39a=_0x5d8236[_0x1d98e2([0x73,0x70,0x6c,0x69,0x74])](_0x1d98e2([0x2e])),[_0x166e6e,_0x1583e1,_0x4420dc]=_0x8de39a;return _0x23fcc0(_0x166e6e),await _0x5a53cf(_0x166e6e,_0x1583e1,_0x4420dc),_0x1d618a;}catch(_0x928ff2){return!0x1;}function _0x23fcc0(_0x115251){const _0x2d9808=_0x2f39a5(_0x115251);_0x2d9808&&_0x2d9808[_0x1d98e2([0x61,0x6c,0x67])]==_0x1d98e2([0x45,0x53,0x32,0x35,0x36])||(_0x1d618a=!0x1);}async function _0x5a53cf(_0x8985d7,_0x197fcf,_0x2b277){const _0x14af95=window[_0x1d98e2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1d98e2([0x66,0x72,0x6f,0x6d])](_0x5eab29(_0x2b277),_0x3e78d8=>_0x3e78d8[_0x1d98e2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5dba95=new window[(_0x1d98e2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1d98e2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x8985d7+_0x1d98e2([0x2e])+_0x197fcf),_0x2ae13d=window[_0x1d98e2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1d98e2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ae13d)return;const _0x3f9cdc=await _0x2ae13d[_0x1d98e2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1d98e2([0x6a,0x77,0x6b]),_0x2df2af,{[_0x1d98e2([0x6e,0x61,0x6d,0x65])]:_0x1d98e2([0x45,0x43,0x44,0x53,0x41]),[_0x1d98e2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1d98e2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1d98e2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ae13d[_0x1d98e2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1d98e2([0x6e,0x61,0x6d,0x65])]:_0x1d98e2([0x45,0x43,0x44,0x53,0x41]),[_0x1d98e2([0x68,0x61,0x73,0x68])]:{[_0x1d98e2([0x6e,0x61,0x6d,0x65])]:_0x1d98e2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3f9cdc,_0x14af95,_0x5dba95)||(_0x1d618a=!0x1);}}function _0x2f39a5(_0x2b2232){return _0x2b2232[_0x1d98e2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1d98e2([0x65,0x79]))?JSON[_0x1d98e2([0x70,0x61,0x72,0x73,0x65])](_0x5eab29(_0x2b2232)):null;}function _0x5eab29(_0x84a345){return window[_0x1d98e2([0x61,0x74,0x6f,0x62])](_0x84a345[_0x1d98e2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1d98e2([0x2b]))[_0x1d98e2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1d98e2([0x2f])));}function _0x5b6e7f(_0x572294){let _0x2900e6=0x1505;function _0x4488bf(_0x56724e){for(let _0xa288=0x0;_0xa288<_0x56724e[_0x1d98e2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa288++){const _0x58ceeb=_0x56724e[_0x1d98e2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xa288);_0x2900e6=(_0x2900e6<<0x5)+_0x2900e6+_0x58ceeb,_0x2900e6&=_0x2900e6;}}function _0x14bfb1(_0x105e25){Array[_0x1d98e2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x105e25)?_0x105e25[_0x1d98e2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x14bfb1):_0x105e25&&typeof _0x105e25==_0x1d98e2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1d98e2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x105e25)[_0x1d98e2([0x73,0x6f,0x72,0x74])]()[_0x1d98e2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xa349c5,_0x5b824d])=>{_0x4488bf(_0xa349c5),_0x14bfb1(_0x5b824d);}):_0x4488bf(window[_0x1d98e2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x105e25));}return _0x14bfb1(_0x572294),_0x2900e6>>>0x0;}function _0x2e9562(_0x136634){return _0x136634[_0x1d98e2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1d98e2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1d98e2([0x30]));}function _0x15e229(_0x144e35){return _0x144e35[_0x1d98e2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1d98e2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1d98e2([0x6a,0x6f,0x69,0x6e])]('');}function _0x26cc9e(){}function _0x1d98e2(_0xfc6270){return _0xfc6270['map'](_0x5885b2=>String['fromCharCode'](_0x5885b2))['join']('');}_0x176ece(await _0x3e3857());}(this);}['_initSchema'](){const _0x5dc549=this['editor']['model']['schema'];_0x5dc549['isRegistered']('imageBlock')&&_0x5dc549['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5dc549['isRegistered']('imageInline')&&_0x5dc549['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x35f38c=this['editor'];_0x35f38c['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x35f38c['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x583e45=>_0x583e45['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x190209=_0x35f38c['commands']['get']('replaceImageSource');_0x190209&&this['listenTo'](_0x190209,'cleanupImage',(_0x4701ca,[_0x1c217d,_0x2159f3])=>{_0x1c217d['removeAttribute']('uploadcareImageId',_0x2159f3);});}['_initConfig'](){const _0x312f85=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1e1536=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x157b02(_0x5f1d08['document'],'uc-config',{..._0x312f85,'pubkey':_0x1e1536,'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']=_0x301000=>{if('closeMax'==_0x301000)return'#uc-icon-arrow-down';},_0x5f1d08['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x157b02(_0x5f1d08['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x5f1d08['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4806b0=this['editor']['commands']['get']('insertImage');_0x4806b0&&this['listenTo'](_0x4806b0,'execute',()=>{const _0x4c6dd5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4c6dd5&&_0x4c6dd5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4c6dd5);});});const _0x16e3fe=this['editor']['commands']['get']('uploadcareImageReplace');_0x16e3fe&&this['listenTo'](_0x16e3fe,'execute',()=>{const _0xee28c0=this['editor']['model']['document']['selection']['getSelectedElement']();_0xee28c0&&_0xee28c0['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xee28c0);});});}}class u extends _0x50b672{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b35ad){super(_0x4b35ad),_0x4b35ad['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x115514['defineComponents'](_0x115514);}}class ta extends _0x56aad3{constructor(_0x4f3e92){super(_0x4f3e92);const t=_0x4f3e92['t'],_0x7a3ab3=this['bindTemplate'],_0x1b36ec=new _0x4c1e7a();_0x1b36ec['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':[_0x1b36ec,{'text':_0x7a3ab3['to']('imageUploadProgress',_0xf1361e=>t('Loading\x20image...')+'\x20('+(_0xf1361e||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 _0x56aad3{constructor(_0x52ff80){super(_0x52ff80);const t=_0x52ff80['t'];this['set']('errorType',null);const _0x5a28a8=new _0x108e5c(_0x52ff80);_0x5a28a8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5a28a8['withText']=!0x0,_0x5a28a8['class']='ck-button-action',_0x5a28a8['on']('execute',()=>{this['fire']('retry');}),_0x5a28a8['bind']('isVisible')['to'](this,'errorType',_0x416908=>'NotFound'!==_0x416908);const _0x1c3235=new at();_0x1c3235['content']=et,_0x1c3235['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4b8362=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':[_0x1c3235,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4b8362['to']('errorType',_0x2617e8=>t('NotFound'!==_0x2617e8?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5a28a8]},{'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 _0x56aad3{constructor(_0x13ca8e,_0x507490){super(_0x13ca8e);const _0x1e2ea0=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x507490,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1e2ea0['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x50194d,_0xdcd1a3,_0x2927e8){super(_0x50194d),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x50194d),this['_errorView']=new rt(_0x50194d),this['_editingView']=new tt(_0x50194d,_0x2927e8),this['_focusableView']=new _0x56aad3(_0x50194d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xdcd1a3),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'],_0x35911c=>{this['_addUploadcareImageEditorListeners'](_0x35911c);});}),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'](_0x1ace9e,_0x2416ec){const _0x2f7c51='uc-cloud-image-editor',_0x2821dc=_0x1ace9e['querySelector'](_0x2f7c51);if(_0x2821dc)return _0x2416ec(_0x2821dc);const _0x4500ad=new MutationObserver(_0x4ef259=>{const _0x3a0ca0=_0x4ef259['filter'](_0x547c45=>_0x547c45['target']===_0x1ace9e&&_0x547c45['addedNodes']['length']>0x0&&_0x547c45['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2f7c51);_0x3a0ca0['length']&&(_0x4500ad['disconnect'](),_0x2416ec(_0x3a0ca0[0x0]['addedNodes'][0x0]));});_0x4500ad['observe'](_0x1ace9e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2dbdb9){_0x2dbdb9['addEventListener']('apply',_0x17574f=>{this['fire']('apply',{'imageSrc':_0x17574f['detail']['cdnUrl']});}),_0x2dbdb9['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x345b5c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x264816,_0x13d7ef,_0x5ad5b6){super(),this['_editor']=_0x264816,this['_dialog']=_0x13d7ef,this['_imageElement']=_0x5ad5b6,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 _0x5b836a=this['_imageElement'],_0x458215=_0x5b836a['getAttribute']('uploadcareImageId'),_0x1db1f9=_0x5b836a['getAttribute']('src');if(_0x458215)await this['_loadImageInfo'](_0x458215,_0x1db1f9);else{if(this['_imageCache']['has'](_0x1db1f9)){const _0x3c11af=this['_imageCache']['get'](_0x1db1f9);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c11af['url'],this['imageDimension']=_0x3c11af['dimension'],this['imageId']=_0x3c11af['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x33557c}=this['_editor'],t=_0x33557c['t'],_0x3926e0=new Z(_0x33557c,this['imageStatus'],this['_attributes']);_0x3926e0['bind']('status')['to'](this,'imageStatus'),_0x3926e0['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3926e0['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3926e0['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3926e0,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x18d57e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3926e0,'position':_0x5d98f4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3926e0['focus']();},'onHide':()=>{_0x3926e0['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x42d912=>!F(_0x42d912,_0x3926e0['element'])}});}['_loadImageInfo'](_0x3f429d,_0x4897bc){return C['getInfo'](_0x3f429d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x22b0c4=>{const {width:_0x400ed3,height:_0x443fc8}=_0x22b0c4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4897bc,this['imageDimension']={'width':_0x400ed3,'height':_0x443fc8},this['imageId']=_0x3f429d;})['catch'](_0xbd38ef=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xbd38ef['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1a4fb7,_0x3fd041){return this['_getImageAsFile'](_0x1a4fb7)['then'](_0x3de1d7=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3fd041['signal'],'file':_0x3de1d7,'onProgress':_0x50911a=>{_0x50911a&&_0x50911a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x50911a['value']));}}))['then'](_0x2f1524=>{const {width:_0x3e3bff,height:_0x41118f}=_0x2f1524['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2f1524['cdnUrl'],this['imageDimension']={'width':_0x3e3bff,'height':_0x41118f},this['imageId']=_0x2f1524['uuid'],this['imageUploadProgress']=null;const _0x4f1efb=_0x1a4fb7['getAttribute']('src');this['_imageCache']['set'](_0x4f1efb,{'id':_0x2f1524['uuid'],'url':_0x2f1524['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x9b1e6d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x9b1e6d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x369316,_0x3dd09b){_0x369316['on']('apply',(_0x29e955,_0x4545d8)=>{this['_replaceImage'](_0x3dd09b,_0x4545d8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x369316['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x369316['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3e2071,_0xdc9419,_0x2c1cdd){const _0x4c6c3f=this['_editor'],{width:_0x44c2f1,height:_0x2e7664}=A(_0xdc9419,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x144d03,imageSources:_0x186923}=E(_0xdc9419,_0x44c2f1);_0x4c6c3f['model']['change'](_0x12102e=>{if('$graveyard'===_0x3e2071['root']['rootName']){_0x4c6c3f['execute']('insertImage',{'imageType':_0x3e2071['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3e2071['getAttributes']()),'uploadcareImageId':_0x2c1cdd,'src':_0x144d03,'sources':_0x186923,'width':_0x44c2f1,'height':_0x2e7664}});const _0x596c6f=_0x3e2071['getChildren']();_0x3e2071=_0x4c6c3f['model']['document']['selection']['getSelectedElement']();for(const _0x2f56f0 of _0x596c6f)_0x12102e['append'](_0x12102e['cloneElement'](_0x2f56f0),_0x3e2071);}else _0x12102e['setSelection'](_0x3e2071,'on'),_0x4c6c3f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3e2071['getAttributes']()),'uploadcareImageId':_0x2c1cdd,'src':_0x144d03,'sources':_0x186923,'width':_0x44c2f1,'height':_0x2e7664},_0x3e2071);_0x12102e['setSelection'](_0x3e2071,'on');});}async['_getImageAsFile'](_0x231902){const _0x5e7ad0=_0x5f1d08['window'],_0x4cb7a3=_0x5f1d08['document']['location']['href'],_0x13d27c=new _0x5e7ad0['URL'](_0x231902['getAttribute']('src'),_0x4cb7a3);if('data:'===_0x13d27c['protocol']){const _0x806f1b=_0x13d27c['href']['split'](','),_0x1258e=_0x806f1b[0x0]['match'](/:(.*?);/)[0x1],_0x2f0bf0=_0x1258e['split']('/')[0x1],_0xf7e7d5=_0x5e7ad0['atob'](_0x806f1b[_0x806f1b['length']-0x1]);let _0x4cbef0=_0xf7e7d5['length'];const _0x221d8b=new _0x5e7ad0['Uint8Array'](_0x4cbef0);for(;_0x4cbef0--;)_0x221d8b[_0x4cbef0]=_0xf7e7d5['charCodeAt'](_0x4cbef0);return new _0x5e7ad0['File']([_0x221d8b],'image.'+_0x2f0bf0,{'type':_0x1258e});}const _0x359a21=_0x13d27c['href']['split']('/'),_0x41cb11=_0x359a21[_0x359a21['length']-0x1],_0x570518=_0x41cb11['split']('.')[0x1];return _0x5e7ad0['fetch'](_0x13d27c['href'])['then'](_0x53dffb=>_0x53dffb['clone']()['blob']())['then'](_0x544f05=>new _0x5e7ad0['File']([_0x544f05],_0x41cb11,{'type':'image/'+_0x570518}));}}class J extends _0x5b8111{['imageEditController'];static get['requires'](){return[_0x3d7353];}['_isEditable'];constructor(_0x2c9efc){super(_0x2c9efc),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4a9207){const _0x519a97=V(_0x4a9207);return _0x5ea670=>!(!_0x5ea670||!_0x5ea670['is']('element','imageBlock')&&!_0x5ea670['is']('element','imageInline'))&&(!!_0x5ea670['hasAttribute']('uploadcareImageId')||!!_0x5ea670['hasAttribute']('src')&&_0x519a97(_0x5ea670['getAttribute']('src')));}(_0x2c9efc['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2b82e7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2b82e7);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1bc694=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1bc694&&(_0x1bc694['is']('element','imageBlock')||_0x1bc694['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x3d7353),_0x1bc694),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x5b8111{['refresh'](){const _0x418e2c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x418e2c&&(_0x418e2c['is']('element','imageBlock')||_0x418e2c['is']('element','imageInline')));}['execute'](_0x38cf1e){const _0x2e19cd=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x28c25b=>{_0x28c25b['setAttributes'](_0x38cf1e,_0x2e19cd),_0x28c25b['removeAttribute']('srcset',_0x2e19cd),_0x28c25b['removeAttribute']('sizes',_0x2e19cd);});}}class g extends _0x50b672{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x42eeb4,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x330e54}=this;_0x330e54['commands']['add']('uploadcareImageEdit',new J(_0x330e54)),_0x330e54['commands']['add']('uploadcareImageReplace',new O(_0x330e54));}}class j extends _0x50b672{['_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 _0x4ea285=this['editor'];_0x4ea285['ui']['componentFactory']['add']('uploadcareImageEdit',_0x34c0da=>{const _0x4eca34=_0x4ea285['commands']['get']('uploadcareImageEdit'),_0x414ecf=new _0x108e5c(_0x34c0da),t=_0x34c0da['t'];return _0x414ecf['set']({'icon':_0x18d57e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x414ecf['bind']('isEnabled')['to'](_0x4eca34),_0x414ecf['bind']('isOn')['to'](_0x4eca34,'isActive'),this['listenTo'](_0x414ecf,'execute',()=>{_0x4ea285['execute']('uploadcareImageEdit'),_0x4ea285['editing']['view']['focus']();}),_0x414ecf;}),this['_initConfig']();}['_initConfig'](){const _0x5be821=_0x157b02(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5be821),this['listenTo'](this['editor'],'destroy',()=>{_0x5be821['remove']();});}}class P extends _0x50b672{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-next-
|
|
3
|
+
"version": "0.0.0-nightly-next-20250304.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-next-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-next-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-next-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20250304.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20250304.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20250304.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20250304.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20250304.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20250304.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20250304.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-next-20250304.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 _0x3dafe3=_0x1ea8;function _0x2993(){const _0x1d2dda=['uploadcareImageReplace','input[uploadcare-file-input]','5zAVUqG','join','schema','execute','uploadcareImageId','document','destroy','contentLanguage','replaceImageSource','locale','_initConfig','572598xeSWcc','selection','cleanupImage','imageInline','isRegistered','_initConversion','getSelectedElement','uc-upload-ctx-provider','2490vYzwpV','236608ahtECA','config','once','true','commands','remove','configElement','insertImage','ctxElement','appendChild','uc-config','attributeToAttribute','pluginName','body','closeMax','get','uploadcare','afterInit','editing','181932sMDeUR','conversion','init','href','iconHrefResolver','uploadcare.pubkey','listenTo','model','174905MgUror','isPremiumPlugin','isOfficialPlugin','1316410uNYjGE','extend','add','4585TlJyyD','_initSchema','_ctxElement','\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','_initCtx','downcast','PictureEditing','editor','fromCharCode','view','removeAttribute','3GQPMca','_configElement','requires','UploadcareEditing','uploader','render','_initImageProcessingIndicator','map','uploadcare.uploader','#uc-icon-arrow-down','1192084dfYDvQ','data-uc-image-id','imageBlock','getAttribute','for','elementToAttribute','upcast','querySelector'];_0x2993=function(){return _0x1d2dda;};return _0x2993();}function _0x1ea8(_0x4dea3a,_0x49eecf){const _0x2993c1=_0x2993();return _0x1ea8=function(_0x1ea821,_0x9aa2cf){_0x1ea821=_0x1ea821-0x96;let _0x58e1c3=_0x2993c1[_0x1ea821];return _0x58e1c3;},_0x1ea8(_0x4dea3a,_0x49eecf);}(function(_0x482ea2,_0x4c6788){const _0x4a26ec=_0x1ea8,_0x2f7a72=_0x482ea2();while(!![]){try{const _0x332c9f=parseInt(_0x4a26ec(0x9c))/0x1+-parseInt(_0x4a26ec(0xe8))/0x2*(parseInt(_0x4a26ec(0xad))/0x3)+-parseInt(_0x4a26ec(0xb7))/0x4*(-parseInt(_0x4a26ec(0xc1))/0x5)+parseInt(_0x4a26ec(0xd4))/0x6*(-parseInt(_0x4a26ec(0xa2))/0x7)+parseInt(_0x4a26ec(0xd5))/0x8+-parseInt(_0x4a26ec(0xcc))/0x9+parseInt(_0x4a26ec(0x9f))/0xa;if(_0x332c9f===_0x4c6788)break;else _0x2f7a72['push'](_0x2f7a72['shift']());}catch(_0x5eb740){_0x2f7a72['push'](_0x2f7a72['shift']());}}}(_0x2993,0x32b72));import{Plugin as _0x2606d5}from'ckeditor5/src/core.js';import{Dialog as _0x2ca371}from'ckeditor5/src/ui.js';import{createElement as _0x3b3e5c,global as _0x3d29f5,uid as _0x25c6f6}from'ckeditor5/src/utils.js';import _0x2b27f2 from'./uploadcarecommand.js';import _0x1600ed from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2b50d9}from'./utils/editingutils.js';export default class i extends _0x2606d5{[_0x3dafe3(0xae)]=null;[_0x3dafe3(0xa4)]=null;static get[_0x3dafe3(0xe1)](){const _0x543fc3=_0x3dafe3;return _0x543fc3(0xb0);}static get[_0x3dafe3(0xaf)](){const _0x71446=_0x3dafe3;return[_0x71446(0xa8),_0x1600ed,_0x2ca371];}static get[_0x3dafe3(0x9e)](){return!0x0;}static get[_0x3dafe3(0x9d)](){return!0x0;}get[_0x3dafe3(0xdb)](){const _0x31538a=_0x3dafe3;return this[_0x31538a(0xae)];}get[_0x3dafe3(0xdd)](){const _0x441f3f=_0x3dafe3;return this[_0x441f3f(0xa4)];}[_0x3dafe3(0x96)](){const _0x127a81=_0x3dafe3,_0x12256e=this[_0x127a81(0xa9)];_0x12256e[_0x127a81(0xd9)][_0x127a81(0xa1)](_0x127a81(0xe5),new _0x2b27f2(_0x12256e));}[_0x3dafe3(0xe6)](){const _0x2b21c1=_0x3dafe3;this[_0x2b21c1(0xa3)](),this[_0x2b21c1(0xd1)](),this[_0x2b21c1(0xcb)](),this[_0x2b21c1(0xa6)](),this[_0x2b21c1(0xb3)](),this[_0x2b21c1(0x9a)](this[_0x2b21c1(0xa9)],_0x2b21c1(0xc7),()=>{const _0x50ca21=_0x2b21c1;this[_0x50ca21(0xae)]&&(this[_0x50ca21(0xae)][_0x50ca21(0xda)](),this[_0x50ca21(0xae)]=null),this[_0x50ca21(0xa4)]&&(this[_0x50ca21(0xa4)][_0x50ca21(0xda)](),this[_0x50ca21(0xa4)]=null);const _0x72de3=_0x3d29f5[_0x50ca21(0xc6)][_0x50ca21(0xbe)](_0x50ca21(0xc0));_0x72de3&&_0x72de3[_0x50ca21(0xda)]();}),async function(_0x11827f){const _0x555c19=_0x2270d9([0x5a,0x37,0x67,0x54,0x52,0x42,0x57,0x33,0x72,0x36,0x75,0x79,0x58,0x49,0x4e,0x6e,0x6f,0x65,0x51,0x55,0x56,0x4a,0x66,0x45,0x43,0x63,0x47,0x62,0x6d,0x59,0x48,0x32,0x46,0x77,0x69,0x78,0x71,0x30,0x44,0x61,0x6b,0x74,0x50,0x76,0x4f,0x34,0x4c,0x41,0x4b,0x73,0x6c,0x4d,0x70,0x53,0x31,0x68,0x35,0x38,0x7a,0x39,0x6a,0x64]),_0xe5ed90=0x54194dc0,_0x340945=0x541e2cd0^_0xe5ed90,_0x1fa3bf=window[_0x2270d9([0x44,0x61,0x74,0x65])][_0x2270d9([0x6e,0x6f,0x77])](),_0x3ebbc6=_0x11827f[_0x2270d9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1fcfe0=new window[(_0x2270d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27a2df=>{_0x3ebbc6[_0x2270d9([0x6f,0x6e,0x63,0x65])](_0x2270d9([0x72,0x65,0x61,0x64,0x79]),_0x27a2df);}),_0x149c2e={[_0x2270d9([0x6b,0x74,0x79])]:_0x2270d9([0x45,0x43]),[_0x2270d9([0x75,0x73,0x65])]:_0x2270d9([0x73,0x69,0x67]),[_0x2270d9([0x63,0x72,0x76])]:_0x2270d9([0x50,0x2d,0x32,0x35,0x36]),[_0x2270d9([0x78])]:_0x2270d9([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]),[_0x2270d9([0x79])]:_0x2270d9([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]),[_0x2270d9([0x61,0x6c,0x67])]:_0x2270d9([0x45,0x53,0x32,0x35,0x36])},_0x337cd9=_0x3ebbc6[_0x2270d9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2270d9([0x67,0x65,0x74])](_0x2270d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x99eae8(){let _0x1cb58a,_0x59774f=null,_0x289517=null;try{if(_0x337cd9==_0x2270d9([0x47,0x50,0x4c]))return _0x2270d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1cb58a=_0x55836b(),!_0x1cb58a)return _0x2270d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1cb58a[_0x2270d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x289517=_0x241db9(_0x1cb58a[_0x2270d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1cb58a[_0x2270d9([0x6a,0x74,0x69])])),await _0x2e5a0c()?_0x5bab72()?_0x1f30fa()?_0x2270d9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x76ab56()?(_0x1cb58a[_0x2270d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2270d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x59774f=_0x966e9a(_0x2270d9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1cb58a[_0x2270d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2270d9([0x74,0x72,0x69,0x61,0x6c])&&(_0x59774f=_0x966e9a(_0x2270d9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x34a631()):_0x2270d9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2270d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2270d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x30aea1){return _0x2270d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1f30fa(){const _0x6705d0=[_0x2270d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2270d9([0x74,0x72,0x69,0x61,0x6c])][_0x2270d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cb58a[_0x2270d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1fa3bf/0x3e8:0xe10*_0x340945;return _0x1cb58a[_0x2270d9([0x65,0x78,0x70])]<_0x6705d0;}function _0x5bab72(){const _0xfd82ec=_0x1cb58a[_0x2270d9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xfd82ec&&(!!_0xfd82ec[_0x2270d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2270d9([0x2a]))||!!_0xfd82ec[_0x2270d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2270d9([0x55,0x50,0x4c,0x43])));}function _0x76ab56(){const _0x55b274=_0x1ea8,_0x25e3c3=_0x1cb58a[_0x2270d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x25e3c3||0x0==_0x25e3c3[_0x2270d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x473f83}=new URL(window[_0x2270d9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x55b274(0x97)]);if(_0x25e3c3[_0x2270d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x473f83))return!0x0;const _0x4805ea=_0x473f83[_0x2270d9([0x73,0x70,0x6c,0x69,0x74])](_0x2270d9([0x2e]));return _0x25e3c3[_0x2270d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x207cf3=>_0x207cf3[_0x2270d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2270d9([0x2a])))[_0x2270d9([0x6d,0x61,0x70])](_0x84af45=>_0x84af45[_0x2270d9([0x73,0x70,0x6c,0x69,0x74])](_0x2270d9([0x2e])))[_0x2270d9([0x73,0x6f,0x6d,0x65])](_0x119ac2=>_0x4805ea[_0x2270d9([0x65,0x76,0x65,0x72,0x79])]((_0xd14277,_0xc3b953)=>_0x119ac2[_0xc3b953]===_0xd14277||_0x119ac2[_0xc3b953]===_0x2270d9([0x2a])));}function _0x34a631(){return _0x59774f&&_0x289517?new window[(_0x2270d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d4f37,_0x169f41)=>{_0x59774f[_0x2270d9([0x74,0x68,0x65,0x6e])](_0x1d4f37,_0x169f41),_0x289517[_0x2270d9([0x74,0x68,0x65,0x6e])](_0x170cff=>{_0x170cff!=_0x2270d9([0x56,0x61,0x6c,0x69,0x64])&&_0x1d4f37(_0x170cff);},_0x169f41);}):_0x59774f||_0x289517||_0x2270d9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x241db9(_0x10225d,_0x5559f9){return new window[(_0x2270d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8ccb27=>{if(_0x2405b7())return _0x8ccb27(_0x2270d9([0x56,0x61,0x6c,0x69,0x64]));_0x5b836d(),_0x3ebbc6[_0x2270d9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2270d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x596f1a=!0x1;const _0xdace0e=_0x25c6f6();function _0x3b3e9b(_0x9e9e6c){return!!_0x9e9e6c&&(typeof _0x9e9e6c===_0x2270d9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x9e9e6c===_0x2270d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x9e9e6c[_0x2270d9([0x74,0x68,0x65,0x6e])]===_0x2270d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x9e9e6c[_0x2270d9([0x63,0x61,0x74,0x63,0x68])]===_0x2270d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3ea2f1(_0xbe9850){_0x2140df(_0xbe9850)[_0x2270d9([0x74,0x68,0x65,0x6e])](_0x4a093b=>{if(!_0x4a093b||_0x4a093b[_0x2270d9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2270d9([0x6f,0x6b]))return _0x2270d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x28778f(_0x2568c2(_0xdace0e+_0x5559f9))!=_0x4a093b[_0x2270d9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2270d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2270d9([0x56,0x61,0x6c,0x69,0x64]);})[_0x2270d9([0x74,0x68,0x65,0x6e])](_0x395c93=>(_0x49c9c7(),_0x395c93),()=>{const _0x48994f=_0x314965();return null==_0x48994f?(_0x49c9c7(),_0x2270d9([0x56,0x61,0x6c,0x69,0x64])):_0x2270d9(_0x1fa3bf-_0x48994f>(0x7015c9c0^_0xe5ed90)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2270d9([0x74,0x68,0x65,0x6e])](_0x8ccb27)[_0x2270d9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x8ccb27(_0x2270d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3a6c32=0x542fa340^_0xe5ed90;function _0x49c9c7(){const _0x3e21b8=_0x2270d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x28778f(_0x2568c2(_0x10225d)),_0x33ebe3=_0x542fdf(_0x28778f(window[_0x2270d9([0x4d,0x61,0x74,0x68])][_0x2270d9([0x63,0x65,0x69,0x6c])](_0x1fa3bf/_0x3a6c32)));window[_0x2270d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2270d9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e21b8,_0x33ebe3);}function _0x314965(){const _0x314b45=_0x2270d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x28778f(_0x2568c2(_0x10225d)),_0x2e220c=window[_0x2270d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2270d9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x314b45);return _0x2e220c?window[_0x2270d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x542fdf(_0x2e220c),0x10)*_0x3a6c32:null;}function _0x2140df(_0x429813){return new window[(_0x2270d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x573e25,_0x397cf9)=>{_0x429813[_0x2270d9([0x74,0x68,0x65,0x6e])](_0x573e25,_0x397cf9),window[_0x2270d9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x397cf9,0x54189900^_0xe5ed90);});}}_0x3ebbc6[_0x2270d9([0x6f,0x6e])](_0x2270d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x19fe17,_0x5585c5)=>{if(_0x5585c5[0x0]!=_0x10225d)return _0x8ccb27(_0x2270d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5585c5[0x1]={..._0x5585c5[0x1],[_0x2270d9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xdace0e};},{[_0x2270d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2270d9([0x68,0x69,0x67,0x68])}),_0x3ebbc6[_0x2270d9([0x6f,0x6e])](_0x2270d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x6f7068=>{_0x3b3e9b(_0x6f7068[_0x2270d9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x596f1a=!0x0,_0x3ea2f1(_0x6f7068[_0x2270d9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2270d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2270d9([0x6c,0x6f,0x77])}),_0x1fcfe0[_0x2270d9([0x74,0x68,0x65,0x6e])](()=>{_0x596f1a||_0x8ccb27(_0x2270d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2405b7(){return _0x3ebbc6[_0x2270d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2270d9([0x76,0x69,0x65,0x77])][_0x2270d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2270d9([0x61,0x75,0x74,0x6f]);}function _0x5b836d(){_0x3ebbc6[_0x2270d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2270d9([0x76,0x69,0x65,0x77])][_0x2270d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2270d9([0x61,0x75,0x74,0x6f]);}}function _0x966e9a(_0x56dcba){const _0x77818=[new window[(_0x2270d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41c276=>setTimeout(_0x41c276,0x5410730c^_0xe5ed90)),_0x1fcfe0[_0x2270d9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2270d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5546dd=>{let _0x3a1907=0x0;_0x3ebbc6[_0x2270d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x2270d9([0x6f,0x6e])](_0x2270d9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x24e005,_0x4fb00c)=>{_0x4fb00c[0x0][_0x2270d9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a1907++,_0x3a1907==(0x54194c38^_0xe5ed90)&&(_0x5546dd(),_0x24e005[_0x2270d9([0x6f,0x66,0x66])]());});}))];return window[_0x2270d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2270d9([0x72,0x61,0x63,0x65])](_0x77818)[_0x2270d9([0x74,0x68,0x65,0x6e])](()=>_0x56dcba);}async function _0x17bc88(){await _0x1fcfe0,_0x3ebbc6[_0x2270d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x2270d9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x10ec23,_0x3ebbc6[_0x2270d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x2270d9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x10ec23,_0x3ebbc6[_0x2270d9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2270d9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2355de(_0x1e1975){const _0x5e3a5c=_0x3e9724();_0x3ebbc6[_0x5e3a5c]=_0x2270d9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1e1975,_0x1e1975!=_0x2270d9([0x56,0x61,0x6c,0x69,0x64])&&_0x17bc88();}function _0x3e9724(){const _0x4e087c=window[_0x2270d9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2270d9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2270d9([0x6e,0x6f,0x77])]())[_0x2270d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2270d9([0x2e]),'');let _0x2eef5c=_0x2270d9([0x5a]);for(let _0x3c3680=0x0;_0x3c3680<_0x4e087c[_0x2270d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c3680+=0x2){let _0x1100c0=window[_0x2270d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e087c[_0x2270d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c3680,_0x3c3680+0x2));_0x1100c0>=_0x555c19[_0x2270d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1100c0-=_0x555c19[_0x2270d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2eef5c+=_0x555c19[_0x1100c0];}return _0x2eef5c;}function _0x55836b(){const _0x192ec4=_0x337cd9[_0x2270d9([0x73,0x70,0x6c,0x69,0x74])](_0x2270d9([0x2e]));if(0x3!=_0x192ec4[_0x2270d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34561b(_0x192ec4[0x1]);function _0x34561b(_0x48f306){const _0x3acba1=_0x56ba97(_0x48f306);return _0x3acba1&&_0x20cd88()?_0x3acba1:null;function _0x20cd88(){const _0xb46a82=_0x3acba1[_0x2270d9([0x6a,0x74,0x69])],_0x36f9b2=window[_0x2270d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb46a82[_0x2270d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb46a82[_0x2270d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3c3aa0={..._0x3acba1,[_0x2270d9([0x6a,0x74,0x69])]:_0xb46a82[_0x2270d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xb46a82[_0x2270d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3c3aa0[_0x2270d9([0x76,0x63])],_0x2568c2(_0x3c3aa0)==_0x36f9b2;}}}async function _0x2e5a0c(){let _0x512301=!0x0;try{const _0x2881fa=_0x337cd9[_0x2270d9([0x73,0x70,0x6c,0x69,0x74])](_0x2270d9([0x2e])),[_0xe93a19,_0x492c79,_0x326c56]=_0x2881fa;return _0x5c8a56(_0xe93a19),await _0x3f33f3(_0xe93a19,_0x492c79,_0x326c56),_0x512301;}catch(_0x5dd6a4){return!0x1;}function _0x5c8a56(_0x3bce31){const _0x4f8662=_0x56ba97(_0x3bce31);_0x4f8662&&_0x4f8662[_0x2270d9([0x61,0x6c,0x67])]==_0x2270d9([0x45,0x53,0x32,0x35,0x36])||(_0x512301=!0x1);}async function _0x3f33f3(_0x1a689d,_0x2e68b8,_0x1d449d){const _0x5ae129=window[_0x2270d9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2270d9([0x66,0x72,0x6f,0x6d])](_0x484951(_0x1d449d),_0x3b5202=>_0x3b5202[_0x2270d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4dace5=new window[(_0x2270d9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2270d9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1a689d+_0x2270d9([0x2e])+_0x2e68b8),_0x265b5d=window[_0x2270d9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2270d9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x265b5d)return;const _0x1abd4f=await _0x265b5d[_0x2270d9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2270d9([0x6a,0x77,0x6b]),_0x149c2e,{[_0x2270d9([0x6e,0x61,0x6d,0x65])]:_0x2270d9([0x45,0x43,0x44,0x53,0x41]),[_0x2270d9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2270d9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2270d9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x265b5d[_0x2270d9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2270d9([0x6e,0x61,0x6d,0x65])]:_0x2270d9([0x45,0x43,0x44,0x53,0x41]),[_0x2270d9([0x68,0x61,0x73,0x68])]:{[_0x2270d9([0x6e,0x61,0x6d,0x65])]:_0x2270d9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1abd4f,_0x5ae129,_0x4dace5)||(_0x512301=!0x1);}}function _0x56ba97(_0x4738c8){return _0x4738c8[_0x2270d9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2270d9([0x65,0x79]))?JSON[_0x2270d9([0x70,0x61,0x72,0x73,0x65])](_0x484951(_0x4738c8)):null;}function _0x484951(_0x46685e){return window[_0x2270d9([0x61,0x74,0x6f,0x62])](_0x46685e[_0x2270d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2270d9([0x2b]))[_0x2270d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2270d9([0x2f])));}function _0x2568c2(_0x37bed6){let _0x76578a=0x1505;function _0x407542(_0x4a128e){for(let _0x5f4b20=0x0;_0x5f4b20<_0x4a128e[_0x2270d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5f4b20++){const _0xd37064=_0x4a128e[_0x2270d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5f4b20);_0x76578a=(_0x76578a<<0x5)+_0x76578a+_0xd37064,_0x76578a&=_0x76578a;}}function _0x4164d8(_0xfc9f3){Array[_0x2270d9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xfc9f3)?_0xfc9f3[_0x2270d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4164d8):_0xfc9f3&&typeof _0xfc9f3==_0x2270d9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2270d9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xfc9f3)[_0x2270d9([0x73,0x6f,0x72,0x74])]()[_0x2270d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x16d651,_0x5f4b1b])=>{_0x407542(_0x16d651),_0x4164d8(_0x5f4b1b);}):_0x407542(window[_0x2270d9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xfc9f3));}return _0x4164d8(_0x37bed6),_0x76578a>>>0x0;}function _0x28778f(_0x356d01){return _0x356d01[_0x2270d9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2270d9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2270d9([0x30]));}function _0x542fdf(_0x1ca2fc){return _0x1ca2fc[_0x2270d9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2270d9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2270d9([0x6a,0x6f,0x69,0x6e])]('');}function _0x10ec23(){}function _0x2270d9(_0x36b7dd){const _0x46d36b=_0x1ea8;return _0x36b7dd[_0x46d36b(0xb4)](_0x70637c=>String[_0x46d36b(0xaa)](_0x70637c))[_0x46d36b(0xc2)]('');}_0x2355de(await _0x99eae8());}(this);}[_0x3dafe3(0xa3)](){const _0x289b5d=_0x3dafe3,_0x12c401=this[_0x289b5d(0xa9)][_0x289b5d(0x9b)][_0x289b5d(0xc3)];_0x12c401[_0x289b5d(0xd0)](_0x289b5d(0xb9))&&_0x12c401[_0x289b5d(0xa0)](_0x289b5d(0xb9),{'allowAttributes':[_0x289b5d(0xc5)]}),_0x12c401[_0x289b5d(0xd0)](_0x289b5d(0xcf))&&_0x12c401[_0x289b5d(0xa0)](_0x289b5d(0xcf),{'allowAttributes':[_0x289b5d(0xc5)]});}[_0x3dafe3(0xd1)](){const _0x200c9c=_0x3dafe3,_0x26a1ab=this[_0x200c9c(0xa9)];_0x26a1ab[_0x200c9c(0xe9)][_0x200c9c(0xbb)](_0x200c9c(0xa7))[_0x200c9c(0xe0)]({'model':_0x200c9c(0xc5),'view':_0x200c9c(0xb8)}),_0x26a1ab[_0x200c9c(0xe9)][_0x200c9c(0xbb)](_0x200c9c(0xbd))[_0x200c9c(0xbc)]({'model':{'key':_0x200c9c(0xc5),'value':_0x121c1b=>_0x121c1b[_0x200c9c(0xba)](_0x200c9c(0xb8))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5370c1=_0x26a1ab[_0x200c9c(0xd9)][_0x200c9c(0xe4)](_0x200c9c(0xc9));_0x5370c1&&this[_0x200c9c(0x9a)](_0x5370c1,_0x200c9c(0xce),(_0x3d8f5d,[_0x338a8a,_0x35a89e])=>{const _0x22e7d5=_0x200c9c;_0x338a8a[_0x22e7d5(0xac)](_0x22e7d5(0xc5),_0x35a89e);});}[_0x3dafe3(0xcb)](){const _0x1e6946=_0x3dafe3,_0x3c7487=this[_0x1e6946(0xa9)][_0x1e6946(0xd6)][_0x1e6946(0xe4)](_0x1e6946(0xb5))||{},_0x49579d=this[_0x1e6946(0xa9)][_0x1e6946(0xd6)][_0x1e6946(0xe4)](_0x1e6946(0x99))||'';this[_0x1e6946(0xae)]=_0x3b3e5c(_0x3d29f5[_0x1e6946(0xc6)],_0x1e6946(0xdf),{..._0x3c7487,'pubkey':_0x49579d,'ctx-name':_0x1e6946(0xb1),'sourceList':'','imgOnly':_0x1e6946(0xd8),'removeCopyright':_0x1e6946(0xd8),'localeName':this[_0x1e6946(0xa9)][_0x1e6946(0xca)][_0x1e6946(0xc8)],'externalSourcesEmbedCss':_0x1e6946(0xa5)}),this[_0x1e6946(0xae)][_0x1e6946(0x98)]=_0x48d0b9=>{const _0x79a6bc=_0x1e6946;if(_0x79a6bc(0xe3)==_0x48d0b9)return _0x79a6bc(0xb6);},_0x3d29f5[_0x1e6946(0xc6)][_0x1e6946(0xe2)][_0x1e6946(0xde)](this[_0x1e6946(0xae)]);}[_0x3dafe3(0xa6)](){const _0x50b992=_0x3dafe3;this[_0x50b992(0xa4)]=_0x3b3e5c(_0x3d29f5[_0x50b992(0xc6)],_0x50b992(0xd3),{'ctx-name':_0x50b992(0xb1)}),_0x3d29f5[_0x50b992(0xc6)][_0x50b992(0xe2)][_0x50b992(0xde)](this[_0x50b992(0xa4)]);}[_0x3dafe3(0xb3)](){const _0x216dad=_0x3dafe3,_0x5e8d74=this[_0x216dad(0xa9)][_0x216dad(0xd9)][_0x216dad(0xe4)](_0x216dad(0xdc));_0x5e8d74&&this[_0x216dad(0x9a)](_0x5e8d74,_0x216dad(0xc4),()=>{const _0x5b7a43=_0x216dad,_0x3b7b18=this[_0x5b7a43(0xa9)][_0x5b7a43(0x9b)][_0x5b7a43(0xc6)][_0x5b7a43(0xcd)][_0x5b7a43(0xd2)]();_0x3b7b18&&_0x3b7b18[_0x5b7a43(0xba)](_0x5b7a43(0xc5))&&this[_0x5b7a43(0xa9)][_0x5b7a43(0xe7)][_0x5b7a43(0xab)][_0x5b7a43(0xd7)](_0x5b7a43(0xb2),()=>{const _0x101c41=_0x5b7a43;_0x2b50d9(this[_0x101c41(0xa9)],_0x3b7b18);});});const _0xf8990b=this[_0x216dad(0xa9)][_0x216dad(0xd9)][_0x216dad(0xe4)](_0x216dad(0xbf));_0xf8990b&&this[_0x216dad(0x9a)](_0xf8990b,_0x216dad(0xc4),()=>{const _0x58ebbf=_0x216dad,_0x2a78f8=this[_0x58ebbf(0xa9)][_0x58ebbf(0x9b)][_0x58ebbf(0xc6)][_0x58ebbf(0xcd)][_0x58ebbf(0xd2)]();_0x2a78f8&&_0x2a78f8[_0x58ebbf(0xba)](_0x58ebbf(0xc5))&&this[_0x58ebbf(0xa9)][_0x58ebbf(0xe7)][_0x58ebbf(0xab)][_0x58ebbf(0xd7)](_0x58ebbf(0xb2),()=>{const _0x2a1d24=_0x58ebbf;_0x2b50d9(this[_0x2a1d24(0xa9)],_0x2a78f8);});});}}
|
|
23
|
+
const _0x4294f4=_0x96de;(function(_0x4a8428,_0x452791){const _0x21ab57=_0x96de,_0x54f026=_0x4a8428();while(!![]){try{const _0x439dd9=-parseInt(_0x21ab57(0xd3))/0x1*(parseInt(_0x21ab57(0xc4))/0x2)+-parseInt(_0x21ab57(0xc1))/0x3*(parseInt(_0x21ab57(0x109))/0x4)+parseInt(_0x21ab57(0xe6))/0x5*(-parseInt(_0x21ab57(0xee))/0x6)+parseInt(_0x21ab57(0xc2))/0x7*(parseInt(_0x21ab57(0xfa))/0x8)+-parseInt(_0x21ab57(0xf5))/0x9+parseInt(_0x21ab57(0xdb))/0xa*(-parseInt(_0x21ab57(0xc8))/0xb)+parseInt(_0x21ab57(0xd4))/0xc;if(_0x439dd9===_0x452791)break;else _0x54f026['push'](_0x54f026['shift']());}catch(_0x581393){_0x54f026['push'](_0x54f026['shift']());}}}(_0xc02a,0x6ff67));import{Plugin as _0x402edc}from'ckeditor5/src/core.js';import{Dialog as _0x30c3f9}from'ckeditor5/src/ui.js';import{createElement as _0x290561,global as _0x4ee43e,uid as _0x2cc79a}from'ckeditor5/src/utils.js';import _0x2e666e from'./uploadcarecommand.js';import _0x10e80a from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x506343}from'./utils/editingutils.js';export default class i extends _0x402edc{[_0x4294f4(0xd2)]=null;[_0x4294f4(0xda)]=null;static get[_0x4294f4(0xfc)](){const _0x34d471=_0x4294f4;return _0x34d471(0xe3);}static get[_0x4294f4(0xf0)](){const _0x171e77=_0x4294f4;return[_0x171e77(0xdd),_0x10e80a,_0x30c3f9];}static get[_0x4294f4(0x113)](){return!0x0;}static get[_0x4294f4(0x108)](){return!0x0;}get[_0x4294f4(0xf9)](){const _0x3be5bb=_0x4294f4;return this[_0x3be5bb(0xd2)];}get[_0x4294f4(0xd7)](){const _0x33d091=_0x4294f4;return this[_0x33d091(0xda)];}[_0x4294f4(0xc5)](){const _0x4b1fdf=_0x4294f4,_0x564bc8=this[_0x4b1fdf(0xfe)];_0x564bc8[_0x4b1fdf(0xc0)][_0x4b1fdf(0xe4)](_0x4b1fdf(0x102),new _0x2e666e(_0x564bc8));}[_0x4294f4(0x10e)](){const _0x42ad21=_0x4294f4;this[_0x42ad21(0xce)](),this[_0x42ad21(0xef)](),this[_0x42ad21(0x103)](),this[_0x42ad21(0xf6)](),this[_0x42ad21(0x111)](),this[_0x42ad21(0xe8)](this[_0x42ad21(0xfe)],_0x42ad21(0xcc),()=>{const _0x3ac866=_0x42ad21;this[_0x3ac866(0xd2)]&&(this[_0x3ac866(0xd2)][_0x3ac866(0x10b)](),this[_0x3ac866(0xd2)]=null),this[_0x3ac866(0xda)]&&(this[_0x3ac866(0xda)][_0x3ac866(0x10b)](),this[_0x3ac866(0xda)]=null);const _0x1f1163=_0x4ee43e[_0x3ac866(0x104)][_0x3ac866(0x10a)](_0x3ac866(0xc9));_0x1f1163&&_0x1f1163[_0x3ac866(0x10b)]();}),async function(_0x368ec6){const _0x53b9b4=_0x150416([0x6d,0x6b,0x52,0x4e,0x69,0x51,0x4b,0x70,0x73,0x6f,0x57,0x74,0x54,0x64,0x6a,0x66,0x79,0x4c,0x58,0x59,0x6c,0x67,0x35,0x44,0x36,0x68,0x63,0x37,0x6e,0x39,0x72,0x77,0x78,0x50,0x48,0x32,0x38,0x76,0x45,0x43,0x46,0x71,0x56,0x47,0x62,0x33,0x61,0x30,0x53,0x65,0x55,0x7a,0x4d,0x42,0x75,0x4f,0x5a,0x49,0x4a,0x41,0x34,0x31]),_0x171857=0x62d3fbc8,_0x5f330b=0x62d49ae0^_0x171857,_0x9b8539=window[_0x150416([0x44,0x61,0x74,0x65])][_0x150416([0x6e,0x6f,0x77])](),_0x26642d=_0x368ec6[_0x150416([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x53c10b=new window[(_0x150416([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xaeeb45=>{_0x26642d[_0x150416([0x6f,0x6e,0x63,0x65])](_0x150416([0x72,0x65,0x61,0x64,0x79]),_0xaeeb45);}),_0x2a8868={[_0x150416([0x6b,0x74,0x79])]:_0x150416([0x45,0x43]),[_0x150416([0x75,0x73,0x65])]:_0x150416([0x73,0x69,0x67]),[_0x150416([0x63,0x72,0x76])]:_0x150416([0x50,0x2d,0x32,0x35,0x36]),[_0x150416([0x78])]:_0x150416([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]),[_0x150416([0x79])]:_0x150416([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]),[_0x150416([0x61,0x6c,0x67])]:_0x150416([0x45,0x53,0x32,0x35,0x36])},_0x48efa8=_0x26642d[_0x150416([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x150416([0x67,0x65,0x74])](_0x150416([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x40a1fd(){let _0x4b58d3,_0x3b02a3=null,_0x5b8b47=null;try{if(_0x48efa8==_0x150416([0x47,0x50,0x4c]))return _0x150416([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b58d3=_0x2c39ed(),!_0x4b58d3)return _0x150416([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b58d3[_0x150416([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b8b47=_0x3650cb(_0x4b58d3[_0x150416([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b58d3[_0x150416([0x6a,0x74,0x69])])),await _0x31ef27()?_0x5bed5b()?_0x2ca7eb()?_0x150416([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x52b668()?(_0x4b58d3[_0x150416([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x150416([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b02a3=_0x35ab70(_0x150416([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4b58d3[_0x150416([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x150416([0x74,0x72,0x69,0x61,0x6c])&&(_0x3b02a3=_0x35ab70(_0x150416([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x9a91a1()):_0x150416([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x150416([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x150416([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x24dc83){return _0x150416([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2ca7eb(){const _0x3f13dc=[_0x150416([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x150416([0x74,0x72,0x69,0x61,0x6c])][_0x150416([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b58d3[_0x150416([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x9b8539/0x3e8:0xe10*_0x5f330b;return _0x4b58d3[_0x150416([0x65,0x78,0x70])]<_0x3f13dc;}function _0x5bed5b(){const _0x51ede2=_0x4b58d3[_0x150416([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x51ede2&&(!!_0x51ede2[_0x150416([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x150416([0x2a]))||!!_0x51ede2[_0x150416([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x150416([0x55,0x50,0x4c,0x43])));}function _0x52b668(){const _0x4794e7=_0x96de,_0x257d51=_0x4b58d3[_0x150416([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x257d51||0x0==_0x257d51[_0x150416([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1cb383}=new URL(window[_0x150416([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4794e7(0xcd)]);if(_0x257d51[_0x150416([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cb383))return!0x0;const _0x335d51=_0x1cb383[_0x150416([0x73,0x70,0x6c,0x69,0x74])](_0x150416([0x2e]));return _0x257d51[_0x150416([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x284f76=>_0x284f76[_0x150416([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x150416([0x2a])))[_0x150416([0x6d,0x61,0x70])](_0x49b655=>_0x49b655[_0x150416([0x73,0x70,0x6c,0x69,0x74])](_0x150416([0x2e])))[_0x150416([0x73,0x6f,0x6d,0x65])](_0x479b0b=>_0x335d51[_0x150416([0x65,0x76,0x65,0x72,0x79])]((_0x3e83aa,_0x33387b)=>_0x479b0b[_0x33387b]===_0x3e83aa||_0x479b0b[_0x33387b]===_0x150416([0x2a])));}function _0x9a91a1(){return _0x3b02a3&&_0x5b8b47?new window[(_0x150416([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44c19c,_0x5f1144)=>{_0x3b02a3[_0x150416([0x74,0x68,0x65,0x6e])](_0x44c19c,_0x5f1144),_0x5b8b47[_0x150416([0x74,0x68,0x65,0x6e])](_0x2e994d=>{_0x2e994d!=_0x150416([0x56,0x61,0x6c,0x69,0x64])&&_0x44c19c(_0x2e994d);},_0x5f1144);}):_0x3b02a3||_0x5b8b47||_0x150416([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3650cb(_0x584237,_0x1e3427){return new window[(_0x150416([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57ffd1=>{if(_0x1b1cbc())return _0x57ffd1(_0x150416([0x56,0x61,0x6c,0x69,0x64]));_0x279026(),_0x26642d[_0x150416([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x150416([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x166885=!0x1;const _0x2acb09=_0x2cc79a();function _0x1008e8(_0x33dbcb){return!!_0x33dbcb&&(typeof _0x33dbcb===_0x150416([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x33dbcb===_0x150416([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x33dbcb[_0x150416([0x74,0x68,0x65,0x6e])]===_0x150416([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x33dbcb[_0x150416([0x63,0x61,0x74,0x63,0x68])]===_0x150416([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1b5589(_0x5aa376){_0x4a06cd(_0x5aa376)[_0x150416([0x74,0x68,0x65,0x6e])](_0x6bedbd=>{if(!_0x6bedbd||_0x6bedbd[_0x150416([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x150416([0x6f,0x6b]))return _0x150416([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x544434(_0x302671(_0x2acb09+_0x1e3427))!=_0x6bedbd[_0x150416([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x150416([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x150416([0x56,0x61,0x6c,0x69,0x64]);})[_0x150416([0x74,0x68,0x65,0x6e])](_0x5a8ace=>(_0xca4fdb(),_0x5a8ace),()=>{const _0x232dd4=_0x155af7();return null==_0x232dd4?(_0xca4fdb(),_0x150416([0x56,0x61,0x6c,0x69,0x64])):_0x150416(_0x9b8539-_0x232dd4>(0x46df7fc8^_0x171857)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x150416([0x74,0x68,0x65,0x6e])](_0x57ffd1)[_0x150416([0x63,0x61,0x74,0x63,0x68])](()=>{_0x57ffd1(_0x150416([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xe48eed=0x62e51548^_0x171857;function _0xca4fdb(){const _0x2186cc=_0x150416([0x6c,0x6c,0x63,0x74,0x2d])+_0x544434(_0x302671(_0x584237)),_0x40ab0f=_0x369979(_0x544434(window[_0x150416([0x4d,0x61,0x74,0x68])][_0x150416([0x63,0x65,0x69,0x6c])](_0x9b8539/_0xe48eed)));window[_0x150416([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x150416([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2186cc,_0x40ab0f);}function _0x155af7(){const _0x58e4ca=_0x150416([0x6c,0x6c,0x63,0x74,0x2d])+_0x544434(_0x302671(_0x584237)),_0x595385=window[_0x150416([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x150416([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58e4ca);return _0x595385?window[_0x150416([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x369979(_0x595385),0x10)*_0xe48eed:null;}function _0x4a06cd(_0x5ae0a8){return new window[(_0x150416([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d7345,_0x48eb93)=>{_0x5ae0a8[_0x150416([0x74,0x68,0x65,0x6e])](_0x5d7345,_0x48eb93),window[_0x150416([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x48eb93,0x62d22f08^_0x171857);});}}_0x26642d[_0x150416([0x6f,0x6e])](_0x150416([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3077d5,_0xb9449)=>{if(_0xb9449[0x0]!=_0x584237)return _0x57ffd1(_0x150416([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb9449[0x1]={..._0xb9449[0x1],[_0x150416([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2acb09};},{[_0x150416([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x150416([0x68,0x69,0x67,0x68])}),_0x26642d[_0x150416([0x6f,0x6e])](_0x150416([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x39ef8a=>{_0x1008e8(_0x39ef8a[_0x150416([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x166885=!0x0,_0x1b5589(_0x39ef8a[_0x150416([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x150416([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x150416([0x6c,0x6f,0x77])}),_0x53c10b[_0x150416([0x74,0x68,0x65,0x6e])](()=>{_0x166885||_0x57ffd1(_0x150416([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b1cbc(){return _0x26642d[_0x150416([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x150416([0x76,0x69,0x65,0x77])][_0x150416([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x150416([0x61,0x75,0x74,0x6f]);}function _0x279026(){_0x26642d[_0x150416([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x150416([0x76,0x69,0x65,0x77])][_0x150416([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x150416([0x61,0x75,0x74,0x6f]);}}function _0x35ab70(_0x31a35d){const _0x606aeb=[new window[(_0x150416([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a3a0d=>setTimeout(_0x5a3a0d,0x62dac504^_0x171857)),_0x53c10b[_0x150416([0x74,0x68,0x65,0x6e])](()=>new window[(_0x150416([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37364a=>{let _0x1a4d8f=0x0;_0x26642d[_0x150416([0x6d,0x6f,0x64,0x65,0x6c])][_0x150416([0x6f,0x6e])](_0x150416([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c40de,_0xa1a3fb)=>{_0xa1a3fb[0x0][_0x150416([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a4d8f++,_0x1a4d8f==(0x62d3fa30^_0x171857)&&(_0x37364a(),_0x1c40de[_0x150416([0x6f,0x66,0x66])]());});}))];return window[_0x150416([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x150416([0x72,0x61,0x63,0x65])](_0x606aeb)[_0x150416([0x74,0x68,0x65,0x6e])](()=>_0x31a35d);}async function _0x57f0e6(){await _0x53c10b,_0x26642d[_0x150416([0x6d,0x6f,0x64,0x65,0x6c])][_0x150416([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f0f5a,_0x26642d[_0x150416([0x6d,0x6f,0x64,0x65,0x6c])][_0x150416([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f0f5a,_0x26642d[_0x150416([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x150416([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x245571(_0x5073a9){const _0x42ca49=_0x46684a();_0x26642d[_0x42ca49]=_0x150416([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5073a9,_0x5073a9!=_0x150416([0x56,0x61,0x6c,0x69,0x64])&&_0x57f0e6();}function _0x46684a(){const _0x13cba1=window[_0x150416([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x150416([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x150416([0x6e,0x6f,0x77])]())[_0x150416([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x150416([0x2e]),'');let _0x1b4dc7=_0x150416([0x6d]);for(let _0x4b8cd6=0x0;_0x4b8cd6<_0x13cba1[_0x150416([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b8cd6+=0x2){let _0x115ffc=window[_0x150416([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13cba1[_0x150416([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b8cd6,_0x4b8cd6+0x2));_0x115ffc>=_0x53b9b4[_0x150416([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x115ffc-=_0x53b9b4[_0x150416([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1b4dc7+=_0x53b9b4[_0x115ffc];}return _0x1b4dc7;}function _0x2c39ed(){const _0x3713b2=_0x48efa8[_0x150416([0x73,0x70,0x6c,0x69,0x74])](_0x150416([0x2e]));if(0x3!=_0x3713b2[_0x150416([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f6e97(_0x3713b2[0x1]);function _0x4f6e97(_0x3b571){const _0x268b86=_0x4a49d7(_0x3b571);return _0x268b86&&_0x493e15()?_0x268b86:null;function _0x493e15(){const _0x114d02=_0x268b86[_0x150416([0x6a,0x74,0x69])],_0x1f6a62=window[_0x150416([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x114d02[_0x150416([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x114d02[_0x150416([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x25825f={..._0x268b86,[_0x150416([0x6a,0x74,0x69])]:_0x114d02[_0x150416([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x114d02[_0x150416([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x25825f[_0x150416([0x76,0x63])],_0x302671(_0x25825f)==_0x1f6a62;}}}async function _0x31ef27(){let _0x5aea0f=!0x0;try{const _0x31113b=_0x48efa8[_0x150416([0x73,0x70,0x6c,0x69,0x74])](_0x150416([0x2e])),[_0x4081b4,_0x2cfe71,_0x4f4e9d]=_0x31113b;return _0x268a36(_0x4081b4),await _0x45dbd6(_0x4081b4,_0x2cfe71,_0x4f4e9d),_0x5aea0f;}catch(_0x39d3d1){return!0x1;}function _0x268a36(_0x8111f6){const _0x5b0af8=_0x4a49d7(_0x8111f6);_0x5b0af8&&_0x5b0af8[_0x150416([0x61,0x6c,0x67])]==_0x150416([0x45,0x53,0x32,0x35,0x36])||(_0x5aea0f=!0x1);}async function _0x45dbd6(_0x6d3cc,_0x43a4c8,_0x312036){const _0x34a714=window[_0x150416([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x150416([0x66,0x72,0x6f,0x6d])](_0x62d7bc(_0x312036),_0x452f7d=>_0x452f7d[_0x150416([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x187b58=new window[(_0x150416([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x150416([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x6d3cc+_0x150416([0x2e])+_0x43a4c8),_0x76fb69=window[_0x150416([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x150416([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x76fb69)return;const _0xa87a87=await _0x76fb69[_0x150416([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x150416([0x6a,0x77,0x6b]),_0x2a8868,{[_0x150416([0x6e,0x61,0x6d,0x65])]:_0x150416([0x45,0x43,0x44,0x53,0x41]),[_0x150416([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x150416([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x150416([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x76fb69[_0x150416([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x150416([0x6e,0x61,0x6d,0x65])]:_0x150416([0x45,0x43,0x44,0x53,0x41]),[_0x150416([0x68,0x61,0x73,0x68])]:{[_0x150416([0x6e,0x61,0x6d,0x65])]:_0x150416([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xa87a87,_0x34a714,_0x187b58)||(_0x5aea0f=!0x1);}}function _0x4a49d7(_0x56e706){return _0x56e706[_0x150416([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x150416([0x65,0x79]))?JSON[_0x150416([0x70,0x61,0x72,0x73,0x65])](_0x62d7bc(_0x56e706)):null;}function _0x62d7bc(_0x258fbc){return window[_0x150416([0x61,0x74,0x6f,0x62])](_0x258fbc[_0x150416([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x150416([0x2b]))[_0x150416([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x150416([0x2f])));}function _0x302671(_0x301628){let _0x54776d=0x1505;function _0x559e3c(_0x5cb855){for(let _0x4f318f=0x0;_0x4f318f<_0x5cb855[_0x150416([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f318f++){const _0x3b28bb=_0x5cb855[_0x150416([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f318f);_0x54776d=(_0x54776d<<0x5)+_0x54776d+_0x3b28bb,_0x54776d&=_0x54776d;}}function _0x33b5d9(_0x542fba){Array[_0x150416([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x542fba)?_0x542fba[_0x150416([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x33b5d9):_0x542fba&&typeof _0x542fba==_0x150416([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x150416([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x542fba)[_0x150416([0x73,0x6f,0x72,0x74])]()[_0x150416([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x58ad63,_0x21c4d6])=>{_0x559e3c(_0x58ad63),_0x33b5d9(_0x21c4d6);}):_0x559e3c(window[_0x150416([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x542fba));}return _0x33b5d9(_0x301628),_0x54776d>>>0x0;}function _0x544434(_0x5478a4){return _0x5478a4[_0x150416([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x150416([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x150416([0x30]));}function _0x369979(_0x193d7a){return _0x193d7a[_0x150416([0x73,0x70,0x6c,0x69,0x74])]('')[_0x150416([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x150416([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f0f5a(){}function _0x150416(_0xd02938){const _0x45949b=_0x96de;return _0xd02938[_0x45949b(0xf2)](_0x495e12=>String[_0x45949b(0xe9)](_0x495e12))[_0x45949b(0xe5)]('');}_0x245571(await _0x40a1fd());}(this);}[_0x4294f4(0xce)](){const _0x11938b=_0x4294f4,_0x5db1e8=this[_0x11938b(0xfe)][_0x11938b(0xd1)][_0x11938b(0xbe)];_0x5db1e8[_0x11938b(0xd8)](_0x11938b(0xe1))&&_0x5db1e8[_0x11938b(0x10d)](_0x11938b(0xe1),{'allowAttributes':[_0x11938b(0xf4)]}),_0x5db1e8[_0x11938b(0xd8)](_0x11938b(0xca))&&_0x5db1e8[_0x11938b(0x10d)](_0x11938b(0xca),{'allowAttributes':[_0x11938b(0xf4)]});}[_0x4294f4(0xef)](){const _0x452381=_0x4294f4,_0x51056a=this[_0x452381(0xfe)];_0x51056a[_0x452381(0xdc)][_0x452381(0xeb)](_0x452381(0xf8))[_0x452381(0x106)]({'model':_0x452381(0xf4),'view':_0x452381(0xc3)}),_0x51056a[_0x452381(0xdc)][_0x452381(0xeb)](_0x452381(0xcf))[_0x452381(0x10c)]({'model':{'key':_0x452381(0xf4),'value':_0x2f0538=>_0x2f0538[_0x452381(0xfd)](_0x452381(0xc3))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1f97de=_0x51056a[_0x452381(0xc0)][_0x452381(0xc7)](_0x452381(0x110));_0x1f97de&&this[_0x452381(0xe8)](_0x1f97de,_0x452381(0xfb),(_0xe2a479,[_0x424bf1,_0x123e93])=>{const _0x1ddadc=_0x452381;_0x424bf1[_0x1ddadc(0xe2)](_0x1ddadc(0xf4),_0x123e93);});}[_0x4294f4(0x103)](){const _0x2e2e0d=_0x4294f4,_0x48b835=this[_0x2e2e0d(0xfe)][_0x2e2e0d(0xea)][_0x2e2e0d(0xc7)](_0x2e2e0d(0xf7))||{},_0x1c2036=this[_0x2e2e0d(0xfe)][_0x2e2e0d(0xea)][_0x2e2e0d(0xc7)](_0x2e2e0d(0xc6))||'';this[_0x2e2e0d(0xd2)]=_0x290561(_0x4ee43e[_0x2e2e0d(0x104)],_0x2e2e0d(0xe0),{..._0x48b835,'pubkey':_0x1c2036,'ctx-name':_0x2e2e0d(0xe7),'sourceList':'','imgOnly':_0x2e2e0d(0xd0),'removeCopyright':_0x2e2e0d(0xd0),'localeName':this[_0x2e2e0d(0xfe)][_0x2e2e0d(0xff)][_0x2e2e0d(0x112)],'externalSourcesEmbedCss':_0x2e2e0d(0xec)}),this[_0x2e2e0d(0xd2)][_0x2e2e0d(0x101)]=_0x50f467=>{const _0x336055=_0x2e2e0d;if(_0x336055(0xdf)==_0x50f467)return _0x336055(0xd6);},_0x4ee43e[_0x2e2e0d(0x104)][_0x2e2e0d(0x105)][_0x2e2e0d(0xbf)](this[_0x2e2e0d(0xd2)]);}[_0x4294f4(0xf6)](){const _0x4c9723=_0x4294f4;this[_0x4c9723(0xda)]=_0x290561(_0x4ee43e[_0x4c9723(0x104)],_0x4c9723(0xed),{'ctx-name':_0x4c9723(0xe7)}),_0x4ee43e[_0x4c9723(0x104)][_0x4c9723(0x105)][_0x4c9723(0xbf)](this[_0x4c9723(0xda)]);}[_0x4294f4(0x111)](){const _0x5e41a1=_0x4294f4,_0x13a79d=this[_0x5e41a1(0xfe)][_0x5e41a1(0xc0)][_0x5e41a1(0xc7)](_0x5e41a1(0x10f));_0x13a79d&&this[_0x5e41a1(0xe8)](_0x13a79d,_0x5e41a1(0xf1),()=>{const _0x429800=_0x5e41a1,_0x569a07=this[_0x429800(0xfe)][_0x429800(0xd1)][_0x429800(0x104)][_0x429800(0x100)][_0x429800(0xd9)]();_0x569a07&&_0x569a07[_0x429800(0xfd)](_0x429800(0xf4))&&this[_0x429800(0xfe)][_0x429800(0x107)][_0x429800(0xf3)][_0x429800(0xcb)](_0x429800(0xd5),()=>{const _0x52e2e9=_0x429800;_0x506343(this[_0x52e2e9(0xfe)],_0x569a07);});});const _0x38a232=this[_0x5e41a1(0xfe)][_0x5e41a1(0xc0)][_0x5e41a1(0xc7)](_0x5e41a1(0xde));_0x38a232&&this[_0x5e41a1(0xe8)](_0x38a232,_0x5e41a1(0xf1),()=>{const _0x14ed14=_0x5e41a1,_0x3bf4bf=this[_0x14ed14(0xfe)][_0x14ed14(0xd1)][_0x14ed14(0x104)][_0x14ed14(0x100)][_0x14ed14(0xd9)]();_0x3bf4bf&&_0x3bf4bf[_0x14ed14(0xfd)](_0x14ed14(0xf4))&&this[_0x14ed14(0xfe)][_0x14ed14(0x107)][_0x14ed14(0xf3)][_0x14ed14(0xcb)](_0x14ed14(0xd5),()=>{const _0x907a69=_0x14ed14;_0x506343(this[_0x907a69(0xfe)],_0x3bf4bf);});});}}function _0x96de(_0xd2cd74,_0x5bffdb){const _0xc02af9=_0xc02a();return _0x96de=function(_0x96de73,_0x3bba49){_0x96de73=_0x96de73-0xbe;let _0x47e463=_0xc02af9[_0x96de73];return _0x47e463;},_0x96de(_0xd2cd74,_0x5bffdb);}function _0xc02a(){const _0x3af8b0=['replaceImageSource','_initImageProcessingIndicator','contentLanguage','isOfficialPlugin','schema','appendChild','commands','6SUYLLj','1059716fFLrTR','data-uc-image-id','26PxaxmO','init','uploadcare.pubkey','get','11fGFMVo','input[uploadcare-file-input]','imageInline','once','destroy','href','_initSchema','upcast','true','model','_configElement','2420nYSrpj','28967592BccxBA','render','#uc-icon-arrow-down','ctxElement','isRegistered','getSelectedElement','_ctxElement','5171270KjbDKJ','conversion','PictureEditing','uploadcareImageReplace','closeMax','uc-config','imageBlock','removeAttribute','UploadcareEditing','add','join','2182345ZxqgFa','uploader','listenTo','fromCharCode','config','for','\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','uc-upload-ctx-provider','6RHsvxl','_initConversion','requires','execute','map','view','uploadcareImageId','3847365INXdWq','_initCtx','uploadcare.uploader','downcast','configElement','16gQsfZA','cleanupImage','pluginName','getAttribute','editor','locale','selection','iconHrefResolver','uploadcare','_initConfig','document','body','attributeToAttribute','editing','isPremiumPlugin','1691204RJmHZy','querySelector','remove','elementToAttribute','extend','afterInit','insertImage'];_0xc02a=function(){return _0x3af8b0;};return _0xc02a();}
|