@ckeditor/ckeditor5-uploadcare 45.2.1-alpha.2 → 45.2.1-alpha.3
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 _0x521371,Command as _0x25f6f5}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5617b1,IconGooglePhotos as _0x5de06c,IconGoogleDrive as _0x385103,IconFacebook as _0x4c2f1a,IconDropbox as _0x3eed63,IconUploadcareLink as _0x46e006,IconUploadcareImageUpload as _0x437ae3,IconError as et,IconUploadcareImageEdit as _0x1d7907}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xf4b58f,MenuBarMenuListItemButtonView as _0xc46d11,View as _0x170a73,FocusCycler as _0xd76bba,Dialog as _0x362d6a,DialogViewPosition as _0x43a803,SpinnerView as _0x3972cb,IconView as at,Notification as _0x34fbb2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x529866,DomEmitterMixin as _0x4f6d11,global as _0x4c88b9,getAncestors as _0x318d00,ObservableMixin as _0x55bf39,createElement as _0x22cfba,uid as _0x3f52ee}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2b9e6d}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x557afa,info as _0x3ed1a0}from'@uploadcare/upload-client';import*as _0x31ad4f from'@uploadcare/file-uploader';var o=function(_0x30fe8e){return _0x30fe8e['Local']='local',_0x30fe8e['URL']='url',_0x30fe8e['Dropbox']='dropbox',_0x30fe8e['GDrive']='gdrive',_0x30fe8e['Facebook']='facebook',_0x30fe8e['GPhotos']='gphotos',_0x30fe8e['OneDrive']='onedrive',_0x30fe8e;}({});function _(_0x144f8c,_0x1514e0,_0x302a0f){const t=_0x144f8c['t'],_0x5c4fcd=_0x144f8c['t'];switch(_0x1514e0){case o['Local']:return{'text':_0x5c4fcd('Insert'===_0x302a0f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5c4fcd('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x302a0f?_0x5c4fcd('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5c4fcd('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x302a0f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x302a0f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x302a0f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x302a0f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x302a0f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1514e0;}}class e extends _0x521371{['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 _0x536944=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x662106;for(const _0x45dc2d in _0x536944){const _0xd7674e=_0x45dc2d,_0x182593=_0x536944[_0xd7674e];if('uploadcareLicenseKeyValid'==_0x182593||'uploadcareLicenseKeyInvalid'==_0x182593||'uploadcareLicenseKeyExpired'==_0x182593||'uploadcareLicenseKeyDomainLimit'==_0x182593||'uploadcareLicenseKeyNotAllowed'==_0x182593||'uploadcareLicenseKeyEvaluationLimit'==_0x182593||'uploadcareLicenseKeyTrialLimit'==_0x182593||'uploadcareLicenseKeyUsageLimit'==_0x182593){delete _0x536944[_0xd7674e],_0x662106=_0x182593,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x662106&&_0x536944['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x662106&&_0x536944['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x662106&&_0x536944['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x662106&&_0x536944['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x662106&&_0x536944['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x662106&&_0x536944['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x662106&&_0x536944['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1df000}=this,_0x2c5b70=_0x1df000['commands']['get']('uploadcare');if(!_0x2c5b70)return;const _0x251da9=this['_normalizeConfigSourceList'](_0x1df000['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x237715,_0x487b00)=>{const _0x3e7617=this['_getIntegrationKey'](_0x487b00['type']);return _0x237715[_0x3e7617]||(_0x237715[_0x3e7617]=[]),_0x237715[_0x3e7617]['push'](_0x487b00),_0x237715;},{});_0x1df000['plugins']['has']('ImageInsertUI')&&_0x1df000['commands']['get']('uploadcare')&&Object['entries'](_0x251da9)['forEach'](([_0x1321dc,_0x5464ef])=>{_0x1df000['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1321dc,'observable':()=>_0x2c5b70,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5464ef),'formViewCreator':()=>this['_createDropdownButtons'](_0x5464ef),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5464ef),'override':'assetManager'!==_0x1321dc});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x13d9b1){const {locale:_0x4d26ce}=this['editor'];return _0x13d9b1['map'](_0x380bc1=>{const _0x534f27=_(_0x4d26ce,_0x380bc1,'Insert');switch(_0x380bc1){case o['Local']:return{'icon':_0x437ae3,'type':o['Local'],..._0x534f27};case o['URL']:return{'icon':_0x46e006,'type':o['URL'],..._0x534f27};case o['Dropbox']:return{'icon':_0x3eed63,'type':o['Dropbox'],..._0x534f27};case o['Facebook']:return{'icon':_0x4c2f1a,'type':o['Facebook'],..._0x534f27};case o['GDrive']:return{'icon':_0x385103,'type':o['GDrive'],..._0x534f27};case o['GPhotos']:return{'icon':_0x5de06c,'type':o['GPhotos'],..._0x534f27};case o['OneDrive']:return{'icon':_0x5617b1,'type':o['OneDrive'],..._0x534f27};}});}['_getIntegrationKey'](_0x368886){switch(_0x368886){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3aeabe,_0x5e0f24){const _0x1df351=this['editor'],_0x3e4d1d=new _0x3aeabe(_0x1df351['locale']),_0xdd9447=_0x1df351['commands']['get']('uploadcare');return _0x3e4d1d['bind']('isEnabled')['to'](_0xdd9447),_0x3e4d1d['on']('execute',()=>{_0xdd9447['execute'](_0x5e0f24);}),_0x3e4d1d;}['_createToolbarButton'](_0x1d8621){const {locale:_0x4cdbad}=this['editor'],_0x596cc8=this['editor']['plugins']['get']('ImageInsertUI'),_0x6f3e30=_0x1d8621[0x0],_0x3497b1=this['_createButton'](_0xf4b58f,_0x6f3e30['type']);return _0x3497b1['icon']=_0x6f3e30['icon'],_0x3497b1['bind']('label')['to'](_0x596cc8,'isImageSelected',_0xf26aef=>_(_0x4cdbad,_0x6f3e30['type'],_0xf26aef?'Replace':'Insert')['text']),_0x3497b1['tooltip']=!0x0,_0x3497b1;}['_createDropdownButtons'](_0x206d3e){const {locale:_0x43a08e}=this['editor'],_0x4faed7=this['editor']['plugins']['get']('ImageInsertUI');return _0x206d3e['map'](_0x176e67=>{const _0x587ab4=this['_createButton'](_0xf4b58f,_0x176e67['type']);return _0x587ab4['withText']=!0x0,_0x587ab4['icon']=_0x176e67['icon'],_0x587ab4['bind']('label')['to'](_0x4faed7,'isImageSelected',_0x5986ab=>_(_0x43a08e,_0x176e67['type'],_0x5986ab?'Replace':'Insert')['text']),_0x587ab4;});}['_createMenuBarButtons'](_0x475e18){return _0x475e18['map'](_0x4c5411=>{const _0x71683c=this['_createButton'](_0xc46d11,_0x4c5411['type']);return _0x71683c['icon']=_0x4c5411['icon'],_0x71683c['label']=_0x4c5411['shortText'],_0x71683c;});}}class q extends _0x170a73{['focusTracker'];['focusCycler'];constructor(_0xd42640){super(_0xd42640),this['focusTracker']=new _0x529866(),this['focusCycler']=new _0xd76bba({'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(_0x2c75b4){super(_0x2c75b4),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(_0x45c3e6,_0x20f867){const _0x40d6a9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x24ccd3=>_0x24ccd3<=_0x20f867)['map'](_0x5b25c1=>_0x45c3e6['replace'](/\/$/,'')+'/-/resize/'+_0x5b25c1+'x/\x20'+_0x5b25c1+'w');return{'imageFallbackUrl':_0x45c3e6,'imageSources':[{'srcset':_0x40d6a9['join'](',\x20'),'sizes':'(max-width:\x20'+_0x20f867+'px)\x20100vw,\x20'+_0x20f867+'px','type':'image/webp'}]};}function A(_0x26ff0,_0xb870c9,_0x391265){const _0x16a3df=_0x26ff0['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x16a3df?parseInt(_0x16a3df[0x1],0xa):_0xb870c9,'height':_0x16a3df?parseInt(_0x16a3df[0x2],0xa):_0x391265};}function m(_0x24bb3a,_0x133695){const _0x3a233d=Object['create'](_0x4f6d11),_0x423d8f=_0x24bb3a['plugins']['get']('ImageUtils'),_0x48ea6f=_0x24bb3a['editing']['mapper']['toViewElement'](_0x133695),_0x3fec7c=_0x423d8f['findViewImgElement'](_0x48ea6f),_0x249f0c=_0x24bb3a['editing']['view']['domConverter']['viewToDom'](_0x3fec7c),_0x5116f7=_0x133695['getAttribute']('width'),_0x333111=_0x133695['getAttribute']('height'),_0x5c0cc0='image-processing';_0x24bb3a['editing']['view']['change'](_0xff7f56=>{_0xff7f56['addClass'](_0x5c0cc0,_0x48ea6f),_0xff7f56['setStyle']('aspect-ratio',_0x5116f7+'/'+_0x333111,_0x3fec7c);}),_0x3a233d['listenTo'](_0x249f0c,'load',()=>{_0x3a233d['stopListening'](_0x249f0c,'load'),_0x24bb3a['editing']['view']['change'](_0x481263=>{_0x481263['removeClass'](_0x5c0cc0,_0x48ea6f),_0x481263['removeStyle']('aspect-ratio',_0x3fec7c);});});}function V(_0x5ce80f){if(Array['isArray'](_0x5ce80f)){const _0x3e9fda=_0x5ce80f['map'](V);return _0x2633f3=>_0x3e9fda['some'](_0x3ac0b8=>_0x3ac0b8(_0x2633f3));}if('origin'==_0x5ce80f){const _0x19f807=_0x4c88b9['window']['location']['origin'];return _0x947a0e=>new URL(_0x947a0e,_0x4c88b9['document']['baseURI'])['origin']==_0x19f807;}return'function'==typeof _0x5ce80f?_0x5ce80f:_0x5ce80f instanceof RegExp?_0x1c3208=>!(!_0x1c3208['match'](_0x5ce80f)&&!_0x1c3208['replace'](/^https?:\/\//,'')['match'](_0x5ce80f)):()=>!0x1;}function F(_0x46b17d,_0x3758cf){return _0x318d00(_0x46b17d['target'])['includes'](_0x3758cf);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x55bf39(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x13de15,_0xa45bf7,_0x3b6b9a){super(),this['_editor']=_0x13de15,this['_editing']=_0xa45bf7,this['_dialog']=_0x13de15['plugins']['get'](_0x362d6a),this['_api']=_0xa45bf7['ctxElement']['getAPI'](),this['_type']=_0x3b6b9a,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:_0x2bf002,model:_0xe0bd3f}=this['_editor'],_0x19b7a4=_0xe0bd3f['document']['selection']['getSelectedElement'](),_0x3008d6=_0x19b7a4&&(_0x19b7a4['is']('element','imageBlock')||_0x19b7a4['is']('element','imageInline'));this['_formView']=new S(_0x2bf002),this['_dialog']['show']({'id':'uploadCare','icon':_0x437ae3,'title':_(_0x2bf002,this['_type'],_0x3008d6?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x43a803['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x130829=>!F(_0x130829,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x536185}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x16e636=>{const _0x2b1ad4=_0x536185['length'];for(const _0x213e41 of _0x536185){const _0xbf7f9=_0x213e41===_0x536185[_0x2b1ad4-0x1],{cdnUrl:_0x4fa4e0,fileInfo:_0x4103bf}=_0x213e41;if(!_0x4fa4e0||!_0x4103bf)continue;const {width:_0x35478d,height:_0x110ab4}=_0x4103bf['imageInfo'],_0x130473=A(_0x4fa4e0,_0x35478d,_0x110ab4),_0x437092=E(_0x4fa4e0,_0x130473['width']),_0x2c96c3={'id':_0x4103bf['uuid'],'type':'image','attributes':{'imageDimension':_0x130473,..._0x437092}};this['_insertAsset'](_0x2c96c3,_0xbf7f9,_0x16e636);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x34125f=>{'idle'===_0x34125f['detail']['status']&&!_0x34125f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4d2738,_0x498b1b,_0x192a94){const _0x440965=this['_editor']['model']['document']['selection'],_0x14f98f=_0x440965['getSelectedElement'](),_0x32029e=!(!_0x14f98f||!_0x14f98f['is']('element','imageInline'));_0x192a94['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4d2738,_0x32029e),_0x498b1b||_0x192a94['setSelection'](_0x440965['getLastPosition']());}['_insertImage'](_0x13b1b0,_0xa4c49b){const _0x16d87e=this['_editor'],{imageDimension:_0x502838,imageFallbackUrl:_0x515b2f,imageSources:_0x4872f1}=_0x13b1b0['attributes'];_0x16d87e['execute']('insertImage',{'imageType':_0xa4c49b?'imageInline':null,'source':{'uploadcareImageId':_0x13b1b0['id'],'src':_0x515b2f,'sources':_0x4872f1,..._0x502838}});}}class n extends _0x25f6f5{['_editing'];['_controller']=null;static get['requires'](){return[_0x362d6a,i];}constructor(_0x1d9d30){super(_0x1d9d30),this['_editing']=_0x1d9d30['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5e211a){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x5e211a);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x1c6b00,publicKey:_0xcf2115,signal:_0x14bbea,onProgress:_0x1ba072}){return _0x557afa(_0x1c6b00,{'publicKey':_0xcf2115,'store':'auto','signal':_0x14bbea,'onProgress':_0x1ba072});}static['getInfo'](_0x7bb442,_0x1eef9f){return _0x3ed1a0(_0x7bb442,_0x1eef9f);}}class p extends _0x521371{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2b9e6d,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2646bc=this['editor'];if(!!!_0x2646bc['config']['get']('uploadcare'))return;_0x2646bc['plugins']['get'](_0x2b9e6d)['createUploadAdapter']=_0x219619=>new x(_0x219619,_0x2646bc),_0x2646bc['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1f3036,{imageElement:_0x40bdc2,data:_0x1d6bc4})=>{_0x2646bc['model']['change'](_0x5581f8=>{_0x5581f8['setAttribute']('uploadcareImageId',_0x1d6bc4['uploadcareImageId'],_0x40bdc2);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x55762f,_0x4fa48c){this['loader']=_0x55762f,this['editor']=_0x4fa48c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x17e4fe=this['editor']['config']['get']('uploadcare.pubkey'),_0x484a82=await this['loader']['file'];return C['upload']({'file':_0x484a82,'publicKey':_0x17e4fe,'signal':this['controller']['signal'],'onProgress':_0x7fad65=>{_0x7fad65&&_0x7fad65['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x7fad65['value']);}})['then'](async _0x31a29c=>{const {imageFallbackUrl:_0x30b9bd,imageSources:_0x5db87d}=E(_0x31a29c['cdnUrl'],_0x31a29c['imageInfo']['width']);return{'uploadcareImageId':_0x31a29c['uuid'],'default':_0x30b9bd,'sources':_0x5db87d};})['catch'](()=>{const _0x166da5=t('Cannot\x20upload\x20file:')+('\x20'+_0x484a82['name']+'.');return Promise['reject'](_0x166da5);});}['abort'](){this['controller']['abort']();}}class i extends _0x521371{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x362d6a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x4e95e8=this['editor'];_0x4e95e8['commands']['add']('uploadcare',new n(_0x4e95e8));}['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 _0x4b4392=_0x4c88b9['document']['querySelector']('input[uploadcare-file-input]');_0x4b4392&&_0x4b4392['remove']();}),async function(_0x56796e){const _0x1fc6bf=_0x49847c([0x36,0x48,0x47,0x6c,0x35,0x65,0x50,0x78,0x6e,0x46,0x72,0x75,0x70,0x76,0x73,0x49,0x61,0x64,0x42,0x4a,0x79,0x74,0x71,0x6a,0x39,0x6b,0x5a,0x6f,0x62,0x57,0x43,0x69,0x58,0x7a,0x38,0x54,0x55,0x4c,0x45,0x32,0x33,0x52,0x4b,0x56,0x31,0x4f,0x44,0x4d,0x6d,0x63,0x68,0x4e,0x59,0x30,0x67,0x77,0x53,0x41,0x37,0x51,0x34,0x66]),_0x475f1e=0x6b3e0328,_0x10be3a=0x6b3969f8^_0x475f1e,_0x102ac8=window[_0x49847c([0x44,0x61,0x74,0x65])][_0x49847c([0x6e,0x6f,0x77])](),_0x5d9093=_0x56796e[_0x49847c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x20a4f8=new window[(_0x49847c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x537ef3=>{_0x5d9093[_0x49847c([0x6f,0x6e,0x63,0x65])](_0x49847c([0x72,0x65,0x61,0x64,0x79]),_0x537ef3);}),_0x4716cc={[_0x49847c([0x6b,0x74,0x79])]:_0x49847c([0x45,0x43]),[_0x49847c([0x75,0x73,0x65])]:_0x49847c([0x73,0x69,0x67]),[_0x49847c([0x63,0x72,0x76])]:_0x49847c([0x50,0x2d,0x32,0x35,0x36]),[_0x49847c([0x78])]:_0x49847c([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]),[_0x49847c([0x79])]:_0x49847c([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]),[_0x49847c([0x61,0x6c,0x67])]:_0x49847c([0x45,0x53,0x32,0x35,0x36])},_0x20db0a=_0x5d9093[_0x49847c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x49847c([0x67,0x65,0x74])](_0x49847c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x37e674(){let _0x61a567,_0x36be7e=null,_0x2694fd=null;try{if(_0x20db0a==_0x49847c([0x47,0x50,0x4c]))return _0x49847c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x61a567=_0x54d373(),!_0x61a567)return _0x49847c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x61a567[_0x49847c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2694fd=_0x5e2b04(_0x61a567[_0x49847c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x61a567[_0x49847c([0x6a,0x74,0x69])])),await _0x2fb4d9()?_0x433885()?_0x1c5c4b()?_0x49847c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x33327a()?(_0x61a567[_0x49847c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49847c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x36be7e=_0x5711e5(_0x49847c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x61a567[_0x49847c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49847c([0x74,0x72,0x69,0x61,0x6c])&&(_0x36be7e=_0x5711e5(_0x49847c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x21cfa3()):_0x49847c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x49847c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x49847c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x49847c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c5c4b(){const _0x12fc3d=[_0x49847c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x49847c([0x74,0x72,0x69,0x61,0x6c])][_0x49847c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x61a567[_0x49847c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x102ac8/0x3e8:0xe10*_0x10be3a;return _0x61a567[_0x49847c([0x65,0x78,0x70])]<_0x12fc3d;}function _0x433885(){const _0x4e831d=_0x61a567[_0x49847c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4e831d&&(!!_0x4e831d[_0x49847c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49847c([0x2a]))||!!_0x4e831d[_0x49847c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49847c([0x55,0x50,0x4c,0x43])));}function _0x33327a(){const _0x58b363=_0x61a567[_0x49847c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58b363||0x0==_0x58b363[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x46bbec}=new URL(window[_0x49847c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x58b363[_0x49847c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46bbec))return!0x0;const _0x1cb151=_0x46bbec[_0x49847c([0x73,0x70,0x6c,0x69,0x74])](_0x49847c([0x2e]));return _0x58b363[_0x49847c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x578877=>_0x578877[_0x49847c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49847c([0x2a])))[_0x49847c([0x6d,0x61,0x70])](_0x5c9072=>_0x5c9072[_0x49847c([0x73,0x70,0x6c,0x69,0x74])](_0x49847c([0x2e])))[_0x49847c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c6e2f=>_0x1c6e2f[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1cb151[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x49847c([0x6d,0x61,0x70])](_0x595dc7=>Array(_0x1cb151[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x595dc7[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x49847c([0x66,0x69,0x6c,0x6c])](_0x595dc7[0x0]===_0x49847c([0x2a])?_0x49847c([0x2a]):'')[_0x49847c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x595dc7))[_0x49847c([0x73,0x6f,0x6d,0x65])](_0x3481ab=>_0x1cb151[_0x49847c([0x65,0x76,0x65,0x72,0x79])]((_0x49ec22,_0x3ebdb9)=>_0x3481ab[_0x3ebdb9]===_0x49ec22||_0x3481ab[_0x3ebdb9]===_0x49847c([0x2a])));}function _0x21cfa3(){return _0x36be7e&&_0x2694fd?new window[(_0x49847c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xeb7ea4,_0x440ac2)=>{_0x36be7e[_0x49847c([0x74,0x68,0x65,0x6e])](_0xeb7ea4,_0x440ac2),_0x2694fd[_0x49847c([0x74,0x68,0x65,0x6e])](_0x3a318b=>{_0x3a318b!=_0x49847c([0x56,0x61,0x6c,0x69,0x64])&&_0xeb7ea4(_0x3a318b);},_0x440ac2);}):_0x36be7e||_0x2694fd||_0x49847c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5e2b04(_0x260e52,_0x53cd5b){return new window[(_0x49847c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19a086=>{if(_0x4dfbe5())return _0x19a086(_0x49847c([0x56,0x61,0x6c,0x69,0x64]));_0x673aab(),_0x5d9093[_0x49847c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x49847c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x471a36=!0x1;const _0x5975d9=_0x3f52ee();function _0x4922e9(_0x194f78){return!!_0x194f78&&(typeof _0x194f78===_0x49847c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x194f78===_0x49847c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x194f78[_0x49847c([0x74,0x68,0x65,0x6e])]===_0x49847c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x194f78[_0x49847c([0x63,0x61,0x74,0x63,0x68])]===_0x49847c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x499d26(_0x3c5a0e){_0xb32761(_0x3c5a0e)[_0x49847c([0x74,0x68,0x65,0x6e])](_0x589149=>{if(!_0x589149||_0x589149[_0x49847c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x49847c([0x6f,0x6b]))return _0x49847c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2ca7f3(_0x36aa8e(_0x5975d9+_0x53cd5b))!=_0x589149[_0x49847c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x49847c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x49847c([0x56,0x61,0x6c,0x69,0x64]);})[_0x49847c([0x74,0x68,0x65,0x6e])](_0x3beb43=>(_0x5ec476(),_0x3beb43),()=>{const _0x2b97f7=_0x324c2f();return null==_0x2b97f7?(_0x5ec476(),_0x49847c([0x56,0x61,0x6c,0x69,0x64])):_0x49847c(_0x102ac8-_0x2b97f7>(0x4f328728^_0x475f1e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x49847c([0x74,0x68,0x65,0x6e])](_0x19a086)[_0x49847c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x19a086(_0x49847c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ab61f=0x6b08eda8^_0x475f1e;function _0x5ec476(){const _0x28a7d0=_0x49847c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ca7f3(_0x36aa8e(_0x260e52)),_0x1ca1b6=_0x4e2f43(_0x2ca7f3(window[_0x49847c([0x4d,0x61,0x74,0x68])][_0x49847c([0x63,0x65,0x69,0x6c])](_0x102ac8/_0x3ab61f)));window[_0x49847c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49847c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28a7d0,_0x1ca1b6);}function _0x324c2f(){const _0x427e8e=_0x49847c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ca7f3(_0x36aa8e(_0x260e52)),_0x6aa77d=window[_0x49847c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49847c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x427e8e);return _0x6aa77d?window[_0x49847c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e2f43(_0x6aa77d),0x10)*_0x3ab61f:null;}function _0xb32761(_0x5f3c3f){return new window[(_0x49847c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e6b35,_0x5f51b0)=>{_0x5f3c3f[_0x49847c([0x74,0x68,0x65,0x6e])](_0x5e6b35,_0x5f51b0),window[_0x49847c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5f51b0,0x6b3fd7e8^_0x475f1e);});}}_0x5d9093[_0x49847c([0x6f,0x6e])](_0x49847c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x112e70,_0xd644df)=>{if(_0xd644df[0x0]!=_0x260e52)return _0x19a086(_0x49847c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd644df[0x1]={..._0xd644df[0x1],[_0x49847c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5975d9};},{[_0x49847c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49847c([0x68,0x69,0x67,0x68])}),_0x5d9093[_0x49847c([0x6f,0x6e])](_0x49847c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2974c9=>{_0x4922e9(_0x2974c9[_0x49847c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x471a36=!0x0,_0x499d26(_0x2974c9[_0x49847c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x49847c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49847c([0x6c,0x6f,0x77])}),_0x20a4f8[_0x49847c([0x74,0x68,0x65,0x6e])](()=>{_0x471a36||_0x19a086(_0x49847c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4dfbe5(){return _0x5d9093[_0x49847c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49847c([0x76,0x69,0x65,0x77])][_0x49847c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x49847c([0x61,0x75,0x74,0x6f]);}function _0x673aab(){_0x5d9093[_0x49847c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49847c([0x76,0x69,0x65,0x77])][_0x49847c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x49847c([0x61,0x75,0x74,0x6f]);}}function _0x5711e5(_0x5d7821){const _0x50916a=[new window[(_0x49847c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38b195=>setTimeout(_0x38b195,0x6b373de4^_0x475f1e)),_0x20a4f8[_0x49847c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x49847c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b84ab=>{let _0xf71529=0x0;_0x5d9093[_0x49847c([0x6d,0x6f,0x64,0x65,0x6c])][_0x49847c([0x6f,0x6e])](_0x49847c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b0071,_0x5e5ec4)=>{_0x5e5ec4[0x0][_0x49847c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xf71529++,_0xf71529==(0x6b3e02d0^_0x475f1e)&&(_0x4b84ab(),_0x2b0071[_0x49847c([0x6f,0x66,0x66])]());});}))];return window[_0x49847c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x49847c([0x72,0x61,0x63,0x65])](_0x50916a)[_0x49847c([0x74,0x68,0x65,0x6e])](()=>_0x5d7821);}async function _0x2d4643(){await _0x20a4f8,_0x5d9093[_0x49847c([0x6d,0x6f,0x64,0x65,0x6c])][_0x49847c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3db9ab,_0x5d9093[_0x49847c([0x6d,0x6f,0x64,0x65,0x6c])][_0x49847c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3db9ab,_0x5d9093[_0x49847c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x49847c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ebba8(_0x200f17){const _0x1ef7ec=_0x36799b();_0x5d9093[_0x1ef7ec]=_0x49847c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x200f17,_0x200f17!=_0x49847c([0x56,0x61,0x6c,0x69,0x64])&&_0x2d4643();}function _0x36799b(){const _0x2bcf4d=window[_0x49847c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x49847c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x49847c([0x6e,0x6f,0x77])]())[_0x49847c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x49847c([0x2e]),'');let _0x168fb6=_0x49847c([0x48]);for(let _0x322603=0x0;_0x322603<_0x2bcf4d[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x322603+=0x2){let _0x55129c=window[_0x49847c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bcf4d[_0x49847c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x322603,_0x322603+0x2));_0x55129c>=_0x1fc6bf[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x55129c-=_0x1fc6bf[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x168fb6+=_0x1fc6bf[_0x55129c];}return _0x168fb6;}function _0x54d373(){const _0x20b597=_0x20db0a[_0x49847c([0x73,0x70,0x6c,0x69,0x74])](_0x49847c([0x2e]));if(0x3!=_0x20b597[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x546fb9(_0x20b597[0x1]);function _0x546fb9(_0xcc5c97){const _0x301f18=_0x400d0a(_0xcc5c97);return _0x301f18&&_0x329f34()?_0x301f18:null;function _0x329f34(){const _0x4ef19a=_0x301f18[_0x49847c([0x6a,0x74,0x69])],_0x4cc02c=window[_0x49847c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ef19a[_0x49847c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ef19a[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x54280e={..._0x301f18,[_0x49847c([0x6a,0x74,0x69])]:_0x4ef19a[_0x49847c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4ef19a[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x54280e[_0x49847c([0x76,0x63])],_0x36aa8e(_0x54280e)==_0x4cc02c;}}}async function _0x2fb4d9(){let _0x23b6ee=!0x0;try{const _0x4d6fda=_0x20db0a[_0x49847c([0x73,0x70,0x6c,0x69,0x74])](_0x49847c([0x2e])),[_0x3cc315,_0x49b4b5,_0x254715]=_0x4d6fda;return _0x37fc71(_0x3cc315),await _0x4caf7f(_0x3cc315,_0x49b4b5,_0x254715),_0x23b6ee;}catch{return!0x1;}function _0x37fc71(_0x12fc3f){const _0x5be9d8=_0x400d0a(_0x12fc3f);_0x5be9d8&&_0x5be9d8[_0x49847c([0x61,0x6c,0x67])]==_0x49847c([0x45,0x53,0x32,0x35,0x36])||(_0x23b6ee=!0x1);}async function _0x4caf7f(_0x46dd08,_0x525f4d,_0x1dfc29){const _0x31eb00=window[_0x49847c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x49847c([0x66,0x72,0x6f,0x6d])](_0x5dfb82(_0x1dfc29),_0x4083c4=>_0x4083c4[_0x49847c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x8fbc5d=new window[(_0x49847c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x49847c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x46dd08+_0x49847c([0x2e])+_0x525f4d),_0x27a935=window[_0x49847c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x49847c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27a935)return;const _0x2fc811=await _0x27a935[_0x49847c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x49847c([0x6a,0x77,0x6b]),_0x4716cc,{[_0x49847c([0x6e,0x61,0x6d,0x65])]:_0x49847c([0x45,0x43,0x44,0x53,0x41]),[_0x49847c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x49847c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x49847c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27a935[_0x49847c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x49847c([0x6e,0x61,0x6d,0x65])]:_0x49847c([0x45,0x43,0x44,0x53,0x41]),[_0x49847c([0x68,0x61,0x73,0x68])]:{[_0x49847c([0x6e,0x61,0x6d,0x65])]:_0x49847c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2fc811,_0x31eb00,_0x8fbc5d)||(_0x23b6ee=!0x1);}}function _0x400d0a(_0xbcd9c7){return _0xbcd9c7[_0x49847c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x49847c([0x65,0x79]))?JSON[_0x49847c([0x70,0x61,0x72,0x73,0x65])](_0x5dfb82(_0xbcd9c7)):null;}function _0x5dfb82(_0x5ae797){return window[_0x49847c([0x61,0x74,0x6f,0x62])](_0x5ae797[_0x49847c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x49847c([0x2b]))[_0x49847c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x49847c([0x2f])));}function _0x36aa8e(_0x4d1722){let _0x2e973f=0x1505;function _0xd60536(_0x5e72a2){for(let _0x8bb8cf=0x0;_0x8bb8cf<_0x5e72a2[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8bb8cf++){const _0x5a4696=_0x5e72a2[_0x49847c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x8bb8cf);_0x2e973f=(_0x2e973f<<0x5)+_0x2e973f+_0x5a4696,_0x2e973f&=_0x2e973f;}}function _0x2aec90(_0x1876ac){Array[_0x49847c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1876ac)?_0x1876ac[_0x49847c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2aec90):_0x1876ac&&typeof _0x1876ac==_0x49847c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x49847c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1876ac)[_0x49847c([0x73,0x6f,0x72,0x74])]()[_0x49847c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2afd6f,_0x371467])=>{_0xd60536(_0x2afd6f),_0x2aec90(_0x371467);}):_0xd60536(window[_0x49847c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1876ac));}return _0x2aec90(_0x4d1722),_0x2e973f>>>0x0;}function _0x2ca7f3(_0x4c9996){return _0x4c9996[_0x49847c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x49847c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x49847c([0x30]));}function _0x4e2f43(_0x3e49e6){return _0x3e49e6[_0x49847c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x49847c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x49847c([0x6a,0x6f,0x69,0x6e])]('');}function _0x3db9ab(){}function _0x49847c(_0x1b7acb){return _0x1b7acb['map'](_0x420350=>String['fromCharCode'](_0x420350))['join']('');}_0x3ebba8(await _0x37e674());}(this);}['_initSchema'](){const _0x6f0f68=this['editor']['model']['schema'];_0x6f0f68['isRegistered']('imageBlock')&&_0x6f0f68['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x6f0f68['isRegistered']('imageInline')&&_0x6f0f68['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3c6cf6=this['editor'];_0x3c6cf6['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3c6cf6['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1c7573=>_0x1c7573['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x58c1ec=_0x3c6cf6['commands']['get']('replaceImageSource');_0x58c1ec&&this['listenTo'](_0x58c1ec,'cleanupImage',(_0x132b50,[_0x4fdbb0,_0x5725b7])=>{_0x4fdbb0['removeAttribute']('uploadcareImageId',_0x5725b7);});}['_initConfig'](){const _0x214454=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1e6b82=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x22cfba(_0x4c88b9['document'],'uc-config',{..._0x214454,'pubkey':_0x1e6b82,'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']=_0x197a9e=>{if('closeMax'==_0x197a9e)return'#uc-icon-arrow-down';},_0x4c88b9['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x22cfba(_0x4c88b9['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x4c88b9['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x479cae=this['editor']['commands']['get']('insertImage');_0x479cae&&this['listenTo'](_0x479cae,'execute',()=>{const _0x27e171=this['editor']['model']['document']['selection']['getSelectedElement']();_0x27e171&&_0x27e171['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x27e171);});});const _0x5adfa0=this['editor']['commands']['get']('uploadcareImageReplace');_0x5adfa0&&this['listenTo'](_0x5adfa0,'execute',()=>{const _0x40017a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x40017a&&_0x40017a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x40017a);});});}}class u extends _0x521371{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x22d069){super(_0x22d069),_0x22d069['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x31ad4f['defineComponents'](_0x31ad4f);}}class ta extends _0x170a73{constructor(_0x115c23){super(_0x115c23);const t=_0x115c23['t'],_0xbe8b46=this['bindTemplate'],_0x27e36d=new _0x3972cb();_0x27e36d['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':[_0x27e36d,{'text':_0xbe8b46['to']('imageUploadProgress',_0x4bd558=>t('Loading\x20image...')+'\x20('+(_0x4bd558||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 _0x170a73{constructor(_0x4954f7){super(_0x4954f7);const t=_0x4954f7['t'];this['set']('errorType',null);const _0x311a64=new _0xf4b58f(_0x4954f7);_0x311a64['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x311a64['withText']=!0x0,_0x311a64['class']='ck-button-action',_0x311a64['on']('execute',()=>{this['fire']('retry');}),_0x311a64['bind']('isVisible')['to'](this,'errorType',_0x26da1f=>'NotFound'!==_0x26da1f);const _0x480a24=new at();_0x480a24['content']=et,_0x480a24['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x110154=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':[_0x480a24,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x110154['to']('errorType',_0x2f284b=>t('NotFound'!==_0x2f284b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x311a64]},{'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 _0x170a73{constructor(_0x40d1e4,_0x1bdfc4){super(_0x40d1e4);const _0x4e2677=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1bdfc4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4e2677['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x315a2c,_0x8e5ae9,_0x2c4044){super(_0x315a2c),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x315a2c),this['_errorView']=new rt(_0x315a2c),this['_editingView']=new tt(_0x315a2c,_0x2c4044),this['_focusableView']=new _0x170a73(_0x315a2c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x8e5ae9),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'],_0x3b2083=>{this['_addUploadcareImageEditorListeners'](_0x3b2083);});}),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'](_0x4f4644,_0x35d624){const _0x298367='uc-cloud-image-editor',_0x2ca4c5=_0x4f4644['querySelector'](_0x298367);if(_0x2ca4c5)return _0x35d624(_0x2ca4c5);const _0x30de63=new MutationObserver(_0xf59710=>{const _0xbcf4b=_0xf59710['filter'](_0x4fd2c7=>_0x4fd2c7['target']===_0x4f4644&&_0x4fd2c7['addedNodes']['length']>0x0&&_0x4fd2c7['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x298367);_0xbcf4b['length']&&(_0x30de63['disconnect'](),_0x35d624(_0xbcf4b[0x0]['addedNodes'][0x0]));});_0x30de63['observe'](_0x4f4644,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x419491){_0x419491['addEventListener']('apply',_0xe38f69=>{this['fire']('apply',{'imageSrc':_0xe38f69['detail']['cdnUrl']});}),_0x419491['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x55bf39(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5e526b,_0x161daf,_0x43f2a4){super(),this['_editor']=_0x5e526b,this['_dialog']=_0x161daf,this['_imageElement']=_0x43f2a4,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 _0xc96e3e=this['_imageElement'],_0x284d8b=_0xc96e3e['getAttribute']('uploadcareImageId'),_0x439839=_0xc96e3e['getAttribute']('src');if(_0x284d8b)await this['_loadImageInfo'](_0x284d8b,_0x439839);else{if(this['_imageCache']['has'](_0x439839)){const _0x325bfe=this['_imageCache']['get'](_0x439839);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x325bfe['url'],this['imageDimension']=_0x325bfe['dimension'],this['imageId']=_0x325bfe['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x492a79}=this['_editor'],t=_0x492a79['t'],_0x47a5a3=new Z(_0x492a79,this['imageStatus'],this['_attributes']);_0x47a5a3['bind']('status')['to'](this,'imageStatus'),_0x47a5a3['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x47a5a3['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x47a5a3['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x47a5a3,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1d7907,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x47a5a3,'position':_0x43a803['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x47a5a3['focus']();},'onHide':()=>{_0x47a5a3['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x19687b=>!F(_0x19687b,_0x47a5a3['element'])}});}['_loadImageInfo'](_0x48b237,_0x46b41c){return C['getInfo'](_0x48b237,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3dd600=>{const {width:_0x23ce0a,height:_0x50e065}=_0x3dd600['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x46b41c,this['imageDimension']={'width':_0x23ce0a,'height':_0x50e065},this['imageId']=_0x48b237;})['catch'](_0x5ce4f1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5ce4f1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1f99b1,_0x45a70d){return this['_getImageAsFile'](_0x1f99b1)['then'](_0x5cbc05=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x45a70d['signal'],'file':_0x5cbc05,'onProgress':_0x57cb77=>{_0x57cb77&&_0x57cb77['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x57cb77['value']));}}))['then'](_0x24677d=>{const {width:_0x2e3284,height:_0x45e33b}=_0x24677d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x24677d['cdnUrl'],this['imageDimension']={'width':_0x2e3284,'height':_0x45e33b},this['imageId']=_0x24677d['uuid'],this['imageUploadProgress']=null;const _0x3a6402=_0x1f99b1['getAttribute']('src');this['_imageCache']['set'](_0x3a6402,{'id':_0x24677d['uuid'],'url':_0x24677d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2ed9fb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2ed9fb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4b8461,_0x247c14){_0x4b8461['on']('apply',(_0x193f77,_0x2c7e62)=>{this['_replaceImage'](_0x247c14,_0x2c7e62['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4b8461['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4b8461['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x24826f,_0xd36177,_0x523e25){const _0x591311=this['_editor'],{width:_0x3f2dc0,height:_0x4f114b}=A(_0xd36177,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1b7049,imageSources:_0x18d4b7}=E(_0xd36177,_0x3f2dc0);_0x591311['model']['change'](_0x3379e9=>{if('$graveyard'===_0x24826f['root']['rootName']){_0x591311['execute']('insertImage',{'imageType':_0x24826f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x24826f['getAttributes']()),'uploadcareImageId':_0x523e25,'src':_0x1b7049,'sources':_0x18d4b7,'width':_0x3f2dc0,'height':_0x4f114b}});const _0x378503=_0x24826f['getChildren']();_0x24826f=_0x591311['model']['document']['selection']['getSelectedElement']();for(const _0x183ca8 of _0x378503)_0x3379e9['append'](_0x3379e9['cloneElement'](_0x183ca8),_0x24826f);}else _0x3379e9['setSelection'](_0x24826f,'on'),_0x591311['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x24826f['getAttributes']()),'uploadcareImageId':_0x523e25,'src':_0x1b7049,'sources':_0x18d4b7,'width':_0x3f2dc0,'height':_0x4f114b},_0x24826f);_0x3379e9['setSelection'](_0x24826f,'on');});}async['_getImageAsFile'](_0x22cc44){const _0x5e82d4=_0x4c88b9['window'],_0x399505=_0x4c88b9['document']['location']['href'],_0x47f47f=new _0x5e82d4['URL'](_0x22cc44['getAttribute']('src'),_0x399505);if('data:'===_0x47f47f['protocol']){const _0x38155f=_0x47f47f['href']['split'](','),_0x1b9744=_0x38155f[0x0]['match'](/:(.*?);/)[0x1],_0x786728=_0x1b9744['split']('/')[0x1],_0x5231aa=_0x5e82d4['atob'](_0x38155f[_0x38155f['length']-0x1]);let _0x31ad11=_0x5231aa['length'];const _0x380aae=new _0x5e82d4['Uint8Array'](_0x31ad11);for(;_0x31ad11--;)_0x380aae[_0x31ad11]=_0x5231aa['charCodeAt'](_0x31ad11);return new _0x5e82d4['File']([_0x380aae],'image.'+_0x786728,{'type':_0x1b9744});}const _0x5cb8eb=_0x47f47f['href']['split']('/'),_0x29fbd3=_0x5cb8eb[_0x5cb8eb['length']-0x1],_0x316f46=_0x29fbd3['split']('.')[0x1];return _0x5e82d4['fetch'](_0x47f47f['href'])['then'](_0x438bb6=>_0x438bb6['clone']()['blob']())['then'](_0x2310a8=>new _0x5e82d4['File']([_0x2310a8],_0x29fbd3,{'type':'image/'+_0x316f46}));}}class J extends _0x25f6f5{['imageEditController'];static get['requires'](){return[_0x362d6a];}['_isEditable'];constructor(_0x498ddc){super(_0x498ddc),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3a097e){const _0x2bb6c0=V(_0x3a097e);return _0x5bd794=>!(!_0x5bd794||!_0x5bd794['is']('element','imageBlock')&&!_0x5bd794['is']('element','imageInline'))&&(!!_0x5bd794['hasAttribute']('uploadcareImageId')||!!_0x5bd794['hasAttribute']('src')&&_0x2bb6c0(_0x5bd794['getAttribute']('src')));}(_0x498ddc['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x56d7fd=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x56d7fd);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x22fa98=this['editor']['model']['document']['selection']['getSelectedElement']();_0x22fa98&&(_0x22fa98['is']('element','imageBlock')||_0x22fa98['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x362d6a),_0x22fa98),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x25f6f5{['refresh'](){const _0x61c033=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x61c033&&(_0x61c033['is']('element','imageBlock')||_0x61c033['is']('element','imageInline')));}['execute'](_0x45b282){const _0x3066c1=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x54dca2=>{_0x54dca2['setAttributes'](_0x45b282,_0x3066c1),_0x54dca2['removeAttribute']('srcset',_0x3066c1),_0x54dca2['removeAttribute']('sizes',_0x3066c1);});}}class g extends _0x521371{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x34fbb2,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xf00371}=this;_0xf00371['commands']['add']('uploadcareImageEdit',new J(_0xf00371)),_0xf00371['commands']['add']('uploadcareImageReplace',new O(_0xf00371));}}class j extends _0x521371{['_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 _0x35a9e6=this['editor'];_0x35a9e6['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5a193d=>{const _0x2275bc=_0x35a9e6['commands']['get']('uploadcareImageEdit'),_0x2dd023=new _0xf4b58f(_0x5a193d),t=_0x5a193d['t'];return _0x2dd023['set']({'icon':_0x1d7907,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2dd023['bind']('isEnabled')['to'](_0x2275bc),_0x2dd023['bind']('isOn')['to'](_0x2275bc,'isActive'),this['listenTo'](_0x2dd023,'execute',()=>{_0x35a9e6['execute']('uploadcareImageEdit'),_0x35a9e6['editing']['view']['focus']();}),_0x2dd023;}),this['_initConfig']();}['_initConfig'](){const _0x8842ea=_0x22cfba(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x8842ea),this['listenTo'](this['editor'],'destroy',()=>{_0x8842ea['remove']();});}}class P extends _0x521371{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 _0x397c76,Command as _0x1fc00a}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x575e70,IconGooglePhotos as _0x3c5983,IconGoogleDrive as _0x27c4ac,IconFacebook as _0x2edc33,IconDropbox as _0x1b7b64,IconUploadcareLink as _0x3f29b2,IconUploadcareImageUpload as _0xce6a78,IconError as et,IconUploadcareImageEdit as _0x47daa7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x23acc8,MenuBarMenuListItemButtonView as _0x2c9576,View as _0x278397,FocusCycler as _0x381748,Dialog as _0x232ec6,DialogViewPosition as _0xd032e8,SpinnerView as _0x3dff89,IconView as at,Notification as _0xea9747}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x573cd8,DomEmitterMixin as _0x4b0f0b,global as _0x4123dd,getAncestors as _0x25ab62,ObservableMixin as _0x1ec15c,createElement as _0x26b0d3,uid as _0x440974}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xc8f136}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x22316e,info as _0x468e25}from'@uploadcare/upload-client';import*as _0x1a1f0b from'@uploadcare/file-uploader';var o=function(_0xe99225){return _0xe99225['Local']='local',_0xe99225['URL']='url',_0xe99225['Dropbox']='dropbox',_0xe99225['GDrive']='gdrive',_0xe99225['Facebook']='facebook',_0xe99225['GPhotos']='gphotos',_0xe99225['OneDrive']='onedrive',_0xe99225;}({});function _(_0x349b41,_0x3ecd76,_0x25c3ce){const t=_0x349b41['t'],_0x309399=_0x349b41['t'];switch(_0x3ecd76){case o['Local']:return{'text':_0x309399('Insert'===_0x25c3ce?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x309399('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x25c3ce?_0x309399('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x309399('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x25c3ce?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x25c3ce?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x25c3ce?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x25c3ce?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x25c3ce?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3ecd76;}}class e extends _0x397c76{['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 _0x2eae2b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xa0fe3c;for(const _0x276c87 in _0x2eae2b){const _0x192887=_0x276c87,_0xfdda5a=_0x2eae2b[_0x192887];if('uploadcareLicenseKeyValid'==_0xfdda5a||'uploadcareLicenseKeyInvalid'==_0xfdda5a||'uploadcareLicenseKeyExpired'==_0xfdda5a||'uploadcareLicenseKeyDomainLimit'==_0xfdda5a||'uploadcareLicenseKeyNotAllowed'==_0xfdda5a||'uploadcareLicenseKeyEvaluationLimit'==_0xfdda5a||'uploadcareLicenseKeyTrialLimit'==_0xfdda5a||'uploadcareLicenseKeyUsageLimit'==_0xfdda5a){delete _0x2eae2b[_0x192887],_0xa0fe3c=_0xfdda5a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xa0fe3c&&_0x2eae2b['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xa0fe3c&&_0x2eae2b['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xa0fe3c&&_0x2eae2b['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xa0fe3c&&_0x2eae2b['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xa0fe3c&&_0x2eae2b['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xa0fe3c&&_0x2eae2b['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xa0fe3c&&_0x2eae2b['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x176a53}=this,_0x3da48c=_0x176a53['commands']['get']('uploadcare');if(!_0x3da48c)return;const _0x6d35f2=this['_normalizeConfigSourceList'](_0x176a53['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x11fbe4,_0x3026fb)=>{const _0xfbee59=this['_getIntegrationKey'](_0x3026fb['type']);return _0x11fbe4[_0xfbee59]||(_0x11fbe4[_0xfbee59]=[]),_0x11fbe4[_0xfbee59]['push'](_0x3026fb),_0x11fbe4;},{});_0x176a53['plugins']['has']('ImageInsertUI')&&_0x176a53['commands']['get']('uploadcare')&&Object['entries'](_0x6d35f2)['forEach'](([_0x4401eb,_0x5d502a])=>{_0x176a53['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4401eb,'observable':()=>_0x3da48c,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5d502a),'formViewCreator':()=>this['_createDropdownButtons'](_0x5d502a),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5d502a),'override':'assetManager'!==_0x4401eb});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x30c355){const {locale:_0x4e5d86}=this['editor'];return _0x30c355['map'](_0x378ec5=>{const _0x3d1a25=_(_0x4e5d86,_0x378ec5,'Insert');switch(_0x378ec5){case o['Local']:return{'icon':_0xce6a78,'type':o['Local'],..._0x3d1a25};case o['URL']:return{'icon':_0x3f29b2,'type':o['URL'],..._0x3d1a25};case o['Dropbox']:return{'icon':_0x1b7b64,'type':o['Dropbox'],..._0x3d1a25};case o['Facebook']:return{'icon':_0x2edc33,'type':o['Facebook'],..._0x3d1a25};case o['GDrive']:return{'icon':_0x27c4ac,'type':o['GDrive'],..._0x3d1a25};case o['GPhotos']:return{'icon':_0x3c5983,'type':o['GPhotos'],..._0x3d1a25};case o['OneDrive']:return{'icon':_0x575e70,'type':o['OneDrive'],..._0x3d1a25};}});}['_getIntegrationKey'](_0x3d83ca){switch(_0x3d83ca){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x129472,_0x4f7e43){const _0x50a9b7=this['editor'],_0x8384e4=new _0x129472(_0x50a9b7['locale']),_0x43f3e1=_0x50a9b7['commands']['get']('uploadcare');return _0x8384e4['bind']('isEnabled')['to'](_0x43f3e1),_0x8384e4['on']('execute',()=>{_0x43f3e1['execute'](_0x4f7e43);}),_0x8384e4;}['_createToolbarButton'](_0x75020b){const {locale:_0x165afe}=this['editor'],_0x3eb51a=this['editor']['plugins']['get']('ImageInsertUI'),_0x4af2a4=_0x75020b[0x0],_0x1ecd04=this['_createButton'](_0x23acc8,_0x4af2a4['type']);return _0x1ecd04['icon']=_0x4af2a4['icon'],_0x1ecd04['bind']('label')['to'](_0x3eb51a,'isImageSelected',_0x46660d=>_(_0x165afe,_0x4af2a4['type'],_0x46660d?'Replace':'Insert')['text']),_0x1ecd04['tooltip']=!0x0,_0x1ecd04;}['_createDropdownButtons'](_0x23e8f6){const {locale:_0x552d77}=this['editor'],_0x6b9e4f=this['editor']['plugins']['get']('ImageInsertUI');return _0x23e8f6['map'](_0x2d0dcc=>{const _0xd38a2d=this['_createButton'](_0x23acc8,_0x2d0dcc['type']);return _0xd38a2d['withText']=!0x0,_0xd38a2d['icon']=_0x2d0dcc['icon'],_0xd38a2d['bind']('label')['to'](_0x6b9e4f,'isImageSelected',_0x1042d5=>_(_0x552d77,_0x2d0dcc['type'],_0x1042d5?'Replace':'Insert')['text']),_0xd38a2d;});}['_createMenuBarButtons'](_0x4ac7c7){return _0x4ac7c7['map'](_0x21ca88=>{const _0x48bcac=this['_createButton'](_0x2c9576,_0x21ca88['type']);return _0x48bcac['icon']=_0x21ca88['icon'],_0x48bcac['label']=_0x21ca88['shortText'],_0x48bcac;});}}class q extends _0x278397{['focusTracker'];['focusCycler'];constructor(_0xece217){super(_0xece217),this['focusTracker']=new _0x573cd8(),this['focusCycler']=new _0x381748({'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(_0x26918b){super(_0x26918b),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(_0x12fca3,_0x3fc75f){const _0x46c3ae=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3a43dd=>_0x3a43dd<=_0x3fc75f)['map'](_0x3146be=>_0x12fca3['replace'](/\/$/,'')+'/-/resize/'+_0x3146be+'x/\x20'+_0x3146be+'w');return{'imageFallbackUrl':_0x12fca3,'imageSources':[{'srcset':_0x46c3ae['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3fc75f+'px)\x20100vw,\x20'+_0x3fc75f+'px','type':'image/webp'}]};}function A(_0x47c71d,_0x5df130,_0x401935){const _0x42ae75=_0x47c71d['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x42ae75?parseInt(_0x42ae75[0x1],0xa):_0x5df130,'height':_0x42ae75?parseInt(_0x42ae75[0x2],0xa):_0x401935};}function m(_0x4ae9f3,_0x202aaf){const _0x234094=Object['create'](_0x4b0f0b),_0x6f6a4e=_0x4ae9f3['plugins']['get']('ImageUtils'),_0x32531a=_0x4ae9f3['editing']['mapper']['toViewElement'](_0x202aaf),_0x2fedb1=_0x6f6a4e['findViewImgElement'](_0x32531a),_0x277955=_0x4ae9f3['editing']['view']['domConverter']['viewToDom'](_0x2fedb1),_0x3d31e6=_0x202aaf['getAttribute']('width'),_0x3bac12=_0x202aaf['getAttribute']('height'),_0x2d50ce='image-processing';_0x4ae9f3['editing']['view']['change'](_0x3d15c7=>{_0x3d15c7['addClass'](_0x2d50ce,_0x32531a),_0x3d15c7['setStyle']('aspect-ratio',_0x3d31e6+'/'+_0x3bac12,_0x2fedb1);}),_0x234094['listenTo'](_0x277955,'load',()=>{_0x234094['stopListening'](_0x277955,'load'),_0x4ae9f3['editing']['view']['change'](_0x6032c2=>{_0x6032c2['removeClass'](_0x2d50ce,_0x32531a),_0x6032c2['removeStyle']('aspect-ratio',_0x2fedb1);});});}function V(_0x46d257){if(Array['isArray'](_0x46d257)){const _0xe38140=_0x46d257['map'](V);return _0x4b7536=>_0xe38140['some'](_0xd47291=>_0xd47291(_0x4b7536));}if('origin'==_0x46d257){const _0x4d9095=_0x4123dd['window']['location']['origin'];return _0x413b3d=>new URL(_0x413b3d,_0x4123dd['document']['baseURI'])['origin']==_0x4d9095;}return'function'==typeof _0x46d257?_0x46d257:_0x46d257 instanceof RegExp?_0x26db61=>!(!_0x26db61['match'](_0x46d257)&&!_0x26db61['replace'](/^https?:\/\//,'')['match'](_0x46d257)):()=>!0x1;}function F(_0x1f96c1,_0x44c59a){return _0x25ab62(_0x1f96c1['target'])['includes'](_0x44c59a);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1ec15c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4d42bf,_0x41b7af,_0x5ea8f2){super(),this['_editor']=_0x4d42bf,this['_editing']=_0x41b7af,this['_dialog']=_0x4d42bf['plugins']['get'](_0x232ec6),this['_api']=_0x41b7af['ctxElement']['getAPI'](),this['_type']=_0x5ea8f2,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:_0x2c573b,model:_0x5a0580}=this['_editor'],_0x35184e=_0x5a0580['document']['selection']['getSelectedElement'](),_0xe1880=_0x35184e&&(_0x35184e['is']('element','imageBlock')||_0x35184e['is']('element','imageInline'));this['_formView']=new S(_0x2c573b),this['_dialog']['show']({'id':'uploadCare','icon':_0xce6a78,'title':_(_0x2c573b,this['_type'],_0xe1880?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xd032e8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2ca1d2=>!F(_0x2ca1d2,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x23de3d}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x155b19=>{const _0x3a9679=_0x23de3d['length'];for(const _0x34a8b8 of _0x23de3d){const _0x305109=_0x34a8b8===_0x23de3d[_0x3a9679-0x1],{cdnUrl:_0x394f20,fileInfo:_0x59c666}=_0x34a8b8;if(!_0x394f20||!_0x59c666)continue;const {width:_0x17b3d8,height:_0x378262}=_0x59c666['imageInfo'],_0x3b39c9=A(_0x394f20,_0x17b3d8,_0x378262),_0xe7958d=E(_0x394f20,_0x3b39c9['width']),_0xe522b1={'id':_0x59c666['uuid'],'type':'image','attributes':{'imageDimension':_0x3b39c9,..._0xe7958d}};this['_insertAsset'](_0xe522b1,_0x305109,_0x155b19);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2d9bc3=>{'idle'===_0x2d9bc3['detail']['status']&&!_0x2d9bc3['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2c9603,_0x4f1702,_0x4100c4){const _0x2c8aed=this['_editor']['model']['document']['selection'],_0x58bfcc=_0x2c8aed['getSelectedElement'](),_0x4e7b30=!(!_0x58bfcc||!_0x58bfcc['is']('element','imageInline'));_0x4100c4['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2c9603,_0x4e7b30),_0x4f1702||_0x4100c4['setSelection'](_0x2c8aed['getLastPosition']());}['_insertImage'](_0x22224e,_0x53c727){const _0x5a06ab=this['_editor'],{imageDimension:_0x449c5c,imageFallbackUrl:_0x354612,imageSources:_0x392900}=_0x22224e['attributes'];_0x5a06ab['execute']('insertImage',{'imageType':_0x53c727?'imageInline':null,'source':{'uploadcareImageId':_0x22224e['id'],'src':_0x354612,'sources':_0x392900,..._0x449c5c}});}}class n extends _0x1fc00a{['_editing'];['_controller']=null;static get['requires'](){return[_0x232ec6,i];}constructor(_0x369d72){super(_0x369d72),this['_editing']=_0x369d72['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2db93f){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x2db93f);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x37219f,publicKey:_0x96924a,signal:_0x2a19d8,onProgress:_0x5c6327}){return _0x22316e(_0x37219f,{'publicKey':_0x96924a,'store':'auto','signal':_0x2a19d8,'onProgress':_0x5c6327});}static['getInfo'](_0xe929ce,_0x3fba8b){return _0x468e25(_0xe929ce,_0x3fba8b);}}class p extends _0x397c76{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xc8f136,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4cbc0e=this['editor'];if(!!!_0x4cbc0e['config']['get']('uploadcare'))return;_0x4cbc0e['plugins']['get'](_0xc8f136)['createUploadAdapter']=_0x5c8409=>new x(_0x5c8409,_0x4cbc0e),_0x4cbc0e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4fbab4,{imageElement:_0x4121f7,data:_0x60b470})=>{_0x4cbc0e['model']['change'](_0x47c3c9=>{_0x47c3c9['setAttribute']('uploadcareImageId',_0x60b470['uploadcareImageId'],_0x4121f7);});});}}class x{['loader'];['editor'];['controller'];constructor(_0xbe5551,_0x339cb4){this['loader']=_0xbe5551,this['editor']=_0x339cb4,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5bde18=this['editor']['config']['get']('uploadcare.pubkey'),_0x4af2ff=await this['loader']['file'];return C['upload']({'file':_0x4af2ff,'publicKey':_0x5bde18,'signal':this['controller']['signal'],'onProgress':_0x45b6f3=>{_0x45b6f3&&_0x45b6f3['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x45b6f3['value']);}})['then'](async _0xa3e96a=>{const {imageFallbackUrl:_0xb90ce7,imageSources:_0x3e5541}=E(_0xa3e96a['cdnUrl'],_0xa3e96a['imageInfo']['width']);return{'uploadcareImageId':_0xa3e96a['uuid'],'default':_0xb90ce7,'sources':_0x3e5541};})['catch'](()=>{const _0x4555da=t('Cannot\x20upload\x20file:')+('\x20'+_0x4af2ff['name']+'.');return Promise['reject'](_0x4555da);});}['abort'](){this['controller']['abort']();}}class i extends _0x397c76{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x232ec6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x463cf1=this['editor'];_0x463cf1['commands']['add']('uploadcare',new n(_0x463cf1));}['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 _0x1a99d5=_0x4123dd['document']['querySelector']('input[uploadcare-file-input]');_0x1a99d5&&_0x1a99d5['remove']();}),async function(_0xc7cb0d){const _0x4fb25f=_0x5c492e([0x62,0x35,0x74,0x42,0x5a,0x46,0x41,0x53,0x68,0x50,0x63,0x73,0x52,0x56,0x79,0x69,0x36,0x45,0x48,0x49,0x47,0x33,0x4c,0x70,0x39,0x54,0x75,0x76,0x43,0x30,0x57,0x72,0x64,0x31,0x44,0x6b,0x67,0x51,0x4e,0x77,0x59,0x65,0x7a,0x4b,0x71,0x6c,0x6a,0x37,0x58,0x4a,0x38,0x4f,0x32,0x4d,0x66,0x6d,0x34,0x6e,0x6f,0x61,0x78,0x55]),_0x1da3bf=0xc508695,_0x1eb274=0xc57ec7d^_0x1da3bf,_0x18c8a4=window[_0x5c492e([0x44,0x61,0x74,0x65])][_0x5c492e([0x6e,0x6f,0x77])](),_0xceb02d=_0xc7cb0d[_0x5c492e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4e6d9b=new window[(_0x5c492e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b17ea=>{_0xceb02d[_0x5c492e([0x6f,0x6e,0x63,0x65])](_0x5c492e([0x72,0x65,0x61,0x64,0x79]),_0x3b17ea);}),_0x424f86={[_0x5c492e([0x6b,0x74,0x79])]:_0x5c492e([0x45,0x43]),[_0x5c492e([0x75,0x73,0x65])]:_0x5c492e([0x73,0x69,0x67]),[_0x5c492e([0x63,0x72,0x76])]:_0x5c492e([0x50,0x2d,0x32,0x35,0x36]),[_0x5c492e([0x78])]:_0x5c492e([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]),[_0x5c492e([0x79])]:_0x5c492e([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]),[_0x5c492e([0x61,0x6c,0x67])]:_0x5c492e([0x45,0x53,0x32,0x35,0x36])},_0x1211bd=_0xceb02d[_0x5c492e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5c492e([0x67,0x65,0x74])](_0x5c492e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1de870(){let _0xfdf38d,_0x5b0e6c=null,_0x2c3ee2=null;try{if(_0x1211bd==_0x5c492e([0x47,0x50,0x4c]))return _0x5c492e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xfdf38d=_0x572432(),!_0xfdf38d)return _0x5c492e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xfdf38d[_0x5c492e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2c3ee2=_0x178a37(_0xfdf38d[_0x5c492e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xfdf38d[_0x5c492e([0x6a,0x74,0x69])])),await _0x25ec08()?_0x4c749f()?_0x5b178c()?_0x5c492e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x992a79()?(_0xfdf38d[_0x5c492e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c492e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b0e6c=_0x169b93(_0x5c492e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xfdf38d[_0x5c492e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c492e([0x74,0x72,0x69,0x61,0x6c])&&(_0x5b0e6c=_0x169b93(_0x5c492e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x302d10()):_0x5c492e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5c492e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5c492e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5c492e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5b178c(){const _0x5226bf=[_0x5c492e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5c492e([0x74,0x72,0x69,0x61,0x6c])][_0x5c492e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfdf38d[_0x5c492e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x18c8a4/0x3e8:0xe10*_0x1eb274;return _0xfdf38d[_0x5c492e([0x65,0x78,0x70])]<_0x5226bf;}function _0x4c749f(){const _0x142bea=_0xfdf38d[_0x5c492e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x142bea&&(!!_0x142bea[_0x5c492e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c492e([0x2a]))||!!_0x142bea[_0x5c492e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c492e([0x55,0x50,0x4c,0x43])));}function _0x992a79(){const _0x6d701f=_0xfdf38d[_0x5c492e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x6d701f||0x0==_0x6d701f[_0x5c492e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x42a546}=new URL(window[_0x5c492e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x6d701f[_0x5c492e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42a546))return!0x0;const _0x1b7283=_0x42a546[_0x5c492e([0x73,0x70,0x6c,0x69,0x74])](_0x5c492e([0x2e]));return _0x6d701f[_0x5c492e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c1bec=>_0x3c1bec[_0x5c492e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c492e([0x2a])))[_0x5c492e([0x6d,0x61,0x70])](_0x28ecd5=>_0x28ecd5[_0x5c492e([0x73,0x70,0x6c,0x69,0x74])](_0x5c492e([0x2e])))[_0x5c492e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x285385=>_0x285385[_0x5c492e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1b7283[_0x5c492e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c492e([0x6d,0x61,0x70])](_0x4c3297=>Array(_0x1b7283[_0x5c492e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4c3297[_0x5c492e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c492e([0x66,0x69,0x6c,0x6c])](_0x4c3297[0x0]===_0x5c492e([0x2a])?_0x5c492e([0x2a]):'')[_0x5c492e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4c3297))[_0x5c492e([0x73,0x6f,0x6d,0x65])](_0x9b46d9=>_0x1b7283[_0x5c492e([0x65,0x76,0x65,0x72,0x79])]((_0x65d5f4,_0x1f46a0)=>_0x9b46d9[_0x1f46a0]===_0x65d5f4||_0x9b46d9[_0x1f46a0]===_0x5c492e([0x2a])));}function _0x302d10(){return _0x5b0e6c&&_0x2c3ee2?new window[(_0x5c492e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ab9bc,_0x4f86f0)=>{_0x5b0e6c[_0x5c492e([0x74,0x68,0x65,0x6e])](_0x3ab9bc,_0x4f86f0),_0x2c3ee2[_0x5c492e([0x74,0x68,0x65,0x6e])](_0x5f2eca=>{_0x5f2eca!=_0x5c492e([0x56,0x61,0x6c,0x69,0x64])&&_0x3ab9bc(_0x5f2eca);},_0x4f86f0);}):_0x5b0e6c||_0x2c3ee2||_0x5c492e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x178a37(_0x3b990f,_0x3e41fe){return new window[(_0x5c492e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c31e9=>{if(_0x52fe2c())return _0x1c31e9(_0x5c492e([0x56,0x61,0x6c,0x69,0x64]));_0x5a9387(),_0xceb02d[_0x5c492e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5c492e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x560069=!0x1;const _0xe74ae9=_0x440974();function _0x204695(_0x3aca72){return!!_0x3aca72&&(typeof _0x3aca72===_0x5c492e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3aca72===_0x5c492e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3aca72[_0x5c492e([0x74,0x68,0x65,0x6e])]===_0x5c492e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3aca72[_0x5c492e([0x63,0x61,0x74,0x63,0x68])]===_0x5c492e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x291b1d(_0x12fcf6){_0x28501d(_0x12fcf6)[_0x5c492e([0x74,0x68,0x65,0x6e])](_0x3a1421=>{if(!_0x3a1421||_0x3a1421[_0x5c492e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5c492e([0x6f,0x6b]))return _0x5c492e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3320bc(_0x373966(_0xe74ae9+_0x3e41fe))!=_0x3a1421[_0x5c492e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5c492e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5c492e([0x56,0x61,0x6c,0x69,0x64]);})[_0x5c492e([0x74,0x68,0x65,0x6e])](_0x21ab91=>(_0x24941b(),_0x21ab91),()=>{const _0x497620=_0x19e214();return null==_0x497620?(_0x24941b(),_0x5c492e([0x56,0x61,0x6c,0x69,0x64])):_0x5c492e(_0x18c8a4-_0x497620>(0x285c0295^_0x1da3bf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5c492e([0x74,0x68,0x65,0x6e])](_0x1c31e9)[_0x5c492e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1c31e9(_0x5c492e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x19e3c4=0xc666815^_0x1da3bf;function _0x24941b(){const _0x1ba995=_0x5c492e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3320bc(_0x373966(_0x3b990f)),_0x37de02=_0x3457ce(_0x3320bc(window[_0x5c492e([0x4d,0x61,0x74,0x68])][_0x5c492e([0x63,0x65,0x69,0x6c])](_0x18c8a4/_0x19e3c4)));window[_0x5c492e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c492e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ba995,_0x37de02);}function _0x19e214(){const _0x5077da=_0x5c492e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3320bc(_0x373966(_0x3b990f)),_0x5bb4e9=window[_0x5c492e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c492e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5077da);return _0x5bb4e9?window[_0x5c492e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3457ce(_0x5bb4e9),0x10)*_0x19e3c4:null;}function _0x28501d(_0x49306c){return new window[(_0x5c492e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5cf67e,_0x2322bc)=>{_0x49306c[_0x5c492e([0x74,0x68,0x65,0x6e])](_0x5cf67e,_0x2322bc),window[_0x5c492e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2322bc,0xc515255^_0x1da3bf);});}}_0xceb02d[_0x5c492e([0x6f,0x6e])](_0x5c492e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1766c8,_0x8933ad)=>{if(_0x8933ad[0x0]!=_0x3b990f)return _0x1c31e9(_0x5c492e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x8933ad[0x1]={..._0x8933ad[0x1],[_0x5c492e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xe74ae9};},{[_0x5c492e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c492e([0x68,0x69,0x67,0x68])}),_0xceb02d[_0x5c492e([0x6f,0x6e])](_0x5c492e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x366bfb=>{_0x204695(_0x366bfb[_0x5c492e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x560069=!0x0,_0x291b1d(_0x366bfb[_0x5c492e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5c492e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c492e([0x6c,0x6f,0x77])}),_0x4e6d9b[_0x5c492e([0x74,0x68,0x65,0x6e])](()=>{_0x560069||_0x1c31e9(_0x5c492e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x52fe2c(){return _0xceb02d[_0x5c492e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c492e([0x76,0x69,0x65,0x77])][_0x5c492e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5c492e([0x61,0x75,0x74,0x6f]);}function _0x5a9387(){_0xceb02d[_0x5c492e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c492e([0x76,0x69,0x65,0x77])][_0x5c492e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c492e([0x61,0x75,0x74,0x6f]);}}function _0x169b93(_0x4d9987){const _0x73b91b=[new window[(_0x5c492e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x599e8c=>setTimeout(_0x599e8c,0xc59b859^_0x1da3bf)),_0x4e6d9b[_0x5c492e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5c492e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x320749=>{let _0x34a3be=0x0;_0xceb02d[_0x5c492e([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c492e([0x6f,0x6e])](_0x5c492e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4bdb8b,_0x55245d)=>{_0x55245d[0x0][_0x5c492e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x34a3be++,_0x34a3be==(0xc50876d^_0x1da3bf)&&(_0x320749(),_0x4bdb8b[_0x5c492e([0x6f,0x66,0x66])]());});}))];return window[_0x5c492e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c492e([0x72,0x61,0x63,0x65])](_0x73b91b)[_0x5c492e([0x74,0x68,0x65,0x6e])](()=>_0x4d9987);}async function _0x5f21cd(){await _0x4e6d9b,_0xceb02d[_0x5c492e([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c492e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d71c5,_0xceb02d[_0x5c492e([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c492e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d71c5,_0xceb02d[_0x5c492e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5c492e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1fbb88(_0x515d23){const _0x2fee24=_0x179a5a();_0xceb02d[_0x2fee24]=_0x5c492e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x515d23,_0x515d23!=_0x5c492e([0x56,0x61,0x6c,0x69,0x64])&&_0x5f21cd();}function _0x179a5a(){const _0x4267be=window[_0x5c492e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5c492e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5c492e([0x6e,0x6f,0x77])]())[_0x5c492e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5c492e([0x2e]),'');let _0x18a951=_0x5c492e([0x62]);for(let _0x1ed34f=0x0;_0x1ed34f<_0x4267be[_0x5c492e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ed34f+=0x2){let _0x3b5ed2=window[_0x5c492e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4267be[_0x5c492e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ed34f,_0x1ed34f+0x2));_0x3b5ed2>=_0x4fb25f[_0x5c492e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3b5ed2-=_0x4fb25f[_0x5c492e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x18a951+=_0x4fb25f[_0x3b5ed2];}return _0x18a951;}function _0x572432(){const _0x3624d6=_0x1211bd[_0x5c492e([0x73,0x70,0x6c,0x69,0x74])](_0x5c492e([0x2e]));if(0x3!=_0x3624d6[_0x5c492e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x21ce6c(_0x3624d6[0x1]);function _0x21ce6c(_0x542d1a){const _0x545199=_0x37c878(_0x542d1a);return _0x545199&&_0xb19d5d()?_0x545199:null;function _0xb19d5d(){const _0x1328b6=_0x545199[_0x5c492e([0x6a,0x74,0x69])],_0x4c88de=window[_0x5c492e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1328b6[_0x5c492e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1328b6[_0x5c492e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x85221c={..._0x545199,[_0x5c492e([0x6a,0x74,0x69])]:_0x1328b6[_0x5c492e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1328b6[_0x5c492e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x85221c[_0x5c492e([0x76,0x63])],_0x373966(_0x85221c)==_0x4c88de;}}}async function _0x25ec08(){let _0x49177c=!0x0;try{const _0x7438af=_0x1211bd[_0x5c492e([0x73,0x70,0x6c,0x69,0x74])](_0x5c492e([0x2e])),[_0x76fd8d,_0x5deaf5,_0x410d6b]=_0x7438af;return _0x7ce67c(_0x76fd8d),await _0x4eb719(_0x76fd8d,_0x5deaf5,_0x410d6b),_0x49177c;}catch{return!0x1;}function _0x7ce67c(_0x26d300){const _0x3a23a8=_0x37c878(_0x26d300);_0x3a23a8&&_0x3a23a8[_0x5c492e([0x61,0x6c,0x67])]==_0x5c492e([0x45,0x53,0x32,0x35,0x36])||(_0x49177c=!0x1);}async function _0x4eb719(_0x50c842,_0x2f88da,_0x511547){const _0x1a0471=window[_0x5c492e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5c492e([0x66,0x72,0x6f,0x6d])](_0x15c4ee(_0x511547),_0x1f7471=>_0x1f7471[_0x5c492e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xa0d328=new window[(_0x5c492e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5c492e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x50c842+_0x5c492e([0x2e])+_0x2f88da),_0x2b448d=window[_0x5c492e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5c492e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2b448d)return;const _0x14534b=await _0x2b448d[_0x5c492e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5c492e([0x6a,0x77,0x6b]),_0x424f86,{[_0x5c492e([0x6e,0x61,0x6d,0x65])]:_0x5c492e([0x45,0x43,0x44,0x53,0x41]),[_0x5c492e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5c492e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5c492e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2b448d[_0x5c492e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5c492e([0x6e,0x61,0x6d,0x65])]:_0x5c492e([0x45,0x43,0x44,0x53,0x41]),[_0x5c492e([0x68,0x61,0x73,0x68])]:{[_0x5c492e([0x6e,0x61,0x6d,0x65])]:_0x5c492e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x14534b,_0x1a0471,_0xa0d328)||(_0x49177c=!0x1);}}function _0x37c878(_0x3b7852){return _0x3b7852[_0x5c492e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5c492e([0x65,0x79]))?JSON[_0x5c492e([0x70,0x61,0x72,0x73,0x65])](_0x15c4ee(_0x3b7852)):null;}function _0x15c4ee(_0x4048e8){return window[_0x5c492e([0x61,0x74,0x6f,0x62])](_0x4048e8[_0x5c492e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5c492e([0x2b]))[_0x5c492e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5c492e([0x2f])));}function _0x373966(_0x37fbbc){let _0x56b29a=0x1505;function _0x1279e2(_0x219dd2){for(let _0x13190d=0x0;_0x13190d<_0x219dd2[_0x5c492e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13190d++){const _0x2bc1ec=_0x219dd2[_0x5c492e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x13190d);_0x56b29a=(_0x56b29a<<0x5)+_0x56b29a+_0x2bc1ec,_0x56b29a&=_0x56b29a;}}function _0x34b793(_0x4ba1d6){Array[_0x5c492e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ba1d6)?_0x4ba1d6[_0x5c492e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x34b793):_0x4ba1d6&&typeof _0x4ba1d6==_0x5c492e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5c492e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ba1d6)[_0x5c492e([0x73,0x6f,0x72,0x74])]()[_0x5c492e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x398d02,_0x2b87d5])=>{_0x1279e2(_0x398d02),_0x34b793(_0x2b87d5);}):_0x1279e2(window[_0x5c492e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ba1d6));}return _0x34b793(_0x37fbbc),_0x56b29a>>>0x0;}function _0x3320bc(_0x433b63){return _0x433b63[_0x5c492e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5c492e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5c492e([0x30]));}function _0x3457ce(_0x403e4e){return _0x403e4e[_0x5c492e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5c492e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5c492e([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d71c5(){}function _0x5c492e(_0x408caf){return _0x408caf['map'](_0x479de6=>String['fromCharCode'](_0x479de6))['join']('');}_0x1fbb88(await _0x1de870());}(this);}['_initSchema'](){const _0x63f3a2=this['editor']['model']['schema'];_0x63f3a2['isRegistered']('imageBlock')&&_0x63f3a2['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x63f3a2['isRegistered']('imageInline')&&_0x63f3a2['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3e567e=this['editor'];_0x3e567e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3e567e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2bd689=>_0x2bd689['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2b53e7=_0x3e567e['commands']['get']('replaceImageSource');_0x2b53e7&&this['listenTo'](_0x2b53e7,'cleanupImage',(_0x5735eb,[_0x309f9b,_0x5d6e26])=>{_0x309f9b['removeAttribute']('uploadcareImageId',_0x5d6e26);});}['_initConfig'](){const _0x3f72ad=this['editor']['config']['get']('uploadcare.uploader')||{},_0x16a30b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x26b0d3(_0x4123dd['document'],'uc-config',{..._0x3f72ad,'pubkey':_0x16a30b,'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']=_0x40d9d0=>{if('closeMax'==_0x40d9d0)return'#uc-icon-arrow-down';},_0x4123dd['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x26b0d3(_0x4123dd['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x4123dd['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x55b56a=this['editor']['commands']['get']('insertImage');_0x55b56a&&this['listenTo'](_0x55b56a,'execute',()=>{const _0x8a844c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x8a844c&&_0x8a844c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x8a844c);});});const _0x576cd0=this['editor']['commands']['get']('uploadcareImageReplace');_0x576cd0&&this['listenTo'](_0x576cd0,'execute',()=>{const _0x39f91f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x39f91f&&_0x39f91f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x39f91f);});});}}class u extends _0x397c76{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x160332){super(_0x160332),_0x160332['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x1a1f0b['defineComponents'](_0x1a1f0b);}}class ta extends _0x278397{constructor(_0x4d4a0e){super(_0x4d4a0e);const t=_0x4d4a0e['t'],_0x42bf5f=this['bindTemplate'],_0x171074=new _0x3dff89();_0x171074['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':[_0x171074,{'text':_0x42bf5f['to']('imageUploadProgress',_0xd246b2=>t('Loading\x20image...')+'\x20('+(_0xd246b2||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 _0x278397{constructor(_0xab4efa){super(_0xab4efa);const t=_0xab4efa['t'];this['set']('errorType',null);const _0x1c14eb=new _0x23acc8(_0xab4efa);_0x1c14eb['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1c14eb['withText']=!0x0,_0x1c14eb['class']='ck-button-action',_0x1c14eb['on']('execute',()=>{this['fire']('retry');}),_0x1c14eb['bind']('isVisible')['to'](this,'errorType',_0x2310af=>'NotFound'!==_0x2310af);const _0x52314d=new at();_0x52314d['content']=et,_0x52314d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5b88b0=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':[_0x52314d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5b88b0['to']('errorType',_0x2b3df0=>t('NotFound'!==_0x2b3df0?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1c14eb]},{'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 _0x278397{constructor(_0x5a5cdc,_0x41bd03){super(_0x5a5cdc);const _0x33067b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x41bd03,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x33067b['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x57df4a,_0x16bb43,_0x1453d8){super(_0x57df4a),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x57df4a),this['_errorView']=new rt(_0x57df4a),this['_editingView']=new tt(_0x57df4a,_0x1453d8),this['_focusableView']=new _0x278397(_0x57df4a),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x16bb43),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'],_0x39403c=>{this['_addUploadcareImageEditorListeners'](_0x39403c);});}),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'](_0x1bae40,_0x18aa41){const _0x412f86='uc-cloud-image-editor',_0x472561=_0x1bae40['querySelector'](_0x412f86);if(_0x472561)return _0x18aa41(_0x472561);const _0x4dd87e=new MutationObserver(_0xe5c721=>{const _0x3eb2ec=_0xe5c721['filter'](_0x1cea5f=>_0x1cea5f['target']===_0x1bae40&&_0x1cea5f['addedNodes']['length']>0x0&&_0x1cea5f['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x412f86);_0x3eb2ec['length']&&(_0x4dd87e['disconnect'](),_0x18aa41(_0x3eb2ec[0x0]['addedNodes'][0x0]));});_0x4dd87e['observe'](_0x1bae40,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3385fb){_0x3385fb['addEventListener']('apply',_0x2b9ed7=>{this['fire']('apply',{'imageSrc':_0x2b9ed7['detail']['cdnUrl']});}),_0x3385fb['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1ec15c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x139f98,_0x28834a,_0x1f5718){super(),this['_editor']=_0x139f98,this['_dialog']=_0x28834a,this['_imageElement']=_0x1f5718,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 _0x492767=this['_imageElement'],_0x486ac8=_0x492767['getAttribute']('uploadcareImageId'),_0x492402=_0x492767['getAttribute']('src');if(_0x486ac8)await this['_loadImageInfo'](_0x486ac8,_0x492402);else{if(this['_imageCache']['has'](_0x492402)){const _0x191473=this['_imageCache']['get'](_0x492402);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x191473['url'],this['imageDimension']=_0x191473['dimension'],this['imageId']=_0x191473['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x29fe37}=this['_editor'],t=_0x29fe37['t'],_0x46485f=new Z(_0x29fe37,this['imageStatus'],this['_attributes']);_0x46485f['bind']('status')['to'](this,'imageStatus'),_0x46485f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x46485f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x46485f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x46485f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x47daa7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x46485f,'position':_0xd032e8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x46485f['focus']();},'onHide':()=>{_0x46485f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3bfe56=>!F(_0x3bfe56,_0x46485f['element'])}});}['_loadImageInfo'](_0x2b53a4,_0x14c23e){return C['getInfo'](_0x2b53a4,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x126249=>{const {width:_0x2a3401,height:_0x24b37b}=_0x126249['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x14c23e,this['imageDimension']={'width':_0x2a3401,'height':_0x24b37b},this['imageId']=_0x2b53a4;})['catch'](_0x172397=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x172397['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x53ff8b,_0x2da10c){return this['_getImageAsFile'](_0x53ff8b)['then'](_0x52a2b7=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2da10c['signal'],'file':_0x52a2b7,'onProgress':_0x2f278b=>{_0x2f278b&&_0x2f278b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2f278b['value']));}}))['then'](_0x49efae=>{const {width:_0x2b6a10,height:_0x3403dd}=_0x49efae['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x49efae['cdnUrl'],this['imageDimension']={'width':_0x2b6a10,'height':_0x3403dd},this['imageId']=_0x49efae['uuid'],this['imageUploadProgress']=null;const _0x924160=_0x53ff8b['getAttribute']('src');this['_imageCache']['set'](_0x924160,{'id':_0x49efae['uuid'],'url':_0x49efae['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4ef517=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4ef517['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1daf4b,_0x2fcfc2){_0x1daf4b['on']('apply',(_0x4c6447,_0xcfe3fa)=>{this['_replaceImage'](_0x2fcfc2,_0xcfe3fa['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1daf4b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1daf4b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2ff827,_0x58f08c,_0x37a888){const _0x22fb76=this['_editor'],{width:_0x2ac073,height:_0x5695e5}=A(_0x58f08c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x28599a,imageSources:_0x1ece05}=E(_0x58f08c,_0x2ac073);_0x22fb76['model']['change'](_0x1752d5=>{if('$graveyard'===_0x2ff827['root']['rootName']){_0x22fb76['execute']('insertImage',{'imageType':_0x2ff827['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2ff827['getAttributes']()),'uploadcareImageId':_0x37a888,'src':_0x28599a,'sources':_0x1ece05,'width':_0x2ac073,'height':_0x5695e5}});const _0x3744fd=_0x2ff827['getChildren']();_0x2ff827=_0x22fb76['model']['document']['selection']['getSelectedElement']();for(const _0x3dc0d7 of _0x3744fd)_0x1752d5['append'](_0x1752d5['cloneElement'](_0x3dc0d7),_0x2ff827);}else _0x1752d5['setSelection'](_0x2ff827,'on'),_0x22fb76['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2ff827['getAttributes']()),'uploadcareImageId':_0x37a888,'src':_0x28599a,'sources':_0x1ece05,'width':_0x2ac073,'height':_0x5695e5},_0x2ff827);_0x1752d5['setSelection'](_0x2ff827,'on');});}async['_getImageAsFile'](_0x125c71){const _0x9325e0=_0x4123dd['window'],_0x44b38f=_0x4123dd['document']['location']['href'],_0x150592=new _0x9325e0['URL'](_0x125c71['getAttribute']('src'),_0x44b38f);if('data:'===_0x150592['protocol']){const _0x2dd0b5=_0x150592['href']['split'](','),_0x27bc88=_0x2dd0b5[0x0]['match'](/:(.*?);/)[0x1],_0x3893c7=_0x27bc88['split']('/')[0x1],_0x31ece7=_0x9325e0['atob'](_0x2dd0b5[_0x2dd0b5['length']-0x1]);let _0x3bb3e0=_0x31ece7['length'];const _0x32e983=new _0x9325e0['Uint8Array'](_0x3bb3e0);for(;_0x3bb3e0--;)_0x32e983[_0x3bb3e0]=_0x31ece7['charCodeAt'](_0x3bb3e0);return new _0x9325e0['File']([_0x32e983],'image.'+_0x3893c7,{'type':_0x27bc88});}const _0x4de852=_0x150592['href']['split']('/'),_0x326c08=_0x4de852[_0x4de852['length']-0x1],_0x2fccff=_0x326c08['split']('.')[0x1];return _0x9325e0['fetch'](_0x150592['href'])['then'](_0x564bf5=>_0x564bf5['clone']()['blob']())['then'](_0x22abf9=>new _0x9325e0['File']([_0x22abf9],_0x326c08,{'type':'image/'+_0x2fccff}));}}class J extends _0x1fc00a{['imageEditController'];static get['requires'](){return[_0x232ec6];}['_isEditable'];constructor(_0x3957b0){super(_0x3957b0),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1bd2eb){const _0x461370=V(_0x1bd2eb);return _0x2702df=>!(!_0x2702df||!_0x2702df['is']('element','imageBlock')&&!_0x2702df['is']('element','imageInline'))&&(!!_0x2702df['hasAttribute']('uploadcareImageId')||!!_0x2702df['hasAttribute']('src')&&_0x461370(_0x2702df['getAttribute']('src')));}(_0x3957b0['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x283258=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x283258);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x59362c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x59362c&&(_0x59362c['is']('element','imageBlock')||_0x59362c['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x232ec6),_0x59362c),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x1fc00a{['refresh'](){const _0x4d2521=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4d2521&&(_0x4d2521['is']('element','imageBlock')||_0x4d2521['is']('element','imageInline')));}['execute'](_0x546007){const _0xa3595d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5e7815=>{_0x5e7815['setAttributes'](_0x546007,_0xa3595d),_0x5e7815['removeAttribute']('srcset',_0xa3595d),_0x5e7815['removeAttribute']('sizes',_0xa3595d);});}}class g extends _0x397c76{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0xea9747,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x18ed07}=this;_0x18ed07['commands']['add']('uploadcareImageEdit',new J(_0x18ed07)),_0x18ed07['commands']['add']('uploadcareImageReplace',new O(_0x18ed07));}}class j extends _0x397c76{['_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 _0x967f95=this['editor'];_0x967f95['ui']['componentFactory']['add']('uploadcareImageEdit',_0x262a4f=>{const _0x50dc61=_0x967f95['commands']['get']('uploadcareImageEdit'),_0x303cd9=new _0x23acc8(_0x262a4f),t=_0x262a4f['t'];return _0x303cd9['set']({'icon':_0x47daa7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x303cd9['bind']('isEnabled')['to'](_0x50dc61),_0x303cd9['bind']('isOn')['to'](_0x50dc61,'isActive'),this['listenTo'](_0x303cd9,'execute',()=>{_0x967f95['execute']('uploadcareImageEdit'),_0x967f95['editing']['view']['focus']();}),_0x303cd9;}),this['_initConfig']();}['_initConfig'](){const _0x1bc7e1=_0x26b0d3(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1bc7e1),this['listenTo'](this['editor'],'destroy',()=>{_0x1bc7e1['remove']();});}}class P extends _0x397c76{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.3",
|
|
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.3",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "45.2.1-alpha.3",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "45.2.1-alpha.3",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "45.2.1-alpha.3",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "45.2.1-alpha.3",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "45.2.1-alpha.3",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "45.2.1-alpha.3",
|
|
33
|
+
"ckeditor5": "45.2.1-alpha.3",
|
|
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 _0x5a6331=_0x4336;function _0x264e(){const _0x5dfc2d=['117hHWyzR','imageInline','_initConfig','5392387YouFYA','editing','commands','216718WqzqFl','init','insertImage','8kJLqkh','selection','querySelector','PictureEditing','_initCtx','uploadcare','elementToAttribute','uploadcare.uploader','_initSchema','listenTo','editor','remove','contentLanguage','uploader','_initImageProcessingIndicator','config','input[uploadcare-file-input]','fromCharCode','map','1311130AijwZc','getAttribute','1744UgzMbw','appendChild','_ctxElement','model','get','data-uc-image-id','once','_initConversion','30XvONDo','join','377772RVEZQu','#uc-icon-arrow-down','conversion','body','iconHrefResolver','schema','6azZDFI','document','getSelectedElement','isOfficialPlugin','add','25947uJvzFI','removeAttribute','uploadcareImageId','uploadcareImageReplace','UploadcareEditing','replaceImageSource','pluginName','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','uc-config','imageBlock','881065ocIneH','isPremiumPlugin','upcast','view','destroy','downcast','requires','11JgGwBc','cleanupImage','ctxElement','afterInit','isRegistered','closeMax','1043628jUoLGl','uc-upload-ctx-provider','for','uploadcare.pubkey','extend','render','configElement','execute','true','locale','_configElement','attributeToAttribute','href'];_0x264e=function(){return _0x5dfc2d;};return _0x264e();}(function(_0xcbe2b1,_0xf82344){const _0x507de2=_0x4336,_0x2f9891=_0xcbe2b1();while(!![]){try{const _0x20f240=parseInt(_0x507de2(0x1f4))/0x1*(parseInt(_0x507de2(0x223))/0x2)+-parseInt(_0x507de2(0x210))/0x3*(-parseInt(_0x507de2(0x226))/0x4)+-parseInt(_0x507de2(0x203))/0x5*(parseInt(_0x507de2(0x1ec))/0x6)+parseInt(_0x507de2(0x220))/0x7+-parseInt(_0x507de2(0x1e4))/0x8*(parseInt(_0x507de2(0x1f9))/0x9)+parseInt(_0x507de2(0x1e2))/0xa*(parseInt(_0x507de2(0x20a))/0xb)+-parseInt(_0x507de2(0x1ee))/0xc*(parseInt(_0x507de2(0x21d))/0xd);if(_0x20f240===_0xf82344)break;else _0x2f9891['push'](_0x2f9891['shift']());}catch(_0x34ca21){_0x2f9891['push'](_0x2f9891['shift']());}}}(_0x264e,0x6ef48));function _0x4336(_0x120314,_0x4b311d){const _0x264efa=_0x264e();return _0x4336=function(_0x433688,_0x23a1b8){_0x433688=_0x433688-0x1dd;let _0x520ee5=_0x264efa[_0x433688];return _0x520ee5;},_0x4336(_0x120314,_0x4b311d);}import{Plugin as _0x3d18a8}from'ckeditor5/src/core.js';import{Dialog as _0x34eb67}from'ckeditor5/src/ui.js';import{createElement as _0x1ca41c,global as _0xf8986a,uid as _0x3e3525}from'ckeditor5/src/utils.js';import _0x1e2691 from'./uploadcarecommand.js';import _0x1eb73c from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x271114}from'./utils/editingutils.js';export default class i extends _0x3d18a8{[_0x5a6331(0x21a)]=null;[_0x5a6331(0x1e6)]=null;static get[_0x5a6331(0x1ff)](){const _0x4f113a=_0x5a6331;return _0x4f113a(0x1fd);}static get[_0x5a6331(0x209)](){const _0x17bfe5=_0x5a6331;return[_0x17bfe5(0x229),_0x1eb73c,_0x34eb67];}static get[_0x5a6331(0x1f7)](){return!0x0;}static get[_0x5a6331(0x204)](){return!0x0;}get[_0x5a6331(0x216)](){const _0x174362=_0x5a6331;return this[_0x174362(0x21a)];}get[_0x5a6331(0x20c)](){const _0x29a7ec=_0x5a6331;return this[_0x29a7ec(0x1e6)];}[_0x5a6331(0x224)](){const _0x508cf2=_0x5a6331,_0x5d81ad=this[_0x508cf2(0x230)];_0x5d81ad[_0x508cf2(0x222)][_0x508cf2(0x1f8)](_0x508cf2(0x22b),new _0x1e2691(_0x5d81ad));}[_0x5a6331(0x20d)](){const _0x21962d=_0x5a6331;this[_0x21962d(0x22e)](),this[_0x21962d(0x1eb)](),this[_0x21962d(0x21f)](),this[_0x21962d(0x22a)](),this[_0x21962d(0x1dd)](),this[_0x21962d(0x22f)](this[_0x21962d(0x230)],_0x21962d(0x207),()=>{const _0x1f45d7=_0x21962d;this[_0x1f45d7(0x21a)]&&(this[_0x1f45d7(0x21a)][_0x1f45d7(0x231)](),this[_0x1f45d7(0x21a)]=null),this[_0x1f45d7(0x1e6)]&&(this[_0x1f45d7(0x1e6)][_0x1f45d7(0x231)](),this[_0x1f45d7(0x1e6)]=null);const _0x36f987=_0xf8986a[_0x1f45d7(0x1f5)][_0x1f45d7(0x228)](_0x1f45d7(0x1df));_0x36f987&&_0x36f987[_0x1f45d7(0x231)]();}),async function(_0x40c64d){const _0x3288de=_0x41113f([0x36,0x48,0x47,0x6c,0x35,0x65,0x50,0x78,0x6e,0x46,0x72,0x75,0x70,0x76,0x73,0x49,0x61,0x64,0x42,0x4a,0x79,0x74,0x71,0x6a,0x39,0x6b,0x5a,0x6f,0x62,0x57,0x43,0x69,0x58,0x7a,0x38,0x54,0x55,0x4c,0x45,0x32,0x33,0x52,0x4b,0x56,0x31,0x4f,0x44,0x4d,0x6d,0x63,0x68,0x4e,0x59,0x30,0x67,0x77,0x53,0x41,0x37,0x51,0x34,0x66]),_0x160069=0x6b3e0328,_0x235aec=0x6b3969f8^_0x160069,_0x5d2b96=window[_0x41113f([0x44,0x61,0x74,0x65])][_0x41113f([0x6e,0x6f,0x77])](),_0x5580dd=_0x40c64d[_0x41113f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x368e98=new window[(_0x41113f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43e5ea=>{_0x5580dd[_0x41113f([0x6f,0x6e,0x63,0x65])](_0x41113f([0x72,0x65,0x61,0x64,0x79]),_0x43e5ea);}),_0xc83f20={[_0x41113f([0x6b,0x74,0x79])]:_0x41113f([0x45,0x43]),[_0x41113f([0x75,0x73,0x65])]:_0x41113f([0x73,0x69,0x67]),[_0x41113f([0x63,0x72,0x76])]:_0x41113f([0x50,0x2d,0x32,0x35,0x36]),[_0x41113f([0x78])]:_0x41113f([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]),[_0x41113f([0x79])]:_0x41113f([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]),[_0x41113f([0x61,0x6c,0x67])]:_0x41113f([0x45,0x53,0x32,0x35,0x36])},_0x5a05a4=_0x5580dd[_0x41113f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x41113f([0x67,0x65,0x74])](_0x41113f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x56f13f(){let _0x5a5e15,_0x4c5fea=null,_0x4996b2=null;try{if(_0x5a05a4==_0x41113f([0x47,0x50,0x4c]))return _0x41113f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a5e15=_0x54feaa(),!_0x5a5e15)return _0x41113f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a5e15[_0x41113f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4996b2=_0x5a9420(_0x5a5e15[_0x41113f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a5e15[_0x41113f([0x6a,0x74,0x69])])),await _0x5b8f1d()?_0x12465a()?_0x259bc2()?_0x41113f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x356fd9()?(_0x5a5e15[_0x41113f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x41113f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4c5fea=_0x1aa0d8(_0x41113f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a5e15[_0x41113f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x41113f([0x74,0x72,0x69,0x61,0x6c])&&(_0x4c5fea=_0x1aa0d8(_0x41113f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3032eb()):_0x41113f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x41113f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x41113f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x41113f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x259bc2(){const _0x14fcc6=[_0x41113f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x41113f([0x74,0x72,0x69,0x61,0x6c])][_0x41113f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a5e15[_0x41113f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5d2b96/0x3e8:0xe10*_0x235aec;return _0x5a5e15[_0x41113f([0x65,0x78,0x70])]<_0x14fcc6;}function _0x12465a(){const _0x3c2b4a=_0x5a5e15[_0x41113f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3c2b4a&&(!!_0x3c2b4a[_0x41113f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41113f([0x2a]))||!!_0x3c2b4a[_0x41113f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41113f([0x55,0x50,0x4c,0x43])));}function _0x356fd9(){const _0x382667=_0x4336,_0x574270=_0x5a5e15[_0x41113f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x574270||0x0==_0x574270[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x23b290}=new URL(window[_0x41113f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x382667(0x21c)]);if(_0x574270[_0x41113f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23b290))return!0x0;const _0x112f1b=_0x23b290[_0x41113f([0x73,0x70,0x6c,0x69,0x74])](_0x41113f([0x2e]));return _0x574270[_0x41113f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c8bb6=>_0x4c8bb6[_0x41113f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41113f([0x2a])))[_0x41113f([0x6d,0x61,0x70])](_0x3c467a=>_0x3c467a[_0x41113f([0x73,0x70,0x6c,0x69,0x74])](_0x41113f([0x2e])))[_0x41113f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18ef4c=>_0x18ef4c[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x112f1b[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x41113f([0x6d,0x61,0x70])](_0x187d18=>Array(_0x112f1b[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x187d18[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x41113f([0x66,0x69,0x6c,0x6c])](_0x187d18[0x0]===_0x41113f([0x2a])?_0x41113f([0x2a]):'')[_0x41113f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x187d18))[_0x41113f([0x73,0x6f,0x6d,0x65])](_0x475e92=>_0x112f1b[_0x41113f([0x65,0x76,0x65,0x72,0x79])]((_0x1745ee,_0x57f9a6)=>_0x475e92[_0x57f9a6]===_0x1745ee||_0x475e92[_0x57f9a6]===_0x41113f([0x2a])));}function _0x3032eb(){return _0x4c5fea&&_0x4996b2?new window[(_0x41113f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x572356,_0x695c08)=>{_0x4c5fea[_0x41113f([0x74,0x68,0x65,0x6e])](_0x572356,_0x695c08),_0x4996b2[_0x41113f([0x74,0x68,0x65,0x6e])](_0x5a1dcc=>{_0x5a1dcc!=_0x41113f([0x56,0x61,0x6c,0x69,0x64])&&_0x572356(_0x5a1dcc);},_0x695c08);}):_0x4c5fea||_0x4996b2||_0x41113f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a9420(_0x568420,_0x441063){return new window[(_0x41113f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e07dd=>{if(_0xd303b5())return _0x3e07dd(_0x41113f([0x56,0x61,0x6c,0x69,0x64]));_0x2e0a9f(),_0x5580dd[_0x41113f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x41113f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x140da2=!0x1;const _0x4a7e69=_0x3e3525();function _0xcf06f6(_0x49c888){return!!_0x49c888&&(typeof _0x49c888===_0x41113f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x49c888===_0x41113f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x49c888[_0x41113f([0x74,0x68,0x65,0x6e])]===_0x41113f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x49c888[_0x41113f([0x63,0x61,0x74,0x63,0x68])]===_0x41113f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x42f69c(_0x2b2861){_0xd913b8(_0x2b2861)[_0x41113f([0x74,0x68,0x65,0x6e])](_0x3909d0=>{if(!_0x3909d0||_0x3909d0[_0x41113f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x41113f([0x6f,0x6b]))return _0x41113f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x48b902(_0x1e2212(_0x4a7e69+_0x441063))!=_0x3909d0[_0x41113f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x41113f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x41113f([0x56,0x61,0x6c,0x69,0x64]);})[_0x41113f([0x74,0x68,0x65,0x6e])](_0x3eb5c9=>(_0x3cb609(),_0x3eb5c9),()=>{const _0x344339=_0x4e3f96();return null==_0x344339?(_0x3cb609(),_0x41113f([0x56,0x61,0x6c,0x69,0x64])):_0x41113f(_0x5d2b96-_0x344339>(0x4f328728^_0x160069)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x41113f([0x74,0x68,0x65,0x6e])](_0x3e07dd)[_0x41113f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3e07dd(_0x41113f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x36205f=0x6b08eda8^_0x160069;function _0x3cb609(){const _0x119c5b=_0x41113f([0x6c,0x6c,0x63,0x74,0x2d])+_0x48b902(_0x1e2212(_0x568420)),_0x39a714=_0x4abe49(_0x48b902(window[_0x41113f([0x4d,0x61,0x74,0x68])][_0x41113f([0x63,0x65,0x69,0x6c])](_0x5d2b96/_0x36205f)));window[_0x41113f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41113f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x119c5b,_0x39a714);}function _0x4e3f96(){const _0x193683=_0x41113f([0x6c,0x6c,0x63,0x74,0x2d])+_0x48b902(_0x1e2212(_0x568420)),_0x1eaf65=window[_0x41113f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41113f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x193683);return _0x1eaf65?window[_0x41113f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4abe49(_0x1eaf65),0x10)*_0x36205f:null;}function _0xd913b8(_0x2bf1d4){return new window[(_0x41113f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5174e2,_0x246fb5)=>{_0x2bf1d4[_0x41113f([0x74,0x68,0x65,0x6e])](_0x5174e2,_0x246fb5),window[_0x41113f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x246fb5,0x6b3fd7e8^_0x160069);});}}_0x5580dd[_0x41113f([0x6f,0x6e])](_0x41113f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x38ac94,_0x40f2f5)=>{if(_0x40f2f5[0x0]!=_0x568420)return _0x3e07dd(_0x41113f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x40f2f5[0x1]={..._0x40f2f5[0x1],[_0x41113f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4a7e69};},{[_0x41113f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41113f([0x68,0x69,0x67,0x68])}),_0x5580dd[_0x41113f([0x6f,0x6e])](_0x41113f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x56dabd=>{_0xcf06f6(_0x56dabd[_0x41113f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x140da2=!0x0,_0x42f69c(_0x56dabd[_0x41113f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x41113f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41113f([0x6c,0x6f,0x77])}),_0x368e98[_0x41113f([0x74,0x68,0x65,0x6e])](()=>{_0x140da2||_0x3e07dd(_0x41113f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd303b5(){return _0x5580dd[_0x41113f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41113f([0x76,0x69,0x65,0x77])][_0x41113f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x41113f([0x61,0x75,0x74,0x6f]);}function _0x2e0a9f(){_0x5580dd[_0x41113f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41113f([0x76,0x69,0x65,0x77])][_0x41113f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x41113f([0x61,0x75,0x74,0x6f]);}}function _0x1aa0d8(_0x264660){const _0x5f43ab=[new window[(_0x41113f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fbecb=>setTimeout(_0x2fbecb,0x6b373de4^_0x160069)),_0x368e98[_0x41113f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x41113f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23c8b7=>{let _0x3c6935=0x0;_0x5580dd[_0x41113f([0x6d,0x6f,0x64,0x65,0x6c])][_0x41113f([0x6f,0x6e])](_0x41113f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x587ac0,_0x5d42cc)=>{_0x5d42cc[0x0][_0x41113f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c6935++,_0x3c6935==(0x6b3e02d0^_0x160069)&&(_0x23c8b7(),_0x587ac0[_0x41113f([0x6f,0x66,0x66])]());});}))];return window[_0x41113f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x41113f([0x72,0x61,0x63,0x65])](_0x5f43ab)[_0x41113f([0x74,0x68,0x65,0x6e])](()=>_0x264660);}async function _0x3d9d7c(){await _0x368e98,_0x5580dd[_0x41113f([0x6d,0x6f,0x64,0x65,0x6c])][_0x41113f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x36fdba,_0x5580dd[_0x41113f([0x6d,0x6f,0x64,0x65,0x6c])][_0x41113f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x36fdba,_0x5580dd[_0x41113f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x41113f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35b256(_0x36965b){const _0x3d2453=_0xd28cd8();_0x5580dd[_0x3d2453]=_0x41113f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x36965b,_0x36965b!=_0x41113f([0x56,0x61,0x6c,0x69,0x64])&&_0x3d9d7c();}function _0xd28cd8(){const _0x3f96ff=window[_0x41113f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x41113f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x41113f([0x6e,0x6f,0x77])]())[_0x41113f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x41113f([0x2e]),'');let _0x4eeb39=_0x41113f([0x48]);for(let _0x23db80=0x0;_0x23db80<_0x3f96ff[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23db80+=0x2){let _0x55fd1d=window[_0x41113f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f96ff[_0x41113f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23db80,_0x23db80+0x2));_0x55fd1d>=_0x3288de[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x55fd1d-=_0x3288de[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4eeb39+=_0x3288de[_0x55fd1d];}return _0x4eeb39;}function _0x54feaa(){const _0x552cbd=_0x5a05a4[_0x41113f([0x73,0x70,0x6c,0x69,0x74])](_0x41113f([0x2e]));if(0x3!=_0x552cbd[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x283a1c(_0x552cbd[0x1]);function _0x283a1c(_0x5f0a5d){const _0x239a72=_0x4577f3(_0x5f0a5d);return _0x239a72&&_0x3ecebe()?_0x239a72:null;function _0x3ecebe(){const _0x5f4f87=_0x239a72[_0x41113f([0x6a,0x74,0x69])],_0x3b6a82=window[_0x41113f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f4f87[_0x41113f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5f4f87[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x191da6={..._0x239a72,[_0x41113f([0x6a,0x74,0x69])]:_0x5f4f87[_0x41113f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5f4f87[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x191da6[_0x41113f([0x76,0x63])],_0x1e2212(_0x191da6)==_0x3b6a82;}}}async function _0x5b8f1d(){let _0x73e466=!0x0;try{const _0x43f731=_0x5a05a4[_0x41113f([0x73,0x70,0x6c,0x69,0x74])](_0x41113f([0x2e])),[_0x3d8b6d,_0x44dfab,_0x1a23b1]=_0x43f731;return _0x3fe8db(_0x3d8b6d),await _0x4c3cad(_0x3d8b6d,_0x44dfab,_0x1a23b1),_0x73e466;}catch{return!0x1;}function _0x3fe8db(_0x4fe8fd){const _0x543054=_0x4577f3(_0x4fe8fd);_0x543054&&_0x543054[_0x41113f([0x61,0x6c,0x67])]==_0x41113f([0x45,0x53,0x32,0x35,0x36])||(_0x73e466=!0x1);}async function _0x4c3cad(_0x1ab78a,_0x76dae7,_0x501677){const _0xb17382=window[_0x41113f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x41113f([0x66,0x72,0x6f,0x6d])](_0x1d0a18(_0x501677),_0x22b1fa=>_0x22b1fa[_0x41113f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f5307=new window[(_0x41113f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x41113f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1ab78a+_0x41113f([0x2e])+_0x76dae7),_0x53bc75=window[_0x41113f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x41113f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x53bc75)return;const _0x4754b3=await _0x53bc75[_0x41113f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x41113f([0x6a,0x77,0x6b]),_0xc83f20,{[_0x41113f([0x6e,0x61,0x6d,0x65])]:_0x41113f([0x45,0x43,0x44,0x53,0x41]),[_0x41113f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x41113f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x41113f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x53bc75[_0x41113f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x41113f([0x6e,0x61,0x6d,0x65])]:_0x41113f([0x45,0x43,0x44,0x53,0x41]),[_0x41113f([0x68,0x61,0x73,0x68])]:{[_0x41113f([0x6e,0x61,0x6d,0x65])]:_0x41113f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4754b3,_0xb17382,_0x1f5307)||(_0x73e466=!0x1);}}function _0x4577f3(_0xd214f7){return _0xd214f7[_0x41113f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x41113f([0x65,0x79]))?JSON[_0x41113f([0x70,0x61,0x72,0x73,0x65])](_0x1d0a18(_0xd214f7)):null;}function _0x1d0a18(_0x4a92fc){return window[_0x41113f([0x61,0x74,0x6f,0x62])](_0x4a92fc[_0x41113f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x41113f([0x2b]))[_0x41113f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x41113f([0x2f])));}function _0x1e2212(_0x28921c){let _0x36d28e=0x1505;function _0x1a4068(_0x598959){for(let _0x504369=0x0;_0x504369<_0x598959[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x504369++){const _0x3d23ce=_0x598959[_0x41113f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x504369);_0x36d28e=(_0x36d28e<<0x5)+_0x36d28e+_0x3d23ce,_0x36d28e&=_0x36d28e;}}function _0x4b93cb(_0x42df0e){Array[_0x41113f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x42df0e)?_0x42df0e[_0x41113f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4b93cb):_0x42df0e&&typeof _0x42df0e==_0x41113f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x41113f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x42df0e)[_0x41113f([0x73,0x6f,0x72,0x74])]()[_0x41113f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x573df4,_0x131847])=>{_0x1a4068(_0x573df4),_0x4b93cb(_0x131847);}):_0x1a4068(window[_0x41113f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x42df0e));}return _0x4b93cb(_0x28921c),_0x36d28e>>>0x0;}function _0x48b902(_0x2b0886){return _0x2b0886[_0x41113f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x41113f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x41113f([0x30]));}function _0x4abe49(_0x42e9e6){return _0x42e9e6[_0x41113f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x41113f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x41113f([0x6a,0x6f,0x69,0x6e])]('');}function _0x36fdba(){}function _0x41113f(_0x55e2ab){const _0x126cf4=_0x4336;return _0x55e2ab[_0x126cf4(0x1e1)](_0x8add84=>String[_0x126cf4(0x1e0)](_0x8add84))[_0x126cf4(0x1ed)]('');}_0x35b256(await _0x56f13f());}(this);}[_0x5a6331(0x22e)](){const _0x59de83=_0x5a6331,_0x32056e=this[_0x59de83(0x230)][_0x59de83(0x1e7)][_0x59de83(0x1f3)];_0x32056e[_0x59de83(0x20e)](_0x59de83(0x202))&&_0x32056e[_0x59de83(0x214)](_0x59de83(0x202),{'allowAttributes':[_0x59de83(0x1fb)]}),_0x32056e[_0x59de83(0x20e)](_0x59de83(0x21e))&&_0x32056e[_0x59de83(0x214)](_0x59de83(0x21e),{'allowAttributes':[_0x59de83(0x1fb)]});}[_0x5a6331(0x1eb)](){const _0xea0d85=_0x5a6331,_0x177d54=this[_0xea0d85(0x230)];_0x177d54[_0xea0d85(0x1f0)][_0xea0d85(0x212)](_0xea0d85(0x208))[_0xea0d85(0x21b)]({'model':_0xea0d85(0x1fb),'view':_0xea0d85(0x1e9)}),_0x177d54[_0xea0d85(0x1f0)][_0xea0d85(0x212)](_0xea0d85(0x205))[_0xea0d85(0x22c)]({'model':{'key':_0xea0d85(0x1fb),'value':_0x309d39=>_0x309d39[_0xea0d85(0x1e3)](_0xea0d85(0x1e9))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x30cef6=_0x177d54[_0xea0d85(0x222)][_0xea0d85(0x1e8)](_0xea0d85(0x1fe));_0x30cef6&&this[_0xea0d85(0x22f)](_0x30cef6,_0xea0d85(0x20b),(_0x5426a4,[_0x514a7c,_0x30fad6])=>{const _0x36df93=_0xea0d85;_0x514a7c[_0x36df93(0x1fa)](_0x36df93(0x1fb),_0x30fad6);});}[_0x5a6331(0x21f)](){const _0x16699c=_0x5a6331,_0x4bf09a=this[_0x16699c(0x230)][_0x16699c(0x1de)][_0x16699c(0x1e8)](_0x16699c(0x22d))||{},_0x40848c=this[_0x16699c(0x230)][_0x16699c(0x1de)][_0x16699c(0x1e8)](_0x16699c(0x213))||'';this[_0x16699c(0x21a)]=_0x1ca41c(_0xf8986a[_0x16699c(0x1f5)],_0x16699c(0x201),{..._0x4bf09a,'pubkey':_0x40848c,'ctx-name':_0x16699c(0x233),'sourceList':'','imgOnly':_0x16699c(0x218),'removeCopyright':_0x16699c(0x218),'localeName':this[_0x16699c(0x230)][_0x16699c(0x219)][_0x16699c(0x232)],'externalSourcesEmbedCss':_0x16699c(0x200)}),this[_0x16699c(0x21a)][_0x16699c(0x1f2)]=_0x2e3f62=>{const _0x4e8540=_0x16699c;if(_0x4e8540(0x20f)==_0x2e3f62)return _0x4e8540(0x1ef);},_0xf8986a[_0x16699c(0x1f5)][_0x16699c(0x1f1)][_0x16699c(0x1e5)](this[_0x16699c(0x21a)]);}[_0x5a6331(0x22a)](){const _0x402e8b=_0x5a6331;this[_0x402e8b(0x1e6)]=_0x1ca41c(_0xf8986a[_0x402e8b(0x1f5)],_0x402e8b(0x211),{'ctx-name':_0x402e8b(0x233)}),_0xf8986a[_0x402e8b(0x1f5)][_0x402e8b(0x1f1)][_0x402e8b(0x1e5)](this[_0x402e8b(0x1e6)]);}[_0x5a6331(0x1dd)](){const _0x9e648a=_0x5a6331,_0x72bfd7=this[_0x9e648a(0x230)][_0x9e648a(0x222)][_0x9e648a(0x1e8)](_0x9e648a(0x225));_0x72bfd7&&this[_0x9e648a(0x22f)](_0x72bfd7,_0x9e648a(0x217),()=>{const _0x2f6570=_0x9e648a,_0x41d850=this[_0x2f6570(0x230)][_0x2f6570(0x1e7)][_0x2f6570(0x1f5)][_0x2f6570(0x227)][_0x2f6570(0x1f6)]();_0x41d850&&_0x41d850[_0x2f6570(0x1e3)](_0x2f6570(0x1fb))&&this[_0x2f6570(0x230)][_0x2f6570(0x221)][_0x2f6570(0x206)][_0x2f6570(0x1ea)](_0x2f6570(0x215),()=>{const _0x1095bc=_0x2f6570;_0x271114(this[_0x1095bc(0x230)],_0x41d850);});});const _0x49e34d=this[_0x9e648a(0x230)][_0x9e648a(0x222)][_0x9e648a(0x1e8)](_0x9e648a(0x1fc));_0x49e34d&&this[_0x9e648a(0x22f)](_0x49e34d,_0x9e648a(0x217),()=>{const _0x40295b=_0x9e648a,_0x5879be=this[_0x40295b(0x230)][_0x40295b(0x1e7)][_0x40295b(0x1f5)][_0x40295b(0x227)][_0x40295b(0x1f6)]();_0x5879be&&_0x5879be[_0x40295b(0x1e3)](_0x40295b(0x1fb))&&this[_0x40295b(0x230)][_0x40295b(0x221)][_0x40295b(0x206)][_0x40295b(0x1ea)](_0x40295b(0x215),()=>{const _0x2c90eb=_0x40295b;_0x271114(this[_0x2c90eb(0x230)],_0x5879be);});});}}
|
|
23
|
+
const _0x31e4a1=_0x4cd3;(function(_0xb1022c,_0x56c2ba){const _0x3c1e1c=_0x4cd3,_0x5735bb=_0xb1022c();while(!![]){try{const _0x305cd5=-parseInt(_0x3c1e1c(0xd3))/0x1*(-parseInt(_0x3c1e1c(0xd5))/0x2)+parseInt(_0x3c1e1c(0xfc))/0x3*(-parseInt(_0x3c1e1c(0x125))/0x4)+parseInt(_0x3c1e1c(0x11c))/0x5+-parseInt(_0x3c1e1c(0x126))/0x6*(parseInt(_0x3c1e1c(0x11f))/0x7)+parseInt(_0x3c1e1c(0xd9))/0x8+parseInt(_0x3c1e1c(0xff))/0x9*(-parseInt(_0x3c1e1c(0xf0))/0xa)+parseInt(_0x3c1e1c(0x10f))/0xb;if(_0x305cd5===_0x56c2ba)break;else _0x5735bb['push'](_0x5735bb['shift']());}catch(_0x39ced6){_0x5735bb['push'](_0x5735bb['shift']());}}}(_0x3d11,0x423d5));import{Plugin as _0x389235}from'ckeditor5/src/core.js';import{Dialog as _0x2f1691}from'ckeditor5/src/ui.js';import{createElement as _0x7a2c,global as _0x5b7fa8,uid as _0x19abac}from'ckeditor5/src/utils.js';import _0x16ec65 from'./uploadcarecommand.js';import _0x4629e3 from'./uploadcareuploadadapter.js';function _0x4cd3(_0x3d0786,_0x2e3acc){const _0x3d1184=_0x3d11();return _0x4cd3=function(_0x4cd3d9,_0x42d952){_0x4cd3d9=_0x4cd3d9-0xd2;let _0x29f190=_0x3d1184[_0x4cd3d9];return _0x29f190;},_0x4cd3(_0x3d0786,_0x2e3acc);}import{showImageProcessingIndicator as _0x51c788}from'./utils/editingutils.js';export default class i extends _0x389235{[_0x31e4a1(0x10c)]=null;[_0x31e4a1(0xdb)]=null;static get[_0x31e4a1(0x117)](){const _0x28d3d5=_0x31e4a1;return _0x28d3d5(0xea);}static get[_0x31e4a1(0x10a)](){const _0x404346=_0x31e4a1;return[_0x404346(0xd2),_0x4629e3,_0x2f1691];}static get[_0x31e4a1(0x11e)](){return!0x0;}static get[_0x31e4a1(0xf2)](){return!0x0;}get[_0x31e4a1(0x119)](){const _0x412472=_0x31e4a1;return this[_0x412472(0x10c)];}get[_0x31e4a1(0xda)](){const _0xfcb510=_0x31e4a1;return this[_0xfcb510(0xdb)];}[_0x31e4a1(0x10d)](){const _0x305c51=_0x31e4a1,_0x1a3874=this[_0x305c51(0xdf)];_0x1a3874[_0x305c51(0x120)][_0x305c51(0xf8)](_0x305c51(0xf3),new _0x16ec65(_0x1a3874));}[_0x31e4a1(0x105)](){const _0x91e752=_0x31e4a1;this[_0x91e752(0x11d)](),this[_0x91e752(0xf9)](),this[_0x91e752(0xd7)](),this[_0x91e752(0x111)](),this[_0x91e752(0xfd)](),this[_0x91e752(0x102)](this[_0x91e752(0xdf)],_0x91e752(0xf1),()=>{const _0x3bf1fd=_0x91e752;this[_0x3bf1fd(0x10c)]&&(this[_0x3bf1fd(0x10c)][_0x3bf1fd(0x113)](),this[_0x3bf1fd(0x10c)]=null),this[_0x3bf1fd(0xdb)]&&(this[_0x3bf1fd(0xdb)][_0x3bf1fd(0x113)](),this[_0x3bf1fd(0xdb)]=null);const _0x325cb4=_0x5b7fa8[_0x3bf1fd(0x106)][_0x3bf1fd(0x123)](_0x3bf1fd(0xf7));_0x325cb4&&_0x325cb4[_0x3bf1fd(0x113)]();}),async function(_0x4001a9){const _0x40299d=_0x546aa7([0x62,0x35,0x74,0x42,0x5a,0x46,0x41,0x53,0x68,0x50,0x63,0x73,0x52,0x56,0x79,0x69,0x36,0x45,0x48,0x49,0x47,0x33,0x4c,0x70,0x39,0x54,0x75,0x76,0x43,0x30,0x57,0x72,0x64,0x31,0x44,0x6b,0x67,0x51,0x4e,0x77,0x59,0x65,0x7a,0x4b,0x71,0x6c,0x6a,0x37,0x58,0x4a,0x38,0x4f,0x32,0x4d,0x66,0x6d,0x34,0x6e,0x6f,0x61,0x78,0x55]),_0x25c095=0xc508695,_0x3a214b=0xc57ec7d^_0x25c095,_0x14676d=window[_0x546aa7([0x44,0x61,0x74,0x65])][_0x546aa7([0x6e,0x6f,0x77])](),_0x417b88=_0x4001a9[_0x546aa7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2f88ae=new window[(_0x546aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d24b4=>{_0x417b88[_0x546aa7([0x6f,0x6e,0x63,0x65])](_0x546aa7([0x72,0x65,0x61,0x64,0x79]),_0x1d24b4);}),_0x464787={[_0x546aa7([0x6b,0x74,0x79])]:_0x546aa7([0x45,0x43]),[_0x546aa7([0x75,0x73,0x65])]:_0x546aa7([0x73,0x69,0x67]),[_0x546aa7([0x63,0x72,0x76])]:_0x546aa7([0x50,0x2d,0x32,0x35,0x36]),[_0x546aa7([0x78])]:_0x546aa7([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]),[_0x546aa7([0x79])]:_0x546aa7([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]),[_0x546aa7([0x61,0x6c,0x67])]:_0x546aa7([0x45,0x53,0x32,0x35,0x36])},_0x501afd=_0x417b88[_0x546aa7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x546aa7([0x67,0x65,0x74])](_0x546aa7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3d406f(){let _0x149a70,_0x176d70=null,_0x2f15db=null;try{if(_0x501afd==_0x546aa7([0x47,0x50,0x4c]))return _0x546aa7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x149a70=_0x445c9d(),!_0x149a70)return _0x546aa7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x149a70[_0x546aa7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f15db=_0x275735(_0x149a70[_0x546aa7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x149a70[_0x546aa7([0x6a,0x74,0x69])])),await _0x323ed4()?_0x2c4a6f()?_0x1dced2()?_0x546aa7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x124947()?(_0x149a70[_0x546aa7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x546aa7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x176d70=_0x5a3022(_0x546aa7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x149a70[_0x546aa7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x546aa7([0x74,0x72,0x69,0x61,0x6c])&&(_0x176d70=_0x5a3022(_0x546aa7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xe777cb()):_0x546aa7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x546aa7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x546aa7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x546aa7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1dced2(){const _0x38f3a9=[_0x546aa7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x546aa7([0x74,0x72,0x69,0x61,0x6c])][_0x546aa7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x149a70[_0x546aa7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14676d/0x3e8:0xe10*_0x3a214b;return _0x149a70[_0x546aa7([0x65,0x78,0x70])]<_0x38f3a9;}function _0x2c4a6f(){const _0x5ad5c0=_0x149a70[_0x546aa7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5ad5c0&&(!!_0x5ad5c0[_0x546aa7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x546aa7([0x2a]))||!!_0x5ad5c0[_0x546aa7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x546aa7([0x55,0x50,0x4c,0x43])));}function _0x124947(){const _0xe5408=_0x4cd3,_0xcf3ee2=_0x149a70[_0x546aa7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xcf3ee2||0x0==_0xcf3ee2[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2ae582}=new URL(window[_0x546aa7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xe5408(0xe6)]);if(_0xcf3ee2[_0x546aa7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ae582))return!0x0;const _0x5371ff=_0x2ae582[_0x546aa7([0x73,0x70,0x6c,0x69,0x74])](_0x546aa7([0x2e]));return _0xcf3ee2[_0x546aa7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x46a6c5=>_0x46a6c5[_0x546aa7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x546aa7([0x2a])))[_0x546aa7([0x6d,0x61,0x70])](_0x4aedb5=>_0x4aedb5[_0x546aa7([0x73,0x70,0x6c,0x69,0x74])](_0x546aa7([0x2e])))[_0x546aa7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e4f10=>_0x2e4f10[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5371ff[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x546aa7([0x6d,0x61,0x70])](_0x73c660=>Array(_0x5371ff[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x73c660[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x546aa7([0x66,0x69,0x6c,0x6c])](_0x73c660[0x0]===_0x546aa7([0x2a])?_0x546aa7([0x2a]):'')[_0x546aa7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x73c660))[_0x546aa7([0x73,0x6f,0x6d,0x65])](_0x9aae62=>_0x5371ff[_0x546aa7([0x65,0x76,0x65,0x72,0x79])]((_0x4fb91e,_0x4676f9)=>_0x9aae62[_0x4676f9]===_0x4fb91e||_0x9aae62[_0x4676f9]===_0x546aa7([0x2a])));}function _0xe777cb(){return _0x176d70&&_0x2f15db?new window[(_0x546aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x226387,_0x30654b)=>{_0x176d70[_0x546aa7([0x74,0x68,0x65,0x6e])](_0x226387,_0x30654b),_0x2f15db[_0x546aa7([0x74,0x68,0x65,0x6e])](_0x267ccf=>{_0x267ccf!=_0x546aa7([0x56,0x61,0x6c,0x69,0x64])&&_0x226387(_0x267ccf);},_0x30654b);}):_0x176d70||_0x2f15db||_0x546aa7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x275735(_0x5b75e3,_0x291af8){return new window[(_0x546aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b2e03=>{if(_0xa17ede())return _0x1b2e03(_0x546aa7([0x56,0x61,0x6c,0x69,0x64]));_0x19f223(),_0x417b88[_0x546aa7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x546aa7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3cf502=!0x1;const _0x53d8d1=_0x19abac();function _0x86222d(_0x46899a){return!!_0x46899a&&(typeof _0x46899a===_0x546aa7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x46899a===_0x546aa7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x46899a[_0x546aa7([0x74,0x68,0x65,0x6e])]===_0x546aa7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x46899a[_0x546aa7([0x63,0x61,0x74,0x63,0x68])]===_0x546aa7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f67c9(_0x47c0c5){_0x4fd02a(_0x47c0c5)[_0x546aa7([0x74,0x68,0x65,0x6e])](_0x317de7=>{if(!_0x317de7||_0x317de7[_0x546aa7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x546aa7([0x6f,0x6b]))return _0x546aa7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x59a191(_0x59fe0b(_0x53d8d1+_0x291af8))!=_0x317de7[_0x546aa7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x546aa7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x546aa7([0x56,0x61,0x6c,0x69,0x64]);})[_0x546aa7([0x74,0x68,0x65,0x6e])](_0x2cf3d7=>(_0x43f632(),_0x2cf3d7),()=>{const _0x224f59=_0x218e2a();return null==_0x224f59?(_0x43f632(),_0x546aa7([0x56,0x61,0x6c,0x69,0x64])):_0x546aa7(_0x14676d-_0x224f59>(0x285c0295^_0x25c095)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x546aa7([0x74,0x68,0x65,0x6e])](_0x1b2e03)[_0x546aa7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b2e03(_0x546aa7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e41cc=0xc666815^_0x25c095;function _0x43f632(){const _0x7eb3b9=_0x546aa7([0x6c,0x6c,0x63,0x74,0x2d])+_0x59a191(_0x59fe0b(_0x5b75e3)),_0x1b876a=_0x4b462a(_0x59a191(window[_0x546aa7([0x4d,0x61,0x74,0x68])][_0x546aa7([0x63,0x65,0x69,0x6c])](_0x14676d/_0x2e41cc)));window[_0x546aa7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x546aa7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7eb3b9,_0x1b876a);}function _0x218e2a(){const _0x108cdb=_0x546aa7([0x6c,0x6c,0x63,0x74,0x2d])+_0x59a191(_0x59fe0b(_0x5b75e3)),_0xee375f=window[_0x546aa7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x546aa7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x108cdb);return _0xee375f?window[_0x546aa7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b462a(_0xee375f),0x10)*_0x2e41cc:null;}function _0x4fd02a(_0x675c72){return new window[(_0x546aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4420e0,_0x109352)=>{_0x675c72[_0x546aa7([0x74,0x68,0x65,0x6e])](_0x4420e0,_0x109352),window[_0x546aa7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x109352,0xc515255^_0x25c095);});}}_0x417b88[_0x546aa7([0x6f,0x6e])](_0x546aa7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5fdb3a,_0x369d8d)=>{if(_0x369d8d[0x0]!=_0x5b75e3)return _0x1b2e03(_0x546aa7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x369d8d[0x1]={..._0x369d8d[0x1],[_0x546aa7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x53d8d1};},{[_0x546aa7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x546aa7([0x68,0x69,0x67,0x68])}),_0x417b88[_0x546aa7([0x6f,0x6e])](_0x546aa7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4bda2b=>{_0x86222d(_0x4bda2b[_0x546aa7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3cf502=!0x0,_0x1f67c9(_0x4bda2b[_0x546aa7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x546aa7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x546aa7([0x6c,0x6f,0x77])}),_0x2f88ae[_0x546aa7([0x74,0x68,0x65,0x6e])](()=>{_0x3cf502||_0x1b2e03(_0x546aa7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa17ede(){return _0x417b88[_0x546aa7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x546aa7([0x76,0x69,0x65,0x77])][_0x546aa7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x546aa7([0x61,0x75,0x74,0x6f]);}function _0x19f223(){_0x417b88[_0x546aa7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x546aa7([0x76,0x69,0x65,0x77])][_0x546aa7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x546aa7([0x61,0x75,0x74,0x6f]);}}function _0x5a3022(_0x2481f8){const _0x49d176=[new window[(_0x546aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a8b60=>setTimeout(_0x4a8b60,0xc59b859^_0x25c095)),_0x2f88ae[_0x546aa7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x546aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20321b=>{let _0x47805b=0x0;_0x417b88[_0x546aa7([0x6d,0x6f,0x64,0x65,0x6c])][_0x546aa7([0x6f,0x6e])](_0x546aa7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5962a6,_0xaa437e)=>{_0xaa437e[0x0][_0x546aa7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x47805b++,_0x47805b==(0xc50876d^_0x25c095)&&(_0x20321b(),_0x5962a6[_0x546aa7([0x6f,0x66,0x66])]());});}))];return window[_0x546aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x546aa7([0x72,0x61,0x63,0x65])](_0x49d176)[_0x546aa7([0x74,0x68,0x65,0x6e])](()=>_0x2481f8);}async function _0x8f3aa1(){await _0x2f88ae,_0x417b88[_0x546aa7([0x6d,0x6f,0x64,0x65,0x6c])][_0x546aa7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f5fd6,_0x417b88[_0x546aa7([0x6d,0x6f,0x64,0x65,0x6c])][_0x546aa7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f5fd6,_0x417b88[_0x546aa7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x546aa7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x513a6a(_0x4acb12){const _0x3585a6=_0x426a19();_0x417b88[_0x3585a6]=_0x546aa7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4acb12,_0x4acb12!=_0x546aa7([0x56,0x61,0x6c,0x69,0x64])&&_0x8f3aa1();}function _0x426a19(){const _0x547c7b=window[_0x546aa7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x546aa7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x546aa7([0x6e,0x6f,0x77])]())[_0x546aa7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x546aa7([0x2e]),'');let _0xd57be5=_0x546aa7([0x62]);for(let _0x1160a5=0x0;_0x1160a5<_0x547c7b[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1160a5+=0x2){let _0x5b06c2=window[_0x546aa7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x547c7b[_0x546aa7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1160a5,_0x1160a5+0x2));_0x5b06c2>=_0x40299d[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5b06c2-=_0x40299d[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xd57be5+=_0x40299d[_0x5b06c2];}return _0xd57be5;}function _0x445c9d(){const _0x38c311=_0x501afd[_0x546aa7([0x73,0x70,0x6c,0x69,0x74])](_0x546aa7([0x2e]));if(0x3!=_0x38c311[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5d4070(_0x38c311[0x1]);function _0x5d4070(_0x3cdf9e){const _0x41abd4=_0x23be7a(_0x3cdf9e);return _0x41abd4&&_0x591719()?_0x41abd4:null;function _0x591719(){const _0x1087fa=_0x41abd4[_0x546aa7([0x6a,0x74,0x69])],_0x171eb8=window[_0x546aa7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1087fa[_0x546aa7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1087fa[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x57688b={..._0x41abd4,[_0x546aa7([0x6a,0x74,0x69])]:_0x1087fa[_0x546aa7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1087fa[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x57688b[_0x546aa7([0x76,0x63])],_0x59fe0b(_0x57688b)==_0x171eb8;}}}async function _0x323ed4(){let _0x58755a=!0x0;try{const _0x2094da=_0x501afd[_0x546aa7([0x73,0x70,0x6c,0x69,0x74])](_0x546aa7([0x2e])),[_0x5e8d5f,_0x324371,_0x4be1ca]=_0x2094da;return _0x312b40(_0x5e8d5f),await _0x339669(_0x5e8d5f,_0x324371,_0x4be1ca),_0x58755a;}catch{return!0x1;}function _0x312b40(_0x163e4b){const _0x139c42=_0x23be7a(_0x163e4b);_0x139c42&&_0x139c42[_0x546aa7([0x61,0x6c,0x67])]==_0x546aa7([0x45,0x53,0x32,0x35,0x36])||(_0x58755a=!0x1);}async function _0x339669(_0x17eaf8,_0x44012a,_0x150ec0){const _0x170a4c=window[_0x546aa7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x546aa7([0x66,0x72,0x6f,0x6d])](_0x3f2d11(_0x150ec0),_0x187184=>_0x187184[_0x546aa7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32b255=new window[(_0x546aa7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x546aa7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x17eaf8+_0x546aa7([0x2e])+_0x44012a),_0x2c7c06=window[_0x546aa7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x546aa7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2c7c06)return;const _0x168985=await _0x2c7c06[_0x546aa7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x546aa7([0x6a,0x77,0x6b]),_0x464787,{[_0x546aa7([0x6e,0x61,0x6d,0x65])]:_0x546aa7([0x45,0x43,0x44,0x53,0x41]),[_0x546aa7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x546aa7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x546aa7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2c7c06[_0x546aa7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x546aa7([0x6e,0x61,0x6d,0x65])]:_0x546aa7([0x45,0x43,0x44,0x53,0x41]),[_0x546aa7([0x68,0x61,0x73,0x68])]:{[_0x546aa7([0x6e,0x61,0x6d,0x65])]:_0x546aa7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x168985,_0x170a4c,_0x32b255)||(_0x58755a=!0x1);}}function _0x23be7a(_0x5845d4){return _0x5845d4[_0x546aa7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x546aa7([0x65,0x79]))?JSON[_0x546aa7([0x70,0x61,0x72,0x73,0x65])](_0x3f2d11(_0x5845d4)):null;}function _0x3f2d11(_0x5a24df){return window[_0x546aa7([0x61,0x74,0x6f,0x62])](_0x5a24df[_0x546aa7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x546aa7([0x2b]))[_0x546aa7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x546aa7([0x2f])));}function _0x59fe0b(_0x24216c){let _0x1e16bd=0x1505;function _0x4f33cd(_0x48cb04){for(let _0x134961=0x0;_0x134961<_0x48cb04[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x134961++){const _0x554477=_0x48cb04[_0x546aa7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x134961);_0x1e16bd=(_0x1e16bd<<0x5)+_0x1e16bd+_0x554477,_0x1e16bd&=_0x1e16bd;}}function _0x1f7707(_0x183133){Array[_0x546aa7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x183133)?_0x183133[_0x546aa7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1f7707):_0x183133&&typeof _0x183133==_0x546aa7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x546aa7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x183133)[_0x546aa7([0x73,0x6f,0x72,0x74])]()[_0x546aa7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x59ef02,_0x3ab707])=>{_0x4f33cd(_0x59ef02),_0x1f7707(_0x3ab707);}):_0x4f33cd(window[_0x546aa7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x183133));}return _0x1f7707(_0x24216c),_0x1e16bd>>>0x0;}function _0x59a191(_0x12dc49){return _0x12dc49[_0x546aa7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x546aa7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x546aa7([0x30]));}function _0x4b462a(_0x32ea7e){return _0x32ea7e[_0x546aa7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x546aa7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x546aa7([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f5fd6(){}function _0x546aa7(_0x35c305){const _0x55cd2c=_0x4cd3;return _0x35c305[_0x55cd2c(0xe4)](_0x42a562=>String[_0x55cd2c(0xe5)](_0x42a562))[_0x55cd2c(0xe7)]('');}_0x513a6a(await _0x3d406f());}(this);}[_0x31e4a1(0x11d)](){const _0x223304=_0x31e4a1,_0x4357d4=this[_0x223304(0xdf)][_0x223304(0x112)][_0x223304(0x11a)];_0x4357d4[_0x223304(0x124)](_0x223304(0xd6))&&_0x4357d4[_0x223304(0x122)](_0x223304(0xd6),{'allowAttributes':[_0x223304(0x11b)]}),_0x4357d4[_0x223304(0x124)](_0x223304(0xe9))&&_0x4357d4[_0x223304(0x122)](_0x223304(0xe9),{'allowAttributes':[_0x223304(0x11b)]});}[_0x31e4a1(0xf9)](){const _0x820933=_0x31e4a1,_0x2fe376=this[_0x820933(0xdf)];_0x2fe376[_0x820933(0x104)][_0x820933(0xe8)](_0x820933(0x10e))[_0x820933(0xfb)]({'model':_0x820933(0x11b),'view':_0x820933(0xed)}),_0x2fe376[_0x820933(0x104)][_0x820933(0xe8)](_0x820933(0x118))[_0x820933(0x121)]({'model':{'key':_0x820933(0x11b),'value':_0x8f40b3=>_0x8f40b3[_0x820933(0x108)](_0x820933(0xed))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4f7e39=_0x2fe376[_0x820933(0x120)][_0x820933(0xfa)](_0x820933(0x109));_0x4f7e39&&this[_0x820933(0x102)](_0x4f7e39,_0x820933(0xdd),(_0x56c39a,[_0x1145ac,_0x573ccb])=>{const _0x15d329=_0x820933;_0x1145ac[_0x15d329(0xec)](_0x15d329(0x11b),_0x573ccb);});}[_0x31e4a1(0xd7)](){const _0xcdac17=_0x31e4a1,_0x24638e=this[_0xcdac17(0xdf)][_0xcdac17(0xd8)][_0xcdac17(0xfa)](_0xcdac17(0xf5))||{},_0x486a19=this[_0xcdac17(0xdf)][_0xcdac17(0xd8)][_0xcdac17(0xfa)](_0xcdac17(0xd4))||'';this[_0xcdac17(0x10c)]=_0x7a2c(_0x5b7fa8[_0xcdac17(0x106)],_0xcdac17(0xeb),{..._0x24638e,'pubkey':_0x486a19,'ctx-name':_0xcdac17(0xe1),'sourceList':'','imgOnly':_0xcdac17(0x115),'removeCopyright':_0xcdac17(0x115),'localeName':this[_0xcdac17(0xdf)][_0xcdac17(0xe0)][_0xcdac17(0xfe)],'externalSourcesEmbedCss':_0xcdac17(0x107)}),this[_0xcdac17(0x10c)][_0xcdac17(0x103)]=_0x35703=>{const _0x578327=_0xcdac17;if(_0x578327(0xde)==_0x35703)return _0x578327(0x116);},_0x5b7fa8[_0xcdac17(0x106)][_0xcdac17(0xee)][_0xcdac17(0xf6)](this[_0xcdac17(0x10c)]);}[_0x31e4a1(0x111)](){const _0x2157ba=_0x31e4a1;this[_0x2157ba(0xdb)]=_0x7a2c(_0x5b7fa8[_0x2157ba(0x106)],_0x2157ba(0xf4),{'ctx-name':_0x2157ba(0xe1)}),_0x5b7fa8[_0x2157ba(0x106)][_0x2157ba(0xee)][_0x2157ba(0xf6)](this[_0x2157ba(0xdb)]);}[_0x31e4a1(0xfd)](){const _0x17dba3=_0x31e4a1,_0x5ee70b=this[_0x17dba3(0xdf)][_0x17dba3(0x120)][_0x17dba3(0xfa)](_0x17dba3(0xef));_0x5ee70b&&this[_0x17dba3(0x102)](_0x5ee70b,_0x17dba3(0x101),()=>{const _0x549f6a=_0x17dba3,_0x4eb389=this[_0x549f6a(0xdf)][_0x549f6a(0x112)][_0x549f6a(0x106)][_0x549f6a(0x114)][_0x549f6a(0xe2)]();_0x4eb389&&_0x4eb389[_0x549f6a(0x108)](_0x549f6a(0x11b))&&this[_0x549f6a(0xdf)][_0x549f6a(0x100)][_0x549f6a(0x110)][_0x549f6a(0x10b)](_0x549f6a(0xdc),()=>{const _0x37a510=_0x549f6a;_0x51c788(this[_0x37a510(0xdf)],_0x4eb389);});});const _0xa29605=this[_0x17dba3(0xdf)][_0x17dba3(0x120)][_0x17dba3(0xfa)](_0x17dba3(0xe3));_0xa29605&&this[_0x17dba3(0x102)](_0xa29605,_0x17dba3(0x101),()=>{const _0x3e8af9=_0x17dba3,_0x392de2=this[_0x3e8af9(0xdf)][_0x3e8af9(0x112)][_0x3e8af9(0x106)][_0x3e8af9(0x114)][_0x3e8af9(0xe2)]();_0x392de2&&_0x392de2[_0x3e8af9(0x108)](_0x3e8af9(0x11b))&&this[_0x3e8af9(0xdf)][_0x3e8af9(0x100)][_0x3e8af9(0x110)][_0x3e8af9(0x10b)](_0x3e8af9(0xdc),()=>{const _0x49d8fd=_0x3e8af9;_0x51c788(this[_0x49d8fd(0xdf)],_0x392de2);});});}}function _0x3d11(){const _0x2b5dd3=['attributeToAttribute','6RezvdQ','_initImageProcessingIndicator','contentLanguage','4122GXUlBb','editing','execute','listenTo','iconHrefResolver','conversion','afterInit','document','\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','getAttribute','replaceImageSource','requires','once','_configElement','init','downcast','5672909Pfuydj','view','_initCtx','model','remove','selection','true','#uc-icon-arrow-down','pluginName','upcast','configElement','schema','uploadcareImageId','2087320HJfzvw','_initSchema','isOfficialPlugin','960281qkHgBD','commands','elementToAttribute','extend','querySelector','isRegistered','428468FvZnNF','12DXIjct','PictureEditing','29MDkalB','uploadcare.pubkey','16462zIFIMd','imageBlock','_initConfig','config','152104LASCot','ctxElement','_ctxElement','render','cleanupImage','closeMax','editor','locale','uploader','getSelectedElement','uploadcareImageReplace','map','fromCharCode','href','join','for','imageInline','UploadcareEditing','uc-config','removeAttribute','data-uc-image-id','body','insertImage','9410VuafsY','destroy','isPremiumPlugin','uploadcare','uc-upload-ctx-provider','uploadcare.uploader','appendChild','input[uploadcare-file-input]','add','_initConversion','get'];_0x3d11=function(){return _0x2b5dd3;};return _0x3d11();}
|