@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251227.0 → 0.0.0-nightly-next-20251228.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/uploadcareediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x1b064f,Command as _0x3b0801}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x187d40,IconGooglePhotos as _0x1d0c1f,IconGoogleDrive as _0x1cf962,IconFacebook as _0x26904e,IconDropbox as _0x3b423c,IconUploadcareLink as _0x3642d4,IconUploadcareImageUpload as _0x53da62,IconError as _0x3615d0,IconUploadcareImageEdit as _0x5aed85}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4005d2,MenuBarMenuListItemButtonView as _0x2350bd,View as _0x1c726e,FocusCycler as _0x4f27cf,Dialog as _0x402fe0,DialogViewPosition as _0x1cc742,SpinnerView as _0x3f9bcd,IconView as _0x4b8abe,Notification as _0x246b07}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5aae8c,DomEmitterMixin as _0x5b3f05,global as _0x29646b,getAncestors as _0x592d94,ObservableMixin as _0x3f8b0f,uid as _0x2d292f,createElement as _0x39b067}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x429082}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2100c5,info as _0x448894}from'@uploadcare/upload-client';import*as _0x25d53f from'@uploadcare/file-uploader';var i=function(_0x2284a8){return _0x2284a8['Local']='local',_0x2284a8['URL']='url',_0x2284a8['Dropbox']='dropbox',_0x2284a8['GDrive']='gdrive',_0x2284a8['Facebook']='facebook',_0x2284a8['GPhotos']='gphotos',_0x2284a8['OneDrive']='onedrive',_0x2284a8;}({});function _(_0x10c781,_0x295927,_0x41b639){const t=_0x10c781['t'],_0x3539d4=_0x10c781['t'];switch(_0x295927){case i['Local']:return{'text':_0x3539d4('Insert'===_0x41b639?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3539d4('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x41b639?_0x3539d4('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3539d4('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x41b639?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x41b639?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x41b639?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x41b639?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x41b639?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x295927;}}class e extends _0x1b064f{['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 _0x46a658=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x42f97c;for(const _0x4db3d4 in _0x46a658){const _0x1ce1e4=_0x4db3d4,_0x5bbd15=_0x46a658[_0x1ce1e4];if('uploadcareLicenseKeyValid'==_0x5bbd15||'uploadcareLicenseKeyInvalid'==_0x5bbd15||'uploadcareLicenseKeyExpired'==_0x5bbd15||'uploadcareLicenseKeyDomainLimit'==_0x5bbd15||'uploadcareLicenseKeyNotAllowed'==_0x5bbd15||'uploadcareLicenseKeyEvaluationLimit'==_0x5bbd15||'uploadcareLicenseKeyTrialLimit'==_0x5bbd15||'uploadcareLicenseKeyUsageLimit'==_0x5bbd15){delete _0x46a658[_0x1ce1e4],_0x42f97c=_0x5bbd15,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x42f97c&&_0x46a658['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x42f97c&&_0x46a658['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x42f97c&&_0x46a658['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x42f97c&&_0x46a658['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x42f97c&&_0x46a658['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x42f97c&&_0x46a658['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x42f97c&&_0x46a658['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x18618d}=this,_0x14629e=_0x18618d['commands']['get']('uploadcare');if(!_0x14629e)return;const _0x13fcab=this['_normalizeConfigSourceList'](_0x18618d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4d90c9,_0x1f78ca)=>{const _0x2c36af=this['_getIntegrationKey'](_0x1f78ca['type']);return _0x4d90c9[_0x2c36af]||(_0x4d90c9[_0x2c36af]=[]),_0x4d90c9[_0x2c36af]['push'](_0x1f78ca),_0x4d90c9;},{});_0x18618d['plugins']['has']('ImageInsertUI')&&_0x18618d['commands']['get']('uploadcare')&&Object['entries'](_0x13fcab)['forEach'](([_0x2b3663,_0x1dcb1d])=>{_0x18618d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2b3663,'observable':()=>_0x14629e,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1dcb1d),'formViewCreator':()=>this['_createDropdownButtons'](_0x1dcb1d),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1dcb1d),'override':'assetManager'!==_0x2b3663});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x104ff6){const {locale:_0x5940a5}=this['editor'];return _0x104ff6['map'](_0x329acc=>{const _0x25164a=_(_0x5940a5,_0x329acc,'Insert');switch(_0x329acc){case i['Local']:return{'icon':_0x53da62,'type':i['Local'],..._0x25164a};case i['URL']:return{'icon':_0x3642d4,'type':i['URL'],..._0x25164a};case i['Dropbox']:return{'icon':_0x3b423c,'type':i['Dropbox'],..._0x25164a};case i['Facebook']:return{'icon':_0x26904e,'type':i['Facebook'],..._0x25164a};case i['GDrive']:return{'icon':_0x1cf962,'type':i['GDrive'],..._0x25164a};case i['GPhotos']:return{'icon':_0x1d0c1f,'type':i['GPhotos'],..._0x25164a};case i['OneDrive']:return{'icon':_0x187d40,'type':i['OneDrive'],..._0x25164a};}});}['_getIntegrationKey'](_0x48167a){switch(_0x48167a){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x29eb97,_0x2bbbaa){const _0x726e8f=this['editor'],_0x50e509=new _0x29eb97(_0x726e8f['locale']),_0x3b7c49=_0x726e8f['commands']['get']('uploadcare');return _0x50e509['bind']('isEnabled')['to'](_0x3b7c49),_0x50e509['on']('execute',()=>{_0x3b7c49['execute'](_0x2bbbaa);}),_0x50e509;}['_createToolbarButton'](_0x3c9dc6){const {locale:_0x3f30b9}=this['editor'],_0x1152be=this['editor']['plugins']['get']('ImageInsertUI'),_0x2fd10b=_0x3c9dc6[0x0],_0x1708b5=this['_createButton'](_0x4005d2,_0x2fd10b['type']);return _0x1708b5['icon']=_0x2fd10b['icon'],_0x1708b5['bind']('label')['to'](_0x1152be,'isImageSelected',_0x739a4b=>_(_0x3f30b9,_0x2fd10b['type'],_0x739a4b?'Replace':'Insert')['text']),_0x1708b5['tooltip']=!0x0,_0x1708b5;}['_createDropdownButtons'](_0x2d588f){const {locale:_0x30a51a}=this['editor'],_0x526c0a=this['editor']['plugins']['get']('ImageInsertUI');return _0x2d588f['map'](_0x6a84f7=>{const _0x5eab31=this['_createButton'](_0x4005d2,_0x6a84f7['type']);return _0x5eab31['withText']=!0x0,_0x5eab31['icon']=_0x6a84f7['icon'],_0x5eab31['bind']('label')['to'](_0x526c0a,'isImageSelected',_0x20b797=>_(_0x30a51a,_0x6a84f7['type'],_0x20b797?'Replace':'Insert')['text']),_0x5eab31;});}['_createMenuBarButtons'](_0x3f3fb6){return _0x3f3fb6['map'](_0x32ddb5=>{const _0x35fe8f=this['_createButton'](_0x2350bd,_0x32ddb5['type']);return _0x35fe8f['icon']=_0x32ddb5['icon'],_0x35fe8f['label']=_0x32ddb5['shortText'],_0x35fe8f;});}}class F extends _0x1c726e{['focusTracker'];['focusCycler'];constructor(_0x21285b){super(_0x21285b),this['focusTracker']=new _0x5aae8c(),this['focusCycler']=new _0x4f27cf({'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(_0x1c4ba2,_0x5cc981){super(_0x1c4ba2),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-'+_0x5cc981}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x2cca7a,_0x206de7){const _0x22c1a2=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3c7c28=>_0x3c7c28<=_0x206de7)['map'](_0x4632d3=>_0x2cca7a['replace'](/\/$/,'')+'/-/resize/'+_0x4632d3+'x/\x20'+_0x4632d3+'w');return{'imageFallbackUrl':_0x2cca7a,'imageSources':[{'srcset':_0x22c1a2['join'](',\x20'),'sizes':'(max-width:\x20'+_0x206de7+'px)\x20100vw,\x20'+_0x206de7+'px','type':'image/webp'}]};}function S(_0x48b897,_0xec3281,_0x5b8765){const _0x1f9782=_0x48b897['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1f9782?parseInt(_0x1f9782[0x1],0xa):_0xec3281,'height':_0x1f9782?parseInt(_0x1f9782[0x2],0xa):_0x5b8765};}function p(_0x526107,_0x6754e3){const _0x2ead01=new(_0x5b3f05())(),_0x53d1ab=_0x526107['plugins']['get']('ImageUtils'),_0x4d43f9=_0x526107['editing']['mapper']['toViewElement'](_0x6754e3),_0x1199dd=_0x53d1ab['findViewImgElement'](_0x4d43f9),_0x24ce20=_0x526107['editing']['view']['domConverter']['viewToDom'](_0x1199dd),_0x2ae70f=_0x6754e3['getAttribute']('width'),_0x12ce5d=_0x6754e3['getAttribute']('height'),_0x4ef07b='image-processing';_0x526107['editing']['view']['change'](_0x4d4ca2=>{_0x4d4ca2['addClass'](_0x4ef07b,_0x4d43f9),_0x4d4ca2['setStyle']('aspect-ratio',_0x2ae70f+'/'+_0x12ce5d,_0x1199dd);}),_0x2ead01['listenTo'](_0x24ce20,'load',()=>{_0x2ead01['stopListening'](_0x24ce20,'load'),_0x526107['editing']['view']['change'](_0x3ec33a=>{_0x3ec33a['removeClass'](_0x4ef07b,_0x4d43f9),_0x3ec33a['removeStyle']('aspect-ratio',_0x1199dd);});});}function G(_0x10d06e){if(Array['isArray'](_0x10d06e)){const _0x48431d=_0x10d06e['map'](G);return _0x666888=>_0x48431d['some'](_0x3e362f=>_0x3e362f(_0x666888));}if('origin'==_0x10d06e){const _0x5715d8=_0x29646b['window']['location']['origin'];return _0x3e2d24=>new URL(_0x3e2d24,_0x29646b['document']['baseURI'])['origin']==_0x5715d8;}return'function'==typeof _0x10d06e?_0x10d06e:_0x10d06e instanceof RegExp?_0x2f4904=>!(!_0x2f4904['match'](_0x10d06e)&&!_0x2f4904['replace'](/^https?:\/\//,'')['match'](_0x10d06e)):()=>!0x1;}function A(_0x2363dc,_0x377608){return _0x592d94(_0x2363dc['target'])['includes'](_0x377608);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x3f8b0f(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x264833,_0xe69575,_0x1b8d8f){super(),this['_editor']=_0x264833,this['_editing']=_0xe69575,this['_dialog']=_0x264833['plugins']['get'](_0x402fe0),this['_api']=_0xe69575['ctxElement']['getAPI'](),this['_type']=_0x1b8d8f,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:_0x243aa3,model:_0x3a5208}=this['_editor'],_0x568e47=_0x3a5208['document']['selection']['getSelectedElement'](),_0x4069c0=_0x568e47&&(_0x568e47['is']('element','imageBlock')||_0x568e47['is']('element','imageInline'));this['_formView']=new x(_0x243aa3,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x53da62,'title':_(_0x243aa3,this['_type'],_0x4069c0?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1cc742['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4855f2=>!A(_0x4855f2,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1e0670}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1e51a4=>{const _0x43da6b=_0x1e0670['length'];for(const _0x14247e of _0x1e0670){const _0x3cc999=_0x14247e===_0x1e0670[_0x43da6b-0x1],{cdnUrl:_0x3da384,fileInfo:_0x5bcd62}=_0x14247e;if(!_0x3da384||!_0x5bcd62)continue;const {width:_0x245a49,height:_0x1db130}=_0x5bcd62['imageInfo'],_0x4ab34e=S(_0x3da384,_0x245a49,_0x1db130),_0x35ac0b=C(_0x3da384,_0x4ab34e['width']),_0x500d70={'id':_0x5bcd62['uuid'],'type':'image','attributes':{'imageDimension':_0x4ab34e,..._0x35ac0b}};this['_insertAsset'](_0x500d70,_0x3cc999,_0x1e51a4);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x885fff=>{'idle'===_0x885fff['detail']['status']&&!_0x885fff['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3f743f,_0x4d30ec,_0x4c377e){const _0x3619de=this['_editor']['model']['document']['selection'],_0x294b48=_0x3619de['getSelectedElement'](),_0x35d1c6=!(!_0x294b48||!_0x294b48['is']('element','imageInline'));_0x4c377e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3f743f,_0x35d1c6),_0x4d30ec||_0x4c377e['setSelection'](_0x3619de['getLastPosition']());}['_insertImage'](_0x229941,_0x38aac6){const _0x34d224=this['_editor'],{imageDimension:_0xe6e299,imageFallbackUrl:_0x4228f3,imageSources:_0x10f195}=_0x229941['attributes'];_0x34d224['execute']('insertImage',{'imageType':_0x38aac6?'imageInline':null,'source':{'uploadcareImageId':_0x229941['id'],'src':_0x4228f3,'sources':_0x10f195,..._0xe6e299}});}}class w extends _0x3b0801{['_editing'];['_controller']=null;static get['requires'](){return[_0x402fe0,o];}constructor(_0x3676a3){super(_0x3676a3),this['_editing']=_0x3676a3['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x414b60){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x414b60);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x62903e,..._0x38f99b}){return _0x2100c5(_0x62903e,_0x38f99b);}static['getInfo'](_0x2aff58,_0x461927){return _0x448894(_0x2aff58,_0x461927);}}class f extends _0x1b064f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x429082,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1dc03c=this['editor'];if(!!!_0x1dc03c['config']['get']('uploadcare'))return;_0x1dc03c['plugins']['get'](_0x429082)['createUploadAdapter']=_0x2dd9bd=>new k(_0x2dd9bd,_0x1dc03c),_0x1dc03c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2c18e8,{imageElement:_0x224f72,data:_0x4c278c})=>{_0x1dc03c['model']['change'](_0x857fb2=>{_0x857fb2['setAttribute']('uploadcareImageId',_0x4c278c['uploadcareImageId'],_0x224f72);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xab0493,_0x1c1790){this['loader']=_0xab0493,this['editor']=_0x1c1790,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x543c92=await this['loader']['file'];return j['upload']({'file':_0x543c92,'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':_0x2247c1=>{_0x2247c1&&_0x2247c1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2247c1['value']);}})['then'](async _0xb1046a=>{const {imageFallbackUrl:_0x1104d9,imageSources:_0x1c76e1}=C(_0xb1046a['cdnUrl'],_0xb1046a['imageInfo']['width']);return{'uploadcareImageId':_0xb1046a['uuid'],'default':_0x1104d9,'sources':_0x1c76e1};})['catch'](()=>{const _0x1470ec=t('Cannot\x20upload\x20file:')+('\x20'+_0x543c92['name']+'.');return Promise['reject'](_0x1470ec);});}['abort'](){this['controller']['abort']();}}class o extends _0x1b064f{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x402fe0];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x4afed7){super(_0x4afed7),this['ucContextId']=_0x2d292f();}['init'](){const _0x724c8c=this['editor'];_0x724c8c['commands']['add']('uploadcare',new w(_0x724c8c));}['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 _0x3cf56b=_0x29646b['document']['querySelector']('input[uploadcare-file-input]');_0x3cf56b&&_0x3cf56b['remove']();}),async function(_0x1f0819){const _0x2a15c9=_0x530cf9([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]),_0x5794d0=0x535f8c3a,_0x3c4002=0x5358f122^_0x5794d0,_0x42982c=window[_0x530cf9([0x44,0x61,0x74,0x65])][_0x530cf9([0x6e,0x6f,0x77])](),_0x5a17d7=_0x1f0819[_0x530cf9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1b4044=new window[(_0x530cf9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc02823=>{_0x5a17d7[_0x530cf9([0x6f,0x6e,0x63,0x65])](_0x530cf9([0x72,0x65,0x61,0x64,0x79]),_0xc02823);}),_0x4ff932={[_0x530cf9([0x6b,0x74,0x79])]:_0x530cf9([0x45,0x43]),[_0x530cf9([0x75,0x73,0x65])]:_0x530cf9([0x73,0x69,0x67]),[_0x530cf9([0x63,0x72,0x76])]:_0x530cf9([0x50,0x2d,0x32,0x35,0x36]),[_0x530cf9([0x78])]:_0x530cf9([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]),[_0x530cf9([0x79])]:_0x530cf9([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]),[_0x530cf9([0x61,0x6c,0x67])]:_0x530cf9([0x45,0x53,0x32,0x35,0x36])},_0x3ba3c0=_0x5a17d7[_0x530cf9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x530cf9([0x67,0x65,0x74])](_0x530cf9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5db71c(){let _0xd57f2b,_0x3b1049=null,_0xa0aa7d=null;try{if(_0x3ba3c0==_0x530cf9([0x47,0x50,0x4c]))return _0x530cf9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xd57f2b=_0x407fc0(),!_0xd57f2b)return _0x530cf9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xd57f2b[_0x530cf9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xa0aa7d=_0x3784b8(_0xd57f2b[_0x530cf9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xd57f2b[_0x530cf9([0x6a,0x74,0x69])])),await _0x5ae61c()?_0xb510aa()?_0x163a8b()?_0x530cf9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xcd3fd4()?(_0xd57f2b[_0x530cf9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x530cf9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b1049=_0x575d1e(_0x530cf9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xd57f2b[_0x530cf9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x530cf9([0x74,0x72,0x69,0x61,0x6c])&&(_0x3b1049=_0x575d1e(_0x530cf9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x40be61()):_0x530cf9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x530cf9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x530cf9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x530cf9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x163a8b(){const _0x2fb58d=[_0x530cf9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x530cf9([0x74,0x72,0x69,0x61,0x6c])][_0x530cf9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd57f2b[_0x530cf9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x42982c/0x3e8:0xe10*_0x3c4002;return _0xd57f2b[_0x530cf9([0x65,0x78,0x70])]<_0x2fb58d;}function _0xb510aa(){const _0x64edef=_0xd57f2b[_0x530cf9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x64edef&&(!!_0x64edef[_0x530cf9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x530cf9([0x2a]))||!!_0x64edef[_0x530cf9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x530cf9([0x55,0x50,0x4c,0x43])));}function _0xcd3fd4(){const _0x4d3a36=_0xd57f2b[_0x530cf9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4d3a36||0x0==_0x4d3a36[_0x530cf9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x37ba6f}=new URL(window[_0x530cf9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4d3a36[_0x530cf9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37ba6f))return!0x0;const _0x3496af=_0x37ba6f[_0x530cf9([0x73,0x70,0x6c,0x69,0x74])](_0x530cf9([0x2e]));return _0x4d3a36[_0x530cf9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2dbc3a=>_0x2dbc3a[_0x530cf9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x530cf9([0x2a])))[_0x530cf9([0x6d,0x61,0x70])](_0x1c5d0a=>_0x1c5d0a[_0x530cf9([0x73,0x70,0x6c,0x69,0x74])](_0x530cf9([0x2e])))[_0x530cf9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x65c3c8=>_0x65c3c8[_0x530cf9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3496af[_0x530cf9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x530cf9([0x6d,0x61,0x70])](_0x147992=>Array(_0x3496af[_0x530cf9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x147992[_0x530cf9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x530cf9([0x66,0x69,0x6c,0x6c])](_0x147992[0x0]===_0x530cf9([0x2a])?_0x530cf9([0x2a]):'')[_0x530cf9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x147992))[_0x530cf9([0x73,0x6f,0x6d,0x65])](_0x24a478=>_0x3496af[_0x530cf9([0x65,0x76,0x65,0x72,0x79])]((_0x45e346,_0x50861b)=>_0x24a478[_0x50861b]===_0x45e346||_0x24a478[_0x50861b]===_0x530cf9([0x2a])));}function _0x40be61(){return _0x3b1049&&_0xa0aa7d?new window[(_0x530cf9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50e022,_0x4443ba)=>{_0x3b1049[_0x530cf9([0x74,0x68,0x65,0x6e])](_0x50e022,_0x4443ba),_0xa0aa7d[_0x530cf9([0x74,0x68,0x65,0x6e])](_0xabac62=>{_0xabac62!=_0x530cf9([0x56,0x61,0x6c,0x69,0x64])&&_0x50e022(_0xabac62);},_0x4443ba);}):_0x3b1049||_0xa0aa7d||_0x530cf9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3784b8(_0x3bbe8,_0x1f34b4){return new window[(_0x530cf9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c9d06=>{if(_0x2ea730())return _0x3c9d06(_0x530cf9([0x56,0x61,0x6c,0x69,0x64]));_0x1b4310(),_0x5a17d7[_0x530cf9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x530cf9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x58f4ae=!0x1;const _0xa26299=_0x2d292f();function _0xa3debe(_0x548b73){return!!_0x548b73&&(typeof _0x548b73===_0x530cf9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x548b73===_0x530cf9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x548b73[_0x530cf9([0x74,0x68,0x65,0x6e])]===_0x530cf9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x548b73[_0x530cf9([0x63,0x61,0x74,0x63,0x68])]===_0x530cf9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x32ab32(_0x1d63dd){_0x2b67c2(_0x1d63dd)[_0x530cf9([0x74,0x68,0x65,0x6e])](_0x1da345=>{if(!_0x1da345||_0x1da345[_0x530cf9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x530cf9([0x6f,0x6b]))return _0x530cf9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e7c5a(_0x44c843(_0xa26299+_0x1f34b4))!=_0x1da345[_0x530cf9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x530cf9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x530cf9([0x56,0x61,0x6c,0x69,0x64]);})[_0x530cf9([0x74,0x68,0x65,0x6e])](_0x5f3950=>(_0x5e695b(),_0x5f3950),()=>{const _0x4b173d=_0x3e60fb();return null==_0x4b173d?(_0x5e695b(),_0x530cf9([0x56,0x61,0x6c,0x69,0x64])):_0x530cf9(_0x42982c-_0x4b173d>(0x7753083a^_0x5794d0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x530cf9([0x74,0x68,0x65,0x6e])](_0x3c9d06)[_0x530cf9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3c9d06(_0x530cf9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2df549=0x536962ba^_0x5794d0;function _0x5e695b(){const _0x1a9c36=_0x530cf9([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e7c5a(_0x44c843(_0x3bbe8)),_0x27e36c=_0x15cc16(_0x4e7c5a(window[_0x530cf9([0x4d,0x61,0x74,0x68])][_0x530cf9([0x63,0x65,0x69,0x6c])](_0x42982c/_0x2df549)));window[_0x530cf9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x530cf9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a9c36,_0x27e36c);}function _0x3e60fb(){const _0x37b79e=_0x530cf9([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e7c5a(_0x44c843(_0x3bbe8)),_0x50e85d=window[_0x530cf9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x530cf9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37b79e);return _0x50e85d?window[_0x530cf9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15cc16(_0x50e85d),0x10)*_0x2df549:null;}function _0x2b67c2(_0x1bbaf3){return new window[(_0x530cf9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d20d3,_0x3d5f25)=>{_0x1bbaf3[_0x530cf9([0x74,0x68,0x65,0x6e])](_0x3d20d3,_0x3d5f25),window[_0x530cf9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d5f25,0x535e58fa^_0x5794d0);});}}_0x5a17d7[_0x530cf9([0x6f,0x6e])](_0x530cf9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x403340,_0x4b680a)=>{if(_0x4b680a[0x0]!=_0x3bbe8)return _0x3c9d06(_0x530cf9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b680a[0x1]={..._0x4b680a[0x1],[_0x530cf9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa26299};},{[_0x530cf9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x530cf9([0x68,0x69,0x67,0x68])}),_0x5a17d7[_0x530cf9([0x6f,0x6e])](_0x530cf9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x291158=>{_0xa3debe(_0x291158[_0x530cf9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x58f4ae=!0x0,_0x32ab32(_0x291158[_0x530cf9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x530cf9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x530cf9([0x6c,0x6f,0x77])}),_0x1b4044[_0x530cf9([0x74,0x68,0x65,0x6e])](()=>{_0x58f4ae||_0x3c9d06(_0x530cf9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2ea730(){return _0x5a17d7[_0x530cf9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x530cf9([0x76,0x69,0x65,0x77])][_0x530cf9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x530cf9([0x61,0x75,0x74,0x6f]);}function _0x1b4310(){_0x5a17d7[_0x530cf9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x530cf9([0x76,0x69,0x65,0x77])][_0x530cf9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x530cf9([0x61,0x75,0x74,0x6f]);}}function _0x575d1e(_0x475085){const _0x23592a=[new window[(_0x530cf9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb70064=>setTimeout(_0xb70064,0x5356b2f6^_0x5794d0)),_0x1b4044[_0x530cf9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x530cf9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ae239=>{let _0x51de63=0x0;_0x5a17d7[_0x530cf9([0x6d,0x6f,0x64,0x65,0x6c])][_0x530cf9([0x6f,0x6e])](_0x530cf9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x231797,_0xa175f2)=>{_0xa175f2[0x0][_0x530cf9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x51de63++,_0x51de63==(0x535f89d2^_0x5794d0)&&(_0x4ae239(),_0x231797[_0x530cf9([0x6f,0x66,0x66])]());});}))];return window[_0x530cf9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x530cf9([0x72,0x61,0x63,0x65])](_0x23592a)[_0x530cf9([0x74,0x68,0x65,0x6e])](()=>_0x475085);}async function _0x3977f2(){await _0x1b4044,_0x5a17d7[_0x530cf9([0x6d,0x6f,0x64,0x65,0x6c])][_0x530cf9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5539a3,_0x5a17d7[_0x530cf9([0x6d,0x6f,0x64,0x65,0x6c])][_0x530cf9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5539a3,_0x5a17d7[_0x530cf9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x530cf9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35cfae(_0x3657f7){const _0x3a2ac3=_0x50ff26();_0x5a17d7[_0x3a2ac3]=_0x530cf9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3657f7,_0x3657f7!=_0x530cf9([0x56,0x61,0x6c,0x69,0x64])&&_0x3977f2();}function _0x50ff26(){const _0x47ba32=window[_0x530cf9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x530cf9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x530cf9([0x6e,0x6f,0x77])]())[_0x530cf9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x530cf9([0x2e]),'');let _0x43680b=_0x530cf9([0x68]);for(let _0x2d0906=0x0;_0x2d0906<_0x47ba32[_0x530cf9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d0906+=0x2){let _0x13b0b1=window[_0x530cf9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47ba32[_0x530cf9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d0906,_0x2d0906+0x2));_0x13b0b1>=_0x2a15c9[_0x530cf9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x13b0b1-=_0x2a15c9[_0x530cf9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x43680b+=_0x2a15c9[_0x13b0b1];}return _0x43680b;}function _0x407fc0(){const _0x4fe51c=_0x3ba3c0[_0x530cf9([0x73,0x70,0x6c,0x69,0x74])](_0x530cf9([0x2e]));if(0x3!=_0x4fe51c[_0x530cf9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x289280(_0x4fe51c[0x1]);function _0x289280(_0x31381a){const _0x2bc856=_0x3c5fc2(_0x31381a);return _0x2bc856&&_0x1279d5()?_0x2bc856:null;function _0x1279d5(){const _0x5c2131=_0x2bc856[_0x530cf9([0x6a,0x74,0x69])],_0x46fb03=window[_0x530cf9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c2131[_0x530cf9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c2131[_0x530cf9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x113632={..._0x2bc856,[_0x530cf9([0x6a,0x74,0x69])]:_0x5c2131[_0x530cf9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5c2131[_0x530cf9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x113632[_0x530cf9([0x76,0x63])],_0x44c843(_0x113632)==_0x46fb03;}}}async function _0x5ae61c(){let _0x46e518=!0x0;try{const _0x17ae89=_0x3ba3c0[_0x530cf9([0x73,0x70,0x6c,0x69,0x74])](_0x530cf9([0x2e])),[_0x274c88,_0x44b7cf,_0x117885]=_0x17ae89;return _0x5889b0(_0x274c88),await _0x5900cf(_0x274c88,_0x44b7cf,_0x117885),_0x46e518;}catch{return!0x1;}function _0x5889b0(_0x260f21){const _0x28d7d4=_0x3c5fc2(_0x260f21);_0x28d7d4&&_0x28d7d4[_0x530cf9([0x61,0x6c,0x67])]==_0x530cf9([0x45,0x53,0x32,0x35,0x36])||(_0x46e518=!0x1);}async function _0x5900cf(_0x5d72b7,_0xaf278a,_0x412b07){const _0x48639d=window[_0x530cf9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x530cf9([0x66,0x72,0x6f,0x6d])](_0xb9cf5e(_0x412b07),_0x47c854=>_0x47c854[_0x530cf9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x520eca=new window[(_0x530cf9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x530cf9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5d72b7+_0x530cf9([0x2e])+_0xaf278a),_0x3880cb=window[_0x530cf9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x530cf9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3880cb)return;const _0x51facb=await _0x3880cb[_0x530cf9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x530cf9([0x6a,0x77,0x6b]),_0x4ff932,{[_0x530cf9([0x6e,0x61,0x6d,0x65])]:_0x530cf9([0x45,0x43,0x44,0x53,0x41]),[_0x530cf9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x530cf9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x530cf9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3880cb[_0x530cf9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x530cf9([0x6e,0x61,0x6d,0x65])]:_0x530cf9([0x45,0x43,0x44,0x53,0x41]),[_0x530cf9([0x68,0x61,0x73,0x68])]:{[_0x530cf9([0x6e,0x61,0x6d,0x65])]:_0x530cf9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51facb,_0x48639d,_0x520eca)||(_0x46e518=!0x1);}}function _0x3c5fc2(_0x28237b){return _0x28237b[_0x530cf9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x530cf9([0x65,0x79]))?JSON[_0x530cf9([0x70,0x61,0x72,0x73,0x65])](_0xb9cf5e(_0x28237b)):null;}function _0xb9cf5e(_0x458a25){return window[_0x530cf9([0x61,0x74,0x6f,0x62])](_0x458a25[_0x530cf9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x530cf9([0x2b]))[_0x530cf9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x530cf9([0x2f])));}function _0x44c843(_0x490370){let _0x5bd6a6=0x1505;function _0x252b46(_0x364117){for(let _0x308a8b=0x0;_0x308a8b<_0x364117[_0x530cf9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x308a8b++){const _0xb59516=_0x364117[_0x530cf9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x308a8b);_0x5bd6a6=(_0x5bd6a6<<0x5)+_0x5bd6a6+_0xb59516,_0x5bd6a6&=_0x5bd6a6;}}function _0x4bf5d2(_0x27f404){Array[_0x530cf9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x27f404)?_0x27f404[_0x530cf9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4bf5d2):_0x27f404&&typeof _0x27f404==_0x530cf9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x530cf9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x27f404)[_0x530cf9([0x73,0x6f,0x72,0x74])]()[_0x530cf9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x56c071,_0x33943f])=>{_0x252b46(_0x56c071),_0x4bf5d2(_0x33943f);}):_0x252b46(window[_0x530cf9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x27f404));}return _0x4bf5d2(_0x490370),_0x5bd6a6>>>0x0;}function _0x4e7c5a(_0x776f9c){return _0x776f9c[_0x530cf9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x530cf9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x530cf9([0x30]));}function _0x15cc16(_0x1be656){return _0x1be656[_0x530cf9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x530cf9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x530cf9([0x6a,0x6f,0x69,0x6e])]('');}function _0x5539a3(){}function _0x530cf9(_0x2b66e8){return _0x2b66e8['map'](_0x2e2845=>String['fromCharCode'](_0x2e2845))['join']('');}_0x35cfae(await _0x5db71c());}(this);}['_initSchema'](){const _0x387e77=this['editor']['model']['schema'];_0x387e77['isRegistered']('imageBlock')&&_0x387e77['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x387e77['isRegistered']('imageInline')&&_0x387e77['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xea0349=this['editor'];_0xea0349['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xea0349['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x141ccb=>_0x141ccb['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x9b4c40=_0xea0349['commands']['get']('replaceImageSource');_0x9b4c40&&this['listenTo'](_0x9b4c40,'cleanupImage',(_0x21132a,[_0x3c2a61,_0x119259])=>{_0x3c2a61['removeAttribute']('uploadcareImageId',_0x119259);});}['_initConfig'](){const _0x4cdd09=this['editor']['config']['get']('uploadcare.uploader')||{},_0x229c97=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x39b067(_0x29646b['document'],'uc-config',{..._0x4cdd09,'pubkey':_0x229c97,'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']=_0xa295f5=>{if('closeMax'==_0xa295f5)return'#uc-icon-arrow-down';},_0x29646b['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x39b067(_0x29646b['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x29646b['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x310695=this['editor']['commands']['get']('insertImage');_0x310695&&this['listenTo'](_0x310695,'execute',()=>{const _0x11be6d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x11be6d&&_0x11be6d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x11be6d);});});const _0x59219b=this['editor']['commands']['get']('uploadcareImageReplace');_0x59219b&&this['listenTo'](_0x59219b,'execute',()=>{const _0x27bbb9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x27bbb9&&_0x27bbb9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x27bbb9);});});}}class tt extends _0x1b064f{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2bdbf5){super(_0x2bdbf5),_0x2bdbf5['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x25d53f['defineComponents'](_0x25d53f),this['_defineLocale']();}['_defineLocale'](){const _0x25d135=this['editor']['config']['get']('uploadcare.locale'),_0x44e404=this['editor']['locale']['contentLanguage'];_0x25d135&&_0x25d53f['defineLocale'](_0x44e404,_0x25d135);}}class ii extends _0x1c726e{constructor(_0x329065){super(_0x329065);const t=_0x329065['t'],_0x2115e3=this['bindTemplate'],_0x34a0e3=new _0x3f9bcd();_0x34a0e3['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':[_0x34a0e3,{'text':_0x2115e3['to']('imageUploadProgress',_0x21286c=>t('Loading\x20image...')+'\x20('+(_0x21286c||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 _0x1c726e{constructor(_0x23c795){super(_0x23c795);const t=_0x23c795['t'];this['set']('errorType',null);const _0x3dd299=new _0x4005d2(_0x23c795);_0x3dd299['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3dd299['withText']=!0x0,_0x3dd299['class']='ck-button-action',_0x3dd299['on']('execute',()=>{this['fire']('retry');}),_0x3dd299['bind']('isVisible')['to'](this,'errorType',_0x6496a4=>'NotFound'!==_0x6496a4);const _0x54288b=new _0x4b8abe();_0x54288b['content']=_0x3615d0,_0x54288b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1f0f60=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':[_0x54288b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1f0f60['to']('errorType',_0x564436=>t('NotFound'!==_0x564436?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3dd299]},{'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 _0x1c726e{constructor(_0x1a08a5,_0x34b61d){super(_0x1a08a5);const _0x2e0bbf=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x34b61d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2e0bbf['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2b8419,_0x32649d,_0x1c4cd5){super(_0x2b8419),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2b8419),this['_errorView']=new ti(_0x2b8419),this['_editingView']=new ei(_0x2b8419,_0x1c4cd5),this['_focusableView']=new _0x1c726e(_0x2b8419),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x32649d),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'],_0x15df1f=>{this['_addUploadcareImageEditorListeners'](_0x15df1f);});}),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'](_0x236aba,_0x59ff8d){const _0x2aa65a='uc-cloud-image-editor',_0x3bc4fc=_0x236aba['querySelector'](_0x2aa65a);if(_0x3bc4fc)return _0x59ff8d(_0x3bc4fc);const _0x83805c=new MutationObserver(_0x4bc54f=>{const _0x1327d9=_0x4bc54f['filter'](_0x333ff1=>_0x333ff1['target']===_0x236aba&&_0x333ff1['addedNodes']['length']>0x0&&_0x333ff1['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2aa65a);_0x1327d9['length']&&(_0x83805c['disconnect'](),_0x59ff8d(_0x1327d9[0x0]['addedNodes'][0x0]));});_0x83805c['observe'](_0x236aba,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1fd566){_0x1fd566['addEventListener']('apply',_0x379aaa=>{this['fire']('apply',{'imageSrc':_0x379aaa['detail']['cdnUrl']});}),_0x1fd566['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3f8b0f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5e9937,_0xd7e481,_0x10545b){super(),this['_editor']=_0x5e9937,this['_dialog']=_0xd7e481,this['_imageElement']=_0x10545b,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 _0x32c389=this['_imageElement'],_0x554860=_0x32c389['getAttribute']('uploadcareImageId'),_0x5aa6fa=_0x32c389['getAttribute']('src');if(_0x554860)await this['_loadImageInfo'](_0x554860,_0x5aa6fa);else{if(this['_imageCache']['has'](_0x5aa6fa)){const _0x3f40a7=this['_imageCache']['get'](_0x5aa6fa);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f40a7['url'],this['imageDimension']=_0x3f40a7['dimension'],this['imageId']=_0x3f40a7['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x749cfd}=this['_editor'],t=_0x749cfd['t'],_0x4ae08b=new X(_0x749cfd,this['imageStatus'],this['_attributes']);_0x4ae08b['bind']('status')['to'](this,'imageStatus'),_0x4ae08b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4ae08b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4ae08b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4ae08b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5aed85,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4ae08b,'position':_0x1cc742['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4ae08b['focus']();},'onHide':()=>{_0x4ae08b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x491c3a=>!A(_0x491c3a,_0x4ae08b['element'])}});}['_loadImageInfo'](_0x5babf4,_0xa9c7f){return j['getInfo'](_0x5babf4,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x189690=>{const {width:_0x258271,height:_0x310fbb}=_0x189690['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xa9c7f,this['imageDimension']={'width':_0x258271,'height':_0x310fbb},this['imageId']=_0x5babf4;})['catch'](_0xcaacce=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xcaacce['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x52ffd9,_0x2a3953){return this['_getImageAsFile'](_0x52ffd9)['then'](_0x24da41=>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':_0x2a3953['signal'],'file':_0x24da41,'onProgress':_0x3ba274=>{_0x3ba274&&_0x3ba274['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3ba274['value']));}}))['then'](_0x13d7dc=>{const {width:_0x2d5545,height:_0x2d0bf9}=_0x13d7dc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x13d7dc['cdnUrl'],this['imageDimension']={'width':_0x2d5545,'height':_0x2d0bf9},this['imageId']=_0x13d7dc['uuid'],this['imageUploadProgress']=null;const _0x3ba557=_0x52ffd9['getAttribute']('src');this['_imageCache']['set'](_0x3ba557,{'id':_0x13d7dc['uuid'],'url':_0x13d7dc['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x533b3f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x533b3f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5dfeac,_0x346707){_0x5dfeac['on']('apply',(_0x2d789d,_0x24d0c7)=>{this['_replaceImage'](_0x346707,_0x24d0c7['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5dfeac['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5dfeac['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1b3d6f,_0x269873,_0x29751a){const _0x4503bc=this['_editor'],{width:_0x2124cb,height:_0x3b9285}=S(_0x269873,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x26ed9e,imageSources:_0x44ed09}=C(_0x269873,_0x2124cb);_0x4503bc['model']['change'](_0x5cf57=>{if('$graveyard'===_0x1b3d6f['root']['rootName']){_0x4503bc['execute']('insertImage',{'imageType':_0x1b3d6f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1b3d6f['getAttributes']()),'uploadcareImageId':_0x29751a,'src':_0x26ed9e,'sources':_0x44ed09,'width':_0x2124cb,'height':_0x3b9285}});const _0xc06675=_0x1b3d6f['getChildren']();_0x1b3d6f=_0x4503bc['model']['document']['selection']['getSelectedElement']();for(const _0x152f60 of _0xc06675)_0x5cf57['append'](_0x5cf57['cloneElement'](_0x152f60),_0x1b3d6f);}else _0x5cf57['setSelection'](_0x1b3d6f,'on'),_0x4503bc['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1b3d6f['getAttributes']()),'uploadcareImageId':_0x29751a,'src':_0x26ed9e,'sources':_0x44ed09,'width':_0x2124cb,'height':_0x3b9285},_0x1b3d6f);_0x5cf57['setSelection'](_0x1b3d6f,'on');});}async['_getImageAsFile'](_0x44ccc1){const _0x2ebe74=_0x29646b['window'],_0xd0d70f=_0x29646b['document']['location']['href'],_0x246764=new _0x2ebe74['URL'](_0x44ccc1['getAttribute']('src'),_0xd0d70f);if('data:'===_0x246764['protocol']){const _0x1d3166=_0x246764['href']['split'](','),_0x3fa9ba=_0x1d3166[0x0]['match'](/:(.*?);/)[0x1],_0x300faa=_0x3fa9ba['split']('/')[0x1],_0xfe33a2=_0x2ebe74['atob'](_0x1d3166[_0x1d3166['length']-0x1]);let _0x22f150=_0xfe33a2['length'];const _0xeb4c29=new _0x2ebe74['Uint8Array'](_0x22f150);for(;_0x22f150--;)_0xeb4c29[_0x22f150]=_0xfe33a2['charCodeAt'](_0x22f150);return new _0x2ebe74['File']([_0xeb4c29],'image.'+_0x300faa,{'type':_0x3fa9ba});}const _0x44e657=_0x246764['href']['split']('/'),_0x4e9909=_0x44e657[_0x44e657['length']-0x1],_0x3ce11b=_0x4e9909['split']('.')[0x1];return _0x2ebe74['fetch'](_0x246764['href'])['then'](_0x3fade4=>_0x3fade4['clone']()['blob']())['then'](_0x3f2b79=>new _0x2ebe74['File']([_0x3f2b79],_0x4e9909,{'type':'image/'+_0x3ce11b}));}}class O extends _0x3b0801{['imageEditController'];static get['requires'](){return[_0x402fe0];}['_isEditable'];constructor(_0x31cfb1){super(_0x31cfb1),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xbbf0b5){const _0x4ee14e=G(_0xbbf0b5);return _0x48a158=>!(!_0x48a158||!_0x48a158['is']('element','imageBlock')&&!_0x48a158['is']('element','imageInline'))&&(!!_0x48a158['hasAttribute']('uploadcareImageId')||!!_0x48a158['hasAttribute']('src')&&_0x4ee14e(_0x48a158['getAttribute']('src')));}(_0x31cfb1['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4f0675=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4f0675);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3914f6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3914f6&&(_0x3914f6['is']('element','imageBlock')||_0x3914f6['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x402fe0),_0x3914f6),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x3b0801{['refresh'](){const _0x2185cf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2185cf&&(_0x2185cf['is']('element','imageBlock')||_0x2185cf['is']('element','imageInline')));}['execute'](_0x8f826){const _0xdbf654=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2f830c=>{_0x2f830c['setAttributes'](_0x8f826,_0xdbf654),_0x2f830c['removeAttribute']('srcset',_0xdbf654),_0x2f830c['removeAttribute']('sizes',_0xdbf654);});}}class m extends _0x1b064f{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x246b07,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1a68b8}=this;_0x1a68b8['commands']['add']('uploadcareImageEdit',new O(_0x1a68b8)),_0x1a68b8['commands']['add']('uploadcareImageReplace',new R(_0x1a68b8));}}class g extends _0x1b064f{['_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 _0x2cad89=this['editor'];_0x2cad89['ui']['componentFactory']['add']('uploadcareImageEdit',_0x307628=>{const _0x4ed140=_0x2cad89['commands']['get']('uploadcareImageEdit'),_0x4476f8=new _0x4005d2(_0x307628),t=_0x307628['t'];return _0x4476f8['set']({'icon':_0x5aed85,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4476f8['bind']('isEnabled')['to'](_0x4ed140),_0x4476f8['bind']('isOn')['to'](_0x4ed140,'isActive'),this['listenTo'](_0x4476f8,'execute',()=>{_0x2cad89['execute']('uploadcareImageEdit'),_0x2cad89['editing']['view']['focus']();}),_0x4476f8;}),this['_initConfig']();}['_initConfig'](){const _0x3ca50b=_0x39b067(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3ca50b),this['listenTo'](this['editor'],'destroy',()=>{_0x3ca50b['remove']();});}}class et extends _0x1b064f{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};
|
|
23
|
+
import{Plugin as _0x362f46,Command as _0xfa50f7}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xc5158c,IconGooglePhotos as _0x5ced3a,IconGoogleDrive as _0x23e24b,IconFacebook as _0x3c9f15,IconDropbox as _0x41448c,IconUploadcareLink as _0x4c2bdd,IconUploadcareImageUpload as _0x353585,IconError as _0x10bd9d,IconUploadcareImageEdit as _0x47bc38}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xcf4398,MenuBarMenuListItemButtonView as _0x1d2eca,View as _0x5da087,FocusCycler as _0x4ddf12,Dialog as _0x4f5e1e,DialogViewPosition as _0x1c3136,SpinnerView as _0x4ef18d,IconView as _0x153b50,Notification as _0x50f55f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1f5c76,DomEmitterMixin as _0x5b9074,global as _0x1307e7,getAncestors as _0x3afe0e,ObservableMixin as _0xc99526,uid as _0x2998cf,createElement as _0x1cc55d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x33e9b3}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x9c5527,info as _0x32a495}from'@uploadcare/upload-client';import*as _0x39f00e from'@uploadcare/file-uploader';var i=function(_0x4518e4){return _0x4518e4['Local']='local',_0x4518e4['URL']='url',_0x4518e4['Dropbox']='dropbox',_0x4518e4['GDrive']='gdrive',_0x4518e4['Facebook']='facebook',_0x4518e4['GPhotos']='gphotos',_0x4518e4['OneDrive']='onedrive',_0x4518e4;}({});function _(_0x17f7fb,_0x75c758,_0x11e5c4){const t=_0x17f7fb['t'],_0x4d81e9=_0x17f7fb['t'];switch(_0x75c758){case i['Local']:return{'text':_0x4d81e9('Insert'===_0x11e5c4?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4d81e9('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x11e5c4?_0x4d81e9('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4d81e9('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x11e5c4?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x11e5c4?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x11e5c4?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x11e5c4?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x11e5c4?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x75c758;}}class e extends _0x362f46{['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 _0x58c848=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3d04eb;for(const _0x4a7073 in _0x58c848){const _0x3ea179=_0x4a7073,_0xda4ba9=_0x58c848[_0x3ea179];if('uploadcareLicenseKeyValid'==_0xda4ba9||'uploadcareLicenseKeyInvalid'==_0xda4ba9||'uploadcareLicenseKeyExpired'==_0xda4ba9||'uploadcareLicenseKeyDomainLimit'==_0xda4ba9||'uploadcareLicenseKeyNotAllowed'==_0xda4ba9||'uploadcareLicenseKeyEvaluationLimit'==_0xda4ba9||'uploadcareLicenseKeyTrialLimit'==_0xda4ba9||'uploadcareLicenseKeyUsageLimit'==_0xda4ba9){delete _0x58c848[_0x3ea179],_0x3d04eb=_0xda4ba9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3d04eb&&_0x58c848['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3d04eb&&_0x58c848['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3d04eb&&_0x58c848['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3d04eb&&_0x58c848['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3d04eb&&_0x58c848['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3d04eb&&_0x58c848['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3d04eb&&_0x58c848['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xbf7350}=this,_0x283f1c=_0xbf7350['commands']['get']('uploadcare');if(!_0x283f1c)return;const _0x5a09b6=this['_normalizeConfigSourceList'](_0xbf7350['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x39322a,_0x1bb02e)=>{const _0x371043=this['_getIntegrationKey'](_0x1bb02e['type']);return _0x39322a[_0x371043]||(_0x39322a[_0x371043]=[]),_0x39322a[_0x371043]['push'](_0x1bb02e),_0x39322a;},{});_0xbf7350['plugins']['has']('ImageInsertUI')&&_0xbf7350['commands']['get']('uploadcare')&&Object['entries'](_0x5a09b6)['forEach'](([_0x17dc8a,_0x6c3992])=>{_0xbf7350['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x17dc8a,'observable':()=>_0x283f1c,'buttonViewCreator':()=>this['_createToolbarButton'](_0x6c3992),'formViewCreator':()=>this['_createDropdownButtons'](_0x6c3992),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x6c3992),'override':'assetManager'!==_0x17dc8a});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x20b502){const {locale:_0x50d6a1}=this['editor'];return _0x20b502['map'](_0x5f35cd=>{const _0x3730bd=_(_0x50d6a1,_0x5f35cd,'Insert');switch(_0x5f35cd){case i['Local']:return{'icon':_0x353585,'type':i['Local'],..._0x3730bd};case i['URL']:return{'icon':_0x4c2bdd,'type':i['URL'],..._0x3730bd};case i['Dropbox']:return{'icon':_0x41448c,'type':i['Dropbox'],..._0x3730bd};case i['Facebook']:return{'icon':_0x3c9f15,'type':i['Facebook'],..._0x3730bd};case i['GDrive']:return{'icon':_0x23e24b,'type':i['GDrive'],..._0x3730bd};case i['GPhotos']:return{'icon':_0x5ced3a,'type':i['GPhotos'],..._0x3730bd};case i['OneDrive']:return{'icon':_0xc5158c,'type':i['OneDrive'],..._0x3730bd};}});}['_getIntegrationKey'](_0x5d4e97){switch(_0x5d4e97){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x445c81,_0x888a4b){const _0x56224a=this['editor'],_0x2d4191=new _0x445c81(_0x56224a['locale']),_0x1fbc86=_0x56224a['commands']['get']('uploadcare');return _0x2d4191['bind']('isEnabled')['to'](_0x1fbc86),_0x2d4191['on']('execute',()=>{_0x1fbc86['execute'](_0x888a4b);}),_0x2d4191;}['_createToolbarButton'](_0x315bc0){const {locale:_0x4f3d1f}=this['editor'],_0x3aae4d=this['editor']['plugins']['get']('ImageInsertUI'),_0x1f7fbe=_0x315bc0[0x0],_0x16cf13=this['_createButton'](_0xcf4398,_0x1f7fbe['type']);return _0x16cf13['icon']=_0x1f7fbe['icon'],_0x16cf13['bind']('label')['to'](_0x3aae4d,'isImageSelected',_0x386454=>_(_0x4f3d1f,_0x1f7fbe['type'],_0x386454?'Replace':'Insert')['text']),_0x16cf13['tooltip']=!0x0,_0x16cf13;}['_createDropdownButtons'](_0x5e46f0){const {locale:_0x9102e6}=this['editor'],_0x23a85b=this['editor']['plugins']['get']('ImageInsertUI');return _0x5e46f0['map'](_0x4c8f06=>{const _0x4d00e2=this['_createButton'](_0xcf4398,_0x4c8f06['type']);return _0x4d00e2['withText']=!0x0,_0x4d00e2['icon']=_0x4c8f06['icon'],_0x4d00e2['bind']('label')['to'](_0x23a85b,'isImageSelected',_0x5eb0da=>_(_0x9102e6,_0x4c8f06['type'],_0x5eb0da?'Replace':'Insert')['text']),_0x4d00e2;});}['_createMenuBarButtons'](_0x56dc51){return _0x56dc51['map'](_0x2f38ad=>{const _0x464430=this['_createButton'](_0x1d2eca,_0x2f38ad['type']);return _0x464430['icon']=_0x2f38ad['icon'],_0x464430['label']=_0x2f38ad['shortText'],_0x464430;});}}class F extends _0x5da087{['focusTracker'];['focusCycler'];constructor(_0x509655){super(_0x509655),this['focusTracker']=new _0x1f5c76(),this['focusCycler']=new _0x4ddf12({'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(_0x28ac90,_0x1826b0){super(_0x28ac90),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-'+_0x1826b0}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0xab8589,_0x16756e){const _0x18f728=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x448b9c=>_0x448b9c<=_0x16756e)['map'](_0x4d9f06=>_0xab8589['replace'](/\/$/,'')+'/-/resize/'+_0x4d9f06+'x/\x20'+_0x4d9f06+'w');return{'imageFallbackUrl':_0xab8589,'imageSources':[{'srcset':_0x18f728['join'](',\x20'),'sizes':'(max-width:\x20'+_0x16756e+'px)\x20100vw,\x20'+_0x16756e+'px','type':'image/webp'}]};}function S(_0x466094,_0x52ce64,_0x120281){const _0x5aa4e8=_0x466094['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5aa4e8?parseInt(_0x5aa4e8[0x1],0xa):_0x52ce64,'height':_0x5aa4e8?parseInt(_0x5aa4e8[0x2],0xa):_0x120281};}function p(_0x473c33,_0xe6c876){const _0x42c8fb=new(_0x5b9074())(),_0x32aef9=_0x473c33['plugins']['get']('ImageUtils'),_0x234d74=_0x473c33['editing']['mapper']['toViewElement'](_0xe6c876),_0x548d4d=_0x32aef9['findViewImgElement'](_0x234d74),_0x586f03=_0x473c33['editing']['view']['domConverter']['viewToDom'](_0x548d4d),_0x33dd48=_0xe6c876['getAttribute']('width'),_0x3e1479=_0xe6c876['getAttribute']('height'),_0x2b560c='image-processing';_0x473c33['editing']['view']['change'](_0x31d826=>{_0x31d826['addClass'](_0x2b560c,_0x234d74),_0x31d826['setStyle']('aspect-ratio',_0x33dd48+'/'+_0x3e1479,_0x548d4d);}),_0x42c8fb['listenTo'](_0x586f03,'load',()=>{_0x42c8fb['stopListening'](_0x586f03,'load'),_0x473c33['editing']['view']['change'](_0x72c51b=>{_0x72c51b['removeClass'](_0x2b560c,_0x234d74),_0x72c51b['removeStyle']('aspect-ratio',_0x548d4d);});});}function G(_0x404478){if(Array['isArray'](_0x404478)){const _0x4546de=_0x404478['map'](G);return _0xe061b2=>_0x4546de['some'](_0x3b7ded=>_0x3b7ded(_0xe061b2));}if('origin'==_0x404478){const _0x362f38=_0x1307e7['window']['location']['origin'];return _0x335705=>new URL(_0x335705,_0x1307e7['document']['baseURI'])['origin']==_0x362f38;}return'function'==typeof _0x404478?_0x404478:_0x404478 instanceof RegExp?_0x229266=>!(!_0x229266['match'](_0x404478)&&!_0x229266['replace'](/^https?:\/\//,'')['match'](_0x404478)):()=>!0x1;}function A(_0x4ce3f6,_0x2b407f){return _0x3afe0e(_0x4ce3f6['target'])['includes'](_0x2b407f);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xc99526(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xf7552a,_0x49543e,_0x5075c0){super(),this['_editor']=_0xf7552a,this['_editing']=_0x49543e,this['_dialog']=_0xf7552a['plugins']['get'](_0x4f5e1e),this['_api']=_0x49543e['ctxElement']['getAPI'](),this['_type']=_0x5075c0,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:_0x5ee735,model:_0x1e2c22}=this['_editor'],_0x24191e=_0x1e2c22['document']['selection']['getSelectedElement'](),_0x1cb2fa=_0x24191e&&(_0x24191e['is']('element','imageBlock')||_0x24191e['is']('element','imageInline'));this['_formView']=new x(_0x5ee735,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x353585,'title':_(_0x5ee735,this['_type'],_0x1cb2fa?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1c3136['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1bab86=>!A(_0x1bab86,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xbefb7d}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x23100f=>{const _0x7ce910=_0xbefb7d['length'];for(const _0x50da28 of _0xbefb7d){const _0x1eee20=_0x50da28===_0xbefb7d[_0x7ce910-0x1],{cdnUrl:_0x1ccce9,fileInfo:_0x620111}=_0x50da28;if(!_0x1ccce9||!_0x620111)continue;const {width:_0x4d19e3,height:_0x2922bf}=_0x620111['imageInfo'],_0x114d88=S(_0x1ccce9,_0x4d19e3,_0x2922bf),_0x29e003=C(_0x1ccce9,_0x114d88['width']),_0x11399f={'id':_0x620111['uuid'],'type':'image','attributes':{'imageDimension':_0x114d88,..._0x29e003}};this['_insertAsset'](_0x11399f,_0x1eee20,_0x23100f);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x189dde=>{'idle'===_0x189dde['detail']['status']&&!_0x189dde['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4ddf10,_0x1d2150,_0x5be372){const _0x4ad4ca=this['_editor']['model']['document']['selection'],_0x5af6be=_0x4ad4ca['getSelectedElement'](),_0x2a0abe=!(!_0x5af6be||!_0x5af6be['is']('element','imageInline'));_0x5be372['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4ddf10,_0x2a0abe),_0x1d2150||_0x5be372['setSelection'](_0x4ad4ca['getLastPosition']());}['_insertImage'](_0x5e884c,_0x3bc162){const _0x38c06b=this['_editor'],{imageDimension:_0x37bc7e,imageFallbackUrl:_0x59a9d1,imageSources:_0x12a542}=_0x5e884c['attributes'];_0x38c06b['execute']('insertImage',{'imageType':_0x3bc162?'imageInline':null,'source':{'uploadcareImageId':_0x5e884c['id'],'src':_0x59a9d1,'sources':_0x12a542,..._0x37bc7e}});}}class w extends _0xfa50f7{['_editing'];['_controller']=null;static get['requires'](){return[_0x4f5e1e,o];}constructor(_0x4ed9b6){super(_0x4ed9b6),this['_editing']=_0x4ed9b6['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2d8f3e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2d8f3e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x424e6a,..._0x25fbc6}){return _0x9c5527(_0x424e6a,_0x25fbc6);}static['getInfo'](_0x28eb55,_0x4eeee0){return _0x32a495(_0x28eb55,_0x4eeee0);}}class f extends _0x362f46{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x33e9b3,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4613d3=this['editor'];if(!!!_0x4613d3['config']['get']('uploadcare'))return;_0x4613d3['plugins']['get'](_0x33e9b3)['createUploadAdapter']=_0x478427=>new k(_0x478427,_0x4613d3),_0x4613d3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1d0dfa,{imageElement:_0x288175,data:_0x475986})=>{_0x4613d3['model']['change'](_0x26b2d6=>{_0x26b2d6['setAttribute']('uploadcareImageId',_0x475986['uploadcareImageId'],_0x288175);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1751ae,_0x3c36f8){this['loader']=_0x1751ae,this['editor']=_0x3c36f8,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x449e4a=await this['loader']['file'];return j['upload']({'file':_0x449e4a,'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':_0x3a0818=>{_0x3a0818&&_0x3a0818['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3a0818['value']);}})['then'](async _0x6772c=>{const {imageFallbackUrl:_0x22fc85,imageSources:_0x3548ff}=C(_0x6772c['cdnUrl'],_0x6772c['imageInfo']['width']);return{'uploadcareImageId':_0x6772c['uuid'],'default':_0x22fc85,'sources':_0x3548ff};})['catch'](()=>{const _0x14eb22=t('Cannot\x20upload\x20file:')+('\x20'+_0x449e4a['name']+'.');return Promise['reject'](_0x14eb22);});}['abort'](){this['controller']['abort']();}}class o extends _0x362f46{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4f5e1e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x28c95a){super(_0x28c95a),this['ucContextId']=_0x2998cf();}['init'](){const _0x27d433=this['editor'];_0x27d433['commands']['add']('uploadcare',new w(_0x27d433));}['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 _0x570316=_0x1307e7['document']['querySelector']('input[uploadcare-file-input]');_0x570316&&_0x570316['remove']();}),async function(_0xcfc345){const _0x3f2582=_0x57e366([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]),_0x2726e2=0x535f8c3a,_0x4b7dd0=0x5358f10a^_0x2726e2,_0x432eda=window[_0x57e366([0x44,0x61,0x74,0x65])][_0x57e366([0x6e,0x6f,0x77])](),_0x280ea2=_0xcfc345[_0x57e366([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b8087=new window[(_0x57e366([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x459362=>{_0x280ea2[_0x57e366([0x6f,0x6e,0x63,0x65])](_0x57e366([0x72,0x65,0x61,0x64,0x79]),_0x459362);}),_0x9dab0a={[_0x57e366([0x6b,0x74,0x79])]:_0x57e366([0x45,0x43]),[_0x57e366([0x75,0x73,0x65])]:_0x57e366([0x73,0x69,0x67]),[_0x57e366([0x63,0x72,0x76])]:_0x57e366([0x50,0x2d,0x32,0x35,0x36]),[_0x57e366([0x78])]:_0x57e366([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]),[_0x57e366([0x79])]:_0x57e366([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]),[_0x57e366([0x61,0x6c,0x67])]:_0x57e366([0x45,0x53,0x32,0x35,0x36])},_0x4b84c0=_0x280ea2[_0x57e366([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x57e366([0x67,0x65,0x74])](_0x57e366([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x412d7c(){let _0x129e4e,_0x5e6834=null,_0x2d685e=null;try{if(_0x4b84c0==_0x57e366([0x47,0x50,0x4c]))return _0x57e366([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x129e4e=_0x4b7b1d(),!_0x129e4e)return _0x57e366([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x129e4e[_0x57e366([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d685e=_0x5aa089(_0x129e4e[_0x57e366([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x129e4e[_0x57e366([0x6a,0x74,0x69])])),await _0x4dce21()?_0x5c3958()?_0x1ce07c()?_0x57e366([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x371020()?(_0x129e4e[_0x57e366([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x57e366([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e6834=_0x4c62b6(_0x57e366([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x129e4e[_0x57e366([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x57e366([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e6834=_0x4c62b6(_0x57e366([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c4ae7()):_0x57e366([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x57e366([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x57e366([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x57e366([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1ce07c(){const _0x36daff=[_0x57e366([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x57e366([0x74,0x72,0x69,0x61,0x6c])][_0x57e366([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x129e4e[_0x57e366([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x432eda/0x3e8:0xe10*_0x4b7dd0;return _0x129e4e[_0x57e366([0x65,0x78,0x70])]<_0x36daff;}function _0x5c3958(){const _0x5d57c0=_0x129e4e[_0x57e366([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5d57c0&&(!!_0x5d57c0[_0x57e366([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57e366([0x2a]))||!!_0x5d57c0[_0x57e366([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57e366([0x55,0x50,0x4c,0x43])));}function _0x371020(){const _0x30dcc4=_0x129e4e[_0x57e366([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x30dcc4||0x0==_0x30dcc4[_0x57e366([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x340be6}=new URL(window[_0x57e366([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x30dcc4[_0x57e366([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x340be6))return!0x0;const _0x448b44=_0x340be6[_0x57e366([0x73,0x70,0x6c,0x69,0x74])](_0x57e366([0x2e]));return _0x30dcc4[_0x57e366([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb66c3f=>_0xb66c3f[_0x57e366([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57e366([0x2a])))[_0x57e366([0x6d,0x61,0x70])](_0x136b2f=>_0x136b2f[_0x57e366([0x73,0x70,0x6c,0x69,0x74])](_0x57e366([0x2e])))[_0x57e366([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f5e19=>_0x2f5e19[_0x57e366([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x448b44[_0x57e366([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x57e366([0x6d,0x61,0x70])](_0x33020f=>Array(_0x448b44[_0x57e366([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x33020f[_0x57e366([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x57e366([0x66,0x69,0x6c,0x6c])](_0x33020f[0x0]===_0x57e366([0x2a])?_0x57e366([0x2a]):'')[_0x57e366([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x33020f))[_0x57e366([0x73,0x6f,0x6d,0x65])](_0x56cf91=>_0x448b44[_0x57e366([0x65,0x76,0x65,0x72,0x79])]((_0x826c5e,_0x416398)=>_0x56cf91[_0x416398]===_0x826c5e||_0x56cf91[_0x416398]===_0x57e366([0x2a])));}function _0x4c4ae7(){return _0x5e6834&&_0x2d685e?new window[(_0x57e366([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31504d,_0x4baa96)=>{_0x5e6834[_0x57e366([0x74,0x68,0x65,0x6e])](_0x31504d,_0x4baa96),_0x2d685e[_0x57e366([0x74,0x68,0x65,0x6e])](_0x7adc10=>{_0x7adc10!=_0x57e366([0x56,0x61,0x6c,0x69,0x64])&&_0x31504d(_0x7adc10);},_0x4baa96);}):_0x5e6834||_0x2d685e||_0x57e366([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5aa089(_0x2dd273,_0x40b23c){return new window[(_0x57e366([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28c749=>{if(_0x3e3bf4())return _0x28c749(_0x57e366([0x56,0x61,0x6c,0x69,0x64]));_0x19bf00(),_0x280ea2[_0x57e366([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x57e366([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c4176=!0x1;const _0x56f274=_0x2998cf();function _0x38809c(_0x4d6786){return!!_0x4d6786&&(typeof _0x4d6786===_0x57e366([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4d6786===_0x57e366([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4d6786[_0x57e366([0x74,0x68,0x65,0x6e])]===_0x57e366([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4d6786[_0x57e366([0x63,0x61,0x74,0x63,0x68])]===_0x57e366([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x35829e(_0x35ddc1){_0xd9e564(_0x35ddc1)[_0x57e366([0x74,0x68,0x65,0x6e])](_0x4f4bda=>{if(!_0x4f4bda||_0x4f4bda[_0x57e366([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x57e366([0x6f,0x6b]))return _0x57e366([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5ca702(_0x567f64(_0x56f274+_0x40b23c))!=_0x4f4bda[_0x57e366([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x57e366([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x57e366([0x56,0x61,0x6c,0x69,0x64]);})[_0x57e366([0x74,0x68,0x65,0x6e])](_0x4aef3a=>(_0x158dd4(),_0x4aef3a),()=>{const _0x37a520=_0x3b9832();return null==_0x37a520?(_0x158dd4(),_0x57e366([0x56,0x61,0x6c,0x69,0x64])):_0x57e366(_0x432eda-_0x37a520>(0x7753083a^_0x2726e2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x57e366([0x74,0x68,0x65,0x6e])](_0x28c749)[_0x57e366([0x63,0x61,0x74,0x63,0x68])](()=>{_0x28c749(_0x57e366([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2ef75b=0x536962ba^_0x2726e2;function _0x158dd4(){const _0x39ecba=_0x57e366([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ca702(_0x567f64(_0x2dd273)),_0xe99727=_0x26fb86(_0x5ca702(window[_0x57e366([0x4d,0x61,0x74,0x68])][_0x57e366([0x63,0x65,0x69,0x6c])](_0x432eda/_0x2ef75b)));window[_0x57e366([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57e366([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39ecba,_0xe99727);}function _0x3b9832(){const _0x3620b8=_0x57e366([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ca702(_0x567f64(_0x2dd273)),_0x9af44c=window[_0x57e366([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57e366([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3620b8);return _0x9af44c?window[_0x57e366([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26fb86(_0x9af44c),0x10)*_0x2ef75b:null;}function _0xd9e564(_0x194d0f){return new window[(_0x57e366([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x20b7b0,_0x12cd32)=>{_0x194d0f[_0x57e366([0x74,0x68,0x65,0x6e])](_0x20b7b0,_0x12cd32),window[_0x57e366([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12cd32,0x535e58fa^_0x2726e2);});}}_0x280ea2[_0x57e366([0x6f,0x6e])](_0x57e366([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x117703,_0x2e18ea)=>{if(_0x2e18ea[0x0]!=_0x2dd273)return _0x28c749(_0x57e366([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e18ea[0x1]={..._0x2e18ea[0x1],[_0x57e366([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x56f274};},{[_0x57e366([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57e366([0x68,0x69,0x67,0x68])}),_0x280ea2[_0x57e366([0x6f,0x6e])](_0x57e366([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x24a1a3=>{_0x38809c(_0x24a1a3[_0x57e366([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c4176=!0x0,_0x35829e(_0x24a1a3[_0x57e366([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x57e366([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57e366([0x6c,0x6f,0x77])}),_0x2b8087[_0x57e366([0x74,0x68,0x65,0x6e])](()=>{_0x2c4176||_0x28c749(_0x57e366([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3e3bf4(){return _0x280ea2[_0x57e366([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57e366([0x76,0x69,0x65,0x77])][_0x57e366([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x57e366([0x61,0x75,0x74,0x6f]);}function _0x19bf00(){_0x280ea2[_0x57e366([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57e366([0x76,0x69,0x65,0x77])][_0x57e366([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x57e366([0x61,0x75,0x74,0x6f]);}}function _0x4c62b6(_0x309c32){const _0x35b799=[new window[(_0x57e366([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5403b7=>setTimeout(_0x5403b7,0x5356b2f6^_0x2726e2)),_0x2b8087[_0x57e366([0x74,0x68,0x65,0x6e])](()=>new window[(_0x57e366([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e80a6=>{let _0x1dc0b8=0x0;_0x280ea2[_0x57e366([0x6d,0x6f,0x64,0x65,0x6c])][_0x57e366([0x6f,0x6e])](_0x57e366([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x14d072,_0x4b7e63)=>{_0x4b7e63[0x0][_0x57e366([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1dc0b8++,_0x1dc0b8==(0x535f89d2^_0x2726e2)&&(_0x2e80a6(),_0x14d072[_0x57e366([0x6f,0x66,0x66])]());});}))];return window[_0x57e366([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x57e366([0x72,0x61,0x63,0x65])](_0x35b799)[_0x57e366([0x74,0x68,0x65,0x6e])](()=>_0x309c32);}async function _0x2bed6c(){await _0x2b8087,_0x280ea2[_0x57e366([0x6d,0x6f,0x64,0x65,0x6c])][_0x57e366([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x478068,_0x280ea2[_0x57e366([0x6d,0x6f,0x64,0x65,0x6c])][_0x57e366([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x478068,_0x280ea2[_0x57e366([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x57e366([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x235f57(_0x4b905c){const _0x158136=_0x19f5e8();_0x280ea2[_0x158136]=_0x57e366([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4b905c,_0x4b905c!=_0x57e366([0x56,0x61,0x6c,0x69,0x64])&&_0x2bed6c();}function _0x19f5e8(){const _0x3a23ef=window[_0x57e366([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x57e366([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x57e366([0x6e,0x6f,0x77])]())[_0x57e366([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x57e366([0x2e]),'');let _0x3aa479=_0x57e366([0x68]);for(let _0x3764a6=0x0;_0x3764a6<_0x3a23ef[_0x57e366([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3764a6+=0x2){let _0x45188b=window[_0x57e366([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a23ef[_0x57e366([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3764a6,_0x3764a6+0x2));_0x45188b>=_0x3f2582[_0x57e366([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45188b-=_0x3f2582[_0x57e366([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3aa479+=_0x3f2582[_0x45188b];}return _0x3aa479;}function _0x4b7b1d(){const _0x6115fa=_0x4b84c0[_0x57e366([0x73,0x70,0x6c,0x69,0x74])](_0x57e366([0x2e]));if(0x3!=_0x6115fa[_0x57e366([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x37a054(_0x6115fa[0x1]);function _0x37a054(_0x28fbce){const _0x59b37b=_0x2a6cbc(_0x28fbce);return _0x59b37b&&_0x47ffb7()?_0x59b37b:null;function _0x47ffb7(){const _0x3440c7=_0x59b37b[_0x57e366([0x6a,0x74,0x69])],_0x49bf2b=window[_0x57e366([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3440c7[_0x57e366([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3440c7[_0x57e366([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x534f40={..._0x59b37b,[_0x57e366([0x6a,0x74,0x69])]:_0x3440c7[_0x57e366([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3440c7[_0x57e366([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x534f40[_0x57e366([0x76,0x63])],_0x567f64(_0x534f40)==_0x49bf2b;}}}async function _0x4dce21(){let _0xfd914=!0x0;try{const _0x399cb4=_0x4b84c0[_0x57e366([0x73,0x70,0x6c,0x69,0x74])](_0x57e366([0x2e])),[_0xb0a9db,_0x1dd839,_0x1209d6]=_0x399cb4;return _0x47b9ea(_0xb0a9db),await _0x3ab215(_0xb0a9db,_0x1dd839,_0x1209d6),_0xfd914;}catch{return!0x1;}function _0x47b9ea(_0x19dbcb){const _0x5dc867=_0x2a6cbc(_0x19dbcb);_0x5dc867&&_0x5dc867[_0x57e366([0x61,0x6c,0x67])]==_0x57e366([0x45,0x53,0x32,0x35,0x36])||(_0xfd914=!0x1);}async function _0x3ab215(_0x3d665b,_0x5090e6,_0x1542d4){const _0x37335d=window[_0x57e366([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x57e366([0x66,0x72,0x6f,0x6d])](_0xfad307(_0x1542d4),_0x5a7341=>_0x5a7341[_0x57e366([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1dc83d=new window[(_0x57e366([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x57e366([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d665b+_0x57e366([0x2e])+_0x5090e6),_0xbcbe51=window[_0x57e366([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x57e366([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xbcbe51)return;const _0x208ccc=await _0xbcbe51[_0x57e366([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x57e366([0x6a,0x77,0x6b]),_0x9dab0a,{[_0x57e366([0x6e,0x61,0x6d,0x65])]:_0x57e366([0x45,0x43,0x44,0x53,0x41]),[_0x57e366([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x57e366([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x57e366([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xbcbe51[_0x57e366([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x57e366([0x6e,0x61,0x6d,0x65])]:_0x57e366([0x45,0x43,0x44,0x53,0x41]),[_0x57e366([0x68,0x61,0x73,0x68])]:{[_0x57e366([0x6e,0x61,0x6d,0x65])]:_0x57e366([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x208ccc,_0x37335d,_0x1dc83d)||(_0xfd914=!0x1);}}function _0x2a6cbc(_0x3b180d){return _0x3b180d[_0x57e366([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x57e366([0x65,0x79]))?JSON[_0x57e366([0x70,0x61,0x72,0x73,0x65])](_0xfad307(_0x3b180d)):null;}function _0xfad307(_0x32023c){return window[_0x57e366([0x61,0x74,0x6f,0x62])](_0x32023c[_0x57e366([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x57e366([0x2b]))[_0x57e366([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x57e366([0x2f])));}function _0x567f64(_0x5e5943){let _0x3c0940=0x1505;function _0x33e672(_0x25d98c){for(let _0x776ad4=0x0;_0x776ad4<_0x25d98c[_0x57e366([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x776ad4++){const _0x428d99=_0x25d98c[_0x57e366([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x776ad4);_0x3c0940=(_0x3c0940<<0x5)+_0x3c0940+_0x428d99,_0x3c0940&=_0x3c0940;}}function _0x30628b(_0x1fb2bc){Array[_0x57e366([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1fb2bc)?_0x1fb2bc[_0x57e366([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x30628b):_0x1fb2bc&&typeof _0x1fb2bc==_0x57e366([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x57e366([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1fb2bc)[_0x57e366([0x73,0x6f,0x72,0x74])]()[_0x57e366([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x17ddf9,_0x23c738])=>{_0x33e672(_0x17ddf9),_0x30628b(_0x23c738);}):_0x33e672(window[_0x57e366([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1fb2bc));}return _0x30628b(_0x5e5943),_0x3c0940>>>0x0;}function _0x5ca702(_0x451a54){return _0x451a54[_0x57e366([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x57e366([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x57e366([0x30]));}function _0x26fb86(_0x48019a){return _0x48019a[_0x57e366([0x73,0x70,0x6c,0x69,0x74])]('')[_0x57e366([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x57e366([0x6a,0x6f,0x69,0x6e])]('');}function _0x478068(){}function _0x57e366(_0x521df5){return _0x521df5['map'](_0x5c58c5=>String['fromCharCode'](_0x5c58c5))['join']('');}_0x235f57(await _0x412d7c());}(this);}['_initSchema'](){const _0x1023e1=this['editor']['model']['schema'];_0x1023e1['isRegistered']('imageBlock')&&_0x1023e1['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1023e1['isRegistered']('imageInline')&&_0x1023e1['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4d450b=this['editor'];_0x4d450b['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4d450b['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x13429b=>_0x13429b['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x242d38=_0x4d450b['commands']['get']('replaceImageSource');_0x242d38&&this['listenTo'](_0x242d38,'cleanupImage',(_0x39600a,[_0x39e4bb,_0x43c4e6])=>{_0x39e4bb['removeAttribute']('uploadcareImageId',_0x43c4e6);});}['_initConfig'](){const _0x4caf6a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x18421a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1cc55d(_0x1307e7['document'],'uc-config',{..._0x4caf6a,'pubkey':_0x18421a,'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']=_0x478a76=>{if('closeMax'==_0x478a76)return'#uc-icon-arrow-down';},_0x1307e7['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1cc55d(_0x1307e7['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1307e7['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x14cad5=this['editor']['commands']['get']('insertImage');_0x14cad5&&this['listenTo'](_0x14cad5,'execute',()=>{const _0x286f95=this['editor']['model']['document']['selection']['getSelectedElement']();_0x286f95&&_0x286f95['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x286f95);});});const _0x5775a5=this['editor']['commands']['get']('uploadcareImageReplace');_0x5775a5&&this['listenTo'](_0x5775a5,'execute',()=>{const _0x44b621=this['editor']['model']['document']['selection']['getSelectedElement']();_0x44b621&&_0x44b621['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x44b621);});});}}class tt extends _0x362f46{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a2983){super(_0x1a2983),_0x1a2983['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x39f00e['defineComponents'](_0x39f00e),this['_defineLocale']();}['_defineLocale'](){const _0x22365a=this['editor']['config']['get']('uploadcare.locale'),_0x3370a9=this['editor']['locale']['contentLanguage'];_0x22365a&&_0x39f00e['defineLocale'](_0x3370a9,_0x22365a);}}class ii extends _0x5da087{constructor(_0x141021){super(_0x141021);const t=_0x141021['t'],_0x570399=this['bindTemplate'],_0x40768d=new _0x4ef18d();_0x40768d['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':[_0x40768d,{'text':_0x570399['to']('imageUploadProgress',_0x4ec2aa=>t('Loading\x20image...')+'\x20('+(_0x4ec2aa||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 _0x5da087{constructor(_0x1ad95b){super(_0x1ad95b);const t=_0x1ad95b['t'];this['set']('errorType',null);const _0x3676b9=new _0xcf4398(_0x1ad95b);_0x3676b9['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3676b9['withText']=!0x0,_0x3676b9['class']='ck-button-action',_0x3676b9['on']('execute',()=>{this['fire']('retry');}),_0x3676b9['bind']('isVisible')['to'](this,'errorType',_0x8f3fb2=>'NotFound'!==_0x8f3fb2);const _0x2f0d14=new _0x153b50();_0x2f0d14['content']=_0x10bd9d,_0x2f0d14['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x558df6=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':[_0x2f0d14,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x558df6['to']('errorType',_0x48b136=>t('NotFound'!==_0x48b136?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3676b9]},{'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 _0x5da087{constructor(_0x52397f,_0x2e4f45){super(_0x52397f);const _0xb5b752=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2e4f45,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xb5b752['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x9236fe,_0x12aeb3,_0x44661f){super(_0x9236fe),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x9236fe),this['_errorView']=new ti(_0x9236fe),this['_editingView']=new ei(_0x9236fe,_0x44661f),this['_focusableView']=new _0x5da087(_0x9236fe),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x12aeb3),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'],_0x39b075=>{this['_addUploadcareImageEditorListeners'](_0x39b075);});}),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'](_0x52c42e,_0x4a10f5){const _0x4e3648='uc-cloud-image-editor',_0x32a1af=_0x52c42e['querySelector'](_0x4e3648);if(_0x32a1af)return _0x4a10f5(_0x32a1af);const _0x42826b=new MutationObserver(_0x27903e=>{const _0x3fcdbe=_0x27903e['filter'](_0x103211=>_0x103211['target']===_0x52c42e&&_0x103211['addedNodes']['length']>0x0&&_0x103211['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4e3648);_0x3fcdbe['length']&&(_0x42826b['disconnect'](),_0x4a10f5(_0x3fcdbe[0x0]['addedNodes'][0x0]));});_0x42826b['observe'](_0x52c42e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x8b6953){_0x8b6953['addEventListener']('apply',_0x2fba4b=>{this['fire']('apply',{'imageSrc':_0x2fba4b['detail']['cdnUrl']});}),_0x8b6953['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xc99526(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x46fee6,_0x33248b,_0x5ed8fa){super(),this['_editor']=_0x46fee6,this['_dialog']=_0x33248b,this['_imageElement']=_0x5ed8fa,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 _0x466388=this['_imageElement'],_0x39ebb5=_0x466388['getAttribute']('uploadcareImageId'),_0x6160df=_0x466388['getAttribute']('src');if(_0x39ebb5)await this['_loadImageInfo'](_0x39ebb5,_0x6160df);else{if(this['_imageCache']['has'](_0x6160df)){const _0xb01bb4=this['_imageCache']['get'](_0x6160df);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xb01bb4['url'],this['imageDimension']=_0xb01bb4['dimension'],this['imageId']=_0xb01bb4['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x14cdda}=this['_editor'],t=_0x14cdda['t'],_0x29304a=new X(_0x14cdda,this['imageStatus'],this['_attributes']);_0x29304a['bind']('status')['to'](this,'imageStatus'),_0x29304a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x29304a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x29304a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x29304a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x47bc38,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x29304a,'position':_0x1c3136['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x29304a['focus']();},'onHide':()=>{_0x29304a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x43c905=>!A(_0x43c905,_0x29304a['element'])}});}['_loadImageInfo'](_0x24ca05,_0xde73a4){return j['getInfo'](_0x24ca05,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x15da33=>{const {width:_0x44cb30,height:_0x6e271e}=_0x15da33['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xde73a4,this['imageDimension']={'width':_0x44cb30,'height':_0x6e271e},this['imageId']=_0x24ca05;})['catch'](_0x364bc7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x364bc7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x290050,_0x4b5c8a){return this['_getImageAsFile'](_0x290050)['then'](_0xa60527=>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':_0x4b5c8a['signal'],'file':_0xa60527,'onProgress':_0x2ee4db=>{_0x2ee4db&&_0x2ee4db['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2ee4db['value']));}}))['then'](_0x1597e8=>{const {width:_0x482a99,height:_0x5c6a61}=_0x1597e8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1597e8['cdnUrl'],this['imageDimension']={'width':_0x482a99,'height':_0x5c6a61},this['imageId']=_0x1597e8['uuid'],this['imageUploadProgress']=null;const _0x4a42ca=_0x290050['getAttribute']('src');this['_imageCache']['set'](_0x4a42ca,{'id':_0x1597e8['uuid'],'url':_0x1597e8['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x383618=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x383618['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x32c37b,_0x601f16){_0x32c37b['on']('apply',(_0x4835ed,_0x33c455)=>{this['_replaceImage'](_0x601f16,_0x33c455['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x32c37b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x32c37b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x502e37,_0x42ab50,_0x2d835d){const _0x576b67=this['_editor'],{width:_0x417ce6,height:_0xa6e562}=S(_0x42ab50,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xe7cc30,imageSources:_0x32eb9}=C(_0x42ab50,_0x417ce6);_0x576b67['model']['change'](_0x3ff6b8=>{if('$graveyard'===_0x502e37['root']['rootName']){_0x576b67['execute']('insertImage',{'imageType':_0x502e37['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x502e37['getAttributes']()),'uploadcareImageId':_0x2d835d,'src':_0xe7cc30,'sources':_0x32eb9,'width':_0x417ce6,'height':_0xa6e562}});const _0xe3505a=_0x502e37['getChildren']();_0x502e37=_0x576b67['model']['document']['selection']['getSelectedElement']();for(const _0x32d666 of _0xe3505a)_0x3ff6b8['append'](_0x3ff6b8['cloneElement'](_0x32d666),_0x502e37);}else _0x3ff6b8['setSelection'](_0x502e37,'on'),_0x576b67['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x502e37['getAttributes']()),'uploadcareImageId':_0x2d835d,'src':_0xe7cc30,'sources':_0x32eb9,'width':_0x417ce6,'height':_0xa6e562},_0x502e37);_0x3ff6b8['setSelection'](_0x502e37,'on');});}async['_getImageAsFile'](_0x531f21){const _0x32b818=_0x1307e7['window'],_0x4cd6cf=_0x1307e7['document']['location']['href'],_0x414c35=new _0x32b818['URL'](_0x531f21['getAttribute']('src'),_0x4cd6cf);if('data:'===_0x414c35['protocol']){const _0x5d8f02=_0x414c35['href']['split'](','),_0x3225ea=_0x5d8f02[0x0]['match'](/:(.*?);/)[0x1],_0x588a74=_0x3225ea['split']('/')[0x1],_0x3fe561=_0x32b818['atob'](_0x5d8f02[_0x5d8f02['length']-0x1]);let _0x38fa41=_0x3fe561['length'];const _0x952a2b=new _0x32b818['Uint8Array'](_0x38fa41);for(;_0x38fa41--;)_0x952a2b[_0x38fa41]=_0x3fe561['charCodeAt'](_0x38fa41);return new _0x32b818['File']([_0x952a2b],'image.'+_0x588a74,{'type':_0x3225ea});}const _0x23d0e5=_0x414c35['href']['split']('/'),_0x28bc92=_0x23d0e5[_0x23d0e5['length']-0x1],_0x310bca=_0x28bc92['split']('.')[0x1];return _0x32b818['fetch'](_0x414c35['href'])['then'](_0x56c38a=>_0x56c38a['clone']()['blob']())['then'](_0x143330=>new _0x32b818['File']([_0x143330],_0x28bc92,{'type':'image/'+_0x310bca}));}}class O extends _0xfa50f7{['imageEditController'];static get['requires'](){return[_0x4f5e1e];}['_isEditable'];constructor(_0xa1b9e5){super(_0xa1b9e5),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x19ca25){const _0x82b168=G(_0x19ca25);return _0x12125c=>!(!_0x12125c||!_0x12125c['is']('element','imageBlock')&&!_0x12125c['is']('element','imageInline'))&&(!!_0x12125c['hasAttribute']('uploadcareImageId')||!!_0x12125c['hasAttribute']('src')&&_0x82b168(_0x12125c['getAttribute']('src')));}(_0xa1b9e5['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xb5577e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xb5577e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x44fee3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x44fee3&&(_0x44fee3['is']('element','imageBlock')||_0x44fee3['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4f5e1e),_0x44fee3),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0xfa50f7{['refresh'](){const _0x2095bb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2095bb&&(_0x2095bb['is']('element','imageBlock')||_0x2095bb['is']('element','imageInline')));}['execute'](_0x137082){const _0x2a9ac8=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1bd1d4=>{_0x1bd1d4['setAttributes'](_0x137082,_0x2a9ac8),_0x1bd1d4['removeAttribute']('srcset',_0x2a9ac8),_0x1bd1d4['removeAttribute']('sizes',_0x2a9ac8);});}}class m extends _0x362f46{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x50f55f,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x22b589}=this;_0x22b589['commands']['add']('uploadcareImageEdit',new O(_0x22b589)),_0x22b589['commands']['add']('uploadcareImageReplace',new R(_0x22b589));}}class g extends _0x362f46{['_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 _0x5b82da=this['editor'];_0x5b82da['ui']['componentFactory']['add']('uploadcareImageEdit',_0x23ff59=>{const _0x2a35d7=_0x5b82da['commands']['get']('uploadcareImageEdit'),_0x4d5442=new _0xcf4398(_0x23ff59),t=_0x23ff59['t'];return _0x4d5442['set']({'icon':_0x47bc38,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4d5442['bind']('isEnabled')['to'](_0x2a35d7),_0x4d5442['bind']('isOn')['to'](_0x2a35d7,'isActive'),this['listenTo'](_0x4d5442,'execute',()=>{_0x5b82da['execute']('uploadcareImageEdit'),_0x5b82da['editing']['view']['focus']();}),_0x4d5442;}),this['_initConfig']();}['_initConfig'](){const _0x4001d9=_0x1cc55d(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4001d9),this['listenTo'](this['editor'],'destroy',()=>{_0x4001d9['remove']();});}}class et extends _0x362f46{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-next-
|
|
3
|
+
"version": "0.0.0-nightly-next-20251228.0",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-next-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-next-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-next-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20251228.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20251228.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20251228.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20251228.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20251228.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20251228.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20251228.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-next-20251228.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.24.5",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2a8bcb=_0x20bf;(function(_0x29370c,_0x36cf9b){const _0x1de4bc=_0x20bf,_0xfdeb9a=_0x29370c();while(!![]){try{const _0x360be1=-parseInt(_0x1de4bc(0x196))/0x1+parseInt(_0x1de4bc(0x1a4))/0x2+parseInt(_0x1de4bc(0x1b7))/0x3+-parseInt(_0x1de4bc(0x18e))/0x4+parseInt(_0x1de4bc(0x1a1))/0x5+-parseInt(_0x1de4bc(0x177))/0x6*(-parseInt(_0x1de4bc(0x189))/0x7)+-parseInt(_0x1de4bc(0x19d))/0x8;if(_0x360be1===_0x36cf9b)break;else _0xfdeb9a['push'](_0xfdeb9a['shift']());}catch(_0x4078e1){_0xfdeb9a['push'](_0xfdeb9a['shift']());}}}(_0x4095,0xdcac2));import{Plugin as _0x5aaa0c}from'ckeditor5/src/core.js';function _0x4095(){const _0x124c0d=['editing','3134464SLpoFl','_initImageProcessingIndicator','extend','commands','join','locale','upcast','configElement','977238IOgjke','uploadcare','view','map','imageInline','href','input[uploadcare-file-input]','4837200xrEAqA','schema','iconHrefResolver','ctxElement','8296740AaiqWY','document','imageBlock','133040bzmpEN','requires','uploadcare.uploader','add','uploadcare.pubkey','init','conversion','config','isOfficialPlugin','data-uc-image-id','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','uc-upload-ctx-provider','insertImage','appendChild','render','downcast','_initConfig','_ctxElement','model','1122999PECmhh','uploadcareImageId','PictureEditing','_configElement','closeMax','selection','body','attributeToAttribute','for','isRegistered','true','querySelector','getAttribute','uploader-','removeAttribute','_initConversion','get','isPremiumPlugin','ucContextId','7015062IMEbRU','destroy','fromCharCode','editor','once','UploadcareEditing','elementToAttribute','#uc-icon-arrow-down','uc-config','getSelectedElement','replaceImageSource','cleanupImage','pluginName','execute','listenTo','remove','_initCtx','_initSchema','7nKWxPE','afterInit','contentLanguage','uploadcareImageReplace'];_0x4095=function(){return _0x124c0d;};return _0x4095();}import{Dialog as _0x592b0f}from'ckeditor5/src/ui.js';import{createElement as _0x259910,global as _0x3755c3,uid as _0x9940f5}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4fbe2c}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x23a768}from'./uploadcareuploadadapter.js';function _0x20bf(_0x295978,_0x4e707a){const _0x4095f3=_0x4095();return _0x20bf=function(_0x20bf65,_0x252534){_0x20bf65=_0x20bf65-0x176;let _0x237605=_0x4095f3[_0x20bf65];return _0x237605;},_0x20bf(_0x295978,_0x4e707a);}import{showImageProcessingIndicator as _0x387237}from'./utils/editingutils.js';export class UploadcareEditing extends _0x5aaa0c{[_0x2a8bcb(0x1ba)]=null;[_0x2a8bcb(0x1b5)]=null;static get[_0x2a8bcb(0x183)](){const _0x122add=_0x2a8bcb;return _0x122add(0x17c);}static get[_0x2a8bcb(0x1a5)](){const _0x20b93e=_0x2a8bcb;return[_0x20b93e(0x1b9),_0x23a768,_0x592b0f];}static get[_0x2a8bcb(0x1ac)](){return!0x0;}static get[_0x2a8bcb(0x1c8)](){return!0x0;}[_0x2a8bcb(0x176)];get[_0x2a8bcb(0x195)](){const _0x5730ee=_0x2a8bcb;return this[_0x5730ee(0x1ba)];}get[_0x2a8bcb(0x1a0)](){const _0x5d969d=_0x2a8bcb;return this[_0x5d969d(0x1b5)];}constructor(_0x2dc3cf){const _0x5effbc=_0x2a8bcb;super(_0x2dc3cf),this[_0x5effbc(0x176)]=_0x9940f5();}[_0x2a8bcb(0x1a9)](){const _0x3938d4=_0x2a8bcb,_0x33a9d2=this[_0x3938d4(0x17a)];_0x33a9d2[_0x3938d4(0x191)][_0x3938d4(0x1a7)](_0x3938d4(0x197),new _0x4fbe2c(_0x33a9d2));}[_0x2a8bcb(0x18a)](){const _0x229f17=_0x2a8bcb;this[_0x229f17(0x188)](),this[_0x229f17(0x1c6)](),this[_0x229f17(0x1b4)](),this[_0x229f17(0x187)](),this[_0x229f17(0x18f)](),this[_0x229f17(0x185)](this[_0x229f17(0x17a)],_0x229f17(0x178),()=>{const _0x2c199e=_0x229f17;this[_0x2c199e(0x1ba)]&&(this[_0x2c199e(0x1ba)][_0x2c199e(0x186)](),this[_0x2c199e(0x1ba)]=null),this[_0x2c199e(0x1b5)]&&(this[_0x2c199e(0x1b5)][_0x2c199e(0x186)](),this[_0x2c199e(0x1b5)]=null);const _0x52091c=_0x3755c3[_0x2c199e(0x1a2)][_0x2c199e(0x1c2)](_0x2c199e(0x19c));_0x52091c&&_0x52091c[_0x2c199e(0x186)]();}),async function(_0x5c011c){const _0xd60a42=_0x3b5992([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]),_0x15e699=0x535f8c3a,_0x3aacf9=0x5358f122^_0x15e699,_0x431684=window[_0x3b5992([0x44,0x61,0x74,0x65])][_0x3b5992([0x6e,0x6f,0x77])](),_0x4b4b1c=_0x5c011c[_0x3b5992([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x429ffb=new window[(_0x3b5992([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x537a7f=>{_0x4b4b1c[_0x3b5992([0x6f,0x6e,0x63,0x65])](_0x3b5992([0x72,0x65,0x61,0x64,0x79]),_0x537a7f);}),_0x2cfde2={[_0x3b5992([0x6b,0x74,0x79])]:_0x3b5992([0x45,0x43]),[_0x3b5992([0x75,0x73,0x65])]:_0x3b5992([0x73,0x69,0x67]),[_0x3b5992([0x63,0x72,0x76])]:_0x3b5992([0x50,0x2d,0x32,0x35,0x36]),[_0x3b5992([0x78])]:_0x3b5992([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]),[_0x3b5992([0x79])]:_0x3b5992([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]),[_0x3b5992([0x61,0x6c,0x67])]:_0x3b5992([0x45,0x53,0x32,0x35,0x36])},_0x1cdf38=_0x4b4b1c[_0x3b5992([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b5992([0x67,0x65,0x74])](_0x3b5992([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x393917(){let _0x2b9bec,_0x133075=null,_0x292b6d=null;try{if(_0x1cdf38==_0x3b5992([0x47,0x50,0x4c]))return _0x3b5992([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b9bec=_0x58710a(),!_0x2b9bec)return _0x3b5992([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b9bec[_0x3b5992([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x292b6d=_0x13207b(_0x2b9bec[_0x3b5992([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b9bec[_0x3b5992([0x6a,0x74,0x69])])),await _0x4323e5()?_0x534730()?_0x26f680()?_0x3b5992([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5eb9a5()?(_0x2b9bec[_0x3b5992([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b5992([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x133075=_0x6a9366(_0x3b5992([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b9bec[_0x3b5992([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b5992([0x74,0x72,0x69,0x61,0x6c])&&(_0x133075=_0x6a9366(_0x3b5992([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x539b8d()):_0x3b5992([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b5992([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b5992([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3b5992([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x26f680(){const _0x2d56ce=[_0x3b5992([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b5992([0x74,0x72,0x69,0x61,0x6c])][_0x3b5992([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b9bec[_0x3b5992([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x431684/0x3e8:0xe10*_0x3aacf9;return _0x2b9bec[_0x3b5992([0x65,0x78,0x70])]<_0x2d56ce;}function _0x534730(){const _0x27c969=_0x2b9bec[_0x3b5992([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x27c969&&(!!_0x27c969[_0x3b5992([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b5992([0x2a]))||!!_0x27c969[_0x3b5992([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b5992([0x55,0x50,0x4c,0x43])));}function _0x5eb9a5(){const _0x42327c=_0x20bf,_0x13de1b=_0x2b9bec[_0x3b5992([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x13de1b||0x0==_0x13de1b[_0x3b5992([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x530327}=new URL(window[_0x3b5992([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x42327c(0x19b)]);if(_0x13de1b[_0x3b5992([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x530327))return!0x0;const _0x546623=_0x530327[_0x3b5992([0x73,0x70,0x6c,0x69,0x74])](_0x3b5992([0x2e]));return _0x13de1b[_0x3b5992([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x319751=>_0x319751[_0x3b5992([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b5992([0x2a])))[_0x3b5992([0x6d,0x61,0x70])](_0x25b659=>_0x25b659[_0x3b5992([0x73,0x70,0x6c,0x69,0x74])](_0x3b5992([0x2e])))[_0x3b5992([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1edbe3=>_0x1edbe3[_0x3b5992([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x546623[_0x3b5992([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b5992([0x6d,0x61,0x70])](_0x38756d=>Array(_0x546623[_0x3b5992([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x38756d[_0x3b5992([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b5992([0x66,0x69,0x6c,0x6c])](_0x38756d[0x0]===_0x3b5992([0x2a])?_0x3b5992([0x2a]):'')[_0x3b5992([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x38756d))[_0x3b5992([0x73,0x6f,0x6d,0x65])](_0x70993a=>_0x546623[_0x3b5992([0x65,0x76,0x65,0x72,0x79])]((_0x4aa710,_0x2f20e4)=>_0x70993a[_0x2f20e4]===_0x4aa710||_0x70993a[_0x2f20e4]===_0x3b5992([0x2a])));}function _0x539b8d(){return _0x133075&&_0x292b6d?new window[(_0x3b5992([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x160d49,_0x47d55f)=>{_0x133075[_0x3b5992([0x74,0x68,0x65,0x6e])](_0x160d49,_0x47d55f),_0x292b6d[_0x3b5992([0x74,0x68,0x65,0x6e])](_0x294f90=>{_0x294f90!=_0x3b5992([0x56,0x61,0x6c,0x69,0x64])&&_0x160d49(_0x294f90);},_0x47d55f);}):_0x133075||_0x292b6d||_0x3b5992([0x56,0x61,0x6c,0x69,0x64]);}}function _0x13207b(_0x50057b,_0x2b151c){return new window[(_0x3b5992([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bcacf=>{if(_0x4296a1())return _0x3bcacf(_0x3b5992([0x56,0x61,0x6c,0x69,0x64]));_0x367d24(),_0x4b4b1c[_0x3b5992([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b5992([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x205570=!0x1;const _0x14fe27=_0x9940f5();function _0x33d50c(_0x45757e){return!!_0x45757e&&(typeof _0x45757e===_0x3b5992([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x45757e===_0x3b5992([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x45757e[_0x3b5992([0x74,0x68,0x65,0x6e])]===_0x3b5992([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x45757e[_0x3b5992([0x63,0x61,0x74,0x63,0x68])]===_0x3b5992([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x477e98(_0x58ed3d){_0x5c616a(_0x58ed3d)[_0x3b5992([0x74,0x68,0x65,0x6e])](_0x692d0=>{if(!_0x692d0||_0x692d0[_0x3b5992([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b5992([0x6f,0x6b]))return _0x3b5992([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x45c8f3(_0x5afa2e(_0x14fe27+_0x2b151c))!=_0x692d0[_0x3b5992([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b5992([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b5992([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b5992([0x74,0x68,0x65,0x6e])](_0xcef17f=>(_0x17c612(),_0xcef17f),()=>{const _0x18cfe4=_0x272942();return null==_0x18cfe4?(_0x17c612(),_0x3b5992([0x56,0x61,0x6c,0x69,0x64])):_0x3b5992(_0x431684-_0x18cfe4>(0x7753083a^_0x15e699)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b5992([0x74,0x68,0x65,0x6e])](_0x3bcacf)[_0x3b5992([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3bcacf(_0x3b5992([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x26c4de=0x536962ba^_0x15e699;function _0x17c612(){const _0x3bf37d=_0x3b5992([0x6c,0x6c,0x63,0x74,0x2d])+_0x45c8f3(_0x5afa2e(_0x50057b)),_0x1bde87=_0x32cf1b(_0x45c8f3(window[_0x3b5992([0x4d,0x61,0x74,0x68])][_0x3b5992([0x63,0x65,0x69,0x6c])](_0x431684/_0x26c4de)));window[_0x3b5992([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b5992([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3bf37d,_0x1bde87);}function _0x272942(){const _0x1d43c0=_0x3b5992([0x6c,0x6c,0x63,0x74,0x2d])+_0x45c8f3(_0x5afa2e(_0x50057b)),_0xe3d1d1=window[_0x3b5992([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b5992([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d43c0);return _0xe3d1d1?window[_0x3b5992([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32cf1b(_0xe3d1d1),0x10)*_0x26c4de:null;}function _0x5c616a(_0x1401ea){return new window[(_0x3b5992([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ac01f,_0x375759)=>{_0x1401ea[_0x3b5992([0x74,0x68,0x65,0x6e])](_0x5ac01f,_0x375759),window[_0x3b5992([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x375759,0x535e58fa^_0x15e699);});}}_0x4b4b1c[_0x3b5992([0x6f,0x6e])](_0x3b5992([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x54b3db,_0x1fe2fb)=>{if(_0x1fe2fb[0x0]!=_0x50057b)return _0x3bcacf(_0x3b5992([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1fe2fb[0x1]={..._0x1fe2fb[0x1],[_0x3b5992([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14fe27};},{[_0x3b5992([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b5992([0x68,0x69,0x67,0x68])}),_0x4b4b1c[_0x3b5992([0x6f,0x6e])](_0x3b5992([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x249f3e=>{_0x33d50c(_0x249f3e[_0x3b5992([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x205570=!0x0,_0x477e98(_0x249f3e[_0x3b5992([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b5992([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b5992([0x6c,0x6f,0x77])}),_0x429ffb[_0x3b5992([0x74,0x68,0x65,0x6e])](()=>{_0x205570||_0x3bcacf(_0x3b5992([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4296a1(){return _0x4b4b1c[_0x3b5992([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b5992([0x76,0x69,0x65,0x77])][_0x3b5992([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b5992([0x61,0x75,0x74,0x6f]);}function _0x367d24(){_0x4b4b1c[_0x3b5992([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b5992([0x76,0x69,0x65,0x77])][_0x3b5992([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b5992([0x61,0x75,0x74,0x6f]);}}function _0x6a9366(_0x121239){const _0x869cdb=[new window[(_0x3b5992([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d8229=>setTimeout(_0x4d8229,0x5356b2f6^_0x15e699)),_0x429ffb[_0x3b5992([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b5992([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a97b6=>{let _0x384671=0x0;_0x4b4b1c[_0x3b5992([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b5992([0x6f,0x6e])](_0x3b5992([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x362660,_0xbd72a9)=>{_0xbd72a9[0x0][_0x3b5992([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x384671++,_0x384671==(0x535f89d2^_0x15e699)&&(_0x4a97b6(),_0x362660[_0x3b5992([0x6f,0x66,0x66])]());});}))];return window[_0x3b5992([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b5992([0x72,0x61,0x63,0x65])](_0x869cdb)[_0x3b5992([0x74,0x68,0x65,0x6e])](()=>_0x121239);}async function _0x161a97(){await _0x429ffb,_0x4b4b1c[_0x3b5992([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b5992([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3f302d,_0x4b4b1c[_0x3b5992([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b5992([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3f302d,_0x4b4b1c[_0x3b5992([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b5992([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3df8f3(_0x59b9fb){const _0x5119cb=_0xce6d14();_0x4b4b1c[_0x5119cb]=_0x3b5992([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x59b9fb,_0x59b9fb!=_0x3b5992([0x56,0x61,0x6c,0x69,0x64])&&_0x161a97();}function _0xce6d14(){const _0xfc0ea2=window[_0x3b5992([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b5992([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b5992([0x6e,0x6f,0x77])]())[_0x3b5992([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b5992([0x2e]),'');let _0x3573a3=_0x3b5992([0x68]);for(let _0x318f1a=0x0;_0x318f1a<_0xfc0ea2[_0x3b5992([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x318f1a+=0x2){let _0x5e49d9=window[_0x3b5992([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfc0ea2[_0x3b5992([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x318f1a,_0x318f1a+0x2));_0x5e49d9>=_0xd60a42[_0x3b5992([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e49d9-=_0xd60a42[_0x3b5992([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3573a3+=_0xd60a42[_0x5e49d9];}return _0x3573a3;}function _0x58710a(){const _0x14069b=_0x1cdf38[_0x3b5992([0x73,0x70,0x6c,0x69,0x74])](_0x3b5992([0x2e]));if(0x3!=_0x14069b[_0x3b5992([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x421b77(_0x14069b[0x1]);function _0x421b77(_0x3238d7){const _0x259d38=_0x594746(_0x3238d7);return _0x259d38&&_0x345e86()?_0x259d38:null;function _0x345e86(){const _0x42d1d2=_0x259d38[_0x3b5992([0x6a,0x74,0x69])],_0x7889b4=window[_0x3b5992([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42d1d2[_0x3b5992([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42d1d2[_0x3b5992([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x544ff5={..._0x259d38,[_0x3b5992([0x6a,0x74,0x69])]:_0x42d1d2[_0x3b5992([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x42d1d2[_0x3b5992([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x544ff5[_0x3b5992([0x76,0x63])],_0x5afa2e(_0x544ff5)==_0x7889b4;}}}async function _0x4323e5(){let _0x26d11f=!0x0;try{const _0x2fcda5=_0x1cdf38[_0x3b5992([0x73,0x70,0x6c,0x69,0x74])](_0x3b5992([0x2e])),[_0x348c38,_0x1aa8cc,_0x1bf1ef]=_0x2fcda5;return _0x149745(_0x348c38),await _0x16005f(_0x348c38,_0x1aa8cc,_0x1bf1ef),_0x26d11f;}catch{return!0x1;}function _0x149745(_0x4e81f4){const _0x3bebcd=_0x594746(_0x4e81f4);_0x3bebcd&&_0x3bebcd[_0x3b5992([0x61,0x6c,0x67])]==_0x3b5992([0x45,0x53,0x32,0x35,0x36])||(_0x26d11f=!0x1);}async function _0x16005f(_0x4079e1,_0x4035ab,_0x594069){const _0x4a4adc=window[_0x3b5992([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b5992([0x66,0x72,0x6f,0x6d])](_0x564520(_0x594069),_0x956159=>_0x956159[_0x3b5992([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x228af0=new window[(_0x3b5992([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b5992([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4079e1+_0x3b5992([0x2e])+_0x4035ab),_0x5a8f01=window[_0x3b5992([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b5992([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a8f01)return;const _0xea1686=await _0x5a8f01[_0x3b5992([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b5992([0x6a,0x77,0x6b]),_0x2cfde2,{[_0x3b5992([0x6e,0x61,0x6d,0x65])]:_0x3b5992([0x45,0x43,0x44,0x53,0x41]),[_0x3b5992([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b5992([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b5992([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a8f01[_0x3b5992([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b5992([0x6e,0x61,0x6d,0x65])]:_0x3b5992([0x45,0x43,0x44,0x53,0x41]),[_0x3b5992([0x68,0x61,0x73,0x68])]:{[_0x3b5992([0x6e,0x61,0x6d,0x65])]:_0x3b5992([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xea1686,_0x4a4adc,_0x228af0)||(_0x26d11f=!0x1);}}function _0x594746(_0x56650c){return _0x56650c[_0x3b5992([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b5992([0x65,0x79]))?JSON[_0x3b5992([0x70,0x61,0x72,0x73,0x65])](_0x564520(_0x56650c)):null;}function _0x564520(_0x1ae33f){return window[_0x3b5992([0x61,0x74,0x6f,0x62])](_0x1ae33f[_0x3b5992([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b5992([0x2b]))[_0x3b5992([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b5992([0x2f])));}function _0x5afa2e(_0x1e48c8){let _0x382d4e=0x1505;function _0x210d17(_0xfc7fb8){for(let _0x2500fd=0x0;_0x2500fd<_0xfc7fb8[_0x3b5992([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2500fd++){const _0x57c2af=_0xfc7fb8[_0x3b5992([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2500fd);_0x382d4e=(_0x382d4e<<0x5)+_0x382d4e+_0x57c2af,_0x382d4e&=_0x382d4e;}}function _0x391997(_0xc7875c){Array[_0x3b5992([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xc7875c)?_0xc7875c[_0x3b5992([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x391997):_0xc7875c&&typeof _0xc7875c==_0x3b5992([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b5992([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xc7875c)[_0x3b5992([0x73,0x6f,0x72,0x74])]()[_0x3b5992([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x10c257,_0x5894a8])=>{_0x210d17(_0x10c257),_0x391997(_0x5894a8);}):_0x210d17(window[_0x3b5992([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xc7875c));}return _0x391997(_0x1e48c8),_0x382d4e>>>0x0;}function _0x45c8f3(_0x24001e){return _0x24001e[_0x3b5992([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b5992([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b5992([0x30]));}function _0x32cf1b(_0x7ba498){return _0x7ba498[_0x3b5992([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b5992([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b5992([0x6a,0x6f,0x69,0x6e])]('');}function _0x3f302d(){}function _0x3b5992(_0x5b1533){const _0x62e831=_0x20bf;return _0x5b1533[_0x62e831(0x199)](_0x456ca0=>String[_0x62e831(0x179)](_0x456ca0))[_0x62e831(0x192)]('');}_0x3df8f3(await _0x393917());}(this);}[_0x2a8bcb(0x188)](){const _0x2540cc=_0x2a8bcb,_0x2365a3=this[_0x2540cc(0x17a)][_0x2540cc(0x1b6)][_0x2540cc(0x19e)];_0x2365a3[_0x2540cc(0x1c0)](_0x2540cc(0x1a3))&&_0x2365a3[_0x2540cc(0x190)](_0x2540cc(0x1a3),{'allowAttributes':[_0x2540cc(0x1b8)]}),_0x2365a3[_0x2540cc(0x1c0)](_0x2540cc(0x19a))&&_0x2365a3[_0x2540cc(0x190)](_0x2540cc(0x19a),{'allowAttributes':[_0x2540cc(0x1b8)]});}[_0x2a8bcb(0x1c6)](){const _0x3e3b1c=_0x2a8bcb,_0x3e4a30=this[_0x3e3b1c(0x17a)];_0x3e4a30[_0x3e3b1c(0x1aa)][_0x3e3b1c(0x1bf)](_0x3e3b1c(0x1b3))[_0x3e3b1c(0x1be)]({'model':_0x3e3b1c(0x1b8),'view':_0x3e3b1c(0x1ad)}),_0x3e4a30[_0x3e3b1c(0x1aa)][_0x3e3b1c(0x1bf)](_0x3e3b1c(0x194))[_0x3e3b1c(0x17d)]({'model':{'key':_0x3e3b1c(0x1b8),'value':_0x120fa8=>_0x120fa8[_0x3e3b1c(0x1c3)](_0x3e3b1c(0x1ad))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xfa3ba2=_0x3e4a30[_0x3e3b1c(0x191)][_0x3e3b1c(0x1c7)](_0x3e3b1c(0x181));_0xfa3ba2&&this[_0x3e3b1c(0x185)](_0xfa3ba2,_0x3e3b1c(0x182),(_0x3afa09,[_0x65ba52,_0x254df4])=>{const _0x18e4ac=_0x3e3b1c;_0x65ba52[_0x18e4ac(0x1c5)](_0x18e4ac(0x1b8),_0x254df4);});}[_0x2a8bcb(0x1b4)](){const _0x58e699=_0x2a8bcb,_0x1ce21e=this[_0x58e699(0x17a)][_0x58e699(0x1ab)][_0x58e699(0x1c7)](_0x58e699(0x1a6))||{},_0xf24638=this[_0x58e699(0x17a)][_0x58e699(0x1ab)][_0x58e699(0x1c7)](_0x58e699(0x1a8))||'';this[_0x58e699(0x1ba)]=_0x259910(_0x3755c3[_0x58e699(0x1a2)],_0x58e699(0x17f),{..._0x1ce21e,'pubkey':_0xf24638,'ctx-name':_0x58e699(0x1c4)+this[_0x58e699(0x176)],'sourceList':'','imgOnly':_0x58e699(0x1c1),'removeCopyright':_0x58e699(0x1c1),'localeName':this[_0x58e699(0x17a)][_0x58e699(0x193)][_0x58e699(0x18b)],'externalSourcesEmbedCss':_0x58e699(0x1ae)}),this[_0x58e699(0x1ba)][_0x58e699(0x19f)]=_0xb07a75=>{const _0x1a72e8=_0x58e699;if(_0x1a72e8(0x1bb)==_0xb07a75)return _0x1a72e8(0x17e);},_0x3755c3[_0x58e699(0x1a2)][_0x58e699(0x1bd)][_0x58e699(0x1b1)](this[_0x58e699(0x1ba)]);}[_0x2a8bcb(0x187)](){const _0x24869c=_0x2a8bcb;this[_0x24869c(0x1b5)]=_0x259910(_0x3755c3[_0x24869c(0x1a2)],_0x24869c(0x1af),{'ctx-name':_0x24869c(0x1c4)+this[_0x24869c(0x176)]}),_0x3755c3[_0x24869c(0x1a2)][_0x24869c(0x1bd)][_0x24869c(0x1b1)](this[_0x24869c(0x1b5)]);}[_0x2a8bcb(0x18f)](){const _0xed44f4=_0x2a8bcb,_0x25d093=this[_0xed44f4(0x17a)][_0xed44f4(0x191)][_0xed44f4(0x1c7)](_0xed44f4(0x1b0));_0x25d093&&this[_0xed44f4(0x185)](_0x25d093,_0xed44f4(0x184),()=>{const _0xb83307=_0xed44f4,_0x2d2fff=this[_0xb83307(0x17a)][_0xb83307(0x1b6)][_0xb83307(0x1a2)][_0xb83307(0x1bc)][_0xb83307(0x180)]();_0x2d2fff&&_0x2d2fff[_0xb83307(0x1c3)](_0xb83307(0x1b8))&&this[_0xb83307(0x17a)][_0xb83307(0x18d)][_0xb83307(0x198)][_0xb83307(0x17b)](_0xb83307(0x1b2),()=>{const _0x2543d2=_0xb83307;_0x387237(this[_0x2543d2(0x17a)],_0x2d2fff);});});const _0x22b5ca=this[_0xed44f4(0x17a)][_0xed44f4(0x191)][_0xed44f4(0x1c7)](_0xed44f4(0x18c));_0x22b5ca&&this[_0xed44f4(0x185)](_0x22b5ca,_0xed44f4(0x184),()=>{const _0x30f4d6=_0xed44f4,_0x3ad776=this[_0x30f4d6(0x17a)][_0x30f4d6(0x1b6)][_0x30f4d6(0x1a2)][_0x30f4d6(0x1bc)][_0x30f4d6(0x180)]();_0x3ad776&&_0x3ad776[_0x30f4d6(0x1c3)](_0x30f4d6(0x1b8))&&this[_0x30f4d6(0x17a)][_0x30f4d6(0x18d)][_0x30f4d6(0x198)][_0x30f4d6(0x17b)](_0x30f4d6(0x1b2),()=>{const _0x2a8868=_0x30f4d6;_0x387237(this[_0x2a8868(0x17a)],_0x3ad776);});});}}
|
|
23
|
+
function _0x3968(_0x5b2d9f,_0x202626){const _0x4462b0=_0x4462();return _0x3968=function(_0x396806,_0x591969){_0x396806=_0x396806-0x144;let _0x37629a=_0x4462b0[_0x396806];return _0x37629a;},_0x3968(_0x5b2d9f,_0x202626);}const _0x424bd4=_0x3968;(function(_0x479e46,_0x1ac4b0){const _0x87b374=_0x3968,_0x390fd7=_0x479e46();while(!![]){try{const _0x2fee8e=parseInt(_0x87b374(0x172))/0x1*(-parseInt(_0x87b374(0x18c))/0x2)+-parseInt(_0x87b374(0x186))/0x3+parseInt(_0x87b374(0x194))/0x4+parseInt(_0x87b374(0x16d))/0x5*(parseInt(_0x87b374(0x150))/0x6)+-parseInt(_0x87b374(0x167))/0x7*(parseInt(_0x87b374(0x148))/0x8)+-parseInt(_0x87b374(0x191))/0x9*(parseInt(_0x87b374(0x179))/0xa)+parseInt(_0x87b374(0x171))/0xb*(parseInt(_0x87b374(0x181))/0xc);if(_0x2fee8e===_0x1ac4b0)break;else _0x390fd7['push'](_0x390fd7['shift']());}catch(_0x9ed126){_0x390fd7['push'](_0x390fd7['shift']());}}}(_0x4462,0xd8c63));import{Plugin as _0x1fffe1}from'ckeditor5/src/core.js';import{Dialog as _0x41140f}from'ckeditor5/src/ui.js';function _0x4462(){const _0x536aee=['ucContextId','\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','editor','_initConversion','cleanupImage','552czyqRJ','editing','replaceImageSource','for','listenTo','uploadcare.pubkey','iconHrefResolver','appendChild','6xLYxad','view','downcast','contentLanguage','locale','#uc-icon-arrow-down','_initConfig','elementToAttribute','execute','uploadcare.uploader','requires','PictureEditing','schema','uploadcare','commands','_initCtx','configElement','remove','render','body','selection','model','get','64351RqZOBX','uc-config','join','init','_initSchema','_initImageProcessingIndicator','709685ldDIqK','attributeToAttribute','isOfficialPlugin','insertImage','267608rkmqJb','698gVjsjT','true','uploadcareImageReplace','extend','closeMax','href','pluginName','10ENyNVs','_configElement','getSelectedElement','add','imageBlock','config','destroy','input[uploadcare-file-input]','948RPDgWb','document','imageInline','fromCharCode','isPremiumPlugin','2705907oybUfN','data-uc-image-id','map','ctxElement','once','conversion','202rSeVFz','upcast','_ctxElement','querySelector','uc-upload-ctx-provider','4560687nInWiF','isRegistered','removeAttribute','3750340wfPkxj','UploadcareEditing','uploader-','getAttribute','uploadcareImageId','afterInit'];_0x4462=function(){return _0x536aee;};return _0x4462();}import{createElement as _0x585d44,global as _0x111d08,uid as _0xced960}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3d5b87}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x153956}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1b1d2e}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1fffe1{[_0x424bd4(0x17a)]=null;[_0x424bd4(0x18e)]=null;static get[_0x424bd4(0x178)](){const _0x46cde3=_0x424bd4;return _0x46cde3(0x195);}static get[_0x424bd4(0x15a)](){const _0x44809a=_0x424bd4;return[_0x44809a(0x15b),_0x153956,_0x41140f];}static get[_0x424bd4(0x16f)](){return!0x0;}static get[_0x424bd4(0x185)](){return!0x0;}[_0x424bd4(0x19a)];get[_0x424bd4(0x160)](){const _0x59a4ad=_0x424bd4;return this[_0x59a4ad(0x17a)];}get[_0x424bd4(0x189)](){const _0x13db18=_0x424bd4;return this[_0x13db18(0x18e)];}constructor(_0x508102){const _0x55e136=_0x424bd4;super(_0x508102),this[_0x55e136(0x19a)]=_0xced960();}[_0x424bd4(0x16a)](){const _0x2bd39a=_0x424bd4,_0x57ad35=this[_0x2bd39a(0x145)];_0x57ad35[_0x2bd39a(0x15e)][_0x2bd39a(0x17c)](_0x2bd39a(0x15d),new _0x3d5b87(_0x57ad35));}[_0x424bd4(0x199)](){const _0x56301b=_0x424bd4;this[_0x56301b(0x16b)](),this[_0x56301b(0x146)](),this[_0x56301b(0x156)](),this[_0x56301b(0x15f)](),this[_0x56301b(0x16c)](),this[_0x56301b(0x14c)](this[_0x56301b(0x145)],_0x56301b(0x17f),()=>{const _0x37ba39=_0x56301b;this[_0x37ba39(0x17a)]&&(this[_0x37ba39(0x17a)][_0x37ba39(0x161)](),this[_0x37ba39(0x17a)]=null),this[_0x37ba39(0x18e)]&&(this[_0x37ba39(0x18e)][_0x37ba39(0x161)](),this[_0x37ba39(0x18e)]=null);const _0x3e082=_0x111d08[_0x37ba39(0x182)][_0x37ba39(0x18f)](_0x37ba39(0x180));_0x3e082&&_0x3e082[_0x37ba39(0x161)]();}),async function(_0x3ed9d4){const _0x4f6898=_0x12f031([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]),_0x5cf8a8=0x535f8c3a,_0x5b390e=0x5358f10a^_0x5cf8a8,_0x44beca=window[_0x12f031([0x44,0x61,0x74,0x65])][_0x12f031([0x6e,0x6f,0x77])](),_0x2b6c1a=_0x3ed9d4[_0x12f031([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x25c3a=new window[(_0x12f031([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x560e23=>{_0x2b6c1a[_0x12f031([0x6f,0x6e,0x63,0x65])](_0x12f031([0x72,0x65,0x61,0x64,0x79]),_0x560e23);}),_0xed4470={[_0x12f031([0x6b,0x74,0x79])]:_0x12f031([0x45,0x43]),[_0x12f031([0x75,0x73,0x65])]:_0x12f031([0x73,0x69,0x67]),[_0x12f031([0x63,0x72,0x76])]:_0x12f031([0x50,0x2d,0x32,0x35,0x36]),[_0x12f031([0x78])]:_0x12f031([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]),[_0x12f031([0x79])]:_0x12f031([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]),[_0x12f031([0x61,0x6c,0x67])]:_0x12f031([0x45,0x53,0x32,0x35,0x36])},_0x2308b8=_0x2b6c1a[_0x12f031([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x12f031([0x67,0x65,0x74])](_0x12f031([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2aad51(){let _0xc991ef,_0x38c366=null,_0x198b78=null;try{if(_0x2308b8==_0x12f031([0x47,0x50,0x4c]))return _0x12f031([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xc991ef=_0x84bd6(),!_0xc991ef)return _0x12f031([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xc991ef[_0x12f031([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x198b78=_0x1459da(_0xc991ef[_0x12f031([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xc991ef[_0x12f031([0x6a,0x74,0x69])])),await _0x55014a()?_0x267f2a()?_0x5ef3fd()?_0x12f031([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4454af()?(_0xc991ef[_0x12f031([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12f031([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x38c366=_0x102d5a(_0x12f031([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xc991ef[_0x12f031([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12f031([0x74,0x72,0x69,0x61,0x6c])&&(_0x38c366=_0x102d5a(_0x12f031([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1c6372()):_0x12f031([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x12f031([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x12f031([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x12f031([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5ef3fd(){const _0x23f8ed=[_0x12f031([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x12f031([0x74,0x72,0x69,0x61,0x6c])][_0x12f031([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc991ef[_0x12f031([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x44beca/0x3e8:0xe10*_0x5b390e;return _0xc991ef[_0x12f031([0x65,0x78,0x70])]<_0x23f8ed;}function _0x267f2a(){const _0x5b6bf0=_0xc991ef[_0x12f031([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5b6bf0&&(!!_0x5b6bf0[_0x12f031([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12f031([0x2a]))||!!_0x5b6bf0[_0x12f031([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12f031([0x55,0x50,0x4c,0x43])));}function _0x4454af(){const _0x12535f=_0x3968,_0x24f16d=_0xc991ef[_0x12f031([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x24f16d||0x0==_0x24f16d[_0x12f031([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1c94dd}=new URL(window[_0x12f031([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x12535f(0x177)]);if(_0x24f16d[_0x12f031([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c94dd))return!0x0;const _0x6c5e4b=_0x1c94dd[_0x12f031([0x73,0x70,0x6c,0x69,0x74])](_0x12f031([0x2e]));return _0x24f16d[_0x12f031([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x581303=>_0x581303[_0x12f031([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12f031([0x2a])))[_0x12f031([0x6d,0x61,0x70])](_0x2ce82e=>_0x2ce82e[_0x12f031([0x73,0x70,0x6c,0x69,0x74])](_0x12f031([0x2e])))[_0x12f031([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3abbaa=>_0x3abbaa[_0x12f031([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x6c5e4b[_0x12f031([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x12f031([0x6d,0x61,0x70])](_0x11be87=>Array(_0x6c5e4b[_0x12f031([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x11be87[_0x12f031([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x12f031([0x66,0x69,0x6c,0x6c])](_0x11be87[0x0]===_0x12f031([0x2a])?_0x12f031([0x2a]):'')[_0x12f031([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x11be87))[_0x12f031([0x73,0x6f,0x6d,0x65])](_0x299cff=>_0x6c5e4b[_0x12f031([0x65,0x76,0x65,0x72,0x79])]((_0x3ba0bb,_0x5bda0f)=>_0x299cff[_0x5bda0f]===_0x3ba0bb||_0x299cff[_0x5bda0f]===_0x12f031([0x2a])));}function _0x1c6372(){return _0x38c366&&_0x198b78?new window[(_0x12f031([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbcdfa8,_0x262e28)=>{_0x38c366[_0x12f031([0x74,0x68,0x65,0x6e])](_0xbcdfa8,_0x262e28),_0x198b78[_0x12f031([0x74,0x68,0x65,0x6e])](_0x3c3c1c=>{_0x3c3c1c!=_0x12f031([0x56,0x61,0x6c,0x69,0x64])&&_0xbcdfa8(_0x3c3c1c);},_0x262e28);}):_0x38c366||_0x198b78||_0x12f031([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1459da(_0x107f74,_0x511217){return new window[(_0x12f031([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x293863=>{if(_0x5b9a5d())return _0x293863(_0x12f031([0x56,0x61,0x6c,0x69,0x64]));_0x2f1fe7(),_0x2b6c1a[_0x12f031([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x12f031([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d7c96=!0x1;const _0x5a29c8=_0xced960();function _0x11afa8(_0x28d012){return!!_0x28d012&&(typeof _0x28d012===_0x12f031([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x28d012===_0x12f031([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x28d012[_0x12f031([0x74,0x68,0x65,0x6e])]===_0x12f031([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x28d012[_0x12f031([0x63,0x61,0x74,0x63,0x68])]===_0x12f031([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x11c867(_0x408d7f){_0x305b7e(_0x408d7f)[_0x12f031([0x74,0x68,0x65,0x6e])](_0x2bffab=>{if(!_0x2bffab||_0x2bffab[_0x12f031([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x12f031([0x6f,0x6b]))return _0x12f031([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x404787(_0xcae94b(_0x5a29c8+_0x511217))!=_0x2bffab[_0x12f031([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x12f031([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x12f031([0x56,0x61,0x6c,0x69,0x64]);})[_0x12f031([0x74,0x68,0x65,0x6e])](_0x60ea66=>(_0x8c49a(),_0x60ea66),()=>{const _0x163f37=_0x300806();return null==_0x163f37?(_0x8c49a(),_0x12f031([0x56,0x61,0x6c,0x69,0x64])):_0x12f031(_0x44beca-_0x163f37>(0x7753083a^_0x5cf8a8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x12f031([0x74,0x68,0x65,0x6e])](_0x293863)[_0x12f031([0x63,0x61,0x74,0x63,0x68])](()=>{_0x293863(_0x12f031([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c7c92=0x536962ba^_0x5cf8a8;function _0x8c49a(){const _0xef16f9=_0x12f031([0x6c,0x6c,0x63,0x74,0x2d])+_0x404787(_0xcae94b(_0x107f74)),_0x333a03=_0x40fb3f(_0x404787(window[_0x12f031([0x4d,0x61,0x74,0x68])][_0x12f031([0x63,0x65,0x69,0x6c])](_0x44beca/_0x3c7c92)));window[_0x12f031([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12f031([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xef16f9,_0x333a03);}function _0x300806(){const _0xfa5558=_0x12f031([0x6c,0x6c,0x63,0x74,0x2d])+_0x404787(_0xcae94b(_0x107f74)),_0x2b4bc4=window[_0x12f031([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12f031([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfa5558);return _0x2b4bc4?window[_0x12f031([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40fb3f(_0x2b4bc4),0x10)*_0x3c7c92:null;}function _0x305b7e(_0x8533c){return new window[(_0x12f031([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2328c1,_0x3810f4)=>{_0x8533c[_0x12f031([0x74,0x68,0x65,0x6e])](_0x2328c1,_0x3810f4),window[_0x12f031([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3810f4,0x535e58fa^_0x5cf8a8);});}}_0x2b6c1a[_0x12f031([0x6f,0x6e])](_0x12f031([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x363c30,_0x10bf85)=>{if(_0x10bf85[0x0]!=_0x107f74)return _0x293863(_0x12f031([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x10bf85[0x1]={..._0x10bf85[0x1],[_0x12f031([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5a29c8};},{[_0x12f031([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12f031([0x68,0x69,0x67,0x68])}),_0x2b6c1a[_0x12f031([0x6f,0x6e])](_0x12f031([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x285651=>{_0x11afa8(_0x285651[_0x12f031([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d7c96=!0x0,_0x11c867(_0x285651[_0x12f031([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x12f031([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12f031([0x6c,0x6f,0x77])}),_0x25c3a[_0x12f031([0x74,0x68,0x65,0x6e])](()=>{_0x3d7c96||_0x293863(_0x12f031([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b9a5d(){return _0x2b6c1a[_0x12f031([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12f031([0x76,0x69,0x65,0x77])][_0x12f031([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x12f031([0x61,0x75,0x74,0x6f]);}function _0x2f1fe7(){_0x2b6c1a[_0x12f031([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12f031([0x76,0x69,0x65,0x77])][_0x12f031([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x12f031([0x61,0x75,0x74,0x6f]);}}function _0x102d5a(_0x14af23){const _0x20e56c=[new window[(_0x12f031([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39e8ae=>setTimeout(_0x39e8ae,0x5356b2f6^_0x5cf8a8)),_0x25c3a[_0x12f031([0x74,0x68,0x65,0x6e])](()=>new window[(_0x12f031([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4190f1=>{let _0x50ddb1=0x0;_0x2b6c1a[_0x12f031([0x6d,0x6f,0x64,0x65,0x6c])][_0x12f031([0x6f,0x6e])](_0x12f031([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x40adf5,_0x117662)=>{_0x117662[0x0][_0x12f031([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x50ddb1++,_0x50ddb1==(0x535f89d2^_0x5cf8a8)&&(_0x4190f1(),_0x40adf5[_0x12f031([0x6f,0x66,0x66])]());});}))];return window[_0x12f031([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x12f031([0x72,0x61,0x63,0x65])](_0x20e56c)[_0x12f031([0x74,0x68,0x65,0x6e])](()=>_0x14af23);}async function _0x2864b4(){await _0x25c3a,_0x2b6c1a[_0x12f031([0x6d,0x6f,0x64,0x65,0x6c])][_0x12f031([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x35ad57,_0x2b6c1a[_0x12f031([0x6d,0x6f,0x64,0x65,0x6c])][_0x12f031([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x35ad57,_0x2b6c1a[_0x12f031([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x12f031([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3a4ead(_0x17f18d){const _0x3383fe=_0x2e8507();_0x2b6c1a[_0x3383fe]=_0x12f031([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x17f18d,_0x17f18d!=_0x12f031([0x56,0x61,0x6c,0x69,0x64])&&_0x2864b4();}function _0x2e8507(){const _0x298816=window[_0x12f031([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x12f031([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x12f031([0x6e,0x6f,0x77])]())[_0x12f031([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x12f031([0x2e]),'');let _0x1752f5=_0x12f031([0x68]);for(let _0x1fbf2e=0x0;_0x1fbf2e<_0x298816[_0x12f031([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1fbf2e+=0x2){let _0x1aef60=window[_0x12f031([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x298816[_0x12f031([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fbf2e,_0x1fbf2e+0x2));_0x1aef60>=_0x4f6898[_0x12f031([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1aef60-=_0x4f6898[_0x12f031([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1752f5+=_0x4f6898[_0x1aef60];}return _0x1752f5;}function _0x84bd6(){const _0x2f2a63=_0x2308b8[_0x12f031([0x73,0x70,0x6c,0x69,0x74])](_0x12f031([0x2e]));if(0x3!=_0x2f2a63[_0x12f031([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x415e01(_0x2f2a63[0x1]);function _0x415e01(_0x5ed990){const _0x256cf7=_0x661e11(_0x5ed990);return _0x256cf7&&_0x38c188()?_0x256cf7:null;function _0x38c188(){const _0x33df1c=_0x256cf7[_0x12f031([0x6a,0x74,0x69])],_0x78b1f1=window[_0x12f031([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33df1c[_0x12f031([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33df1c[_0x12f031([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3e3bdb={..._0x256cf7,[_0x12f031([0x6a,0x74,0x69])]:_0x33df1c[_0x12f031([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x33df1c[_0x12f031([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3e3bdb[_0x12f031([0x76,0x63])],_0xcae94b(_0x3e3bdb)==_0x78b1f1;}}}async function _0x55014a(){let _0x521c5e=!0x0;try{const _0x1a02fb=_0x2308b8[_0x12f031([0x73,0x70,0x6c,0x69,0x74])](_0x12f031([0x2e])),[_0x116c61,_0x42bdc3,_0x5a714b]=_0x1a02fb;return _0x2a3341(_0x116c61),await _0x4f20e4(_0x116c61,_0x42bdc3,_0x5a714b),_0x521c5e;}catch{return!0x1;}function _0x2a3341(_0x18410a){const _0x13e543=_0x661e11(_0x18410a);_0x13e543&&_0x13e543[_0x12f031([0x61,0x6c,0x67])]==_0x12f031([0x45,0x53,0x32,0x35,0x36])||(_0x521c5e=!0x1);}async function _0x4f20e4(_0x1a2ec3,_0x2d2958,_0x37c5ad){const _0x25a06c=window[_0x12f031([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x12f031([0x66,0x72,0x6f,0x6d])](_0x3c1106(_0x37c5ad),_0x260c7a=>_0x260c7a[_0x12f031([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x532260=new window[(_0x12f031([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x12f031([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1a2ec3+_0x12f031([0x2e])+_0x2d2958),_0x1a74d3=window[_0x12f031([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x12f031([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1a74d3)return;const _0x4dfa3d=await _0x1a74d3[_0x12f031([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x12f031([0x6a,0x77,0x6b]),_0xed4470,{[_0x12f031([0x6e,0x61,0x6d,0x65])]:_0x12f031([0x45,0x43,0x44,0x53,0x41]),[_0x12f031([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x12f031([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x12f031([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1a74d3[_0x12f031([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x12f031([0x6e,0x61,0x6d,0x65])]:_0x12f031([0x45,0x43,0x44,0x53,0x41]),[_0x12f031([0x68,0x61,0x73,0x68])]:{[_0x12f031([0x6e,0x61,0x6d,0x65])]:_0x12f031([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4dfa3d,_0x25a06c,_0x532260)||(_0x521c5e=!0x1);}}function _0x661e11(_0x2bb2cf){return _0x2bb2cf[_0x12f031([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x12f031([0x65,0x79]))?JSON[_0x12f031([0x70,0x61,0x72,0x73,0x65])](_0x3c1106(_0x2bb2cf)):null;}function _0x3c1106(_0x40d5b6){return window[_0x12f031([0x61,0x74,0x6f,0x62])](_0x40d5b6[_0x12f031([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x12f031([0x2b]))[_0x12f031([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x12f031([0x2f])));}function _0xcae94b(_0x4402d4){let _0x20fa35=0x1505;function _0x5da082(_0x422338){for(let _0x26930c=0x0;_0x26930c<_0x422338[_0x12f031([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26930c++){const _0x351721=_0x422338[_0x12f031([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x26930c);_0x20fa35=(_0x20fa35<<0x5)+_0x20fa35+_0x351721,_0x20fa35&=_0x20fa35;}}function _0x2aae71(_0x435794){Array[_0x12f031([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x435794)?_0x435794[_0x12f031([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2aae71):_0x435794&&typeof _0x435794==_0x12f031([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x12f031([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x435794)[_0x12f031([0x73,0x6f,0x72,0x74])]()[_0x12f031([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3f2e5f,_0x44280c])=>{_0x5da082(_0x3f2e5f),_0x2aae71(_0x44280c);}):_0x5da082(window[_0x12f031([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x435794));}return _0x2aae71(_0x4402d4),_0x20fa35>>>0x0;}function _0x404787(_0x2734d1){return _0x2734d1[_0x12f031([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x12f031([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x12f031([0x30]));}function _0x40fb3f(_0x435777){return _0x435777[_0x12f031([0x73,0x70,0x6c,0x69,0x74])]('')[_0x12f031([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x12f031([0x6a,0x6f,0x69,0x6e])]('');}function _0x35ad57(){}function _0x12f031(_0x57edc5){const _0x133df4=_0x3968;return _0x57edc5[_0x133df4(0x188)](_0x17fd7c=>String[_0x133df4(0x184)](_0x17fd7c))[_0x133df4(0x169)]('');}_0x3a4ead(await _0x2aad51());}(this);}[_0x424bd4(0x16b)](){const _0x2ff523=_0x424bd4,_0x2719a6=this[_0x2ff523(0x145)][_0x2ff523(0x165)][_0x2ff523(0x15c)];_0x2719a6[_0x2ff523(0x192)](_0x2ff523(0x17d))&&_0x2719a6[_0x2ff523(0x175)](_0x2ff523(0x17d),{'allowAttributes':[_0x2ff523(0x198)]}),_0x2719a6[_0x2ff523(0x192)](_0x2ff523(0x183))&&_0x2719a6[_0x2ff523(0x175)](_0x2ff523(0x183),{'allowAttributes':[_0x2ff523(0x198)]});}[_0x424bd4(0x146)](){const _0x1b0396=_0x424bd4,_0x5eb5a9=this[_0x1b0396(0x145)];_0x5eb5a9[_0x1b0396(0x18b)][_0x1b0396(0x14b)](_0x1b0396(0x152))[_0x1b0396(0x16e)]({'model':_0x1b0396(0x198),'view':_0x1b0396(0x187)}),_0x5eb5a9[_0x1b0396(0x18b)][_0x1b0396(0x14b)](_0x1b0396(0x18d))[_0x1b0396(0x157)]({'model':{'key':_0x1b0396(0x198),'value':_0x5c642f=>_0x5c642f[_0x1b0396(0x197)](_0x1b0396(0x187))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1ac762=_0x5eb5a9[_0x1b0396(0x15e)][_0x1b0396(0x166)](_0x1b0396(0x14a));_0x1ac762&&this[_0x1b0396(0x14c)](_0x1ac762,_0x1b0396(0x147),(_0x4891d6,[_0x2d89ad,_0x1358a7])=>{const _0x135ee7=_0x1b0396;_0x2d89ad[_0x135ee7(0x193)](_0x135ee7(0x198),_0x1358a7);});}[_0x424bd4(0x156)](){const _0x3c4d2b=_0x424bd4,_0x55761c=this[_0x3c4d2b(0x145)][_0x3c4d2b(0x17e)][_0x3c4d2b(0x166)](_0x3c4d2b(0x159))||{},_0x294b0f=this[_0x3c4d2b(0x145)][_0x3c4d2b(0x17e)][_0x3c4d2b(0x166)](_0x3c4d2b(0x14d))||'';this[_0x3c4d2b(0x17a)]=_0x585d44(_0x111d08[_0x3c4d2b(0x182)],_0x3c4d2b(0x168),{..._0x55761c,'pubkey':_0x294b0f,'ctx-name':_0x3c4d2b(0x196)+this[_0x3c4d2b(0x19a)],'sourceList':'','imgOnly':_0x3c4d2b(0x173),'removeCopyright':_0x3c4d2b(0x173),'localeName':this[_0x3c4d2b(0x145)][_0x3c4d2b(0x154)][_0x3c4d2b(0x153)],'externalSourcesEmbedCss':_0x3c4d2b(0x144)}),this[_0x3c4d2b(0x17a)][_0x3c4d2b(0x14e)]=_0x36d3a5=>{const _0x4db411=_0x3c4d2b;if(_0x4db411(0x176)==_0x36d3a5)return _0x4db411(0x155);},_0x111d08[_0x3c4d2b(0x182)][_0x3c4d2b(0x163)][_0x3c4d2b(0x14f)](this[_0x3c4d2b(0x17a)]);}[_0x424bd4(0x15f)](){const _0x4d5bf2=_0x424bd4;this[_0x4d5bf2(0x18e)]=_0x585d44(_0x111d08[_0x4d5bf2(0x182)],_0x4d5bf2(0x190),{'ctx-name':_0x4d5bf2(0x196)+this[_0x4d5bf2(0x19a)]}),_0x111d08[_0x4d5bf2(0x182)][_0x4d5bf2(0x163)][_0x4d5bf2(0x14f)](this[_0x4d5bf2(0x18e)]);}[_0x424bd4(0x16c)](){const _0xad0ff9=_0x424bd4,_0x376d3c=this[_0xad0ff9(0x145)][_0xad0ff9(0x15e)][_0xad0ff9(0x166)](_0xad0ff9(0x170));_0x376d3c&&this[_0xad0ff9(0x14c)](_0x376d3c,_0xad0ff9(0x158),()=>{const _0x5ac723=_0xad0ff9,_0x2ae259=this[_0x5ac723(0x145)][_0x5ac723(0x165)][_0x5ac723(0x182)][_0x5ac723(0x164)][_0x5ac723(0x17b)]();_0x2ae259&&_0x2ae259[_0x5ac723(0x197)](_0x5ac723(0x198))&&this[_0x5ac723(0x145)][_0x5ac723(0x149)][_0x5ac723(0x151)][_0x5ac723(0x18a)](_0x5ac723(0x162),()=>{const _0x46fc01=_0x5ac723;_0x1b1d2e(this[_0x46fc01(0x145)],_0x2ae259);});});const _0x10e2d7=this[_0xad0ff9(0x145)][_0xad0ff9(0x15e)][_0xad0ff9(0x166)](_0xad0ff9(0x174));_0x10e2d7&&this[_0xad0ff9(0x14c)](_0x10e2d7,_0xad0ff9(0x158),()=>{const _0x35a92e=_0xad0ff9,_0x514f1e=this[_0x35a92e(0x145)][_0x35a92e(0x165)][_0x35a92e(0x182)][_0x35a92e(0x164)][_0x35a92e(0x17b)]();_0x514f1e&&_0x514f1e[_0x35a92e(0x197)](_0x35a92e(0x198))&&this[_0x35a92e(0x145)][_0x35a92e(0x149)][_0x35a92e(0x151)][_0x35a92e(0x18a)](_0x35a92e(0x162),()=>{const _0x2869f4=_0x35a92e;_0x1b1d2e(this[_0x2869f4(0x145)],_0x514f1e);});});}}
|