@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250309.0 → 0.0.0-nightly-20250310.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 _0x1c8349,Command as _0x1d5748}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4754e1,IconGooglePhotos as _0x52d266,IconGoogleDrive as _0x178a9d,IconFacebook as _0x1891dc,IconDropbox as _0xbeb995,IconUploadcareLink as _0x574608,IconUploadcareImageUpload as _0x268501,IconError as et,IconUploadcareImageEdit as _0x4c7786}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1ed948,MenuBarMenuListItemButtonView as _0x360186,View as _0x1a7173,FocusCycler as _0x301802,Dialog as _0x2aa253,DialogViewPosition as _0x4983e0,SpinnerView as _0x176cf2,IconView as at,Notification as _0x2c6589}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1628a0,DomEmitterMixin as _0x322624,global as _0x591ddd,getAncestors as _0x1b4c6b,ObservableMixin as _0x40b747,createElement as _0x322e8b,uid as _0x3adbbf}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x153ead}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2e72a9,info as _0x36bdb5}from'@uploadcare/upload-client';import*as _0x249c4b from'@uploadcare/file-uploader';var o=function(_0x37f753){return _0x37f753['Local']='local',_0x37f753['URL']='url',_0x37f753['Dropbox']='dropbox',_0x37f753['GDrive']='gdrive',_0x37f753['Facebook']='facebook',_0x37f753['GPhotos']='gphotos',_0x37f753['OneDrive']='onedrive',_0x37f753;}({});function _(_0xaeea1f,_0x2e89c0,_0x2851eb){const t=_0xaeea1f['t'],_0x5270b8=_0xaeea1f['t'];switch(_0x2e89c0){case o['Local']:return{'text':_0x5270b8('Insert'===_0x2851eb?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5270b8('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x2851eb?_0x5270b8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5270b8('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x2851eb?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x2851eb?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x2851eb?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x2851eb?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x2851eb?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2e89c0;}}class e extends _0x1c8349{['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 _0xfa6b0f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3b96cb;for(const _0x3a2acc in _0xfa6b0f){const _0x2acaad=_0x3a2acc,_0x10071b=_0xfa6b0f[_0x2acaad];if('uploadcareLicenseKeyValid'==_0x10071b||'uploadcareLicenseKeyInvalid'==_0x10071b||'uploadcareLicenseKeyExpired'==_0x10071b||'uploadcareLicenseKeyDomainLimit'==_0x10071b||'uploadcareLicenseKeyNotAllowed'==_0x10071b||'uploadcareLicenseKeyEvaluationLimit'==_0x10071b||'uploadcareLicenseKeyTrialLimit'==_0x10071b||'uploadcareLicenseKeyUsageLimit'==_0x10071b){delete _0xfa6b0f[_0x2acaad],_0x3b96cb=_0x10071b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3b96cb&&_0xfa6b0f['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3b96cb&&_0xfa6b0f['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3b96cb&&_0xfa6b0f['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3b96cb&&_0xfa6b0f['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3b96cb&&_0xfa6b0f['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3b96cb&&_0xfa6b0f['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3b96cb&&_0xfa6b0f['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x463c1d}=this,_0x408edf=_0x463c1d['commands']['get']('uploadcare');if(!_0x408edf)return;const _0xdf900=this['_normalizeConfigSourceList'](_0x463c1d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x206491,_0x4d62da)=>{const _0x4e2ac8=this['_getIntegrationKey'](_0x4d62da['type']);return _0x206491[_0x4e2ac8]||(_0x206491[_0x4e2ac8]=[]),_0x206491[_0x4e2ac8]['push'](_0x4d62da),_0x206491;},{});_0x463c1d['plugins']['has']('ImageInsertUI')&&_0x463c1d['commands']['get']('uploadcare')&&Object['entries'](_0xdf900)['forEach'](([_0x500fc9,_0x48efb4])=>{_0x463c1d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x500fc9,'observable':()=>_0x408edf,'buttonViewCreator':()=>this['_createToolbarButton'](_0x48efb4),'formViewCreator':()=>this['_createDropdownButtons'](_0x48efb4),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x48efb4),'override':'assetManager'!==_0x500fc9});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xc32d46){const {locale:_0x1c5402}=this['editor'];return _0xc32d46['map'](_0x26faf9=>{const _0x216937=_(_0x1c5402,_0x26faf9,'Insert');switch(_0x26faf9){case o['Local']:return{'icon':_0x268501,'type':o['Local'],..._0x216937};case o['URL']:return{'icon':_0x574608,'type':o['URL'],..._0x216937};case o['Dropbox']:return{'icon':_0xbeb995,'type':o['Dropbox'],..._0x216937};case o['Facebook']:return{'icon':_0x1891dc,'type':o['Facebook'],..._0x216937};case o['GDrive']:return{'icon':_0x178a9d,'type':o['GDrive'],..._0x216937};case o['GPhotos']:return{'icon':_0x52d266,'type':o['GPhotos'],..._0x216937};case o['OneDrive']:return{'icon':_0x4754e1,'type':o['OneDrive'],..._0x216937};}});}['_getIntegrationKey'](_0x14f7bd){switch(_0x14f7bd){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x18e029,_0x57fc7f){const _0x50e864=this['editor'],_0x45cf6b=new _0x18e029(_0x50e864['locale']),_0xd7c99=_0x50e864['commands']['get']('uploadcare');return _0x45cf6b['bind']('isEnabled')['to'](_0xd7c99),_0x45cf6b['on']('execute',()=>{_0xd7c99['execute'](_0x57fc7f);}),_0x45cf6b;}['_createToolbarButton'](_0x43598e){const {locale:_0x136269}=this['editor'],_0x5ad02e=this['editor']['plugins']['get']('ImageInsertUI'),_0x2918d3=_0x43598e[0x0],_0x4fd153=this['_createButton'](_0x1ed948,_0x2918d3['type']);return _0x4fd153['icon']=_0x2918d3['icon'],_0x4fd153['bind']('label')['to'](_0x5ad02e,'isImageSelected',_0x1a3873=>_(_0x136269,_0x2918d3['type'],_0x1a3873?'Replace':'Insert')['text']),_0x4fd153['tooltip']=!0x0,_0x4fd153;}['_createDropdownButtons'](_0x551fe5){const {locale:_0x27306d}=this['editor'],_0x23ad67=this['editor']['plugins']['get']('ImageInsertUI');return _0x551fe5['map'](_0x415660=>{const _0x773a09=this['_createButton'](_0x1ed948,_0x415660['type']);return _0x773a09['withText']=!0x0,_0x773a09['icon']=_0x415660['icon'],_0x773a09['bind']('label')['to'](_0x23ad67,'isImageSelected',_0x170e85=>_(_0x27306d,_0x415660['type'],_0x170e85?'Replace':'Insert')['text']),_0x773a09;});}['_createMenuBarButtons'](_0x252049){return _0x252049['map'](_0x868527=>{const _0x47b7a4=this['_createButton'](_0x360186,_0x868527['type']);return _0x47b7a4['icon']=_0x868527['icon'],_0x47b7a4['label']=_0x868527['shortText'],_0x47b7a4;});}}class q extends _0x1a7173{['focusTracker'];['focusCycler'];constructor(_0x4668bb){super(_0x4668bb),this['focusTracker']=new _0x1628a0(),this['focusCycler']=new _0x301802({'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(_0x1f2945){super(_0x1f2945),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(_0x3f1c4d,_0x178c82){const _0x203dfc=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x189fbc=>_0x189fbc<=_0x178c82)['map'](_0xa6c45b=>_0x3f1c4d['replace'](/\/$/,'')+'/-/resize/'+_0xa6c45b+'x/\x20'+_0xa6c45b+'w');return{'imageFallbackUrl':_0x3f1c4d,'imageSources':[{'srcset':_0x203dfc['join'](',\x20'),'sizes':'(max-width:\x20'+_0x178c82+'px)\x20100vw,\x20'+_0x178c82+'px','type':'image/webp'}]};}function A(_0x3de0e4,_0x5211ec,_0x18dc78){const _0x1047ce=_0x3de0e4['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1047ce?parseInt(_0x1047ce[0x1],0xa):_0x5211ec,'height':_0x1047ce?parseInt(_0x1047ce[0x2],0xa):_0x18dc78};}function m(_0x99c817,_0x2c79c0){const _0x158bb1=Object['create'](_0x322624),_0xe8266a=_0x99c817['plugins']['get']('ImageUtils'),_0x34b025=_0x99c817['editing']['mapper']['toViewElement'](_0x2c79c0),_0x40cab6=_0xe8266a['findViewImgElement'](_0x34b025),_0x90fe5c=_0x99c817['editing']['view']['domConverter']['viewToDom'](_0x40cab6),_0x66dee5=_0x2c79c0['getAttribute']('width'),_0x116fca=_0x2c79c0['getAttribute']('height'),_0x2e455e='image-processing';_0x99c817['editing']['view']['change'](_0x33f66c=>{_0x33f66c['addClass'](_0x2e455e,_0x34b025),_0x33f66c['setStyle']('aspect-ratio',_0x66dee5+'/'+_0x116fca,_0x40cab6);}),_0x158bb1['listenTo'](_0x90fe5c,'load',()=>{_0x158bb1['stopListening'](_0x90fe5c,'load'),_0x99c817['editing']['view']['change'](_0x15b2b6=>{_0x15b2b6['removeClass'](_0x2e455e,_0x34b025),_0x15b2b6['removeStyle']('aspect-ratio',_0x40cab6);});});}function V(_0x583e87){if(Array['isArray'](_0x583e87)){const _0x49c9df=_0x583e87['map'](V);return _0x5e798c=>_0x49c9df['some'](_0x1484e4=>_0x1484e4(_0x5e798c));}if('origin'==_0x583e87){const _0x2abca6=_0x591ddd['window']['location']['origin'];return _0x2223b3=>new URL(_0x2223b3,_0x591ddd['document']['baseURI'])['origin']==_0x2abca6;}return'function'==typeof _0x583e87?_0x583e87:_0x583e87 instanceof RegExp?_0x22c994=>!(!_0x22c994['match'](_0x583e87)&&!_0x22c994['replace'](/^https?:\/\//,'')['match'](_0x583e87)):()=>!0x1;}function F(_0x4a5bf5,_0x35f64b){return _0x1b4c6b(_0x4a5bf5['target'])['includes'](_0x35f64b);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x40b747(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x44d3ad,_0x3d4659,_0x38d826){super(),this['_editor']=_0x44d3ad,this['_editing']=_0x3d4659,this['_dialog']=_0x44d3ad['plugins']['get'](_0x2aa253),this['_api']=_0x3d4659['ctxElement']['getAPI'](),this['_type']=_0x38d826,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:_0x4bf0d7,model:_0x133c80}=this['_editor'],_0x3f2fe0=_0x133c80['document']['selection']['getSelectedElement'](),_0x3c1377=_0x3f2fe0&&(_0x3f2fe0['is']('element','imageBlock')||_0x3f2fe0['is']('element','imageInline'));this['_formView']=new S(_0x4bf0d7),this['_dialog']['show']({'id':'uploadCare','icon':_0x268501,'title':_(_0x4bf0d7,this['_type'],_0x3c1377?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4983e0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x445cd1=>!F(_0x445cd1,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4b8727}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4e0df2=>{const _0x5f3d23=_0x4b8727['length'];for(const _0x3f09fa of _0x4b8727){const _0x5177df=_0x3f09fa===_0x4b8727[_0x5f3d23-0x1],{cdnUrl:_0x226b1d,fileInfo:_0x5a6573}=_0x3f09fa;if(!_0x226b1d||!_0x5a6573)continue;const {width:_0x4c1b40,height:_0x371223}=_0x5a6573['imageInfo'],_0x4a4814=A(_0x226b1d,_0x4c1b40,_0x371223),_0x312793=E(_0x226b1d,_0x4a4814['width']),_0x12a15={'id':_0x5a6573['uuid'],'type':'image','attributes':{'imageDimension':_0x4a4814,..._0x312793}};this['_insertAsset'](_0x12a15,_0x5177df,_0x4e0df2);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x35b47e=>{'idle'===_0x35b47e['detail']['status']&&!_0x35b47e['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x482946,_0x14ce2d,_0x125bf2){const _0x5754f=this['_editor']['model']['document']['selection'],_0x4fc547=_0x5754f['getSelectedElement'](),_0x5c7e17=!(!_0x4fc547||!_0x4fc547['is']('element','imageInline'));_0x125bf2['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x482946,_0x5c7e17),_0x14ce2d||_0x125bf2['setSelection'](_0x5754f['getLastPosition']());}['_insertImage'](_0x59f2c3,_0x2498a5){const _0x459a80=this['_editor'],{imageDimension:_0x48a4ac,imageFallbackUrl:_0x40af36,imageSources:_0x5d4b88}=_0x59f2c3['attributes'];_0x459a80['execute']('insertImage',{'imageType':_0x2498a5?'imageInline':null,'source':{'uploadcareImageId':_0x59f2c3['id'],'src':_0x40af36,'sources':_0x5d4b88,..._0x48a4ac}});}}class n extends _0x1d5748{['_editing'];['_controller']=null;static get['requires'](){return[_0x2aa253,i];}constructor(_0x500fb3){super(_0x500fb3),this['_editing']=_0x500fb3['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2d0b63){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x2d0b63);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x1b07b0,publicKey:_0x2b3ebc,signal:_0x482dd7,onProgress:_0x1e81fd}){return _0x2e72a9(_0x1b07b0,{'publicKey':_0x2b3ebc,'store':'auto','signal':_0x482dd7,'onProgress':_0x1e81fd});}static['getInfo'](_0x4de38d,_0x7a95d1){return _0x36bdb5(_0x4de38d,_0x7a95d1);}}class p extends _0x1c8349{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x153ead,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3a4935=this['editor'];if(!!!_0x3a4935['config']['get']('uploadcare'))return;_0x3a4935['plugins']['get'](_0x153ead)['createUploadAdapter']=_0x1fa182=>new x(_0x1fa182,_0x3a4935),_0x3a4935['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x391f53,{imageElement:_0x49687d,data:_0xe5edcc})=>{_0x3a4935['model']['change'](_0x48da5b=>{_0x48da5b['setAttribute']('uploadcareImageId',_0xe5edcc['uploadcareImageId'],_0x49687d);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x4c2a67,_0x407794){this['loader']=_0x4c2a67,this['editor']=_0x407794,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x278789=this['editor']['config']['get']('uploadcare.pubkey'),_0x411614=await this['loader']['file'];return C['upload']({'file':_0x411614,'publicKey':_0x278789,'signal':this['controller']['signal'],'onProgress':_0x5863c6=>{_0x5863c6&&_0x5863c6['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5863c6['value']);}})['then'](async _0x25ec0e=>{const {imageFallbackUrl:_0x3a2f27,imageSources:_0x55883f}=E(_0x25ec0e['cdnUrl'],_0x25ec0e['imageInfo']['width']);return{'uploadcareImageId':_0x25ec0e['uuid'],'default':_0x3a2f27,'sources':_0x55883f};})['catch'](()=>{const _0x8715a5=t('Cannot\x20upload\x20file:')+('\x20'+_0x411614['name']+'.');return Promise['reject'](_0x8715a5);});}['abort'](){this['controller']['abort']();}}class i extends _0x1c8349{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x2aa253];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x2724a7=this['editor'];_0x2724a7['commands']['add']('uploadcare',new n(_0x2724a7));}['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 _0x4a3655=_0x591ddd['document']['querySelector']('input[uploadcare-file-input]');_0x4a3655&&_0x4a3655['remove']();}),async function(_0xcb3f6b){const _0x130f88=_0x43f978([0x39,0x76,0x63,0x4f,0x69,0x71,0x66,0x7a,0x41,0x52,0x62,0x58,0x74,0x4a,0x33,0x78,0x4c,0x45,0x55,0x67,0x50,0x75,0x6f,0x43,0x44,0x57,0x73,0x31,0x77,0x6d,0x30,0x51,0x4e,0x56,0x54,0x79,0x49,0x4b,0x35,0x70,0x37,0x38,0x53,0x6c,0x65,0x59,0x6e,0x61,0x36,0x72,0x5a,0x6b,0x47,0x64,0x6a,0x34,0x42,0x46,0x32,0x4d,0x48,0x68]),_0xc81876=0x4013f54c,_0xa4de59=0x401494ec^_0xc81876,_0x282967=window[_0x43f978([0x44,0x61,0x74,0x65])][_0x43f978([0x6e,0x6f,0x77])](),_0x2147ca=_0xcb3f6b[_0x43f978([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1a8c43=new window[(_0x43f978([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51d2d2=>{_0x2147ca[_0x43f978([0x6f,0x6e,0x63,0x65])](_0x43f978([0x72,0x65,0x61,0x64,0x79]),_0x51d2d2);}),_0x763ec2={[_0x43f978([0x6b,0x74,0x79])]:_0x43f978([0x45,0x43]),[_0x43f978([0x75,0x73,0x65])]:_0x43f978([0x73,0x69,0x67]),[_0x43f978([0x63,0x72,0x76])]:_0x43f978([0x50,0x2d,0x32,0x35,0x36]),[_0x43f978([0x78])]:_0x43f978([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]),[_0x43f978([0x79])]:_0x43f978([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]),[_0x43f978([0x61,0x6c,0x67])]:_0x43f978([0x45,0x53,0x32,0x35,0x36])},_0x259c75=_0x2147ca[_0x43f978([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x43f978([0x67,0x65,0x74])](_0x43f978([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x903bf8(){let _0x51441c,_0x32fa4a=null,_0x2f09af=null;try{if(_0x259c75==_0x43f978([0x47,0x50,0x4c]))return _0x43f978([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51441c=_0x125525(),!_0x51441c)return _0x43f978([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51441c[_0x43f978([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f09af=_0x28416e(_0x51441c[_0x43f978([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51441c[_0x43f978([0x6a,0x74,0x69])])),await _0x474533()?_0x20453b()?_0x50eb69()?_0x43f978([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x10f5ff()?(_0x51441c[_0x43f978([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43f978([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x32fa4a=_0x2e68c3(_0x43f978([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x51441c[_0x43f978([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43f978([0x74,0x72,0x69,0x61,0x6c])&&(_0x32fa4a=_0x2e68c3(_0x43f978([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5da541()):_0x43f978([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x43f978([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x43f978([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x382316){return _0x43f978([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x50eb69(){const _0xa2e3c2=[_0x43f978([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x43f978([0x74,0x72,0x69,0x61,0x6c])][_0x43f978([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51441c[_0x43f978([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x282967/0x3e8:0xe10*_0xa4de59;return _0x51441c[_0x43f978([0x65,0x78,0x70])]<_0xa2e3c2;}function _0x20453b(){const _0x2104e3=_0x51441c[_0x43f978([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2104e3&&(!!_0x2104e3[_0x43f978([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43f978([0x2a]))||!!_0x2104e3[_0x43f978([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43f978([0x55,0x50,0x4c,0x43])));}function _0x10f5ff(){const _0x2e6398=_0x51441c[_0x43f978([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2e6398||0x0==_0x2e6398[_0x43f978([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1d01ff}=new URL(window[_0x43f978([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2e6398[_0x43f978([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d01ff))return!0x0;const _0x46e4b2=_0x1d01ff[_0x43f978([0x73,0x70,0x6c,0x69,0x74])](_0x43f978([0x2e]));return _0x2e6398[_0x43f978([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43329d=>_0x43329d[_0x43f978([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43f978([0x2a])))[_0x43f978([0x6d,0x61,0x70])](_0x2979da=>_0x2979da[_0x43f978([0x73,0x70,0x6c,0x69,0x74])](_0x43f978([0x2e])))[_0x43f978([0x73,0x6f,0x6d,0x65])](_0x54f2d1=>_0x46e4b2[_0x43f978([0x65,0x76,0x65,0x72,0x79])]((_0x584879,_0x40ff0a)=>_0x54f2d1[_0x40ff0a]===_0x584879||_0x54f2d1[_0x40ff0a]===_0x43f978([0x2a])));}function _0x5da541(){return _0x32fa4a&&_0x2f09af?new window[(_0x43f978([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x414542,_0x1069f5)=>{_0x32fa4a[_0x43f978([0x74,0x68,0x65,0x6e])](_0x414542,_0x1069f5),_0x2f09af[_0x43f978([0x74,0x68,0x65,0x6e])](_0x2ab997=>{_0x2ab997!=_0x43f978([0x56,0x61,0x6c,0x69,0x64])&&_0x414542(_0x2ab997);},_0x1069f5);}):_0x32fa4a||_0x2f09af||_0x43f978([0x56,0x61,0x6c,0x69,0x64]);}}function _0x28416e(_0x59bfca,_0x5e8af2){return new window[(_0x43f978([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cd914=>{if(_0x10acd6())return _0x4cd914(_0x43f978([0x56,0x61,0x6c,0x69,0x64]));_0x4d6945(),_0x2147ca[_0x43f978([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x43f978([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4d01dc=!0x1;const _0x584ce4=_0x3adbbf();function _0x5746ec(_0x5bfda7){return!!_0x5bfda7&&(typeof _0x5bfda7===_0x43f978([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5bfda7===_0x43f978([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5bfda7[_0x43f978([0x74,0x68,0x65,0x6e])]===_0x43f978([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5bfda7[_0x43f978([0x63,0x61,0x74,0x63,0x68])]===_0x43f978([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3d2bba(_0x5dbeeb){_0x556911(_0x5dbeeb)[_0x43f978([0x74,0x68,0x65,0x6e])](_0x5b4755=>{if(!_0x5b4755||_0x5b4755[_0x43f978([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x43f978([0x6f,0x6b]))return _0x43f978([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x29ac85(_0x3e9349(_0x584ce4+_0x5e8af2))!=_0x5b4755[_0x43f978([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x43f978([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x43f978([0x56,0x61,0x6c,0x69,0x64]);})[_0x43f978([0x74,0x68,0x65,0x6e])](_0x4ae8e2=>(_0x1c4c90(),_0x4ae8e2),()=>{const _0x2a6a72=_0x3aa89c();return null==_0x2a6a72?(_0x1c4c90(),_0x43f978([0x56,0x61,0x6c,0x69,0x64])):_0x43f978(_0x282967-_0x2a6a72>(0x641f714c^_0xc81876)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x43f978([0x74,0x68,0x65,0x6e])](_0x4cd914)[_0x43f978([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4cd914(_0x43f978([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3321e8=0x40251bcc^_0xc81876;function _0x1c4c90(){const _0x42a0a6=_0x43f978([0x6c,0x6c,0x63,0x74,0x2d])+_0x29ac85(_0x3e9349(_0x59bfca)),_0x5792de=_0x5985f8(_0x29ac85(window[_0x43f978([0x4d,0x61,0x74,0x68])][_0x43f978([0x63,0x65,0x69,0x6c])](_0x282967/_0x3321e8)));window[_0x43f978([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43f978([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42a0a6,_0x5792de);}function _0x3aa89c(){const _0xb32883=_0x43f978([0x6c,0x6c,0x63,0x74,0x2d])+_0x29ac85(_0x3e9349(_0x59bfca)),_0x6e87a8=window[_0x43f978([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43f978([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb32883);return _0x6e87a8?window[_0x43f978([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5985f8(_0x6e87a8),0x10)*_0x3321e8:null;}function _0x556911(_0x4a9e55){return new window[(_0x43f978([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26efbf,_0x6eb864)=>{_0x4a9e55[_0x43f978([0x74,0x68,0x65,0x6e])](_0x26efbf,_0x6eb864),window[_0x43f978([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x6eb864,0x4012218c^_0xc81876);});}}_0x2147ca[_0x43f978([0x6f,0x6e])](_0x43f978([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1d5a3a,_0x238229)=>{if(_0x238229[0x0]!=_0x59bfca)return _0x4cd914(_0x43f978([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x238229[0x1]={..._0x238229[0x1],[_0x43f978([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x584ce4};},{[_0x43f978([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43f978([0x68,0x69,0x67,0x68])}),_0x2147ca[_0x43f978([0x6f,0x6e])](_0x43f978([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x24580f=>{_0x5746ec(_0x24580f[_0x43f978([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4d01dc=!0x0,_0x3d2bba(_0x24580f[_0x43f978([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x43f978([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43f978([0x6c,0x6f,0x77])}),_0x1a8c43[_0x43f978([0x74,0x68,0x65,0x6e])](()=>{_0x4d01dc||_0x4cd914(_0x43f978([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x10acd6(){return _0x2147ca[_0x43f978([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43f978([0x76,0x69,0x65,0x77])][_0x43f978([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x43f978([0x61,0x75,0x74,0x6f]);}function _0x4d6945(){_0x2147ca[_0x43f978([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43f978([0x76,0x69,0x65,0x77])][_0x43f978([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x43f978([0x61,0x75,0x74,0x6f]);}}function _0x2e68c3(_0x1aa4a9){const _0x1a7a79=[new window[(_0x43f978([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f7732=>setTimeout(_0x4f7732,0x401acb80^_0xc81876)),_0x1a8c43[_0x43f978([0x74,0x68,0x65,0x6e])](()=>new window[(_0x43f978([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f0cee=>{let _0x20acd4=0x0;_0x2147ca[_0x43f978([0x6d,0x6f,0x64,0x65,0x6c])][_0x43f978([0x6f,0x6e])](_0x43f978([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x36a049,_0x52cbd1)=>{_0x52cbd1[0x0][_0x43f978([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x20acd4++,_0x20acd4==(0x4013f4b4^_0xc81876)&&(_0x2f0cee(),_0x36a049[_0x43f978([0x6f,0x66,0x66])]());});}))];return window[_0x43f978([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x43f978([0x72,0x61,0x63,0x65])](_0x1a7a79)[_0x43f978([0x74,0x68,0x65,0x6e])](()=>_0x1aa4a9);}async function _0x50ce9a(){await _0x1a8c43,_0x2147ca[_0x43f978([0x6d,0x6f,0x64,0x65,0x6c])][_0x43f978([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x57ed87,_0x2147ca[_0x43f978([0x6d,0x6f,0x64,0x65,0x6c])][_0x43f978([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x57ed87,_0x2147ca[_0x43f978([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x43f978([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3cc1ae(_0x6f33d){const _0x91e84=_0x1398d1();_0x2147ca[_0x91e84]=_0x43f978([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x6f33d,_0x6f33d!=_0x43f978([0x56,0x61,0x6c,0x69,0x64])&&_0x50ce9a();}function _0x1398d1(){const _0x209c6b=window[_0x43f978([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x43f978([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x43f978([0x6e,0x6f,0x77])]())[_0x43f978([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x43f978([0x2e]),'');let _0x40f2ed=_0x43f978([0x76]);for(let _0x5b5648=0x0;_0x5b5648<_0x209c6b[_0x43f978([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b5648+=0x2){let _0x409f31=window[_0x43f978([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x209c6b[_0x43f978([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b5648,_0x5b5648+0x2));_0x409f31>=_0x130f88[_0x43f978([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x409f31-=_0x130f88[_0x43f978([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x40f2ed+=_0x130f88[_0x409f31];}return _0x40f2ed;}function _0x125525(){const _0x56b097=_0x259c75[_0x43f978([0x73,0x70,0x6c,0x69,0x74])](_0x43f978([0x2e]));if(0x3!=_0x56b097[_0x43f978([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5f040d(_0x56b097[0x1]);function _0x5f040d(_0x8970f7){const _0x5cd7ba=_0x56a384(_0x8970f7);return _0x5cd7ba&&_0x29b4ad()?_0x5cd7ba:null;function _0x29b4ad(){const _0x3f747b=_0x5cd7ba[_0x43f978([0x6a,0x74,0x69])],_0x2ae320=window[_0x43f978([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f747b[_0x43f978([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f747b[_0x43f978([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x130b75={..._0x5cd7ba,[_0x43f978([0x6a,0x74,0x69])]:_0x3f747b[_0x43f978([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f747b[_0x43f978([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x130b75[_0x43f978([0x76,0x63])],_0x3e9349(_0x130b75)==_0x2ae320;}}}async function _0x474533(){let _0x2d1472=!0x0;try{const _0x5e3651=_0x259c75[_0x43f978([0x73,0x70,0x6c,0x69,0x74])](_0x43f978([0x2e])),[_0x2cfd82,_0x48cae5,_0x386ba5]=_0x5e3651;return _0x2ff598(_0x2cfd82),await _0x24aee7(_0x2cfd82,_0x48cae5,_0x386ba5),_0x2d1472;}catch(_0x53e779){return!0x1;}function _0x2ff598(_0x584df6){const _0x2d0d60=_0x56a384(_0x584df6);_0x2d0d60&&_0x2d0d60[_0x43f978([0x61,0x6c,0x67])]==_0x43f978([0x45,0x53,0x32,0x35,0x36])||(_0x2d1472=!0x1);}async function _0x24aee7(_0x2b94d0,_0x5f35af,_0x2960c5){const _0x225660=window[_0x43f978([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x43f978([0x66,0x72,0x6f,0x6d])](_0x5da824(_0x2960c5),_0xd2895b=>_0xd2895b[_0x43f978([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5b2379=new window[(_0x43f978([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x43f978([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2b94d0+_0x43f978([0x2e])+_0x5f35af),_0x15dad8=window[_0x43f978([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x43f978([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x15dad8)return;const _0x4a4c8e=await _0x15dad8[_0x43f978([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x43f978([0x6a,0x77,0x6b]),_0x763ec2,{[_0x43f978([0x6e,0x61,0x6d,0x65])]:_0x43f978([0x45,0x43,0x44,0x53,0x41]),[_0x43f978([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x43f978([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x43f978([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x15dad8[_0x43f978([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x43f978([0x6e,0x61,0x6d,0x65])]:_0x43f978([0x45,0x43,0x44,0x53,0x41]),[_0x43f978([0x68,0x61,0x73,0x68])]:{[_0x43f978([0x6e,0x61,0x6d,0x65])]:_0x43f978([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a4c8e,_0x225660,_0x5b2379)||(_0x2d1472=!0x1);}}function _0x56a384(_0x2f690d){return _0x2f690d[_0x43f978([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x43f978([0x65,0x79]))?JSON[_0x43f978([0x70,0x61,0x72,0x73,0x65])](_0x5da824(_0x2f690d)):null;}function _0x5da824(_0x18151f){return window[_0x43f978([0x61,0x74,0x6f,0x62])](_0x18151f[_0x43f978([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x43f978([0x2b]))[_0x43f978([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x43f978([0x2f])));}function _0x3e9349(_0x5ec202){let _0xf19bfb=0x1505;function _0x36502c(_0xd02ad4){for(let _0x50a39f=0x0;_0x50a39f<_0xd02ad4[_0x43f978([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50a39f++){const _0x25f43d=_0xd02ad4[_0x43f978([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x50a39f);_0xf19bfb=(_0xf19bfb<<0x5)+_0xf19bfb+_0x25f43d,_0xf19bfb&=_0xf19bfb;}}function _0x301052(_0x3a6493){Array[_0x43f978([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a6493)?_0x3a6493[_0x43f978([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x301052):_0x3a6493&&typeof _0x3a6493==_0x43f978([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x43f978([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a6493)[_0x43f978([0x73,0x6f,0x72,0x74])]()[_0x43f978([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x49ca23,_0x1eb0d8])=>{_0x36502c(_0x49ca23),_0x301052(_0x1eb0d8);}):_0x36502c(window[_0x43f978([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a6493));}return _0x301052(_0x5ec202),_0xf19bfb>>>0x0;}function _0x29ac85(_0x580c11){return _0x580c11[_0x43f978([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x43f978([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x43f978([0x30]));}function _0x5985f8(_0x201098){return _0x201098[_0x43f978([0x73,0x70,0x6c,0x69,0x74])]('')[_0x43f978([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x43f978([0x6a,0x6f,0x69,0x6e])]('');}function _0x57ed87(){}function _0x43f978(_0x32aaaa){return _0x32aaaa['map'](_0x258d4f=>String['fromCharCode'](_0x258d4f))['join']('');}_0x3cc1ae(await _0x903bf8());}(this);}['_initSchema'](){const _0x4bddfa=this['editor']['model']['schema'];_0x4bddfa['isRegistered']('imageBlock')&&_0x4bddfa['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4bddfa['isRegistered']('imageInline')&&_0x4bddfa['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x481215=this['editor'];_0x481215['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x481215['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3a210c=>_0x3a210c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x51515e=_0x481215['commands']['get']('replaceImageSource');_0x51515e&&this['listenTo'](_0x51515e,'cleanupImage',(_0x4c8d09,[_0x133265,_0x14d7d2])=>{_0x133265['removeAttribute']('uploadcareImageId',_0x14d7d2);});}['_initConfig'](){const _0x496aea=this['editor']['config']['get']('uploadcare.uploader')||{},_0x59a191=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x322e8b(_0x591ddd['document'],'uc-config',{..._0x496aea,'pubkey':_0x59a191,'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']=_0x14795a=>{if('closeMax'==_0x14795a)return'#uc-icon-arrow-down';},_0x591ddd['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x322e8b(_0x591ddd['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x591ddd['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x519ebf=this['editor']['commands']['get']('insertImage');_0x519ebf&&this['listenTo'](_0x519ebf,'execute',()=>{const _0x309a4f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x309a4f&&_0x309a4f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x309a4f);});});const _0x1b20ed=this['editor']['commands']['get']('uploadcareImageReplace');_0x1b20ed&&this['listenTo'](_0x1b20ed,'execute',()=>{const _0x917ca6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x917ca6&&_0x917ca6['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x917ca6);});});}}class u extends _0x1c8349{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f9540){super(_0x4f9540),_0x4f9540['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x249c4b['defineComponents'](_0x249c4b);}}class ta extends _0x1a7173{constructor(_0x49ff44){super(_0x49ff44);const t=_0x49ff44['t'],_0x59437c=this['bindTemplate'],_0x5d694e=new _0x176cf2();_0x5d694e['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':[_0x5d694e,{'text':_0x59437c['to']('imageUploadProgress',_0x3d9b50=>t('Loading\x20image...')+'\x20('+(_0x3d9b50||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 _0x1a7173{constructor(_0x207167){super(_0x207167);const t=_0x207167['t'];this['set']('errorType',null);const _0x44c14b=new _0x1ed948(_0x207167);_0x44c14b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x44c14b['withText']=!0x0,_0x44c14b['class']='ck-button-action',_0x44c14b['on']('execute',()=>{this['fire']('retry');}),_0x44c14b['bind']('isVisible')['to'](this,'errorType',_0x498d09=>'NotFound'!==_0x498d09);const _0x1dee1c=new at();_0x1dee1c['content']=et,_0x1dee1c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x56ffac=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':[_0x1dee1c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x56ffac['to']('errorType',_0x17a9c0=>t('NotFound'!==_0x17a9c0?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x44c14b]},{'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 _0x1a7173{constructor(_0x46ccba,_0x3b6687){super(_0x46ccba);const _0x3ebca2=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3b6687,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3ebca2['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3842ff,_0x3a46b8,_0xea5f54){super(_0x3842ff),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x3842ff),this['_errorView']=new rt(_0x3842ff),this['_editingView']=new tt(_0x3842ff,_0xea5f54),this['_focusableView']=new _0x1a7173(_0x3842ff),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3a46b8),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'],_0x40fa95=>{this['_addUploadcareImageEditorListeners'](_0x40fa95);});}),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'](_0x5a27be,_0x2b1c2c){const _0x53ce9a='uc-cloud-image-editor',_0x1896a4=_0x5a27be['querySelector'](_0x53ce9a);if(_0x1896a4)return _0x2b1c2c(_0x1896a4);const _0x14d773=new MutationObserver(_0x18eba3=>{const _0x616cda=_0x18eba3['filter'](_0x41f900=>_0x41f900['target']===_0x5a27be&&_0x41f900['addedNodes']['length']>0x0&&_0x41f900['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x53ce9a);_0x616cda['length']&&(_0x14d773['disconnect'](),_0x2b1c2c(_0x616cda[0x0]['addedNodes'][0x0]));});_0x14d773['observe'](_0x5a27be,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4e2e8e){_0x4e2e8e['addEventListener']('apply',_0x3ded2a=>{this['fire']('apply',{'imageSrc':_0x3ded2a['detail']['cdnUrl']});}),_0x4e2e8e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x40b747(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x52e5c5,_0x1210e4,_0x46d65e){super(),this['_editor']=_0x52e5c5,this['_dialog']=_0x1210e4,this['_imageElement']=_0x46d65e,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 _0x5a646b=this['_imageElement'],_0x56c0fd=_0x5a646b['getAttribute']('uploadcareImageId'),_0x4218e1=_0x5a646b['getAttribute']('src');if(_0x56c0fd)await this['_loadImageInfo'](_0x56c0fd,_0x4218e1);else{if(this['_imageCache']['has'](_0x4218e1)){const _0x3261f1=this['_imageCache']['get'](_0x4218e1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3261f1['url'],this['imageDimension']=_0x3261f1['dimension'],this['imageId']=_0x3261f1['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2f985e}=this['_editor'],t=_0x2f985e['t'],_0x1e712d=new Z(_0x2f985e,this['imageStatus'],this['_attributes']);_0x1e712d['bind']('status')['to'](this,'imageStatus'),_0x1e712d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1e712d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1e712d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1e712d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4c7786,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1e712d,'position':_0x4983e0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1e712d['focus']();},'onHide':()=>{_0x1e712d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x404269=>!F(_0x404269,_0x1e712d['element'])}});}['_loadImageInfo'](_0x378c7e,_0x8f83a7){return C['getInfo'](_0x378c7e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2b75db=>{const {width:_0x41c5ad,height:_0x43909b}=_0x2b75db['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x8f83a7,this['imageDimension']={'width':_0x41c5ad,'height':_0x43909b},this['imageId']=_0x378c7e;})['catch'](_0x1633ee=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1633ee['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4d74c4,_0x2d8d7b){return this['_getImageAsFile'](_0x4d74c4)['then'](_0x18eb68=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2d8d7b['signal'],'file':_0x18eb68,'onProgress':_0x2fcf04=>{_0x2fcf04&&_0x2fcf04['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2fcf04['value']));}}))['then'](_0x5cfbc4=>{const {width:_0x149640,height:_0x161c06}=_0x5cfbc4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5cfbc4['cdnUrl'],this['imageDimension']={'width':_0x149640,'height':_0x161c06},this['imageId']=_0x5cfbc4['uuid'],this['imageUploadProgress']=null;const _0x386f9c=_0x4d74c4['getAttribute']('src');this['_imageCache']['set'](_0x386f9c,{'id':_0x5cfbc4['uuid'],'url':_0x5cfbc4['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2414fe=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2414fe['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4a654d,_0x6df450){_0x4a654d['on']('apply',(_0x33f28d,_0x1d8253)=>{this['_replaceImage'](_0x6df450,_0x1d8253['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4a654d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4a654d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x102cee,_0x1d8665,_0x5892de){const _0x136085=this['_editor'],{width:_0x1b0edc,height:_0x5cb106}=A(_0x1d8665,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x41ff52,imageSources:_0x139432}=E(_0x1d8665,_0x1b0edc);_0x136085['model']['change'](_0x58f61a=>{if('$graveyard'===_0x102cee['root']['rootName']){_0x136085['execute']('insertImage',{'imageType':_0x102cee['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x102cee['getAttributes']()),'uploadcareImageId':_0x5892de,'src':_0x41ff52,'sources':_0x139432,'width':_0x1b0edc,'height':_0x5cb106}});const _0x476fb2=_0x102cee['getChildren']();_0x102cee=_0x136085['model']['document']['selection']['getSelectedElement']();for(const _0x16ab57 of _0x476fb2)_0x58f61a['append'](_0x58f61a['cloneElement'](_0x16ab57),_0x102cee);}else _0x58f61a['setSelection'](_0x102cee,'on'),_0x136085['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x102cee['getAttributes']()),'uploadcareImageId':_0x5892de,'src':_0x41ff52,'sources':_0x139432,'width':_0x1b0edc,'height':_0x5cb106},_0x102cee);_0x58f61a['setSelection'](_0x102cee,'on');});}async['_getImageAsFile'](_0x77cd28){const _0x51644e=_0x591ddd['window'],_0x3ebe03=_0x591ddd['document']['location']['href'],_0x16b943=new _0x51644e['URL'](_0x77cd28['getAttribute']('src'),_0x3ebe03);if('data:'===_0x16b943['protocol']){const _0x3075d7=_0x16b943['href']['split'](','),_0x5e24bb=_0x3075d7[0x0]['match'](/:(.*?);/)[0x1],_0xc0c204=_0x5e24bb['split']('/')[0x1],_0x1e3fe5=_0x51644e['atob'](_0x3075d7[_0x3075d7['length']-0x1]);let _0x176ef5=_0x1e3fe5['length'];const _0x5ee83c=new _0x51644e['Uint8Array'](_0x176ef5);for(;_0x176ef5--;)_0x5ee83c[_0x176ef5]=_0x1e3fe5['charCodeAt'](_0x176ef5);return new _0x51644e['File']([_0x5ee83c],'image.'+_0xc0c204,{'type':_0x5e24bb});}const _0x545dbf=_0x16b943['href']['split']('/'),_0x1d05b9=_0x545dbf[_0x545dbf['length']-0x1],_0x614bb3=_0x1d05b9['split']('.')[0x1];return _0x51644e['fetch'](_0x16b943['href'])['then'](_0x443d44=>_0x443d44['clone']()['blob']())['then'](_0xdbcbc0=>new _0x51644e['File']([_0xdbcbc0],_0x1d05b9,{'type':'image/'+_0x614bb3}));}}class J extends _0x1d5748{['imageEditController'];static get['requires'](){return[_0x2aa253];}['_isEditable'];constructor(_0x211519){super(_0x211519),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3c8229){const _0x1a35bf=V(_0x3c8229);return _0x418775=>!(!_0x418775||!_0x418775['is']('element','imageBlock')&&!_0x418775['is']('element','imageInline'))&&(!!_0x418775['hasAttribute']('uploadcareImageId')||!!_0x418775['hasAttribute']('src')&&_0x1a35bf(_0x418775['getAttribute']('src')));}(_0x211519['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x27cf92=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x27cf92);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x9183d6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x9183d6&&(_0x9183d6['is']('element','imageBlock')||_0x9183d6['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x2aa253),_0x9183d6),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x1d5748{['refresh'](){const _0x2e9bc4=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2e9bc4&&(_0x2e9bc4['is']('element','imageBlock')||_0x2e9bc4['is']('element','imageInline')));}['execute'](_0x17d076){const _0x38b651=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x12c242=>{_0x12c242['setAttributes'](_0x17d076,_0x38b651),_0x12c242['removeAttribute']('srcset',_0x38b651),_0x12c242['removeAttribute']('sizes',_0x38b651);});}}class g extends _0x1c8349{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x2c6589,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xdc20f}=this;_0xdc20f['commands']['add']('uploadcareImageEdit',new J(_0xdc20f)),_0xdc20f['commands']['add']('uploadcareImageReplace',new O(_0xdc20f));}}class j extends _0x1c8349{['_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 _0x4999da=this['editor'];_0x4999da['ui']['componentFactory']['add']('uploadcareImageEdit',_0x535857=>{const _0x31e7b4=_0x4999da['commands']['get']('uploadcareImageEdit'),_0x58b3d3=new _0x1ed948(_0x535857),t=_0x535857['t'];return _0x58b3d3['set']({'icon':_0x4c7786,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x58b3d3['bind']('isEnabled')['to'](_0x31e7b4),_0x58b3d3['bind']('isOn')['to'](_0x31e7b4,'isActive'),this['listenTo'](_0x58b3d3,'execute',()=>{_0x4999da['execute']('uploadcareImageEdit'),_0x4999da['editing']['view']['focus']();}),_0x58b3d3;}),this['_initConfig']();}['_initConfig'](){const _0xfc9e73=_0x322e8b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xfc9e73),this['listenTo'](this['editor'],'destroy',()=>{_0xfc9e73['remove']();});}}class P extends _0x1c8349{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 _0x5aea69,Command as _0x243e2b}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x297164,IconGooglePhotos as _0x47ed98,IconGoogleDrive as _0x289ddd,IconFacebook as _0x5d9779,IconDropbox as _0x3bafa7,IconUploadcareLink as _0x2f70d1,IconUploadcareImageUpload as _0x4acfba,IconError as et,IconUploadcareImageEdit as _0x16b2cc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x257fcd,MenuBarMenuListItemButtonView as _0x56a0ff,View as _0x3e4732,FocusCycler as _0xcbd689,Dialog as _0x2058c5,DialogViewPosition as _0x3fe094,SpinnerView as _0x58c44c,IconView as at,Notification as _0x490f6c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x580e0e,DomEmitterMixin as _0x7d43fd,global as _0x37058b,getAncestors as _0x1694d3,ObservableMixin as _0xa08b67,createElement as _0x325cdd,uid as _0x6fc19b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x4d87c7}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2a6a0c,info as _0x3a15af}from'@uploadcare/upload-client';import*as _0x3bb2bc from'@uploadcare/file-uploader';var o=function(_0xf08f28){return _0xf08f28['Local']='local',_0xf08f28['URL']='url',_0xf08f28['Dropbox']='dropbox',_0xf08f28['GDrive']='gdrive',_0xf08f28['Facebook']='facebook',_0xf08f28['GPhotos']='gphotos',_0xf08f28['OneDrive']='onedrive',_0xf08f28;}({});function _(_0x1b3ab6,_0x227046,_0x243664){const t=_0x1b3ab6['t'],_0x348d78=_0x1b3ab6['t'];switch(_0x227046){case o['Local']:return{'text':_0x348d78('Insert'===_0x243664?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x348d78('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x243664?_0x348d78('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x348d78('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x243664?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x243664?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x243664?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x243664?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x243664?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x227046;}}class e extends _0x5aea69{['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 _0x3804e7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x242ed8;for(const _0xeb23e3 in _0x3804e7){const _0x35673e=_0xeb23e3,_0x4d98b2=_0x3804e7[_0x35673e];if('uploadcareLicenseKeyValid'==_0x4d98b2||'uploadcareLicenseKeyInvalid'==_0x4d98b2||'uploadcareLicenseKeyExpired'==_0x4d98b2||'uploadcareLicenseKeyDomainLimit'==_0x4d98b2||'uploadcareLicenseKeyNotAllowed'==_0x4d98b2||'uploadcareLicenseKeyEvaluationLimit'==_0x4d98b2||'uploadcareLicenseKeyTrialLimit'==_0x4d98b2||'uploadcareLicenseKeyUsageLimit'==_0x4d98b2){delete _0x3804e7[_0x35673e],_0x242ed8=_0x4d98b2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x242ed8&&_0x3804e7['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x242ed8&&_0x3804e7['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x242ed8&&_0x3804e7['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x242ed8&&_0x3804e7['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x242ed8&&_0x3804e7['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x242ed8&&_0x3804e7['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x242ed8&&_0x3804e7['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4f07b1}=this,_0x78b8e1=_0x4f07b1['commands']['get']('uploadcare');if(!_0x78b8e1)return;const _0x23a76f=this['_normalizeConfigSourceList'](_0x4f07b1['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3ff91a,_0x1f6233)=>{const _0x431750=this['_getIntegrationKey'](_0x1f6233['type']);return _0x3ff91a[_0x431750]||(_0x3ff91a[_0x431750]=[]),_0x3ff91a[_0x431750]['push'](_0x1f6233),_0x3ff91a;},{});_0x4f07b1['plugins']['has']('ImageInsertUI')&&_0x4f07b1['commands']['get']('uploadcare')&&Object['entries'](_0x23a76f)['forEach'](([_0x43fab7,_0xb47065])=>{_0x4f07b1['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x43fab7,'observable':()=>_0x78b8e1,'buttonViewCreator':()=>this['_createToolbarButton'](_0xb47065),'formViewCreator':()=>this['_createDropdownButtons'](_0xb47065),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xb47065),'override':'assetManager'!==_0x43fab7});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4e9d08){const {locale:_0x2d5d75}=this['editor'];return _0x4e9d08['map'](_0x23c3c9=>{const _0x52fa7c=_(_0x2d5d75,_0x23c3c9,'Insert');switch(_0x23c3c9){case o['Local']:return{'icon':_0x4acfba,'type':o['Local'],..._0x52fa7c};case o['URL']:return{'icon':_0x2f70d1,'type':o['URL'],..._0x52fa7c};case o['Dropbox']:return{'icon':_0x3bafa7,'type':o['Dropbox'],..._0x52fa7c};case o['Facebook']:return{'icon':_0x5d9779,'type':o['Facebook'],..._0x52fa7c};case o['GDrive']:return{'icon':_0x289ddd,'type':o['GDrive'],..._0x52fa7c};case o['GPhotos']:return{'icon':_0x47ed98,'type':o['GPhotos'],..._0x52fa7c};case o['OneDrive']:return{'icon':_0x297164,'type':o['OneDrive'],..._0x52fa7c};}});}['_getIntegrationKey'](_0x24890d){switch(_0x24890d){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4d2e8b,_0x54d6e0){const _0x3a8d61=this['editor'],_0x556163=new _0x4d2e8b(_0x3a8d61['locale']),_0x22996f=_0x3a8d61['commands']['get']('uploadcare');return _0x556163['bind']('isEnabled')['to'](_0x22996f),_0x556163['on']('execute',()=>{_0x22996f['execute'](_0x54d6e0);}),_0x556163;}['_createToolbarButton'](_0x5d8a48){const {locale:_0x36e6f2}=this['editor'],_0x123141=this['editor']['plugins']['get']('ImageInsertUI'),_0x2d66ac=_0x5d8a48[0x0],_0x35c10a=this['_createButton'](_0x257fcd,_0x2d66ac['type']);return _0x35c10a['icon']=_0x2d66ac['icon'],_0x35c10a['bind']('label')['to'](_0x123141,'isImageSelected',_0xd35335=>_(_0x36e6f2,_0x2d66ac['type'],_0xd35335?'Replace':'Insert')['text']),_0x35c10a['tooltip']=!0x0,_0x35c10a;}['_createDropdownButtons'](_0x3303f){const {locale:_0x2873e4}=this['editor'],_0x4ed8a8=this['editor']['plugins']['get']('ImageInsertUI');return _0x3303f['map'](_0x4af8d4=>{const _0x409d68=this['_createButton'](_0x257fcd,_0x4af8d4['type']);return _0x409d68['withText']=!0x0,_0x409d68['icon']=_0x4af8d4['icon'],_0x409d68['bind']('label')['to'](_0x4ed8a8,'isImageSelected',_0x4fca63=>_(_0x2873e4,_0x4af8d4['type'],_0x4fca63?'Replace':'Insert')['text']),_0x409d68;});}['_createMenuBarButtons'](_0xacd6a9){return _0xacd6a9['map'](_0x11f0d4=>{const _0x43b0b5=this['_createButton'](_0x56a0ff,_0x11f0d4['type']);return _0x43b0b5['icon']=_0x11f0d4['icon'],_0x43b0b5['label']=_0x11f0d4['shortText'],_0x43b0b5;});}}class q extends _0x3e4732{['focusTracker'];['focusCycler'];constructor(_0x1b4401){super(_0x1b4401),this['focusTracker']=new _0x580e0e(),this['focusCycler']=new _0xcbd689({'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(_0x4f09c6){super(_0x4f09c6),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(_0x24dd89,_0x19f116){const _0x326eb2=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2b08e7=>_0x2b08e7<=_0x19f116)['map'](_0x4e88eb=>_0x24dd89['replace'](/\/$/,'')+'/-/resize/'+_0x4e88eb+'x/\x20'+_0x4e88eb+'w');return{'imageFallbackUrl':_0x24dd89,'imageSources':[{'srcset':_0x326eb2['join'](',\x20'),'sizes':'(max-width:\x20'+_0x19f116+'px)\x20100vw,\x20'+_0x19f116+'px','type':'image/webp'}]};}function A(_0x2027b9,_0x595a6f,_0xb2871c){const _0x44327a=_0x2027b9['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x44327a?parseInt(_0x44327a[0x1],0xa):_0x595a6f,'height':_0x44327a?parseInt(_0x44327a[0x2],0xa):_0xb2871c};}function m(_0x343283,_0x240561){const _0x4e33b1=Object['create'](_0x7d43fd),_0x5aa745=_0x343283['plugins']['get']('ImageUtils'),_0x50bb18=_0x343283['editing']['mapper']['toViewElement'](_0x240561),_0x40da04=_0x5aa745['findViewImgElement'](_0x50bb18),_0x139318=_0x343283['editing']['view']['domConverter']['viewToDom'](_0x40da04),_0x14b5b2=_0x240561['getAttribute']('width'),_0x5634b2=_0x240561['getAttribute']('height'),_0x8fa9ca='image-processing';_0x343283['editing']['view']['change'](_0x374522=>{_0x374522['addClass'](_0x8fa9ca,_0x50bb18),_0x374522['setStyle']('aspect-ratio',_0x14b5b2+'/'+_0x5634b2,_0x40da04);}),_0x4e33b1['listenTo'](_0x139318,'load',()=>{_0x4e33b1['stopListening'](_0x139318,'load'),_0x343283['editing']['view']['change'](_0x1111b1=>{_0x1111b1['removeClass'](_0x8fa9ca,_0x50bb18),_0x1111b1['removeStyle']('aspect-ratio',_0x40da04);});});}function V(_0x14c25e){if(Array['isArray'](_0x14c25e)){const _0x20a291=_0x14c25e['map'](V);return _0x1ea8ca=>_0x20a291['some'](_0xa8011b=>_0xa8011b(_0x1ea8ca));}if('origin'==_0x14c25e){const _0x7a487b=_0x37058b['window']['location']['origin'];return _0x444bfd=>new URL(_0x444bfd,_0x37058b['document']['baseURI'])['origin']==_0x7a487b;}return'function'==typeof _0x14c25e?_0x14c25e:_0x14c25e instanceof RegExp?_0x4d98e8=>!(!_0x4d98e8['match'](_0x14c25e)&&!_0x4d98e8['replace'](/^https?:\/\//,'')['match'](_0x14c25e)):()=>!0x1;}function F(_0x159fc7,_0x4b05af){return _0x1694d3(_0x159fc7['target'])['includes'](_0x4b05af);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xa08b67(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x578489,_0x80f406,_0x46c6f8){super(),this['_editor']=_0x578489,this['_editing']=_0x80f406,this['_dialog']=_0x578489['plugins']['get'](_0x2058c5),this['_api']=_0x80f406['ctxElement']['getAPI'](),this['_type']=_0x46c6f8,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:_0x53e169,model:_0x1640d8}=this['_editor'],_0x46b63c=_0x1640d8['document']['selection']['getSelectedElement'](),_0x4591b7=_0x46b63c&&(_0x46b63c['is']('element','imageBlock')||_0x46b63c['is']('element','imageInline'));this['_formView']=new S(_0x53e169),this['_dialog']['show']({'id':'uploadCare','icon':_0x4acfba,'title':_(_0x53e169,this['_type'],_0x4591b7?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3fe094['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x240fe2=>!F(_0x240fe2,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xf4f0af}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x541336=>{const _0x2a97da=_0xf4f0af['length'];for(const _0x1e9796 of _0xf4f0af){const _0x48e120=_0x1e9796===_0xf4f0af[_0x2a97da-0x1],{cdnUrl:_0x851a40,fileInfo:_0x50fe4d}=_0x1e9796;if(!_0x851a40||!_0x50fe4d)continue;const {width:_0x2cd034,height:_0x973e88}=_0x50fe4d['imageInfo'],_0x477f68=A(_0x851a40,_0x2cd034,_0x973e88),_0x4aec61=E(_0x851a40,_0x477f68['width']),_0x2f2607={'id':_0x50fe4d['uuid'],'type':'image','attributes':{'imageDimension':_0x477f68,..._0x4aec61}};this['_insertAsset'](_0x2f2607,_0x48e120,_0x541336);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x576be7=>{'idle'===_0x576be7['detail']['status']&&!_0x576be7['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x14f7ee,_0x44caa3,_0x5e4329){const _0x105a48=this['_editor']['model']['document']['selection'],_0x10b6bc=_0x105a48['getSelectedElement'](),_0x1a0134=!(!_0x10b6bc||!_0x10b6bc['is']('element','imageInline'));_0x5e4329['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x14f7ee,_0x1a0134),_0x44caa3||_0x5e4329['setSelection'](_0x105a48['getLastPosition']());}['_insertImage'](_0x4d49f0,_0x1389d0){const _0x33c7c9=this['_editor'],{imageDimension:_0x207033,imageFallbackUrl:_0x2b0961,imageSources:_0x5df371}=_0x4d49f0['attributes'];_0x33c7c9['execute']('insertImage',{'imageType':_0x1389d0?'imageInline':null,'source':{'uploadcareImageId':_0x4d49f0['id'],'src':_0x2b0961,'sources':_0x5df371,..._0x207033}});}}class n extends _0x243e2b{['_editing'];['_controller']=null;static get['requires'](){return[_0x2058c5,i];}constructor(_0x4da787){super(_0x4da787),this['_editing']=_0x4da787['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x347384){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x347384);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x5aa105,publicKey:_0x122926,signal:_0x283d59,onProgress:_0x499d7a}){return _0x2a6a0c(_0x5aa105,{'publicKey':_0x122926,'store':'auto','signal':_0x283d59,'onProgress':_0x499d7a});}static['getInfo'](_0x23145e,_0x4d1451){return _0x3a15af(_0x23145e,_0x4d1451);}}class p extends _0x5aea69{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4d87c7,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2e1e64=this['editor'];if(!!!_0x2e1e64['config']['get']('uploadcare'))return;_0x2e1e64['plugins']['get'](_0x4d87c7)['createUploadAdapter']=_0x5af705=>new x(_0x5af705,_0x2e1e64),_0x2e1e64['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2ca654,{imageElement:_0x25ba3d,data:_0x3475b3})=>{_0x2e1e64['model']['change'](_0x1b331f=>{_0x1b331f['setAttribute']('uploadcareImageId',_0x3475b3['uploadcareImageId'],_0x25ba3d);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x4ca8b5,_0x15f968){this['loader']=_0x4ca8b5,this['editor']=_0x15f968,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x186758=this['editor']['config']['get']('uploadcare.pubkey'),_0x56f725=await this['loader']['file'];return C['upload']({'file':_0x56f725,'publicKey':_0x186758,'signal':this['controller']['signal'],'onProgress':_0x494331=>{_0x494331&&_0x494331['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x494331['value']);}})['then'](async _0x125102=>{const {imageFallbackUrl:_0x6a9328,imageSources:_0x53eaee}=E(_0x125102['cdnUrl'],_0x125102['imageInfo']['width']);return{'uploadcareImageId':_0x125102['uuid'],'default':_0x6a9328,'sources':_0x53eaee};})['catch'](()=>{const _0x16f9cf=t('Cannot\x20upload\x20file:')+('\x20'+_0x56f725['name']+'.');return Promise['reject'](_0x16f9cf);});}['abort'](){this['controller']['abort']();}}class i extends _0x5aea69{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x2058c5];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x25b292=this['editor'];_0x25b292['commands']['add']('uploadcare',new n(_0x25b292));}['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 _0x3b13b9=_0x37058b['document']['querySelector']('input[uploadcare-file-input]');_0x3b13b9&&_0x3b13b9['remove']();}),async function(_0x2075f3){const _0x351234=_0x59e1dc([0x63,0x74,0x72,0x32,0x5a,0x79,0x42,0x6f,0x57,0x37,0x33,0x77,0x53,0x41,0x35,0x49,0x4e,0x61,0x6c,0x66,0x4b,0x36,0x62,0x70,0x76,0x6a,0x43,0x4f,0x55,0x6e,0x58,0x45,0x6b,0x4a,0x39,0x30,0x69,0x31,0x64,0x73,0x54,0x78,0x68,0x75,0x59,0x65,0x48,0x34,0x71,0x50,0x6d,0x46,0x51,0x56,0x67,0x4c,0x7a,0x38,0x4d,0x52,0x47,0x44]),_0x3e3669=0x77330a77,_0x4ab477=0x77346bcf^_0x3e3669,_0x53d557=window[_0x59e1dc([0x44,0x61,0x74,0x65])][_0x59e1dc([0x6e,0x6f,0x77])](),_0x1d9cc2=_0x2075f3[_0x59e1dc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x252192=new window[(_0x59e1dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c7c2f=>{_0x1d9cc2[_0x59e1dc([0x6f,0x6e,0x63,0x65])](_0x59e1dc([0x72,0x65,0x61,0x64,0x79]),_0x2c7c2f);}),_0x35b9ba={[_0x59e1dc([0x6b,0x74,0x79])]:_0x59e1dc([0x45,0x43]),[_0x59e1dc([0x75,0x73,0x65])]:_0x59e1dc([0x73,0x69,0x67]),[_0x59e1dc([0x63,0x72,0x76])]:_0x59e1dc([0x50,0x2d,0x32,0x35,0x36]),[_0x59e1dc([0x78])]:_0x59e1dc([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]),[_0x59e1dc([0x79])]:_0x59e1dc([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]),[_0x59e1dc([0x61,0x6c,0x67])]:_0x59e1dc([0x45,0x53,0x32,0x35,0x36])},_0x5c2ea1=_0x1d9cc2[_0x59e1dc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59e1dc([0x67,0x65,0x74])](_0x59e1dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3de2ea(){let _0x4e6a59,_0x4489d3=null,_0x1f52ec=null;try{if(_0x5c2ea1==_0x59e1dc([0x47,0x50,0x4c]))return _0x59e1dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4e6a59=_0x312cbc(),!_0x4e6a59)return _0x59e1dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4e6a59[_0x59e1dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f52ec=_0x19765c(_0x4e6a59[_0x59e1dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4e6a59[_0x59e1dc([0x6a,0x74,0x69])])),await _0x4e8c8d()?_0xd18cf7()?_0x13effe()?_0x59e1dc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xac420c()?(_0x4e6a59[_0x59e1dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59e1dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4489d3=_0x16f951(_0x59e1dc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4e6a59[_0x59e1dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59e1dc([0x74,0x72,0x69,0x61,0x6c])&&(_0x4489d3=_0x16f951(_0x59e1dc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x159818()):_0x59e1dc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59e1dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59e1dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4f5364){return _0x59e1dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x13effe(){const _0xfc1760=[_0x59e1dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59e1dc([0x74,0x72,0x69,0x61,0x6c])][_0x59e1dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e6a59[_0x59e1dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53d557/0x3e8:0xe10*_0x4ab477;return _0x4e6a59[_0x59e1dc([0x65,0x78,0x70])]<_0xfc1760;}function _0xd18cf7(){const _0x1c2fa3=_0x4e6a59[_0x59e1dc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1c2fa3&&(!!_0x1c2fa3[_0x59e1dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59e1dc([0x2a]))||!!_0x1c2fa3[_0x59e1dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59e1dc([0x55,0x50,0x4c,0x43])));}function _0xac420c(){const _0x4accf0=_0x4e6a59[_0x59e1dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4accf0||0x0==_0x4accf0[_0x59e1dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x24b324}=new URL(window[_0x59e1dc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4accf0[_0x59e1dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24b324))return!0x0;const _0x65be01=_0x24b324[_0x59e1dc([0x73,0x70,0x6c,0x69,0x74])](_0x59e1dc([0x2e]));return _0x4accf0[_0x59e1dc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35779e=>_0x35779e[_0x59e1dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59e1dc([0x2a])))[_0x59e1dc([0x6d,0x61,0x70])](_0x5c87af=>_0x5c87af[_0x59e1dc([0x73,0x70,0x6c,0x69,0x74])](_0x59e1dc([0x2e])))[_0x59e1dc([0x73,0x6f,0x6d,0x65])](_0x510847=>_0x65be01[_0x59e1dc([0x65,0x76,0x65,0x72,0x79])]((_0x4e01a5,_0x900f78)=>_0x510847[_0x900f78]===_0x4e01a5||_0x510847[_0x900f78]===_0x59e1dc([0x2a])));}function _0x159818(){return _0x4489d3&&_0x1f52ec?new window[(_0x59e1dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b7bb4,_0x3f1003)=>{_0x4489d3[_0x59e1dc([0x74,0x68,0x65,0x6e])](_0x2b7bb4,_0x3f1003),_0x1f52ec[_0x59e1dc([0x74,0x68,0x65,0x6e])](_0x14b882=>{_0x14b882!=_0x59e1dc([0x56,0x61,0x6c,0x69,0x64])&&_0x2b7bb4(_0x14b882);},_0x3f1003);}):_0x4489d3||_0x1f52ec||_0x59e1dc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x19765c(_0x4f6c37,_0x2ecfba){return new window[(_0x59e1dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c2758=>{if(_0x5ef8f8())return _0x3c2758(_0x59e1dc([0x56,0x61,0x6c,0x69,0x64]));_0x4e62f2(),_0x1d9cc2[_0x59e1dc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59e1dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x53b21e=!0x1;const _0x26aa27=_0x6fc19b();function _0x37bbbd(_0xd317de){return!!_0xd317de&&(typeof _0xd317de===_0x59e1dc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xd317de===_0x59e1dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xd317de[_0x59e1dc([0x74,0x68,0x65,0x6e])]===_0x59e1dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xd317de[_0x59e1dc([0x63,0x61,0x74,0x63,0x68])]===_0x59e1dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1559cc(_0x17d991){_0x3943d0(_0x17d991)[_0x59e1dc([0x74,0x68,0x65,0x6e])](_0xff1680=>{if(!_0xff1680||_0xff1680[_0x59e1dc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59e1dc([0x6f,0x6b]))return _0x59e1dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x218fee(_0x292d72(_0x26aa27+_0x2ecfba))!=_0xff1680[_0x59e1dc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59e1dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59e1dc([0x56,0x61,0x6c,0x69,0x64]);})[_0x59e1dc([0x74,0x68,0x65,0x6e])](_0x80c684=>(_0x2649d0(),_0x80c684),()=>{const _0x1c3298=_0x4d2c1f();return null==_0x1c3298?(_0x2649d0(),_0x59e1dc([0x56,0x61,0x6c,0x69,0x64])):_0x59e1dc(_0x53d557-_0x1c3298>(0x533f8e77^_0x3e3669)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59e1dc([0x74,0x68,0x65,0x6e])](_0x3c2758)[_0x59e1dc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3c2758(_0x59e1dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4e830a=0x7705e4f7^_0x3e3669;function _0x2649d0(){const _0x301f02=_0x59e1dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x218fee(_0x292d72(_0x4f6c37)),_0x13e6c2=_0x7ea5e7(_0x218fee(window[_0x59e1dc([0x4d,0x61,0x74,0x68])][_0x59e1dc([0x63,0x65,0x69,0x6c])](_0x53d557/_0x4e830a)));window[_0x59e1dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59e1dc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x301f02,_0x13e6c2);}function _0x4d2c1f(){const _0x40a44c=_0x59e1dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x218fee(_0x292d72(_0x4f6c37)),_0x595410=window[_0x59e1dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59e1dc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40a44c);return _0x595410?window[_0x59e1dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7ea5e7(_0x595410),0x10)*_0x4e830a:null;}function _0x3943d0(_0x5b922d){return new window[(_0x59e1dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50bb35,_0x487cea)=>{_0x5b922d[_0x59e1dc([0x74,0x68,0x65,0x6e])](_0x50bb35,_0x487cea),window[_0x59e1dc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x487cea,0x7732deb7^_0x3e3669);});}}_0x1d9cc2[_0x59e1dc([0x6f,0x6e])](_0x59e1dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x23e33f,_0xde60a3)=>{if(_0xde60a3[0x0]!=_0x4f6c37)return _0x3c2758(_0x59e1dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xde60a3[0x1]={..._0xde60a3[0x1],[_0x59e1dc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x26aa27};},{[_0x59e1dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59e1dc([0x68,0x69,0x67,0x68])}),_0x1d9cc2[_0x59e1dc([0x6f,0x6e])](_0x59e1dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10a5dc=>{_0x37bbbd(_0x10a5dc[_0x59e1dc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x53b21e=!0x0,_0x1559cc(_0x10a5dc[_0x59e1dc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59e1dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59e1dc([0x6c,0x6f,0x77])}),_0x252192[_0x59e1dc([0x74,0x68,0x65,0x6e])](()=>{_0x53b21e||_0x3c2758(_0x59e1dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5ef8f8(){return _0x1d9cc2[_0x59e1dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59e1dc([0x76,0x69,0x65,0x77])][_0x59e1dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59e1dc([0x61,0x75,0x74,0x6f]);}function _0x4e62f2(){_0x1d9cc2[_0x59e1dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59e1dc([0x76,0x69,0x65,0x77])][_0x59e1dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59e1dc([0x61,0x75,0x74,0x6f]);}}function _0x16f951(_0x2f73d7){const _0x5edd32=[new window[(_0x59e1dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x441020=>setTimeout(_0x441020,0x773a34bb^_0x3e3669)),_0x252192[_0x59e1dc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59e1dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35292a=>{let _0x28a922=0x0;_0x1d9cc2[_0x59e1dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x59e1dc([0x6f,0x6e])](_0x59e1dc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4401f8,_0x218374)=>{_0x218374[0x0][_0x59e1dc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x28a922++,_0x28a922==(0x77330b8f^_0x3e3669)&&(_0x35292a(),_0x4401f8[_0x59e1dc([0x6f,0x66,0x66])]());});}))];return window[_0x59e1dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59e1dc([0x72,0x61,0x63,0x65])](_0x5edd32)[_0x59e1dc([0x74,0x68,0x65,0x6e])](()=>_0x2f73d7);}async function _0x742445(){await _0x252192,_0x1d9cc2[_0x59e1dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x59e1dc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x310e04,_0x1d9cc2[_0x59e1dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x59e1dc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x310e04,_0x1d9cc2[_0x59e1dc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59e1dc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4458f5(_0x397d0b){const _0x2abfd0=_0x558b2a();_0x1d9cc2[_0x2abfd0]=_0x59e1dc([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x397d0b,_0x397d0b!=_0x59e1dc([0x56,0x61,0x6c,0x69,0x64])&&_0x742445();}function _0x558b2a(){const _0xe7c18a=window[_0x59e1dc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59e1dc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59e1dc([0x6e,0x6f,0x77])]())[_0x59e1dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59e1dc([0x2e]),'');let _0x5a1c79=_0x59e1dc([0x63]);for(let _0x42cc70=0x0;_0x42cc70<_0xe7c18a[_0x59e1dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42cc70+=0x2){let _0x1655d8=window[_0x59e1dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe7c18a[_0x59e1dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42cc70,_0x42cc70+0x2));_0x1655d8>=_0x351234[_0x59e1dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1655d8-=_0x351234[_0x59e1dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5a1c79+=_0x351234[_0x1655d8];}return _0x5a1c79;}function _0x312cbc(){const _0x589b5e=_0x5c2ea1[_0x59e1dc([0x73,0x70,0x6c,0x69,0x74])](_0x59e1dc([0x2e]));if(0x3!=_0x589b5e[_0x59e1dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x386901(_0x589b5e[0x1]);function _0x386901(_0x272ee2){const _0x5764d8=_0x1b5eb2(_0x272ee2);return _0x5764d8&&_0xf86541()?_0x5764d8:null;function _0xf86541(){const _0x33de28=_0x5764d8[_0x59e1dc([0x6a,0x74,0x69])],_0x41acb7=window[_0x59e1dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33de28[_0x59e1dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33de28[_0x59e1dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x202627={..._0x5764d8,[_0x59e1dc([0x6a,0x74,0x69])]:_0x33de28[_0x59e1dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x33de28[_0x59e1dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x202627[_0x59e1dc([0x76,0x63])],_0x292d72(_0x202627)==_0x41acb7;}}}async function _0x4e8c8d(){let _0x2d1439=!0x0;try{const _0x2fc7d9=_0x5c2ea1[_0x59e1dc([0x73,0x70,0x6c,0x69,0x74])](_0x59e1dc([0x2e])),[_0x9f2fa7,_0x5c9a31,_0x28806b]=_0x2fc7d9;return _0x4c74b5(_0x9f2fa7),await _0x5935ab(_0x9f2fa7,_0x5c9a31,_0x28806b),_0x2d1439;}catch(_0x517c95){return!0x1;}function _0x4c74b5(_0x571509){const _0x338d8e=_0x1b5eb2(_0x571509);_0x338d8e&&_0x338d8e[_0x59e1dc([0x61,0x6c,0x67])]==_0x59e1dc([0x45,0x53,0x32,0x35,0x36])||(_0x2d1439=!0x1);}async function _0x5935ab(_0x410f07,_0x420d80,_0x3f3f18){const _0x3c9476=window[_0x59e1dc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59e1dc([0x66,0x72,0x6f,0x6d])](_0x40192c(_0x3f3f18),_0x529a19=>_0x529a19[_0x59e1dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3183ba=new window[(_0x59e1dc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59e1dc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x410f07+_0x59e1dc([0x2e])+_0x420d80),_0x2687ca=window[_0x59e1dc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59e1dc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2687ca)return;const _0x2dd995=await _0x2687ca[_0x59e1dc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59e1dc([0x6a,0x77,0x6b]),_0x35b9ba,{[_0x59e1dc([0x6e,0x61,0x6d,0x65])]:_0x59e1dc([0x45,0x43,0x44,0x53,0x41]),[_0x59e1dc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59e1dc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59e1dc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2687ca[_0x59e1dc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59e1dc([0x6e,0x61,0x6d,0x65])]:_0x59e1dc([0x45,0x43,0x44,0x53,0x41]),[_0x59e1dc([0x68,0x61,0x73,0x68])]:{[_0x59e1dc([0x6e,0x61,0x6d,0x65])]:_0x59e1dc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2dd995,_0x3c9476,_0x3183ba)||(_0x2d1439=!0x1);}}function _0x1b5eb2(_0x297fcc){return _0x297fcc[_0x59e1dc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59e1dc([0x65,0x79]))?JSON[_0x59e1dc([0x70,0x61,0x72,0x73,0x65])](_0x40192c(_0x297fcc)):null;}function _0x40192c(_0x41a405){return window[_0x59e1dc([0x61,0x74,0x6f,0x62])](_0x41a405[_0x59e1dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59e1dc([0x2b]))[_0x59e1dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59e1dc([0x2f])));}function _0x292d72(_0x3014ef){let _0x1e494d=0x1505;function _0x532800(_0x21e86f){for(let _0x39369e=0x0;_0x39369e<_0x21e86f[_0x59e1dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39369e++){const _0x989a1c=_0x21e86f[_0x59e1dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x39369e);_0x1e494d=(_0x1e494d<<0x5)+_0x1e494d+_0x989a1c,_0x1e494d&=_0x1e494d;}}function _0x333859(_0x254be9){Array[_0x59e1dc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x254be9)?_0x254be9[_0x59e1dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x333859):_0x254be9&&typeof _0x254be9==_0x59e1dc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59e1dc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x254be9)[_0x59e1dc([0x73,0x6f,0x72,0x74])]()[_0x59e1dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x369e08,_0x21ca0d])=>{_0x532800(_0x369e08),_0x333859(_0x21ca0d);}):_0x532800(window[_0x59e1dc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x254be9));}return _0x333859(_0x3014ef),_0x1e494d>>>0x0;}function _0x218fee(_0x566865){return _0x566865[_0x59e1dc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59e1dc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59e1dc([0x30]));}function _0x7ea5e7(_0x4426e2){return _0x4426e2[_0x59e1dc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59e1dc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59e1dc([0x6a,0x6f,0x69,0x6e])]('');}function _0x310e04(){}function _0x59e1dc(_0x1a9e07){return _0x1a9e07['map'](_0x1ef9c6=>String['fromCharCode'](_0x1ef9c6))['join']('');}_0x4458f5(await _0x3de2ea());}(this);}['_initSchema'](){const _0x4bef76=this['editor']['model']['schema'];_0x4bef76['isRegistered']('imageBlock')&&_0x4bef76['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4bef76['isRegistered']('imageInline')&&_0x4bef76['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xae2cf=this['editor'];_0xae2cf['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xae2cf['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x47714f=>_0x47714f['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x488808=_0xae2cf['commands']['get']('replaceImageSource');_0x488808&&this['listenTo'](_0x488808,'cleanupImage',(_0x1c7b6a,[_0x185033,_0x4432eb])=>{_0x185033['removeAttribute']('uploadcareImageId',_0x4432eb);});}['_initConfig'](){const _0x251ac6=this['editor']['config']['get']('uploadcare.uploader')||{},_0x34257e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x325cdd(_0x37058b['document'],'uc-config',{..._0x251ac6,'pubkey':_0x34257e,'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']=_0x3d5b3e=>{if('closeMax'==_0x3d5b3e)return'#uc-icon-arrow-down';},_0x37058b['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x325cdd(_0x37058b['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x37058b['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4b61da=this['editor']['commands']['get']('insertImage');_0x4b61da&&this['listenTo'](_0x4b61da,'execute',()=>{const _0x2fe0bc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2fe0bc&&_0x2fe0bc['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2fe0bc);});});const _0x26b8d2=this['editor']['commands']['get']('uploadcareImageReplace');_0x26b8d2&&this['listenTo'](_0x26b8d2,'execute',()=>{const _0x176643=this['editor']['model']['document']['selection']['getSelectedElement']();_0x176643&&_0x176643['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x176643);});});}}class u extends _0x5aea69{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52b58b){super(_0x52b58b),_0x52b58b['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x3bb2bc['defineComponents'](_0x3bb2bc);}}class ta extends _0x3e4732{constructor(_0x5d6fde){super(_0x5d6fde);const t=_0x5d6fde['t'],_0x3f2a6b=this['bindTemplate'],_0x5af538=new _0x58c44c();_0x5af538['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':[_0x5af538,{'text':_0x3f2a6b['to']('imageUploadProgress',_0x22b0b3=>t('Loading\x20image...')+'\x20('+(_0x22b0b3||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 _0x3e4732{constructor(_0x51e605){super(_0x51e605);const t=_0x51e605['t'];this['set']('errorType',null);const _0xc211ea=new _0x257fcd(_0x51e605);_0xc211ea['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xc211ea['withText']=!0x0,_0xc211ea['class']='ck-button-action',_0xc211ea['on']('execute',()=>{this['fire']('retry');}),_0xc211ea['bind']('isVisible')['to'](this,'errorType',_0x5de293=>'NotFound'!==_0x5de293);const _0x550e49=new at();_0x550e49['content']=et,_0x550e49['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3559f6=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':[_0x550e49,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3559f6['to']('errorType',_0x58a3c4=>t('NotFound'!==_0x58a3c4?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xc211ea]},{'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 _0x3e4732{constructor(_0x276d4c,_0x3c4120){super(_0x276d4c);const _0x2d15e8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3c4120,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2d15e8['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5ca15f,_0xf5e03d,_0x59af2b){super(_0x5ca15f),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x5ca15f),this['_errorView']=new rt(_0x5ca15f),this['_editingView']=new tt(_0x5ca15f,_0x59af2b),this['_focusableView']=new _0x3e4732(_0x5ca15f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xf5e03d),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'],_0x111375=>{this['_addUploadcareImageEditorListeners'](_0x111375);});}),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'](_0x19b182,_0x54957b){const _0x1a7b0c='uc-cloud-image-editor',_0x568dba=_0x19b182['querySelector'](_0x1a7b0c);if(_0x568dba)return _0x54957b(_0x568dba);const _0x2a190f=new MutationObserver(_0x4dc16d=>{const _0x54c4c8=_0x4dc16d['filter'](_0x440377=>_0x440377['target']===_0x19b182&&_0x440377['addedNodes']['length']>0x0&&_0x440377['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1a7b0c);_0x54c4c8['length']&&(_0x2a190f['disconnect'](),_0x54957b(_0x54c4c8[0x0]['addedNodes'][0x0]));});_0x2a190f['observe'](_0x19b182,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x135f92){_0x135f92['addEventListener']('apply',_0x3649a9=>{this['fire']('apply',{'imageSrc':_0x3649a9['detail']['cdnUrl']});}),_0x135f92['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xa08b67(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xfa82af,_0x5f0a4b,_0x2e193a){super(),this['_editor']=_0xfa82af,this['_dialog']=_0x5f0a4b,this['_imageElement']=_0x2e193a,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 _0x715266=this['_imageElement'],_0x231d7f=_0x715266['getAttribute']('uploadcareImageId'),_0x3961d9=_0x715266['getAttribute']('src');if(_0x231d7f)await this['_loadImageInfo'](_0x231d7f,_0x3961d9);else{if(this['_imageCache']['has'](_0x3961d9)){const _0x7cdbe4=this['_imageCache']['get'](_0x3961d9);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x7cdbe4['url'],this['imageDimension']=_0x7cdbe4['dimension'],this['imageId']=_0x7cdbe4['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3fc8d5}=this['_editor'],t=_0x3fc8d5['t'],_0x174724=new Z(_0x3fc8d5,this['imageStatus'],this['_attributes']);_0x174724['bind']('status')['to'](this,'imageStatus'),_0x174724['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x174724['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x174724['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x174724,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x16b2cc,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x174724,'position':_0x3fe094['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x174724['focus']();},'onHide':()=>{_0x174724['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3b33ee=>!F(_0x3b33ee,_0x174724['element'])}});}['_loadImageInfo'](_0x4b76d7,_0x51682a){return C['getInfo'](_0x4b76d7,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x416013=>{const {width:_0x7b0f5f,height:_0x57137e}=_0x416013['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x51682a,this['imageDimension']={'width':_0x7b0f5f,'height':_0x57137e},this['imageId']=_0x4b76d7;})['catch'](_0x130de9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x130de9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x53ddd0,_0x4f5069){return this['_getImageAsFile'](_0x53ddd0)['then'](_0xb94bfa=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4f5069['signal'],'file':_0xb94bfa,'onProgress':_0x56cd12=>{_0x56cd12&&_0x56cd12['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x56cd12['value']));}}))['then'](_0x5ed720=>{const {width:_0x570533,height:_0x5217ee}=_0x5ed720['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5ed720['cdnUrl'],this['imageDimension']={'width':_0x570533,'height':_0x5217ee},this['imageId']=_0x5ed720['uuid'],this['imageUploadProgress']=null;const _0x148ed1=_0x53ddd0['getAttribute']('src');this['_imageCache']['set'](_0x148ed1,{'id':_0x5ed720['uuid'],'url':_0x5ed720['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x45061d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x45061d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x80c5a4,_0x8fa787){_0x80c5a4['on']('apply',(_0x58b0a7,_0x585a34)=>{this['_replaceImage'](_0x8fa787,_0x585a34['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x80c5a4['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x80c5a4['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xee8de9,_0x37a27a,_0x22ff99){const _0x3a6eda=this['_editor'],{width:_0x4d962f,height:_0x3aaee3}=A(_0x37a27a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4f189c,imageSources:_0x56f2f7}=E(_0x37a27a,_0x4d962f);_0x3a6eda['model']['change'](_0x5e47ee=>{if('$graveyard'===_0xee8de9['root']['rootName']){_0x3a6eda['execute']('insertImage',{'imageType':_0xee8de9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xee8de9['getAttributes']()),'uploadcareImageId':_0x22ff99,'src':_0x4f189c,'sources':_0x56f2f7,'width':_0x4d962f,'height':_0x3aaee3}});const _0x74aca6=_0xee8de9['getChildren']();_0xee8de9=_0x3a6eda['model']['document']['selection']['getSelectedElement']();for(const _0x318b7e of _0x74aca6)_0x5e47ee['append'](_0x5e47ee['cloneElement'](_0x318b7e),_0xee8de9);}else _0x5e47ee['setSelection'](_0xee8de9,'on'),_0x3a6eda['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xee8de9['getAttributes']()),'uploadcareImageId':_0x22ff99,'src':_0x4f189c,'sources':_0x56f2f7,'width':_0x4d962f,'height':_0x3aaee3},_0xee8de9);_0x5e47ee['setSelection'](_0xee8de9,'on');});}async['_getImageAsFile'](_0x46bee3){const _0x4b5f2d=_0x37058b['window'],_0x23aa59=_0x37058b['document']['location']['href'],_0x14b741=new _0x4b5f2d['URL'](_0x46bee3['getAttribute']('src'),_0x23aa59);if('data:'===_0x14b741['protocol']){const _0x4769e5=_0x14b741['href']['split'](','),_0x1d0825=_0x4769e5[0x0]['match'](/:(.*?);/)[0x1],_0x379858=_0x1d0825['split']('/')[0x1],_0x5b514d=_0x4b5f2d['atob'](_0x4769e5[_0x4769e5['length']-0x1]);let _0x1f87fc=_0x5b514d['length'];const _0x5294bd=new _0x4b5f2d['Uint8Array'](_0x1f87fc);for(;_0x1f87fc--;)_0x5294bd[_0x1f87fc]=_0x5b514d['charCodeAt'](_0x1f87fc);return new _0x4b5f2d['File']([_0x5294bd],'image.'+_0x379858,{'type':_0x1d0825});}const _0x57e1ee=_0x14b741['href']['split']('/'),_0x76d982=_0x57e1ee[_0x57e1ee['length']-0x1],_0x322a1a=_0x76d982['split']('.')[0x1];return _0x4b5f2d['fetch'](_0x14b741['href'])['then'](_0xcae714=>_0xcae714['clone']()['blob']())['then'](_0x53cc8b=>new _0x4b5f2d['File']([_0x53cc8b],_0x76d982,{'type':'image/'+_0x322a1a}));}}class J extends _0x243e2b{['imageEditController'];static get['requires'](){return[_0x2058c5];}['_isEditable'];constructor(_0x385c17){super(_0x385c17),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xe1494f){const _0x1e28cc=V(_0xe1494f);return _0x2ef6ab=>!(!_0x2ef6ab||!_0x2ef6ab['is']('element','imageBlock')&&!_0x2ef6ab['is']('element','imageInline'))&&(!!_0x2ef6ab['hasAttribute']('uploadcareImageId')||!!_0x2ef6ab['hasAttribute']('src')&&_0x1e28cc(_0x2ef6ab['getAttribute']('src')));}(_0x385c17['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x16ff6c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x16ff6c);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4e7497=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4e7497&&(_0x4e7497['is']('element','imageBlock')||_0x4e7497['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x2058c5),_0x4e7497),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x243e2b{['refresh'](){const _0x51db3b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x51db3b&&(_0x51db3b['is']('element','imageBlock')||_0x51db3b['is']('element','imageInline')));}['execute'](_0x1f7e25){const _0xf20c1e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4c6f65=>{_0x4c6f65['setAttributes'](_0x1f7e25,_0xf20c1e),_0x4c6f65['removeAttribute']('srcset',_0xf20c1e),_0x4c6f65['removeAttribute']('sizes',_0xf20c1e);});}}class g extends _0x5aea69{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x490f6c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x32ab02}=this;_0x32ab02['commands']['add']('uploadcareImageEdit',new J(_0x32ab02)),_0x32ab02['commands']['add']('uploadcareImageReplace',new O(_0x32ab02));}}class j extends _0x5aea69{['_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 _0x38c67c=this['editor'];_0x38c67c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5f3179=>{const _0x3ced91=_0x38c67c['commands']['get']('uploadcareImageEdit'),_0x4dcd38=new _0x257fcd(_0x5f3179),t=_0x5f3179['t'];return _0x4dcd38['set']({'icon':_0x16b2cc,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4dcd38['bind']('isEnabled')['to'](_0x3ced91),_0x4dcd38['bind']('isOn')['to'](_0x3ced91,'isActive'),this['listenTo'](_0x4dcd38,'execute',()=>{_0x38c67c['execute']('uploadcareImageEdit'),_0x38c67c['editing']['view']['focus']();}),_0x4dcd38;}),this['_initConfig']();}['_initConfig'](){const _0x2ba8e6=_0x325cdd(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2ba8e6),this['listenTo'](this['editor'],'destroy',()=>{_0x2ba8e6['remove']();});}}class P extends _0x5aea69{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20250310.0",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20250310.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250310.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250310.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250310.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250310.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250310.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250310.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250310.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
|
-
function _0x1b15(_0x4a0276,_0x27cc0a){const _0x1ea50f=_0x1ea5();return _0x1b15=function(_0x1b15ae,_0x28e474){_0x1b15ae=_0x1b15ae-0xa6;let _0x55bbdf=_0x1ea50f[_0x1b15ae];return _0x55bbdf;},_0x1b15(_0x4a0276,_0x27cc0a);}const _0x28f58e=_0x1b15;(function(_0xaab85,_0x3bf0f0){const _0x1d23e0=_0x1b15,_0x2e6c56=_0xaab85();while(!![]){try{const _0x3e810a=parseInt(_0x1d23e0(0xe3))/0x1+-parseInt(_0x1d23e0(0xa9))/0x2+parseInt(_0x1d23e0(0xc3))/0x3+-parseInt(_0x1d23e0(0xc0))/0x4+parseInt(_0x1d23e0(0xeb))/0x5*(parseInt(_0x1d23e0(0xb1))/0x6)+-parseInt(_0x1d23e0(0xab))/0x7*(parseInt(_0x1d23e0(0xcd))/0x8)+parseInt(_0x1d23e0(0xe4))/0x9*(parseInt(_0x1d23e0(0xac))/0xa);if(_0x3e810a===_0x3bf0f0)break;else _0x2e6c56['push'](_0x2e6c56['shift']());}catch(_0x37ebac){_0x2e6c56['push'](_0x2e6c56['shift']());}}}(_0x1ea5,0x9bae8));import{Plugin as _0x26ca0b}from'ckeditor5/src/core.js';import{Dialog as _0xe8a498}from'ckeditor5/src/ui.js';import{createElement as _0x3a37b6,global as _0x491152,uid as _0x3b0b86}from'ckeditor5/src/utils.js';import _0x3aeb54 from'./uploadcarecommand.js';import _0x12139b from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4d9d90}from'./utils/editingutils.js';function _0x1ea5(){const _0x1de688=['381342sGJxdc','input[uploadcare-file-input]','selection','uploadcareImageReplace','view','model','uploadcareImageId','add','_initImageProcessingIndicator','replaceImageSource','42664SoIUEi','uploadcare.pubkey','ctxElement','_initConversion','uploadcare','execute','uploadcare.uploader','configElement','pluginName','upcast','editing','commands','contentLanguage','imageBlock','map','insertImage','_configElement','destroy','extend','for','get','uc-config','760442XOPyKL','54LpRRkB','elementToAttribute','uploader','isPremiumPlugin','render','true','_initConfig','2885DdGrEG','PictureEditing','cleanupImage','downcast','conversion','editor','isOfficialPlugin','document','afterInit','iconHrefResolver','imageInline','uc-upload-ctx-provider','_initCtx','\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-icon-arrow-down','querySelector','data-uc-image-id','join','1960802dIQcpz','attributeToAttribute','406IibCaE','2378320eWNfKT','init','once','locale','remove','8538TDAuex','removeAttribute','getSelectedElement','config','body','requires','appendChild','schema','_ctxElement','getAttribute','UploadcareEditing','isRegistered','fromCharCode','_initSchema','closeMax','4832928Wdsvlh','listenTo','href'];_0x1ea5=function(){return _0x1de688;};return _0x1ea5();}export default class i extends _0x26ca0b{[_0x28f58e(0xdd)]=null;[_0x28f58e(0xb9)]=null;static get[_0x28f58e(0xd5)](){const _0x555b7b=_0x28f58e;return _0x555b7b(0xbb);}static get[_0x28f58e(0xb6)](){const _0x328210=_0x28f58e;return[_0x328210(0xec),_0x12139b,_0xe8a498];}static get[_0x28f58e(0xf1)](){return!0x0;}static get[_0x28f58e(0xe7)](){return!0x0;}get[_0x28f58e(0xd4)](){const _0x5b9212=_0x28f58e;return this[_0x5b9212(0xdd)];}get[_0x28f58e(0xcf)](){const _0x3dc1b2=_0x28f58e;return this[_0x3dc1b2(0xb9)];}[_0x28f58e(0xad)](){const _0x276c6d=_0x28f58e,_0x4691a4=this[_0x276c6d(0xf0)];_0x4691a4[_0x276c6d(0xd8)][_0x276c6d(0xca)](_0x276c6d(0xd1),new _0x3aeb54(_0x4691a4));}[_0x28f58e(0xf3)](){const _0x15ff56=_0x28f58e;this[_0x15ff56(0xbe)](),this[_0x15ff56(0xd0)](),this[_0x15ff56(0xea)](),this[_0x15ff56(0xf7)](),this[_0x15ff56(0xcb)](),this[_0x15ff56(0xc1)](this[_0x15ff56(0xf0)],_0x15ff56(0xde),()=>{const _0xe12197=_0x15ff56;this[_0xe12197(0xdd)]&&(this[_0xe12197(0xdd)][_0xe12197(0xb0)](),this[_0xe12197(0xdd)]=null),this[_0xe12197(0xb9)]&&(this[_0xe12197(0xb9)][_0xe12197(0xb0)](),this[_0xe12197(0xb9)]=null);const _0x562100=_0x491152[_0xe12197(0xf2)][_0xe12197(0xa6)](_0xe12197(0xc4));_0x562100&&_0x562100[_0xe12197(0xb0)]();}),async function(_0x5a3877){const _0x20c3c3=_0x3904d1([0x39,0x76,0x63,0x4f,0x69,0x71,0x66,0x7a,0x41,0x52,0x62,0x58,0x74,0x4a,0x33,0x78,0x4c,0x45,0x55,0x67,0x50,0x75,0x6f,0x43,0x44,0x57,0x73,0x31,0x77,0x6d,0x30,0x51,0x4e,0x56,0x54,0x79,0x49,0x4b,0x35,0x70,0x37,0x38,0x53,0x6c,0x65,0x59,0x6e,0x61,0x36,0x72,0x5a,0x6b,0x47,0x64,0x6a,0x34,0x42,0x46,0x32,0x4d,0x48,0x68]),_0x2efd83=0x4013f54c,_0x1ddf82=0x401494ec^_0x2efd83,_0x3754a3=window[_0x3904d1([0x44,0x61,0x74,0x65])][_0x3904d1([0x6e,0x6f,0x77])](),_0x375b84=_0x5a3877[_0x3904d1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xde0272=new window[(_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4eee2e=>{_0x375b84[_0x3904d1([0x6f,0x6e,0x63,0x65])](_0x3904d1([0x72,0x65,0x61,0x64,0x79]),_0x4eee2e);}),_0x9d6d68={[_0x3904d1([0x6b,0x74,0x79])]:_0x3904d1([0x45,0x43]),[_0x3904d1([0x75,0x73,0x65])]:_0x3904d1([0x73,0x69,0x67]),[_0x3904d1([0x63,0x72,0x76])]:_0x3904d1([0x50,0x2d,0x32,0x35,0x36]),[_0x3904d1([0x78])]:_0x3904d1([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]),[_0x3904d1([0x79])]:_0x3904d1([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]),[_0x3904d1([0x61,0x6c,0x67])]:_0x3904d1([0x45,0x53,0x32,0x35,0x36])},_0x48782f=_0x375b84[_0x3904d1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3904d1([0x67,0x65,0x74])](_0x3904d1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x30fbf1(){let _0x7a694a,_0x57d7ab=null,_0x220ebc=null;try{if(_0x48782f==_0x3904d1([0x47,0x50,0x4c]))return _0x3904d1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x7a694a=_0x3cc870(),!_0x7a694a)return _0x3904d1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x7a694a[_0x3904d1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x220ebc=_0x219756(_0x7a694a[_0x3904d1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x7a694a[_0x3904d1([0x6a,0x74,0x69])])),await _0x1aaa36()?_0xf44609()?_0x33d918()?_0x3904d1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x400aa5()?(_0x7a694a[_0x3904d1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3904d1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57d7ab=_0x7d4540(_0x3904d1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x7a694a[_0x3904d1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3904d1([0x74,0x72,0x69,0x61,0x6c])&&(_0x57d7ab=_0x7d4540(_0x3904d1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22ac0f()):_0x3904d1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3904d1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3904d1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x383776){return _0x3904d1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x33d918(){const _0x35e18d=[_0x3904d1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3904d1([0x74,0x72,0x69,0x61,0x6c])][_0x3904d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7a694a[_0x3904d1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3754a3/0x3e8:0xe10*_0x1ddf82;return _0x7a694a[_0x3904d1([0x65,0x78,0x70])]<_0x35e18d;}function _0xf44609(){const _0x2bff7e=_0x7a694a[_0x3904d1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2bff7e&&(!!_0x2bff7e[_0x3904d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3904d1([0x2a]))||!!_0x2bff7e[_0x3904d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3904d1([0x55,0x50,0x4c,0x43])));}function _0x400aa5(){const _0x17ccc2=_0x1b15,_0x4cb422=_0x7a694a[_0x3904d1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4cb422||0x0==_0x4cb422[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4476ed}=new URL(window[_0x3904d1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x17ccc2(0xc2)]);if(_0x4cb422[_0x3904d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4476ed))return!0x0;const _0x40c480=_0x4476ed[_0x3904d1([0x73,0x70,0x6c,0x69,0x74])](_0x3904d1([0x2e]));return _0x4cb422[_0x3904d1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38ec10=>_0x38ec10[_0x3904d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3904d1([0x2a])))[_0x3904d1([0x6d,0x61,0x70])](_0x5f0a95=>_0x5f0a95[_0x3904d1([0x73,0x70,0x6c,0x69,0x74])](_0x3904d1([0x2e])))[_0x3904d1([0x73,0x6f,0x6d,0x65])](_0x408595=>_0x40c480[_0x3904d1([0x65,0x76,0x65,0x72,0x79])]((_0x49b92a,_0x3d8bb5)=>_0x408595[_0x3d8bb5]===_0x49b92a||_0x408595[_0x3d8bb5]===_0x3904d1([0x2a])));}function _0x22ac0f(){return _0x57d7ab&&_0x220ebc?new window[(_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe0bd43,_0x3cb21a)=>{_0x57d7ab[_0x3904d1([0x74,0x68,0x65,0x6e])](_0xe0bd43,_0x3cb21a),_0x220ebc[_0x3904d1([0x74,0x68,0x65,0x6e])](_0x4b6bc2=>{_0x4b6bc2!=_0x3904d1([0x56,0x61,0x6c,0x69,0x64])&&_0xe0bd43(_0x4b6bc2);},_0x3cb21a);}):_0x57d7ab||_0x220ebc||_0x3904d1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x219756(_0x58b4b2,_0x5b4be3){return new window[(_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x469a67=>{if(_0x541d4c())return _0x469a67(_0x3904d1([0x56,0x61,0x6c,0x69,0x64]));_0x40a1c0(),_0x375b84[_0x3904d1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3904d1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x25d0cb=!0x1;const _0x549164=_0x3b0b86();function _0x4b2279(_0x899343){return!!_0x899343&&(typeof _0x899343===_0x3904d1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x899343===_0x3904d1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x899343[_0x3904d1([0x74,0x68,0x65,0x6e])]===_0x3904d1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x899343[_0x3904d1([0x63,0x61,0x74,0x63,0x68])]===_0x3904d1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xe2c087(_0xc64b5f){_0x3281dc(_0xc64b5f)[_0x3904d1([0x74,0x68,0x65,0x6e])](_0x2b0834=>{if(!_0x2b0834||_0x2b0834[_0x3904d1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3904d1([0x6f,0x6b]))return _0x3904d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x30f182(_0x5989b8(_0x549164+_0x5b4be3))!=_0x2b0834[_0x3904d1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3904d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3904d1([0x56,0x61,0x6c,0x69,0x64]);})[_0x3904d1([0x74,0x68,0x65,0x6e])](_0x13c24c=>(_0x3bf3dc(),_0x13c24c),()=>{const _0x2e6c3e=_0x1b138e();return null==_0x2e6c3e?(_0x3bf3dc(),_0x3904d1([0x56,0x61,0x6c,0x69,0x64])):_0x3904d1(_0x3754a3-_0x2e6c3e>(0x641f714c^_0x2efd83)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3904d1([0x74,0x68,0x65,0x6e])](_0x469a67)[_0x3904d1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x469a67(_0x3904d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e3224=0x40251bcc^_0x2efd83;function _0x3bf3dc(){const _0x3051bb=_0x3904d1([0x6c,0x6c,0x63,0x74,0x2d])+_0x30f182(_0x5989b8(_0x58b4b2)),_0x200fcb=_0x4e9709(_0x30f182(window[_0x3904d1([0x4d,0x61,0x74,0x68])][_0x3904d1([0x63,0x65,0x69,0x6c])](_0x3754a3/_0x5e3224)));window[_0x3904d1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3904d1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3051bb,_0x200fcb);}function _0x1b138e(){const _0x21da53=_0x3904d1([0x6c,0x6c,0x63,0x74,0x2d])+_0x30f182(_0x5989b8(_0x58b4b2)),_0x28d15f=window[_0x3904d1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3904d1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21da53);return _0x28d15f?window[_0x3904d1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e9709(_0x28d15f),0x10)*_0x5e3224:null;}function _0x3281dc(_0x56921b){return new window[(_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x70a6c2,_0x21fb65)=>{_0x56921b[_0x3904d1([0x74,0x68,0x65,0x6e])](_0x70a6c2,_0x21fb65),window[_0x3904d1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21fb65,0x4012218c^_0x2efd83);});}}_0x375b84[_0x3904d1([0x6f,0x6e])](_0x3904d1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x530987,_0x56e095)=>{if(_0x56e095[0x0]!=_0x58b4b2)return _0x469a67(_0x3904d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x56e095[0x1]={..._0x56e095[0x1],[_0x3904d1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x549164};},{[_0x3904d1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3904d1([0x68,0x69,0x67,0x68])}),_0x375b84[_0x3904d1([0x6f,0x6e])](_0x3904d1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e3869=>{_0x4b2279(_0x5e3869[_0x3904d1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x25d0cb=!0x0,_0xe2c087(_0x5e3869[_0x3904d1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3904d1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3904d1([0x6c,0x6f,0x77])}),_0xde0272[_0x3904d1([0x74,0x68,0x65,0x6e])](()=>{_0x25d0cb||_0x469a67(_0x3904d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x541d4c(){return _0x375b84[_0x3904d1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3904d1([0x76,0x69,0x65,0x77])][_0x3904d1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3904d1([0x61,0x75,0x74,0x6f]);}function _0x40a1c0(){_0x375b84[_0x3904d1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3904d1([0x76,0x69,0x65,0x77])][_0x3904d1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3904d1([0x61,0x75,0x74,0x6f]);}}function _0x7d4540(_0x5637a5){const _0x1a3db1=[new window[(_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56d17a=>setTimeout(_0x56d17a,0x401acb80^_0x2efd83)),_0xde0272[_0x3904d1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59232f=>{let _0x278cb1=0x0;_0x375b84[_0x3904d1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3904d1([0x6f,0x6e])](_0x3904d1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x7ab9b3,_0xc40b77)=>{_0xc40b77[0x0][_0x3904d1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x278cb1++,_0x278cb1==(0x4013f4b4^_0x2efd83)&&(_0x59232f(),_0x7ab9b3[_0x3904d1([0x6f,0x66,0x66])]());});}))];return window[_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3904d1([0x72,0x61,0x63,0x65])](_0x1a3db1)[_0x3904d1([0x74,0x68,0x65,0x6e])](()=>_0x5637a5);}async function _0x38e3f9(){await _0xde0272,_0x375b84[_0x3904d1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3904d1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25aefe,_0x375b84[_0x3904d1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3904d1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25aefe,_0x375b84[_0x3904d1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3904d1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c0166(_0x3447c9){const _0x4722fd=_0x196c64();_0x375b84[_0x4722fd]=_0x3904d1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3447c9,_0x3447c9!=_0x3904d1([0x56,0x61,0x6c,0x69,0x64])&&_0x38e3f9();}function _0x196c64(){const _0x1c6f62=window[_0x3904d1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3904d1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3904d1([0x6e,0x6f,0x77])]())[_0x3904d1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3904d1([0x2e]),'');let _0x16e5d8=_0x3904d1([0x76]);for(let _0x4aee05=0x0;_0x4aee05<_0x1c6f62[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4aee05+=0x2){let _0x49ac90=window[_0x3904d1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c6f62[_0x3904d1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4aee05,_0x4aee05+0x2));_0x49ac90>=_0x20c3c3[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x49ac90-=_0x20c3c3[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x16e5d8+=_0x20c3c3[_0x49ac90];}return _0x16e5d8;}function _0x3cc870(){const _0x2767e4=_0x48782f[_0x3904d1([0x73,0x70,0x6c,0x69,0x74])](_0x3904d1([0x2e]));if(0x3!=_0x2767e4[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xf015b6(_0x2767e4[0x1]);function _0xf015b6(_0x213296){const _0x477db4=_0x45aca7(_0x213296);return _0x477db4&&_0x11bfbf()?_0x477db4:null;function _0x11bfbf(){const _0x4def53=_0x477db4[_0x3904d1([0x6a,0x74,0x69])],_0xd94a93=window[_0x3904d1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4def53[_0x3904d1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4def53[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e2f56={..._0x477db4,[_0x3904d1([0x6a,0x74,0x69])]:_0x4def53[_0x3904d1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4def53[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e2f56[_0x3904d1([0x76,0x63])],_0x5989b8(_0x1e2f56)==_0xd94a93;}}}async function _0x1aaa36(){let _0x11f4e1=!0x0;try{const _0x1d5b34=_0x48782f[_0x3904d1([0x73,0x70,0x6c,0x69,0x74])](_0x3904d1([0x2e])),[_0x53b0c7,_0x191b71,_0xf6be8a]=_0x1d5b34;return _0xf2a31a(_0x53b0c7),await _0x1d75be(_0x53b0c7,_0x191b71,_0xf6be8a),_0x11f4e1;}catch(_0xd8b626){return!0x1;}function _0xf2a31a(_0x4944ea){const _0x1d40da=_0x45aca7(_0x4944ea);_0x1d40da&&_0x1d40da[_0x3904d1([0x61,0x6c,0x67])]==_0x3904d1([0x45,0x53,0x32,0x35,0x36])||(_0x11f4e1=!0x1);}async function _0x1d75be(_0x2d06f9,_0x142a21,_0xb970ba){const _0x20afb2=window[_0x3904d1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3904d1([0x66,0x72,0x6f,0x6d])](_0x3c9963(_0xb970ba),_0x50e599=>_0x50e599[_0x3904d1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x39d1e5=new window[(_0x3904d1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3904d1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2d06f9+_0x3904d1([0x2e])+_0x142a21),_0x530543=window[_0x3904d1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3904d1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x530543)return;const _0x2db45b=await _0x530543[_0x3904d1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3904d1([0x6a,0x77,0x6b]),_0x9d6d68,{[_0x3904d1([0x6e,0x61,0x6d,0x65])]:_0x3904d1([0x45,0x43,0x44,0x53,0x41]),[_0x3904d1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3904d1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3904d1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x530543[_0x3904d1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3904d1([0x6e,0x61,0x6d,0x65])]:_0x3904d1([0x45,0x43,0x44,0x53,0x41]),[_0x3904d1([0x68,0x61,0x73,0x68])]:{[_0x3904d1([0x6e,0x61,0x6d,0x65])]:_0x3904d1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2db45b,_0x20afb2,_0x39d1e5)||(_0x11f4e1=!0x1);}}function _0x45aca7(_0x32d513){return _0x32d513[_0x3904d1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3904d1([0x65,0x79]))?JSON[_0x3904d1([0x70,0x61,0x72,0x73,0x65])](_0x3c9963(_0x32d513)):null;}function _0x3c9963(_0x305e31){return window[_0x3904d1([0x61,0x74,0x6f,0x62])](_0x305e31[_0x3904d1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3904d1([0x2b]))[_0x3904d1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3904d1([0x2f])));}function _0x5989b8(_0x132df6){let _0x25063e=0x1505;function _0x4c4551(_0x27ec7d){for(let _0x5f53bb=0x0;_0x5f53bb<_0x27ec7d[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5f53bb++){const _0x1b3cba=_0x27ec7d[_0x3904d1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5f53bb);_0x25063e=(_0x25063e<<0x5)+_0x25063e+_0x1b3cba,_0x25063e&=_0x25063e;}}function _0x31a022(_0x9a548f){Array[_0x3904d1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9a548f)?_0x9a548f[_0x3904d1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x31a022):_0x9a548f&&typeof _0x9a548f==_0x3904d1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3904d1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9a548f)[_0x3904d1([0x73,0x6f,0x72,0x74])]()[_0x3904d1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5c949f,_0x21b0d3])=>{_0x4c4551(_0x5c949f),_0x31a022(_0x21b0d3);}):_0x4c4551(window[_0x3904d1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9a548f));}return _0x31a022(_0x132df6),_0x25063e>>>0x0;}function _0x30f182(_0x74707e){return _0x74707e[_0x3904d1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3904d1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3904d1([0x30]));}function _0x4e9709(_0x226fdd){return _0x226fdd[_0x3904d1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3904d1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3904d1([0x6a,0x6f,0x69,0x6e])]('');}function _0x25aefe(){}function _0x3904d1(_0x2f11fb){const _0x552439=_0x1b15;return _0x2f11fb[_0x552439(0xdb)](_0xe4c457=>String[_0x552439(0xbd)](_0xe4c457))[_0x552439(0xa8)]('');}_0x3c0166(await _0x30fbf1());}(this);}[_0x28f58e(0xbe)](){const _0x3aa3e1=_0x28f58e,_0xaad5d4=this[_0x3aa3e1(0xf0)][_0x3aa3e1(0xc8)][_0x3aa3e1(0xb8)];_0xaad5d4[_0x3aa3e1(0xbc)](_0x3aa3e1(0xda))&&_0xaad5d4[_0x3aa3e1(0xdf)](_0x3aa3e1(0xda),{'allowAttributes':[_0x3aa3e1(0xc9)]}),_0xaad5d4[_0x3aa3e1(0xbc)](_0x3aa3e1(0xf5))&&_0xaad5d4[_0x3aa3e1(0xdf)](_0x3aa3e1(0xf5),{'allowAttributes':[_0x3aa3e1(0xc9)]});}[_0x28f58e(0xd0)](){const _0xf9f8e6=_0x28f58e,_0x3e5e8c=this[_0xf9f8e6(0xf0)];_0x3e5e8c[_0xf9f8e6(0xef)][_0xf9f8e6(0xe0)](_0xf9f8e6(0xee))[_0xf9f8e6(0xaa)]({'model':_0xf9f8e6(0xc9),'view':_0xf9f8e6(0xa7)}),_0x3e5e8c[_0xf9f8e6(0xef)][_0xf9f8e6(0xe0)](_0xf9f8e6(0xd6))[_0xf9f8e6(0xe5)]({'model':{'key':_0xf9f8e6(0xc9),'value':_0x2e4aa0=>_0x2e4aa0[_0xf9f8e6(0xba)](_0xf9f8e6(0xa7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1a2e2d=_0x3e5e8c[_0xf9f8e6(0xd8)][_0xf9f8e6(0xe1)](_0xf9f8e6(0xcc));_0x1a2e2d&&this[_0xf9f8e6(0xc1)](_0x1a2e2d,_0xf9f8e6(0xed),(_0x308c60,[_0x1783ad,_0x514753])=>{const _0x5b7ae1=_0xf9f8e6;_0x1783ad[_0x5b7ae1(0xb2)](_0x5b7ae1(0xc9),_0x514753);});}[_0x28f58e(0xea)](){const _0x39d8d6=_0x28f58e,_0x1d2dec=this[_0x39d8d6(0xf0)][_0x39d8d6(0xb4)][_0x39d8d6(0xe1)](_0x39d8d6(0xd3))||{},_0x10c221=this[_0x39d8d6(0xf0)][_0x39d8d6(0xb4)][_0x39d8d6(0xe1)](_0x39d8d6(0xce))||'';this[_0x39d8d6(0xdd)]=_0x3a37b6(_0x491152[_0x39d8d6(0xf2)],_0x39d8d6(0xe2),{..._0x1d2dec,'pubkey':_0x10c221,'ctx-name':_0x39d8d6(0xe6),'sourceList':'','imgOnly':_0x39d8d6(0xe9),'removeCopyright':_0x39d8d6(0xe9),'localeName':this[_0x39d8d6(0xf0)][_0x39d8d6(0xaf)][_0x39d8d6(0xd9)],'externalSourcesEmbedCss':_0x39d8d6(0xf8)}),this[_0x39d8d6(0xdd)][_0x39d8d6(0xf4)]=_0x4dd700=>{const _0x3027be=_0x39d8d6;if(_0x3027be(0xbf)==_0x4dd700)return _0x3027be(0xf9);},_0x491152[_0x39d8d6(0xf2)][_0x39d8d6(0xb5)][_0x39d8d6(0xb7)](this[_0x39d8d6(0xdd)]);}[_0x28f58e(0xf7)](){const _0x1c8126=_0x28f58e;this[_0x1c8126(0xb9)]=_0x3a37b6(_0x491152[_0x1c8126(0xf2)],_0x1c8126(0xf6),{'ctx-name':_0x1c8126(0xe6)}),_0x491152[_0x1c8126(0xf2)][_0x1c8126(0xb5)][_0x1c8126(0xb7)](this[_0x1c8126(0xb9)]);}[_0x28f58e(0xcb)](){const _0x4e79b7=_0x28f58e,_0x16c06a=this[_0x4e79b7(0xf0)][_0x4e79b7(0xd8)][_0x4e79b7(0xe1)](_0x4e79b7(0xdc));_0x16c06a&&this[_0x4e79b7(0xc1)](_0x16c06a,_0x4e79b7(0xd2),()=>{const _0x3e83bd=_0x4e79b7,_0xf4647a=this[_0x3e83bd(0xf0)][_0x3e83bd(0xc8)][_0x3e83bd(0xf2)][_0x3e83bd(0xc5)][_0x3e83bd(0xb3)]();_0xf4647a&&_0xf4647a[_0x3e83bd(0xba)](_0x3e83bd(0xc9))&&this[_0x3e83bd(0xf0)][_0x3e83bd(0xd7)][_0x3e83bd(0xc7)][_0x3e83bd(0xae)](_0x3e83bd(0xe8),()=>{const _0x14d4e2=_0x3e83bd;_0x4d9d90(this[_0x14d4e2(0xf0)],_0xf4647a);});});const _0x336b32=this[_0x4e79b7(0xf0)][_0x4e79b7(0xd8)][_0x4e79b7(0xe1)](_0x4e79b7(0xc6));_0x336b32&&this[_0x4e79b7(0xc1)](_0x336b32,_0x4e79b7(0xd2),()=>{const _0x4e7a42=_0x4e79b7,_0x1b0bb1=this[_0x4e7a42(0xf0)][_0x4e7a42(0xc8)][_0x4e7a42(0xf2)][_0x4e7a42(0xc5)][_0x4e7a42(0xb3)]();_0x1b0bb1&&_0x1b0bb1[_0x4e7a42(0xba)](_0x4e7a42(0xc9))&&this[_0x4e7a42(0xf0)][_0x4e7a42(0xd7)][_0x4e7a42(0xc7)][_0x4e7a42(0xae)](_0x4e7a42(0xe8),()=>{const _0x4d2737=_0x4e7a42;_0x4d9d90(this[_0x4d2737(0xf0)],_0x1b0bb1);});});}}
|
|
23
|
+
const _0x3b7e13=_0x5d3e;(function(_0x4badf7,_0x24d0ef){const _0x24a301=_0x5d3e,_0x493032=_0x4badf7();while(!![]){try{const _0x2026b0=parseInt(_0x24a301(0xdc))/0x1*(-parseInt(_0x24a301(0xc5))/0x2)+-parseInt(_0x24a301(0xf1))/0x3*(-parseInt(_0x24a301(0xf6))/0x4)+parseInt(_0x24a301(0xbb))/0x5*(parseInt(_0x24a301(0xb7))/0x6)+-parseInt(_0x24a301(0xca))/0x7+-parseInt(_0x24a301(0xe1))/0x8*(-parseInt(_0x24a301(0xe7))/0x9)+-parseInt(_0x24a301(0xc3))/0xa+parseInt(_0x24a301(0xdf))/0xb;if(_0x2026b0===_0x24d0ef)break;else _0x493032['push'](_0x493032['shift']());}catch(_0x1792a4){_0x493032['push'](_0x493032['shift']());}}}(_0x4448,0xcd6c2));import{Plugin as _0x358e2c}from'ckeditor5/src/core.js';function _0x5d3e(_0x46b3c3,_0x2ac23e){const _0x4448f9=_0x4448();return _0x5d3e=function(_0x5d3e8c,_0x2a3ded){_0x5d3e8c=_0x5d3e8c-0xa6;let _0x1c128c=_0x4448f9[_0x5d3e8c];return _0x1c128c;},_0x5d3e(_0x46b3c3,_0x2ac23e);}import{Dialog as _0x4370bd}from'ckeditor5/src/ui.js';import{createElement as _0x2ef530,global as _0x2aa1a7,uid as _0x20eddc}from'ckeditor5/src/utils.js';import _0xb8ef2b from'./uploadcarecommand.js';import _0x134c0b from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3cb9e4}from'./utils/editingutils.js';export default class i extends _0x358e2c{[_0x3b7e13(0xb1)]=null;[_0x3b7e13(0xc1)]=null;static get[_0x3b7e13(0xaa)](){const _0x4aa6d0=_0x3b7e13;return _0x4aa6d0(0xa9);}static get[_0x3b7e13(0xf9)](){const _0x505eea=_0x3b7e13;return[_0x505eea(0xae),_0x134c0b,_0x4370bd];}static get[_0x3b7e13(0xfa)](){return!0x0;}static get[_0x3b7e13(0xc2)](){return!0x0;}get[_0x3b7e13(0xe2)](){const _0x402bd2=_0x3b7e13;return this[_0x402bd2(0xb1)];}get[_0x3b7e13(0xe9)](){const _0x21cbd7=_0x3b7e13;return this[_0x21cbd7(0xc1)];}[_0x3b7e13(0xcf)](){const _0x401118=_0x3b7e13,_0x21705d=this[_0x401118(0xb2)];_0x21705d[_0x401118(0xbe)][_0x401118(0xee)](_0x401118(0xf8),new _0xb8ef2b(_0x21705d));}[_0x3b7e13(0xec)](){const _0x6106a4=_0x3b7e13;this[_0x6106a4(0xf0)](),this[_0x6106a4(0xef)](),this[_0x6106a4(0xb8)](),this[_0x6106a4(0xd7)](),this[_0x6106a4(0xac)](),this[_0x6106a4(0xd2)](this[_0x6106a4(0xb2)],_0x6106a4(0xf7),()=>{const _0x4358e8=_0x6106a4;this[_0x4358e8(0xb1)]&&(this[_0x4358e8(0xb1)][_0x4358e8(0xbd)](),this[_0x4358e8(0xb1)]=null),this[_0x4358e8(0xc1)]&&(this[_0x4358e8(0xc1)][_0x4358e8(0xbd)](),this[_0x4358e8(0xc1)]=null);const _0x480069=_0x2aa1a7[_0x4358e8(0xc9)][_0x4358e8(0xf4)](_0x4358e8(0xc0));_0x480069&&_0x480069[_0x4358e8(0xbd)]();}),async function(_0x3de5b0){const _0x2b6f1f=_0x96ab7([0x63,0x74,0x72,0x32,0x5a,0x79,0x42,0x6f,0x57,0x37,0x33,0x77,0x53,0x41,0x35,0x49,0x4e,0x61,0x6c,0x66,0x4b,0x36,0x62,0x70,0x76,0x6a,0x43,0x4f,0x55,0x6e,0x58,0x45,0x6b,0x4a,0x39,0x30,0x69,0x31,0x64,0x73,0x54,0x78,0x68,0x75,0x59,0x65,0x48,0x34,0x71,0x50,0x6d,0x46,0x51,0x56,0x67,0x4c,0x7a,0x38,0x4d,0x52,0x47,0x44]),_0x33fe22=0x77330a77,_0x4b2aec=0x77346bcf^_0x33fe22,_0x1eba21=window[_0x96ab7([0x44,0x61,0x74,0x65])][_0x96ab7([0x6e,0x6f,0x77])](),_0x7e4c2a=_0x3de5b0[_0x96ab7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a49ac=new window[(_0x96ab7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5641b4=>{_0x7e4c2a[_0x96ab7([0x6f,0x6e,0x63,0x65])](_0x96ab7([0x72,0x65,0x61,0x64,0x79]),_0x5641b4);}),_0x327341={[_0x96ab7([0x6b,0x74,0x79])]:_0x96ab7([0x45,0x43]),[_0x96ab7([0x75,0x73,0x65])]:_0x96ab7([0x73,0x69,0x67]),[_0x96ab7([0x63,0x72,0x76])]:_0x96ab7([0x50,0x2d,0x32,0x35,0x36]),[_0x96ab7([0x78])]:_0x96ab7([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]),[_0x96ab7([0x79])]:_0x96ab7([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]),[_0x96ab7([0x61,0x6c,0x67])]:_0x96ab7([0x45,0x53,0x32,0x35,0x36])},_0x2dae61=_0x7e4c2a[_0x96ab7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x96ab7([0x67,0x65,0x74])](_0x96ab7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x549e34(){let _0x11fa64,_0x3968f1=null,_0x396afd=null;try{if(_0x2dae61==_0x96ab7([0x47,0x50,0x4c]))return _0x96ab7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x11fa64=_0x1552d3(),!_0x11fa64)return _0x96ab7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x11fa64[_0x96ab7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x396afd=_0x530a41(_0x11fa64[_0x96ab7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x11fa64[_0x96ab7([0x6a,0x74,0x69])])),await _0x199b20()?_0x4f09f2()?_0x6475c3()?_0x96ab7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xf7bb28()?(_0x11fa64[_0x96ab7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x96ab7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3968f1=_0x2f670c(_0x96ab7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x11fa64[_0x96ab7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x96ab7([0x74,0x72,0x69,0x61,0x6c])&&(_0x3968f1=_0x2f670c(_0x96ab7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1ca60a()):_0x96ab7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x96ab7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x96ab7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x8186e9){return _0x96ab7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x6475c3(){const _0x4ffaa0=[_0x96ab7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x96ab7([0x74,0x72,0x69,0x61,0x6c])][_0x96ab7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11fa64[_0x96ab7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1eba21/0x3e8:0xe10*_0x4b2aec;return _0x11fa64[_0x96ab7([0x65,0x78,0x70])]<_0x4ffaa0;}function _0x4f09f2(){const _0x569653=_0x11fa64[_0x96ab7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x569653&&(!!_0x569653[_0x96ab7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x96ab7([0x2a]))||!!_0x569653[_0x96ab7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x96ab7([0x55,0x50,0x4c,0x43])));}function _0xf7bb28(){const _0x27d975=_0x5d3e,_0x4f3857=_0x11fa64[_0x96ab7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4f3857||0x0==_0x4f3857[_0x96ab7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4915c2}=new URL(window[_0x96ab7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x27d975(0xd3)]);if(_0x4f3857[_0x96ab7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4915c2))return!0x0;const _0x2f9164=_0x4915c2[_0x96ab7([0x73,0x70,0x6c,0x69,0x74])](_0x96ab7([0x2e]));return _0x4f3857[_0x96ab7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e85b5=>_0x5e85b5[_0x96ab7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x96ab7([0x2a])))[_0x96ab7([0x6d,0x61,0x70])](_0x4c2404=>_0x4c2404[_0x96ab7([0x73,0x70,0x6c,0x69,0x74])](_0x96ab7([0x2e])))[_0x96ab7([0x73,0x6f,0x6d,0x65])](_0x3620bc=>_0x2f9164[_0x96ab7([0x65,0x76,0x65,0x72,0x79])]((_0x3a38b3,_0x5b9415)=>_0x3620bc[_0x5b9415]===_0x3a38b3||_0x3620bc[_0x5b9415]===_0x96ab7([0x2a])));}function _0x1ca60a(){return _0x3968f1&&_0x396afd?new window[(_0x96ab7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35d6ab,_0x5bcf79)=>{_0x3968f1[_0x96ab7([0x74,0x68,0x65,0x6e])](_0x35d6ab,_0x5bcf79),_0x396afd[_0x96ab7([0x74,0x68,0x65,0x6e])](_0x40d363=>{_0x40d363!=_0x96ab7([0x56,0x61,0x6c,0x69,0x64])&&_0x35d6ab(_0x40d363);},_0x5bcf79);}):_0x3968f1||_0x396afd||_0x96ab7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x530a41(_0x2a2388,_0x2496f8){return new window[(_0x96ab7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56fb2e=>{if(_0x4fe381())return _0x56fb2e(_0x96ab7([0x56,0x61,0x6c,0x69,0x64]));_0xfe5682(),_0x7e4c2a[_0x96ab7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x96ab7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf2ec9e=!0x1;const _0x20f8b8=_0x20eddc();function _0x4442a0(_0x5b26cc){return!!_0x5b26cc&&(typeof _0x5b26cc===_0x96ab7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b26cc===_0x96ab7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b26cc[_0x96ab7([0x74,0x68,0x65,0x6e])]===_0x96ab7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b26cc[_0x96ab7([0x63,0x61,0x74,0x63,0x68])]===_0x96ab7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c9621(_0x2b42da){_0x3cb7b6(_0x2b42da)[_0x96ab7([0x74,0x68,0x65,0x6e])](_0x5ad6a3=>{if(!_0x5ad6a3||_0x5ad6a3[_0x96ab7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x96ab7([0x6f,0x6b]))return _0x96ab7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x360fc6(_0x21f94e(_0x20f8b8+_0x2496f8))!=_0x5ad6a3[_0x96ab7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x96ab7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x96ab7([0x56,0x61,0x6c,0x69,0x64]);})[_0x96ab7([0x74,0x68,0x65,0x6e])](_0x217ee3=>(_0x538a49(),_0x217ee3),()=>{const _0x52c4bd=_0x24cc3b();return null==_0x52c4bd?(_0x538a49(),_0x96ab7([0x56,0x61,0x6c,0x69,0x64])):_0x96ab7(_0x1eba21-_0x52c4bd>(0x533f8e77^_0x33fe22)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x96ab7([0x74,0x68,0x65,0x6e])](_0x56fb2e)[_0x96ab7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x56fb2e(_0x96ab7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4de3fd=0x7705e4f7^_0x33fe22;function _0x538a49(){const _0x400489=_0x96ab7([0x6c,0x6c,0x63,0x74,0x2d])+_0x360fc6(_0x21f94e(_0x2a2388)),_0x2b62e=_0x2a5c1b(_0x360fc6(window[_0x96ab7([0x4d,0x61,0x74,0x68])][_0x96ab7([0x63,0x65,0x69,0x6c])](_0x1eba21/_0x4de3fd)));window[_0x96ab7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x96ab7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x400489,_0x2b62e);}function _0x24cc3b(){const _0x560078=_0x96ab7([0x6c,0x6c,0x63,0x74,0x2d])+_0x360fc6(_0x21f94e(_0x2a2388)),_0x5d09f5=window[_0x96ab7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x96ab7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x560078);return _0x5d09f5?window[_0x96ab7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a5c1b(_0x5d09f5),0x10)*_0x4de3fd:null;}function _0x3cb7b6(_0x322229){return new window[(_0x96ab7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44dc62,_0x397b9c)=>{_0x322229[_0x96ab7([0x74,0x68,0x65,0x6e])](_0x44dc62,_0x397b9c),window[_0x96ab7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x397b9c,0x7732deb7^_0x33fe22);});}}_0x7e4c2a[_0x96ab7([0x6f,0x6e])](_0x96ab7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c9cac,_0x326692)=>{if(_0x326692[0x0]!=_0x2a2388)return _0x56fb2e(_0x96ab7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x326692[0x1]={..._0x326692[0x1],[_0x96ab7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x20f8b8};},{[_0x96ab7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x96ab7([0x68,0x69,0x67,0x68])}),_0x7e4c2a[_0x96ab7([0x6f,0x6e])](_0x96ab7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x169a69=>{_0x4442a0(_0x169a69[_0x96ab7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf2ec9e=!0x0,_0x3c9621(_0x169a69[_0x96ab7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x96ab7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x96ab7([0x6c,0x6f,0x77])}),_0x3a49ac[_0x96ab7([0x74,0x68,0x65,0x6e])](()=>{_0xf2ec9e||_0x56fb2e(_0x96ab7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4fe381(){return _0x7e4c2a[_0x96ab7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x96ab7([0x76,0x69,0x65,0x77])][_0x96ab7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x96ab7([0x61,0x75,0x74,0x6f]);}function _0xfe5682(){_0x7e4c2a[_0x96ab7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x96ab7([0x76,0x69,0x65,0x77])][_0x96ab7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x96ab7([0x61,0x75,0x74,0x6f]);}}function _0x2f670c(_0x4b20b0){const _0x262318=[new window[(_0x96ab7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dd007=>setTimeout(_0x3dd007,0x773a34bb^_0x33fe22)),_0x3a49ac[_0x96ab7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x96ab7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19fba0=>{let _0x516502=0x0;_0x7e4c2a[_0x96ab7([0x6d,0x6f,0x64,0x65,0x6c])][_0x96ab7([0x6f,0x6e])](_0x96ab7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x377185,_0x2c327f)=>{_0x2c327f[0x0][_0x96ab7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x516502++,_0x516502==(0x77330b8f^_0x33fe22)&&(_0x19fba0(),_0x377185[_0x96ab7([0x6f,0x66,0x66])]());});}))];return window[_0x96ab7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x96ab7([0x72,0x61,0x63,0x65])](_0x262318)[_0x96ab7([0x74,0x68,0x65,0x6e])](()=>_0x4b20b0);}async function _0x5dc1ec(){await _0x3a49ac,_0x7e4c2a[_0x96ab7([0x6d,0x6f,0x64,0x65,0x6c])][_0x96ab7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x125886,_0x7e4c2a[_0x96ab7([0x6d,0x6f,0x64,0x65,0x6c])][_0x96ab7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x125886,_0x7e4c2a[_0x96ab7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x96ab7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5c014c(_0x1f551a){const _0x538259=_0x320814();_0x7e4c2a[_0x538259]=_0x96ab7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1f551a,_0x1f551a!=_0x96ab7([0x56,0x61,0x6c,0x69,0x64])&&_0x5dc1ec();}function _0x320814(){const _0x19be3b=window[_0x96ab7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x96ab7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x96ab7([0x6e,0x6f,0x77])]())[_0x96ab7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x96ab7([0x2e]),'');let _0x3c5f55=_0x96ab7([0x63]);for(let _0x5d422c=0x0;_0x5d422c<_0x19be3b[_0x96ab7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d422c+=0x2){let _0x1b8a42=window[_0x96ab7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19be3b[_0x96ab7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d422c,_0x5d422c+0x2));_0x1b8a42>=_0x2b6f1f[_0x96ab7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b8a42-=_0x2b6f1f[_0x96ab7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c5f55+=_0x2b6f1f[_0x1b8a42];}return _0x3c5f55;}function _0x1552d3(){const _0x1ddc0a=_0x2dae61[_0x96ab7([0x73,0x70,0x6c,0x69,0x74])](_0x96ab7([0x2e]));if(0x3!=_0x1ddc0a[_0x96ab7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x41a005(_0x1ddc0a[0x1]);function _0x41a005(_0x1bc835){const _0x2393f6=_0x44abf6(_0x1bc835);return _0x2393f6&&_0x18f150()?_0x2393f6:null;function _0x18f150(){const _0x37e013=_0x2393f6[_0x96ab7([0x6a,0x74,0x69])],_0x4e2f0a=window[_0x96ab7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37e013[_0x96ab7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37e013[_0x96ab7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1ccf3c={..._0x2393f6,[_0x96ab7([0x6a,0x74,0x69])]:_0x37e013[_0x96ab7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x37e013[_0x96ab7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1ccf3c[_0x96ab7([0x76,0x63])],_0x21f94e(_0x1ccf3c)==_0x4e2f0a;}}}async function _0x199b20(){let _0x578469=!0x0;try{const _0x5e1a0f=_0x2dae61[_0x96ab7([0x73,0x70,0x6c,0x69,0x74])](_0x96ab7([0x2e])),[_0xe5d5d5,_0x54494a,_0x59e63b]=_0x5e1a0f;return _0x2dc3f7(_0xe5d5d5),await _0x5877eb(_0xe5d5d5,_0x54494a,_0x59e63b),_0x578469;}catch(_0x232165){return!0x1;}function _0x2dc3f7(_0xcaa564){const _0x1201c1=_0x44abf6(_0xcaa564);_0x1201c1&&_0x1201c1[_0x96ab7([0x61,0x6c,0x67])]==_0x96ab7([0x45,0x53,0x32,0x35,0x36])||(_0x578469=!0x1);}async function _0x5877eb(_0x624592,_0x5aaf27,_0x34a30f){const _0x27c06c=window[_0x96ab7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x96ab7([0x66,0x72,0x6f,0x6d])](_0x382b02(_0x34a30f),_0x35f502=>_0x35f502[_0x96ab7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1daf62=new window[(_0x96ab7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x96ab7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x624592+_0x96ab7([0x2e])+_0x5aaf27),_0x483393=window[_0x96ab7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x96ab7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x483393)return;const _0xe79865=await _0x483393[_0x96ab7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x96ab7([0x6a,0x77,0x6b]),_0x327341,{[_0x96ab7([0x6e,0x61,0x6d,0x65])]:_0x96ab7([0x45,0x43,0x44,0x53,0x41]),[_0x96ab7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x96ab7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x96ab7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x483393[_0x96ab7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x96ab7([0x6e,0x61,0x6d,0x65])]:_0x96ab7([0x45,0x43,0x44,0x53,0x41]),[_0x96ab7([0x68,0x61,0x73,0x68])]:{[_0x96ab7([0x6e,0x61,0x6d,0x65])]:_0x96ab7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xe79865,_0x27c06c,_0x1daf62)||(_0x578469=!0x1);}}function _0x44abf6(_0x3bfa60){return _0x3bfa60[_0x96ab7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x96ab7([0x65,0x79]))?JSON[_0x96ab7([0x70,0x61,0x72,0x73,0x65])](_0x382b02(_0x3bfa60)):null;}function _0x382b02(_0x1fb3c5){return window[_0x96ab7([0x61,0x74,0x6f,0x62])](_0x1fb3c5[_0x96ab7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x96ab7([0x2b]))[_0x96ab7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x96ab7([0x2f])));}function _0x21f94e(_0x40ada9){let _0x143c5d=0x1505;function _0x20ceb1(_0x55ee01){for(let _0x4cde13=0x0;_0x4cde13<_0x55ee01[_0x96ab7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4cde13++){const _0x278a98=_0x55ee01[_0x96ab7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4cde13);_0x143c5d=(_0x143c5d<<0x5)+_0x143c5d+_0x278a98,_0x143c5d&=_0x143c5d;}}function _0x379b46(_0x167c14){Array[_0x96ab7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x167c14)?_0x167c14[_0x96ab7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x379b46):_0x167c14&&typeof _0x167c14==_0x96ab7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x96ab7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x167c14)[_0x96ab7([0x73,0x6f,0x72,0x74])]()[_0x96ab7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5451b9,_0x1ee490])=>{_0x20ceb1(_0x5451b9),_0x379b46(_0x1ee490);}):_0x20ceb1(window[_0x96ab7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x167c14));}return _0x379b46(_0x40ada9),_0x143c5d>>>0x0;}function _0x360fc6(_0x587821){return _0x587821[_0x96ab7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x96ab7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x96ab7([0x30]));}function _0x2a5c1b(_0xdddbd4){return _0xdddbd4[_0x96ab7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x96ab7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x96ab7([0x6a,0x6f,0x69,0x6e])]('');}function _0x125886(){}function _0x96ab7(_0x4fa218){const _0xd668ef=_0x5d3e;return _0x4fa218[_0xd668ef(0xdd)](_0x2c7cc2=>String[_0xd668ef(0xbc)](_0x2c7cc2))[_0xd668ef(0xeb)]('');}_0x5c014c(await _0x549e34());}(this);}[_0x3b7e13(0xf0)](){const _0xf76300=_0x3b7e13,_0x2e813e=this[_0xf76300(0xb2)][_0xf76300(0xcd)][_0xf76300(0xf2)];_0x2e813e[_0xf76300(0xab)](_0xf76300(0xe0))&&_0x2e813e[_0xf76300(0xd9)](_0xf76300(0xe0),{'allowAttributes':[_0xf76300(0xf5)]}),_0x2e813e[_0xf76300(0xab)](_0xf76300(0xc4))&&_0x2e813e[_0xf76300(0xd9)](_0xf76300(0xc4),{'allowAttributes':[_0xf76300(0xf5)]});}[_0x3b7e13(0xef)](){const _0x98501b=_0x3b7e13,_0x2cb0fe=this[_0x98501b(0xb2)];_0x2cb0fe[_0x98501b(0xcc)][_0x98501b(0xc6)](_0x98501b(0xb5))[_0x98501b(0xea)]({'model':_0x98501b(0xf5),'view':_0x98501b(0xaf)}),_0x2cb0fe[_0x98501b(0xcc)][_0x98501b(0xc6)](_0x98501b(0xd4))[_0x98501b(0xda)]({'model':{'key':_0x98501b(0xf5),'value':_0x17697d=>_0x17697d[_0x98501b(0xd0)](_0x98501b(0xaf))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x17ccd1=_0x2cb0fe[_0x98501b(0xbe)][_0x98501b(0xd5)](_0x98501b(0xc7));_0x17ccd1&&this[_0x98501b(0xd2)](_0x17ccd1,_0x98501b(0xa6),(_0x2154f3,[_0x3ce53a,_0x2251a4])=>{const _0x3359e2=_0x98501b;_0x3ce53a[_0x3359e2(0xf3)](_0x3359e2(0xf5),_0x2251a4);});}[_0x3b7e13(0xb8)](){const _0x5c41e2=_0x3b7e13,_0x400adc=this[_0x5c41e2(0xb2)][_0x5c41e2(0xba)][_0x5c41e2(0xd5)](_0x5c41e2(0xce))||{},_0x14804d=this[_0x5c41e2(0xb2)][_0x5c41e2(0xba)][_0x5c41e2(0xd5)](_0x5c41e2(0xed))||'';this[_0x5c41e2(0xb1)]=_0x2ef530(_0x2aa1a7[_0x5c41e2(0xc9)],_0x5c41e2(0xe5),{..._0x400adc,'pubkey':_0x14804d,'ctx-name':_0x5c41e2(0xbf),'sourceList':'','imgOnly':_0x5c41e2(0xe3),'removeCopyright':_0x5c41e2(0xe3),'localeName':this[_0x5c41e2(0xb2)][_0x5c41e2(0xe4)][_0x5c41e2(0xb3)],'externalSourcesEmbedCss':_0x5c41e2(0xd6)}),this[_0x5c41e2(0xb1)][_0x5c41e2(0xd8)]=_0xa61bf4=>{const _0x13845a=_0x5c41e2;if(_0x13845a(0xe8)==_0xa61bf4)return _0x13845a(0xb9);},_0x2aa1a7[_0x5c41e2(0xc9)][_0x5c41e2(0xdb)][_0x5c41e2(0xad)](this[_0x5c41e2(0xb1)]);}[_0x3b7e13(0xd7)](){const _0x30ef14=_0x3b7e13;this[_0x30ef14(0xc1)]=_0x2ef530(_0x2aa1a7[_0x30ef14(0xc9)],_0x30ef14(0xb0),{'ctx-name':_0x30ef14(0xbf)}),_0x2aa1a7[_0x30ef14(0xc9)][_0x30ef14(0xdb)][_0x30ef14(0xad)](this[_0x30ef14(0xc1)]);}[_0x3b7e13(0xac)](){const _0x4bafdd=_0x3b7e13,_0x13b8fc=this[_0x4bafdd(0xb2)][_0x4bafdd(0xbe)][_0x4bafdd(0xd5)](_0x4bafdd(0xa7));_0x13b8fc&&this[_0x4bafdd(0xd2)](_0x13b8fc,_0x4bafdd(0xe6),()=>{const _0x1f20a2=_0x4bafdd,_0x4fbe67=this[_0x1f20a2(0xb2)][_0x1f20a2(0xcd)][_0x1f20a2(0xc9)][_0x1f20a2(0xa8)][_0x1f20a2(0xcb)]();_0x4fbe67&&_0x4fbe67[_0x1f20a2(0xd0)](_0x1f20a2(0xf5))&&this[_0x1f20a2(0xb2)][_0x1f20a2(0xc8)][_0x1f20a2(0xd1)][_0x1f20a2(0xde)](_0x1f20a2(0xb4),()=>{const _0x1cb1d4=_0x1f20a2;_0x3cb9e4(this[_0x1cb1d4(0xb2)],_0x4fbe67);});});const _0x88d381=this[_0x4bafdd(0xb2)][_0x4bafdd(0xbe)][_0x4bafdd(0xd5)](_0x4bafdd(0xb6));_0x88d381&&this[_0x4bafdd(0xd2)](_0x88d381,_0x4bafdd(0xe6),()=>{const _0x377d7b=_0x4bafdd,_0x2ab313=this[_0x377d7b(0xb2)][_0x377d7b(0xcd)][_0x377d7b(0xc9)][_0x377d7b(0xa8)][_0x377d7b(0xcb)]();_0x2ab313&&_0x2ab313[_0x377d7b(0xd0)](_0x377d7b(0xf5))&&this[_0x377d7b(0xb2)][_0x377d7b(0xc8)][_0x377d7b(0xd1)][_0x377d7b(0xde)](_0x377d7b(0xb4),()=>{const _0x3e864f=_0x377d7b;_0x3cb9e4(this[_0x3e864f(0xb2)],_0x2ab313);});});}}function _0x4448(){const _0x3b90fd=['config','650MJmEGH','fromCharCode','remove','commands','uploader','input[uploadcare-file-input]','_ctxElement','isPremiumPlugin','11931190XWCcOh','imageInline','2IUujBN','for','replaceImageSource','editing','document','10147816flNYCr','getSelectedElement','conversion','model','uploadcare.uploader','init','getAttribute','view','listenTo','href','upcast','get','\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','iconHrefResolver','extend','elementToAttribute','body','541285FjmQWu','map','once','18420138ODziaB','imageBlock','8WeoDFp','configElement','true','locale','uc-config','execute','13166649hdJXLk','closeMax','ctxElement','attributeToAttribute','join','afterInit','uploadcare.pubkey','add','_initConversion','_initSchema','3AvPxsf','schema','removeAttribute','querySelector','uploadcareImageId','3483812LeUDQa','destroy','uploadcare','requires','isOfficialPlugin','cleanupImage','insertImage','selection','UploadcareEditing','pluginName','isRegistered','_initImageProcessingIndicator','appendChild','PictureEditing','data-uc-image-id','uc-upload-ctx-provider','_configElement','editor','contentLanguage','render','downcast','uploadcareImageReplace','786vnAtDH','_initConfig','#uc-icon-arrow-down'];_0x4448=function(){return _0x3b90fd;};return _0x4448();}
|