@ckeditor/ckeditor5-uploadcare 45.2.1-alpha.0 → 45.2.1-alpha.1
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 _0x2f0502,Command as _0x32f960}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x6d91f,IconGooglePhotos as _0x4314a5,IconGoogleDrive as _0x217bec,IconFacebook as _0x7d29db,IconDropbox as _0x46211f,IconUploadcareLink as _0x4fc8c7,IconUploadcareImageUpload as _0x146036,IconError as et,IconUploadcareImageEdit as _0x5c9616}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x30d839,MenuBarMenuListItemButtonView as _0x3c901c,View as _0x327d3a,FocusCycler as _0x16f59e,Dialog as _0xffb8bb,DialogViewPosition as _0x5c0732,SpinnerView as _0x38ace9,IconView as at,Notification as _0x3caf17}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1086ad,DomEmitterMixin as _0x4fa12b,global as _0xabb74b,getAncestors as _0x28569a,ObservableMixin as _0x17e33a,createElement as _0x11e85d,uid as _0x5abadf}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1780bc}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x88b3ef,info as _0x48777c}from'@uploadcare/upload-client';import*as _0x2bb86f from'@uploadcare/file-uploader';var o=function(_0x1be6bc){return _0x1be6bc['Local']='local',_0x1be6bc['URL']='url',_0x1be6bc['Dropbox']='dropbox',_0x1be6bc['GDrive']='gdrive',_0x1be6bc['Facebook']='facebook',_0x1be6bc['GPhotos']='gphotos',_0x1be6bc['OneDrive']='onedrive',_0x1be6bc;}({});function _(_0x5b56bb,_0x5565c7,_0x4fc2b6){const t=_0x5b56bb['t'],_0x775242=_0x5b56bb['t'];switch(_0x5565c7){case o['Local']:return{'text':_0x775242('Insert'===_0x4fc2b6?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x775242('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x4fc2b6?_0x775242('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x775242('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x4fc2b6?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x4fc2b6?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x4fc2b6?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x4fc2b6?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x4fc2b6?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5565c7;}}class e extends _0x2f0502{['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 _0x2cc50b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x151dc3;for(const _0x3f5ffe in _0x2cc50b){const _0x57eb2f=_0x3f5ffe,_0x6daa7e=_0x2cc50b[_0x57eb2f];if('uploadcareLicenseKeyValid'==_0x6daa7e||'uploadcareLicenseKeyInvalid'==_0x6daa7e||'uploadcareLicenseKeyExpired'==_0x6daa7e||'uploadcareLicenseKeyDomainLimit'==_0x6daa7e||'uploadcareLicenseKeyNotAllowed'==_0x6daa7e||'uploadcareLicenseKeyEvaluationLimit'==_0x6daa7e||'uploadcareLicenseKeyTrialLimit'==_0x6daa7e||'uploadcareLicenseKeyUsageLimit'==_0x6daa7e){delete _0x2cc50b[_0x57eb2f],_0x151dc3=_0x6daa7e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x151dc3&&_0x2cc50b['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x151dc3&&_0x2cc50b['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x151dc3&&_0x2cc50b['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x151dc3&&_0x2cc50b['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x151dc3&&_0x2cc50b['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x151dc3&&_0x2cc50b['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x151dc3&&_0x2cc50b['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1870eb}=this,_0x393444=_0x1870eb['commands']['get']('uploadcare');if(!_0x393444)return;const _0x218ca4=this['_normalizeConfigSourceList'](_0x1870eb['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x91b930,_0x26146a)=>{const _0x1426fe=this['_getIntegrationKey'](_0x26146a['type']);return _0x91b930[_0x1426fe]||(_0x91b930[_0x1426fe]=[]),_0x91b930[_0x1426fe]['push'](_0x26146a),_0x91b930;},{});_0x1870eb['plugins']['has']('ImageInsertUI')&&_0x1870eb['commands']['get']('uploadcare')&&Object['entries'](_0x218ca4)['forEach'](([_0x3eb54d,_0x5dd5d3])=>{_0x1870eb['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3eb54d,'observable':()=>_0x393444,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5dd5d3),'formViewCreator':()=>this['_createDropdownButtons'](_0x5dd5d3),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5dd5d3),'override':'assetManager'!==_0x3eb54d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1569bd){const {locale:_0xf63748}=this['editor'];return _0x1569bd['map'](_0x113b1a=>{const _0x3c1916=_(_0xf63748,_0x113b1a,'Insert');switch(_0x113b1a){case o['Local']:return{'icon':_0x146036,'type':o['Local'],..._0x3c1916};case o['URL']:return{'icon':_0x4fc8c7,'type':o['URL'],..._0x3c1916};case o['Dropbox']:return{'icon':_0x46211f,'type':o['Dropbox'],..._0x3c1916};case o['Facebook']:return{'icon':_0x7d29db,'type':o['Facebook'],..._0x3c1916};case o['GDrive']:return{'icon':_0x217bec,'type':o['GDrive'],..._0x3c1916};case o['GPhotos']:return{'icon':_0x4314a5,'type':o['GPhotos'],..._0x3c1916};case o['OneDrive']:return{'icon':_0x6d91f,'type':o['OneDrive'],..._0x3c1916};}});}['_getIntegrationKey'](_0xdb87e8){switch(_0xdb87e8){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xc00e90,_0x586c76){const _0x9f2e03=this['editor'],_0x24c971=new _0xc00e90(_0x9f2e03['locale']),_0x52f557=_0x9f2e03['commands']['get']('uploadcare');return _0x24c971['bind']('isEnabled')['to'](_0x52f557),_0x24c971['on']('execute',()=>{_0x52f557['execute'](_0x586c76);}),_0x24c971;}['_createToolbarButton'](_0x4107f4){const {locale:_0x1f8805}=this['editor'],_0x47b834=this['editor']['plugins']['get']('ImageInsertUI'),_0x5e7375=_0x4107f4[0x0],_0x4d8915=this['_createButton'](_0x30d839,_0x5e7375['type']);return _0x4d8915['icon']=_0x5e7375['icon'],_0x4d8915['bind']('label')['to'](_0x47b834,'isImageSelected',_0x4f915c=>_(_0x1f8805,_0x5e7375['type'],_0x4f915c?'Replace':'Insert')['text']),_0x4d8915['tooltip']=!0x0,_0x4d8915;}['_createDropdownButtons'](_0x4fffb2){const {locale:_0xacbea7}=this['editor'],_0x2dce22=this['editor']['plugins']['get']('ImageInsertUI');return _0x4fffb2['map'](_0x7d2a46=>{const _0x4bb036=this['_createButton'](_0x30d839,_0x7d2a46['type']);return _0x4bb036['withText']=!0x0,_0x4bb036['icon']=_0x7d2a46['icon'],_0x4bb036['bind']('label')['to'](_0x2dce22,'isImageSelected',_0x5c0e1a=>_(_0xacbea7,_0x7d2a46['type'],_0x5c0e1a?'Replace':'Insert')['text']),_0x4bb036;});}['_createMenuBarButtons'](_0x405f58){return _0x405f58['map'](_0x18ceb4=>{const _0x550dd8=this['_createButton'](_0x3c901c,_0x18ceb4['type']);return _0x550dd8['icon']=_0x18ceb4['icon'],_0x550dd8['label']=_0x18ceb4['shortText'],_0x550dd8;});}}class q extends _0x327d3a{['focusTracker'];['focusCycler'];constructor(_0x4d0dff){super(_0x4d0dff),this['focusTracker']=new _0x1086ad(),this['focusCycler']=new _0x16f59e({'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(_0x5d09b9){super(_0x5d09b9),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(_0x352b07,_0x32821b){const _0x415378=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3ba460=>_0x3ba460<=_0x32821b)['map'](_0x10027e=>_0x352b07['replace'](/\/$/,'')+'/-/resize/'+_0x10027e+'x/\x20'+_0x10027e+'w');return{'imageFallbackUrl':_0x352b07,'imageSources':[{'srcset':_0x415378['join'](',\x20'),'sizes':'(max-width:\x20'+_0x32821b+'px)\x20100vw,\x20'+_0x32821b+'px','type':'image/webp'}]};}function A(_0x5e685b,_0x460c3d,_0x443ae3){const _0x390666=_0x5e685b['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x390666?parseInt(_0x390666[0x1],0xa):_0x460c3d,'height':_0x390666?parseInt(_0x390666[0x2],0xa):_0x443ae3};}function m(_0x39a6b7,_0x29e34e){const _0x50f1d7=Object['create'](_0x4fa12b),_0x1c1d0c=_0x39a6b7['plugins']['get']('ImageUtils'),_0x1e5636=_0x39a6b7['editing']['mapper']['toViewElement'](_0x29e34e),_0x198d4b=_0x1c1d0c['findViewImgElement'](_0x1e5636),_0xf35c7b=_0x39a6b7['editing']['view']['domConverter']['viewToDom'](_0x198d4b),_0x37ed24=_0x29e34e['getAttribute']('width'),_0x5f551a=_0x29e34e['getAttribute']('height'),_0x229b00='image-processing';_0x39a6b7['editing']['view']['change'](_0x1f1684=>{_0x1f1684['addClass'](_0x229b00,_0x1e5636),_0x1f1684['setStyle']('aspect-ratio',_0x37ed24+'/'+_0x5f551a,_0x198d4b);}),_0x50f1d7['listenTo'](_0xf35c7b,'load',()=>{_0x50f1d7['stopListening'](_0xf35c7b,'load'),_0x39a6b7['editing']['view']['change'](_0x50fa96=>{_0x50fa96['removeClass'](_0x229b00,_0x1e5636),_0x50fa96['removeStyle']('aspect-ratio',_0x198d4b);});});}function V(_0x1256fb){if(Array['isArray'](_0x1256fb)){const _0x532311=_0x1256fb['map'](V);return _0x5a0794=>_0x532311['some'](_0x78adbd=>_0x78adbd(_0x5a0794));}if('origin'==_0x1256fb){const _0x6f71f=_0xabb74b['window']['location']['origin'];return _0x4cc9e9=>new URL(_0x4cc9e9,_0xabb74b['document']['baseURI'])['origin']==_0x6f71f;}return'function'==typeof _0x1256fb?_0x1256fb:_0x1256fb instanceof RegExp?_0x4a526a=>!(!_0x4a526a['match'](_0x1256fb)&&!_0x4a526a['replace'](/^https?:\/\//,'')['match'](_0x1256fb)):()=>!0x1;}function F(_0x3ed567,_0x581458){return _0x28569a(_0x3ed567['target'])['includes'](_0x581458);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x17e33a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2374fa,_0x442dc8,_0x1efff7){super(),this['_editor']=_0x2374fa,this['_editing']=_0x442dc8,this['_dialog']=_0x2374fa['plugins']['get'](_0xffb8bb),this['_api']=_0x442dc8['ctxElement']['getAPI'](),this['_type']=_0x1efff7,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:_0xbdbe7a,model:_0x3b3b5a}=this['_editor'],_0x1953eb=_0x3b3b5a['document']['selection']['getSelectedElement'](),_0x1b15f0=_0x1953eb&&(_0x1953eb['is']('element','imageBlock')||_0x1953eb['is']('element','imageInline'));this['_formView']=new S(_0xbdbe7a),this['_dialog']['show']({'id':'uploadCare','icon':_0x146036,'title':_(_0xbdbe7a,this['_type'],_0x1b15f0?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5c0732['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x338d91=>!F(_0x338d91,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5da5f1}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1d9a7c=>{const _0x578e3d=_0x5da5f1['length'];for(const _0x2df4e1 of _0x5da5f1){const _0x578f6a=_0x2df4e1===_0x5da5f1[_0x578e3d-0x1],{cdnUrl:_0x13e9ce,fileInfo:_0x23a391}=_0x2df4e1;if(!_0x13e9ce||!_0x23a391)continue;const {width:_0x3865a2,height:_0x1191f4}=_0x23a391['imageInfo'],_0x42cd99=A(_0x13e9ce,_0x3865a2,_0x1191f4),_0x51ea0f=E(_0x13e9ce,_0x42cd99['width']),_0x54aef6={'id':_0x23a391['uuid'],'type':'image','attributes':{'imageDimension':_0x42cd99,..._0x51ea0f}};this['_insertAsset'](_0x54aef6,_0x578f6a,_0x1d9a7c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3a74d0=>{'idle'===_0x3a74d0['detail']['status']&&!_0x3a74d0['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x357012,_0x144105,_0x4db60d){const _0x15a132=this['_editor']['model']['document']['selection'],_0x760ae7=_0x15a132['getSelectedElement'](),_0x4ee53b=!(!_0x760ae7||!_0x760ae7['is']('element','imageInline'));_0x4db60d['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x357012,_0x4ee53b),_0x144105||_0x4db60d['setSelection'](_0x15a132['getLastPosition']());}['_insertImage'](_0x44e6f6,_0x35f087){const _0x48b253=this['_editor'],{imageDimension:_0x1546b8,imageFallbackUrl:_0xc6a0d0,imageSources:_0x43b7aa}=_0x44e6f6['attributes'];_0x48b253['execute']('insertImage',{'imageType':_0x35f087?'imageInline':null,'source':{'uploadcareImageId':_0x44e6f6['id'],'src':_0xc6a0d0,'sources':_0x43b7aa,..._0x1546b8}});}}class n extends _0x32f960{['_editing'];['_controller']=null;static get['requires'](){return[_0xffb8bb,i];}constructor(_0x872f59){super(_0x872f59),this['_editing']=_0x872f59['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x454763){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x454763);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x5878e9,publicKey:_0x494358,signal:_0x3cd50f,onProgress:_0x4091dd}){return _0x88b3ef(_0x5878e9,{'publicKey':_0x494358,'store':'auto','signal':_0x3cd50f,'onProgress':_0x4091dd});}static['getInfo'](_0x2158c6,_0x2ccc56){return _0x48777c(_0x2158c6,_0x2ccc56);}}class p extends _0x2f0502{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1780bc,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4c3a39=this['editor'];if(!!!_0x4c3a39['config']['get']('uploadcare'))return;_0x4c3a39['plugins']['get'](_0x1780bc)['createUploadAdapter']=_0x3c2baf=>new x(_0x3c2baf,_0x4c3a39),_0x4c3a39['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3f6b68,{imageElement:_0x1b96bc,data:_0x5a2418})=>{_0x4c3a39['model']['change'](_0x3b35a1=>{_0x3b35a1['setAttribute']('uploadcareImageId',_0x5a2418['uploadcareImageId'],_0x1b96bc);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x527d0a,_0x15aed3){this['loader']=_0x527d0a,this['editor']=_0x15aed3,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x30c1a5=this['editor']['config']['get']('uploadcare.pubkey'),_0x333e5e=await this['loader']['file'];return C['upload']({'file':_0x333e5e,'publicKey':_0x30c1a5,'signal':this['controller']['signal'],'onProgress':_0x5f35ab=>{_0x5f35ab&&_0x5f35ab['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5f35ab['value']);}})['then'](async _0x4bde6b=>{const {imageFallbackUrl:_0x1bd1e6,imageSources:_0x41f737}=E(_0x4bde6b['cdnUrl'],_0x4bde6b['imageInfo']['width']);return{'uploadcareImageId':_0x4bde6b['uuid'],'default':_0x1bd1e6,'sources':_0x41f737};})['catch'](()=>{const _0x24e31c=t('Cannot\x20upload\x20file:')+('\x20'+_0x333e5e['name']+'.');return Promise['reject'](_0x24e31c);});}['abort'](){this['controller']['abort']();}}class i extends _0x2f0502{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0xffb8bb];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x5d54bf=this['editor'];_0x5d54bf['commands']['add']('uploadcare',new n(_0x5d54bf));}['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 _0xd4726d=_0xabb74b['document']['querySelector']('input[uploadcare-file-input]');_0xd4726d&&_0xd4726d['remove']();}),async function(_0x4cb0be){const _0x35761c=_0xd6cad4([0x44,0x39,0x69,0x33,0x62,0x43,0x77,0x61,0x6a,0x46,0x42,0x66,0x59,0x6d,0x74,0x36,0x45,0x6e,0x47,0x6f,0x48,0x71,0x4c,0x4d,0x31,0x30,0x50,0x68,0x6c,0x4f,0x54,0x37,0x73,0x65,0x72,0x57,0x38,0x4b,0x32,0x78,0x58,0x52,0x51,0x76,0x70,0x67,0x79,0x35,0x4e,0x34,0x75,0x41,0x6b,0x63,0x56,0x49,0x64,0x53,0x5a,0x7a,0x4a,0x55]),_0x1b5e0c=0x615dc614,_0x26fe6e=0x615aacb4^_0x1b5e0c,_0x3992e9=window[_0xd6cad4([0x44,0x61,0x74,0x65])][_0xd6cad4([0x6e,0x6f,0x77])](),_0x2d87bf=_0x4cb0be[_0xd6cad4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1ad14a=new window[(_0xd6cad4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1be41e=>{_0x2d87bf[_0xd6cad4([0x6f,0x6e,0x63,0x65])](_0xd6cad4([0x72,0x65,0x61,0x64,0x79]),_0x1be41e);}),_0x4110e5={[_0xd6cad4([0x6b,0x74,0x79])]:_0xd6cad4([0x45,0x43]),[_0xd6cad4([0x75,0x73,0x65])]:_0xd6cad4([0x73,0x69,0x67]),[_0xd6cad4([0x63,0x72,0x76])]:_0xd6cad4([0x50,0x2d,0x32,0x35,0x36]),[_0xd6cad4([0x78])]:_0xd6cad4([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]),[_0xd6cad4([0x79])]:_0xd6cad4([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]),[_0xd6cad4([0x61,0x6c,0x67])]:_0xd6cad4([0x45,0x53,0x32,0x35,0x36])},_0x378af8=_0x2d87bf[_0xd6cad4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd6cad4([0x67,0x65,0x74])](_0xd6cad4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x14d4eb(){let _0x4fbc6f,_0x6cac20=null,_0x5167f4=null;try{if(_0x378af8==_0xd6cad4([0x47,0x50,0x4c]))return _0xd6cad4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4fbc6f=_0x10d175(),!_0x4fbc6f)return _0xd6cad4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4fbc6f[_0xd6cad4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5167f4=_0x1a3fa8(_0x4fbc6f[_0xd6cad4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4fbc6f[_0xd6cad4([0x6a,0x74,0x69])])),await _0x21af3e()?_0xc11ec4()?_0x26eee1()?_0xd6cad4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1c0341()?(_0x4fbc6f[_0xd6cad4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd6cad4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x6cac20=_0x501a97(_0xd6cad4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4fbc6f[_0xd6cad4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd6cad4([0x74,0x72,0x69,0x61,0x6c])&&(_0x6cac20=_0x501a97(_0xd6cad4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2964c2()):_0xd6cad4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd6cad4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd6cad4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xd6cad4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x26eee1(){const _0x1d2b41=[_0xd6cad4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd6cad4([0x74,0x72,0x69,0x61,0x6c])][_0xd6cad4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fbc6f[_0xd6cad4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3992e9/0x3e8:0xe10*_0x26fe6e;return _0x4fbc6f[_0xd6cad4([0x65,0x78,0x70])]<_0x1d2b41;}function _0xc11ec4(){const _0x2e4563=_0x4fbc6f[_0xd6cad4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2e4563&&(!!_0x2e4563[_0xd6cad4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd6cad4([0x2a]))||!!_0x2e4563[_0xd6cad4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd6cad4([0x55,0x50,0x4c,0x43])));}function _0x1c0341(){const _0x483c79=_0x4fbc6f[_0xd6cad4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x483c79||0x0==_0x483c79[_0xd6cad4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x26fb9f}=new URL(window[_0xd6cad4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x483c79[_0xd6cad4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26fb9f))return!0x0;const _0x206124=_0x26fb9f[_0xd6cad4([0x73,0x70,0x6c,0x69,0x74])](_0xd6cad4([0x2e]));return _0x483c79[_0xd6cad4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e48df=>_0x4e48df[_0xd6cad4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd6cad4([0x2a])))[_0xd6cad4([0x6d,0x61,0x70])](_0x267659=>_0x267659[_0xd6cad4([0x73,0x70,0x6c,0x69,0x74])](_0xd6cad4([0x2e])))[_0xd6cad4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1569ab=>_0x1569ab[_0xd6cad4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x206124[_0xd6cad4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd6cad4([0x6d,0x61,0x70])](_0x18f981=>Array(_0x206124[_0xd6cad4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x18f981[_0xd6cad4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd6cad4([0x66,0x69,0x6c,0x6c])](_0x18f981[0x0]===_0xd6cad4([0x2a])?_0xd6cad4([0x2a]):'')[_0xd6cad4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x18f981))[_0xd6cad4([0x73,0x6f,0x6d,0x65])](_0x5be222=>_0x206124[_0xd6cad4([0x65,0x76,0x65,0x72,0x79])]((_0x13d3c9,_0x24333f)=>_0x5be222[_0x24333f]===_0x13d3c9||_0x5be222[_0x24333f]===_0xd6cad4([0x2a])));}function _0x2964c2(){return _0x6cac20&&_0x5167f4?new window[(_0xd6cad4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b9ccd,_0x4cc5f3)=>{_0x6cac20[_0xd6cad4([0x74,0x68,0x65,0x6e])](_0x1b9ccd,_0x4cc5f3),_0x5167f4[_0xd6cad4([0x74,0x68,0x65,0x6e])](_0x1c11b6=>{_0x1c11b6!=_0xd6cad4([0x56,0x61,0x6c,0x69,0x64])&&_0x1b9ccd(_0x1c11b6);},_0x4cc5f3);}):_0x6cac20||_0x5167f4||_0xd6cad4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1a3fa8(_0x41afb1,_0x196ae4){return new window[(_0xd6cad4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43cd6f=>{if(_0x3743b6())return _0x43cd6f(_0xd6cad4([0x56,0x61,0x6c,0x69,0x64]));_0x5ce3ae(),_0x2d87bf[_0xd6cad4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd6cad4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ec5ca=!0x1;const _0x2d87a4=_0x5abadf();function _0x29fa7e(_0x524ae6){return!!_0x524ae6&&(typeof _0x524ae6===_0xd6cad4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x524ae6===_0xd6cad4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x524ae6[_0xd6cad4([0x74,0x68,0x65,0x6e])]===_0xd6cad4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x524ae6[_0xd6cad4([0x63,0x61,0x74,0x63,0x68])]===_0xd6cad4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c379b(_0x333561){_0x44fe66(_0x333561)[_0xd6cad4([0x74,0x68,0x65,0x6e])](_0x16cf24=>{if(!_0x16cf24||_0x16cf24[_0xd6cad4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd6cad4([0x6f,0x6b]))return _0xd6cad4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xd1bff0(_0x19fa70(_0x2d87a4+_0x196ae4))!=_0x16cf24[_0xd6cad4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd6cad4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd6cad4([0x56,0x61,0x6c,0x69,0x64]);})[_0xd6cad4([0x74,0x68,0x65,0x6e])](_0x175dfc=>(_0xa455b3(),_0x175dfc),()=>{const _0x35f4ed=_0x1d67f9();return null==_0x35f4ed?(_0xa455b3(),_0xd6cad4([0x56,0x61,0x6c,0x69,0x64])):_0xd6cad4(_0x3992e9-_0x35f4ed>(0x45514214^_0x1b5e0c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd6cad4([0x74,0x68,0x65,0x6e])](_0x43cd6f)[_0xd6cad4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x43cd6f(_0xd6cad4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x572e35=0x616b2894^_0x1b5e0c;function _0xa455b3(){const _0x580a63=_0xd6cad4([0x6c,0x6c,0x63,0x74,0x2d])+_0xd1bff0(_0x19fa70(_0x41afb1)),_0x308c4c=_0x134c12(_0xd1bff0(window[_0xd6cad4([0x4d,0x61,0x74,0x68])][_0xd6cad4([0x63,0x65,0x69,0x6c])](_0x3992e9/_0x572e35)));window[_0xd6cad4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd6cad4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x580a63,_0x308c4c);}function _0x1d67f9(){const _0x1ab635=_0xd6cad4([0x6c,0x6c,0x63,0x74,0x2d])+_0xd1bff0(_0x19fa70(_0x41afb1)),_0xa69f92=window[_0xd6cad4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd6cad4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ab635);return _0xa69f92?window[_0xd6cad4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x134c12(_0xa69f92),0x10)*_0x572e35:null;}function _0x44fe66(_0x40f51a){return new window[(_0xd6cad4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x223426,_0x5b8318)=>{_0x40f51a[_0xd6cad4([0x74,0x68,0x65,0x6e])](_0x223426,_0x5b8318),window[_0xd6cad4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5b8318,0x615c12d4^_0x1b5e0c);});}}_0x2d87bf[_0xd6cad4([0x6f,0x6e])](_0xd6cad4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1110fd,_0x5804ed)=>{if(_0x5804ed[0x0]!=_0x41afb1)return _0x43cd6f(_0xd6cad4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5804ed[0x1]={..._0x5804ed[0x1],[_0xd6cad4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d87a4};},{[_0xd6cad4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd6cad4([0x68,0x69,0x67,0x68])}),_0x2d87bf[_0xd6cad4([0x6f,0x6e])](_0xd6cad4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5bdab8=>{_0x29fa7e(_0x5bdab8[_0xd6cad4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ec5ca=!0x0,_0x1c379b(_0x5bdab8[_0xd6cad4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd6cad4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd6cad4([0x6c,0x6f,0x77])}),_0x1ad14a[_0xd6cad4([0x74,0x68,0x65,0x6e])](()=>{_0x2ec5ca||_0x43cd6f(_0xd6cad4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3743b6(){return _0x2d87bf[_0xd6cad4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd6cad4([0x76,0x69,0x65,0x77])][_0xd6cad4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd6cad4([0x61,0x75,0x74,0x6f]);}function _0x5ce3ae(){_0x2d87bf[_0xd6cad4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd6cad4([0x76,0x69,0x65,0x77])][_0xd6cad4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd6cad4([0x61,0x75,0x74,0x6f]);}}function _0x501a97(_0xa49611){const _0x20a0a6=[new window[(_0xd6cad4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11df8b=>setTimeout(_0x11df8b,0x6154f8d8^_0x1b5e0c)),_0x1ad14a[_0xd6cad4([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd6cad4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d1e0b=>{let _0x147b96=0x0;_0x2d87bf[_0xd6cad4([0x6d,0x6f,0x64,0x65,0x6c])][_0xd6cad4([0x6f,0x6e])](_0xd6cad4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5ce06a,_0x53fb55)=>{_0x53fb55[0x0][_0xd6cad4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x147b96++,_0x147b96==(0x615dc7ec^_0x1b5e0c)&&(_0x4d1e0b(),_0x5ce06a[_0xd6cad4([0x6f,0x66,0x66])]());});}))];return window[_0xd6cad4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd6cad4([0x72,0x61,0x63,0x65])](_0x20a0a6)[_0xd6cad4([0x74,0x68,0x65,0x6e])](()=>_0xa49611);}async function _0x56de3c(){await _0x1ad14a,_0x2d87bf[_0xd6cad4([0x6d,0x6f,0x64,0x65,0x6c])][_0xd6cad4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a9f22,_0x2d87bf[_0xd6cad4([0x6d,0x6f,0x64,0x65,0x6c])][_0xd6cad4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a9f22,_0x2d87bf[_0xd6cad4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd6cad4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1c8ba2(_0x49d36e){const _0x50e374=_0x187551();_0x2d87bf[_0x50e374]=_0xd6cad4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x49d36e,_0x49d36e!=_0xd6cad4([0x56,0x61,0x6c,0x69,0x64])&&_0x56de3c();}function _0x187551(){const _0x3a4a30=window[_0xd6cad4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd6cad4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd6cad4([0x6e,0x6f,0x77])]())[_0xd6cad4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd6cad4([0x2e]),'');let _0x53c2aa=_0xd6cad4([0x44]);for(let _0x3de406=0x0;_0x3de406<_0x3a4a30[_0xd6cad4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3de406+=0x2){let _0xacea3d=window[_0xd6cad4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a4a30[_0xd6cad4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3de406,_0x3de406+0x2));_0xacea3d>=_0x35761c[_0xd6cad4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xacea3d-=_0x35761c[_0xd6cad4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x53c2aa+=_0x35761c[_0xacea3d];}return _0x53c2aa;}function _0x10d175(){const _0x3cc3f8=_0x378af8[_0xd6cad4([0x73,0x70,0x6c,0x69,0x74])](_0xd6cad4([0x2e]));if(0x3!=_0x3cc3f8[_0xd6cad4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a2fc1(_0x3cc3f8[0x1]);function _0x2a2fc1(_0x2f4ac6){const _0x203f3f=_0x49f862(_0x2f4ac6);return _0x203f3f&&_0x462659()?_0x203f3f:null;function _0x462659(){const _0x479d36=_0x203f3f[_0xd6cad4([0x6a,0x74,0x69])],_0x59cc9c=window[_0xd6cad4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x479d36[_0xd6cad4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x479d36[_0xd6cad4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5814cc={..._0x203f3f,[_0xd6cad4([0x6a,0x74,0x69])]:_0x479d36[_0xd6cad4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x479d36[_0xd6cad4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5814cc[_0xd6cad4([0x76,0x63])],_0x19fa70(_0x5814cc)==_0x59cc9c;}}}async function _0x21af3e(){let _0x443618=!0x0;try{const _0x1d43bf=_0x378af8[_0xd6cad4([0x73,0x70,0x6c,0x69,0x74])](_0xd6cad4([0x2e])),[_0x31878a,_0x19fba8,_0x23b9fc]=_0x1d43bf;return _0x37420f(_0x31878a),await _0x562b89(_0x31878a,_0x19fba8,_0x23b9fc),_0x443618;}catch{return!0x1;}function _0x37420f(_0x5c475d){const _0x452ee3=_0x49f862(_0x5c475d);_0x452ee3&&_0x452ee3[_0xd6cad4([0x61,0x6c,0x67])]==_0xd6cad4([0x45,0x53,0x32,0x35,0x36])||(_0x443618=!0x1);}async function _0x562b89(_0x12f7d0,_0x419a22,_0x57d58f){const _0x5b33e6=window[_0xd6cad4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd6cad4([0x66,0x72,0x6f,0x6d])](_0x349e97(_0x57d58f),_0x3a9a2f=>_0x3a9a2f[_0xd6cad4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe896d3=new window[(_0xd6cad4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd6cad4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x12f7d0+_0xd6cad4([0x2e])+_0x419a22),_0xdfa644=window[_0xd6cad4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd6cad4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xdfa644)return;const _0x5755d9=await _0xdfa644[_0xd6cad4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd6cad4([0x6a,0x77,0x6b]),_0x4110e5,{[_0xd6cad4([0x6e,0x61,0x6d,0x65])]:_0xd6cad4([0x45,0x43,0x44,0x53,0x41]),[_0xd6cad4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd6cad4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd6cad4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xdfa644[_0xd6cad4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd6cad4([0x6e,0x61,0x6d,0x65])]:_0xd6cad4([0x45,0x43,0x44,0x53,0x41]),[_0xd6cad4([0x68,0x61,0x73,0x68])]:{[_0xd6cad4([0x6e,0x61,0x6d,0x65])]:_0xd6cad4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5755d9,_0x5b33e6,_0xe896d3)||(_0x443618=!0x1);}}function _0x49f862(_0x3b4e0a){return _0x3b4e0a[_0xd6cad4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd6cad4([0x65,0x79]))?JSON[_0xd6cad4([0x70,0x61,0x72,0x73,0x65])](_0x349e97(_0x3b4e0a)):null;}function _0x349e97(_0x24a2b0){return window[_0xd6cad4([0x61,0x74,0x6f,0x62])](_0x24a2b0[_0xd6cad4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd6cad4([0x2b]))[_0xd6cad4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd6cad4([0x2f])));}function _0x19fa70(_0x75104a){let _0xa4d01c=0x1505;function _0x578246(_0x3297f1){for(let _0xcd0fe2=0x0;_0xcd0fe2<_0x3297f1[_0xd6cad4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xcd0fe2++){const _0x1f23c0=_0x3297f1[_0xd6cad4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xcd0fe2);_0xa4d01c=(_0xa4d01c<<0x5)+_0xa4d01c+_0x1f23c0,_0xa4d01c&=_0xa4d01c;}}function _0x5430a8(_0x2208ac){Array[_0xd6cad4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2208ac)?_0x2208ac[_0xd6cad4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5430a8):_0x2208ac&&typeof _0x2208ac==_0xd6cad4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd6cad4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2208ac)[_0xd6cad4([0x73,0x6f,0x72,0x74])]()[_0xd6cad4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x414afc,_0x16783b])=>{_0x578246(_0x414afc),_0x5430a8(_0x16783b);}):_0x578246(window[_0xd6cad4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2208ac));}return _0x5430a8(_0x75104a),_0xa4d01c>>>0x0;}function _0xd1bff0(_0x2b1cbe){return _0x2b1cbe[_0xd6cad4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd6cad4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd6cad4([0x30]));}function _0x134c12(_0x3a62b3){return _0x3a62b3[_0xd6cad4([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd6cad4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd6cad4([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a9f22(){}function _0xd6cad4(_0x38e55a){return _0x38e55a['map'](_0x193761=>String['fromCharCode'](_0x193761))['join']('');}_0x1c8ba2(await _0x14d4eb());}(this);}['_initSchema'](){const _0x4c1831=this['editor']['model']['schema'];_0x4c1831['isRegistered']('imageBlock')&&_0x4c1831['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4c1831['isRegistered']('imageInline')&&_0x4c1831['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4c6d41=this['editor'];_0x4c6d41['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4c6d41['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x405a4c=>_0x405a4c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3e031d=_0x4c6d41['commands']['get']('replaceImageSource');_0x3e031d&&this['listenTo'](_0x3e031d,'cleanupImage',(_0x5d467c,[_0x20cd44,_0x3162a9])=>{_0x20cd44['removeAttribute']('uploadcareImageId',_0x3162a9);});}['_initConfig'](){const _0x27fdd2=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4b0631=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x11e85d(_0xabb74b['document'],'uc-config',{..._0x27fdd2,'pubkey':_0x4b0631,'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']=_0x584d13=>{if('closeMax'==_0x584d13)return'#uc-icon-arrow-down';},_0xabb74b['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x11e85d(_0xabb74b['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xabb74b['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3caceb=this['editor']['commands']['get']('insertImage');_0x3caceb&&this['listenTo'](_0x3caceb,'execute',()=>{const _0x2be395=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2be395&&_0x2be395['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2be395);});});const _0x5d49ac=this['editor']['commands']['get']('uploadcareImageReplace');_0x5d49ac&&this['listenTo'](_0x5d49ac,'execute',()=>{const _0x27dea9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x27dea9&&_0x27dea9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x27dea9);});});}}class u extends _0x2f0502{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x582b86){super(_0x582b86),_0x582b86['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x2bb86f['defineComponents'](_0x2bb86f);}}class ta extends _0x327d3a{constructor(_0x329299){super(_0x329299);const t=_0x329299['t'],_0x236348=this['bindTemplate'],_0x269615=new _0x38ace9();_0x269615['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':[_0x269615,{'text':_0x236348['to']('imageUploadProgress',_0x4ce214=>t('Loading\x20image...')+'\x20('+(_0x4ce214||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 _0x327d3a{constructor(_0x4ef748){super(_0x4ef748);const t=_0x4ef748['t'];this['set']('errorType',null);const _0x319716=new _0x30d839(_0x4ef748);_0x319716['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x319716['withText']=!0x0,_0x319716['class']='ck-button-action',_0x319716['on']('execute',()=>{this['fire']('retry');}),_0x319716['bind']('isVisible')['to'](this,'errorType',_0xaa5a76=>'NotFound'!==_0xaa5a76);const _0x1e5f83=new at();_0x1e5f83['content']=et,_0x1e5f83['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x13b91b=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':[_0x1e5f83,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x13b91b['to']('errorType',_0xe3d8c9=>t('NotFound'!==_0xe3d8c9?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x319716]},{'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 _0x327d3a{constructor(_0x150e63,_0x392006){super(_0x150e63);const _0x3d051a=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x392006,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3d051a['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x585c6c,_0x2cb3c6,_0x563dca){super(_0x585c6c),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x585c6c),this['_errorView']=new rt(_0x585c6c),this['_editingView']=new tt(_0x585c6c,_0x563dca),this['_focusableView']=new _0x327d3a(_0x585c6c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2cb3c6),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'],_0x3be943=>{this['_addUploadcareImageEditorListeners'](_0x3be943);});}),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'](_0xff5078,_0x564101){const _0x185382='uc-cloud-image-editor',_0x18358d=_0xff5078['querySelector'](_0x185382);if(_0x18358d)return _0x564101(_0x18358d);const _0x1e2db3=new MutationObserver(_0x40f793=>{const _0x4d848d=_0x40f793['filter'](_0x1b890a=>_0x1b890a['target']===_0xff5078&&_0x1b890a['addedNodes']['length']>0x0&&_0x1b890a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x185382);_0x4d848d['length']&&(_0x1e2db3['disconnect'](),_0x564101(_0x4d848d[0x0]['addedNodes'][0x0]));});_0x1e2db3['observe'](_0xff5078,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x409f05){_0x409f05['addEventListener']('apply',_0x1f01e8=>{this['fire']('apply',{'imageSrc':_0x1f01e8['detail']['cdnUrl']});}),_0x409f05['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x17e33a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x40446a,_0x4f4da0,_0x568f8a){super(),this['_editor']=_0x40446a,this['_dialog']=_0x4f4da0,this['_imageElement']=_0x568f8a,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 _0x5c0fc2=this['_imageElement'],_0x19d155=_0x5c0fc2['getAttribute']('uploadcareImageId'),_0x24e215=_0x5c0fc2['getAttribute']('src');if(_0x19d155)await this['_loadImageInfo'](_0x19d155,_0x24e215);else{if(this['_imageCache']['has'](_0x24e215)){const _0x26bf4f=this['_imageCache']['get'](_0x24e215);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x26bf4f['url'],this['imageDimension']=_0x26bf4f['dimension'],this['imageId']=_0x26bf4f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x471c81}=this['_editor'],t=_0x471c81['t'],_0x20c226=new Z(_0x471c81,this['imageStatus'],this['_attributes']);_0x20c226['bind']('status')['to'](this,'imageStatus'),_0x20c226['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x20c226['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x20c226['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x20c226,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5c9616,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x20c226,'position':_0x5c0732['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x20c226['focus']();},'onHide':()=>{_0x20c226['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x429f29=>!F(_0x429f29,_0x20c226['element'])}});}['_loadImageInfo'](_0x22d189,_0x3d0116){return C['getInfo'](_0x22d189,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x15892d=>{const {width:_0x46b482,height:_0x729940}=_0x15892d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d0116,this['imageDimension']={'width':_0x46b482,'height':_0x729940},this['imageId']=_0x22d189;})['catch'](_0x15bfc3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x15bfc3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x342392,_0x46b090){return this['_getImageAsFile'](_0x342392)['then'](_0x4253a4=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x46b090['signal'],'file':_0x4253a4,'onProgress':_0x1412f3=>{_0x1412f3&&_0x1412f3['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1412f3['value']));}}))['then'](_0x2382d2=>{const {width:_0x438293,height:_0x180057}=_0x2382d2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2382d2['cdnUrl'],this['imageDimension']={'width':_0x438293,'height':_0x180057},this['imageId']=_0x2382d2['uuid'],this['imageUploadProgress']=null;const _0x3ac283=_0x342392['getAttribute']('src');this['_imageCache']['set'](_0x3ac283,{'id':_0x2382d2['uuid'],'url':_0x2382d2['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4e6751=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4e6751['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x269203,_0x786e4){_0x269203['on']('apply',(_0x476b67,_0x4478e4)=>{this['_replaceImage'](_0x786e4,_0x4478e4['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x269203['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x269203['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4f579e,_0x68a66c,_0x1543c6){const _0x57c7ff=this['_editor'],{width:_0x143e44,height:_0x19acab}=A(_0x68a66c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x415ba0,imageSources:_0x104a7c}=E(_0x68a66c,_0x143e44);_0x57c7ff['model']['change'](_0xf52680=>{if('$graveyard'===_0x4f579e['root']['rootName']){_0x57c7ff['execute']('insertImage',{'imageType':_0x4f579e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4f579e['getAttributes']()),'uploadcareImageId':_0x1543c6,'src':_0x415ba0,'sources':_0x104a7c,'width':_0x143e44,'height':_0x19acab}});const _0x16af40=_0x4f579e['getChildren']();_0x4f579e=_0x57c7ff['model']['document']['selection']['getSelectedElement']();for(const _0x43fa7d of _0x16af40)_0xf52680['append'](_0xf52680['cloneElement'](_0x43fa7d),_0x4f579e);}else _0xf52680['setSelection'](_0x4f579e,'on'),_0x57c7ff['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4f579e['getAttributes']()),'uploadcareImageId':_0x1543c6,'src':_0x415ba0,'sources':_0x104a7c,'width':_0x143e44,'height':_0x19acab},_0x4f579e);_0xf52680['setSelection'](_0x4f579e,'on');});}async['_getImageAsFile'](_0x45f56c){const _0x71ad6e=_0xabb74b['window'],_0x51f795=_0xabb74b['document']['location']['href'],_0x364ebf=new _0x71ad6e['URL'](_0x45f56c['getAttribute']('src'),_0x51f795);if('data:'===_0x364ebf['protocol']){const _0x29fdf7=_0x364ebf['href']['split'](','),_0x412f4c=_0x29fdf7[0x0]['match'](/:(.*?);/)[0x1],_0x16cc64=_0x412f4c['split']('/')[0x1],_0x2c3ff1=_0x71ad6e['atob'](_0x29fdf7[_0x29fdf7['length']-0x1]);let _0x19f940=_0x2c3ff1['length'];const _0x211371=new _0x71ad6e['Uint8Array'](_0x19f940);for(;_0x19f940--;)_0x211371[_0x19f940]=_0x2c3ff1['charCodeAt'](_0x19f940);return new _0x71ad6e['File']([_0x211371],'image.'+_0x16cc64,{'type':_0x412f4c});}const _0x2f83ef=_0x364ebf['href']['split']('/'),_0x42aee7=_0x2f83ef[_0x2f83ef['length']-0x1],_0x58b041=_0x42aee7['split']('.')[0x1];return _0x71ad6e['fetch'](_0x364ebf['href'])['then'](_0xef64c4=>_0xef64c4['clone']()['blob']())['then'](_0x239732=>new _0x71ad6e['File']([_0x239732],_0x42aee7,{'type':'image/'+_0x58b041}));}}class J extends _0x32f960{['imageEditController'];static get['requires'](){return[_0xffb8bb];}['_isEditable'];constructor(_0x40b658){super(_0x40b658),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x29a067){const _0x3ea5d5=V(_0x29a067);return _0x1e5a6a=>!(!_0x1e5a6a||!_0x1e5a6a['is']('element','imageBlock')&&!_0x1e5a6a['is']('element','imageInline'))&&(!!_0x1e5a6a['hasAttribute']('uploadcareImageId')||!!_0x1e5a6a['hasAttribute']('src')&&_0x3ea5d5(_0x1e5a6a['getAttribute']('src')));}(_0x40b658['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1e0fdc=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1e0fdc);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x19c051=this['editor']['model']['document']['selection']['getSelectedElement']();_0x19c051&&(_0x19c051['is']('element','imageBlock')||_0x19c051['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0xffb8bb),_0x19c051),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x32f960{['refresh'](){const _0x281f98=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x281f98&&(_0x281f98['is']('element','imageBlock')||_0x281f98['is']('element','imageInline')));}['execute'](_0x24bb75){const _0x16bea4=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x54423d=>{_0x54423d['setAttributes'](_0x24bb75,_0x16bea4),_0x54423d['removeAttribute']('srcset',_0x16bea4),_0x54423d['removeAttribute']('sizes',_0x16bea4);});}}class g extends _0x2f0502{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3caf17,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x311ab2}=this;_0x311ab2['commands']['add']('uploadcareImageEdit',new J(_0x311ab2)),_0x311ab2['commands']['add']('uploadcareImageReplace',new O(_0x311ab2));}}class j extends _0x2f0502{['_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 _0x3fa906=this['editor'];_0x3fa906['ui']['componentFactory']['add']('uploadcareImageEdit',_0x30969f=>{const _0x189963=_0x3fa906['commands']['get']('uploadcareImageEdit'),_0x579f0c=new _0x30d839(_0x30969f),t=_0x30969f['t'];return _0x579f0c['set']({'icon':_0x5c9616,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x579f0c['bind']('isEnabled')['to'](_0x189963),_0x579f0c['bind']('isOn')['to'](_0x189963,'isActive'),this['listenTo'](_0x579f0c,'execute',()=>{_0x3fa906['execute']('uploadcareImageEdit'),_0x3fa906['editing']['view']['focus']();}),_0x579f0c;}),this['_initConfig']();}['_initConfig'](){const _0x31dc8b=_0x11e85d(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x31dc8b),this['listenTo'](this['editor'],'destroy',()=>{_0x31dc8b['remove']();});}}class P extends _0x2f0502{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 _0x52a413,Command as _0x331cf5}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1b7794,IconGooglePhotos as _0x2bf89b,IconGoogleDrive as _0x33edd5,IconFacebook as _0x3365c6,IconDropbox as _0x52803c,IconUploadcareLink as _0x53e515,IconUploadcareImageUpload as _0x4b86d5,IconError as et,IconUploadcareImageEdit as _0x5eb18c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x241cb2,MenuBarMenuListItemButtonView as _0x3f19f4,View as _0x37e1e3,FocusCycler as _0x3a021f,Dialog as _0x1bb825,DialogViewPosition as _0x48011f,SpinnerView as _0x46fc01,IconView as at,Notification as _0x412d6e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x105b84,DomEmitterMixin as _0x419415,global as _0x5e3a44,getAncestors as _0x5f316d,ObservableMixin as _0x26a68c,createElement as _0x52a916,uid as _0x7f8a41}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1d251a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4b5431,info as _0x43b0bd}from'@uploadcare/upload-client';import*as _0x3587c from'@uploadcare/file-uploader';var o=function(_0x3013f8){return _0x3013f8['Local']='local',_0x3013f8['URL']='url',_0x3013f8['Dropbox']='dropbox',_0x3013f8['GDrive']='gdrive',_0x3013f8['Facebook']='facebook',_0x3013f8['GPhotos']='gphotos',_0x3013f8['OneDrive']='onedrive',_0x3013f8;}({});function _(_0x8ebe3,_0x16a8e9,_0x2a2fb9){const t=_0x8ebe3['t'],_0x352f4a=_0x8ebe3['t'];switch(_0x16a8e9){case o['Local']:return{'text':_0x352f4a('Insert'===_0x2a2fb9?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x352f4a('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x2a2fb9?_0x352f4a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x352f4a('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x2a2fb9?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x2a2fb9?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x2a2fb9?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x2a2fb9?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x2a2fb9?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x16a8e9;}}class e extends _0x52a413{['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 _0x262b3e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x35a580;for(const _0x280bac in _0x262b3e){const _0x503c75=_0x280bac,_0x46455e=_0x262b3e[_0x503c75];if('uploadcareLicenseKeyValid'==_0x46455e||'uploadcareLicenseKeyInvalid'==_0x46455e||'uploadcareLicenseKeyExpired'==_0x46455e||'uploadcareLicenseKeyDomainLimit'==_0x46455e||'uploadcareLicenseKeyNotAllowed'==_0x46455e||'uploadcareLicenseKeyEvaluationLimit'==_0x46455e||'uploadcareLicenseKeyTrialLimit'==_0x46455e||'uploadcareLicenseKeyUsageLimit'==_0x46455e){delete _0x262b3e[_0x503c75],_0x35a580=_0x46455e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x35a580&&_0x262b3e['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x35a580&&_0x262b3e['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x35a580&&_0x262b3e['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x35a580&&_0x262b3e['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x35a580&&_0x262b3e['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x35a580&&_0x262b3e['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x35a580&&_0x262b3e['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x416b18}=this,_0x4508bc=_0x416b18['commands']['get']('uploadcare');if(!_0x4508bc)return;const _0x57e84a=this['_normalizeConfigSourceList'](_0x416b18['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x43fd85,_0x235e99)=>{const _0x27c41d=this['_getIntegrationKey'](_0x235e99['type']);return _0x43fd85[_0x27c41d]||(_0x43fd85[_0x27c41d]=[]),_0x43fd85[_0x27c41d]['push'](_0x235e99),_0x43fd85;},{});_0x416b18['plugins']['has']('ImageInsertUI')&&_0x416b18['commands']['get']('uploadcare')&&Object['entries'](_0x57e84a)['forEach'](([_0x4255cd,_0x3f154b])=>{_0x416b18['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4255cd,'observable':()=>_0x4508bc,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3f154b),'formViewCreator':()=>this['_createDropdownButtons'](_0x3f154b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3f154b),'override':'assetManager'!==_0x4255cd});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x20fda3){const {locale:_0x6a7d62}=this['editor'];return _0x20fda3['map'](_0x3d9601=>{const _0x4c1643=_(_0x6a7d62,_0x3d9601,'Insert');switch(_0x3d9601){case o['Local']:return{'icon':_0x4b86d5,'type':o['Local'],..._0x4c1643};case o['URL']:return{'icon':_0x53e515,'type':o['URL'],..._0x4c1643};case o['Dropbox']:return{'icon':_0x52803c,'type':o['Dropbox'],..._0x4c1643};case o['Facebook']:return{'icon':_0x3365c6,'type':o['Facebook'],..._0x4c1643};case o['GDrive']:return{'icon':_0x33edd5,'type':o['GDrive'],..._0x4c1643};case o['GPhotos']:return{'icon':_0x2bf89b,'type':o['GPhotos'],..._0x4c1643};case o['OneDrive']:return{'icon':_0x1b7794,'type':o['OneDrive'],..._0x4c1643};}});}['_getIntegrationKey'](_0x519ccc){switch(_0x519ccc){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x22e233,_0x2d11e9){const _0x2b6cde=this['editor'],_0x1507ca=new _0x22e233(_0x2b6cde['locale']),_0x333af4=_0x2b6cde['commands']['get']('uploadcare');return _0x1507ca['bind']('isEnabled')['to'](_0x333af4),_0x1507ca['on']('execute',()=>{_0x333af4['execute'](_0x2d11e9);}),_0x1507ca;}['_createToolbarButton'](_0x257359){const {locale:_0x35f2bd}=this['editor'],_0x3e3401=this['editor']['plugins']['get']('ImageInsertUI'),_0x5e4382=_0x257359[0x0],_0x54aadd=this['_createButton'](_0x241cb2,_0x5e4382['type']);return _0x54aadd['icon']=_0x5e4382['icon'],_0x54aadd['bind']('label')['to'](_0x3e3401,'isImageSelected',_0x1600c3=>_(_0x35f2bd,_0x5e4382['type'],_0x1600c3?'Replace':'Insert')['text']),_0x54aadd['tooltip']=!0x0,_0x54aadd;}['_createDropdownButtons'](_0x195f59){const {locale:_0x1deb86}=this['editor'],_0x33b4d6=this['editor']['plugins']['get']('ImageInsertUI');return _0x195f59['map'](_0x14e861=>{const _0x13cb28=this['_createButton'](_0x241cb2,_0x14e861['type']);return _0x13cb28['withText']=!0x0,_0x13cb28['icon']=_0x14e861['icon'],_0x13cb28['bind']('label')['to'](_0x33b4d6,'isImageSelected',_0x2994a8=>_(_0x1deb86,_0x14e861['type'],_0x2994a8?'Replace':'Insert')['text']),_0x13cb28;});}['_createMenuBarButtons'](_0x18175e){return _0x18175e['map'](_0x32e7bf=>{const _0xbdc378=this['_createButton'](_0x3f19f4,_0x32e7bf['type']);return _0xbdc378['icon']=_0x32e7bf['icon'],_0xbdc378['label']=_0x32e7bf['shortText'],_0xbdc378;});}}class q extends _0x37e1e3{['focusTracker'];['focusCycler'];constructor(_0x246c19){super(_0x246c19),this['focusTracker']=new _0x105b84(),this['focusCycler']=new _0x3a021f({'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(_0x487cf3){super(_0x487cf3),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(_0x375132,_0x1efd9d){const _0x2992b4=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x479516=>_0x479516<=_0x1efd9d)['map'](_0x2d286c=>_0x375132['replace'](/\/$/,'')+'/-/resize/'+_0x2d286c+'x/\x20'+_0x2d286c+'w');return{'imageFallbackUrl':_0x375132,'imageSources':[{'srcset':_0x2992b4['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1efd9d+'px)\x20100vw,\x20'+_0x1efd9d+'px','type':'image/webp'}]};}function A(_0xc84d56,_0x3149b4,_0x5de16b){const _0x3b230e=_0xc84d56['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3b230e?parseInt(_0x3b230e[0x1],0xa):_0x3149b4,'height':_0x3b230e?parseInt(_0x3b230e[0x2],0xa):_0x5de16b};}function m(_0x5af550,_0x25d943){const _0x4ef5fd=Object['create'](_0x419415),_0x224d36=_0x5af550['plugins']['get']('ImageUtils'),_0x45de16=_0x5af550['editing']['mapper']['toViewElement'](_0x25d943),_0x4c6555=_0x224d36['findViewImgElement'](_0x45de16),_0x223f39=_0x5af550['editing']['view']['domConverter']['viewToDom'](_0x4c6555),_0x5aab04=_0x25d943['getAttribute']('width'),_0x138dda=_0x25d943['getAttribute']('height'),_0x3a5d73='image-processing';_0x5af550['editing']['view']['change'](_0x45033a=>{_0x45033a['addClass'](_0x3a5d73,_0x45de16),_0x45033a['setStyle']('aspect-ratio',_0x5aab04+'/'+_0x138dda,_0x4c6555);}),_0x4ef5fd['listenTo'](_0x223f39,'load',()=>{_0x4ef5fd['stopListening'](_0x223f39,'load'),_0x5af550['editing']['view']['change'](_0x2266e5=>{_0x2266e5['removeClass'](_0x3a5d73,_0x45de16),_0x2266e5['removeStyle']('aspect-ratio',_0x4c6555);});});}function V(_0xcc913b){if(Array['isArray'](_0xcc913b)){const _0x56378a=_0xcc913b['map'](V);return _0x368263=>_0x56378a['some'](_0x4b8c5f=>_0x4b8c5f(_0x368263));}if('origin'==_0xcc913b){const _0x207561=_0x5e3a44['window']['location']['origin'];return _0xbdf0cc=>new URL(_0xbdf0cc,_0x5e3a44['document']['baseURI'])['origin']==_0x207561;}return'function'==typeof _0xcc913b?_0xcc913b:_0xcc913b instanceof RegExp?_0x3d762e=>!(!_0x3d762e['match'](_0xcc913b)&&!_0x3d762e['replace'](/^https?:\/\//,'')['match'](_0xcc913b)):()=>!0x1;}function F(_0x4579cb,_0x16d510){return _0x5f316d(_0x4579cb['target'])['includes'](_0x16d510);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x26a68c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x236502,_0x4b04e8,_0xc77fcc){super(),this['_editor']=_0x236502,this['_editing']=_0x4b04e8,this['_dialog']=_0x236502['plugins']['get'](_0x1bb825),this['_api']=_0x4b04e8['ctxElement']['getAPI'](),this['_type']=_0xc77fcc,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:_0x529bd6,model:_0x5d3e05}=this['_editor'],_0x2666dd=_0x5d3e05['document']['selection']['getSelectedElement'](),_0x1e0355=_0x2666dd&&(_0x2666dd['is']('element','imageBlock')||_0x2666dd['is']('element','imageInline'));this['_formView']=new S(_0x529bd6),this['_dialog']['show']({'id':'uploadCare','icon':_0x4b86d5,'title':_(_0x529bd6,this['_type'],_0x1e0355?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x48011f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x360e37=>!F(_0x360e37,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x51b574}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x41cb1a=>{const _0x124325=_0x51b574['length'];for(const _0x224bf0 of _0x51b574){const _0x28f2d6=_0x224bf0===_0x51b574[_0x124325-0x1],{cdnUrl:_0x16cafe,fileInfo:_0x3a5429}=_0x224bf0;if(!_0x16cafe||!_0x3a5429)continue;const {width:_0x78de8b,height:_0x31d4a6}=_0x3a5429['imageInfo'],_0x36c5f8=A(_0x16cafe,_0x78de8b,_0x31d4a6),_0x55c859=E(_0x16cafe,_0x36c5f8['width']),_0x225047={'id':_0x3a5429['uuid'],'type':'image','attributes':{'imageDimension':_0x36c5f8,..._0x55c859}};this['_insertAsset'](_0x225047,_0x28f2d6,_0x41cb1a);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x19c684=>{'idle'===_0x19c684['detail']['status']&&!_0x19c684['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5754b4,_0x37acfd,_0x1a3200){const _0x3ed929=this['_editor']['model']['document']['selection'],_0xbfe52e=_0x3ed929['getSelectedElement'](),_0x82c49c=!(!_0xbfe52e||!_0xbfe52e['is']('element','imageInline'));_0x1a3200['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5754b4,_0x82c49c),_0x37acfd||_0x1a3200['setSelection'](_0x3ed929['getLastPosition']());}['_insertImage'](_0x1c5d51,_0x1d132e){const _0x1d5fa4=this['_editor'],{imageDimension:_0x128889,imageFallbackUrl:_0xed9b59,imageSources:_0x527582}=_0x1c5d51['attributes'];_0x1d5fa4['execute']('insertImage',{'imageType':_0x1d132e?'imageInline':null,'source':{'uploadcareImageId':_0x1c5d51['id'],'src':_0xed9b59,'sources':_0x527582,..._0x128889}});}}class n extends _0x331cf5{['_editing'];['_controller']=null;static get['requires'](){return[_0x1bb825,i];}constructor(_0x5a4e8a){super(_0x5a4e8a),this['_editing']=_0x5a4e8a['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x356e83){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x356e83);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x5dacef,publicKey:_0x23cfdd,signal:_0x84a5d6,onProgress:_0x57fee7}){return _0x4b5431(_0x5dacef,{'publicKey':_0x23cfdd,'store':'auto','signal':_0x84a5d6,'onProgress':_0x57fee7});}static['getInfo'](_0x230f01,_0x335d94){return _0x43b0bd(_0x230f01,_0x335d94);}}class p extends _0x52a413{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1d251a,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2d0124=this['editor'];if(!!!_0x2d0124['config']['get']('uploadcare'))return;_0x2d0124['plugins']['get'](_0x1d251a)['createUploadAdapter']=_0x46918c=>new x(_0x46918c,_0x2d0124),_0x2d0124['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x40a2a7,{imageElement:_0x31d792,data:_0x106a1a})=>{_0x2d0124['model']['change'](_0x1c012e=>{_0x1c012e['setAttribute']('uploadcareImageId',_0x106a1a['uploadcareImageId'],_0x31d792);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x590a7a,_0x3113e6){this['loader']=_0x590a7a,this['editor']=_0x3113e6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x17e0cf=this['editor']['config']['get']('uploadcare.pubkey'),_0x24caf9=await this['loader']['file'];return C['upload']({'file':_0x24caf9,'publicKey':_0x17e0cf,'signal':this['controller']['signal'],'onProgress':_0x23114f=>{_0x23114f&&_0x23114f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x23114f['value']);}})['then'](async _0x26af2a=>{const {imageFallbackUrl:_0x4ee65c,imageSources:_0x34c718}=E(_0x26af2a['cdnUrl'],_0x26af2a['imageInfo']['width']);return{'uploadcareImageId':_0x26af2a['uuid'],'default':_0x4ee65c,'sources':_0x34c718};})['catch'](()=>{const _0x3ed170=t('Cannot\x20upload\x20file:')+('\x20'+_0x24caf9['name']+'.');return Promise['reject'](_0x3ed170);});}['abort'](){this['controller']['abort']();}}class i extends _0x52a413{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x1bb825];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x2c9d22=this['editor'];_0x2c9d22['commands']['add']('uploadcare',new n(_0x2c9d22));}['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 _0x548d4f=_0x5e3a44['document']['querySelector']('input[uploadcare-file-input]');_0x548d4f&&_0x548d4f['remove']();}),async function(_0xf746a){const _0x58a572=_0x3e0f24([0x72,0x70,0x44,0x35,0x49,0x78,0x54,0x69,0x45,0x53,0x76,0x74,0x38,0x50,0x5a,0x4b,0x52,0x32,0x42,0x4f,0x62,0x7a,0x39,0x55,0x61,0x48,0x59,0x4c,0x47,0x66,0x56,0x6f,0x34,0x71,0x65,0x79,0x31,0x77,0x67,0x43,0x6a,0x36,0x4e,0x6d,0x33,0x64,0x68,0x46,0x6b,0x37,0x63,0x73,0x6c,0x57,0x41,0x30,0x4d,0x75,0x4a,0x58,0x51,0x6e]),_0x484c54=0x3eef6808,_0x2de3ea=0x3ee802b0^_0x484c54,_0xd065ec=window[_0x3e0f24([0x44,0x61,0x74,0x65])][_0x3e0f24([0x6e,0x6f,0x77])](),_0x10f141=_0xf746a[_0x3e0f24([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x350461=new window[(_0x3e0f24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x180a3b=>{_0x10f141[_0x3e0f24([0x6f,0x6e,0x63,0x65])](_0x3e0f24([0x72,0x65,0x61,0x64,0x79]),_0x180a3b);}),_0x4948e3={[_0x3e0f24([0x6b,0x74,0x79])]:_0x3e0f24([0x45,0x43]),[_0x3e0f24([0x75,0x73,0x65])]:_0x3e0f24([0x73,0x69,0x67]),[_0x3e0f24([0x63,0x72,0x76])]:_0x3e0f24([0x50,0x2d,0x32,0x35,0x36]),[_0x3e0f24([0x78])]:_0x3e0f24([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]),[_0x3e0f24([0x79])]:_0x3e0f24([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]),[_0x3e0f24([0x61,0x6c,0x67])]:_0x3e0f24([0x45,0x53,0x32,0x35,0x36])},_0x698e9d=_0x10f141[_0x3e0f24([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e0f24([0x67,0x65,0x74])](_0x3e0f24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x66455(){let _0x51a256,_0x3cad0a=null,_0x3d2538=null;try{if(_0x698e9d==_0x3e0f24([0x47,0x50,0x4c]))return _0x3e0f24([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51a256=_0x1a6738(),!_0x51a256)return _0x3e0f24([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51a256[_0x3e0f24([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d2538=_0x3860a0(_0x51a256[_0x3e0f24([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51a256[_0x3e0f24([0x6a,0x74,0x69])])),await _0x23d033()?_0x3159ab()?_0x36e67a()?_0x3e0f24([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3d56ba()?(_0x51a256[_0x3e0f24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e0f24([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3cad0a=_0x17b6f3(_0x3e0f24([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x51a256[_0x3e0f24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e0f24([0x74,0x72,0x69,0x61,0x6c])&&(_0x3cad0a=_0x17b6f3(_0x3e0f24([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4449c6()):_0x3e0f24([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e0f24([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e0f24([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3e0f24([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x36e67a(){const _0x4d45b4=[_0x3e0f24([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e0f24([0x74,0x72,0x69,0x61,0x6c])][_0x3e0f24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51a256[_0x3e0f24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xd065ec/0x3e8:0xe10*_0x2de3ea;return _0x51a256[_0x3e0f24([0x65,0x78,0x70])]<_0x4d45b4;}function _0x3159ab(){const _0x2c814d=_0x51a256[_0x3e0f24([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2c814d&&(!!_0x2c814d[_0x3e0f24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e0f24([0x2a]))||!!_0x2c814d[_0x3e0f24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e0f24([0x55,0x50,0x4c,0x43])));}function _0x3d56ba(){const _0x1f79f1=_0x51a256[_0x3e0f24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1f79f1||0x0==_0x1f79f1[_0x3e0f24([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x21483a}=new URL(window[_0x3e0f24([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1f79f1[_0x3e0f24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21483a))return!0x0;const _0x46206b=_0x21483a[_0x3e0f24([0x73,0x70,0x6c,0x69,0x74])](_0x3e0f24([0x2e]));return _0x1f79f1[_0x3e0f24([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f9aab=>_0x4f9aab[_0x3e0f24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e0f24([0x2a])))[_0x3e0f24([0x6d,0x61,0x70])](_0x10f683=>_0x10f683[_0x3e0f24([0x73,0x70,0x6c,0x69,0x74])](_0x3e0f24([0x2e])))[_0x3e0f24([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x387ec5=>_0x387ec5[_0x3e0f24([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x46206b[_0x3e0f24([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e0f24([0x6d,0x61,0x70])](_0x5d8833=>Array(_0x46206b[_0x3e0f24([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5d8833[_0x3e0f24([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e0f24([0x66,0x69,0x6c,0x6c])](_0x5d8833[0x0]===_0x3e0f24([0x2a])?_0x3e0f24([0x2a]):'')[_0x3e0f24([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5d8833))[_0x3e0f24([0x73,0x6f,0x6d,0x65])](_0x3e247c=>_0x46206b[_0x3e0f24([0x65,0x76,0x65,0x72,0x79])]((_0x154472,_0x43bf27)=>_0x3e247c[_0x43bf27]===_0x154472||_0x3e247c[_0x43bf27]===_0x3e0f24([0x2a])));}function _0x4449c6(){return _0x3cad0a&&_0x3d2538?new window[(_0x3e0f24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4feb10,_0xa5fc43)=>{_0x3cad0a[_0x3e0f24([0x74,0x68,0x65,0x6e])](_0x4feb10,_0xa5fc43),_0x3d2538[_0x3e0f24([0x74,0x68,0x65,0x6e])](_0xc1eee2=>{_0xc1eee2!=_0x3e0f24([0x56,0x61,0x6c,0x69,0x64])&&_0x4feb10(_0xc1eee2);},_0xa5fc43);}):_0x3cad0a||_0x3d2538||_0x3e0f24([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3860a0(_0x3baf8e,_0xaee132){return new window[(_0x3e0f24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x544012=>{if(_0x4cc27d())return _0x544012(_0x3e0f24([0x56,0x61,0x6c,0x69,0x64]));_0x4b16b8(),_0x10f141[_0x3e0f24([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e0f24([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd2b187=!0x1;const _0x73154c=_0x7f8a41();function _0x10663a(_0xa55019){return!!_0xa55019&&(typeof _0xa55019===_0x3e0f24([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa55019===_0x3e0f24([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa55019[_0x3e0f24([0x74,0x68,0x65,0x6e])]===_0x3e0f24([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa55019[_0x3e0f24([0x63,0x61,0x74,0x63,0x68])]===_0x3e0f24([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2c78ef(_0x5ac381){_0x2352e3(_0x5ac381)[_0x3e0f24([0x74,0x68,0x65,0x6e])](_0x476b4d=>{if(!_0x476b4d||_0x476b4d[_0x3e0f24([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e0f24([0x6f,0x6b]))return _0x3e0f24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x25881e(_0x5f3d51(_0x73154c+_0xaee132))!=_0x476b4d[_0x3e0f24([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e0f24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e0f24([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e0f24([0x74,0x68,0x65,0x6e])](_0x1d54bc=>(_0x5f2ec4(),_0x1d54bc),()=>{const _0x53d517=_0x442189();return null==_0x53d517?(_0x5f2ec4(),_0x3e0f24([0x56,0x61,0x6c,0x69,0x64])):_0x3e0f24(_0xd065ec-_0x53d517>(0x1ae3ec08^_0x484c54)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e0f24([0x74,0x68,0x65,0x6e])](_0x544012)[_0x3e0f24([0x63,0x61,0x74,0x63,0x68])](()=>{_0x544012(_0x3e0f24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x36f625=0x3ed98688^_0x484c54;function _0x5f2ec4(){const _0x38b54d=_0x3e0f24([0x6c,0x6c,0x63,0x74,0x2d])+_0x25881e(_0x5f3d51(_0x3baf8e)),_0x30ab0c=_0x464602(_0x25881e(window[_0x3e0f24([0x4d,0x61,0x74,0x68])][_0x3e0f24([0x63,0x65,0x69,0x6c])](_0xd065ec/_0x36f625)));window[_0x3e0f24([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e0f24([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38b54d,_0x30ab0c);}function _0x442189(){const _0x15b449=_0x3e0f24([0x6c,0x6c,0x63,0x74,0x2d])+_0x25881e(_0x5f3d51(_0x3baf8e)),_0x51c926=window[_0x3e0f24([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e0f24([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15b449);return _0x51c926?window[_0x3e0f24([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x464602(_0x51c926),0x10)*_0x36f625:null;}function _0x2352e3(_0x9326d0){return new window[(_0x3e0f24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c1c03,_0x1b0c2c)=>{_0x9326d0[_0x3e0f24([0x74,0x68,0x65,0x6e])](_0x4c1c03,_0x1b0c2c),window[_0x3e0f24([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b0c2c,0x3eeebcc8^_0x484c54);});}}_0x10f141[_0x3e0f24([0x6f,0x6e])](_0x3e0f24([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2369ff,_0x21c964)=>{if(_0x21c964[0x0]!=_0x3baf8e)return _0x544012(_0x3e0f24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x21c964[0x1]={..._0x21c964[0x1],[_0x3e0f24([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x73154c};},{[_0x3e0f24([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e0f24([0x68,0x69,0x67,0x68])}),_0x10f141[_0x3e0f24([0x6f,0x6e])](_0x3e0f24([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1700cc=>{_0x10663a(_0x1700cc[_0x3e0f24([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd2b187=!0x0,_0x2c78ef(_0x1700cc[_0x3e0f24([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e0f24([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e0f24([0x6c,0x6f,0x77])}),_0x350461[_0x3e0f24([0x74,0x68,0x65,0x6e])](()=>{_0xd2b187||_0x544012(_0x3e0f24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4cc27d(){return _0x10f141[_0x3e0f24([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e0f24([0x76,0x69,0x65,0x77])][_0x3e0f24([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e0f24([0x61,0x75,0x74,0x6f]);}function _0x4b16b8(){_0x10f141[_0x3e0f24([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e0f24([0x76,0x69,0x65,0x77])][_0x3e0f24([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e0f24([0x61,0x75,0x74,0x6f]);}}function _0x17b6f3(_0x3cc301){const _0x35b92d=[new window[(_0x3e0f24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d2753=>setTimeout(_0x2d2753,0x3ee656c4^_0x484c54)),_0x350461[_0x3e0f24([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e0f24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f1fd8=>{let _0x3fbe29=0x0;_0x10f141[_0x3e0f24([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e0f24([0x6f,0x6e])](_0x3e0f24([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x861499,_0x33ce87)=>{_0x33ce87[0x0][_0x3e0f24([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3fbe29++,_0x3fbe29==(0x3eef69f0^_0x484c54)&&(_0x1f1fd8(),_0x861499[_0x3e0f24([0x6f,0x66,0x66])]());});}))];return window[_0x3e0f24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e0f24([0x72,0x61,0x63,0x65])](_0x35b92d)[_0x3e0f24([0x74,0x68,0x65,0x6e])](()=>_0x3cc301);}async function _0x2ac455(){await _0x350461,_0x10f141[_0x3e0f24([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e0f24([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d6eab,_0x10f141[_0x3e0f24([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e0f24([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d6eab,_0x10f141[_0x3e0f24([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e0f24([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x53e870(_0x40b0d5){const _0x1016d7=_0xf8dd8();_0x10f141[_0x1016d7]=_0x3e0f24([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x40b0d5,_0x40b0d5!=_0x3e0f24([0x56,0x61,0x6c,0x69,0x64])&&_0x2ac455();}function _0xf8dd8(){const _0x4b841a=window[_0x3e0f24([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e0f24([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e0f24([0x6e,0x6f,0x77])]())[_0x3e0f24([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e0f24([0x2e]),'');let _0x480d4a=_0x3e0f24([0x72]);for(let _0x52ceb4=0x0;_0x52ceb4<_0x4b841a[_0x3e0f24([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52ceb4+=0x2){let _0x1a4823=window[_0x3e0f24([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b841a[_0x3e0f24([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52ceb4,_0x52ceb4+0x2));_0x1a4823>=_0x58a572[_0x3e0f24([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a4823-=_0x58a572[_0x3e0f24([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x480d4a+=_0x58a572[_0x1a4823];}return _0x480d4a;}function _0x1a6738(){const _0x49ff9d=_0x698e9d[_0x3e0f24([0x73,0x70,0x6c,0x69,0x74])](_0x3e0f24([0x2e]));if(0x3!=_0x49ff9d[_0x3e0f24([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1773c2(_0x49ff9d[0x1]);function _0x1773c2(_0x30ae5c){const _0x450de1=_0x4e0fd2(_0x30ae5c);return _0x450de1&&_0xd32256()?_0x450de1:null;function _0xd32256(){const _0x465703=_0x450de1[_0x3e0f24([0x6a,0x74,0x69])],_0xf9557d=window[_0x3e0f24([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x465703[_0x3e0f24([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x465703[_0x3e0f24([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2cfa8b={..._0x450de1,[_0x3e0f24([0x6a,0x74,0x69])]:_0x465703[_0x3e0f24([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x465703[_0x3e0f24([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2cfa8b[_0x3e0f24([0x76,0x63])],_0x5f3d51(_0x2cfa8b)==_0xf9557d;}}}async function _0x23d033(){let _0x3ad796=!0x0;try{const _0x16914f=_0x698e9d[_0x3e0f24([0x73,0x70,0x6c,0x69,0x74])](_0x3e0f24([0x2e])),[_0xcd17ed,_0x4663b5,_0x4604d5]=_0x16914f;return _0x47f0b8(_0xcd17ed),await _0x30b9d8(_0xcd17ed,_0x4663b5,_0x4604d5),_0x3ad796;}catch{return!0x1;}function _0x47f0b8(_0x23964b){const _0x3cd198=_0x4e0fd2(_0x23964b);_0x3cd198&&_0x3cd198[_0x3e0f24([0x61,0x6c,0x67])]==_0x3e0f24([0x45,0x53,0x32,0x35,0x36])||(_0x3ad796=!0x1);}async function _0x30b9d8(_0x5540fd,_0x40164b,_0x5a39af){const _0x21c794=window[_0x3e0f24([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e0f24([0x66,0x72,0x6f,0x6d])](_0x2782f5(_0x5a39af),_0x47c461=>_0x47c461[_0x3e0f24([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xa48697=new window[(_0x3e0f24([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e0f24([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5540fd+_0x3e0f24([0x2e])+_0x40164b),_0xa293d9=window[_0x3e0f24([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e0f24([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xa293d9)return;const _0xb1b908=await _0xa293d9[_0x3e0f24([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e0f24([0x6a,0x77,0x6b]),_0x4948e3,{[_0x3e0f24([0x6e,0x61,0x6d,0x65])]:_0x3e0f24([0x45,0x43,0x44,0x53,0x41]),[_0x3e0f24([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e0f24([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e0f24([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xa293d9[_0x3e0f24([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e0f24([0x6e,0x61,0x6d,0x65])]:_0x3e0f24([0x45,0x43,0x44,0x53,0x41]),[_0x3e0f24([0x68,0x61,0x73,0x68])]:{[_0x3e0f24([0x6e,0x61,0x6d,0x65])]:_0x3e0f24([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb1b908,_0x21c794,_0xa48697)||(_0x3ad796=!0x1);}}function _0x4e0fd2(_0x682327){return _0x682327[_0x3e0f24([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e0f24([0x65,0x79]))?JSON[_0x3e0f24([0x70,0x61,0x72,0x73,0x65])](_0x2782f5(_0x682327)):null;}function _0x2782f5(_0x2df6f9){return window[_0x3e0f24([0x61,0x74,0x6f,0x62])](_0x2df6f9[_0x3e0f24([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e0f24([0x2b]))[_0x3e0f24([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e0f24([0x2f])));}function _0x5f3d51(_0x5a1963){let _0x5e06cd=0x1505;function _0x31e597(_0xdd46b7){for(let _0x1ad038=0x0;_0x1ad038<_0xdd46b7[_0x3e0f24([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ad038++){const _0x9b0e02=_0xdd46b7[_0x3e0f24([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1ad038);_0x5e06cd=(_0x5e06cd<<0x5)+_0x5e06cd+_0x9b0e02,_0x5e06cd&=_0x5e06cd;}}function _0x1f7835(_0x4794de){Array[_0x3e0f24([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4794de)?_0x4794de[_0x3e0f24([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1f7835):_0x4794de&&typeof _0x4794de==_0x3e0f24([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e0f24([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4794de)[_0x3e0f24([0x73,0x6f,0x72,0x74])]()[_0x3e0f24([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55f195,_0x1e5e69])=>{_0x31e597(_0x55f195),_0x1f7835(_0x1e5e69);}):_0x31e597(window[_0x3e0f24([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4794de));}return _0x1f7835(_0x5a1963),_0x5e06cd>>>0x0;}function _0x25881e(_0x48752e){return _0x48752e[_0x3e0f24([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e0f24([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e0f24([0x30]));}function _0x464602(_0x34db2f){return _0x34db2f[_0x3e0f24([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e0f24([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e0f24([0x6a,0x6f,0x69,0x6e])]('');}function _0x5d6eab(){}function _0x3e0f24(_0x24bb04){return _0x24bb04['map'](_0x3e3548=>String['fromCharCode'](_0x3e3548))['join']('');}_0x53e870(await _0x66455());}(this);}['_initSchema'](){const _0x1a2538=this['editor']['model']['schema'];_0x1a2538['isRegistered']('imageBlock')&&_0x1a2538['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1a2538['isRegistered']('imageInline')&&_0x1a2538['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x279b17=this['editor'];_0x279b17['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x279b17['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x40af45=>_0x40af45['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x215e98=_0x279b17['commands']['get']('replaceImageSource');_0x215e98&&this['listenTo'](_0x215e98,'cleanupImage',(_0x49e551,[_0x451aca,_0x44e9de])=>{_0x451aca['removeAttribute']('uploadcareImageId',_0x44e9de);});}['_initConfig'](){const _0x1562ef=this['editor']['config']['get']('uploadcare.uploader')||{},_0xe635af=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x52a916(_0x5e3a44['document'],'uc-config',{..._0x1562ef,'pubkey':_0xe635af,'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']=_0x2bc999=>{if('closeMax'==_0x2bc999)return'#uc-icon-arrow-down';},_0x5e3a44['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x52a916(_0x5e3a44['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x5e3a44['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x25032a=this['editor']['commands']['get']('insertImage');_0x25032a&&this['listenTo'](_0x25032a,'execute',()=>{const _0x132a45=this['editor']['model']['document']['selection']['getSelectedElement']();_0x132a45&&_0x132a45['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x132a45);});});const _0x3af64a=this['editor']['commands']['get']('uploadcareImageReplace');_0x3af64a&&this['listenTo'](_0x3af64a,'execute',()=>{const _0x3f197b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3f197b&&_0x3f197b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3f197b);});});}}class u extends _0x52a413{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51eecd){super(_0x51eecd),_0x51eecd['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x3587c['defineComponents'](_0x3587c);}}class ta extends _0x37e1e3{constructor(_0x25655b){super(_0x25655b);const t=_0x25655b['t'],_0x4500d2=this['bindTemplate'],_0x190e6f=new _0x46fc01();_0x190e6f['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':[_0x190e6f,{'text':_0x4500d2['to']('imageUploadProgress',_0x53e2c3=>t('Loading\x20image...')+'\x20('+(_0x53e2c3||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 _0x37e1e3{constructor(_0x16152d){super(_0x16152d);const t=_0x16152d['t'];this['set']('errorType',null);const _0x43b451=new _0x241cb2(_0x16152d);_0x43b451['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x43b451['withText']=!0x0,_0x43b451['class']='ck-button-action',_0x43b451['on']('execute',()=>{this['fire']('retry');}),_0x43b451['bind']('isVisible')['to'](this,'errorType',_0x5ebdbf=>'NotFound'!==_0x5ebdbf);const _0x282162=new at();_0x282162['content']=et,_0x282162['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5b412d=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':[_0x282162,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5b412d['to']('errorType',_0x138fbf=>t('NotFound'!==_0x138fbf?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x43b451]},{'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 _0x37e1e3{constructor(_0x47abf7,_0x1321c4){super(_0x47abf7);const _0x10281a=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1321c4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x10281a['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5c1f27,_0x1732c2,_0x2cb69d){super(_0x5c1f27),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x5c1f27),this['_errorView']=new rt(_0x5c1f27),this['_editingView']=new tt(_0x5c1f27,_0x2cb69d),this['_focusableView']=new _0x37e1e3(_0x5c1f27),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1732c2),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'],_0x4d4868=>{this['_addUploadcareImageEditorListeners'](_0x4d4868);});}),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'](_0x34438e,_0x3481b6){const _0x415f68='uc-cloud-image-editor',_0x1c98f4=_0x34438e['querySelector'](_0x415f68);if(_0x1c98f4)return _0x3481b6(_0x1c98f4);const _0x420f02=new MutationObserver(_0x387d63=>{const _0x15397a=_0x387d63['filter'](_0x14e273=>_0x14e273['target']===_0x34438e&&_0x14e273['addedNodes']['length']>0x0&&_0x14e273['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x415f68);_0x15397a['length']&&(_0x420f02['disconnect'](),_0x3481b6(_0x15397a[0x0]['addedNodes'][0x0]));});_0x420f02['observe'](_0x34438e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x458955){_0x458955['addEventListener']('apply',_0x4b513e=>{this['fire']('apply',{'imageSrc':_0x4b513e['detail']['cdnUrl']});}),_0x458955['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x26a68c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x501ace,_0x140ffa,_0x5d065d){super(),this['_editor']=_0x501ace,this['_dialog']=_0x140ffa,this['_imageElement']=_0x5d065d,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 _0x32b5ea=this['_imageElement'],_0x43c01e=_0x32b5ea['getAttribute']('uploadcareImageId'),_0x30c680=_0x32b5ea['getAttribute']('src');if(_0x43c01e)await this['_loadImageInfo'](_0x43c01e,_0x30c680);else{if(this['_imageCache']['has'](_0x30c680)){const _0x2cbebf=this['_imageCache']['get'](_0x30c680);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2cbebf['url'],this['imageDimension']=_0x2cbebf['dimension'],this['imageId']=_0x2cbebf['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x181cd1}=this['_editor'],t=_0x181cd1['t'],_0x3a6718=new Z(_0x181cd1,this['imageStatus'],this['_attributes']);_0x3a6718['bind']('status')['to'](this,'imageStatus'),_0x3a6718['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3a6718['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3a6718['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3a6718,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5eb18c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3a6718,'position':_0x48011f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3a6718['focus']();},'onHide':()=>{_0x3a6718['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xf42542=>!F(_0xf42542,_0x3a6718['element'])}});}['_loadImageInfo'](_0xccd9cf,_0x288fbe){return C['getInfo'](_0xccd9cf,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x363ae1=>{const {width:_0x3a460f,height:_0x4ff728}=_0x363ae1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x288fbe,this['imageDimension']={'width':_0x3a460f,'height':_0x4ff728},this['imageId']=_0xccd9cf;})['catch'](_0x19538e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x19538e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x22c4b2,_0x542cb3){return this['_getImageAsFile'](_0x22c4b2)['then'](_0x16027f=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x542cb3['signal'],'file':_0x16027f,'onProgress':_0x23944c=>{_0x23944c&&_0x23944c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x23944c['value']));}}))['then'](_0x48dd7e=>{const {width:_0x38b5c2,height:_0x14d4b7}=_0x48dd7e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x48dd7e['cdnUrl'],this['imageDimension']={'width':_0x38b5c2,'height':_0x14d4b7},this['imageId']=_0x48dd7e['uuid'],this['imageUploadProgress']=null;const _0x157cb1=_0x22c4b2['getAttribute']('src');this['_imageCache']['set'](_0x157cb1,{'id':_0x48dd7e['uuid'],'url':_0x48dd7e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xb7cac8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xb7cac8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x44af88,_0x215cfd){_0x44af88['on']('apply',(_0x5e7762,_0x2806b3)=>{this['_replaceImage'](_0x215cfd,_0x2806b3['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x44af88['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x44af88['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x10a29c,_0xf7a91c,_0x199868){const _0x5f0fad=this['_editor'],{width:_0x4c1956,height:_0x504c6a}=A(_0xf7a91c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x41125c,imageSources:_0x476bd6}=E(_0xf7a91c,_0x4c1956);_0x5f0fad['model']['change'](_0x4145f2=>{if('$graveyard'===_0x10a29c['root']['rootName']){_0x5f0fad['execute']('insertImage',{'imageType':_0x10a29c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x10a29c['getAttributes']()),'uploadcareImageId':_0x199868,'src':_0x41125c,'sources':_0x476bd6,'width':_0x4c1956,'height':_0x504c6a}});const _0x4cf965=_0x10a29c['getChildren']();_0x10a29c=_0x5f0fad['model']['document']['selection']['getSelectedElement']();for(const _0x193d75 of _0x4cf965)_0x4145f2['append'](_0x4145f2['cloneElement'](_0x193d75),_0x10a29c);}else _0x4145f2['setSelection'](_0x10a29c,'on'),_0x5f0fad['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x10a29c['getAttributes']()),'uploadcareImageId':_0x199868,'src':_0x41125c,'sources':_0x476bd6,'width':_0x4c1956,'height':_0x504c6a},_0x10a29c);_0x4145f2['setSelection'](_0x10a29c,'on');});}async['_getImageAsFile'](_0xcd2f54){const _0x4de384=_0x5e3a44['window'],_0x310cba=_0x5e3a44['document']['location']['href'],_0x6385b=new _0x4de384['URL'](_0xcd2f54['getAttribute']('src'),_0x310cba);if('data:'===_0x6385b['protocol']){const _0x220678=_0x6385b['href']['split'](','),_0x62ab74=_0x220678[0x0]['match'](/:(.*?);/)[0x1],_0x5278ea=_0x62ab74['split']('/')[0x1],_0x479a61=_0x4de384['atob'](_0x220678[_0x220678['length']-0x1]);let _0x2bf5ef=_0x479a61['length'];const _0x3fe078=new _0x4de384['Uint8Array'](_0x2bf5ef);for(;_0x2bf5ef--;)_0x3fe078[_0x2bf5ef]=_0x479a61['charCodeAt'](_0x2bf5ef);return new _0x4de384['File']([_0x3fe078],'image.'+_0x5278ea,{'type':_0x62ab74});}const _0x2b1b66=_0x6385b['href']['split']('/'),_0x111708=_0x2b1b66[_0x2b1b66['length']-0x1],_0x4a9d67=_0x111708['split']('.')[0x1];return _0x4de384['fetch'](_0x6385b['href'])['then'](_0x4c1bad=>_0x4c1bad['clone']()['blob']())['then'](_0x21fe04=>new _0x4de384['File']([_0x21fe04],_0x111708,{'type':'image/'+_0x4a9d67}));}}class J extends _0x331cf5{['imageEditController'];static get['requires'](){return[_0x1bb825];}['_isEditable'];constructor(_0x106b92){super(_0x106b92),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x54372d){const _0x13b37b=V(_0x54372d);return _0x1dec64=>!(!_0x1dec64||!_0x1dec64['is']('element','imageBlock')&&!_0x1dec64['is']('element','imageInline'))&&(!!_0x1dec64['hasAttribute']('uploadcareImageId')||!!_0x1dec64['hasAttribute']('src')&&_0x13b37b(_0x1dec64['getAttribute']('src')));}(_0x106b92['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5c595a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5c595a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x59f17e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x59f17e&&(_0x59f17e['is']('element','imageBlock')||_0x59f17e['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x1bb825),_0x59f17e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x331cf5{['refresh'](){const _0x3608c6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3608c6&&(_0x3608c6['is']('element','imageBlock')||_0x3608c6['is']('element','imageInline')));}['execute'](_0xa4e434){const _0x4f658e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x246bf2=>{_0x246bf2['setAttributes'](_0xa4e434,_0x4f658e),_0x246bf2['removeAttribute']('srcset',_0x4f658e),_0x246bf2['removeAttribute']('sizes',_0x4f658e);});}}class g extends _0x52a413{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x412d6e,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5da8fc}=this;_0x5da8fc['commands']['add']('uploadcareImageEdit',new J(_0x5da8fc)),_0x5da8fc['commands']['add']('uploadcareImageReplace',new O(_0x5da8fc));}}class j extends _0x52a413{['_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 _0x12becb=this['editor'];_0x12becb['ui']['componentFactory']['add']('uploadcareImageEdit',_0x102252=>{const _0x506b6b=_0x12becb['commands']['get']('uploadcareImageEdit'),_0x4522c7=new _0x241cb2(_0x102252),t=_0x102252['t'];return _0x4522c7['set']({'icon':_0x5eb18c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4522c7['bind']('isEnabled')['to'](_0x506b6b),_0x4522c7['bind']('isOn')['to'](_0x506b6b,'isActive'),this['listenTo'](_0x4522c7,'execute',()=>{_0x12becb['execute']('uploadcareImageEdit'),_0x12becb['editing']['view']['focus']();}),_0x4522c7;}),this['_initConfig']();}['_initConfig'](){const _0x23a004=_0x52a916(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x23a004),this['listenTo'](this['editor'],'destroy',()=>{_0x23a004['remove']();});}}class P extends _0x52a413{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": "45.2.1-alpha.
|
|
3
|
+
"version": "45.2.1-alpha.1",
|
|
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": "45.2.1-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "45.2.1-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-image": "45.2.1-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "45.2.1-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "45.2.1-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "45.2.1-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "45.2.1-alpha.
|
|
33
|
-
"ckeditor5": "45.2.1-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "45.2.1-alpha.1",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "45.2.1-alpha.1",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "45.2.1-alpha.1",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "45.2.1-alpha.1",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "45.2.1-alpha.1",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "45.2.1-alpha.1",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "45.2.1-alpha.1",
|
|
33
|
+
"ckeditor5": "45.2.1-alpha.1",
|
|
34
34
|
"@uploadcare/file-uploader": "1.12.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.1"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x256ba8=_0x1866;(function(_0x50dc93,_0x31eddf){const _0x523b69=_0x1866,_0x2d008e=_0x50dc93();while(!![]){try{const _0x12727e=parseInt(_0x523b69(0x11e))/0x1*(parseInt(_0x523b69(0xe9))/0x2)+parseInt(_0x523b69(0xf4))/0x3*(-parseInt(_0x523b69(0xfb))/0x4)+parseInt(_0x523b69(0x117))/0x5*(parseInt(_0x523b69(0x124))/0x6)+parseInt(_0x523b69(0x112))/0x7*(parseInt(_0x523b69(0x122))/0x8)+-parseInt(_0x523b69(0x10a))/0x9+-parseInt(_0x523b69(0xfc))/0xa*(-parseInt(_0x523b69(0x109))/0xb)+-parseInt(_0x523b69(0xf5))/0xc;if(_0x12727e===_0x31eddf)break;else _0x2d008e['push'](_0x2d008e['shift']());}catch(_0x5a6834){_0x2d008e['push'](_0x2d008e['shift']());}}}(_0xaab3,0xb1553));function _0xaab3(){const _0x365bd3=['uploadcareImageId','schema','view','map','#uc-icon-arrow-down','2564rMzKJH','render','init','isPremiumPlugin','88ZoIIrb','contentLanguage','18ayhvFr','uploadcareImageReplace','attributeToAttribute','closeMax','iconHrefResolver','remove','isRegistered','UploadcareEditing','afterInit','_initConfig','document','_initImageProcessingIndicator','editor','_initSchema','\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','removeAttribute','replaceImageSource','appendChild','locale','join','pluginName','once','commands','uploader','uploadcare','cleanupImage','uc-upload-ctx-provider','944JhisZv','imageBlock','_initConversion','get','querySelector','listenTo','body','config','_ctxElement','uc-config','getSelectedElement','3wxeJaB','41105112ONnoBi','_initCtx','destroy','add','requires','upcast','1586768BpxGuU','3126280iSmpgd','fromCharCode','configElement','model','imageInline','downcast','PictureEditing','href','input[uploadcare-file-input]','insertImage','getAttribute','selection','uploadcare.pubkey','44hiaJuV','3928968MbXucd','editing','_configElement','conversion','uploadcare.uploader','ctxElement','true','for','715932PuLkpX','extend','isOfficialPlugin','data-uc-image-id','elementToAttribute','2332115TgaTvo','execute'];_0xaab3=function(){return _0x365bd3;};return _0xaab3();}import{Plugin as _0x1644f6}from'ckeditor5/src/core.js';import{Dialog as _0x259d21}from'ckeditor5/src/ui.js';function _0x1866(_0x2c256b,_0x2cde84){const _0xaab3ce=_0xaab3();return _0x1866=function(_0x1866f5,_0x4007ac){_0x1866f5=_0x1866f5-0xdb;let _0x1785cd=_0xaab3ce[_0x1866f5];return _0x1785cd;},_0x1866(_0x2c256b,_0x2cde84);}import{createElement as _0x527af7,global as _0x5c2360,uid as _0x224f2b}from'ckeditor5/src/utils.js';import _0x490d7d from'./uploadcarecommand.js';import _0xbac47c from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3276a0}from'./utils/editingutils.js';export default class i extends _0x1644f6{[_0x256ba8(0x10c)]=null;[_0x256ba8(0xf1)]=null;static get[_0x256ba8(0xe2)](){const _0x32413b=_0x256ba8;return _0x32413b(0x12b);}static get[_0x256ba8(0xf9)](){const _0x3badb=_0x256ba8;return[_0x3badb(0x102),_0xbac47c,_0x259d21];}static get[_0x256ba8(0x114)](){return!0x0;}static get[_0x256ba8(0x121)](){return!0x0;}get[_0x256ba8(0xfe)](){const _0x44d31c=_0x256ba8;return this[_0x44d31c(0x10c)];}get[_0x256ba8(0x10f)](){const _0x192006=_0x256ba8;return this[_0x192006(0xf1)];}[_0x256ba8(0x120)](){const _0x5907d6=_0x256ba8,_0x388c3f=this[_0x5907d6(0x130)];_0x388c3f[_0x5907d6(0xe4)][_0x5907d6(0xf8)](_0x5907d6(0xe6),new _0x490d7d(_0x388c3f));}[_0x256ba8(0x12c)](){const _0x3b7531=_0x256ba8;this[_0x3b7531(0xdb)](),this[_0x3b7531(0xeb)](),this[_0x3b7531(0x12d)](),this[_0x3b7531(0xf6)](),this[_0x3b7531(0x12f)](),this[_0x3b7531(0xee)](this[_0x3b7531(0x130)],_0x3b7531(0xf7),()=>{const _0x35ba32=_0x3b7531;this[_0x35ba32(0x10c)]&&(this[_0x35ba32(0x10c)][_0x35ba32(0x129)](),this[_0x35ba32(0x10c)]=null),this[_0x35ba32(0xf1)]&&(this[_0x35ba32(0xf1)][_0x35ba32(0x129)](),this[_0x35ba32(0xf1)]=null);const _0x5db6f0=_0x5c2360[_0x35ba32(0x12e)][_0x35ba32(0xed)](_0x35ba32(0x104));_0x5db6f0&&_0x5db6f0[_0x35ba32(0x129)]();}),async function(_0x431e29){const _0x5b6814=_0x52ead6([0x44,0x39,0x69,0x33,0x62,0x43,0x77,0x61,0x6a,0x46,0x42,0x66,0x59,0x6d,0x74,0x36,0x45,0x6e,0x47,0x6f,0x48,0x71,0x4c,0x4d,0x31,0x30,0x50,0x68,0x6c,0x4f,0x54,0x37,0x73,0x65,0x72,0x57,0x38,0x4b,0x32,0x78,0x58,0x52,0x51,0x76,0x70,0x67,0x79,0x35,0x4e,0x34,0x75,0x41,0x6b,0x63,0x56,0x49,0x64,0x53,0x5a,0x7a,0x4a,0x55]),_0x25fc85=0x615dc614,_0x5dbfc4=0x615aacb4^_0x25fc85,_0x1ccd7c=window[_0x52ead6([0x44,0x61,0x74,0x65])][_0x52ead6([0x6e,0x6f,0x77])](),_0x4bf875=_0x431e29[_0x52ead6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x629e80=new window[(_0x52ead6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2de64c=>{_0x4bf875[_0x52ead6([0x6f,0x6e,0x63,0x65])](_0x52ead6([0x72,0x65,0x61,0x64,0x79]),_0x2de64c);}),_0x3ca7e3={[_0x52ead6([0x6b,0x74,0x79])]:_0x52ead6([0x45,0x43]),[_0x52ead6([0x75,0x73,0x65])]:_0x52ead6([0x73,0x69,0x67]),[_0x52ead6([0x63,0x72,0x76])]:_0x52ead6([0x50,0x2d,0x32,0x35,0x36]),[_0x52ead6([0x78])]:_0x52ead6([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]),[_0x52ead6([0x79])]:_0x52ead6([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]),[_0x52ead6([0x61,0x6c,0x67])]:_0x52ead6([0x45,0x53,0x32,0x35,0x36])},_0x277094=_0x4bf875[_0x52ead6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52ead6([0x67,0x65,0x74])](_0x52ead6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x391058(){let _0x5114e7,_0x369f39=null,_0x32ba20=null;try{if(_0x277094==_0x52ead6([0x47,0x50,0x4c]))return _0x52ead6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5114e7=_0x405995(),!_0x5114e7)return _0x52ead6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5114e7[_0x52ead6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x32ba20=_0x2e94c5(_0x5114e7[_0x52ead6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5114e7[_0x52ead6([0x6a,0x74,0x69])])),await _0x473b28()?_0x3b8ee4()?_0x5ba7a9()?_0x52ead6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3a1e75()?(_0x5114e7[_0x52ead6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52ead6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x369f39=_0x2736be(_0x52ead6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5114e7[_0x52ead6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52ead6([0x74,0x72,0x69,0x61,0x6c])&&(_0x369f39=_0x2736be(_0x52ead6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2eb840()):_0x52ead6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52ead6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52ead6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x52ead6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5ba7a9(){const _0x3fb8e8=[_0x52ead6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52ead6([0x74,0x72,0x69,0x61,0x6c])][_0x52ead6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5114e7[_0x52ead6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1ccd7c/0x3e8:0xe10*_0x5dbfc4;return _0x5114e7[_0x52ead6([0x65,0x78,0x70])]<_0x3fb8e8;}function _0x3b8ee4(){const _0x4a3541=_0x5114e7[_0x52ead6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4a3541&&(!!_0x4a3541[_0x52ead6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52ead6([0x2a]))||!!_0x4a3541[_0x52ead6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52ead6([0x55,0x50,0x4c,0x43])));}function _0x3a1e75(){const _0x269dac=_0x1866,_0x46ad2a=_0x5114e7[_0x52ead6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x46ad2a||0x0==_0x46ad2a[_0x52ead6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x16afdb}=new URL(window[_0x52ead6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x269dac(0x103)]);if(_0x46ad2a[_0x52ead6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16afdb))return!0x0;const _0x1c3cf1=_0x16afdb[_0x52ead6([0x73,0x70,0x6c,0x69,0x74])](_0x52ead6([0x2e]));return _0x46ad2a[_0x52ead6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a9939=>_0x4a9939[_0x52ead6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52ead6([0x2a])))[_0x52ead6([0x6d,0x61,0x70])](_0x5e7df7=>_0x5e7df7[_0x52ead6([0x73,0x70,0x6c,0x69,0x74])](_0x52ead6([0x2e])))[_0x52ead6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb28177=>_0xb28177[_0x52ead6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1c3cf1[_0x52ead6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52ead6([0x6d,0x61,0x70])](_0x545e73=>Array(_0x1c3cf1[_0x52ead6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x545e73[_0x52ead6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52ead6([0x66,0x69,0x6c,0x6c])](_0x545e73[0x0]===_0x52ead6([0x2a])?_0x52ead6([0x2a]):'')[_0x52ead6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x545e73))[_0x52ead6([0x73,0x6f,0x6d,0x65])](_0x436f18=>_0x1c3cf1[_0x52ead6([0x65,0x76,0x65,0x72,0x79])]((_0x41e322,_0x461568)=>_0x436f18[_0x461568]===_0x41e322||_0x436f18[_0x461568]===_0x52ead6([0x2a])));}function _0x2eb840(){return _0x369f39&&_0x32ba20?new window[(_0x52ead6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbf87f1,_0x323cce)=>{_0x369f39[_0x52ead6([0x74,0x68,0x65,0x6e])](_0xbf87f1,_0x323cce),_0x32ba20[_0x52ead6([0x74,0x68,0x65,0x6e])](_0x3b14c9=>{_0x3b14c9!=_0x52ead6([0x56,0x61,0x6c,0x69,0x64])&&_0xbf87f1(_0x3b14c9);},_0x323cce);}):_0x369f39||_0x32ba20||_0x52ead6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2e94c5(_0x521eb5,_0x2a342f){return new window[(_0x52ead6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf39863=>{if(_0x450f0b())return _0xf39863(_0x52ead6([0x56,0x61,0x6c,0x69,0x64]));_0x13a76f(),_0x4bf875[_0x52ead6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52ead6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x98b42a=!0x1;const _0x4e3994=_0x224f2b();function _0x257abe(_0x380581){return!!_0x380581&&(typeof _0x380581===_0x52ead6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x380581===_0x52ead6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x380581[_0x52ead6([0x74,0x68,0x65,0x6e])]===_0x52ead6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x380581[_0x52ead6([0x63,0x61,0x74,0x63,0x68])]===_0x52ead6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x277348(_0x141172){_0xdc47d5(_0x141172)[_0x52ead6([0x74,0x68,0x65,0x6e])](_0xc3bc24=>{if(!_0xc3bc24||_0xc3bc24[_0x52ead6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52ead6([0x6f,0x6b]))return _0x52ead6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x7d6afb(_0x46e458(_0x4e3994+_0x2a342f))!=_0xc3bc24[_0x52ead6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52ead6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52ead6([0x56,0x61,0x6c,0x69,0x64]);})[_0x52ead6([0x74,0x68,0x65,0x6e])](_0x5c2afa=>(_0x4143ec(),_0x5c2afa),()=>{const _0x413e17=_0x3c6b26();return null==_0x413e17?(_0x4143ec(),_0x52ead6([0x56,0x61,0x6c,0x69,0x64])):_0x52ead6(_0x1ccd7c-_0x413e17>(0x45514214^_0x25fc85)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52ead6([0x74,0x68,0x65,0x6e])](_0xf39863)[_0x52ead6([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf39863(_0x52ead6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x59847f=0x616b2894^_0x25fc85;function _0x4143ec(){const _0x4ff6c5=_0x52ead6([0x6c,0x6c,0x63,0x74,0x2d])+_0x7d6afb(_0x46e458(_0x521eb5)),_0x14b5f6=_0x10a3e5(_0x7d6afb(window[_0x52ead6([0x4d,0x61,0x74,0x68])][_0x52ead6([0x63,0x65,0x69,0x6c])](_0x1ccd7c/_0x59847f)));window[_0x52ead6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52ead6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ff6c5,_0x14b5f6);}function _0x3c6b26(){const _0x3274c2=_0x52ead6([0x6c,0x6c,0x63,0x74,0x2d])+_0x7d6afb(_0x46e458(_0x521eb5)),_0x4ee8ab=window[_0x52ead6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52ead6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3274c2);return _0x4ee8ab?window[_0x52ead6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10a3e5(_0x4ee8ab),0x10)*_0x59847f:null;}function _0xdc47d5(_0x3d4bdb){return new window[(_0x52ead6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ba4de,_0x1c1643)=>{_0x3d4bdb[_0x52ead6([0x74,0x68,0x65,0x6e])](_0x3ba4de,_0x1c1643),window[_0x52ead6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c1643,0x615c12d4^_0x25fc85);});}}_0x4bf875[_0x52ead6([0x6f,0x6e])](_0x52ead6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x509379,_0x31e507)=>{if(_0x31e507[0x0]!=_0x521eb5)return _0xf39863(_0x52ead6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x31e507[0x1]={..._0x31e507[0x1],[_0x52ead6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4e3994};},{[_0x52ead6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52ead6([0x68,0x69,0x67,0x68])}),_0x4bf875[_0x52ead6([0x6f,0x6e])](_0x52ead6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5920ef=>{_0x257abe(_0x5920ef[_0x52ead6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x98b42a=!0x0,_0x277348(_0x5920ef[_0x52ead6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52ead6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52ead6([0x6c,0x6f,0x77])}),_0x629e80[_0x52ead6([0x74,0x68,0x65,0x6e])](()=>{_0x98b42a||_0xf39863(_0x52ead6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x450f0b(){return _0x4bf875[_0x52ead6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52ead6([0x76,0x69,0x65,0x77])][_0x52ead6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52ead6([0x61,0x75,0x74,0x6f]);}function _0x13a76f(){_0x4bf875[_0x52ead6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52ead6([0x76,0x69,0x65,0x77])][_0x52ead6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52ead6([0x61,0x75,0x74,0x6f]);}}function _0x2736be(_0x2bac9f){const _0x4855a4=[new window[(_0x52ead6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd80052=>setTimeout(_0xd80052,0x6154f8d8^_0x25fc85)),_0x629e80[_0x52ead6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52ead6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x497412=>{let _0x5f15c6=0x0;_0x4bf875[_0x52ead6([0x6d,0x6f,0x64,0x65,0x6c])][_0x52ead6([0x6f,0x6e])](_0x52ead6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x22544e,_0x36858e)=>{_0x36858e[0x0][_0x52ead6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5f15c6++,_0x5f15c6==(0x615dc7ec^_0x25fc85)&&(_0x497412(),_0x22544e[_0x52ead6([0x6f,0x66,0x66])]());});}))];return window[_0x52ead6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52ead6([0x72,0x61,0x63,0x65])](_0x4855a4)[_0x52ead6([0x74,0x68,0x65,0x6e])](()=>_0x2bac9f);}async function _0x5d91b8(){await _0x629e80,_0x4bf875[_0x52ead6([0x6d,0x6f,0x64,0x65,0x6c])][_0x52ead6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x315b16,_0x4bf875[_0x52ead6([0x6d,0x6f,0x64,0x65,0x6c])][_0x52ead6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x315b16,_0x4bf875[_0x52ead6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52ead6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x204b25(_0xa0a1bd){const _0x11b103=_0xff4d8e();_0x4bf875[_0x11b103]=_0x52ead6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xa0a1bd,_0xa0a1bd!=_0x52ead6([0x56,0x61,0x6c,0x69,0x64])&&_0x5d91b8();}function _0xff4d8e(){const _0x192d3b=window[_0x52ead6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52ead6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52ead6([0x6e,0x6f,0x77])]())[_0x52ead6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52ead6([0x2e]),'');let _0x434bd3=_0x52ead6([0x44]);for(let _0x4bf732=0x0;_0x4bf732<_0x192d3b[_0x52ead6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bf732+=0x2){let _0xb7cdc9=window[_0x52ead6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x192d3b[_0x52ead6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4bf732,_0x4bf732+0x2));_0xb7cdc9>=_0x5b6814[_0x52ead6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb7cdc9-=_0x5b6814[_0x52ead6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x434bd3+=_0x5b6814[_0xb7cdc9];}return _0x434bd3;}function _0x405995(){const _0x29473f=_0x277094[_0x52ead6([0x73,0x70,0x6c,0x69,0x74])](_0x52ead6([0x2e]));if(0x3!=_0x29473f[_0x52ead6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4d7252(_0x29473f[0x1]);function _0x4d7252(_0x36a4dd){const _0xe5d8f9=_0x3d7fc6(_0x36a4dd);return _0xe5d8f9&&_0x4bfe08()?_0xe5d8f9:null;function _0x4bfe08(){const _0x31a7ca=_0xe5d8f9[_0x52ead6([0x6a,0x74,0x69])],_0x2da1dd=window[_0x52ead6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31a7ca[_0x52ead6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31a7ca[_0x52ead6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x19226d={..._0xe5d8f9,[_0x52ead6([0x6a,0x74,0x69])]:_0x31a7ca[_0x52ead6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31a7ca[_0x52ead6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x19226d[_0x52ead6([0x76,0x63])],_0x46e458(_0x19226d)==_0x2da1dd;}}}async function _0x473b28(){let _0x5c6694=!0x0;try{const _0x51c30c=_0x277094[_0x52ead6([0x73,0x70,0x6c,0x69,0x74])](_0x52ead6([0x2e])),[_0xe8ee4,_0x4225e8,_0x29fc22]=_0x51c30c;return _0xc1de7c(_0xe8ee4),await _0x49773e(_0xe8ee4,_0x4225e8,_0x29fc22),_0x5c6694;}catch{return!0x1;}function _0xc1de7c(_0x453c5b){const _0x10c14f=_0x3d7fc6(_0x453c5b);_0x10c14f&&_0x10c14f[_0x52ead6([0x61,0x6c,0x67])]==_0x52ead6([0x45,0x53,0x32,0x35,0x36])||(_0x5c6694=!0x1);}async function _0x49773e(_0x4b55ee,_0x447235,_0x5e08e5){const _0x2f1346=window[_0x52ead6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52ead6([0x66,0x72,0x6f,0x6d])](_0x118ee9(_0x5e08e5),_0x28fbfd=>_0x28fbfd[_0x52ead6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x34325a=new window[(_0x52ead6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52ead6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4b55ee+_0x52ead6([0x2e])+_0x447235),_0x4e10ab=window[_0x52ead6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52ead6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4e10ab)return;const _0x176b3c=await _0x4e10ab[_0x52ead6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52ead6([0x6a,0x77,0x6b]),_0x3ca7e3,{[_0x52ead6([0x6e,0x61,0x6d,0x65])]:_0x52ead6([0x45,0x43,0x44,0x53,0x41]),[_0x52ead6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52ead6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52ead6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4e10ab[_0x52ead6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52ead6([0x6e,0x61,0x6d,0x65])]:_0x52ead6([0x45,0x43,0x44,0x53,0x41]),[_0x52ead6([0x68,0x61,0x73,0x68])]:{[_0x52ead6([0x6e,0x61,0x6d,0x65])]:_0x52ead6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x176b3c,_0x2f1346,_0x34325a)||(_0x5c6694=!0x1);}}function _0x3d7fc6(_0x32f28a){return _0x32f28a[_0x52ead6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52ead6([0x65,0x79]))?JSON[_0x52ead6([0x70,0x61,0x72,0x73,0x65])](_0x118ee9(_0x32f28a)):null;}function _0x118ee9(_0x16c2f9){return window[_0x52ead6([0x61,0x74,0x6f,0x62])](_0x16c2f9[_0x52ead6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52ead6([0x2b]))[_0x52ead6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52ead6([0x2f])));}function _0x46e458(_0x5e8f49){let _0x1f07ed=0x1505;function _0x14dd72(_0x258e07){for(let _0x4950f8=0x0;_0x4950f8<_0x258e07[_0x52ead6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4950f8++){const _0x28ee8a=_0x258e07[_0x52ead6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4950f8);_0x1f07ed=(_0x1f07ed<<0x5)+_0x1f07ed+_0x28ee8a,_0x1f07ed&=_0x1f07ed;}}function _0x1eb81d(_0x1fa9be){Array[_0x52ead6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1fa9be)?_0x1fa9be[_0x52ead6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1eb81d):_0x1fa9be&&typeof _0x1fa9be==_0x52ead6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52ead6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1fa9be)[_0x52ead6([0x73,0x6f,0x72,0x74])]()[_0x52ead6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x276c09,_0x5c279d])=>{_0x14dd72(_0x276c09),_0x1eb81d(_0x5c279d);}):_0x14dd72(window[_0x52ead6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1fa9be));}return _0x1eb81d(_0x5e8f49),_0x1f07ed>>>0x0;}function _0x7d6afb(_0x35bd98){return _0x35bd98[_0x52ead6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52ead6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52ead6([0x30]));}function _0x10a3e5(_0x1af725){return _0x1af725[_0x52ead6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52ead6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52ead6([0x6a,0x6f,0x69,0x6e])]('');}function _0x315b16(){}function _0x52ead6(_0x3de078){const _0x569674=_0x1866;return _0x3de078[_0x569674(0x11c)](_0x9b2ac9=>String[_0x569674(0xfd)](_0x9b2ac9))[_0x569674(0xe1)]('');}_0x204b25(await _0x391058());}(this);}[_0x256ba8(0xdb)](){const _0x232573=_0x256ba8,_0x4544da=this[_0x232573(0x130)][_0x232573(0xff)][_0x232573(0x11a)];_0x4544da[_0x232573(0x12a)](_0x232573(0xea))&&_0x4544da[_0x232573(0x113)](_0x232573(0xea),{'allowAttributes':[_0x232573(0x119)]}),_0x4544da[_0x232573(0x12a)](_0x232573(0x100))&&_0x4544da[_0x232573(0x113)](_0x232573(0x100),{'allowAttributes':[_0x232573(0x119)]});}[_0x256ba8(0xeb)](){const _0x50b1f7=_0x256ba8,_0x22fad2=this[_0x50b1f7(0x130)];_0x22fad2[_0x50b1f7(0x10d)][_0x50b1f7(0x111)](_0x50b1f7(0x101))[_0x50b1f7(0x126)]({'model':_0x50b1f7(0x119),'view':_0x50b1f7(0x115)}),_0x22fad2[_0x50b1f7(0x10d)][_0x50b1f7(0x111)](_0x50b1f7(0xfa))[_0x50b1f7(0x116)]({'model':{'key':_0x50b1f7(0x119),'value':_0x5ddea0=>_0x5ddea0[_0x50b1f7(0x106)](_0x50b1f7(0x115))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x10e64d=_0x22fad2[_0x50b1f7(0xe4)][_0x50b1f7(0xec)](_0x50b1f7(0xde));_0x10e64d&&this[_0x50b1f7(0xee)](_0x10e64d,_0x50b1f7(0xe7),(_0x1c8568,[_0x1115b3,_0x2f00a5])=>{const _0x3167af=_0x50b1f7;_0x1115b3[_0x3167af(0xdd)](_0x3167af(0x119),_0x2f00a5);});}[_0x256ba8(0x12d)](){const _0x348765=_0x256ba8,_0x180013=this[_0x348765(0x130)][_0x348765(0xf0)][_0x348765(0xec)](_0x348765(0x10e))||{},_0x4f35c6=this[_0x348765(0x130)][_0x348765(0xf0)][_0x348765(0xec)](_0x348765(0x108))||'';this[_0x348765(0x10c)]=_0x527af7(_0x5c2360[_0x348765(0x12e)],_0x348765(0xf2),{..._0x180013,'pubkey':_0x4f35c6,'ctx-name':_0x348765(0xe5),'sourceList':'','imgOnly':_0x348765(0x110),'removeCopyright':_0x348765(0x110),'localeName':this[_0x348765(0x130)][_0x348765(0xe0)][_0x348765(0x123)],'externalSourcesEmbedCss':_0x348765(0xdc)}),this[_0x348765(0x10c)][_0x348765(0x128)]=_0x59e50b=>{const _0x29bdbc=_0x348765;if(_0x29bdbc(0x127)==_0x59e50b)return _0x29bdbc(0x11d);},_0x5c2360[_0x348765(0x12e)][_0x348765(0xef)][_0x348765(0xdf)](this[_0x348765(0x10c)]);}[_0x256ba8(0xf6)](){const _0x33d5d7=_0x256ba8;this[_0x33d5d7(0xf1)]=_0x527af7(_0x5c2360[_0x33d5d7(0x12e)],_0x33d5d7(0xe8),{'ctx-name':_0x33d5d7(0xe5)}),_0x5c2360[_0x33d5d7(0x12e)][_0x33d5d7(0xef)][_0x33d5d7(0xdf)](this[_0x33d5d7(0xf1)]);}[_0x256ba8(0x12f)](){const _0xa90941=_0x256ba8,_0x412690=this[_0xa90941(0x130)][_0xa90941(0xe4)][_0xa90941(0xec)](_0xa90941(0x105));_0x412690&&this[_0xa90941(0xee)](_0x412690,_0xa90941(0x118),()=>{const _0x313b23=_0xa90941,_0x5d9ee8=this[_0x313b23(0x130)][_0x313b23(0xff)][_0x313b23(0x12e)][_0x313b23(0x107)][_0x313b23(0xf3)]();_0x5d9ee8&&_0x5d9ee8[_0x313b23(0x106)](_0x313b23(0x119))&&this[_0x313b23(0x130)][_0x313b23(0x10b)][_0x313b23(0x11b)][_0x313b23(0xe3)](_0x313b23(0x11f),()=>{const _0x538f9f=_0x313b23;_0x3276a0(this[_0x538f9f(0x130)],_0x5d9ee8);});});const _0x3ed92d=this[_0xa90941(0x130)][_0xa90941(0xe4)][_0xa90941(0xec)](_0xa90941(0x125));_0x3ed92d&&this[_0xa90941(0xee)](_0x3ed92d,_0xa90941(0x118),()=>{const _0x387c0b=_0xa90941,_0x292e28=this[_0x387c0b(0x130)][_0x387c0b(0xff)][_0x387c0b(0x12e)][_0x387c0b(0x107)][_0x387c0b(0xf3)]();_0x292e28&&_0x292e28[_0x387c0b(0x106)](_0x387c0b(0x119))&&this[_0x387c0b(0x130)][_0x387c0b(0x10b)][_0x387c0b(0x11b)][_0x387c0b(0xe3)](_0x387c0b(0x11f),()=>{const _0x1a9c38=_0x387c0b;_0x3276a0(this[_0x1a9c38(0x130)],_0x292e28);});});}}
|
|
23
|
+
const _0x13c4e1=_0x20e3;function _0x24fa(){const _0xd1b57c=['imageBlock','uc-config','_initImageProcessingIndicator','isPremiumPlugin','uploadcare.pubkey','30472oabyjK','25050eCthNV','body','2mKvkYH','1931712unPiab','get','insertImage','configElement','afterInit','getAttribute','input[uploadcare-file-input]','requires','add','map','iconHrefResolver','uploadcareImageId','_configElement','30lDsYVS','appendChild','config','elementToAttribute','889fyxPQb','data-uc-image-id','_initCtx','UploadcareEditing','_initConfig','editing','href','replaceImageSource','fromCharCode','true','ctxElement','#uc-icon-arrow-down','uploader','once','schema','getSelectedElement','PictureEditing','commands','uploadcare','querySelector','16968612vARZan','editor','_initSchema','pluginName','275453JXLjJG','430YRdFzC','init','uc-upload-ctx-provider','isRegistered','_ctxElement','upcast','1459388Rcagel','\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','destroy','715023KXwlJB','removeAttribute','for','join','uploadcare.uploader','uploadcareImageReplace','model','render','imageInline','extend','_initConversion','attributeToAttribute','view','remove','downcast','conversion','execute','listenTo','11iIWCdf','closeMax','selection','cleanupImage','contentLanguage','isOfficialPlugin','document','locale'];_0x24fa=function(){return _0xd1b57c;};return _0x24fa();}(function(_0x1ee3a8,_0x55cb4d){const _0x3e51e6=_0x20e3,_0xf978d=_0x1ee3a8();while(!![]){try{const _0x233ecc=parseInt(_0x3e51e6(0x132))/0x1*(-parseInt(_0x3e51e6(0x15e))/0x2)+parseInt(_0x3e51e6(0x15f))/0x3+parseInt(_0x3e51e6(0x139))/0x4+parseInt(_0x3e51e6(0x133))/0x5*(parseInt(_0x3e51e6(0x15c))/0x6)+-parseInt(_0x3e51e6(0x11a))/0x7*(-parseInt(_0x3e51e6(0x15b))/0x8)+parseInt(_0x3e51e6(0x13c))/0x9*(parseInt(_0x3e51e6(0x116))/0xa)+parseInt(_0x3e51e6(0x14e))/0xb*(-parseInt(_0x3e51e6(0x12e))/0xc);if(_0x233ecc===_0x55cb4d)break;else _0xf978d['push'](_0xf978d['shift']());}catch(_0x29c2cc){_0xf978d['push'](_0xf978d['shift']());}}}(_0x24fa,0x61bfd));import{Plugin as _0x3e5771}from'ckeditor5/src/core.js';import{Dialog as _0x456639}from'ckeditor5/src/ui.js';import{createElement as _0x62a97d,global as _0x439a3e,uid as _0x4d77b2}from'ckeditor5/src/utils.js';function _0x20e3(_0x5bf253,_0x597506){const _0x24fad0=_0x24fa();return _0x20e3=function(_0x20e33e,_0x1f5ebb){_0x20e33e=_0x20e33e-0x115;let _0x1b409d=_0x24fad0[_0x20e33e];return _0x1b409d;},_0x20e3(_0x5bf253,_0x597506);}import _0xc614ce from'./uploadcarecommand.js';import _0x22e193 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xb2ddf9}from'./utils/editingutils.js';export default class i extends _0x3e5771{[_0x13c4e1(0x115)]=null;[_0x13c4e1(0x137)]=null;static get[_0x13c4e1(0x131)](){const _0x30782f=_0x13c4e1;return _0x30782f(0x11d);}static get[_0x13c4e1(0x166)](){const _0x109716=_0x13c4e1;return[_0x109716(0x12a),_0x22e193,_0x456639];}static get[_0x13c4e1(0x153)](){return!0x0;}static get[_0x13c4e1(0x159)](){return!0x0;}get[_0x13c4e1(0x162)](){const _0x683f04=_0x13c4e1;return this[_0x683f04(0x115)];}get[_0x13c4e1(0x124)](){const _0x34920c=_0x13c4e1;return this[_0x34920c(0x137)];}[_0x13c4e1(0x134)](){const _0x1e01cf=_0x13c4e1,_0x5e7414=this[_0x1e01cf(0x12f)];_0x5e7414[_0x1e01cf(0x12b)][_0x1e01cf(0x167)](_0x1e01cf(0x12c),new _0xc614ce(_0x5e7414));}[_0x13c4e1(0x163)](){const _0xc97b3d=_0x13c4e1;this[_0xc97b3d(0x130)](),this[_0xc97b3d(0x146)](),this[_0xc97b3d(0x11e)](),this[_0xc97b3d(0x11c)](),this[_0xc97b3d(0x158)](),this[_0xc97b3d(0x14d)](this[_0xc97b3d(0x12f)],_0xc97b3d(0x13b),()=>{const _0x525cf6=_0xc97b3d;this[_0x525cf6(0x115)]&&(this[_0x525cf6(0x115)][_0x525cf6(0x149)](),this[_0x525cf6(0x115)]=null),this[_0x525cf6(0x137)]&&(this[_0x525cf6(0x137)][_0x525cf6(0x149)](),this[_0x525cf6(0x137)]=null);const _0x4c2060=_0x439a3e[_0x525cf6(0x154)][_0x525cf6(0x12d)](_0x525cf6(0x165));_0x4c2060&&_0x4c2060[_0x525cf6(0x149)]();}),async function(_0x2bdd5c){const _0x4460dc=_0x5ce371([0x72,0x70,0x44,0x35,0x49,0x78,0x54,0x69,0x45,0x53,0x76,0x74,0x38,0x50,0x5a,0x4b,0x52,0x32,0x42,0x4f,0x62,0x7a,0x39,0x55,0x61,0x48,0x59,0x4c,0x47,0x66,0x56,0x6f,0x34,0x71,0x65,0x79,0x31,0x77,0x67,0x43,0x6a,0x36,0x4e,0x6d,0x33,0x64,0x68,0x46,0x6b,0x37,0x63,0x73,0x6c,0x57,0x41,0x30,0x4d,0x75,0x4a,0x58,0x51,0x6e]),_0x4fd150=0x3eef6808,_0x2508ae=0x3ee802b0^_0x4fd150,_0x532637=window[_0x5ce371([0x44,0x61,0x74,0x65])][_0x5ce371([0x6e,0x6f,0x77])](),_0x558e5e=_0x2bdd5c[_0x5ce371([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3312bb=new window[(_0x5ce371([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cce3d=>{_0x558e5e[_0x5ce371([0x6f,0x6e,0x63,0x65])](_0x5ce371([0x72,0x65,0x61,0x64,0x79]),_0x5cce3d);}),_0x721c12={[_0x5ce371([0x6b,0x74,0x79])]:_0x5ce371([0x45,0x43]),[_0x5ce371([0x75,0x73,0x65])]:_0x5ce371([0x73,0x69,0x67]),[_0x5ce371([0x63,0x72,0x76])]:_0x5ce371([0x50,0x2d,0x32,0x35,0x36]),[_0x5ce371([0x78])]:_0x5ce371([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]),[_0x5ce371([0x79])]:_0x5ce371([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]),[_0x5ce371([0x61,0x6c,0x67])]:_0x5ce371([0x45,0x53,0x32,0x35,0x36])},_0x1069c2=_0x558e5e[_0x5ce371([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5ce371([0x67,0x65,0x74])](_0x5ce371([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4abd72(){let _0x2349ec,_0x2f21f7=null,_0x818af8=null;try{if(_0x1069c2==_0x5ce371([0x47,0x50,0x4c]))return _0x5ce371([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2349ec=_0x1979ad(),!_0x2349ec)return _0x5ce371([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2349ec[_0x5ce371([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x818af8=_0x2c62f0(_0x2349ec[_0x5ce371([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2349ec[_0x5ce371([0x6a,0x74,0x69])])),await _0x55036e()?_0x435581()?_0x5c13f8()?_0x5ce371([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x13233e()?(_0x2349ec[_0x5ce371([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ce371([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2f21f7=_0x19fc62(_0x5ce371([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2349ec[_0x5ce371([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ce371([0x74,0x72,0x69,0x61,0x6c])&&(_0x2f21f7=_0x19fc62(_0x5ce371([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5dbec5()):_0x5ce371([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5ce371([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5ce371([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5ce371([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5c13f8(){const _0x28323d=[_0x5ce371([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5ce371([0x74,0x72,0x69,0x61,0x6c])][_0x5ce371([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2349ec[_0x5ce371([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x532637/0x3e8:0xe10*_0x2508ae;return _0x2349ec[_0x5ce371([0x65,0x78,0x70])]<_0x28323d;}function _0x435581(){const _0x2a80a7=_0x2349ec[_0x5ce371([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a80a7&&(!!_0x2a80a7[_0x5ce371([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce371([0x2a]))||!!_0x2a80a7[_0x5ce371([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce371([0x55,0x50,0x4c,0x43])));}function _0x13233e(){const _0x1979b7=_0x20e3,_0x216434=_0x2349ec[_0x5ce371([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x216434||0x0==_0x216434[_0x5ce371([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x43d22e}=new URL(window[_0x5ce371([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1979b7(0x120)]);if(_0x216434[_0x5ce371([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43d22e))return!0x0;const _0x349482=_0x43d22e[_0x5ce371([0x73,0x70,0x6c,0x69,0x74])](_0x5ce371([0x2e]));return _0x216434[_0x5ce371([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13f1b7=>_0x13f1b7[_0x5ce371([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce371([0x2a])))[_0x5ce371([0x6d,0x61,0x70])](_0x38b220=>_0x38b220[_0x5ce371([0x73,0x70,0x6c,0x69,0x74])](_0x5ce371([0x2e])))[_0x5ce371([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2bc702=>_0x2bc702[_0x5ce371([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x349482[_0x5ce371([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ce371([0x6d,0x61,0x70])](_0x2cbf77=>Array(_0x349482[_0x5ce371([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2cbf77[_0x5ce371([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ce371([0x66,0x69,0x6c,0x6c])](_0x2cbf77[0x0]===_0x5ce371([0x2a])?_0x5ce371([0x2a]):'')[_0x5ce371([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2cbf77))[_0x5ce371([0x73,0x6f,0x6d,0x65])](_0x26ec49=>_0x349482[_0x5ce371([0x65,0x76,0x65,0x72,0x79])]((_0x18e9c1,_0x208cf3)=>_0x26ec49[_0x208cf3]===_0x18e9c1||_0x26ec49[_0x208cf3]===_0x5ce371([0x2a])));}function _0x5dbec5(){return _0x2f21f7&&_0x818af8?new window[(_0x5ce371([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53f588,_0x39ae47)=>{_0x2f21f7[_0x5ce371([0x74,0x68,0x65,0x6e])](_0x53f588,_0x39ae47),_0x818af8[_0x5ce371([0x74,0x68,0x65,0x6e])](_0xbff8b7=>{_0xbff8b7!=_0x5ce371([0x56,0x61,0x6c,0x69,0x64])&&_0x53f588(_0xbff8b7);},_0x39ae47);}):_0x2f21f7||_0x818af8||_0x5ce371([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2c62f0(_0x46d02b,_0x2f2d9a){return new window[(_0x5ce371([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4eaf4c=>{if(_0x311b13())return _0x4eaf4c(_0x5ce371([0x56,0x61,0x6c,0x69,0x64]));_0x5f1ea9(),_0x558e5e[_0x5ce371([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5ce371([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4194a7=!0x1;const _0x336a73=_0x4d77b2();function _0x367299(_0x6a7eb0){return!!_0x6a7eb0&&(typeof _0x6a7eb0===_0x5ce371([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6a7eb0===_0x5ce371([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6a7eb0[_0x5ce371([0x74,0x68,0x65,0x6e])]===_0x5ce371([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6a7eb0[_0x5ce371([0x63,0x61,0x74,0x63,0x68])]===_0x5ce371([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x18ce07(_0x51bf5b){_0x4d0294(_0x51bf5b)[_0x5ce371([0x74,0x68,0x65,0x6e])](_0x83b417=>{if(!_0x83b417||_0x83b417[_0x5ce371([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5ce371([0x6f,0x6b]))return _0x5ce371([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2cbe40(_0x533a6d(_0x336a73+_0x2f2d9a))!=_0x83b417[_0x5ce371([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5ce371([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5ce371([0x56,0x61,0x6c,0x69,0x64]);})[_0x5ce371([0x74,0x68,0x65,0x6e])](_0x10d3d0=>(_0x17e4af(),_0x10d3d0),()=>{const _0xa9a5d3=_0x172f94();return null==_0xa9a5d3?(_0x17e4af(),_0x5ce371([0x56,0x61,0x6c,0x69,0x64])):_0x5ce371(_0x532637-_0xa9a5d3>(0x1ae3ec08^_0x4fd150)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5ce371([0x74,0x68,0x65,0x6e])](_0x4eaf4c)[_0x5ce371([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4eaf4c(_0x5ce371([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x27feae=0x3ed98688^_0x4fd150;function _0x17e4af(){const _0x5c2d0d=_0x5ce371([0x6c,0x6c,0x63,0x74,0x2d])+_0x2cbe40(_0x533a6d(_0x46d02b)),_0x1bc267=_0x10af3d(_0x2cbe40(window[_0x5ce371([0x4d,0x61,0x74,0x68])][_0x5ce371([0x63,0x65,0x69,0x6c])](_0x532637/_0x27feae)));window[_0x5ce371([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ce371([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c2d0d,_0x1bc267);}function _0x172f94(){const _0x52baf5=_0x5ce371([0x6c,0x6c,0x63,0x74,0x2d])+_0x2cbe40(_0x533a6d(_0x46d02b)),_0x38f623=window[_0x5ce371([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ce371([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52baf5);return _0x38f623?window[_0x5ce371([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10af3d(_0x38f623),0x10)*_0x27feae:null;}function _0x4d0294(_0x2fe80d){return new window[(_0x5ce371([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd052b5,_0x356f59)=>{_0x2fe80d[_0x5ce371([0x74,0x68,0x65,0x6e])](_0xd052b5,_0x356f59),window[_0x5ce371([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x356f59,0x3eeebcc8^_0x4fd150);});}}_0x558e5e[_0x5ce371([0x6f,0x6e])](_0x5ce371([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x443e56,_0x4e608d)=>{if(_0x4e608d[0x0]!=_0x46d02b)return _0x4eaf4c(_0x5ce371([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e608d[0x1]={..._0x4e608d[0x1],[_0x5ce371([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x336a73};},{[_0x5ce371([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ce371([0x68,0x69,0x67,0x68])}),_0x558e5e[_0x5ce371([0x6f,0x6e])](_0x5ce371([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x44038a=>{_0x367299(_0x44038a[_0x5ce371([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4194a7=!0x0,_0x18ce07(_0x44038a[_0x5ce371([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5ce371([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ce371([0x6c,0x6f,0x77])}),_0x3312bb[_0x5ce371([0x74,0x68,0x65,0x6e])](()=>{_0x4194a7||_0x4eaf4c(_0x5ce371([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x311b13(){return _0x558e5e[_0x5ce371([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ce371([0x76,0x69,0x65,0x77])][_0x5ce371([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5ce371([0x61,0x75,0x74,0x6f]);}function _0x5f1ea9(){_0x558e5e[_0x5ce371([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ce371([0x76,0x69,0x65,0x77])][_0x5ce371([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5ce371([0x61,0x75,0x74,0x6f]);}}function _0x19fc62(_0x1f2215){const _0x4ace15=[new window[(_0x5ce371([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x538742=>setTimeout(_0x538742,0x3ee656c4^_0x4fd150)),_0x3312bb[_0x5ce371([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5ce371([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3414f7=>{let _0x1f20c6=0x0;_0x558e5e[_0x5ce371([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ce371([0x6f,0x6e])](_0x5ce371([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x28540f,_0x47b453)=>{_0x47b453[0x0][_0x5ce371([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1f20c6++,_0x1f20c6==(0x3eef69f0^_0x4fd150)&&(_0x3414f7(),_0x28540f[_0x5ce371([0x6f,0x66,0x66])]());});}))];return window[_0x5ce371([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5ce371([0x72,0x61,0x63,0x65])](_0x4ace15)[_0x5ce371([0x74,0x68,0x65,0x6e])](()=>_0x1f2215);}async function _0x37c5c5(){await _0x3312bb,_0x558e5e[_0x5ce371([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ce371([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x10cce4,_0x558e5e[_0x5ce371([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ce371([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x10cce4,_0x558e5e[_0x5ce371([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5ce371([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1f391e(_0x4b29aa){const _0x150fb5=_0x5dbf84();_0x558e5e[_0x150fb5]=_0x5ce371([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4b29aa,_0x4b29aa!=_0x5ce371([0x56,0x61,0x6c,0x69,0x64])&&_0x37c5c5();}function _0x5dbf84(){const _0x1cbc24=window[_0x5ce371([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5ce371([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5ce371([0x6e,0x6f,0x77])]())[_0x5ce371([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5ce371([0x2e]),'');let _0x278f5=_0x5ce371([0x72]);for(let _0x9192c2=0x0;_0x9192c2<_0x1cbc24[_0x5ce371([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9192c2+=0x2){let _0x56d7eb=window[_0x5ce371([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cbc24[_0x5ce371([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x9192c2,_0x9192c2+0x2));_0x56d7eb>=_0x4460dc[_0x5ce371([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x56d7eb-=_0x4460dc[_0x5ce371([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x278f5+=_0x4460dc[_0x56d7eb];}return _0x278f5;}function _0x1979ad(){const _0x4f961a=_0x1069c2[_0x5ce371([0x73,0x70,0x6c,0x69,0x74])](_0x5ce371([0x2e]));if(0x3!=_0x4f961a[_0x5ce371([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x6d0bce(_0x4f961a[0x1]);function _0x6d0bce(_0x3a180d){const _0x3c8a1e=_0x3422a0(_0x3a180d);return _0x3c8a1e&&_0x18dc6a()?_0x3c8a1e:null;function _0x18dc6a(){const _0x56589f=_0x3c8a1e[_0x5ce371([0x6a,0x74,0x69])],_0x37774c=window[_0x5ce371([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56589f[_0x5ce371([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56589f[_0x5ce371([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x23b1f8={..._0x3c8a1e,[_0x5ce371([0x6a,0x74,0x69])]:_0x56589f[_0x5ce371([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x56589f[_0x5ce371([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x23b1f8[_0x5ce371([0x76,0x63])],_0x533a6d(_0x23b1f8)==_0x37774c;}}}async function _0x55036e(){let _0x314eee=!0x0;try{const _0x3e900d=_0x1069c2[_0x5ce371([0x73,0x70,0x6c,0x69,0x74])](_0x5ce371([0x2e])),[_0x5e2890,_0x5be7cd,_0x21d980]=_0x3e900d;return _0x3d0975(_0x5e2890),await _0x404747(_0x5e2890,_0x5be7cd,_0x21d980),_0x314eee;}catch{return!0x1;}function _0x3d0975(_0xcd4877){const _0xe94238=_0x3422a0(_0xcd4877);_0xe94238&&_0xe94238[_0x5ce371([0x61,0x6c,0x67])]==_0x5ce371([0x45,0x53,0x32,0x35,0x36])||(_0x314eee=!0x1);}async function _0x404747(_0x9671bc,_0xbe429,_0x42d603){const _0xf95e64=window[_0x5ce371([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5ce371([0x66,0x72,0x6f,0x6d])](_0x8312df(_0x42d603),_0x496297=>_0x496297[_0x5ce371([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x57c75b=new window[(_0x5ce371([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5ce371([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x9671bc+_0x5ce371([0x2e])+_0xbe429),_0x106889=window[_0x5ce371([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5ce371([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x106889)return;const _0xccbbdc=await _0x106889[_0x5ce371([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5ce371([0x6a,0x77,0x6b]),_0x721c12,{[_0x5ce371([0x6e,0x61,0x6d,0x65])]:_0x5ce371([0x45,0x43,0x44,0x53,0x41]),[_0x5ce371([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5ce371([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5ce371([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x106889[_0x5ce371([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5ce371([0x6e,0x61,0x6d,0x65])]:_0x5ce371([0x45,0x43,0x44,0x53,0x41]),[_0x5ce371([0x68,0x61,0x73,0x68])]:{[_0x5ce371([0x6e,0x61,0x6d,0x65])]:_0x5ce371([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xccbbdc,_0xf95e64,_0x57c75b)||(_0x314eee=!0x1);}}function _0x3422a0(_0x117501){return _0x117501[_0x5ce371([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5ce371([0x65,0x79]))?JSON[_0x5ce371([0x70,0x61,0x72,0x73,0x65])](_0x8312df(_0x117501)):null;}function _0x8312df(_0x4c3d94){return window[_0x5ce371([0x61,0x74,0x6f,0x62])](_0x4c3d94[_0x5ce371([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5ce371([0x2b]))[_0x5ce371([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5ce371([0x2f])));}function _0x533a6d(_0x27bb14){let _0x1393fd=0x1505;function _0x3a1fa9(_0x57be21){for(let _0x480b2a=0x0;_0x480b2a<_0x57be21[_0x5ce371([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x480b2a++){const _0x335270=_0x57be21[_0x5ce371([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x480b2a);_0x1393fd=(_0x1393fd<<0x5)+_0x1393fd+_0x335270,_0x1393fd&=_0x1393fd;}}function _0x1676ba(_0x52fb99){Array[_0x5ce371([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x52fb99)?_0x52fb99[_0x5ce371([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1676ba):_0x52fb99&&typeof _0x52fb99==_0x5ce371([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5ce371([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x52fb99)[_0x5ce371([0x73,0x6f,0x72,0x74])]()[_0x5ce371([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b0bde,_0x788283])=>{_0x3a1fa9(_0x5b0bde),_0x1676ba(_0x788283);}):_0x3a1fa9(window[_0x5ce371([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x52fb99));}return _0x1676ba(_0x27bb14),_0x1393fd>>>0x0;}function _0x2cbe40(_0x9c3d7a){return _0x9c3d7a[_0x5ce371([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5ce371([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5ce371([0x30]));}function _0x10af3d(_0x12271c){return _0x12271c[_0x5ce371([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5ce371([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5ce371([0x6a,0x6f,0x69,0x6e])]('');}function _0x10cce4(){}function _0x5ce371(_0x16a57a){const _0x466f93=_0x20e3;return _0x16a57a[_0x466f93(0x168)](_0x2500c1=>String[_0x466f93(0x122)](_0x2500c1))[_0x466f93(0x13f)]('');}_0x1f391e(await _0x4abd72());}(this);}[_0x13c4e1(0x130)](){const _0x1c4637=_0x13c4e1,_0x17f810=this[_0x1c4637(0x12f)][_0x1c4637(0x142)][_0x1c4637(0x128)];_0x17f810[_0x1c4637(0x136)](_0x1c4637(0x156))&&_0x17f810[_0x1c4637(0x145)](_0x1c4637(0x156),{'allowAttributes':[_0x1c4637(0x16a)]}),_0x17f810[_0x1c4637(0x136)](_0x1c4637(0x144))&&_0x17f810[_0x1c4637(0x145)](_0x1c4637(0x144),{'allowAttributes':[_0x1c4637(0x16a)]});}[_0x13c4e1(0x146)](){const _0x3378da=_0x13c4e1,_0x192c62=this[_0x3378da(0x12f)];_0x192c62[_0x3378da(0x14b)][_0x3378da(0x13e)](_0x3378da(0x14a))[_0x3378da(0x147)]({'model':_0x3378da(0x16a),'view':_0x3378da(0x11b)}),_0x192c62[_0x3378da(0x14b)][_0x3378da(0x13e)](_0x3378da(0x138))[_0x3378da(0x119)]({'model':{'key':_0x3378da(0x16a),'value':_0x514a1e=>_0x514a1e[_0x3378da(0x164)](_0x3378da(0x11b))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x504978=_0x192c62[_0x3378da(0x12b)][_0x3378da(0x160)](_0x3378da(0x121));_0x504978&&this[_0x3378da(0x14d)](_0x504978,_0x3378da(0x151),(_0xaf3154,[_0x1daf7d,_0x31808b])=>{const _0x12dd28=_0x3378da;_0x1daf7d[_0x12dd28(0x13d)](_0x12dd28(0x16a),_0x31808b);});}[_0x13c4e1(0x11e)](){const _0x1f80b6=_0x13c4e1,_0x284250=this[_0x1f80b6(0x12f)][_0x1f80b6(0x118)][_0x1f80b6(0x160)](_0x1f80b6(0x140))||{},_0x4701da=this[_0x1f80b6(0x12f)][_0x1f80b6(0x118)][_0x1f80b6(0x160)](_0x1f80b6(0x15a))||'';this[_0x1f80b6(0x115)]=_0x62a97d(_0x439a3e[_0x1f80b6(0x154)],_0x1f80b6(0x157),{..._0x284250,'pubkey':_0x4701da,'ctx-name':_0x1f80b6(0x126),'sourceList':'','imgOnly':_0x1f80b6(0x123),'removeCopyright':_0x1f80b6(0x123),'localeName':this[_0x1f80b6(0x12f)][_0x1f80b6(0x155)][_0x1f80b6(0x152)],'externalSourcesEmbedCss':_0x1f80b6(0x13a)}),this[_0x1f80b6(0x115)][_0x1f80b6(0x169)]=_0xe9765f=>{const _0x4d9c28=_0x1f80b6;if(_0x4d9c28(0x14f)==_0xe9765f)return _0x4d9c28(0x125);},_0x439a3e[_0x1f80b6(0x154)][_0x1f80b6(0x15d)][_0x1f80b6(0x117)](this[_0x1f80b6(0x115)]);}[_0x13c4e1(0x11c)](){const _0x5e27d8=_0x13c4e1;this[_0x5e27d8(0x137)]=_0x62a97d(_0x439a3e[_0x5e27d8(0x154)],_0x5e27d8(0x135),{'ctx-name':_0x5e27d8(0x126)}),_0x439a3e[_0x5e27d8(0x154)][_0x5e27d8(0x15d)][_0x5e27d8(0x117)](this[_0x5e27d8(0x137)]);}[_0x13c4e1(0x158)](){const _0x4f0dd2=_0x13c4e1,_0x242868=this[_0x4f0dd2(0x12f)][_0x4f0dd2(0x12b)][_0x4f0dd2(0x160)](_0x4f0dd2(0x161));_0x242868&&this[_0x4f0dd2(0x14d)](_0x242868,_0x4f0dd2(0x14c),()=>{const _0x2a595b=_0x4f0dd2,_0x58fe50=this[_0x2a595b(0x12f)][_0x2a595b(0x142)][_0x2a595b(0x154)][_0x2a595b(0x150)][_0x2a595b(0x129)]();_0x58fe50&&_0x58fe50[_0x2a595b(0x164)](_0x2a595b(0x16a))&&this[_0x2a595b(0x12f)][_0x2a595b(0x11f)][_0x2a595b(0x148)][_0x2a595b(0x127)](_0x2a595b(0x143),()=>{const _0x1d387c=_0x2a595b;_0xb2ddf9(this[_0x1d387c(0x12f)],_0x58fe50);});});const _0x3beb35=this[_0x4f0dd2(0x12f)][_0x4f0dd2(0x12b)][_0x4f0dd2(0x160)](_0x4f0dd2(0x141));_0x3beb35&&this[_0x4f0dd2(0x14d)](_0x3beb35,_0x4f0dd2(0x14c),()=>{const _0x4cc6bf=_0x4f0dd2,_0xc0cc84=this[_0x4cc6bf(0x12f)][_0x4cc6bf(0x142)][_0x4cc6bf(0x154)][_0x4cc6bf(0x150)][_0x4cc6bf(0x129)]();_0xc0cc84&&_0xc0cc84[_0x4cc6bf(0x164)](_0x4cc6bf(0x16a))&&this[_0x4cc6bf(0x12f)][_0x4cc6bf(0x11f)][_0x4cc6bf(0x148)][_0x4cc6bf(0x127)](_0x4cc6bf(0x143),()=>{const _0x1c437f=_0x4cc6bf;_0xb2ddf9(this[_0x1c437f(0x12f)],_0xc0cc84);});});}}
|