@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251226.0 → 0.0.0-nightly-20251227.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x41de67,Command as _0x174483}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4bf4da,IconGooglePhotos as _0x3a008b,IconGoogleDrive as _0x54c2e8,IconFacebook as _0x28d522,IconDropbox as _0xc8e607,IconUploadcareLink as _0xea9b6b,IconUploadcareImageUpload as _0x5ea018,IconError as _0xcf25c4,IconUploadcareImageEdit as _0x18b5b9}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x156676,MenuBarMenuListItemButtonView as _0x30d3c5,View as _0x15083e,FocusCycler as _0x1f8f86,Dialog as _0x31ce98,DialogViewPosition as _0x1e43bb,SpinnerView as _0x4ba61f,IconView as _0x317ea9,Notification as _0x2defa5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x57b503,DomEmitterMixin as _0x34b8de,global as _0x467307,getAncestors as _0x163278,ObservableMixin as _0x18f8fd,uid as _0x7f336,createElement as _0x1d1cba}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x55a376}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x637d98,info as _0x3adbb2}from'@uploadcare/upload-client';import*as _0x2df21c from'@uploadcare/file-uploader';var i=function(_0x3ee6f4){return _0x3ee6f4['Local']='local',_0x3ee6f4['URL']='url',_0x3ee6f4['Dropbox']='dropbox',_0x3ee6f4['GDrive']='gdrive',_0x3ee6f4['Facebook']='facebook',_0x3ee6f4['GPhotos']='gphotos',_0x3ee6f4['OneDrive']='onedrive',_0x3ee6f4;}({});function _(_0x25c7c9,_0x3c362c,_0x7b4e14){const t=_0x25c7c9['t'],_0x5d60d8=_0x25c7c9['t'];switch(_0x3c362c){case i['Local']:return{'text':_0x5d60d8('Insert'===_0x7b4e14?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5d60d8('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x7b4e14?_0x5d60d8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5d60d8('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x7b4e14?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x7b4e14?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x7b4e14?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x7b4e14?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x7b4e14?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3c362c;}}class e extends _0x41de67{['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 _0x556468=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x505733;for(const _0x5e3f40 in _0x556468){const _0x12c310=_0x5e3f40,_0x2c921f=_0x556468[_0x12c310];if('uploadcareLicenseKeyValid'==_0x2c921f||'uploadcareLicenseKeyInvalid'==_0x2c921f||'uploadcareLicenseKeyExpired'==_0x2c921f||'uploadcareLicenseKeyDomainLimit'==_0x2c921f||'uploadcareLicenseKeyNotAllowed'==_0x2c921f||'uploadcareLicenseKeyEvaluationLimit'==_0x2c921f||'uploadcareLicenseKeyTrialLimit'==_0x2c921f||'uploadcareLicenseKeyUsageLimit'==_0x2c921f){delete _0x556468[_0x12c310],_0x505733=_0x2c921f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x505733&&_0x556468['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x505733&&_0x556468['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x505733&&_0x556468['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x505733&&_0x556468['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x505733&&_0x556468['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x505733&&_0x556468['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x505733&&_0x556468['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x442795}=this,_0x3a1963=_0x442795['commands']['get']('uploadcare');if(!_0x3a1963)return;const _0x597923=this['_normalizeConfigSourceList'](_0x442795['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2d631f,_0x5c91e5)=>{const _0x4d85de=this['_getIntegrationKey'](_0x5c91e5['type']);return _0x2d631f[_0x4d85de]||(_0x2d631f[_0x4d85de]=[]),_0x2d631f[_0x4d85de]['push'](_0x5c91e5),_0x2d631f;},{});_0x442795['plugins']['has']('ImageInsertUI')&&_0x442795['commands']['get']('uploadcare')&&Object['entries'](_0x597923)['forEach'](([_0x53e1d9,_0x4dcdc2])=>{_0x442795['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x53e1d9,'observable':()=>_0x3a1963,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4dcdc2),'formViewCreator':()=>this['_createDropdownButtons'](_0x4dcdc2),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4dcdc2),'override':'assetManager'!==_0x53e1d9});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x34ae4b){const {locale:_0x37ae4d}=this['editor'];return _0x34ae4b['map'](_0x2c2567=>{const _0x495b46=_(_0x37ae4d,_0x2c2567,'Insert');switch(_0x2c2567){case i['Local']:return{'icon':_0x5ea018,'type':i['Local'],..._0x495b46};case i['URL']:return{'icon':_0xea9b6b,'type':i['URL'],..._0x495b46};case i['Dropbox']:return{'icon':_0xc8e607,'type':i['Dropbox'],..._0x495b46};case i['Facebook']:return{'icon':_0x28d522,'type':i['Facebook'],..._0x495b46};case i['GDrive']:return{'icon':_0x54c2e8,'type':i['GDrive'],..._0x495b46};case i['GPhotos']:return{'icon':_0x3a008b,'type':i['GPhotos'],..._0x495b46};case i['OneDrive']:return{'icon':_0x4bf4da,'type':i['OneDrive'],..._0x495b46};}});}['_getIntegrationKey'](_0x4357a6){switch(_0x4357a6){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x21d439,_0x106db5){const _0x4adbf5=this['editor'],_0x1753f8=new _0x21d439(_0x4adbf5['locale']),_0xfdfc6e=_0x4adbf5['commands']['get']('uploadcare');return _0x1753f8['bind']('isEnabled')['to'](_0xfdfc6e),_0x1753f8['on']('execute',()=>{_0xfdfc6e['execute'](_0x106db5);}),_0x1753f8;}['_createToolbarButton'](_0x1ec696){const {locale:_0x14ef60}=this['editor'],_0x52bf10=this['editor']['plugins']['get']('ImageInsertUI'),_0x3b658d=_0x1ec696[0x0],_0x1a5fb9=this['_createButton'](_0x156676,_0x3b658d['type']);return _0x1a5fb9['icon']=_0x3b658d['icon'],_0x1a5fb9['bind']('label')['to'](_0x52bf10,'isImageSelected',_0xb3cc56=>_(_0x14ef60,_0x3b658d['type'],_0xb3cc56?'Replace':'Insert')['text']),_0x1a5fb9['tooltip']=!0x0,_0x1a5fb9;}['_createDropdownButtons'](_0xff0dd8){const {locale:_0x583548}=this['editor'],_0x154316=this['editor']['plugins']['get']('ImageInsertUI');return _0xff0dd8['map'](_0x4d2eb3=>{const _0x356d20=this['_createButton'](_0x156676,_0x4d2eb3['type']);return _0x356d20['withText']=!0x0,_0x356d20['icon']=_0x4d2eb3['icon'],_0x356d20['bind']('label')['to'](_0x154316,'isImageSelected',_0x2adba4=>_(_0x583548,_0x4d2eb3['type'],_0x2adba4?'Replace':'Insert')['text']),_0x356d20;});}['_createMenuBarButtons'](_0x18e2d8){return _0x18e2d8['map'](_0x459973=>{const _0x5628f8=this['_createButton'](_0x30d3c5,_0x459973['type']);return _0x5628f8['icon']=_0x459973['icon'],_0x5628f8['label']=_0x459973['shortText'],_0x5628f8;});}}class F extends _0x15083e{['focusTracker'];['focusCycler'];constructor(_0x193ee4){super(_0x193ee4),this['focusTracker']=new _0x57b503(),this['focusCycler']=new _0x1f8f86({'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 x extends F{constructor(_0x3d2b25,_0x1b93e5){super(_0x3d2b25),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-'+_0x1b93e5}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x240409,_0x3325c7){const _0x3c64ed=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x597b31=>_0x597b31<=_0x3325c7)['map'](_0x5114b2=>_0x240409['replace'](/\/$/,'')+'/-/resize/'+_0x5114b2+'x/\x20'+_0x5114b2+'w');return{'imageFallbackUrl':_0x240409,'imageSources':[{'srcset':_0x3c64ed['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3325c7+'px)\x20100vw,\x20'+_0x3325c7+'px','type':'image/webp'}]};}function S(_0x202826,_0x42b961,_0x3a134e){const _0x344b20=_0x202826['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x344b20?parseInt(_0x344b20[0x1],0xa):_0x42b961,'height':_0x344b20?parseInt(_0x344b20[0x2],0xa):_0x3a134e};}function p(_0x43623a,_0x169f7f){const _0x58efda=new(_0x34b8de())(),_0x5efec8=_0x43623a['plugins']['get']('ImageUtils'),_0x5cc209=_0x43623a['editing']['mapper']['toViewElement'](_0x169f7f),_0x323681=_0x5efec8['findViewImgElement'](_0x5cc209),_0xada4ab=_0x43623a['editing']['view']['domConverter']['viewToDom'](_0x323681),_0x9a9a4=_0x169f7f['getAttribute']('width'),_0x37a7c5=_0x169f7f['getAttribute']('height'),_0xc60f75='image-processing';_0x43623a['editing']['view']['change'](_0x41d9fa=>{_0x41d9fa['addClass'](_0xc60f75,_0x5cc209),_0x41d9fa['setStyle']('aspect-ratio',_0x9a9a4+'/'+_0x37a7c5,_0x323681);}),_0x58efda['listenTo'](_0xada4ab,'load',()=>{_0x58efda['stopListening'](_0xada4ab,'load'),_0x43623a['editing']['view']['change'](_0x5f3b2f=>{_0x5f3b2f['removeClass'](_0xc60f75,_0x5cc209),_0x5f3b2f['removeStyle']('aspect-ratio',_0x323681);});});}function z(_0x42c8e3){if(Array['isArray'](_0x42c8e3)){const _0x46201a=_0x42c8e3['map'](z);return _0x550602=>_0x46201a['some'](_0x5b316b=>_0x5b316b(_0x550602));}if('origin'==_0x42c8e3){const _0x20849d=_0x467307['window']['location']['origin'];return _0x59f64=>new URL(_0x59f64,_0x467307['document']['baseURI'])['origin']==_0x20849d;}return'function'==typeof _0x42c8e3?_0x42c8e3:_0x42c8e3 instanceof RegExp?_0x528557=>!(!_0x528557['match'](_0x42c8e3)&&!_0x528557['replace'](/^https?:\/\//,'')['match'](_0x42c8e3)):()=>!0x1;}function A(_0x3ec5c4,_0x30ba27){return _0x163278(_0x3ec5c4['target'])['includes'](_0x30ba27);}class n extends/* #__PURE__ -- @preserve */
24
- _0x18f8fd(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x159cf1,_0x107db0,_0xabdb6){super(),this['_editor']=_0x159cf1,this['_editing']=_0x107db0,this['_dialog']=_0x159cf1['plugins']['get'](_0x31ce98),this['_api']=_0x107db0['ctxElement']['getAPI'](),this['_type']=_0xabdb6,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:_0x13d26c,model:_0xc95f84}=this['_editor'],_0x4bd916=_0xc95f84['document']['selection']['getSelectedElement'](),_0x108271=_0x4bd916&&(_0x4bd916['is']('element','imageBlock')||_0x4bd916['is']('element','imageInline'));this['_formView']=new x(_0x13d26c,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5ea018,'title':_(_0x13d26c,this['_type'],_0x108271?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1e43bb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1e8130=>!A(_0x1e8130,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x32be64}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4b331d=>{const _0x2311dc=_0x32be64['length'];for(const _0x80c6b5 of _0x32be64){const _0x4ab7e3=_0x80c6b5===_0x32be64[_0x2311dc-0x1],{cdnUrl:_0x335b66,fileInfo:_0x3a909f}=_0x80c6b5;if(!_0x335b66||!_0x3a909f)continue;const {width:_0x5ad147,height:_0x30a3aa}=_0x3a909f['imageInfo'],_0x1ee1a3=S(_0x335b66,_0x5ad147,_0x30a3aa),_0x54c823=C(_0x335b66,_0x1ee1a3['width']),_0x329fdb={'id':_0x3a909f['uuid'],'type':'image','attributes':{'imageDimension':_0x1ee1a3,..._0x54c823}};this['_insertAsset'](_0x329fdb,_0x4ab7e3,_0x4b331d);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x18f106=>{'idle'===_0x18f106['detail']['status']&&!_0x18f106['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x56ec08,_0x2a3325,_0x4e1b19){const _0x3c0283=this['_editor']['model']['document']['selection'],_0x25f74f=_0x3c0283['getSelectedElement'](),_0x89a5e8=!(!_0x25f74f||!_0x25f74f['is']('element','imageInline'));_0x4e1b19['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x56ec08,_0x89a5e8),_0x2a3325||_0x4e1b19['setSelection'](_0x3c0283['getLastPosition']());}['_insertImage'](_0x130136,_0x142c6c){const _0x37b996=this['_editor'],{imageDimension:_0xee8978,imageFallbackUrl:_0x543f86,imageSources:_0x3e21b0}=_0x130136['attributes'];_0x37b996['execute']('insertImage',{'imageType':_0x142c6c?'imageInline':null,'source':{'uploadcareImageId':_0x130136['id'],'src':_0x543f86,'sources':_0x3e21b0,..._0xee8978}});}}class w extends _0x174483{['_editing'];['_controller']=null;static get['requires'](){return[_0x31ce98,o];}constructor(_0xc439a6){super(_0xc439a6),this['_editing']=_0xc439a6['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2bfa50){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2bfa50);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x699135,..._0x852fda}){return _0x637d98(_0x699135,_0x852fda);}static['getInfo'](_0x1ae32f,_0x2aed74){return _0x3adbb2(_0x1ae32f,_0x2aed74);}}class f extends _0x41de67{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x55a376,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x148832=this['editor'];if(!!!_0x148832['config']['get']('uploadcare'))return;_0x148832['plugins']['get'](_0x55a376)['createUploadAdapter']=_0x3c8518=>new k(_0x3c8518,_0x148832),_0x148832['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x57fbbb,{imageElement:_0xa39b8b,data:_0x4f960d})=>{_0x148832['model']['change'](_0x5c979c=>{_0x5c979c['setAttribute']('uploadcareImageId',_0x4f960d['uploadcareImageId'],_0xa39b8b);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x527a53,_0x1692e2){this['loader']=_0x527a53,this['editor']=_0x1692e2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x41b960=await this['loader']['file'];return j['upload']({'file':_0x41b960,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x3d66f1=>{_0x3d66f1&&_0x3d66f1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3d66f1['value']);}})['then'](async _0x3ebbbf=>{const {imageFallbackUrl:_0x17ebe5,imageSources:_0x3484da}=C(_0x3ebbbf['cdnUrl'],_0x3ebbbf['imageInfo']['width']);return{'uploadcareImageId':_0x3ebbbf['uuid'],'default':_0x17ebe5,'sources':_0x3484da};})['catch'](()=>{const _0x16d5b7=t('Cannot\x20upload\x20file:')+('\x20'+_0x41b960['name']+'.');return Promise['reject'](_0x16d5b7);});}['abort'](){this['controller']['abort']();}}class o extends _0x41de67{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x31ce98];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1ac7d8){super(_0x1ac7d8),this['ucContextId']=_0x7f336();}['init'](){const _0x26d74c=this['editor'];_0x26d74c['commands']['add']('uploadcare',new w(_0x26d74c));}['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 _0x2c7c92=_0x467307['document']['querySelector']('input[uploadcare-file-input]');_0x2c7c92&&_0x2c7c92['remove']();}),async function(_0x2efbdc){const _0x5b6c5f=_0x1332f7([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x74b8d1=0x535f8c3a,_0x5aa94e=0x5358f13a^_0x74b8d1,_0x20838b=window[_0x1332f7([0x44,0x61,0x74,0x65])][_0x1332f7([0x6e,0x6f,0x77])](),_0x5123df=_0x2efbdc[_0x1332f7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xaf9e0=new window[(_0x1332f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fc73=>{_0x5123df[_0x1332f7([0x6f,0x6e,0x63,0x65])](_0x1332f7([0x72,0x65,0x61,0x64,0x79]),_0x3fc73);}),_0x44bf39={[_0x1332f7([0x6b,0x74,0x79])]:_0x1332f7([0x45,0x43]),[_0x1332f7([0x75,0x73,0x65])]:_0x1332f7([0x73,0x69,0x67]),[_0x1332f7([0x63,0x72,0x76])]:_0x1332f7([0x50,0x2d,0x32,0x35,0x36]),[_0x1332f7([0x78])]:_0x1332f7([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]),[_0x1332f7([0x79])]:_0x1332f7([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]),[_0x1332f7([0x61,0x6c,0x67])]:_0x1332f7([0x45,0x53,0x32,0x35,0x36])},_0x6f7be1=_0x5123df[_0x1332f7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1332f7([0x67,0x65,0x74])](_0x1332f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xf4c437(){let _0x2dfb5e,_0x3533ba=null,_0x47b277=null;try{if(_0x6f7be1==_0x1332f7([0x47,0x50,0x4c]))return _0x1332f7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2dfb5e=_0x569488(),!_0x2dfb5e)return _0x1332f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2dfb5e[_0x1332f7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x47b277=_0x502c85(_0x2dfb5e[_0x1332f7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2dfb5e[_0x1332f7([0x6a,0x74,0x69])])),await _0x12d4bb()?_0x1fd663()?_0x109a37()?_0x1332f7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2e30fe()?(_0x2dfb5e[_0x1332f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1332f7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3533ba=_0x27b5c7(_0x1332f7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2dfb5e[_0x1332f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1332f7([0x74,0x72,0x69,0x61,0x6c])&&(_0x3533ba=_0x27b5c7(_0x1332f7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x346177()):_0x1332f7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1332f7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1332f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1332f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x109a37(){const _0x3bc1d9=[_0x1332f7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1332f7([0x74,0x72,0x69,0x61,0x6c])][_0x1332f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dfb5e[_0x1332f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x20838b/0x3e8:0xe10*_0x5aa94e;return _0x2dfb5e[_0x1332f7([0x65,0x78,0x70])]<_0x3bc1d9;}function _0x1fd663(){const _0x32c0a2=_0x2dfb5e[_0x1332f7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x32c0a2&&(!!_0x32c0a2[_0x1332f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1332f7([0x2a]))||!!_0x32c0a2[_0x1332f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1332f7([0x55,0x50,0x4c,0x43])));}function _0x2e30fe(){const _0x54436e=_0x2dfb5e[_0x1332f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x54436e||0x0==_0x54436e[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x10fd52}=new URL(window[_0x1332f7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x54436e[_0x1332f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10fd52))return!0x0;const _0x2df8ac=_0x10fd52[_0x1332f7([0x73,0x70,0x6c,0x69,0x74])](_0x1332f7([0x2e]));return _0x54436e[_0x1332f7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b99e1=>_0x4b99e1[_0x1332f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1332f7([0x2a])))[_0x1332f7([0x6d,0x61,0x70])](_0x5a8da1=>_0x5a8da1[_0x1332f7([0x73,0x70,0x6c,0x69,0x74])](_0x1332f7([0x2e])))[_0x1332f7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x62cd83=>_0x62cd83[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2df8ac[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1332f7([0x6d,0x61,0x70])](_0x47a453=>Array(_0x2df8ac[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x47a453[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1332f7([0x66,0x69,0x6c,0x6c])](_0x47a453[0x0]===_0x1332f7([0x2a])?_0x1332f7([0x2a]):'')[_0x1332f7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x47a453))[_0x1332f7([0x73,0x6f,0x6d,0x65])](_0x44e0b4=>_0x2df8ac[_0x1332f7([0x65,0x76,0x65,0x72,0x79])]((_0x25fe7,_0x4544d7)=>_0x44e0b4[_0x4544d7]===_0x25fe7||_0x44e0b4[_0x4544d7]===_0x1332f7([0x2a])));}function _0x346177(){return _0x3533ba&&_0x47b277?new window[(_0x1332f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5aa067,_0x43e40b)=>{_0x3533ba[_0x1332f7([0x74,0x68,0x65,0x6e])](_0x5aa067,_0x43e40b),_0x47b277[_0x1332f7([0x74,0x68,0x65,0x6e])](_0x40c94d=>{_0x40c94d!=_0x1332f7([0x56,0x61,0x6c,0x69,0x64])&&_0x5aa067(_0x40c94d);},_0x43e40b);}):_0x3533ba||_0x47b277||_0x1332f7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x502c85(_0x47f678,_0x419587){return new window[(_0x1332f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f2634=>{if(_0x2112ad())return _0x2f2634(_0x1332f7([0x56,0x61,0x6c,0x69,0x64]));_0x119f8e(),_0x5123df[_0x1332f7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1332f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xbf69f7=!0x1;const _0x49c69a=_0x7f336();function _0x23becd(_0x37b749){return!!_0x37b749&&(typeof _0x37b749===_0x1332f7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x37b749===_0x1332f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x37b749[_0x1332f7([0x74,0x68,0x65,0x6e])]===_0x1332f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x37b749[_0x1332f7([0x63,0x61,0x74,0x63,0x68])]===_0x1332f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c3809(_0x2e604a){_0x48b676(_0x2e604a)[_0x1332f7([0x74,0x68,0x65,0x6e])](_0x333e7f=>{if(!_0x333e7f||_0x333e7f[_0x1332f7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1332f7([0x6f,0x6b]))return _0x1332f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x212cdb(_0x57dbff(_0x49c69a+_0x419587))!=_0x333e7f[_0x1332f7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1332f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1332f7([0x56,0x61,0x6c,0x69,0x64]);})[_0x1332f7([0x74,0x68,0x65,0x6e])](_0x4263c1=>(_0x216f99(),_0x4263c1),()=>{const _0x10681b=_0x84e438();return null==_0x10681b?(_0x216f99(),_0x1332f7([0x56,0x61,0x6c,0x69,0x64])):_0x1332f7(_0x20838b-_0x10681b>(0x7753083a^_0x74b8d1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1332f7([0x74,0x68,0x65,0x6e])](_0x2f2634)[_0x1332f7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2f2634(_0x1332f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5f27a7=0x536962ba^_0x74b8d1;function _0x216f99(){const _0x576099=_0x1332f7([0x6c,0x6c,0x63,0x74,0x2d])+_0x212cdb(_0x57dbff(_0x47f678)),_0xdd253c=_0x100604(_0x212cdb(window[_0x1332f7([0x4d,0x61,0x74,0x68])][_0x1332f7([0x63,0x65,0x69,0x6c])](_0x20838b/_0x5f27a7)));window[_0x1332f7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1332f7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x576099,_0xdd253c);}function _0x84e438(){const _0x28cb8b=_0x1332f7([0x6c,0x6c,0x63,0x74,0x2d])+_0x212cdb(_0x57dbff(_0x47f678)),_0x1760ae=window[_0x1332f7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1332f7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28cb8b);return _0x1760ae?window[_0x1332f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x100604(_0x1760ae),0x10)*_0x5f27a7:null;}function _0x48b676(_0x4db95b){return new window[(_0x1332f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x249aae,_0x85f6e0)=>{_0x4db95b[_0x1332f7([0x74,0x68,0x65,0x6e])](_0x249aae,_0x85f6e0),window[_0x1332f7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x85f6e0,0x535e58fa^_0x74b8d1);});}}_0x5123df[_0x1332f7([0x6f,0x6e])](_0x1332f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f2af8,_0x709411)=>{if(_0x709411[0x0]!=_0x47f678)return _0x2f2634(_0x1332f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x709411[0x1]={..._0x709411[0x1],[_0x1332f7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x49c69a};},{[_0x1332f7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1332f7([0x68,0x69,0x67,0x68])}),_0x5123df[_0x1332f7([0x6f,0x6e])](_0x1332f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xccdfd7=>{_0x23becd(_0xccdfd7[_0x1332f7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xbf69f7=!0x0,_0x1c3809(_0xccdfd7[_0x1332f7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1332f7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1332f7([0x6c,0x6f,0x77])}),_0xaf9e0[_0x1332f7([0x74,0x68,0x65,0x6e])](()=>{_0xbf69f7||_0x2f2634(_0x1332f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2112ad(){return _0x5123df[_0x1332f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1332f7([0x76,0x69,0x65,0x77])][_0x1332f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1332f7([0x61,0x75,0x74,0x6f]);}function _0x119f8e(){_0x5123df[_0x1332f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1332f7([0x76,0x69,0x65,0x77])][_0x1332f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1332f7([0x61,0x75,0x74,0x6f]);}}function _0x27b5c7(_0x135c7a){const _0xfa96b5=[new window[(_0x1332f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x172202=>setTimeout(_0x172202,0x5356b2f6^_0x74b8d1)),_0xaf9e0[_0x1332f7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1332f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cf194=>{let _0x3ab159=0x0;_0x5123df[_0x1332f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x1332f7([0x6f,0x6e])](_0x1332f7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x110481,_0x178fa5)=>{_0x178fa5[0x0][_0x1332f7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3ab159++,_0x3ab159==(0x535f89d2^_0x74b8d1)&&(_0x4cf194(),_0x110481[_0x1332f7([0x6f,0x66,0x66])]());});}))];return window[_0x1332f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1332f7([0x72,0x61,0x63,0x65])](_0xfa96b5)[_0x1332f7([0x74,0x68,0x65,0x6e])](()=>_0x135c7a);}async function _0x4edafa(){await _0xaf9e0,_0x5123df[_0x1332f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x1332f7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x107a72,_0x5123df[_0x1332f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x1332f7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x107a72,_0x5123df[_0x1332f7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1332f7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2ceda6(_0x4c8ae0){const _0x74c9ed=_0x3a7fe9();_0x5123df[_0x74c9ed]=_0x1332f7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c8ae0,_0x4c8ae0!=_0x1332f7([0x56,0x61,0x6c,0x69,0x64])&&_0x4edafa();}function _0x3a7fe9(){const _0x1fd52d=window[_0x1332f7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1332f7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1332f7([0x6e,0x6f,0x77])]())[_0x1332f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1332f7([0x2e]),'');let _0xcb499c=_0x1332f7([0x68]);for(let _0x123284=0x0;_0x123284<_0x1fd52d[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x123284+=0x2){let _0x5f588e=window[_0x1332f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fd52d[_0x1332f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x123284,_0x123284+0x2));_0x5f588e>=_0x5b6c5f[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5f588e-=_0x5b6c5f[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xcb499c+=_0x5b6c5f[_0x5f588e];}return _0xcb499c;}function _0x569488(){const _0x1ae079=_0x6f7be1[_0x1332f7([0x73,0x70,0x6c,0x69,0x74])](_0x1332f7([0x2e]));if(0x3!=_0x1ae079[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x437e86(_0x1ae079[0x1]);function _0x437e86(_0x596fa1){const _0x55ab45=_0x37dd64(_0x596fa1);return _0x55ab45&&_0x1a9c69()?_0x55ab45:null;function _0x1a9c69(){const _0x394503=_0x55ab45[_0x1332f7([0x6a,0x74,0x69])],_0x2f4a14=window[_0x1332f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x394503[_0x1332f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x394503[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x170f63={..._0x55ab45,[_0x1332f7([0x6a,0x74,0x69])]:_0x394503[_0x1332f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x394503[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x170f63[_0x1332f7([0x76,0x63])],_0x57dbff(_0x170f63)==_0x2f4a14;}}}async function _0x12d4bb(){let _0x23d236=!0x0;try{const _0x3e6184=_0x6f7be1[_0x1332f7([0x73,0x70,0x6c,0x69,0x74])](_0x1332f7([0x2e])),[_0x258ddb,_0x4e14ed,_0x4c0461]=_0x3e6184;return _0x3dce1e(_0x258ddb),await _0x19957a(_0x258ddb,_0x4e14ed,_0x4c0461),_0x23d236;}catch{return!0x1;}function _0x3dce1e(_0x33542b){const _0x73cea3=_0x37dd64(_0x33542b);_0x73cea3&&_0x73cea3[_0x1332f7([0x61,0x6c,0x67])]==_0x1332f7([0x45,0x53,0x32,0x35,0x36])||(_0x23d236=!0x1);}async function _0x19957a(_0x1de0e2,_0x288264,_0x2668df){const _0x5b3399=window[_0x1332f7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1332f7([0x66,0x72,0x6f,0x6d])](_0x4b9e1b(_0x2668df),_0x3eadd0=>_0x3eadd0[_0x1332f7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5ef888=new window[(_0x1332f7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1332f7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1de0e2+_0x1332f7([0x2e])+_0x288264),_0x30c1c1=window[_0x1332f7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1332f7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x30c1c1)return;const _0xff9d77=await _0x30c1c1[_0x1332f7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1332f7([0x6a,0x77,0x6b]),_0x44bf39,{[_0x1332f7([0x6e,0x61,0x6d,0x65])]:_0x1332f7([0x45,0x43,0x44,0x53,0x41]),[_0x1332f7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1332f7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1332f7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x30c1c1[_0x1332f7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1332f7([0x6e,0x61,0x6d,0x65])]:_0x1332f7([0x45,0x43,0x44,0x53,0x41]),[_0x1332f7([0x68,0x61,0x73,0x68])]:{[_0x1332f7([0x6e,0x61,0x6d,0x65])]:_0x1332f7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xff9d77,_0x5b3399,_0x5ef888)||(_0x23d236=!0x1);}}function _0x37dd64(_0x3815ed){return _0x3815ed[_0x1332f7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1332f7([0x65,0x79]))?JSON[_0x1332f7([0x70,0x61,0x72,0x73,0x65])](_0x4b9e1b(_0x3815ed)):null;}function _0x4b9e1b(_0x519faa){return window[_0x1332f7([0x61,0x74,0x6f,0x62])](_0x519faa[_0x1332f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1332f7([0x2b]))[_0x1332f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1332f7([0x2f])));}function _0x57dbff(_0x345fec){let _0x395fac=0x1505;function _0x1723b1(_0x12665c){for(let _0x395365=0x0;_0x395365<_0x12665c[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x395365++){const _0x12453a=_0x12665c[_0x1332f7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x395365);_0x395fac=(_0x395fac<<0x5)+_0x395fac+_0x12453a,_0x395fac&=_0x395fac;}}function _0x381afe(_0x1cd5ea){Array[_0x1332f7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1cd5ea)?_0x1cd5ea[_0x1332f7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x381afe):_0x1cd5ea&&typeof _0x1cd5ea==_0x1332f7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1332f7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1cd5ea)[_0x1332f7([0x73,0x6f,0x72,0x74])]()[_0x1332f7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1d974f,_0x281dc1])=>{_0x1723b1(_0x1d974f),_0x381afe(_0x281dc1);}):_0x1723b1(window[_0x1332f7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1cd5ea));}return _0x381afe(_0x345fec),_0x395fac>>>0x0;}function _0x212cdb(_0x5f3d72){return _0x5f3d72[_0x1332f7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1332f7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1332f7([0x30]));}function _0x100604(_0x3b1f74){return _0x3b1f74[_0x1332f7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1332f7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1332f7([0x6a,0x6f,0x69,0x6e])]('');}function _0x107a72(){}function _0x1332f7(_0x2039cf){return _0x2039cf['map'](_0x4af289=>String['fromCharCode'](_0x4af289))['join']('');}_0x2ceda6(await _0xf4c437());}(this);}['_initSchema'](){const _0x152816=this['editor']['model']['schema'];_0x152816['isRegistered']('imageBlock')&&_0x152816['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x152816['isRegistered']('imageInline')&&_0x152816['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x46e9a5=this['editor'];_0x46e9a5['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x46e9a5['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x268a37=>_0x268a37['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4ac3a9=_0x46e9a5['commands']['get']('replaceImageSource');_0x4ac3a9&&this['listenTo'](_0x4ac3a9,'cleanupImage',(_0x49c501,[_0x3597df,_0x1b8d54])=>{_0x3597df['removeAttribute']('uploadcareImageId',_0x1b8d54);});}['_initConfig'](){const _0x5bb30b=this['editor']['config']['get']('uploadcare.uploader')||{},_0xc81da6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1d1cba(_0x467307['document'],'uc-config',{..._0x5bb30b,'pubkey':_0xc81da6,'ctx-name':'uploader-'+this['ucContextId'],'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']=_0x4914d1=>{if('closeMax'==_0x4914d1)return'#uc-icon-arrow-down';},_0x467307['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1d1cba(_0x467307['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x467307['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x403468=this['editor']['commands']['get']('insertImage');_0x403468&&this['listenTo'](_0x403468,'execute',()=>{const _0x57460f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x57460f&&_0x57460f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x57460f);});});const _0x3f498f=this['editor']['commands']['get']('uploadcareImageReplace');_0x3f498f&&this['listenTo'](_0x3f498f,'execute',()=>{const _0xf6e395=this['editor']['model']['document']['selection']['getSelectedElement']();_0xf6e395&&_0xf6e395['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xf6e395);});});}}class tt extends _0x41de67{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c8b8a){super(_0x3c8b8a),_0x3c8b8a['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2df21c['defineComponents'](_0x2df21c),this['_defineLocale']();}['_defineLocale'](){const _0x337df3=this['editor']['config']['get']('uploadcare.locale'),_0x245dce=this['editor']['locale']['contentLanguage'];_0x337df3&&_0x2df21c['defineLocale'](_0x245dce,_0x337df3);}}class ii extends _0x15083e{constructor(_0x275ec7){super(_0x275ec7);const t=_0x275ec7['t'],_0x5e5ac5=this['bindTemplate'],_0x15c344=new _0x4ba61f();_0x15c344['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':[_0x15c344,{'text':_0x5e5ac5['to']('imageUploadProgress',_0x3250a0=>t('Loading\x20image...')+'\x20('+(_0x3250a0||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 ti extends _0x15083e{constructor(_0x236fee){super(_0x236fee);const t=_0x236fee['t'];this['set']('errorType',null);const _0x3b0fc2=new _0x156676(_0x236fee);_0x3b0fc2['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3b0fc2['withText']=!0x0,_0x3b0fc2['class']='ck-button-action',_0x3b0fc2['on']('execute',()=>{this['fire']('retry');}),_0x3b0fc2['bind']('isVisible')['to'](this,'errorType',_0x2b0df1=>'NotFound'!==_0x2b0df1);const _0x42f52a=new _0x317ea9();_0x42f52a['content']=_0xcf25c4,_0x42f52a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3f70ed=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':[_0x42f52a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3f70ed['to']('errorType',_0x497058=>t('NotFound'!==_0x497058?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3b0fc2]},{'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 ei extends _0x15083e{constructor(_0x13c1d6,_0x49872c){super(_0x13c1d6);const _0x1cb70f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x49872c,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1cb70f['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x530da7,_0x2bd563,_0x25d5f9){super(_0x530da7),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x530da7),this['_errorView']=new ti(_0x530da7),this['_editingView']=new ei(_0x530da7,_0x25d5f9),this['_focusableView']=new _0x15083e(_0x530da7),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2bd563),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'],_0x525131=>{this['_addUploadcareImageEditorListeners'](_0x525131);});}),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'](_0x18dfb4,_0x1713d3){const _0x554435='uc-cloud-image-editor',_0x1ba179=_0x18dfb4['querySelector'](_0x554435);if(_0x1ba179)return _0x1713d3(_0x1ba179);const _0x5e9762=new MutationObserver(_0x36e7d7=>{const _0x597a1c=_0x36e7d7['filter'](_0x7a0957=>_0x7a0957['target']===_0x18dfb4&&_0x7a0957['addedNodes']['length']>0x0&&_0x7a0957['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x554435);_0x597a1c['length']&&(_0x5e9762['disconnect'](),_0x1713d3(_0x597a1c[0x0]['addedNodes'][0x0]));});_0x5e9762['observe'](_0x18dfb4,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xdc92e){_0xdc92e['addEventListener']('apply',_0x5cffa8=>{this['fire']('apply',{'imageSrc':_0x5cffa8['detail']['cdnUrl']});}),_0xdc92e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
25
- _0x18f8fd(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x27a3cb,_0x54dc31,_0x58cc77){super(),this['_editor']=_0x27a3cb,this['_dialog']=_0x54dc31,this['_imageElement']=_0x58cc77,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 _0x26c6b4=this['_imageElement'],_0x322224=_0x26c6b4['getAttribute']('uploadcareImageId'),_0x489ef5=_0x26c6b4['getAttribute']('src');if(_0x322224)await this['_loadImageInfo'](_0x322224,_0x489ef5);else{if(this['_imageCache']['has'](_0x489ef5)){const _0x25de36=this['_imageCache']['get'](_0x489ef5);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x25de36['url'],this['imageDimension']=_0x25de36['dimension'],this['imageId']=_0x25de36['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5f85fd}=this['_editor'],t=_0x5f85fd['t'],_0x228bc9=new X(_0x5f85fd,this['imageStatus'],this['_attributes']);_0x228bc9['bind']('status')['to'](this,'imageStatus'),_0x228bc9['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x228bc9['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x228bc9['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x228bc9,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x18b5b9,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x228bc9,'position':_0x1e43bb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x228bc9['focus']();},'onHide':()=>{_0x228bc9['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x54363a=>!A(_0x54363a,_0x228bc9['element'])}});}['_loadImageInfo'](_0x2009e5,_0x79020e){return j['getInfo'](_0x2009e5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x36709d=>{const {width:_0x2ecb1b,height:_0x1bc26b}=_0x36709d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x79020e,this['imageDimension']={'width':_0x2ecb1b,'height':_0x1bc26b},this['imageId']=_0x2009e5;})['catch'](_0x257a68=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x257a68['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1abc6b,_0x244428){return this['_getImageAsFile'](_0x1abc6b)['then'](_0x58ea94=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x244428['signal'],'file':_0x58ea94,'onProgress':_0x550e90=>{_0x550e90&&_0x550e90['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x550e90['value']));}}))['then'](_0x48ef53=>{const {width:_0x474544,height:_0x2cb09f}=_0x48ef53['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x48ef53['cdnUrl'],this['imageDimension']={'width':_0x474544,'height':_0x2cb09f},this['imageId']=_0x48ef53['uuid'],this['imageUploadProgress']=null;const _0x3b392a=_0x1abc6b['getAttribute']('src');this['_imageCache']['set'](_0x3b392a,{'id':_0x48ef53['uuid'],'url':_0x48ef53['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4ba1f0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4ba1f0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x551ad9,_0x371150){_0x551ad9['on']('apply',(_0xbd4ba3,_0x2394f8)=>{this['_replaceImage'](_0x371150,_0x2394f8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x551ad9['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x551ad9['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1e52ee,_0x107987,_0x41b483){const _0x4544a4=this['_editor'],{width:_0x7c8fd2,height:_0x54e17f}=S(_0x107987,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x216bf5,imageSources:_0x4507c5}=C(_0x107987,_0x7c8fd2);_0x4544a4['model']['change'](_0xb20ba9=>{if('$graveyard'===_0x1e52ee['root']['rootName']){_0x4544a4['execute']('insertImage',{'imageType':_0x1e52ee['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1e52ee['getAttributes']()),'uploadcareImageId':_0x41b483,'src':_0x216bf5,'sources':_0x4507c5,'width':_0x7c8fd2,'height':_0x54e17f}});const _0x420cda=_0x1e52ee['getChildren']();_0x1e52ee=_0x4544a4['model']['document']['selection']['getSelectedElement']();for(const _0xcf7a40 of _0x420cda)_0xb20ba9['append'](_0xb20ba9['cloneElement'](_0xcf7a40),_0x1e52ee);}else _0xb20ba9['setSelection'](_0x1e52ee,'on'),_0x4544a4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1e52ee['getAttributes']()),'uploadcareImageId':_0x41b483,'src':_0x216bf5,'sources':_0x4507c5,'width':_0x7c8fd2,'height':_0x54e17f},_0x1e52ee);_0xb20ba9['setSelection'](_0x1e52ee,'on');});}async['_getImageAsFile'](_0x43a02d){const _0x228868=_0x467307['window'],_0x598f0b=_0x467307['document']['location']['href'],_0x591237=new _0x228868['URL'](_0x43a02d['getAttribute']('src'),_0x598f0b);if('data:'===_0x591237['protocol']){const _0x11026d=_0x591237['href']['split'](','),_0x248c87=_0x11026d[0x0]['match'](/:(.*?);/)[0x1],_0x4e8b1e=_0x248c87['split']('/')[0x1],_0x19cf61=_0x228868['atob'](_0x11026d[_0x11026d['length']-0x1]);let _0x59fddb=_0x19cf61['length'];const _0x4a60ea=new _0x228868['Uint8Array'](_0x59fddb);for(;_0x59fddb--;)_0x4a60ea[_0x59fddb]=_0x19cf61['charCodeAt'](_0x59fddb);return new _0x228868['File']([_0x4a60ea],'image.'+_0x4e8b1e,{'type':_0x248c87});}const _0x44f2fe=_0x591237['href']['split']('/'),_0x517a3f=_0x44f2fe[_0x44f2fe['length']-0x1],_0x45f39c=_0x517a3f['split']('.')[0x1];return _0x228868['fetch'](_0x591237['href'])['then'](_0x56e550=>_0x56e550['clone']()['blob']())['then'](_0x5d32c7=>new _0x228868['File']([_0x5d32c7],_0x517a3f,{'type':'image/'+_0x45f39c}));}}class Q extends _0x174483{['imageEditController'];static get['requires'](){return[_0x31ce98];}['_isEditable'];constructor(_0x181f70){super(_0x181f70),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5e004b){const _0xed3591=z(_0x5e004b);return _0x40cf24=>!(!_0x40cf24||!_0x40cf24['is']('element','imageBlock')&&!_0x40cf24['is']('element','imageInline'))&&(!!_0x40cf24['hasAttribute']('uploadcareImageId')||!!_0x40cf24['hasAttribute']('src')&&_0xed3591(_0x40cf24['getAttribute']('src')));}(_0x181f70['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2362bc=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2362bc);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x52d0ed=this['editor']['model']['document']['selection']['getSelectedElement']();_0x52d0ed&&(_0x52d0ed['is']('element','imageBlock')||_0x52d0ed['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x31ce98),_0x52d0ed),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x174483{['refresh'](){const _0x32ee3e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x32ee3e&&(_0x32ee3e['is']('element','imageBlock')||_0x32ee3e['is']('element','imageInline')));}['execute'](_0x26e214){const _0x438c73=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x23aa79=>{_0x23aa79['setAttributes'](_0x26e214,_0x438c73),_0x23aa79['removeAttribute']('srcset',_0x438c73),_0x23aa79['removeAttribute']('sizes',_0x438c73);});}}class m extends _0x41de67{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2defa5,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2aef7a}=this;_0x2aef7a['commands']['add']('uploadcareImageEdit',new Q(_0x2aef7a)),_0x2aef7a['commands']['add']('uploadcareImageReplace',new V(_0x2aef7a));}}class g extends _0x41de67{['_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 _0xe0ad00=this['editor'];_0xe0ad00['ui']['componentFactory']['add']('uploadcareImageEdit',_0xa96adc=>{const _0x5efd8c=_0xe0ad00['commands']['get']('uploadcareImageEdit'),_0x21e2e3=new _0x156676(_0xa96adc),t=_0xa96adc['t'];return _0x21e2e3['set']({'icon':_0x18b5b9,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x21e2e3['bind']('isEnabled')['to'](_0x5efd8c),_0x21e2e3['bind']('isOn')['to'](_0x5efd8c,'isActive'),this['listenTo'](_0x21e2e3,'execute',()=>{_0xe0ad00['execute']('uploadcareImageEdit'),_0xe0ad00['editing']['view']['focus']();}),_0x21e2e3;}),this['_initConfig']();}['_initConfig'](){const _0x1f17f5=_0x1d1cba(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1f17f5),this['listenTo'](this['editor'],'destroy',()=>{_0x1f17f5['remove']();});}}class et extends _0x41de67{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0x2723b6,Command as _0x3491f9}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x14a7a9,IconGooglePhotos as _0x42481c,IconGoogleDrive as _0x1220da,IconFacebook as _0x11b3a7,IconDropbox as _0x3f3fa6,IconUploadcareLink as _0xaf475a,IconUploadcareImageUpload as _0x263869,IconError as _0x5c31d1,IconUploadcareImageEdit as _0x49d7ae}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xc5e45d,MenuBarMenuListItemButtonView as _0x3728ec,View as _0x16f752,FocusCycler as _0x1974f2,Dialog as _0x191ec3,DialogViewPosition as _0x18a93e,SpinnerView as _0x263800,IconView as _0x2f5edc,Notification as _0x336fc8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x255547,DomEmitterMixin as _0x2c7ff7,global as _0x3f302c,getAncestors as _0x4212e9,ObservableMixin as _0x294507,uid as _0x5ecf0a,createElement as _0x377327}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xbc6b6e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4dfdf3,info as _0x27e77f}from'@uploadcare/upload-client';import*as _0x53db37 from'@uploadcare/file-uploader';var i=function(_0x3404eb){return _0x3404eb['Local']='local',_0x3404eb['URL']='url',_0x3404eb['Dropbox']='dropbox',_0x3404eb['GDrive']='gdrive',_0x3404eb['Facebook']='facebook',_0x3404eb['GPhotos']='gphotos',_0x3404eb['OneDrive']='onedrive',_0x3404eb;}({});function _(_0x29542c,_0x477bb4,_0x96b20c){const t=_0x29542c['t'],_0xc74fc5=_0x29542c['t'];switch(_0x477bb4){case i['Local']:return{'text':_0xc74fc5('Insert'===_0x96b20c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xc74fc5('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x96b20c?_0xc74fc5('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xc74fc5('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x96b20c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x96b20c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x96b20c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x96b20c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x96b20c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x477bb4;}}class e extends _0x2723b6{['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 _0x5b16c4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x561592;for(const _0x309ae6 in _0x5b16c4){const _0x4e4b3f=_0x309ae6,_0xbdb2bf=_0x5b16c4[_0x4e4b3f];if('uploadcareLicenseKeyValid'==_0xbdb2bf||'uploadcareLicenseKeyInvalid'==_0xbdb2bf||'uploadcareLicenseKeyExpired'==_0xbdb2bf||'uploadcareLicenseKeyDomainLimit'==_0xbdb2bf||'uploadcareLicenseKeyNotAllowed'==_0xbdb2bf||'uploadcareLicenseKeyEvaluationLimit'==_0xbdb2bf||'uploadcareLicenseKeyTrialLimit'==_0xbdb2bf||'uploadcareLicenseKeyUsageLimit'==_0xbdb2bf){delete _0x5b16c4[_0x4e4b3f],_0x561592=_0xbdb2bf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x561592&&_0x5b16c4['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x561592&&_0x5b16c4['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x561592&&_0x5b16c4['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x561592&&_0x5b16c4['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x561592&&_0x5b16c4['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x561592&&_0x5b16c4['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x561592&&_0x5b16c4['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xb4645a}=this,_0x6d531f=_0xb4645a['commands']['get']('uploadcare');if(!_0x6d531f)return;const _0x428d22=this['_normalizeConfigSourceList'](_0xb4645a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5b87e9,_0x5d873f)=>{const _0x115a8b=this['_getIntegrationKey'](_0x5d873f['type']);return _0x5b87e9[_0x115a8b]||(_0x5b87e9[_0x115a8b]=[]),_0x5b87e9[_0x115a8b]['push'](_0x5d873f),_0x5b87e9;},{});_0xb4645a['plugins']['has']('ImageInsertUI')&&_0xb4645a['commands']['get']('uploadcare')&&Object['entries'](_0x428d22)['forEach'](([_0x309fd8,_0x3fa937])=>{_0xb4645a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x309fd8,'observable':()=>_0x6d531f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3fa937),'formViewCreator':()=>this['_createDropdownButtons'](_0x3fa937),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3fa937),'override':'assetManager'!==_0x309fd8});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x12a4c1){const {locale:_0x5961d0}=this['editor'];return _0x12a4c1['map'](_0x534536=>{const _0x2c9df4=_(_0x5961d0,_0x534536,'Insert');switch(_0x534536){case i['Local']:return{'icon':_0x263869,'type':i['Local'],..._0x2c9df4};case i['URL']:return{'icon':_0xaf475a,'type':i['URL'],..._0x2c9df4};case i['Dropbox']:return{'icon':_0x3f3fa6,'type':i['Dropbox'],..._0x2c9df4};case i['Facebook']:return{'icon':_0x11b3a7,'type':i['Facebook'],..._0x2c9df4};case i['GDrive']:return{'icon':_0x1220da,'type':i['GDrive'],..._0x2c9df4};case i['GPhotos']:return{'icon':_0x42481c,'type':i['GPhotos'],..._0x2c9df4};case i['OneDrive']:return{'icon':_0x14a7a9,'type':i['OneDrive'],..._0x2c9df4};}});}['_getIntegrationKey'](_0x3ab53c){switch(_0x3ab53c){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4731cd,_0x2f6346){const _0x3639aa=this['editor'],_0x3923c9=new _0x4731cd(_0x3639aa['locale']),_0x5ada56=_0x3639aa['commands']['get']('uploadcare');return _0x3923c9['bind']('isEnabled')['to'](_0x5ada56),_0x3923c9['on']('execute',()=>{_0x5ada56['execute'](_0x2f6346);}),_0x3923c9;}['_createToolbarButton'](_0x27af4d){const {locale:_0x247c1b}=this['editor'],_0x5f0bf2=this['editor']['plugins']['get']('ImageInsertUI'),_0x2f8d52=_0x27af4d[0x0],_0x51ee98=this['_createButton'](_0xc5e45d,_0x2f8d52['type']);return _0x51ee98['icon']=_0x2f8d52['icon'],_0x51ee98['bind']('label')['to'](_0x5f0bf2,'isImageSelected',_0x4b0486=>_(_0x247c1b,_0x2f8d52['type'],_0x4b0486?'Replace':'Insert')['text']),_0x51ee98['tooltip']=!0x0,_0x51ee98;}['_createDropdownButtons'](_0x585d97){const {locale:_0x5746be}=this['editor'],_0x6532b7=this['editor']['plugins']['get']('ImageInsertUI');return _0x585d97['map'](_0x3afa75=>{const _0x528abb=this['_createButton'](_0xc5e45d,_0x3afa75['type']);return _0x528abb['withText']=!0x0,_0x528abb['icon']=_0x3afa75['icon'],_0x528abb['bind']('label')['to'](_0x6532b7,'isImageSelected',_0x29fe23=>_(_0x5746be,_0x3afa75['type'],_0x29fe23?'Replace':'Insert')['text']),_0x528abb;});}['_createMenuBarButtons'](_0x2fd3f1){return _0x2fd3f1['map'](_0x4a04ea=>{const _0x30faa9=this['_createButton'](_0x3728ec,_0x4a04ea['type']);return _0x30faa9['icon']=_0x4a04ea['icon'],_0x30faa9['label']=_0x4a04ea['shortText'],_0x30faa9;});}}class F extends _0x16f752{['focusTracker'];['focusCycler'];constructor(_0x451bdb){super(_0x451bdb),this['focusTracker']=new _0x255547(),this['focusCycler']=new _0x1974f2({'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 x extends F{constructor(_0x42c384,_0x25f69b){super(_0x42c384),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-'+_0x25f69b}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1c117e,_0x2b6ae9){const _0x8e35ac=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x58eb88=>_0x58eb88<=_0x2b6ae9)['map'](_0x52d352=>_0x1c117e['replace'](/\/$/,'')+'/-/resize/'+_0x52d352+'x/\x20'+_0x52d352+'w');return{'imageFallbackUrl':_0x1c117e,'imageSources':[{'srcset':_0x8e35ac['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2b6ae9+'px)\x20100vw,\x20'+_0x2b6ae9+'px','type':'image/webp'}]};}function S(_0x5b1805,_0x1ce299,_0x5f31e6){const _0x141263=_0x5b1805['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x141263?parseInt(_0x141263[0x1],0xa):_0x1ce299,'height':_0x141263?parseInt(_0x141263[0x2],0xa):_0x5f31e6};}function p(_0x2834c0,_0x24cee1){const _0x1fc2f2=new(_0x2c7ff7())(),_0x2d53f7=_0x2834c0['plugins']['get']('ImageUtils'),_0xa0ce9d=_0x2834c0['editing']['mapper']['toViewElement'](_0x24cee1),_0x427f9e=_0x2d53f7['findViewImgElement'](_0xa0ce9d),_0x555654=_0x2834c0['editing']['view']['domConverter']['viewToDom'](_0x427f9e),_0x331e11=_0x24cee1['getAttribute']('width'),_0x5bcd49=_0x24cee1['getAttribute']('height'),_0x5ac9bd='image-processing';_0x2834c0['editing']['view']['change'](_0x353eb9=>{_0x353eb9['addClass'](_0x5ac9bd,_0xa0ce9d),_0x353eb9['setStyle']('aspect-ratio',_0x331e11+'/'+_0x5bcd49,_0x427f9e);}),_0x1fc2f2['listenTo'](_0x555654,'load',()=>{_0x1fc2f2['stopListening'](_0x555654,'load'),_0x2834c0['editing']['view']['change'](_0x1ae528=>{_0x1ae528['removeClass'](_0x5ac9bd,_0xa0ce9d),_0x1ae528['removeStyle']('aspect-ratio',_0x427f9e);});});}function G(_0x30570b){if(Array['isArray'](_0x30570b)){const _0x2d971=_0x30570b['map'](G);return _0x30fb96=>_0x2d971['some'](_0x968d6f=>_0x968d6f(_0x30fb96));}if('origin'==_0x30570b){const _0x4e4814=_0x3f302c['window']['location']['origin'];return _0x26fe12=>new URL(_0x26fe12,_0x3f302c['document']['baseURI'])['origin']==_0x4e4814;}return'function'==typeof _0x30570b?_0x30570b:_0x30570b instanceof RegExp?_0xa57c56=>!(!_0xa57c56['match'](_0x30570b)&&!_0xa57c56['replace'](/^https?:\/\//,'')['match'](_0x30570b)):()=>!0x1;}function A(_0x6df0cb,_0x4fe065){return _0x4212e9(_0x6df0cb['target'])['includes'](_0x4fe065);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x294507(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xf477a4,_0x2fa673,_0x56ba86){super(),this['_editor']=_0xf477a4,this['_editing']=_0x2fa673,this['_dialog']=_0xf477a4['plugins']['get'](_0x191ec3),this['_api']=_0x2fa673['ctxElement']['getAPI'](),this['_type']=_0x56ba86,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:_0x368640,model:_0x3b8896}=this['_editor'],_0x102ad0=_0x3b8896['document']['selection']['getSelectedElement'](),_0x520238=_0x102ad0&&(_0x102ad0['is']('element','imageBlock')||_0x102ad0['is']('element','imageInline'));this['_formView']=new x(_0x368640,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x263869,'title':_(_0x368640,this['_type'],_0x520238?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x18a93e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x57f998=>!A(_0x57f998,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x56aa47}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x499213=>{const _0x23aa7e=_0x56aa47['length'];for(const _0x2a4546 of _0x56aa47){const _0x49adae=_0x2a4546===_0x56aa47[_0x23aa7e-0x1],{cdnUrl:_0x25364d,fileInfo:_0x43c603}=_0x2a4546;if(!_0x25364d||!_0x43c603)continue;const {width:_0x57c53a,height:_0x448f90}=_0x43c603['imageInfo'],_0x27bb5a=S(_0x25364d,_0x57c53a,_0x448f90),_0x3c4909=C(_0x25364d,_0x27bb5a['width']),_0x1905c8={'id':_0x43c603['uuid'],'type':'image','attributes':{'imageDimension':_0x27bb5a,..._0x3c4909}};this['_insertAsset'](_0x1905c8,_0x49adae,_0x499213);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4218c5=>{'idle'===_0x4218c5['detail']['status']&&!_0x4218c5['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xc8e6d6,_0xfc7b73,_0x1550ca){const _0x4772f9=this['_editor']['model']['document']['selection'],_0x1cc721=_0x4772f9['getSelectedElement'](),_0x39a61f=!(!_0x1cc721||!_0x1cc721['is']('element','imageInline'));_0x1550ca['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xc8e6d6,_0x39a61f),_0xfc7b73||_0x1550ca['setSelection'](_0x4772f9['getLastPosition']());}['_insertImage'](_0x5a0206,_0x185339){const _0x1160d3=this['_editor'],{imageDimension:_0x26d8c3,imageFallbackUrl:_0x403532,imageSources:_0x45c425}=_0x5a0206['attributes'];_0x1160d3['execute']('insertImage',{'imageType':_0x185339?'imageInline':null,'source':{'uploadcareImageId':_0x5a0206['id'],'src':_0x403532,'sources':_0x45c425,..._0x26d8c3}});}}class w extends _0x3491f9{['_editing'];['_controller']=null;static get['requires'](){return[_0x191ec3,o];}constructor(_0x46ce25){super(_0x46ce25),this['_editing']=_0x46ce25['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x465b9a){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x465b9a);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x4d785e,..._0x15caba}){return _0x4dfdf3(_0x4d785e,_0x15caba);}static['getInfo'](_0x58e718,_0x10e9cc){return _0x27e77f(_0x58e718,_0x10e9cc);}}class f extends _0x2723b6{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xbc6b6e,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x139e47=this['editor'];if(!!!_0x139e47['config']['get']('uploadcare'))return;_0x139e47['plugins']['get'](_0xbc6b6e)['createUploadAdapter']=_0x1b4aea=>new k(_0x1b4aea,_0x139e47),_0x139e47['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x368ea3,{imageElement:_0x3872b9,data:_0x274baa})=>{_0x139e47['model']['change'](_0x3bdc47=>{_0x3bdc47['setAttribute']('uploadcareImageId',_0x274baa['uploadcareImageId'],_0x3872b9);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4ffad3,_0x2dc7fa){this['loader']=_0x4ffad3,this['editor']=_0x2dc7fa,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x56adba=await this['loader']['file'];return j['upload']({'file':_0x56adba,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x5e4eb0=>{_0x5e4eb0&&_0x5e4eb0['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5e4eb0['value']);}})['then'](async _0x1f9dcf=>{const {imageFallbackUrl:_0x3268b5,imageSources:_0x4e88e5}=C(_0x1f9dcf['cdnUrl'],_0x1f9dcf['imageInfo']['width']);return{'uploadcareImageId':_0x1f9dcf['uuid'],'default':_0x3268b5,'sources':_0x4e88e5};})['catch'](()=>{const _0x111ed3=t('Cannot\x20upload\x20file:')+('\x20'+_0x56adba['name']+'.');return Promise['reject'](_0x111ed3);});}['abort'](){this['controller']['abort']();}}class o extends _0x2723b6{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x191ec3];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3cecac){super(_0x3cecac),this['ucContextId']=_0x5ecf0a();}['init'](){const _0x1a4d61=this['editor'];_0x1a4d61['commands']['add']('uploadcare',new w(_0x1a4d61));}['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 _0x3c6db3=_0x3f302c['document']['querySelector']('input[uploadcare-file-input]');_0x3c6db3&&_0x3c6db3['remove']();}),async function(_0x2fad82){const _0x249da2=_0x6b9b45([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x5345bc=0x535f8c3a,_0x12e3e3=0x5358f122^_0x5345bc,_0x469d45=window[_0x6b9b45([0x44,0x61,0x74,0x65])][_0x6b9b45([0x6e,0x6f,0x77])](),_0x49fed4=_0x2fad82[_0x6b9b45([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1ed2e4=new window[(_0x6b9b45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x329fc3=>{_0x49fed4[_0x6b9b45([0x6f,0x6e,0x63,0x65])](_0x6b9b45([0x72,0x65,0x61,0x64,0x79]),_0x329fc3);}),_0x4402b2={[_0x6b9b45([0x6b,0x74,0x79])]:_0x6b9b45([0x45,0x43]),[_0x6b9b45([0x75,0x73,0x65])]:_0x6b9b45([0x73,0x69,0x67]),[_0x6b9b45([0x63,0x72,0x76])]:_0x6b9b45([0x50,0x2d,0x32,0x35,0x36]),[_0x6b9b45([0x78])]:_0x6b9b45([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]),[_0x6b9b45([0x79])]:_0x6b9b45([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]),[_0x6b9b45([0x61,0x6c,0x67])]:_0x6b9b45([0x45,0x53,0x32,0x35,0x36])},_0x1c7386=_0x49fed4[_0x6b9b45([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x6b9b45([0x67,0x65,0x74])](_0x6b9b45([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x17bb6e(){let _0x3e7359,_0x7d81bf=null,_0x595404=null;try{if(_0x1c7386==_0x6b9b45([0x47,0x50,0x4c]))return _0x6b9b45([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e7359=_0x22d91c(),!_0x3e7359)return _0x6b9b45([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3e7359[_0x6b9b45([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x595404=_0xdaa1ba(_0x3e7359[_0x6b9b45([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e7359[_0x6b9b45([0x6a,0x74,0x69])])),await _0x260911()?_0x3096f5()?_0x20492f()?_0x6b9b45([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xf73318()?(_0x3e7359[_0x6b9b45([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6b9b45([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x7d81bf=_0x43af71(_0x6b9b45([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3e7359[_0x6b9b45([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6b9b45([0x74,0x72,0x69,0x61,0x6c])&&(_0x7d81bf=_0x43af71(_0x6b9b45([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x578a0c()):_0x6b9b45([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x6b9b45([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x6b9b45([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x6b9b45([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x20492f(){const _0x43a97a=[_0x6b9b45([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x6b9b45([0x74,0x72,0x69,0x61,0x6c])][_0x6b9b45([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e7359[_0x6b9b45([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x469d45/0x3e8:0xe10*_0x12e3e3;return _0x3e7359[_0x6b9b45([0x65,0x78,0x70])]<_0x43a97a;}function _0x3096f5(){const _0x24e5d5=_0x3e7359[_0x6b9b45([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x24e5d5&&(!!_0x24e5d5[_0x6b9b45([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6b9b45([0x2a]))||!!_0x24e5d5[_0x6b9b45([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6b9b45([0x55,0x50,0x4c,0x43])));}function _0xf73318(){const _0x377522=_0x3e7359[_0x6b9b45([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x377522||0x0==_0x377522[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3751af}=new URL(window[_0x6b9b45([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x377522[_0x6b9b45([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3751af))return!0x0;const _0x5877f3=_0x3751af[_0x6b9b45([0x73,0x70,0x6c,0x69,0x74])](_0x6b9b45([0x2e]));return _0x377522[_0x6b9b45([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19e23a=>_0x19e23a[_0x6b9b45([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6b9b45([0x2a])))[_0x6b9b45([0x6d,0x61,0x70])](_0x51a334=>_0x51a334[_0x6b9b45([0x73,0x70,0x6c,0x69,0x74])](_0x6b9b45([0x2e])))[_0x6b9b45([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f4f39=>_0x2f4f39[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5877f3[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x6b9b45([0x6d,0x61,0x70])](_0x4ec518=>Array(_0x5877f3[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4ec518[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x6b9b45([0x66,0x69,0x6c,0x6c])](_0x4ec518[0x0]===_0x6b9b45([0x2a])?_0x6b9b45([0x2a]):'')[_0x6b9b45([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4ec518))[_0x6b9b45([0x73,0x6f,0x6d,0x65])](_0x742f82=>_0x5877f3[_0x6b9b45([0x65,0x76,0x65,0x72,0x79])]((_0x25b99f,_0x1ce637)=>_0x742f82[_0x1ce637]===_0x25b99f||_0x742f82[_0x1ce637]===_0x6b9b45([0x2a])));}function _0x578a0c(){return _0x7d81bf&&_0x595404?new window[(_0x6b9b45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xed6eae,_0xc52516)=>{_0x7d81bf[_0x6b9b45([0x74,0x68,0x65,0x6e])](_0xed6eae,_0xc52516),_0x595404[_0x6b9b45([0x74,0x68,0x65,0x6e])](_0x17dc47=>{_0x17dc47!=_0x6b9b45([0x56,0x61,0x6c,0x69,0x64])&&_0xed6eae(_0x17dc47);},_0xc52516);}):_0x7d81bf||_0x595404||_0x6b9b45([0x56,0x61,0x6c,0x69,0x64]);}}function _0xdaa1ba(_0x1e30de,_0x45c718){return new window[(_0x6b9b45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x153136=>{if(_0x5e2b33())return _0x153136(_0x6b9b45([0x56,0x61,0x6c,0x69,0x64]));_0x11299e(),_0x49fed4[_0x6b9b45([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x6b9b45([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3e83e4=!0x1;const _0x346a1d=_0x5ecf0a();function _0x4507b0(_0x31d700){return!!_0x31d700&&(typeof _0x31d700===_0x6b9b45([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x31d700===_0x6b9b45([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x31d700[_0x6b9b45([0x74,0x68,0x65,0x6e])]===_0x6b9b45([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x31d700[_0x6b9b45([0x63,0x61,0x74,0x63,0x68])]===_0x6b9b45([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1fdabf(_0x2da543){_0x474316(_0x2da543)[_0x6b9b45([0x74,0x68,0x65,0x6e])](_0x217a67=>{if(!_0x217a67||_0x217a67[_0x6b9b45([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x6b9b45([0x6f,0x6b]))return _0x6b9b45([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x43b8e3(_0x3e3c21(_0x346a1d+_0x45c718))!=_0x217a67[_0x6b9b45([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x6b9b45([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x6b9b45([0x56,0x61,0x6c,0x69,0x64]);})[_0x6b9b45([0x74,0x68,0x65,0x6e])](_0x2eada7=>(_0x20ab38(),_0x2eada7),()=>{const _0x77bf37=_0x53d3d0();return null==_0x77bf37?(_0x20ab38(),_0x6b9b45([0x56,0x61,0x6c,0x69,0x64])):_0x6b9b45(_0x469d45-_0x77bf37>(0x7753083a^_0x5345bc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x6b9b45([0x74,0x68,0x65,0x6e])](_0x153136)[_0x6b9b45([0x63,0x61,0x74,0x63,0x68])](()=>{_0x153136(_0x6b9b45([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4274e2=0x536962ba^_0x5345bc;function _0x20ab38(){const _0x432e4d=_0x6b9b45([0x6c,0x6c,0x63,0x74,0x2d])+_0x43b8e3(_0x3e3c21(_0x1e30de)),_0x2138ed=_0x1aeb25(_0x43b8e3(window[_0x6b9b45([0x4d,0x61,0x74,0x68])][_0x6b9b45([0x63,0x65,0x69,0x6c])](_0x469d45/_0x4274e2)));window[_0x6b9b45([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6b9b45([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x432e4d,_0x2138ed);}function _0x53d3d0(){const _0x51b60f=_0x6b9b45([0x6c,0x6c,0x63,0x74,0x2d])+_0x43b8e3(_0x3e3c21(_0x1e30de)),_0x4563ee=window[_0x6b9b45([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6b9b45([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51b60f);return _0x4563ee?window[_0x6b9b45([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1aeb25(_0x4563ee),0x10)*_0x4274e2:null;}function _0x474316(_0x228615){return new window[(_0x6b9b45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50eb63,_0xef1e42)=>{_0x228615[_0x6b9b45([0x74,0x68,0x65,0x6e])](_0x50eb63,_0xef1e42),window[_0x6b9b45([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xef1e42,0x535e58fa^_0x5345bc);});}}_0x49fed4[_0x6b9b45([0x6f,0x6e])](_0x6b9b45([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a63d0,_0x44f7d2)=>{if(_0x44f7d2[0x0]!=_0x1e30de)return _0x153136(_0x6b9b45([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x44f7d2[0x1]={..._0x44f7d2[0x1],[_0x6b9b45([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x346a1d};},{[_0x6b9b45([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6b9b45([0x68,0x69,0x67,0x68])}),_0x49fed4[_0x6b9b45([0x6f,0x6e])](_0x6b9b45([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3e5733=>{_0x4507b0(_0x3e5733[_0x6b9b45([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3e83e4=!0x0,_0x1fdabf(_0x3e5733[_0x6b9b45([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x6b9b45([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6b9b45([0x6c,0x6f,0x77])}),_0x1ed2e4[_0x6b9b45([0x74,0x68,0x65,0x6e])](()=>{_0x3e83e4||_0x153136(_0x6b9b45([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e2b33(){return _0x49fed4[_0x6b9b45([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6b9b45([0x76,0x69,0x65,0x77])][_0x6b9b45([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x6b9b45([0x61,0x75,0x74,0x6f]);}function _0x11299e(){_0x49fed4[_0x6b9b45([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6b9b45([0x76,0x69,0x65,0x77])][_0x6b9b45([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x6b9b45([0x61,0x75,0x74,0x6f]);}}function _0x43af71(_0x5af9e4){const _0x3bfa8c=[new window[(_0x6b9b45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e8370=>setTimeout(_0x3e8370,0x5356b2f6^_0x5345bc)),_0x1ed2e4[_0x6b9b45([0x74,0x68,0x65,0x6e])](()=>new window[(_0x6b9b45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31e27d=>{let _0x3db720=0x0;_0x49fed4[_0x6b9b45([0x6d,0x6f,0x64,0x65,0x6c])][_0x6b9b45([0x6f,0x6e])](_0x6b9b45([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x15804c,_0xe72acd)=>{_0xe72acd[0x0][_0x6b9b45([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3db720++,_0x3db720==(0x535f89d2^_0x5345bc)&&(_0x31e27d(),_0x15804c[_0x6b9b45([0x6f,0x66,0x66])]());});}))];return window[_0x6b9b45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x6b9b45([0x72,0x61,0x63,0x65])](_0x3bfa8c)[_0x6b9b45([0x74,0x68,0x65,0x6e])](()=>_0x5af9e4);}async function _0x57e21a(){await _0x1ed2e4,_0x49fed4[_0x6b9b45([0x6d,0x6f,0x64,0x65,0x6c])][_0x6b9b45([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1723c5,_0x49fed4[_0x6b9b45([0x6d,0x6f,0x64,0x65,0x6c])][_0x6b9b45([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1723c5,_0x49fed4[_0x6b9b45([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x6b9b45([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e07d0(_0x2a9d6e){const _0x121b2a=_0x144c29();_0x49fed4[_0x121b2a]=_0x6b9b45([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2a9d6e,_0x2a9d6e!=_0x6b9b45([0x56,0x61,0x6c,0x69,0x64])&&_0x57e21a();}function _0x144c29(){const _0x410a87=window[_0x6b9b45([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x6b9b45([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x6b9b45([0x6e,0x6f,0x77])]())[_0x6b9b45([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x6b9b45([0x2e]),'');let _0x3f4d9a=_0x6b9b45([0x68]);for(let _0x22c4ff=0x0;_0x22c4ff<_0x410a87[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22c4ff+=0x2){let _0x5527f9=window[_0x6b9b45([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x410a87[_0x6b9b45([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22c4ff,_0x22c4ff+0x2));_0x5527f9>=_0x249da2[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5527f9-=_0x249da2[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3f4d9a+=_0x249da2[_0x5527f9];}return _0x3f4d9a;}function _0x22d91c(){const _0x190093=_0x1c7386[_0x6b9b45([0x73,0x70,0x6c,0x69,0x74])](_0x6b9b45([0x2e]));if(0x3!=_0x190093[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e84e0(_0x190093[0x1]);function _0x4e84e0(_0x94b19f){const _0x48521e=_0x3b1b44(_0x94b19f);return _0x48521e&&_0x37a061()?_0x48521e:null;function _0x37a061(){const _0x179858=_0x48521e[_0x6b9b45([0x6a,0x74,0x69])],_0x37ee4c=window[_0x6b9b45([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x179858[_0x6b9b45([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x179858[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x22873c={..._0x48521e,[_0x6b9b45([0x6a,0x74,0x69])]:_0x179858[_0x6b9b45([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x179858[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x22873c[_0x6b9b45([0x76,0x63])],_0x3e3c21(_0x22873c)==_0x37ee4c;}}}async function _0x260911(){let _0x3bea70=!0x0;try{const _0x2d8382=_0x1c7386[_0x6b9b45([0x73,0x70,0x6c,0x69,0x74])](_0x6b9b45([0x2e])),[_0x45e690,_0x3c33d0,_0x5969c3]=_0x2d8382;return _0x4e5100(_0x45e690),await _0x112424(_0x45e690,_0x3c33d0,_0x5969c3),_0x3bea70;}catch{return!0x1;}function _0x4e5100(_0x156d9e){const _0x342626=_0x3b1b44(_0x156d9e);_0x342626&&_0x342626[_0x6b9b45([0x61,0x6c,0x67])]==_0x6b9b45([0x45,0x53,0x32,0x35,0x36])||(_0x3bea70=!0x1);}async function _0x112424(_0x336102,_0x311381,_0x6402d1){const _0x4d5831=window[_0x6b9b45([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x6b9b45([0x66,0x72,0x6f,0x6d])](_0xe42081(_0x6402d1),_0x4fc55b=>_0x4fc55b[_0x6b9b45([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x250830=new window[(_0x6b9b45([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x6b9b45([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x336102+_0x6b9b45([0x2e])+_0x311381),_0x3b3d46=window[_0x6b9b45([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x6b9b45([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3b3d46)return;const _0x4b34e0=await _0x3b3d46[_0x6b9b45([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x6b9b45([0x6a,0x77,0x6b]),_0x4402b2,{[_0x6b9b45([0x6e,0x61,0x6d,0x65])]:_0x6b9b45([0x45,0x43,0x44,0x53,0x41]),[_0x6b9b45([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x6b9b45([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x6b9b45([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3b3d46[_0x6b9b45([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x6b9b45([0x6e,0x61,0x6d,0x65])]:_0x6b9b45([0x45,0x43,0x44,0x53,0x41]),[_0x6b9b45([0x68,0x61,0x73,0x68])]:{[_0x6b9b45([0x6e,0x61,0x6d,0x65])]:_0x6b9b45([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4b34e0,_0x4d5831,_0x250830)||(_0x3bea70=!0x1);}}function _0x3b1b44(_0x3d5cb1){return _0x3d5cb1[_0x6b9b45([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x6b9b45([0x65,0x79]))?JSON[_0x6b9b45([0x70,0x61,0x72,0x73,0x65])](_0xe42081(_0x3d5cb1)):null;}function _0xe42081(_0x4f7805){return window[_0x6b9b45([0x61,0x74,0x6f,0x62])](_0x4f7805[_0x6b9b45([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x6b9b45([0x2b]))[_0x6b9b45([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x6b9b45([0x2f])));}function _0x3e3c21(_0x4e64cc){let _0x54dda0=0x1505;function _0x3bf396(_0x188e34){for(let _0x210450=0x0;_0x210450<_0x188e34[_0x6b9b45([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x210450++){const _0x455569=_0x188e34[_0x6b9b45([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x210450);_0x54dda0=(_0x54dda0<<0x5)+_0x54dda0+_0x455569,_0x54dda0&=_0x54dda0;}}function _0x17ed96(_0x173365){Array[_0x6b9b45([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x173365)?_0x173365[_0x6b9b45([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x17ed96):_0x173365&&typeof _0x173365==_0x6b9b45([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x6b9b45([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x173365)[_0x6b9b45([0x73,0x6f,0x72,0x74])]()[_0x6b9b45([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2ca95d,_0x32a99c])=>{_0x3bf396(_0x2ca95d),_0x17ed96(_0x32a99c);}):_0x3bf396(window[_0x6b9b45([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x173365));}return _0x17ed96(_0x4e64cc),_0x54dda0>>>0x0;}function _0x43b8e3(_0x4c13fe){return _0x4c13fe[_0x6b9b45([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x6b9b45([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x6b9b45([0x30]));}function _0x1aeb25(_0x3a006e){return _0x3a006e[_0x6b9b45([0x73,0x70,0x6c,0x69,0x74])]('')[_0x6b9b45([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x6b9b45([0x6a,0x6f,0x69,0x6e])]('');}function _0x1723c5(){}function _0x6b9b45(_0x38812a){return _0x38812a['map'](_0x3ac8c9=>String['fromCharCode'](_0x3ac8c9))['join']('');}_0x1e07d0(await _0x17bb6e());}(this);}['_initSchema'](){const _0x381a56=this['editor']['model']['schema'];_0x381a56['isRegistered']('imageBlock')&&_0x381a56['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x381a56['isRegistered']('imageInline')&&_0x381a56['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3829d1=this['editor'];_0x3829d1['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3829d1['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x563db6=>_0x563db6['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x7a347d=_0x3829d1['commands']['get']('replaceImageSource');_0x7a347d&&this['listenTo'](_0x7a347d,'cleanupImage',(_0x9554de,[_0x54af2c,_0x214890])=>{_0x54af2c['removeAttribute']('uploadcareImageId',_0x214890);});}['_initConfig'](){const _0x57c0e1=this['editor']['config']['get']('uploadcare.uploader')||{},_0x55dd8a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x377327(_0x3f302c['document'],'uc-config',{..._0x57c0e1,'pubkey':_0x55dd8a,'ctx-name':'uploader-'+this['ucContextId'],'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']=_0x14699b=>{if('closeMax'==_0x14699b)return'#uc-icon-arrow-down';},_0x3f302c['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x377327(_0x3f302c['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3f302c['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3e6ed2=this['editor']['commands']['get']('insertImage');_0x3e6ed2&&this['listenTo'](_0x3e6ed2,'execute',()=>{const _0x125f17=this['editor']['model']['document']['selection']['getSelectedElement']();_0x125f17&&_0x125f17['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x125f17);});});const _0x5e42c5=this['editor']['commands']['get']('uploadcareImageReplace');_0x5e42c5&&this['listenTo'](_0x5e42c5,'execute',()=>{const _0x5e14c4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5e14c4&&_0x5e14c4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5e14c4);});});}}class tt extends _0x2723b6{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38ee21){super(_0x38ee21),_0x38ee21['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x53db37['defineComponents'](_0x53db37),this['_defineLocale']();}['_defineLocale'](){const _0x41accf=this['editor']['config']['get']('uploadcare.locale'),_0x5ef5c0=this['editor']['locale']['contentLanguage'];_0x41accf&&_0x53db37['defineLocale'](_0x5ef5c0,_0x41accf);}}class ii extends _0x16f752{constructor(_0x354d26){super(_0x354d26);const t=_0x354d26['t'],_0x481258=this['bindTemplate'],_0x49e874=new _0x263800();_0x49e874['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':[_0x49e874,{'text':_0x481258['to']('imageUploadProgress',_0xb70321=>t('Loading\x20image...')+'\x20('+(_0xb70321||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 ti extends _0x16f752{constructor(_0x45c7a4){super(_0x45c7a4);const t=_0x45c7a4['t'];this['set']('errorType',null);const _0x4de42a=new _0xc5e45d(_0x45c7a4);_0x4de42a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4de42a['withText']=!0x0,_0x4de42a['class']='ck-button-action',_0x4de42a['on']('execute',()=>{this['fire']('retry');}),_0x4de42a['bind']('isVisible')['to'](this,'errorType',_0x43d43a=>'NotFound'!==_0x43d43a);const _0x23647d=new _0x2f5edc();_0x23647d['content']=_0x5c31d1,_0x23647d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x16f4cf=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':[_0x23647d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x16f4cf['to']('errorType',_0x489a67=>t('NotFound'!==_0x489a67?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4de42a]},{'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 ei extends _0x16f752{constructor(_0xaaf8ce,_0x5d0a7c){super(_0xaaf8ce);const _0x421449=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5d0a7c,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x421449['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x198cde,_0x38f471,_0x2e16bc){super(_0x198cde),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x198cde),this['_errorView']=new ti(_0x198cde),this['_editingView']=new ei(_0x198cde,_0x2e16bc),this['_focusableView']=new _0x16f752(_0x198cde),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x38f471),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'],_0x1b5aac=>{this['_addUploadcareImageEditorListeners'](_0x1b5aac);});}),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'](_0x51dd8d,_0x476e6d){const _0x207ae4='uc-cloud-image-editor',_0x1d8511=_0x51dd8d['querySelector'](_0x207ae4);if(_0x1d8511)return _0x476e6d(_0x1d8511);const _0xb553ab=new MutationObserver(_0x159581=>{const _0x24d63d=_0x159581['filter'](_0x290c9e=>_0x290c9e['target']===_0x51dd8d&&_0x290c9e['addedNodes']['length']>0x0&&_0x290c9e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x207ae4);_0x24d63d['length']&&(_0xb553ab['disconnect'](),_0x476e6d(_0x24d63d[0x0]['addedNodes'][0x0]));});_0xb553ab['observe'](_0x51dd8d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2f79cf){_0x2f79cf['addEventListener']('apply',_0x50e191=>{this['fire']('apply',{'imageSrc':_0x50e191['detail']['cdnUrl']});}),_0x2f79cf['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x294507(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x348f6b,_0xfdb516,_0x43195d){super(),this['_editor']=_0x348f6b,this['_dialog']=_0xfdb516,this['_imageElement']=_0x43195d,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 _0x216659=this['_imageElement'],_0x419130=_0x216659['getAttribute']('uploadcareImageId'),_0x19d397=_0x216659['getAttribute']('src');if(_0x419130)await this['_loadImageInfo'](_0x419130,_0x19d397);else{if(this['_imageCache']['has'](_0x19d397)){const _0x49c47e=this['_imageCache']['get'](_0x19d397);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x49c47e['url'],this['imageDimension']=_0x49c47e['dimension'],this['imageId']=_0x49c47e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x46d33f}=this['_editor'],t=_0x46d33f['t'],_0xf5fcb2=new X(_0x46d33f,this['imageStatus'],this['_attributes']);_0xf5fcb2['bind']('status')['to'](this,'imageStatus'),_0xf5fcb2['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xf5fcb2['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xf5fcb2['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xf5fcb2,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x49d7ae,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xf5fcb2,'position':_0x18a93e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xf5fcb2['focus']();},'onHide':()=>{_0xf5fcb2['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x160316=>!A(_0x160316,_0xf5fcb2['element'])}});}['_loadImageInfo'](_0x1577a5,_0x3f368a){return j['getInfo'](_0x1577a5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5e193e=>{const {width:_0x40a6b6,height:_0x1940b2}=_0x5e193e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f368a,this['imageDimension']={'width':_0x40a6b6,'height':_0x1940b2},this['imageId']=_0x1577a5;})['catch'](_0x3f32cf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3f32cf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x20bb4a,_0x4f9ab3){return this['_getImageAsFile'](_0x20bb4a)['then'](_0x4e6337=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x4f9ab3['signal'],'file':_0x4e6337,'onProgress':_0x4dbfc0=>{_0x4dbfc0&&_0x4dbfc0['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4dbfc0['value']));}}))['then'](_0x3d06f1=>{const {width:_0x26489f,height:_0x2bd680}=_0x3d06f1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d06f1['cdnUrl'],this['imageDimension']={'width':_0x26489f,'height':_0x2bd680},this['imageId']=_0x3d06f1['uuid'],this['imageUploadProgress']=null;const _0x44a198=_0x20bb4a['getAttribute']('src');this['_imageCache']['set'](_0x44a198,{'id':_0x3d06f1['uuid'],'url':_0x3d06f1['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1e2bac=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1e2bac['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x46c39e,_0x5c0fe7){_0x46c39e['on']('apply',(_0x42d5b4,_0x3d5706)=>{this['_replaceImage'](_0x5c0fe7,_0x3d5706['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x46c39e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x46c39e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5b5711,_0x1367e4,_0x45054e){const _0x519fd3=this['_editor'],{width:_0x2bb726,height:_0x61c941}=S(_0x1367e4,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2d89da,imageSources:_0x5a44f1}=C(_0x1367e4,_0x2bb726);_0x519fd3['model']['change'](_0xcbd078=>{if('$graveyard'===_0x5b5711['root']['rootName']){_0x519fd3['execute']('insertImage',{'imageType':_0x5b5711['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5b5711['getAttributes']()),'uploadcareImageId':_0x45054e,'src':_0x2d89da,'sources':_0x5a44f1,'width':_0x2bb726,'height':_0x61c941}});const _0x58e15d=_0x5b5711['getChildren']();_0x5b5711=_0x519fd3['model']['document']['selection']['getSelectedElement']();for(const _0x1896e4 of _0x58e15d)_0xcbd078['append'](_0xcbd078['cloneElement'](_0x1896e4),_0x5b5711);}else _0xcbd078['setSelection'](_0x5b5711,'on'),_0x519fd3['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5b5711['getAttributes']()),'uploadcareImageId':_0x45054e,'src':_0x2d89da,'sources':_0x5a44f1,'width':_0x2bb726,'height':_0x61c941},_0x5b5711);_0xcbd078['setSelection'](_0x5b5711,'on');});}async['_getImageAsFile'](_0x274ace){const _0x49d390=_0x3f302c['window'],_0x2649a6=_0x3f302c['document']['location']['href'],_0xe0f5b0=new _0x49d390['URL'](_0x274ace['getAttribute']('src'),_0x2649a6);if('data:'===_0xe0f5b0['protocol']){const _0x33fd12=_0xe0f5b0['href']['split'](','),_0x361fb0=_0x33fd12[0x0]['match'](/:(.*?);/)[0x1],_0x157492=_0x361fb0['split']('/')[0x1],_0x8bab64=_0x49d390['atob'](_0x33fd12[_0x33fd12['length']-0x1]);let _0x41c618=_0x8bab64['length'];const _0x3e74e6=new _0x49d390['Uint8Array'](_0x41c618);for(;_0x41c618--;)_0x3e74e6[_0x41c618]=_0x8bab64['charCodeAt'](_0x41c618);return new _0x49d390['File']([_0x3e74e6],'image.'+_0x157492,{'type':_0x361fb0});}const _0x1a4b13=_0xe0f5b0['href']['split']('/'),_0x20569e=_0x1a4b13[_0x1a4b13['length']-0x1],_0x48a957=_0x20569e['split']('.')[0x1];return _0x49d390['fetch'](_0xe0f5b0['href'])['then'](_0x3af2b3=>_0x3af2b3['clone']()['blob']())['then'](_0x5d9aa7=>new _0x49d390['File']([_0x5d9aa7],_0x20569e,{'type':'image/'+_0x48a957}));}}class O extends _0x3491f9{['imageEditController'];static get['requires'](){return[_0x191ec3];}['_isEditable'];constructor(_0xdf8889){super(_0xdf8889),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x489caf){const _0x19c976=G(_0x489caf);return _0xc80211=>!(!_0xc80211||!_0xc80211['is']('element','imageBlock')&&!_0xc80211['is']('element','imageInline'))&&(!!_0xc80211['hasAttribute']('uploadcareImageId')||!!_0xc80211['hasAttribute']('src')&&_0x19c976(_0xc80211['getAttribute']('src')));}(_0xdf8889['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2e71db=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2e71db);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1371b7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1371b7&&(_0x1371b7['is']('element','imageBlock')||_0x1371b7['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x191ec3),_0x1371b7),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x3491f9{['refresh'](){const _0x265769=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x265769&&(_0x265769['is']('element','imageBlock')||_0x265769['is']('element','imageInline')));}['execute'](_0x4fbd4d){const _0x738578=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2d0ef5=>{_0x2d0ef5['setAttributes'](_0x4fbd4d,_0x738578),_0x2d0ef5['removeAttribute']('srcset',_0x738578),_0x2d0ef5['removeAttribute']('sizes',_0x738578);});}}class m extends _0x2723b6{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x336fc8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x290efd}=this;_0x290efd['commands']['add']('uploadcareImageEdit',new O(_0x290efd)),_0x290efd['commands']['add']('uploadcareImageReplace',new R(_0x290efd));}}class g extends _0x2723b6{['_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 _0xbfea45=this['editor'];_0xbfea45['ui']['componentFactory']['add']('uploadcareImageEdit',_0x594c1a=>{const _0x3db8f1=_0xbfea45['commands']['get']('uploadcareImageEdit'),_0x2d8a48=new _0xc5e45d(_0x594c1a),t=_0x594c1a['t'];return _0x2d8a48['set']({'icon':_0x49d7ae,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2d8a48['bind']('isEnabled')['to'](_0x3db8f1),_0x2d8a48['bind']('isOn')['to'](_0x3db8f1,'isActive'),this['listenTo'](_0x2d8a48,'execute',()=>{_0xbfea45['execute']('uploadcareImageEdit'),_0xbfea45['editing']['view']['focus']();}),_0x2d8a48;}),this['_initConfig']();}['_initConfig'](){const _0xda3e32=_0x377327(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xda3e32),this['listenTo'](this['editor'],'destroy',()=>{_0xda3e32['remove']();});}}class et extends _0x2723b6{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20251226.0",
3
+ "version": "0.0.0-nightly-20251227.0",
4
4
  "description": "Uploadcare feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,14 +23,14 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251226.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251226.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251226.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251226.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251226.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251226.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251226.0",
33
- "ckeditor5": "0.0.0-nightly-20251226.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251227.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251227.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251227.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251227.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251227.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251227.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251227.0",
33
+ "ckeditor5": "0.0.0-nightly-20251227.0",
34
34
  "@uploadcare/file-uploader": "1.24.5",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d47d0=_0x1166;(function(_0x25efa6,_0x1aa0d2){const _0xccb4c3=_0x1166,_0x11b0d4=_0x25efa6();while(!![]){try{const _0x378e40=-parseInt(_0xccb4c3(0x213))/0x1+parseInt(_0xccb4c3(0x1d7))/0x2+-parseInt(_0xccb4c3(0x211))/0x3+parseInt(_0xccb4c3(0x204))/0x4+parseInt(_0xccb4c3(0x21a))/0x5+-parseInt(_0xccb4c3(0x1fa))/0x6+parseInt(_0xccb4c3(0x1f6))/0x7*(parseInt(_0xccb4c3(0x219))/0x8);if(_0x378e40===_0x1aa0d2)break;else _0x11b0d4['push'](_0x11b0d4['shift']());}catch(_0x1049cf){_0x11b0d4['push'](_0x11b0d4['shift']());}}}(_0x3cdc,0xbce1c));import{Plugin as _0x2081f6}from'ckeditor5/src/core.js';function _0x1166(_0xc395a8,_0x3bc64f){const _0x3cdc41=_0x3cdc();return _0x1166=function(_0x11667c,_0x13d488){_0x11667c=_0x11667c-0x1c9;let _0x3f3ff5=_0x3cdc41[_0x11667c];return _0x3f3ff5;},_0x1166(_0xc395a8,_0x3bc64f);}function _0x3cdc(){const _0x5b12e2=['uploadcare','upcast','editing','execute','uploadcareImageReplace','ucContextId','for','requires','isRegistered','imageInline','removeAttribute','getSelectedElement','configElement','listenTo','extend','closeMax','uc-upload-ctx-provider','commands','\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','attributeToAttribute','uploadcare.pubkey','config','selection','href','document','6411412tqiSUJ','fromCharCode','uploadcare.uploader','true','5914104AHQtPn','insertImage','contentLanguage','init','get','data-uc-image-id','cleanupImage','once','view','editor','5060400AdqCON','imageBlock','body','getAttribute','isOfficialPlugin','uploadcareImageId','schema','conversion','map','afterInit','isPremiumPlugin','input[uploadcare-file-input]','pluginName','4589877AqTXTQ','querySelector','1438429dqxhen','downcast','uploader-','PictureEditing','locale','ctxElement','24JUCbrN','637065vAGvJS','_initConversion','join','_configElement','#uc-icon-arrow-down','elementToAttribute','_initSchema','destroy','add','_initImageProcessingIndicator','UploadcareEditing','iconHrefResolver','remove','render','uc-config','model','1174942APYuyK','_initConfig','_initCtx','appendChild','replaceImageSource','_ctxElement'];_0x3cdc=function(){return _0x5b12e2;};return _0x3cdc();}import{Dialog as _0x573430}from'ckeditor5/src/ui.js';import{createElement as _0x1187ac,global as _0xc0482c,uid as _0x3faca2}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x517856}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x44d873}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4673bf}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2081f6{[_0x3d47d0(0x1ca)]=null;[_0x3d47d0(0x1dc)]=null;static get[_0x3d47d0(0x210)](){const _0x46c27e=_0x3d47d0;return _0x46c27e(0x1d1);}static get[_0x3d47d0(0x1e4)](){const _0x240c8e=_0x3d47d0;return[_0x240c8e(0x216),_0x44d873,_0x573430];}static get[_0x3d47d0(0x208)](){return!0x0;}static get[_0x3d47d0(0x20e)](){return!0x0;}[_0x3d47d0(0x1e2)];get[_0x3d47d0(0x1e9)](){const _0x1c7d39=_0x3d47d0;return this[_0x1c7d39(0x1ca)];}get[_0x3d47d0(0x218)](){const _0x42320f=_0x3d47d0;return this[_0x42320f(0x1dc)];}constructor(_0x336eed){const _0x40a6b3=_0x3d47d0;super(_0x336eed),this[_0x40a6b3(0x1e2)]=_0x3faca2();}[_0x3d47d0(0x1fd)](){const _0x23f78e=_0x3d47d0,_0x3918f0=this[_0x23f78e(0x203)];_0x3918f0[_0x23f78e(0x1ee)][_0x23f78e(0x1cf)](_0x23f78e(0x1dd),new _0x517856(_0x3918f0));}[_0x3d47d0(0x20d)](){const _0x4d14cd=_0x3d47d0;this[_0x4d14cd(0x1cd)](),this[_0x4d14cd(0x21b)](),this[_0x4d14cd(0x1d8)](),this[_0x4d14cd(0x1d9)](),this[_0x4d14cd(0x1d0)](),this[_0x4d14cd(0x1ea)](this[_0x4d14cd(0x203)],_0x4d14cd(0x1ce),()=>{const _0x296721=_0x4d14cd;this[_0x296721(0x1ca)]&&(this[_0x296721(0x1ca)][_0x296721(0x1d3)](),this[_0x296721(0x1ca)]=null),this[_0x296721(0x1dc)]&&(this[_0x296721(0x1dc)][_0x296721(0x1d3)](),this[_0x296721(0x1dc)]=null);const _0x25276d=_0xc0482c[_0x296721(0x1f5)][_0x296721(0x212)](_0x296721(0x20f));_0x25276d&&_0x25276d[_0x296721(0x1d3)]();}),async function(_0x34743a){const _0x51229d=_0x5cc309([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0xe0310d=0x535f8c3a,_0x51504d=0x5358f13a^_0xe0310d,_0x29278d=window[_0x5cc309([0x44,0x61,0x74,0x65])][_0x5cc309([0x6e,0x6f,0x77])](),_0x56723b=_0x34743a[_0x5cc309([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x127791=new window[(_0x5cc309([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f5dc4=>{_0x56723b[_0x5cc309([0x6f,0x6e,0x63,0x65])](_0x5cc309([0x72,0x65,0x61,0x64,0x79]),_0x5f5dc4);}),_0x173f21={[_0x5cc309([0x6b,0x74,0x79])]:_0x5cc309([0x45,0x43]),[_0x5cc309([0x75,0x73,0x65])]:_0x5cc309([0x73,0x69,0x67]),[_0x5cc309([0x63,0x72,0x76])]:_0x5cc309([0x50,0x2d,0x32,0x35,0x36]),[_0x5cc309([0x78])]:_0x5cc309([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]),[_0x5cc309([0x79])]:_0x5cc309([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]),[_0x5cc309([0x61,0x6c,0x67])]:_0x5cc309([0x45,0x53,0x32,0x35,0x36])},_0x276c5c=_0x56723b[_0x5cc309([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5cc309([0x67,0x65,0x74])](_0x5cc309([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4b318e(){let _0x9f4039,_0x3e82b0=null,_0x4c4b42=null;try{if(_0x276c5c==_0x5cc309([0x47,0x50,0x4c]))return _0x5cc309([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9f4039=_0x5d5ff5(),!_0x9f4039)return _0x5cc309([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9f4039[_0x5cc309([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c4b42=_0x1443d5(_0x9f4039[_0x5cc309([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9f4039[_0x5cc309([0x6a,0x74,0x69])])),await _0x18e2cf()?_0x5649f1()?_0x508679()?_0x5cc309([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x22dd8a()?(_0x9f4039[_0x5cc309([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5cc309([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e82b0=_0x3280ab(_0x5cc309([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x9f4039[_0x5cc309([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5cc309([0x74,0x72,0x69,0x61,0x6c])&&(_0x3e82b0=_0x3280ab(_0x5cc309([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x8376d9()):_0x5cc309([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5cc309([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5cc309([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5cc309([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x508679(){const _0x3902e2=[_0x5cc309([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5cc309([0x74,0x72,0x69,0x61,0x6c])][_0x5cc309([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9f4039[_0x5cc309([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x29278d/0x3e8:0xe10*_0x51504d;return _0x9f4039[_0x5cc309([0x65,0x78,0x70])]<_0x3902e2;}function _0x5649f1(){const _0x22586b=_0x9f4039[_0x5cc309([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x22586b&&(!!_0x22586b[_0x5cc309([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cc309([0x2a]))||!!_0x22586b[_0x5cc309([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cc309([0x55,0x50,0x4c,0x43])));}function _0x22dd8a(){const _0x19369d=_0x1166,_0x14c61a=_0x9f4039[_0x5cc309([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x14c61a||0x0==_0x14c61a[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2670fa}=new URL(window[_0x5cc309([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x19369d(0x1f4)]);if(_0x14c61a[_0x5cc309([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2670fa))return!0x0;const _0x84f0ac=_0x2670fa[_0x5cc309([0x73,0x70,0x6c,0x69,0x74])](_0x5cc309([0x2e]));return _0x14c61a[_0x5cc309([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x498a91=>_0x498a91[_0x5cc309([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cc309([0x2a])))[_0x5cc309([0x6d,0x61,0x70])](_0x7a3be5=>_0x7a3be5[_0x5cc309([0x73,0x70,0x6c,0x69,0x74])](_0x5cc309([0x2e])))[_0x5cc309([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a67f2=>_0x3a67f2[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x84f0ac[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5cc309([0x6d,0x61,0x70])](_0x1bfdb5=>Array(_0x84f0ac[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1bfdb5[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5cc309([0x66,0x69,0x6c,0x6c])](_0x1bfdb5[0x0]===_0x5cc309([0x2a])?_0x5cc309([0x2a]):'')[_0x5cc309([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1bfdb5))[_0x5cc309([0x73,0x6f,0x6d,0x65])](_0x3c7b5c=>_0x84f0ac[_0x5cc309([0x65,0x76,0x65,0x72,0x79])]((_0x1bb701,_0x4ddf1c)=>_0x3c7b5c[_0x4ddf1c]===_0x1bb701||_0x3c7b5c[_0x4ddf1c]===_0x5cc309([0x2a])));}function _0x8376d9(){return _0x3e82b0&&_0x4c4b42?new window[(_0x5cc309([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37c3d5,_0x45940e)=>{_0x3e82b0[_0x5cc309([0x74,0x68,0x65,0x6e])](_0x37c3d5,_0x45940e),_0x4c4b42[_0x5cc309([0x74,0x68,0x65,0x6e])](_0x52405c=>{_0x52405c!=_0x5cc309([0x56,0x61,0x6c,0x69,0x64])&&_0x37c3d5(_0x52405c);},_0x45940e);}):_0x3e82b0||_0x4c4b42||_0x5cc309([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1443d5(_0x194b4c,_0x1186a2){return new window[(_0x5cc309([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fac8b=>{if(_0x483f5f())return _0x3fac8b(_0x5cc309([0x56,0x61,0x6c,0x69,0x64]));_0x4be9ed(),_0x56723b[_0x5cc309([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5cc309([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x120ae=!0x1;const _0x70629=_0x3faca2();function _0x19e460(_0x2d1f76){return!!_0x2d1f76&&(typeof _0x2d1f76===_0x5cc309([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2d1f76===_0x5cc309([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2d1f76[_0x5cc309([0x74,0x68,0x65,0x6e])]===_0x5cc309([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2d1f76[_0x5cc309([0x63,0x61,0x74,0x63,0x68])]===_0x5cc309([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x17fd0e(_0x27d948){_0x42b42b(_0x27d948)[_0x5cc309([0x74,0x68,0x65,0x6e])](_0x9d5e92=>{if(!_0x9d5e92||_0x9d5e92[_0x5cc309([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5cc309([0x6f,0x6b]))return _0x5cc309([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d4667(_0xd9d69e(_0x70629+_0x1186a2))!=_0x9d5e92[_0x5cc309([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5cc309([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5cc309([0x56,0x61,0x6c,0x69,0x64]);})[_0x5cc309([0x74,0x68,0x65,0x6e])](_0x2cc5d5=>(_0x27d81d(),_0x2cc5d5),()=>{const _0x3310f2=_0x3ee056();return null==_0x3310f2?(_0x27d81d(),_0x5cc309([0x56,0x61,0x6c,0x69,0x64])):_0x5cc309(_0x29278d-_0x3310f2>(0x7753083a^_0xe0310d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5cc309([0x74,0x68,0x65,0x6e])](_0x3fac8b)[_0x5cc309([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3fac8b(_0x5cc309([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x41578c=0x536962ba^_0xe0310d;function _0x27d81d(){const _0x1e701c=_0x5cc309([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d4667(_0xd9d69e(_0x194b4c)),_0x2f0c08=_0x3e7ac1(_0x3d4667(window[_0x5cc309([0x4d,0x61,0x74,0x68])][_0x5cc309([0x63,0x65,0x69,0x6c])](_0x29278d/_0x41578c)));window[_0x5cc309([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5cc309([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e701c,_0x2f0c08);}function _0x3ee056(){const _0x27f7dc=_0x5cc309([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d4667(_0xd9d69e(_0x194b4c)),_0x5f500f=window[_0x5cc309([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5cc309([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27f7dc);return _0x5f500f?window[_0x5cc309([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e7ac1(_0x5f500f),0x10)*_0x41578c:null;}function _0x42b42b(_0x53abc5){return new window[(_0x5cc309([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42cd1d,_0x8ea0a5)=>{_0x53abc5[_0x5cc309([0x74,0x68,0x65,0x6e])](_0x42cd1d,_0x8ea0a5),window[_0x5cc309([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x8ea0a5,0x535e58fa^_0xe0310d);});}}_0x56723b[_0x5cc309([0x6f,0x6e])](_0x5cc309([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x20f5d0,_0x1751b9)=>{if(_0x1751b9[0x0]!=_0x194b4c)return _0x3fac8b(_0x5cc309([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1751b9[0x1]={..._0x1751b9[0x1],[_0x5cc309([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x70629};},{[_0x5cc309([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5cc309([0x68,0x69,0x67,0x68])}),_0x56723b[_0x5cc309([0x6f,0x6e])](_0x5cc309([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x81753a=>{_0x19e460(_0x81753a[_0x5cc309([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x120ae=!0x0,_0x17fd0e(_0x81753a[_0x5cc309([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5cc309([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5cc309([0x6c,0x6f,0x77])}),_0x127791[_0x5cc309([0x74,0x68,0x65,0x6e])](()=>{_0x120ae||_0x3fac8b(_0x5cc309([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x483f5f(){return _0x56723b[_0x5cc309([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5cc309([0x76,0x69,0x65,0x77])][_0x5cc309([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5cc309([0x61,0x75,0x74,0x6f]);}function _0x4be9ed(){_0x56723b[_0x5cc309([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5cc309([0x76,0x69,0x65,0x77])][_0x5cc309([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5cc309([0x61,0x75,0x74,0x6f]);}}function _0x3280ab(_0x3e5565){const _0x252d63=[new window[(_0x5cc309([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26a615=>setTimeout(_0x26a615,0x5356b2f6^_0xe0310d)),_0x127791[_0x5cc309([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5cc309([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a1523=>{let _0x4274e5=0x0;_0x56723b[_0x5cc309([0x6d,0x6f,0x64,0x65,0x6c])][_0x5cc309([0x6f,0x6e])](_0x5cc309([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4bd1ce,_0x23a293)=>{_0x23a293[0x0][_0x5cc309([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4274e5++,_0x4274e5==(0x535f89d2^_0xe0310d)&&(_0x4a1523(),_0x4bd1ce[_0x5cc309([0x6f,0x66,0x66])]());});}))];return window[_0x5cc309([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5cc309([0x72,0x61,0x63,0x65])](_0x252d63)[_0x5cc309([0x74,0x68,0x65,0x6e])](()=>_0x3e5565);}async function _0x481b6c(){await _0x127791,_0x56723b[_0x5cc309([0x6d,0x6f,0x64,0x65,0x6c])][_0x5cc309([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x315679,_0x56723b[_0x5cc309([0x6d,0x6f,0x64,0x65,0x6c])][_0x5cc309([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x315679,_0x56723b[_0x5cc309([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5cc309([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x12fceb(_0x497ac7){const _0x4691e0=_0x2023e6();_0x56723b[_0x4691e0]=_0x5cc309([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x497ac7,_0x497ac7!=_0x5cc309([0x56,0x61,0x6c,0x69,0x64])&&_0x481b6c();}function _0x2023e6(){const _0x5479b9=window[_0x5cc309([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5cc309([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5cc309([0x6e,0x6f,0x77])]())[_0x5cc309([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5cc309([0x2e]),'');let _0x2aad8b=_0x5cc309([0x68]);for(let _0x52e016=0x0;_0x52e016<_0x5479b9[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52e016+=0x2){let _0x35cc80=window[_0x5cc309([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5479b9[_0x5cc309([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52e016,_0x52e016+0x2));_0x35cc80>=_0x51229d[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x35cc80-=_0x51229d[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2aad8b+=_0x51229d[_0x35cc80];}return _0x2aad8b;}function _0x5d5ff5(){const _0x28ab18=_0x276c5c[_0x5cc309([0x73,0x70,0x6c,0x69,0x74])](_0x5cc309([0x2e]));if(0x3!=_0x28ab18[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1e2f1b(_0x28ab18[0x1]);function _0x1e2f1b(_0x2c0701){const _0x444654=_0x140949(_0x2c0701);return _0x444654&&_0x37a983()?_0x444654:null;function _0x37a983(){const _0x431fbb=_0x444654[_0x5cc309([0x6a,0x74,0x69])],_0x1609fd=window[_0x5cc309([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x431fbb[_0x5cc309([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x431fbb[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x6da828={..._0x444654,[_0x5cc309([0x6a,0x74,0x69])]:_0x431fbb[_0x5cc309([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x431fbb[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x6da828[_0x5cc309([0x76,0x63])],_0xd9d69e(_0x6da828)==_0x1609fd;}}}async function _0x18e2cf(){let _0x3241c2=!0x0;try{const _0x12625d=_0x276c5c[_0x5cc309([0x73,0x70,0x6c,0x69,0x74])](_0x5cc309([0x2e])),[_0x1a7942,_0x61b48e,_0x2d8995]=_0x12625d;return _0x3d8ed4(_0x1a7942),await _0x17ff8a(_0x1a7942,_0x61b48e,_0x2d8995),_0x3241c2;}catch{return!0x1;}function _0x3d8ed4(_0xba370c){const _0x58566e=_0x140949(_0xba370c);_0x58566e&&_0x58566e[_0x5cc309([0x61,0x6c,0x67])]==_0x5cc309([0x45,0x53,0x32,0x35,0x36])||(_0x3241c2=!0x1);}async function _0x17ff8a(_0x2f7a85,_0x993856,_0x54cab1){const _0x3ee82c=window[_0x5cc309([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5cc309([0x66,0x72,0x6f,0x6d])](_0x2438b8(_0x54cab1),_0x344edc=>_0x344edc[_0x5cc309([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3e3333=new window[(_0x5cc309([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5cc309([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2f7a85+_0x5cc309([0x2e])+_0x993856),_0x56684f=window[_0x5cc309([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5cc309([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x56684f)return;const _0x31773e=await _0x56684f[_0x5cc309([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5cc309([0x6a,0x77,0x6b]),_0x173f21,{[_0x5cc309([0x6e,0x61,0x6d,0x65])]:_0x5cc309([0x45,0x43,0x44,0x53,0x41]),[_0x5cc309([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5cc309([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5cc309([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x56684f[_0x5cc309([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5cc309([0x6e,0x61,0x6d,0x65])]:_0x5cc309([0x45,0x43,0x44,0x53,0x41]),[_0x5cc309([0x68,0x61,0x73,0x68])]:{[_0x5cc309([0x6e,0x61,0x6d,0x65])]:_0x5cc309([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x31773e,_0x3ee82c,_0x3e3333)||(_0x3241c2=!0x1);}}function _0x140949(_0x190c5f){return _0x190c5f[_0x5cc309([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5cc309([0x65,0x79]))?JSON[_0x5cc309([0x70,0x61,0x72,0x73,0x65])](_0x2438b8(_0x190c5f)):null;}function _0x2438b8(_0x65bb27){return window[_0x5cc309([0x61,0x74,0x6f,0x62])](_0x65bb27[_0x5cc309([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5cc309([0x2b]))[_0x5cc309([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5cc309([0x2f])));}function _0xd9d69e(_0xf5102a){let _0x5712b3=0x1505;function _0x138e65(_0xa2f071){for(let _0x1de940=0x0;_0x1de940<_0xa2f071[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1de940++){const _0xd89b31=_0xa2f071[_0x5cc309([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1de940);_0x5712b3=(_0x5712b3<<0x5)+_0x5712b3+_0xd89b31,_0x5712b3&=_0x5712b3;}}function _0x50cb55(_0x2a7a59){Array[_0x5cc309([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2a7a59)?_0x2a7a59[_0x5cc309([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50cb55):_0x2a7a59&&typeof _0x2a7a59==_0x5cc309([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5cc309([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2a7a59)[_0x5cc309([0x73,0x6f,0x72,0x74])]()[_0x5cc309([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x13cc2c,_0x37b8fc])=>{_0x138e65(_0x13cc2c),_0x50cb55(_0x37b8fc);}):_0x138e65(window[_0x5cc309([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2a7a59));}return _0x50cb55(_0xf5102a),_0x5712b3>>>0x0;}function _0x3d4667(_0x931cc4){return _0x931cc4[_0x5cc309([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5cc309([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5cc309([0x30]));}function _0x3e7ac1(_0x4f251b){return _0x4f251b[_0x5cc309([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5cc309([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5cc309([0x6a,0x6f,0x69,0x6e])]('');}function _0x315679(){}function _0x5cc309(_0x2bbfe7){const _0x68f2f8=_0x1166;return _0x2bbfe7[_0x68f2f8(0x20c)](_0x310260=>String[_0x68f2f8(0x1f7)](_0x310260))[_0x68f2f8(0x1c9)]('');}_0x12fceb(await _0x4b318e());}(this);}[_0x3d47d0(0x1cd)](){const _0x164fda=_0x3d47d0,_0x81b0ba=this[_0x164fda(0x203)][_0x164fda(0x1d6)][_0x164fda(0x20a)];_0x81b0ba[_0x164fda(0x1e5)](_0x164fda(0x205))&&_0x81b0ba[_0x164fda(0x1eb)](_0x164fda(0x205),{'allowAttributes':[_0x164fda(0x209)]}),_0x81b0ba[_0x164fda(0x1e5)](_0x164fda(0x1e6))&&_0x81b0ba[_0x164fda(0x1eb)](_0x164fda(0x1e6),{'allowAttributes':[_0x164fda(0x209)]});}[_0x3d47d0(0x21b)](){const _0x5712b4=_0x3d47d0,_0x48c043=this[_0x5712b4(0x203)];_0x48c043[_0x5712b4(0x20b)][_0x5712b4(0x1e3)](_0x5712b4(0x214))[_0x5712b4(0x1f0)]({'model':_0x5712b4(0x209),'view':_0x5712b4(0x1ff)}),_0x48c043[_0x5712b4(0x20b)][_0x5712b4(0x1e3)](_0x5712b4(0x1de))[_0x5712b4(0x1cc)]({'model':{'key':_0x5712b4(0x209),'value':_0x5b0c88=>_0x5b0c88[_0x5712b4(0x207)](_0x5712b4(0x1ff))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3a404c=_0x48c043[_0x5712b4(0x1ee)][_0x5712b4(0x1fe)](_0x5712b4(0x1db));_0x3a404c&&this[_0x5712b4(0x1ea)](_0x3a404c,_0x5712b4(0x200),(_0x93d003,[_0x6f0ed6,_0x2b4efa])=>{const _0x221cd9=_0x5712b4;_0x6f0ed6[_0x221cd9(0x1e7)](_0x221cd9(0x209),_0x2b4efa);});}[_0x3d47d0(0x1d8)](){const _0x10dc23=_0x3d47d0,_0x2aa72e=this[_0x10dc23(0x203)][_0x10dc23(0x1f2)][_0x10dc23(0x1fe)](_0x10dc23(0x1f8))||{},_0x502b99=this[_0x10dc23(0x203)][_0x10dc23(0x1f2)][_0x10dc23(0x1fe)](_0x10dc23(0x1f1))||'';this[_0x10dc23(0x1ca)]=_0x1187ac(_0xc0482c[_0x10dc23(0x1f5)],_0x10dc23(0x1d5),{..._0x2aa72e,'pubkey':_0x502b99,'ctx-name':_0x10dc23(0x215)+this[_0x10dc23(0x1e2)],'sourceList':'','imgOnly':_0x10dc23(0x1f9),'removeCopyright':_0x10dc23(0x1f9),'localeName':this[_0x10dc23(0x203)][_0x10dc23(0x217)][_0x10dc23(0x1fc)],'externalSourcesEmbedCss':_0x10dc23(0x1ef)}),this[_0x10dc23(0x1ca)][_0x10dc23(0x1d2)]=_0x21c26c=>{const _0x45cc16=_0x10dc23;if(_0x45cc16(0x1ec)==_0x21c26c)return _0x45cc16(0x1cb);},_0xc0482c[_0x10dc23(0x1f5)][_0x10dc23(0x206)][_0x10dc23(0x1da)](this[_0x10dc23(0x1ca)]);}[_0x3d47d0(0x1d9)](){const _0x37303d=_0x3d47d0;this[_0x37303d(0x1dc)]=_0x1187ac(_0xc0482c[_0x37303d(0x1f5)],_0x37303d(0x1ed),{'ctx-name':_0x37303d(0x215)+this[_0x37303d(0x1e2)]}),_0xc0482c[_0x37303d(0x1f5)][_0x37303d(0x206)][_0x37303d(0x1da)](this[_0x37303d(0x1dc)]);}[_0x3d47d0(0x1d0)](){const _0x5ed43b=_0x3d47d0,_0x4dcbec=this[_0x5ed43b(0x203)][_0x5ed43b(0x1ee)][_0x5ed43b(0x1fe)](_0x5ed43b(0x1fb));_0x4dcbec&&this[_0x5ed43b(0x1ea)](_0x4dcbec,_0x5ed43b(0x1e0),()=>{const _0x355625=_0x5ed43b,_0xacccd7=this[_0x355625(0x203)][_0x355625(0x1d6)][_0x355625(0x1f5)][_0x355625(0x1f3)][_0x355625(0x1e8)]();_0xacccd7&&_0xacccd7[_0x355625(0x207)](_0x355625(0x209))&&this[_0x355625(0x203)][_0x355625(0x1df)][_0x355625(0x202)][_0x355625(0x201)](_0x355625(0x1d4),()=>{const _0x18c1bb=_0x355625;_0x4673bf(this[_0x18c1bb(0x203)],_0xacccd7);});});const _0xb0056a=this[_0x5ed43b(0x203)][_0x5ed43b(0x1ee)][_0x5ed43b(0x1fe)](_0x5ed43b(0x1e1));_0xb0056a&&this[_0x5ed43b(0x1ea)](_0xb0056a,_0x5ed43b(0x1e0),()=>{const _0x223d2d=_0x5ed43b,_0x33c0a1=this[_0x223d2d(0x203)][_0x223d2d(0x1d6)][_0x223d2d(0x1f5)][_0x223d2d(0x1f3)][_0x223d2d(0x1e8)]();_0x33c0a1&&_0x33c0a1[_0x223d2d(0x207)](_0x223d2d(0x209))&&this[_0x223d2d(0x203)][_0x223d2d(0x1df)][_0x223d2d(0x202)][_0x223d2d(0x201)](_0x223d2d(0x1d4),()=>{const _0x25ec13=_0x223d2d;_0x4673bf(this[_0x25ec13(0x203)],_0x33c0a1);});});}}
23
+ const _0x1f4eb0=_0x580d;(function(_0x205b4e,_0x3cbcca){const _0x4a3c06=_0x580d,_0x3be843=_0x205b4e();while(!![]){try{const _0x4dd3f9=parseInt(_0x4a3c06(0xa7))/0x1+-parseInt(_0x4a3c06(0xb4))/0x2+-parseInt(_0x4a3c06(0xf1))/0x3*(-parseInt(_0x4a3c06(0xae))/0x4)+-parseInt(_0x4a3c06(0xf7))/0x5+parseInt(_0x4a3c06(0xc1))/0x6*(-parseInt(_0x4a3c06(0xc9))/0x7)+-parseInt(_0x4a3c06(0xe7))/0x8*(-parseInt(_0x4a3c06(0xba))/0x9)+-parseInt(_0x4a3c06(0xee))/0xa*(-parseInt(_0x4a3c06(0xc0))/0xb);if(_0x4dd3f9===_0x3cbcca)break;else _0x3be843['push'](_0x3be843['shift']());}catch(_0xc3d102){_0x3be843['push'](_0x3be843['shift']());}}}(_0x5be0,0xdec29));import{Plugin as _0xb1dbae}from'ckeditor5/src/core.js';import{Dialog as _0x449b62}from'ckeditor5/src/ui.js';import{createElement as _0x3b7332,global as _0x5d8335,uid as _0x1ead40}from'ckeditor5/src/utils.js';function _0x580d(_0x2df81a,_0x5479b5){const _0x5be0ec=_0x5be0();return _0x580d=function(_0x580d5f,_0x281881){_0x580d5f=_0x580d5f-0xa5;let _0x18be37=_0x5be0ec[_0x580d5f];return _0x18be37;},_0x580d(_0x2df81a,_0x5479b5);}import{UploadcareCommand as _0x9ac18a}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x507f15}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3d2cb9}from'./utils/editingutils.js';export class UploadcareEditing extends _0xb1dbae{[_0x1f4eb0(0xe0)]=null;[_0x1f4eb0(0xdb)]=null;static get[_0x1f4eb0(0xf3)](){const _0x4fa7b1=_0x1f4eb0;return _0x4fa7b1(0xf0);}static get[_0x1f4eb0(0xf4)](){const _0x2256d0=_0x1f4eb0;return[_0x2256d0(0xdc),_0x507f15,_0x449b62];}static get[_0x1f4eb0(0xe3)](){return!0x0;}static get[_0x1f4eb0(0xd8)](){return!0x0;}[_0x1f4eb0(0xe2)];get[_0x1f4eb0(0xe9)](){const _0x2b90a6=_0x1f4eb0;return this[_0x2b90a6(0xe0)];}get[_0x1f4eb0(0xf8)](){const _0x37029d=_0x1f4eb0;return this[_0x37029d(0xdb)];}constructor(_0x454cbd){const _0x113f01=_0x1f4eb0;super(_0x454cbd),this[_0x113f01(0xe2)]=_0x1ead40();}[_0x1f4eb0(0xa8)](){const _0x9af40b=_0x1f4eb0,_0x3da37a=this[_0x9af40b(0xbc)];_0x3da37a[_0x9af40b(0xa6)][_0x9af40b(0xcf)](_0x9af40b(0xc3),new _0x9ac18a(_0x3da37a));}[_0x1f4eb0(0xc5)](){const _0x1f336f=_0x1f4eb0;this[_0x1f336f(0xac)](),this[_0x1f336f(0xcc)](),this[_0x1f336f(0xe5)](),this[_0x1f336f(0xd2)](),this[_0x1f336f(0xbd)](),this[_0x1f336f(0xbf)](this[_0x1f336f(0xbc)],_0x1f336f(0xce),()=>{const _0x1cfd83=_0x1f336f;this[_0x1cfd83(0xe0)]&&(this[_0x1cfd83(0xe0)][_0x1cfd83(0xb2)](),this[_0x1cfd83(0xe0)]=null),this[_0x1cfd83(0xdb)]&&(this[_0x1cfd83(0xdb)][_0x1cfd83(0xb2)](),this[_0x1cfd83(0xdb)]=null);const _0x22245c=_0x5d8335[_0x1cfd83(0xec)][_0x1cfd83(0xb7)](_0x1cfd83(0xd5));_0x22245c&&_0x22245c[_0x1cfd83(0xb2)]();}),async function(_0x338ae7){const _0x40820c=_0x4404d2([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4dfb35=0x535f8c3a,_0x5d2a0f=0x5358f122^_0x4dfb35,_0x34c038=window[_0x4404d2([0x44,0x61,0x74,0x65])][_0x4404d2([0x6e,0x6f,0x77])](),_0x3210c0=_0x338ae7[_0x4404d2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x567dcb=new window[(_0x4404d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1782a2=>{_0x3210c0[_0x4404d2([0x6f,0x6e,0x63,0x65])](_0x4404d2([0x72,0x65,0x61,0x64,0x79]),_0x1782a2);}),_0x5b2719={[_0x4404d2([0x6b,0x74,0x79])]:_0x4404d2([0x45,0x43]),[_0x4404d2([0x75,0x73,0x65])]:_0x4404d2([0x73,0x69,0x67]),[_0x4404d2([0x63,0x72,0x76])]:_0x4404d2([0x50,0x2d,0x32,0x35,0x36]),[_0x4404d2([0x78])]:_0x4404d2([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]),[_0x4404d2([0x79])]:_0x4404d2([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]),[_0x4404d2([0x61,0x6c,0x67])]:_0x4404d2([0x45,0x53,0x32,0x35,0x36])},_0x2a75e8=_0x3210c0[_0x4404d2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4404d2([0x67,0x65,0x74])](_0x4404d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a63f3(){let _0x1b89c0,_0xeb23bd=null,_0x11fdd9=null;try{if(_0x2a75e8==_0x4404d2([0x47,0x50,0x4c]))return _0x4404d2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1b89c0=_0x410bac(),!_0x1b89c0)return _0x4404d2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1b89c0[_0x4404d2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x11fdd9=_0x28aeb8(_0x1b89c0[_0x4404d2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1b89c0[_0x4404d2([0x6a,0x74,0x69])])),await _0x5b0608()?_0x790c02()?_0x3fb50d()?_0x4404d2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3d7438()?(_0x1b89c0[_0x4404d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4404d2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xeb23bd=_0x2b3324(_0x4404d2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1b89c0[_0x4404d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4404d2([0x74,0x72,0x69,0x61,0x6c])&&(_0xeb23bd=_0x2b3324(_0x4404d2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22f172()):_0x4404d2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4404d2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4404d2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4404d2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3fb50d(){const _0xeb6742=[_0x4404d2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4404d2([0x74,0x72,0x69,0x61,0x6c])][_0x4404d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b89c0[_0x4404d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x34c038/0x3e8:0xe10*_0x5d2a0f;return _0x1b89c0[_0x4404d2([0x65,0x78,0x70])]<_0xeb6742;}function _0x790c02(){const _0x51bcc5=_0x1b89c0[_0x4404d2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x51bcc5&&(!!_0x51bcc5[_0x4404d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4404d2([0x2a]))||!!_0x51bcc5[_0x4404d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4404d2([0x55,0x50,0x4c,0x43])));}function _0x3d7438(){const _0x5949aa=_0x580d,_0x3c5767=_0x1b89c0[_0x4404d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c5767||0x0==_0x3c5767[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x31107c}=new URL(window[_0x4404d2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5949aa(0xde)]);if(_0x3c5767[_0x4404d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31107c))return!0x0;const _0x5bdb4=_0x31107c[_0x4404d2([0x73,0x70,0x6c,0x69,0x74])](_0x4404d2([0x2e]));return _0x3c5767[_0x4404d2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49410d=>_0x49410d[_0x4404d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4404d2([0x2a])))[_0x4404d2([0x6d,0x61,0x70])](_0x2902e5=>_0x2902e5[_0x4404d2([0x73,0x70,0x6c,0x69,0x74])](_0x4404d2([0x2e])))[_0x4404d2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ce5ff=>_0x2ce5ff[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5bdb4[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4404d2([0x6d,0x61,0x70])](_0x160e5c=>Array(_0x5bdb4[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x160e5c[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4404d2([0x66,0x69,0x6c,0x6c])](_0x160e5c[0x0]===_0x4404d2([0x2a])?_0x4404d2([0x2a]):'')[_0x4404d2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x160e5c))[_0x4404d2([0x73,0x6f,0x6d,0x65])](_0x17cf73=>_0x5bdb4[_0x4404d2([0x65,0x76,0x65,0x72,0x79])]((_0x37c243,_0x518525)=>_0x17cf73[_0x518525]===_0x37c243||_0x17cf73[_0x518525]===_0x4404d2([0x2a])));}function _0x22f172(){return _0xeb23bd&&_0x11fdd9?new window[(_0x4404d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3dc1d9,_0x534b1a)=>{_0xeb23bd[_0x4404d2([0x74,0x68,0x65,0x6e])](_0x3dc1d9,_0x534b1a),_0x11fdd9[_0x4404d2([0x74,0x68,0x65,0x6e])](_0x578c10=>{_0x578c10!=_0x4404d2([0x56,0x61,0x6c,0x69,0x64])&&_0x3dc1d9(_0x578c10);},_0x534b1a);}):_0xeb23bd||_0x11fdd9||_0x4404d2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x28aeb8(_0x5b23ae,_0x853fd6){return new window[(_0x4404d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54b8b5=>{if(_0xb12935())return _0x54b8b5(_0x4404d2([0x56,0x61,0x6c,0x69,0x64]));_0x40bad4(),_0x3210c0[_0x4404d2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4404d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x47b2b9=!0x1;const _0x430203=_0x1ead40();function _0x10f1c6(_0x109d3a){return!!_0x109d3a&&(typeof _0x109d3a===_0x4404d2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x109d3a===_0x4404d2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x109d3a[_0x4404d2([0x74,0x68,0x65,0x6e])]===_0x4404d2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x109d3a[_0x4404d2([0x63,0x61,0x74,0x63,0x68])]===_0x4404d2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1be02a(_0x643c){_0x325470(_0x643c)[_0x4404d2([0x74,0x68,0x65,0x6e])](_0x26bc56=>{if(!_0x26bc56||_0x26bc56[_0x4404d2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4404d2([0x6f,0x6b]))return _0x4404d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3821b9(_0x1a0a2c(_0x430203+_0x853fd6))!=_0x26bc56[_0x4404d2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4404d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4404d2([0x56,0x61,0x6c,0x69,0x64]);})[_0x4404d2([0x74,0x68,0x65,0x6e])](_0x21a0d9=>(_0x43bced(),_0x21a0d9),()=>{const _0x2c3b19=_0x550264();return null==_0x2c3b19?(_0x43bced(),_0x4404d2([0x56,0x61,0x6c,0x69,0x64])):_0x4404d2(_0x34c038-_0x2c3b19>(0x7753083a^_0x4dfb35)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4404d2([0x74,0x68,0x65,0x6e])](_0x54b8b5)[_0x4404d2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x54b8b5(_0x4404d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xabc8d1=0x536962ba^_0x4dfb35;function _0x43bced(){const _0x820582=_0x4404d2([0x6c,0x6c,0x63,0x74,0x2d])+_0x3821b9(_0x1a0a2c(_0x5b23ae)),_0x5046c8=_0x11bb7b(_0x3821b9(window[_0x4404d2([0x4d,0x61,0x74,0x68])][_0x4404d2([0x63,0x65,0x69,0x6c])](_0x34c038/_0xabc8d1)));window[_0x4404d2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4404d2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x820582,_0x5046c8);}function _0x550264(){const _0x80de1a=_0x4404d2([0x6c,0x6c,0x63,0x74,0x2d])+_0x3821b9(_0x1a0a2c(_0x5b23ae)),_0x29eed3=window[_0x4404d2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4404d2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x80de1a);return _0x29eed3?window[_0x4404d2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11bb7b(_0x29eed3),0x10)*_0xabc8d1:null;}function _0x325470(_0x75406){return new window[(_0x4404d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c02bf,_0x29c4ee)=>{_0x75406[_0x4404d2([0x74,0x68,0x65,0x6e])](_0x2c02bf,_0x29c4ee),window[_0x4404d2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29c4ee,0x535e58fa^_0x4dfb35);});}}_0x3210c0[_0x4404d2([0x6f,0x6e])](_0x4404d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x190eb7,_0xb3c593)=>{if(_0xb3c593[0x0]!=_0x5b23ae)return _0x54b8b5(_0x4404d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb3c593[0x1]={..._0xb3c593[0x1],[_0x4404d2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x430203};},{[_0x4404d2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4404d2([0x68,0x69,0x67,0x68])}),_0x3210c0[_0x4404d2([0x6f,0x6e])](_0x4404d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x199a7d=>{_0x10f1c6(_0x199a7d[_0x4404d2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x47b2b9=!0x0,_0x1be02a(_0x199a7d[_0x4404d2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4404d2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4404d2([0x6c,0x6f,0x77])}),_0x567dcb[_0x4404d2([0x74,0x68,0x65,0x6e])](()=>{_0x47b2b9||_0x54b8b5(_0x4404d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xb12935(){return _0x3210c0[_0x4404d2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4404d2([0x76,0x69,0x65,0x77])][_0x4404d2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4404d2([0x61,0x75,0x74,0x6f]);}function _0x40bad4(){_0x3210c0[_0x4404d2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4404d2([0x76,0x69,0x65,0x77])][_0x4404d2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4404d2([0x61,0x75,0x74,0x6f]);}}function _0x2b3324(_0xb5fe32){const _0x316e66=[new window[(_0x4404d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3df36e=>setTimeout(_0x3df36e,0x5356b2f6^_0x4dfb35)),_0x567dcb[_0x4404d2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4404d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47a653=>{let _0x47322f=0x0;_0x3210c0[_0x4404d2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4404d2([0x6f,0x6e])](_0x4404d2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x267551,_0x4d64b4)=>{_0x4d64b4[0x0][_0x4404d2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x47322f++,_0x47322f==(0x535f89d2^_0x4dfb35)&&(_0x47a653(),_0x267551[_0x4404d2([0x6f,0x66,0x66])]());});}))];return window[_0x4404d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4404d2([0x72,0x61,0x63,0x65])](_0x316e66)[_0x4404d2([0x74,0x68,0x65,0x6e])](()=>_0xb5fe32);}async function _0x5d6916(){await _0x567dcb,_0x3210c0[_0x4404d2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4404d2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xd358de,_0x3210c0[_0x4404d2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4404d2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xd358de,_0x3210c0[_0x4404d2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4404d2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x80efb6(_0x45ff51){const _0x24d263=_0x5ad844();_0x3210c0[_0x24d263]=_0x4404d2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x45ff51,_0x45ff51!=_0x4404d2([0x56,0x61,0x6c,0x69,0x64])&&_0x5d6916();}function _0x5ad844(){const _0x47289e=window[_0x4404d2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4404d2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4404d2([0x6e,0x6f,0x77])]())[_0x4404d2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4404d2([0x2e]),'');let _0x5daaf2=_0x4404d2([0x68]);for(let _0x58abdf=0x0;_0x58abdf<_0x47289e[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x58abdf+=0x2){let _0x1dd341=window[_0x4404d2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47289e[_0x4404d2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58abdf,_0x58abdf+0x2));_0x1dd341>=_0x40820c[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1dd341-=_0x40820c[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5daaf2+=_0x40820c[_0x1dd341];}return _0x5daaf2;}function _0x410bac(){const _0x36ec26=_0x2a75e8[_0x4404d2([0x73,0x70,0x6c,0x69,0x74])](_0x4404d2([0x2e]));if(0x3!=_0x36ec26[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1e46e4(_0x36ec26[0x1]);function _0x1e46e4(_0x593529){const _0x1da897=_0x41dc91(_0x593529);return _0x1da897&&_0x303018()?_0x1da897:null;function _0x303018(){const _0x15d380=_0x1da897[_0x4404d2([0x6a,0x74,0x69])],_0x235e62=window[_0x4404d2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15d380[_0x4404d2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15d380[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x10a7f5={..._0x1da897,[_0x4404d2([0x6a,0x74,0x69])]:_0x15d380[_0x4404d2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x15d380[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x10a7f5[_0x4404d2([0x76,0x63])],_0x1a0a2c(_0x10a7f5)==_0x235e62;}}}async function _0x5b0608(){let _0x1d69dc=!0x0;try{const _0x275366=_0x2a75e8[_0x4404d2([0x73,0x70,0x6c,0x69,0x74])](_0x4404d2([0x2e])),[_0x4971b3,_0xf05cb6,_0x565d34]=_0x275366;return _0x3d1972(_0x4971b3),await _0x1f74d8(_0x4971b3,_0xf05cb6,_0x565d34),_0x1d69dc;}catch{return!0x1;}function _0x3d1972(_0x481d62){const _0x5d38a4=_0x41dc91(_0x481d62);_0x5d38a4&&_0x5d38a4[_0x4404d2([0x61,0x6c,0x67])]==_0x4404d2([0x45,0x53,0x32,0x35,0x36])||(_0x1d69dc=!0x1);}async function _0x1f74d8(_0x147d58,_0x570586,_0x35ba1c){const _0x135440=window[_0x4404d2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4404d2([0x66,0x72,0x6f,0x6d])](_0x22a32b(_0x35ba1c),_0x3dda37=>_0x3dda37[_0x4404d2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x461455=new window[(_0x4404d2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4404d2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x147d58+_0x4404d2([0x2e])+_0x570586),_0x585a5d=window[_0x4404d2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4404d2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x585a5d)return;const _0x28ac13=await _0x585a5d[_0x4404d2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4404d2([0x6a,0x77,0x6b]),_0x5b2719,{[_0x4404d2([0x6e,0x61,0x6d,0x65])]:_0x4404d2([0x45,0x43,0x44,0x53,0x41]),[_0x4404d2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4404d2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4404d2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x585a5d[_0x4404d2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4404d2([0x6e,0x61,0x6d,0x65])]:_0x4404d2([0x45,0x43,0x44,0x53,0x41]),[_0x4404d2([0x68,0x61,0x73,0x68])]:{[_0x4404d2([0x6e,0x61,0x6d,0x65])]:_0x4404d2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x28ac13,_0x135440,_0x461455)||(_0x1d69dc=!0x1);}}function _0x41dc91(_0x5bbfb8){return _0x5bbfb8[_0x4404d2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4404d2([0x65,0x79]))?JSON[_0x4404d2([0x70,0x61,0x72,0x73,0x65])](_0x22a32b(_0x5bbfb8)):null;}function _0x22a32b(_0x522c58){return window[_0x4404d2([0x61,0x74,0x6f,0x62])](_0x522c58[_0x4404d2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4404d2([0x2b]))[_0x4404d2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4404d2([0x2f])));}function _0x1a0a2c(_0x6c0e83){let _0x4d0add=0x1505;function _0x487590(_0x11e9ab){for(let _0x1d7e88=0x0;_0x1d7e88<_0x11e9ab[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d7e88++){const _0x7c2030=_0x11e9ab[_0x4404d2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d7e88);_0x4d0add=(_0x4d0add<<0x5)+_0x4d0add+_0x7c2030,_0x4d0add&=_0x4d0add;}}function _0x570975(_0x5442d6){Array[_0x4404d2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5442d6)?_0x5442d6[_0x4404d2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x570975):_0x5442d6&&typeof _0x5442d6==_0x4404d2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4404d2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5442d6)[_0x4404d2([0x73,0x6f,0x72,0x74])]()[_0x4404d2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x26a00b,_0x21bc0d])=>{_0x487590(_0x26a00b),_0x570975(_0x21bc0d);}):_0x487590(window[_0x4404d2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5442d6));}return _0x570975(_0x6c0e83),_0x4d0add>>>0x0;}function _0x3821b9(_0x59442e){return _0x59442e[_0x4404d2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4404d2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4404d2([0x30]));}function _0x11bb7b(_0x2e53fa){return _0x2e53fa[_0x4404d2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4404d2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4404d2([0x6a,0x6f,0x69,0x6e])]('');}function _0xd358de(){}function _0x4404d2(_0x17c951){const _0x1d5f81=_0x580d;return _0x17c951[_0x1d5f81(0xda)](_0x5c175f=>String[_0x1d5f81(0xb5)](_0x5c175f))[_0x1d5f81(0xaa)]('');}_0x80efb6(await _0x2a63f3());}(this);}[_0x1f4eb0(0xac)](){const _0xf167ab=_0x1f4eb0,_0x35a81b=this[_0xf167ab(0xbc)][_0xf167ab(0xd7)][_0xf167ab(0xe6)];_0x35a81b[_0xf167ab(0xf9)](_0xf167ab(0xc4))&&_0x35a81b[_0xf167ab(0xbb)](_0xf167ab(0xc4),{'allowAttributes':[_0xf167ab(0xe8)]}),_0x35a81b[_0xf167ab(0xf9)](_0xf167ab(0xb3))&&_0x35a81b[_0xf167ab(0xbb)](_0xf167ab(0xb3),{'allowAttributes':[_0xf167ab(0xe8)]});}[_0x1f4eb0(0xcc)](){const _0x69fc2d=_0x1f4eb0,_0x50e580=this[_0x69fc2d(0xbc)];_0x50e580[_0x69fc2d(0xd3)][_0x69fc2d(0xc8)](_0x69fc2d(0xf5))[_0x69fc2d(0xeb)]({'model':_0x69fc2d(0xe8),'view':_0x69fc2d(0xf6)}),_0x50e580[_0x69fc2d(0xd3)][_0x69fc2d(0xc8)](_0x69fc2d(0xf2))[_0x69fc2d(0xdf)]({'model':{'key':_0x69fc2d(0xe8),'value':_0xe32841=>_0xe32841[_0x69fc2d(0xc7)](_0x69fc2d(0xf6))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x44eb83=_0x50e580[_0x69fc2d(0xa6)][_0x69fc2d(0xb0)](_0x69fc2d(0xa5));_0x44eb83&&this[_0x69fc2d(0xbf)](_0x44eb83,_0x69fc2d(0xd0),(_0x37f8fc,[_0x45128f,_0x3ea914])=>{const _0x53e5a0=_0x69fc2d;_0x45128f[_0x53e5a0(0xad)](_0x53e5a0(0xe8),_0x3ea914);});}[_0x1f4eb0(0xe5)](){const _0x45e155=_0x1f4eb0,_0x19a6d6=this[_0x45e155(0xbc)][_0x45e155(0xd4)][_0x45e155(0xb0)](_0x45e155(0xa9))||{},_0x427302=this[_0x45e155(0xbc)][_0x45e155(0xd4)][_0x45e155(0xb0)](_0x45e155(0xc2))||'';this[_0x45e155(0xe0)]=_0x3b7332(_0x5d8335[_0x45e155(0xec)],_0x45e155(0xed),{..._0x19a6d6,'pubkey':_0x427302,'ctx-name':_0x45e155(0xd6)+this[_0x45e155(0xe2)],'sourceList':'','imgOnly':_0x45e155(0xd1),'removeCopyright':_0x45e155(0xd1),'localeName':this[_0x45e155(0xbc)][_0x45e155(0xab)][_0x45e155(0xe4)],'externalSourcesEmbedCss':_0x45e155(0xbe)}),this[_0x45e155(0xe0)][_0x45e155(0xcb)]=_0x22da8d=>{const _0x11ffdd=_0x45e155;if(_0x11ffdd(0xef)==_0x22da8d)return _0x11ffdd(0xea);},_0x5d8335[_0x45e155(0xec)][_0x45e155(0xe1)][_0x45e155(0xaf)](this[_0x45e155(0xe0)]);}[_0x1f4eb0(0xd2)](){const _0x20ea5c=_0x1f4eb0;this[_0x20ea5c(0xdb)]=_0x3b7332(_0x5d8335[_0x20ea5c(0xec)],_0x20ea5c(0xca),{'ctx-name':_0x20ea5c(0xd6)+this[_0x20ea5c(0xe2)]}),_0x5d8335[_0x20ea5c(0xec)][_0x20ea5c(0xe1)][_0x20ea5c(0xaf)](this[_0x20ea5c(0xdb)]);}[_0x1f4eb0(0xbd)](){const _0x35c2cd=_0x1f4eb0,_0x58211c=this[_0x35c2cd(0xbc)][_0x35c2cd(0xa6)][_0x35c2cd(0xb0)](_0x35c2cd(0xcd));_0x58211c&&this[_0x35c2cd(0xbf)](_0x58211c,_0x35c2cd(0xd9),()=>{const _0x4ac9f9=_0x35c2cd,_0x3c7801=this[_0x4ac9f9(0xbc)][_0x4ac9f9(0xd7)][_0x4ac9f9(0xec)][_0x4ac9f9(0xfa)][_0x4ac9f9(0xc6)]();_0x3c7801&&_0x3c7801[_0x4ac9f9(0xc7)](_0x4ac9f9(0xe8))&&this[_0x4ac9f9(0xbc)][_0x4ac9f9(0xdd)][_0x4ac9f9(0xb1)][_0x4ac9f9(0xb9)](_0x4ac9f9(0xb6),()=>{const _0x44380b=_0x4ac9f9;_0x3d2cb9(this[_0x44380b(0xbc)],_0x3c7801);});});const _0x1c2125=this[_0x35c2cd(0xbc)][_0x35c2cd(0xa6)][_0x35c2cd(0xb0)](_0x35c2cd(0xb8));_0x1c2125&&this[_0x35c2cd(0xbf)](_0x1c2125,_0x35c2cd(0xd9),()=>{const _0x513a96=_0x35c2cd,_0x115d5b=this[_0x513a96(0xbc)][_0x513a96(0xd7)][_0x513a96(0xec)][_0x513a96(0xfa)][_0x513a96(0xc6)]();_0x115d5b&&_0x115d5b[_0x513a96(0xc7)](_0x513a96(0xe8))&&this[_0x513a96(0xbc)][_0x513a96(0xdd)][_0x513a96(0xb1)][_0x513a96(0xb9)](_0x513a96(0xb6),()=>{const _0x5a6c4f=_0x513a96;_0x3d2cb9(this[_0x5a6c4f(0xbc)],_0x115d5b);});});}}function _0x5be0(){const _0x1a3e73=['configElement','#uc-icon-arrow-down','attributeToAttribute','document','uc-config','1058830IHtRvz','closeMax','UploadcareEditing','3lJibKH','upcast','pluginName','requires','downcast','data-uc-image-id','7618705VNqkmt','ctxElement','isRegistered','selection','replaceImageSource','commands','1248081zFyAJZ','init','uploadcare.uploader','join','locale','_initSchema','removeAttribute','6979508Xyagmn','appendChild','get','view','remove','imageInline','1767958pLPARg','fromCharCode','render','querySelector','uploadcareImageReplace','once','180ZthXjE','extend','editor','_initImageProcessingIndicator','\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','listenTo','154FeLeId','30JiBHco','uploadcare.pubkey','uploadcare','imageBlock','afterInit','getSelectedElement','getAttribute','for','1695645VfWoJN','uc-upload-ctx-provider','iconHrefResolver','_initConversion','insertImage','destroy','add','cleanupImage','true','_initCtx','conversion','config','input[uploadcare-file-input]','uploader-','model','isPremiumPlugin','execute','map','_ctxElement','PictureEditing','editing','href','elementToAttribute','_configElement','body','ucContextId','isOfficialPlugin','contentLanguage','_initConfig','schema','22400wDLike','uploadcareImageId'];_0x5be0=function(){return _0x1a3e73;};return _0x5be0();}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{global as _0x512580,ObservableMixin as _0x44de94}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x118bde}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4facdd}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x1eb74a}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x3b54de}from'../../utils/uploadutils.js';import{getImageUrls as _0x4de195,getImageDimension as _0x13d4ec}from'../../utils/editingutils.js';import{isAncestor as _0x30846e}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
- _0x44de94(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x304e59,_0x54bda0,_0x521566){super(),this['_editor']=_0x304e59,this['_dialog']=_0x54bda0,this['_imageElement']=_0x521566,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 _0x384a11=this['_imageElement'],_0x914666=_0x384a11['getAttribute']('uploadcareImageId'),_0x2ac35a=_0x384a11['getAttribute']('src');if(_0x914666)await this['_loadImageInfo'](_0x914666,_0x2ac35a);else{if(this['_imageCache']['has'](_0x2ac35a)){const _0x2ea720=this['_imageCache']['get'](_0x2ac35a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2ea720['url'],this['imageDimension']=_0x2ea720['dimension'],this['imageId']=_0x2ea720['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5299bb}=this['_editor'],t=_0x5299bb['t'],_0x3c1171=new _0x1eb74a(_0x5299bb,this['imageStatus'],this['_attributes']);_0x3c1171['bind']('status')['to'](this,'imageStatus'),_0x3c1171['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3c1171['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3c1171['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3c1171,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4facdd,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3c1171,'position':_0x118bde['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3c1171['focus']();},'onHide':()=>{_0x3c1171['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4e69f4=>!_0x30846e(_0x4e69f4,_0x3c1171['element'])}});}['_loadImageInfo'](_0x3896fa,_0x558853){return _0x3b54de['getInfo'](_0x3896fa,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4a8aa4=>{const {width:_0xcb874f,height:_0x1f5454}=_0x4a8aa4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x558853,this['imageDimension']={'width':_0xcb874f,'height':_0x1f5454},this['imageId']=_0x3896fa;})['catch'](_0x1f0027=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1f0027['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x24667c,_0xfee29f){return this['_getImageAsFile'](_0x24667c)['then'](_0x35ef76=>_0x3b54de['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0xfee29f['signal'],'file':_0x35ef76,'onProgress':_0xa681aa=>{_0xa681aa&&_0xa681aa['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xa681aa['value']));}}))['then'](_0x42cabd=>{const {width:_0x4d15f2,height:_0x29225e}=_0x42cabd['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x42cabd['cdnUrl'],this['imageDimension']={'width':_0x4d15f2,'height':_0x29225e},this['imageId']=_0x42cabd['uuid'],this['imageUploadProgress']=null;const _0x4f90b4=_0x24667c['getAttribute']('src');this['_imageCache']['set'](_0x4f90b4,{'id':_0x42cabd['uuid'],'url':_0x42cabd['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5a8604=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5a8604['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4cbf85,_0x105501){_0x4cbf85['on']('apply',(_0x34b6d5,_0x5a1b98)=>{this['_replaceImage'](_0x105501,_0x5a1b98['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4cbf85['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4cbf85['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3c9f3c,_0x3467cc,_0x6e7c3a){const _0x1c0a7f=this['_editor'],{width:_0x19d499,height:_0x5c82a8}=_0x13d4ec(_0x3467cc,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x459941,imageSources:_0x2c5310}=_0x4de195(_0x3467cc,_0x19d499);_0x1c0a7f['model']['change'](_0x1bb536=>{if('$graveyard'===_0x3c9f3c['root']['rootName']){_0x1c0a7f['execute']('insertImage',{'imageType':_0x3c9f3c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3c9f3c['getAttributes']()),'uploadcareImageId':_0x6e7c3a,'src':_0x459941,'sources':_0x2c5310,'width':_0x19d499,'height':_0x5c82a8}});const _0x50a9f5=_0x3c9f3c['getChildren']();_0x3c9f3c=_0x1c0a7f['model']['document']['selection']['getSelectedElement']();for(const _0x15144f of _0x50a9f5)_0x1bb536['append'](_0x1bb536['cloneElement'](_0x15144f),_0x3c9f3c);}else _0x1bb536['setSelection'](_0x3c9f3c,'on'),_0x1c0a7f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3c9f3c['getAttributes']()),'uploadcareImageId':_0x6e7c3a,'src':_0x459941,'sources':_0x2c5310,'width':_0x19d499,'height':_0x5c82a8},_0x3c9f3c);_0x1bb536['setSelection'](_0x3c9f3c,'on');});}async['_getImageAsFile'](_0x3d702b){const _0x1fb36d=_0x512580['window'],_0x5515c6=_0x512580['document']['location']['href'],_0x5f1785=new _0x1fb36d['URL'](_0x3d702b['getAttribute']('src'),_0x5515c6);if('data:'===_0x5f1785['protocol']){const _0x3129f9=_0x5f1785['href']['split'](','),_0x5de92e=_0x3129f9[0x0]['match'](/:(.*?);/)[0x1],_0xb629a4=_0x5de92e['split']('/')[0x1],_0x9695d9=_0x1fb36d['atob'](_0x3129f9[_0x3129f9['length']-0x1]);let _0x6f1ae9=_0x9695d9['length'];const _0x3ad5d8=new _0x1fb36d['Uint8Array'](_0x6f1ae9);for(;_0x6f1ae9--;)_0x3ad5d8[_0x6f1ae9]=_0x9695d9['charCodeAt'](_0x6f1ae9);return new _0x1fb36d['File']([_0x3ad5d8],'image.'+_0xb629a4,{'type':_0x5de92e});}const _0x2ace37=_0x5f1785['href']['split']('/'),_0x59d32f=_0x2ace37[_0x2ace37['length']-0x1],_0x3ef7c6=_0x59d32f['split']('.')[0x1];return _0x1fb36d['fetch'](_0x5f1785['href'])['then'](_0x369a69=>_0x369a69['clone']()['blob']())['then'](_0x36fb3f=>new _0x1fb36d['File']([_0x36fb3f],_0x59d32f,{'type':'image/'+_0x3ef7c6}));}}
23
+ import{global as _0x161f83,ObservableMixin as _0x46ad2e}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x592323}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x308b9e}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x8556fd}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x30b29d}from'../../utils/uploadutils.js';import{getImageUrls as _0x464ec8,getImageDimension as _0x2c2c86}from'../../utils/editingutils.js';import{isAncestor as _0x3115e9}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
+ _0x46ad2e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x247661,_0x278457,_0x5486c6){super(),this['_editor']=_0x247661,this['_dialog']=_0x278457,this['_imageElement']=_0x5486c6,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 _0x277f7c=this['_imageElement'],_0x5b3d5b=_0x277f7c['getAttribute']('uploadcareImageId'),_0x505450=_0x277f7c['getAttribute']('src');if(_0x5b3d5b)await this['_loadImageInfo'](_0x5b3d5b,_0x505450);else{if(this['_imageCache']['has'](_0x505450)){const _0x2e0abb=this['_imageCache']['get'](_0x505450);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2e0abb['url'],this['imageDimension']=_0x2e0abb['dimension'],this['imageId']=_0x2e0abb['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3250e3}=this['_editor'],t=_0x3250e3['t'],_0x1319d4=new _0x8556fd(_0x3250e3,this['imageStatus'],this['_attributes']);_0x1319d4['bind']('status')['to'](this,'imageStatus'),_0x1319d4['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1319d4['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1319d4['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1319d4,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x308b9e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1319d4,'position':_0x592323['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1319d4['focus']();},'onHide':()=>{_0x1319d4['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x175b77=>!_0x3115e9(_0x175b77,_0x1319d4['element'])}});}['_loadImageInfo'](_0x5173ef,_0x4eb161){return _0x30b29d['getInfo'](_0x5173ef,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x34a4ca=>{const {width:_0x53070d,height:_0x5adf5d}=_0x34a4ca['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4eb161,this['imageDimension']={'width':_0x53070d,'height':_0x5adf5d},this['imageId']=_0x5173ef;})['catch'](_0x2ce934=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2ce934['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1d2d1c,_0x481970){return this['_getImageAsFile'](_0x1d2d1c)['then'](_0x3e7522=>_0x30b29d['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x481970['signal'],'file':_0x3e7522,'onProgress':_0x4ac81f=>{_0x4ac81f&&_0x4ac81f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4ac81f['value']));}}))['then'](_0x5a8c26=>{const {width:_0x4d51f1,height:_0x4bedb4}=_0x5a8c26['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5a8c26['cdnUrl'],this['imageDimension']={'width':_0x4d51f1,'height':_0x4bedb4},this['imageId']=_0x5a8c26['uuid'],this['imageUploadProgress']=null;const _0x3c60cd=_0x1d2d1c['getAttribute']('src');this['_imageCache']['set'](_0x3c60cd,{'id':_0x5a8c26['uuid'],'url':_0x5a8c26['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x576237=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x576237['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4cd8e2,_0x29c25f){_0x4cd8e2['on']('apply',(_0x405e72,_0x427b63)=>{this['_replaceImage'](_0x29c25f,_0x427b63['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4cd8e2['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4cd8e2['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x9a062b,_0x58b19a,_0x30a780){const _0x417d7b=this['_editor'],{width:_0x1f5a74,height:_0x97c4fe}=_0x2c2c86(_0x58b19a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3cb368,imageSources:_0x3b631f}=_0x464ec8(_0x58b19a,_0x1f5a74);_0x417d7b['model']['change'](_0x1f7c6d=>{if('$graveyard'===_0x9a062b['root']['rootName']){_0x417d7b['execute']('insertImage',{'imageType':_0x9a062b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x9a062b['getAttributes']()),'uploadcareImageId':_0x30a780,'src':_0x3cb368,'sources':_0x3b631f,'width':_0x1f5a74,'height':_0x97c4fe}});const _0x24052f=_0x9a062b['getChildren']();_0x9a062b=_0x417d7b['model']['document']['selection']['getSelectedElement']();for(const _0x26f90f of _0x24052f)_0x1f7c6d['append'](_0x1f7c6d['cloneElement'](_0x26f90f),_0x9a062b);}else _0x1f7c6d['setSelection'](_0x9a062b,'on'),_0x417d7b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x9a062b['getAttributes']()),'uploadcareImageId':_0x30a780,'src':_0x3cb368,'sources':_0x3b631f,'width':_0x1f5a74,'height':_0x97c4fe},_0x9a062b);_0x1f7c6d['setSelection'](_0x9a062b,'on');});}async['_getImageAsFile'](_0x7610f5){const _0x1f3a53=_0x161f83['window'],_0x4aeb5b=_0x161f83['document']['location']['href'],_0xfba03e=new _0x1f3a53['URL'](_0x7610f5['getAttribute']('src'),_0x4aeb5b);if('data:'===_0xfba03e['protocol']){const _0x2fbd45=_0xfba03e['href']['split'](','),_0x3bfa75=_0x2fbd45[0x0]['match'](/:(.*?);/)[0x1],_0x7dee72=_0x3bfa75['split']('/')[0x1],_0x234b11=_0x1f3a53['atob'](_0x2fbd45[_0x2fbd45['length']-0x1]);let _0x287abd=_0x234b11['length'];const _0x102095=new _0x1f3a53['Uint8Array'](_0x287abd);for(;_0x287abd--;)_0x102095[_0x287abd]=_0x234b11['charCodeAt'](_0x287abd);return new _0x1f3a53['File']([_0x102095],'image.'+_0x7dee72,{'type':_0x3bfa75});}const _0x51ce10=_0xfba03e['href']['split']('/'),_0x17cb9a=_0x51ce10[_0x51ce10['length']-0x1],_0xe4d5f8=_0x17cb9a['split']('.')[0x1];return _0x1f3a53['fetch'](_0xfba03e['href'])['then'](_0x2f5774=>_0x2f5774['clone']()['blob']())['then'](_0x472153=>new _0x1f3a53['File']([_0x472153],_0x17cb9a,{'type':'image/'+_0xe4d5f8}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x22fcab,_0xaab7e9){const _0x3dbd37=_0x5b10,_0x25177f=_0x22fcab();while(!![]){try{const _0x4203bd=-parseInt(_0x3dbd37(0xd7))/0x1+-parseInt(_0x3dbd37(0xdb))/0x2+-parseInt(_0x3dbd37(0xe0))/0x3+-parseInt(_0x3dbd37(0xdf))/0x4*(-parseInt(_0x3dbd37(0xd0))/0x5)+-parseInt(_0x3dbd37(0xd5))/0x6+parseInt(_0x3dbd37(0xd3))/0x7*(parseInt(_0x3dbd37(0xd9))/0x8)+parseInt(_0x3dbd37(0xda))/0x9;if(_0x4203bd===_0xaab7e9)break;else _0x25177f['push'](_0x25177f['shift']());}catch(_0x6e07d){_0x25177f['push'](_0x25177f['shift']());}}}(_0x2c03,0x7f84c));function _0x2c03(){const _0x5a1285=['2032930slepXP','set','imageSrc','setTemplate','282868LAqDci','594345FHLQUR','30RfChJF','uc-light','bindTemplate','7FsZVkA','uc-cloud-image-editor','280200BoqaLL','ck-uploadcare-theme','770864OYdFlU','image-edit','6340136QsmKnD','12038769oOAYEC'];_0x2c03=function(){return _0x5a1285;};return _0x2c03();}function _0x5b10(_0x2e89a6,_0x449cf){const _0x2c036f=_0x2c03();return _0x5b10=function(_0x5b1077,_0x408822){_0x5b1077=_0x5b1077-0xd0;let _0x20b96b=_0x2c036f[_0x5b1077];return _0x20b96b;},_0x5b10(_0x2e89a6,_0x449cf);}import{View as _0x572cce}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x572cce{constructor(_0x358650,_0x46b012){const _0x260968=_0x5b10;super(_0x358650);const _0x5923fa=this[_0x260968(0xd2)];this[_0x260968(0xdc)](_0x260968(0xdd),''),this[_0x260968(0xde)]({'tag':_0x260968(0xd4),'attributes':{..._0x46b012,'class':[_0x260968(0xd1),_0x260968(0xd6)],'ctx-name':_0x260968(0xd8),'cdn-url':_0x5923fa['to'](_0x260968(0xdd))}});}}
23
+ function _0x2208(_0x27de0a,_0xf7f46f){const _0x304376=_0x3043();return _0x2208=function(_0x220873,_0x196546){_0x220873=_0x220873-0x1e3;let _0x471ffe=_0x304376[_0x220873];return _0x471ffe;},_0x2208(_0x27de0a,_0xf7f46f);}(function(_0x5b7343,_0x43658b){const _0xd98e2c=_0x2208,_0x289c25=_0x5b7343();while(!![]){try{const _0xabbba2=-parseInt(_0xd98e2c(0x1e8))/0x1*(parseInt(_0xd98e2c(0x1f0))/0x2)+-parseInt(_0xd98e2c(0x1ea))/0x3+parseInt(_0xd98e2c(0x1f1))/0x4+parseInt(_0xd98e2c(0x1e3))/0x5*(-parseInt(_0xd98e2c(0x1e9))/0x6)+-parseInt(_0xd98e2c(0x1e4))/0x7+parseInt(_0xd98e2c(0x1e6))/0x8+parseInt(_0xd98e2c(0x1ec))/0x9;if(_0xabbba2===_0x43658b)break;else _0x289c25['push'](_0x289c25['shift']());}catch(_0x570f89){_0x289c25['push'](_0x289c25['shift']());}}}(_0x3043,0xa4cc3));import{View as _0x53bbcc}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x53bbcc{constructor(_0x1d70c0,_0x4f200a){const _0x45818c=_0x2208;super(_0x1d70c0);const _0x461e25=this[_0x45818c(0x1ed)];this[_0x45818c(0x1f3)](_0x45818c(0x1e7),''),this[_0x45818c(0x1e5)]({'tag':_0x45818c(0x1ef),'attributes':{..._0x4f200a,'class':[_0x45818c(0x1eb),_0x45818c(0x1ee)],'ctx-name':_0x45818c(0x1f2),'cdn-url':_0x461e25['to'](_0x45818c(0x1e7))}});}}function _0x3043(){const _0x1ae024=['40772wNGzhu','647586WwPAeK','1545909QAkLLF','uc-light','28382895zbQIeb','bindTemplate','ck-uploadcare-theme','uc-cloud-image-editor','16PcjoSU','25380LPxdcG','image-edit','set','35IYkpMc','6225807DUaeAc','setTemplate','11264WIsmxf','imageSrc'];_0x3043=function(){return _0x1ae024;};return _0x3043();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as _0x3fb6cc}from'ckeditor5/src/icons.js';import{ButtonView as _0x282890,IconView as _0x3075dc,View as _0x145c69}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x145c69{constructor(_0x9cd1ae){super(_0x9cd1ae);const t=_0x9cd1ae['t'];this['set']('errorType',null);const _0x3ac43d=new _0x282890(_0x9cd1ae);_0x3ac43d['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3ac43d['withText']=!0x0,_0x3ac43d['class']='ck-button-action',_0x3ac43d['on']('execute',()=>{this['fire']('retry');}),_0x3ac43d['bind']('isVisible')['to'](this,'errorType',_0x32c9ac=>'NotFound'!==_0x32c9ac);const _0x3d7d1c=new _0x3075dc();_0x3d7d1c['content']=_0x3fb6cc,_0x3d7d1c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3f422=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':[_0x3d7d1c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3f422['to']('errorType',_0x3585b8=>t('NotFound'!==_0x3585b8?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3ac43d]},{'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'}]}]}]});}}
23
+ import{IconError as _0x30a60b}from'ckeditor5/src/icons.js';import{ButtonView as _0x19a357,IconView as _0x502b6e,View as _0x273d9e}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x273d9e{constructor(_0x5343d6){super(_0x5343d6);const t=_0x5343d6['t'];this['set']('errorType',null);const _0x2766d0=new _0x19a357(_0x5343d6);_0x2766d0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2766d0['withText']=!0x0,_0x2766d0['class']='ck-button-action',_0x2766d0['on']('execute',()=>{this['fire']('retry');}),_0x2766d0['bind']('isVisible')['to'](this,'errorType',_0xf8634d=>'NotFound'!==_0xf8634d);const _0x2b92a9=new _0x502b6e();_0x2b92a9['content']=_0x30a60b,_0x2b92a9['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4cd2fe=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':[_0x2b92a9,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4cd2fe['to']('errorType',_0xeced30=>t('NotFound'!==_0xeced30?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2766d0]},{'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'}]}]}]});}}