@ckeditor/ckeditor5-uploadcare 0.0.0-internal-20251211.0 → 0.0.0-internal-20260121.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/LICENSE.md +2 -2
- package/README.md +1 -1
- package/build/uploadcare.js +3 -3
- package/dist/index-content.css +1 -1
- package/dist/index-editor.css +41 -79
- package/dist/index.css +95 -85
- package/dist/index.js +4 -4
- package/dist/translations/af.d.ts +1 -1
- package/dist/translations/af.js +2 -2
- package/dist/translations/af.umd.js +2 -2
- package/dist/translations/ar.d.ts +1 -1
- package/dist/translations/ar.js +2 -2
- package/dist/translations/ar.umd.js +2 -2
- package/dist/translations/ast.d.ts +1 -1
- package/dist/translations/ast.js +2 -2
- package/dist/translations/ast.umd.js +2 -2
- package/dist/translations/az.d.ts +1 -1
- package/dist/translations/az.js +2 -2
- package/dist/translations/az.umd.js +2 -2
- package/dist/translations/be.d.ts +1 -1
- package/dist/translations/be.js +2 -2
- package/dist/translations/be.umd.js +2 -2
- package/dist/translations/bg.d.ts +1 -1
- package/dist/translations/bg.js +2 -2
- package/dist/translations/bg.umd.js +2 -2
- package/dist/translations/bn.d.ts +1 -1
- package/dist/translations/bn.js +2 -2
- package/dist/translations/bn.umd.js +2 -2
- package/dist/translations/bs.d.ts +1 -1
- package/dist/translations/bs.js +2 -2
- package/dist/translations/bs.umd.js +2 -2
- package/dist/translations/ca.d.ts +1 -1
- package/dist/translations/ca.js +2 -2
- package/dist/translations/ca.umd.js +2 -2
- package/dist/translations/cs.d.ts +1 -1
- package/dist/translations/cs.js +2 -2
- package/dist/translations/cs.umd.js +2 -2
- package/dist/translations/da.d.ts +1 -1
- package/dist/translations/da.js +2 -2
- package/dist/translations/da.umd.js +2 -2
- package/dist/translations/de-ch.d.ts +1 -1
- package/dist/translations/de-ch.js +2 -2
- package/dist/translations/de-ch.umd.js +2 -2
- package/dist/translations/de.d.ts +1 -1
- package/dist/translations/de.js +2 -2
- package/dist/translations/de.umd.js +2 -2
- package/dist/translations/el.d.ts +1 -1
- package/dist/translations/el.js +2 -2
- package/dist/translations/el.umd.js +2 -2
- package/dist/translations/en-au.d.ts +1 -1
- package/dist/translations/en-au.js +2 -2
- package/dist/translations/en-au.umd.js +2 -2
- package/dist/translations/en-gb.d.ts +1 -1
- package/dist/translations/en-gb.js +2 -2
- package/dist/translations/en-gb.umd.js +2 -2
- package/dist/translations/en.d.ts +1 -1
- package/dist/translations/en.js +2 -2
- package/dist/translations/en.umd.js +2 -2
- package/dist/translations/eo.d.ts +1 -1
- package/dist/translations/eo.js +2 -2
- package/dist/translations/eo.umd.js +2 -2
- package/dist/translations/es-co.d.ts +1 -1
- package/dist/translations/es-co.js +2 -2
- package/dist/translations/es-co.umd.js +2 -2
- package/dist/translations/es.d.ts +1 -1
- package/dist/translations/es.js +2 -2
- package/dist/translations/es.umd.js +2 -2
- package/dist/translations/et.d.ts +1 -1
- package/dist/translations/et.js +2 -2
- package/dist/translations/et.umd.js +2 -2
- package/dist/translations/eu.d.ts +1 -1
- package/dist/translations/eu.js +2 -2
- package/dist/translations/eu.umd.js +2 -2
- package/dist/translations/fa.d.ts +1 -1
- package/dist/translations/fa.js +2 -2
- package/dist/translations/fa.umd.js +2 -2
- package/dist/translations/fi.d.ts +1 -1
- package/dist/translations/fi.js +2 -2
- package/dist/translations/fi.umd.js +2 -2
- package/dist/translations/fr.d.ts +1 -1
- package/dist/translations/fr.js +2 -2
- package/dist/translations/fr.umd.js +2 -2
- package/dist/translations/gl.d.ts +1 -1
- package/dist/translations/gl.js +2 -2
- package/dist/translations/gl.umd.js +2 -2
- package/dist/translations/gu.d.ts +1 -1
- package/dist/translations/gu.js +2 -2
- package/dist/translations/gu.umd.js +2 -2
- package/dist/translations/he.d.ts +1 -1
- package/dist/translations/he.js +2 -2
- package/dist/translations/he.umd.js +2 -2
- package/dist/translations/hi.d.ts +1 -1
- package/dist/translations/hi.js +2 -2
- package/dist/translations/hi.umd.js +2 -2
- package/dist/translations/hr.d.ts +1 -1
- package/dist/translations/hr.js +2 -2
- package/dist/translations/hr.umd.js +2 -2
- package/dist/translations/hu.d.ts +1 -1
- package/dist/translations/hu.js +2 -2
- package/dist/translations/hu.umd.js +2 -2
- package/dist/translations/hy.d.ts +1 -1
- package/dist/translations/hy.js +2 -2
- package/dist/translations/hy.umd.js +2 -2
- package/dist/translations/id.d.ts +1 -1
- package/dist/translations/id.js +2 -2
- package/dist/translations/id.umd.js +2 -2
- package/dist/translations/it.d.ts +1 -1
- package/dist/translations/it.js +2 -2
- package/dist/translations/it.umd.js +2 -2
- package/dist/translations/ja.d.ts +1 -1
- package/dist/translations/ja.js +2 -2
- package/dist/translations/ja.umd.js +2 -2
- package/dist/translations/jv.d.ts +1 -1
- package/dist/translations/jv.js +2 -2
- package/dist/translations/jv.umd.js +2 -2
- package/dist/translations/kk.d.ts +1 -1
- package/dist/translations/kk.js +2 -2
- package/dist/translations/kk.umd.js +2 -2
- package/dist/translations/km.d.ts +1 -1
- package/dist/translations/km.js +2 -2
- package/dist/translations/km.umd.js +2 -2
- package/dist/translations/kn.d.ts +1 -1
- package/dist/translations/kn.js +2 -2
- package/dist/translations/kn.umd.js +2 -2
- package/dist/translations/ko.d.ts +1 -1
- package/dist/translations/ko.js +2 -2
- package/dist/translations/ko.umd.js +2 -2
- package/dist/translations/ku.d.ts +1 -1
- package/dist/translations/ku.js +2 -2
- package/dist/translations/ku.umd.js +2 -2
- package/dist/translations/lt.d.ts +1 -1
- package/dist/translations/lt.js +2 -2
- package/dist/translations/lt.umd.js +2 -2
- package/dist/translations/lv.d.ts +1 -1
- package/dist/translations/lv.js +2 -2
- package/dist/translations/lv.umd.js +2 -2
- package/dist/translations/ms.d.ts +1 -1
- package/dist/translations/ms.js +2 -2
- package/dist/translations/ms.umd.js +2 -2
- package/dist/translations/nb.d.ts +1 -1
- package/dist/translations/nb.js +2 -2
- package/dist/translations/nb.umd.js +2 -2
- package/dist/translations/ne.d.ts +1 -1
- package/dist/translations/ne.js +2 -2
- package/dist/translations/ne.umd.js +2 -2
- package/dist/translations/nl.d.ts +1 -1
- package/dist/translations/nl.js +2 -2
- package/dist/translations/nl.umd.js +2 -2
- package/dist/translations/no.d.ts +1 -1
- package/dist/translations/no.js +2 -2
- package/dist/translations/no.umd.js +2 -2
- package/dist/translations/oc.d.ts +1 -1
- package/dist/translations/oc.js +2 -2
- package/dist/translations/oc.umd.js +2 -2
- package/dist/translations/pl.d.ts +1 -1
- package/dist/translations/pl.js +2 -2
- package/dist/translations/pl.umd.js +2 -2
- package/dist/translations/pt-br.d.ts +1 -1
- package/dist/translations/pt-br.js +2 -2
- package/dist/translations/pt-br.umd.js +2 -2
- package/dist/translations/pt.d.ts +1 -1
- package/dist/translations/pt.js +2 -2
- package/dist/translations/pt.umd.js +2 -2
- package/dist/translations/ro.d.ts +1 -1
- package/dist/translations/ro.js +2 -2
- package/dist/translations/ro.umd.js +2 -2
- package/dist/translations/ru.d.ts +1 -1
- package/dist/translations/ru.js +2 -2
- package/dist/translations/ru.umd.js +2 -2
- package/dist/translations/si.d.ts +1 -1
- package/dist/translations/si.js +2 -2
- package/dist/translations/si.umd.js +2 -2
- package/dist/translations/sk.d.ts +1 -1
- package/dist/translations/sk.js +2 -2
- package/dist/translations/sk.umd.js +2 -2
- package/dist/translations/sl.d.ts +1 -1
- package/dist/translations/sl.js +2 -2
- package/dist/translations/sl.umd.js +2 -2
- package/dist/translations/sq.d.ts +1 -1
- package/dist/translations/sq.js +2 -2
- package/dist/translations/sq.umd.js +2 -2
- package/dist/translations/sr-latn.d.ts +1 -1
- package/dist/translations/sr-latn.js +2 -2
- package/dist/translations/sr-latn.umd.js +2 -2
- package/dist/translations/sr.d.ts +1 -1
- package/dist/translations/sr.js +2 -2
- package/dist/translations/sr.umd.js +2 -2
- package/dist/translations/sv.d.ts +1 -1
- package/dist/translations/sv.js +2 -2
- package/dist/translations/sv.umd.js +2 -2
- package/dist/translations/th.d.ts +1 -1
- package/dist/translations/th.js +2 -2
- package/dist/translations/th.umd.js +2 -2
- package/dist/translations/ti.d.ts +1 -1
- package/dist/translations/ti.js +2 -2
- package/dist/translations/ti.umd.js +2 -2
- package/dist/translations/tk.d.ts +1 -1
- package/dist/translations/tk.js +2 -2
- package/dist/translations/tk.umd.js +2 -2
- package/dist/translations/tr.d.ts +1 -1
- package/dist/translations/tr.js +2 -2
- package/dist/translations/tr.umd.js +2 -2
- package/dist/translations/tt.d.ts +1 -1
- package/dist/translations/tt.js +2 -2
- package/dist/translations/tt.umd.js +2 -2
- package/dist/translations/ug.d.ts +1 -1
- package/dist/translations/ug.js +2 -2
- package/dist/translations/ug.umd.js +2 -2
- package/dist/translations/uk.d.ts +1 -1
- package/dist/translations/uk.js +2 -2
- package/dist/translations/uk.umd.js +2 -2
- package/dist/translations/ur.d.ts +1 -1
- package/dist/translations/ur.js +2 -2
- package/dist/translations/ur.umd.js +2 -2
- package/dist/translations/uz.d.ts +1 -1
- package/dist/translations/uz.js +2 -2
- package/dist/translations/uz.umd.js +2 -2
- package/dist/translations/vi.d.ts +1 -1
- package/dist/translations/vi.js +2 -2
- package/dist/translations/vi.umd.js +2 -2
- package/dist/translations/zh-cn.d.ts +1 -1
- package/dist/translations/zh-cn.js +2 -2
- package/dist/translations/zh-cn.umd.js +2 -2
- package/dist/translations/zh.d.ts +1 -1
- package/dist/translations/zh.js +2 -2
- package/dist/translations/zh.umd.js +2 -2
- package/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/ast.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/be.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/eo.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/eu.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/gu.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/hy.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/kk.po +1 -1
- package/lang/translations/km.po +1 -1
- package/lang/translations/kn.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nb.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/oc.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/si.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sl.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/ti.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/uz.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +10 -10
- package/src/augmentation.d.ts +1 -1
- package/src/augmentation.js +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +2 -2
- package/src/ui/uploadcarecontroller.d.ts +1 -1
- package/src/ui/uploadcarecontroller.js +3 -3
- package/src/ui/uploadcareformview.d.ts +1 -1
- package/src/ui/uploadcareformview.js +2 -2
- package/src/uploadcare.d.ts +1 -1
- package/src/uploadcare.js +2 -2
- package/src/uploadcarecommand.d.ts +1 -1
- package/src/uploadcarecommand.js +2 -2
- package/src/uploadcareconfig.d.ts +1 -1
- package/src/uploadcareconfig.js +2 -2
- package/src/uploadcareediting.d.ts +1 -1
- package/src/uploadcareediting.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +3 -3
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +2 -2
- package/src/uploadcareimageedit/uploadcareimageeditcommand.d.ts +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +2 -2
- package/src/uploadcareimageedit/uploadcareimageeditediting.d.ts +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +2 -2
- package/src/uploadcareimageedit/uploadcareimageeditui.d.ts +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +2 -2
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +2 -2
- package/src/uploadcareimageedit.d.ts +1 -1
- package/src/uploadcareimageedit.js +2 -2
- package/src/uploadcareui.d.ts +1 -1
- package/src/uploadcareui.js +2 -2
- package/src/uploadcareuploadadapter.d.ts +1 -1
- package/src/uploadcareuploadadapter.js +2 -2
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +2 -2
- package/src/utils/dialogfocusmanagerview.d.ts +1 -1
- package/src/utils/dialogfocusmanagerview.js +2 -2
- package/src/utils/editingutils.d.ts +1 -1
- package/src/utils/editingutils.js +2 -2
- package/src/utils/isancestor.d.ts +1 -1
- package/src/utils/isancestor.js +2 -2
- package/src/utils/uploadutils.d.ts +1 -1
- package/src/utils/uploadutils.js +2 -2
- package/theme/uploadcare-form.css +5 -2
- package/theme/uploadcare-theme.css +1 -1
- package/theme/uploadcareimageedit.css +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0xfb9c85,Command as _0x1a80f7}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4cc491,IconGooglePhotos as _0x151c50,IconGoogleDrive as _0x1c0cf2,IconFacebook as _0x1395ea,IconDropbox as _0x3212c3,IconUploadcareLink as _0x2b909d,IconUploadcareImageUpload as _0x79d1ea,IconError as _0x31e957,IconUploadcareImageEdit as _0x38488b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x14ba70,MenuBarMenuListItemButtonView as _0x264ecf,View as _0xca1b2a,FocusCycler as _0x3be22f,Dialog as _0x4dd4e8,DialogViewPosition as _0x13c2fc,SpinnerView as _0x5a8e11,IconView as _0x227b4b,Notification as _0x2f1def}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xaa0a1,DomEmitterMixin as _0x23bb56,global as _0x2bc55b,getAncestors as _0x1e0372,ObservableMixin as _0x31b6d0,uid as _0x3b089c,createElement as _0x5d4966}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1c7f9f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x566acb,info as _0x3d2fa0}from'@uploadcare/upload-client';import*as _0x6f5f46 from'@uploadcare/file-uploader';var i=function(_0x41b967){return _0x41b967['Local']='local',_0x41b967['URL']='url',_0x41b967['Dropbox']='dropbox',_0x41b967['GDrive']='gdrive',_0x41b967['Facebook']='facebook',_0x41b967['GPhotos']='gphotos',_0x41b967['OneDrive']='onedrive',_0x41b967;}({});function _(_0x544b2c,_0xd20089,_0x45edbd){const t=_0x544b2c['t'],_0x2d9b7e=_0x544b2c['t'];switch(_0xd20089){case i['Local']:return{'text':_0x2d9b7e('Insert'===_0x45edbd?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2d9b7e('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x45edbd?_0x2d9b7e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2d9b7e('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x45edbd?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x45edbd?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x45edbd?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x45edbd?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x45edbd?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xd20089;}}class e extends _0xfb9c85{['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 _0x3cb123=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1bf858;for(const _0x3bfd9b in _0x3cb123){const _0x553407=_0x3bfd9b,_0x4dfb0a=_0x3cb123[_0x553407];if('uploadcareLicenseKeyValid'==_0x4dfb0a||'uploadcareLicenseKeyInvalid'==_0x4dfb0a||'uploadcareLicenseKeyExpired'==_0x4dfb0a||'uploadcareLicenseKeyDomainLimit'==_0x4dfb0a||'uploadcareLicenseKeyNotAllowed'==_0x4dfb0a||'uploadcareLicenseKeyEvaluationLimit'==_0x4dfb0a||'uploadcareLicenseKeyTrialLimit'==_0x4dfb0a||'uploadcareLicenseKeyUsageLimit'==_0x4dfb0a){delete _0x3cb123[_0x553407],_0x1bf858=_0x4dfb0a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1bf858&&_0x3cb123['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1bf858&&_0x3cb123['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1bf858&&_0x3cb123['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1bf858&&_0x3cb123['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1bf858&&_0x3cb123['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1bf858&&_0x3cb123['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1bf858&&_0x3cb123['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x6c6bc4}=this,_0xf467d=_0x6c6bc4['commands']['get']('uploadcare');if(!_0xf467d)return;const _0x2fc369=this['_normalizeConfigSourceList'](_0x6c6bc4['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x32e56e,_0x333169)=>{const _0x39be0a=this['_getIntegrationKey'](_0x333169['type']);return _0x32e56e[_0x39be0a]||(_0x32e56e[_0x39be0a]=[]),_0x32e56e[_0x39be0a]['push'](_0x333169),_0x32e56e;},{});_0x6c6bc4['plugins']['has']('ImageInsertUI')&&_0x6c6bc4['commands']['get']('uploadcare')&&Object['entries'](_0x2fc369)['forEach'](([_0x291f2e,_0xeeab47])=>{_0x6c6bc4['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x291f2e,'observable':()=>_0xf467d,'buttonViewCreator':()=>this['_createToolbarButton'](_0xeeab47),'formViewCreator':()=>this['_createDropdownButtons'](_0xeeab47),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xeeab47),'override':'assetManager'!==_0x291f2e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x426941){const {locale:_0xe4d811}=this['editor'];return _0x426941['map'](_0x3c79a7=>{const _0x32177f=_(_0xe4d811,_0x3c79a7,'Insert');switch(_0x3c79a7){case i['Local']:return{'icon':_0x79d1ea,'type':i['Local'],..._0x32177f};case i['URL']:return{'icon':_0x2b909d,'type':i['URL'],..._0x32177f};case i['Dropbox']:return{'icon':_0x3212c3,'type':i['Dropbox'],..._0x32177f};case i['Facebook']:return{'icon':_0x1395ea,'type':i['Facebook'],..._0x32177f};case i['GDrive']:return{'icon':_0x1c0cf2,'type':i['GDrive'],..._0x32177f};case i['GPhotos']:return{'icon':_0x151c50,'type':i['GPhotos'],..._0x32177f};case i['OneDrive']:return{'icon':_0x4cc491,'type':i['OneDrive'],..._0x32177f};}});}['_getIntegrationKey'](_0x48734a){switch(_0x48734a){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x404b48,_0x5d19b6){const _0x5ad6ec=this['editor'],_0x4cae1b=new _0x404b48(_0x5ad6ec['locale']),_0x5ebe5b=_0x5ad6ec['commands']['get']('uploadcare');return _0x4cae1b['bind']('isEnabled')['to'](_0x5ebe5b),_0x4cae1b['on']('execute',()=>{_0x5ebe5b['execute'](_0x5d19b6);}),_0x4cae1b;}['_createToolbarButton'](_0x1d46e2){const {locale:_0xac47e8}=this['editor'],_0x2086f=this['editor']['plugins']['get']('ImageInsertUI'),_0xe067d1=_0x1d46e2[0x0],_0x49f092=this['_createButton'](_0x14ba70,_0xe067d1['type']);return _0x49f092['icon']=_0xe067d1['icon'],_0x49f092['bind']('label')['to'](_0x2086f,'isImageSelected',_0x19636a=>_(_0xac47e8,_0xe067d1['type'],_0x19636a?'Replace':'Insert')['text']),_0x49f092['tooltip']=!0x0,_0x49f092;}['_createDropdownButtons'](_0x1897ed){const {locale:_0x16cf4c}=this['editor'],_0x1cbf46=this['editor']['plugins']['get']('ImageInsertUI');return _0x1897ed['map'](_0x13de26=>{const _0x27f55b=this['_createButton'](_0x14ba70,_0x13de26['type']);return _0x27f55b['withText']=!0x0,_0x27f55b['icon']=_0x13de26['icon'],_0x27f55b['bind']('label')['to'](_0x1cbf46,'isImageSelected',_0x27016c=>_(_0x16cf4c,_0x13de26['type'],_0x27016c?'Replace':'Insert')['text']),_0x27f55b;});}['_createMenuBarButtons'](_0x59fcae){return _0x59fcae['map'](_0x365fc5=>{const _0x484ecd=this['_createButton'](_0x264ecf,_0x365fc5['type']);return _0x484ecd['icon']=_0x365fc5['icon'],_0x484ecd['label']=_0x365fc5['shortText'],_0x484ecd;});}}class F extends _0xca1b2a{['focusTracker'];['focusCycler'];constructor(_0x31fa7a){super(_0x31fa7a),this['focusTracker']=new _0xaa0a1(),this['focusCycler']=new _0x3be22f({'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(_0x3f0786,_0x3322ca){super(_0x3f0786),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-'+_0x3322ca}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x10e0f0,_0x15e873){const _0x21ff01=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2a3d94=>_0x2a3d94<=_0x15e873)['map'](_0x17d564=>_0x10e0f0['replace'](/\/$/,'')+'/-/resize/'+_0x17d564+'x/\x20'+_0x17d564+'w');return{'imageFallbackUrl':_0x10e0f0,'imageSources':[{'srcset':_0x21ff01['join'](',\x20'),'sizes':'(max-width:\x20'+_0x15e873+'px)\x20100vw,\x20'+_0x15e873+'px','type':'image/webp'}]};}function S(_0x410bc4,_0x1338c4,_0x53461a){const _0x2b71f0=_0x410bc4['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2b71f0?parseInt(_0x2b71f0[0x1],0xa):_0x1338c4,'height':_0x2b71f0?parseInt(_0x2b71f0[0x2],0xa):_0x53461a};}function p(_0x17aa88,_0x18467e){const _0x1bcbfc=new(_0x23bb56())(),_0xc17bfb=_0x17aa88['plugins']['get']('ImageUtils'),_0x22fbc8=_0x17aa88['editing']['mapper']['toViewElement'](_0x18467e),_0x5a694b=_0xc17bfb['findViewImgElement'](_0x22fbc8),_0xe28cc=_0x17aa88['editing']['view']['domConverter']['viewToDom'](_0x5a694b),_0x3833de=_0x18467e['getAttribute']('width'),_0x1565a0=_0x18467e['getAttribute']('height'),_0x1223f5='image-processing';_0x17aa88['editing']['view']['change'](_0x7143e1=>{_0x7143e1['addClass'](_0x1223f5,_0x22fbc8),_0x7143e1['setStyle']('aspect-ratio',_0x3833de+'/'+_0x1565a0,_0x5a694b);}),_0x1bcbfc['listenTo'](_0xe28cc,'load',()=>{_0x1bcbfc['stopListening'](_0xe28cc,'load'),_0x17aa88['editing']['view']['change'](_0x51602a=>{_0x51602a['removeClass'](_0x1223f5,_0x22fbc8),_0x51602a['removeStyle']('aspect-ratio',_0x5a694b);});});}function z(_0x1e597a){if(Array['isArray'](_0x1e597a)){const _0x18438a=_0x1e597a['map'](z);return _0x501dfe=>_0x18438a['some'](_0x414ac7=>_0x414ac7(_0x501dfe));}if('origin'==_0x1e597a){const _0x4ffbbd=_0x2bc55b['window']['location']['origin'];return _0xbaf582=>new URL(_0xbaf582,_0x2bc55b['document']['baseURI'])['origin']==_0x4ffbbd;}return'function'==typeof _0x1e597a?_0x1e597a:_0x1e597a instanceof RegExp?_0x3433b2=>!(!_0x3433b2['match'](_0x1e597a)&&!_0x3433b2['replace'](/^https?:\/\//,'')['match'](_0x1e597a)):()=>!0x1;}function A(_0x5a187d,_0x5e4e26){return _0x1e0372(_0x5a187d['target'])['includes'](_0x5e4e26);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x31b6d0(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1819fe,_0x2900fd,_0x550f15){super(),this['_editor']=_0x1819fe,this['_editing']=_0x2900fd,this['_dialog']=_0x1819fe['plugins']['get'](_0x4dd4e8),this['_api']=_0x2900fd['ctxElement']['getAPI'](),this['_type']=_0x550f15,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:_0x4e7363,model:_0x29041b}=this['_editor'],_0x1c295d=_0x29041b['document']['selection']['getSelectedElement'](),_0x47c119=_0x1c295d&&(_0x1c295d['is']('element','imageBlock')||_0x1c295d['is']('element','imageInline'));this['_formView']=new x(_0x4e7363,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x79d1ea,'title':_(_0x4e7363,this['_type'],_0x47c119?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x13c2fc['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4cf070=>!A(_0x4cf070,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x179988}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x15faa1=>{const _0x56d6b4=_0x179988['length'];for(const _0x9d09d4 of _0x179988){const _0x1cb97c=_0x9d09d4===_0x179988[_0x56d6b4-0x1],{cdnUrl:_0x151e14,fileInfo:_0x1eb35f}=_0x9d09d4;if(!_0x151e14||!_0x1eb35f)continue;const {width:_0x81d0b,height:_0x1392a6}=_0x1eb35f['imageInfo'],_0x79d6dd=S(_0x151e14,_0x81d0b,_0x1392a6),_0x43c204=C(_0x151e14,_0x79d6dd['width']),_0x5ce0cf={'id':_0x1eb35f['uuid'],'type':'image','attributes':{'imageDimension':_0x79d6dd,..._0x43c204}};this['_insertAsset'](_0x5ce0cf,_0x1cb97c,_0x15faa1);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x569929=>{'idle'===_0x569929['detail']['status']&&!_0x569929['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x42cddf,_0x4c489c,_0x15af8b){const _0x14cac9=this['_editor']['model']['document']['selection'],_0x66053d=_0x14cac9['getSelectedElement'](),_0x50dd6b=!(!_0x66053d||!_0x66053d['is']('element','imageInline'));_0x15af8b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x42cddf,_0x50dd6b),_0x4c489c||_0x15af8b['setSelection'](_0x14cac9['getLastPosition']());}['_insertImage'](_0x28012b,_0x9fd6ec){const _0x21e0b8=this['_editor'],{imageDimension:_0x500c76,imageFallbackUrl:_0x46e537,imageSources:_0x49d124}=_0x28012b['attributes'];_0x21e0b8['execute']('insertImage',{'imageType':_0x9fd6ec?'imageInline':null,'source':{'uploadcareImageId':_0x28012b['id'],'src':_0x46e537,'sources':_0x49d124,..._0x500c76}});}}class w extends _0x1a80f7{['_editing'];['_controller']=null;static get['requires'](){return[_0x4dd4e8,o];}constructor(_0x397d2a){super(_0x397d2a),this['_editing']=_0x397d2a['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2d9219){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2d9219);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3a0499,..._0x4ce426}){return _0x566acb(_0x3a0499,_0x4ce426);}static['getInfo'](_0x4fe261,_0x425844){return _0x3d2fa0(_0x4fe261,_0x425844);}}class f extends _0xfb9c85{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1c7f9f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x467ee9=this['editor'];if(!!!_0x467ee9['config']['get']('uploadcare'))return;_0x467ee9['plugins']['get'](_0x1c7f9f)['createUploadAdapter']=_0x11e105=>new k(_0x11e105,_0x467ee9),_0x467ee9['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x9f3d9,{imageElement:_0x171695,data:_0x3f4d65})=>{_0x467ee9['model']['change'](_0x22b291=>{_0x22b291['setAttribute']('uploadcareImageId',_0x3f4d65['uploadcareImageId'],_0x171695);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5f3b59,_0x1256c8){this['loader']=_0x5f3b59,this['editor']=_0x1256c8,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x19b0af=await this['loader']['file'];return j['upload']({'file':_0x19b0af,'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':_0x589422=>{_0x589422&&_0x589422['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x589422['value']);}})['then'](async _0x408468=>{const {imageFallbackUrl:_0xde2d93,imageSources:_0x10a2e6}=C(_0x408468['cdnUrl'],_0x408468['imageInfo']['width']);return{'uploadcareImageId':_0x408468['uuid'],'default':_0xde2d93,'sources':_0x10a2e6};})['catch'](()=>{const _0x4fb3b0=t('Cannot\x20upload\x20file:')+('\x20'+_0x19b0af['name']+'.');return Promise['reject'](_0x4fb3b0);});}['abort'](){this['controller']['abort']();}}class o extends _0xfb9c85{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4dd4e8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2e888b){super(_0x2e888b),this['ucContextId']=_0x3b089c();}['init'](){const _0x49fe9a=this['editor'];_0x49fe9a['commands']['add']('uploadcare',new w(_0x49fe9a));}['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 _0x302918=_0x2bc55b['document']['querySelector']('input[uploadcare-file-input]');_0x302918&&_0x302918['remove']();}),async function(_0x147fc0){const _0x1439e9=_0x1ac25d([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]),_0x3e1960=0x535f8c3a,_0x40d085=0x5358f7a2^_0x3e1960,_0x1954a8=window[_0x1ac25d([0x44,0x61,0x74,0x65])][_0x1ac25d([0x6e,0x6f,0x77])](),_0x4e53b9=_0x147fc0[_0x1ac25d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x27693a=new window[(_0x1ac25d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x221482=>{_0x4e53b9[_0x1ac25d([0x6f,0x6e,0x63,0x65])](_0x1ac25d([0x72,0x65,0x61,0x64,0x79]),_0x221482);}),_0x5bf0ac={[_0x1ac25d([0x6b,0x74,0x79])]:_0x1ac25d([0x45,0x43]),[_0x1ac25d([0x75,0x73,0x65])]:_0x1ac25d([0x73,0x69,0x67]),[_0x1ac25d([0x63,0x72,0x76])]:_0x1ac25d([0x50,0x2d,0x32,0x35,0x36]),[_0x1ac25d([0x78])]:_0x1ac25d([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]),[_0x1ac25d([0x79])]:_0x1ac25d([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]),[_0x1ac25d([0x61,0x6c,0x67])]:_0x1ac25d([0x45,0x53,0x32,0x35,0x36])},_0x1f4852=_0x4e53b9[_0x1ac25d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1ac25d([0x67,0x65,0x74])](_0x1ac25d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x17c559(){let _0x4af65e,_0x58df63=null,_0x4a8cbf=null;try{if(_0x1f4852==_0x1ac25d([0x47,0x50,0x4c]))return _0x1ac25d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4af65e=_0x26ea50(),!_0x4af65e)return _0x1ac25d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4af65e[_0x1ac25d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4a8cbf=_0x50092e(_0x4af65e[_0x1ac25d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4af65e[_0x1ac25d([0x6a,0x74,0x69])])),await _0x4ba692()?_0xd87a06()?_0x3f68a5()?_0x1ac25d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29fc32()?(_0x4af65e[_0x1ac25d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ac25d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x58df63=_0x2c2f23(_0x1ac25d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4af65e[_0x1ac25d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ac25d([0x74,0x72,0x69,0x61,0x6c])&&(_0x58df63=_0x2c2f23(_0x1ac25d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x410015()):_0x1ac25d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1ac25d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1ac25d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1ac25d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3f68a5(){const _0x49edb9=[_0x1ac25d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1ac25d([0x74,0x72,0x69,0x61,0x6c])][_0x1ac25d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af65e[_0x1ac25d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1954a8/0x3e8:0xe10*_0x40d085;return _0x4af65e[_0x1ac25d([0x65,0x78,0x70])]<_0x49edb9;}function _0xd87a06(){const _0x3a35f8=_0x4af65e[_0x1ac25d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3a35f8&&(!!_0x3a35f8[_0x1ac25d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ac25d([0x2a]))||!!_0x3a35f8[_0x1ac25d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ac25d([0x55,0x50,0x4c,0x43])));}function _0x29fc32(){const _0x2832c5=_0x4af65e[_0x1ac25d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2832c5||0x0==_0x2832c5[_0x1ac25d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x265982}=new URL(window[_0x1ac25d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2832c5[_0x1ac25d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x265982))return!0x0;const _0x9045e4=_0x265982[_0x1ac25d([0x73,0x70,0x6c,0x69,0x74])](_0x1ac25d([0x2e]));return _0x2832c5[_0x1ac25d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1fc088=>_0x1fc088[_0x1ac25d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ac25d([0x2a])))[_0x1ac25d([0x6d,0x61,0x70])](_0x40db29=>_0x40db29[_0x1ac25d([0x73,0x70,0x6c,0x69,0x74])](_0x1ac25d([0x2e])))[_0x1ac25d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc82b1c=>_0xc82b1c[_0x1ac25d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x9045e4[_0x1ac25d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1ac25d([0x6d,0x61,0x70])](_0x49c596=>Array(_0x9045e4[_0x1ac25d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x49c596[_0x1ac25d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1ac25d([0x66,0x69,0x6c,0x6c])](_0x49c596[0x0]===_0x1ac25d([0x2a])?_0x1ac25d([0x2a]):'')[_0x1ac25d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x49c596))[_0x1ac25d([0x73,0x6f,0x6d,0x65])](_0x1373a4=>_0x9045e4[_0x1ac25d([0x65,0x76,0x65,0x72,0x79])]((_0x4e4efb,_0x347897)=>_0x1373a4[_0x347897]===_0x4e4efb||_0x1373a4[_0x347897]===_0x1ac25d([0x2a])));}function _0x410015(){return _0x58df63&&_0x4a8cbf?new window[(_0x1ac25d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x56bebb,_0x5d7169)=>{_0x58df63[_0x1ac25d([0x74,0x68,0x65,0x6e])](_0x56bebb,_0x5d7169),_0x4a8cbf[_0x1ac25d([0x74,0x68,0x65,0x6e])](_0x853262=>{_0x853262!=_0x1ac25d([0x56,0x61,0x6c,0x69,0x64])&&_0x56bebb(_0x853262);},_0x5d7169);}):_0x58df63||_0x4a8cbf||_0x1ac25d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x50092e(_0x232cfd,_0x18e651){return new window[(_0x1ac25d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1382b9=>{if(_0x4c8c0c())return _0x1382b9(_0x1ac25d([0x56,0x61,0x6c,0x69,0x64]));_0x45bcb4(),_0x4e53b9[_0x1ac25d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1ac25d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x42cf5d=!0x1;const _0x1c467c=_0x3b089c();function _0x2e41a4(_0x56d395){return!!_0x56d395&&(typeof _0x56d395===_0x1ac25d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x56d395===_0x1ac25d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x56d395[_0x1ac25d([0x74,0x68,0x65,0x6e])]===_0x1ac25d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x56d395[_0x1ac25d([0x63,0x61,0x74,0x63,0x68])]===_0x1ac25d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f0e79(_0x133548){_0x131b39(_0x133548)[_0x1ac25d([0x74,0x68,0x65,0x6e])](_0x207840=>{if(!_0x207840||_0x207840[_0x1ac25d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1ac25d([0x6f,0x6b]))return _0x1ac25d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x24d0c8(_0x45871f(_0x1c467c+_0x18e651))!=_0x207840[_0x1ac25d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1ac25d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1ac25d([0x56,0x61,0x6c,0x69,0x64]);})[_0x1ac25d([0x74,0x68,0x65,0x6e])](_0xeec1be=>(_0x5d1b7c(),_0xeec1be),()=>{const _0x3a9b82=_0x51c6a0();return null==_0x3a9b82?(_0x5d1b7c(),_0x1ac25d([0x56,0x61,0x6c,0x69,0x64])):_0x1ac25d(_0x1954a8-_0x3a9b82>(0x7753083a^_0x3e1960)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1ac25d([0x74,0x68,0x65,0x6e])](_0x1382b9)[_0x1ac25d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1382b9(_0x1ac25d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2074b1=0x536962ba^_0x3e1960;function _0x5d1b7c(){const _0x56803b=_0x1ac25d([0x6c,0x6c,0x63,0x74,0x2d])+_0x24d0c8(_0x45871f(_0x232cfd)),_0x57c429=_0x514128(_0x24d0c8(window[_0x1ac25d([0x4d,0x61,0x74,0x68])][_0x1ac25d([0x63,0x65,0x69,0x6c])](_0x1954a8/_0x2074b1)));window[_0x1ac25d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ac25d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56803b,_0x57c429);}function _0x51c6a0(){const _0x474eaf=_0x1ac25d([0x6c,0x6c,0x63,0x74,0x2d])+_0x24d0c8(_0x45871f(_0x232cfd)),_0x38f817=window[_0x1ac25d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ac25d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x474eaf);return _0x38f817?window[_0x1ac25d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x514128(_0x38f817),0x10)*_0x2074b1:null;}function _0x131b39(_0x3ab131){return new window[(_0x1ac25d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4aee26,_0x1ae4b3)=>{_0x3ab131[_0x1ac25d([0x74,0x68,0x65,0x6e])](_0x4aee26,_0x1ae4b3),window[_0x1ac25d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1ae4b3,0x535e58fa^_0x3e1960);});}}_0x4e53b9[_0x1ac25d([0x6f,0x6e])](_0x1ac25d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x56c29e,_0x30d3eb)=>{if(_0x30d3eb[0x0]!=_0x232cfd)return _0x1382b9(_0x1ac25d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x30d3eb[0x1]={..._0x30d3eb[0x1],[_0x1ac25d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1c467c};},{[_0x1ac25d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ac25d([0x68,0x69,0x67,0x68])}),_0x4e53b9[_0x1ac25d([0x6f,0x6e])](_0x1ac25d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x141ccc=>{_0x2e41a4(_0x141ccc[_0x1ac25d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x42cf5d=!0x0,_0x3f0e79(_0x141ccc[_0x1ac25d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1ac25d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ac25d([0x6c,0x6f,0x77])}),_0x27693a[_0x1ac25d([0x74,0x68,0x65,0x6e])](()=>{_0x42cf5d||_0x1382b9(_0x1ac25d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4c8c0c(){return _0x4e53b9[_0x1ac25d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ac25d([0x76,0x69,0x65,0x77])][_0x1ac25d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1ac25d([0x61,0x75,0x74,0x6f]);}function _0x45bcb4(){_0x4e53b9[_0x1ac25d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ac25d([0x76,0x69,0x65,0x77])][_0x1ac25d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ac25d([0x61,0x75,0x74,0x6f]);}}function _0x2c2f23(_0x3326ff){const _0x357f35=[new window[(_0x1ac25d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x167d30=>setTimeout(_0x167d30,0x5356b2f6^_0x3e1960)),_0x27693a[_0x1ac25d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1ac25d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ee8ab=>{let _0x6d875e=0x0;_0x4e53b9[_0x1ac25d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ac25d([0x6f,0x6e])](_0x1ac25d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x49b686,_0x590199)=>{_0x590199[0x0][_0x1ac25d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x6d875e++,_0x6d875e==(0x535f8dc2^_0x3e1960)&&(_0x4ee8ab(),_0x49b686[_0x1ac25d([0x6f,0x66,0x66])]());});}))];return window[_0x1ac25d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ac25d([0x72,0x61,0x63,0x65])](_0x357f35)[_0x1ac25d([0x74,0x68,0x65,0x6e])](()=>_0x3326ff);}async function _0xb8a112(){await _0x27693a,_0x4e53b9[_0x1ac25d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ac25d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x49012c,_0x4e53b9[_0x1ac25d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ac25d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x49012c,_0x4e53b9[_0x1ac25d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1ac25d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3043e7(_0x10ca7f){const _0x558e2d=_0x1d2e15();_0x4e53b9[_0x558e2d]=_0x1ac25d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x10ca7f,_0x10ca7f!=_0x1ac25d([0x56,0x61,0x6c,0x69,0x64])&&_0xb8a112();}function _0x1d2e15(){const _0xa69946=window[_0x1ac25d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1ac25d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1ac25d([0x6e,0x6f,0x77])]())[_0x1ac25d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1ac25d([0x2e]),'');let _0x122281=_0x1ac25d([0x68]);for(let _0x108e31=0x0;_0x108e31<_0xa69946[_0x1ac25d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x108e31+=0x2){let _0x44f8a2=window[_0x1ac25d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa69946[_0x1ac25d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x108e31,_0x108e31+0x2));_0x44f8a2>=_0x1439e9[_0x1ac25d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x44f8a2-=_0x1439e9[_0x1ac25d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x122281+=_0x1439e9[_0x44f8a2];}return _0x122281;}function _0x26ea50(){const _0x56b1eb=_0x1f4852[_0x1ac25d([0x73,0x70,0x6c,0x69,0x74])](_0x1ac25d([0x2e]));if(0x3!=_0x56b1eb[_0x1ac25d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x31ce39(_0x56b1eb[0x1]);function _0x31ce39(_0xeae4a0){const _0x566c2a=_0x1d0c61(_0xeae4a0);return _0x566c2a&&_0x49dfc1()?_0x566c2a:null;function _0x49dfc1(){const _0x49763b=_0x566c2a[_0x1ac25d([0x6a,0x74,0x69])],_0x44ae59=window[_0x1ac25d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49763b[_0x1ac25d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49763b[_0x1ac25d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd1e9fe={..._0x566c2a,[_0x1ac25d([0x6a,0x74,0x69])]:_0x49763b[_0x1ac25d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x49763b[_0x1ac25d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd1e9fe[_0x1ac25d([0x76,0x63])],_0x45871f(_0xd1e9fe)==_0x44ae59;}}}async function _0x4ba692(){let _0x29df53=!0x0;try{const _0x486e21=_0x1f4852[_0x1ac25d([0x73,0x70,0x6c,0x69,0x74])](_0x1ac25d([0x2e])),[_0x41ef21,_0x4603f2,_0x2fe544]=_0x486e21;return _0x53294a(_0x41ef21),await _0x6002a6(_0x41ef21,_0x4603f2,_0x2fe544),_0x29df53;}catch{return!0x1;}function _0x53294a(_0x213bc0){const _0x1cbd1a=_0x1d0c61(_0x213bc0);_0x1cbd1a&&_0x1cbd1a[_0x1ac25d([0x61,0x6c,0x67])]==_0x1ac25d([0x45,0x53,0x32,0x35,0x36])||(_0x29df53=!0x1);}async function _0x6002a6(_0x4f5f6e,_0xd2f527,_0x2c438e){const _0x4a1be7=window[_0x1ac25d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1ac25d([0x66,0x72,0x6f,0x6d])](_0x4c669c(_0x2c438e),_0x181b90=>_0x181b90[_0x1ac25d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x30d4c7=new window[(_0x1ac25d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1ac25d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f5f6e+_0x1ac25d([0x2e])+_0xd2f527),_0x5413c3=window[_0x1ac25d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1ac25d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5413c3)return;const _0xb5c593=await _0x5413c3[_0x1ac25d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1ac25d([0x6a,0x77,0x6b]),_0x5bf0ac,{[_0x1ac25d([0x6e,0x61,0x6d,0x65])]:_0x1ac25d([0x45,0x43,0x44,0x53,0x41]),[_0x1ac25d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1ac25d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1ac25d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5413c3[_0x1ac25d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1ac25d([0x6e,0x61,0x6d,0x65])]:_0x1ac25d([0x45,0x43,0x44,0x53,0x41]),[_0x1ac25d([0x68,0x61,0x73,0x68])]:{[_0x1ac25d([0x6e,0x61,0x6d,0x65])]:_0x1ac25d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb5c593,_0x4a1be7,_0x30d4c7)||(_0x29df53=!0x1);}}function _0x1d0c61(_0xbcc184){return _0xbcc184[_0x1ac25d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1ac25d([0x65,0x79]))?JSON[_0x1ac25d([0x70,0x61,0x72,0x73,0x65])](_0x4c669c(_0xbcc184)):null;}function _0x4c669c(_0x573525){return window[_0x1ac25d([0x61,0x74,0x6f,0x62])](_0x573525[_0x1ac25d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1ac25d([0x2b]))[_0x1ac25d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1ac25d([0x2f])));}function _0x45871f(_0x5490b1){let _0x51854b=0x1505;function _0x23cf57(_0x2f78f9){for(let _0x220c2a=0x0;_0x220c2a<_0x2f78f9[_0x1ac25d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x220c2a++){const _0x2c9751=_0x2f78f9[_0x1ac25d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x220c2a);_0x51854b=(_0x51854b<<0x5)+_0x51854b+_0x2c9751,_0x51854b&=_0x51854b;}}function _0x304c35(_0x278d74){Array[_0x1ac25d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x278d74)?_0x278d74[_0x1ac25d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x304c35):_0x278d74&&typeof _0x278d74==_0x1ac25d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1ac25d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x278d74)[_0x1ac25d([0x73,0x6f,0x72,0x74])]()[_0x1ac25d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x250b77,_0x45d436])=>{_0x23cf57(_0x250b77),_0x304c35(_0x45d436);}):_0x23cf57(window[_0x1ac25d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x278d74));}return _0x304c35(_0x5490b1),_0x51854b>>>0x0;}function _0x24d0c8(_0x4a141d){return _0x4a141d[_0x1ac25d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1ac25d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1ac25d([0x30]));}function _0x514128(_0xa544f0){return _0xa544f0[_0x1ac25d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1ac25d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1ac25d([0x6a,0x6f,0x69,0x6e])]('');}function _0x49012c(){}function _0x1ac25d(_0x554f3a){return _0x554f3a['map'](_0x317148=>String['fromCharCode'](_0x317148))['join']('');}_0x3043e7(await _0x17c559());}(this);}['_initSchema'](){const _0x381638=this['editor']['model']['schema'];_0x381638['isRegistered']('imageBlock')&&_0x381638['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x381638['isRegistered']('imageInline')&&_0x381638['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x351fad=this['editor'];_0x351fad['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x351fad['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3126d4=>_0x3126d4['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x315470=_0x351fad['commands']['get']('replaceImageSource');_0x315470&&this['listenTo'](_0x315470,'cleanupImage',(_0x50121e,[_0x588379,_0x17f143])=>{_0x588379['removeAttribute']('uploadcareImageId',_0x17f143);});}['_initConfig'](){const _0x14c775=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2b407b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5d4966(_0x2bc55b['document'],'uc-config',{..._0x14c775,'pubkey':_0x2b407b,'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']=_0x622f78=>{if('closeMax'==_0x622f78)return'#uc-icon-arrow-down';},_0x2bc55b['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5d4966(_0x2bc55b['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2bc55b['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x180461=this['editor']['commands']['get']('insertImage');_0x180461&&this['listenTo'](_0x180461,'execute',()=>{const _0x12d6af=this['editor']['model']['document']['selection']['getSelectedElement']();_0x12d6af&&_0x12d6af['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x12d6af);});});const _0xbcfd35=this['editor']['commands']['get']('uploadcareImageReplace');_0xbcfd35&&this['listenTo'](_0xbcfd35,'execute',()=>{const _0x208718=this['editor']['model']['document']['selection']['getSelectedElement']();_0x208718&&_0x208718['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x208718);});});}}class tt extends _0xfb9c85{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19ad2c){super(_0x19ad2c),_0x19ad2c['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x6f5f46['defineComponents'](_0x6f5f46),this['_defineLocale']();}['_defineLocale'](){const _0x25922f=this['editor']['config']['get']('uploadcare.locale'),_0x2d79ff=this['editor']['locale']['contentLanguage'];_0x25922f&&_0x6f5f46['defineLocale'](_0x2d79ff,_0x25922f);}}class ii extends _0xca1b2a{constructor(_0x2fd515){super(_0x2fd515);const t=_0x2fd515['t'],_0x3258d5=this['bindTemplate'],_0x3a6cb4=new _0x5a8e11();_0x3a6cb4['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':[_0x3a6cb4,{'text':_0x3258d5['to']('imageUploadProgress',_0x2ce2f8=>t('Loading\x20image...')+'\x20('+(_0x2ce2f8||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 _0xca1b2a{constructor(_0x463a29){super(_0x463a29);const t=_0x463a29['t'];this['set']('errorType',null);const _0x3129ca=new _0x14ba70(_0x463a29);_0x3129ca['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3129ca['withText']=!0x0,_0x3129ca['class']='ck-button-action',_0x3129ca['on']('execute',()=>{this['fire']('retry');}),_0x3129ca['bind']('isVisible')['to'](this,'errorType',_0x5635b9=>'NotFound'!==_0x5635b9);const _0x51364d=new _0x227b4b();_0x51364d['content']=_0x31e957,_0x51364d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x9b3638=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':[_0x51364d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x9b3638['to']('errorType',_0x554620=>t('NotFound'!==_0x554620?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3129ca]},{'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 _0xca1b2a{constructor(_0x4408c1,_0x4fe9bf){super(_0x4408c1);const _0x45f9a6=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4fe9bf,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x45f9a6['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x317424,_0x156d40,_0x367a8f){super(_0x317424),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x317424),this['_errorView']=new ti(_0x317424),this['_editingView']=new ei(_0x317424,_0x367a8f),this['_focusableView']=new _0xca1b2a(_0x317424),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x156d40),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'],_0x96c280=>{this['_addUploadcareImageEditorListeners'](_0x96c280);});}),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'](_0x1f6fe4,_0x2bf810){const _0x1e65e9='uc-cloud-image-editor',_0x4d8d5a=_0x1f6fe4['querySelector'](_0x1e65e9);if(_0x4d8d5a)return _0x2bf810(_0x4d8d5a);const _0x20be5a=new MutationObserver(_0x4e47c1=>{const _0x4fd3ba=_0x4e47c1['filter'](_0x303dd1=>_0x303dd1['target']===_0x1f6fe4&&_0x303dd1['addedNodes']['length']>0x0&&_0x303dd1['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1e65e9);_0x4fd3ba['length']&&(_0x20be5a['disconnect'](),_0x2bf810(_0x4fd3ba[0x0]['addedNodes'][0x0]));});_0x20be5a['observe'](_0x1f6fe4,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x51d854){_0x51d854['addEventListener']('apply',_0x41ac03=>{this['fire']('apply',{'imageSrc':_0x41ac03['detail']['cdnUrl']});}),_0x51d854['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x31b6d0(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x486e2c,_0x178050,_0x1aa999){super(),this['_editor']=_0x486e2c,this['_dialog']=_0x178050,this['_imageElement']=_0x1aa999,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 _0x353e91=this['_imageElement'],_0xb675eb=_0x353e91['getAttribute']('uploadcareImageId'),_0x328683=_0x353e91['getAttribute']('src');if(_0xb675eb)await this['_loadImageInfo'](_0xb675eb,_0x328683);else{if(this['_imageCache']['has'](_0x328683)){const _0x57cd5b=this['_imageCache']['get'](_0x328683);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x57cd5b['url'],this['imageDimension']=_0x57cd5b['dimension'],this['imageId']=_0x57cd5b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x511919}=this['_editor'],t=_0x511919['t'],_0x1c474c=new X(_0x511919,this['imageStatus'],this['_attributes']);_0x1c474c['bind']('status')['to'](this,'imageStatus'),_0x1c474c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1c474c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1c474c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1c474c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x38488b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1c474c,'position':_0x13c2fc['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1c474c['focus']();},'onHide':()=>{_0x1c474c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3d038c=>!A(_0x3d038c,_0x1c474c['element'])}});}['_loadImageInfo'](_0x2abcad,_0x4697de){return j['getInfo'](_0x2abcad,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x31b0bc=>{const {width:_0x3800db,height:_0x59a5e5}=_0x31b0bc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4697de,this['imageDimension']={'width':_0x3800db,'height':_0x59a5e5},this['imageId']=_0x2abcad;})['catch'](_0x4fd021=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4fd021['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3d2cff,_0x2eef22){return this['_getImageAsFile'](_0x3d2cff)['then'](_0x439ead=>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':_0x2eef22['signal'],'file':_0x439ead,'onProgress':_0x2c27b7=>{_0x2c27b7&&_0x2c27b7['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2c27b7['value']));}}))['then'](_0x521423=>{const {width:_0x37e02b,height:_0x22b658}=_0x521423['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x521423['cdnUrl'],this['imageDimension']={'width':_0x37e02b,'height':_0x22b658},this['imageId']=_0x521423['uuid'],this['imageUploadProgress']=null;const _0x55c258=_0x3d2cff['getAttribute']('src');this['_imageCache']['set'](_0x55c258,{'id':_0x521423['uuid'],'url':_0x521423['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1710b4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1710b4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x55280a,_0x2637a6){_0x55280a['on']('apply',(_0xcb8533,_0x515169)=>{this['_replaceImage'](_0x2637a6,_0x515169['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x55280a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x55280a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3bc3e2,_0x25504c,_0x3b5d2e){const _0x3644bc=this['_editor'],{width:_0x14befd,height:_0x4a6281}=S(_0x25504c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1e0c70,imageSources:_0xac74ca}=C(_0x25504c,_0x14befd);_0x3644bc['model']['change'](_0x1d5b0f=>{if('$graveyard'===_0x3bc3e2['root']['rootName']){_0x3644bc['execute']('insertImage',{'imageType':_0x3bc3e2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3bc3e2['getAttributes']()),'uploadcareImageId':_0x3b5d2e,'src':_0x1e0c70,'sources':_0xac74ca,'width':_0x14befd,'height':_0x4a6281}});const _0xd1ac7f=_0x3bc3e2['getChildren']();_0x3bc3e2=_0x3644bc['model']['document']['selection']['getSelectedElement']();for(const _0x1c146f of _0xd1ac7f)_0x1d5b0f['append'](_0x1d5b0f['cloneElement'](_0x1c146f),_0x3bc3e2);}else _0x1d5b0f['setSelection'](_0x3bc3e2,'on'),_0x3644bc['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3bc3e2['getAttributes']()),'uploadcareImageId':_0x3b5d2e,'src':_0x1e0c70,'sources':_0xac74ca,'width':_0x14befd,'height':_0x4a6281},_0x3bc3e2);_0x1d5b0f['setSelection'](_0x3bc3e2,'on');});}async['_getImageAsFile'](_0xabddaf){const _0x27a311=_0x2bc55b['window'],_0x20b310=_0x2bc55b['document']['location']['href'],_0x458d17=new _0x27a311['URL'](_0xabddaf['getAttribute']('src'),_0x20b310);if('data:'===_0x458d17['protocol']){const _0x29c1c3=_0x458d17['href']['split'](','),_0x2485b8=_0x29c1c3[0x0]['match'](/:(.*?);/)[0x1],_0x24ce35=_0x2485b8['split']('/')[0x1],_0x141a0d=_0x27a311['atob'](_0x29c1c3[_0x29c1c3['length']-0x1]);let _0x4b83b5=_0x141a0d['length'];const _0x52b246=new _0x27a311['Uint8Array'](_0x4b83b5);for(;_0x4b83b5--;)_0x52b246[_0x4b83b5]=_0x141a0d['charCodeAt'](_0x4b83b5);return new _0x27a311['File']([_0x52b246],'image.'+_0x24ce35,{'type':_0x2485b8});}const _0x61341f=_0x458d17['href']['split']('/'),_0x42b62c=_0x61341f[_0x61341f['length']-0x1],_0x48f463=_0x42b62c['split']('.')[0x1];return _0x27a311['fetch'](_0x458d17['href'])['then'](_0x3e76da=>_0x3e76da['clone']()['blob']())['then'](_0x11ba98=>new _0x27a311['File']([_0x11ba98],_0x42b62c,{'type':'image/'+_0x48f463}));}}class Q extends _0x1a80f7{['imageEditController'];static get['requires'](){return[_0x4dd4e8];}['_isEditable'];constructor(_0x2cbd31){super(_0x2cbd31),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xd9bf19){const _0x281c1e=z(_0xd9bf19);return _0x369a4d=>!(!_0x369a4d||!_0x369a4d['is']('element','imageBlock')&&!_0x369a4d['is']('element','imageInline'))&&(!!_0x369a4d['hasAttribute']('uploadcareImageId')||!!_0x369a4d['hasAttribute']('src')&&_0x281c1e(_0x369a4d['getAttribute']('src')));}(_0x2cbd31['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x20d0e9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x20d0e9);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x381a17=this['editor']['model']['document']['selection']['getSelectedElement']();_0x381a17&&(_0x381a17['is']('element','imageBlock')||_0x381a17['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x4dd4e8),_0x381a17),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x1a80f7{['refresh'](){const _0x4546d1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4546d1&&(_0x4546d1['is']('element','imageBlock')||_0x4546d1['is']('element','imageInline')));}['execute'](_0xd99004){const _0x555d11=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x239a5b=>{_0x239a5b['setAttributes'](_0xd99004,_0x555d11),_0x239a5b['removeAttribute']('srcset',_0x555d11),_0x239a5b['removeAttribute']('sizes',_0x555d11);});}}class m extends _0xfb9c85{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2f1def,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x927a91}=this;_0x927a91['commands']['add']('uploadcareImageEdit',new Q(_0x927a91)),_0x927a91['commands']['add']('uploadcareImageReplace',new V(_0x927a91));}}class g extends _0xfb9c85{['_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 _0x5ee97d=this['editor'];_0x5ee97d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3e3036=>{const _0x1f6769=_0x5ee97d['commands']['get']('uploadcareImageEdit'),_0x3f6096=new _0x14ba70(_0x3e3036),t=_0x3e3036['t'];return _0x3f6096['set']({'icon':_0x38488b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3f6096['bind']('isEnabled')['to'](_0x1f6769),_0x3f6096['bind']('isOn')['to'](_0x1f6769,'isActive'),this['listenTo'](_0x3f6096,'execute',()=>{_0x5ee97d['execute']('uploadcareImageEdit'),_0x5ee97d['editing']['view']['focus']();}),_0x3f6096;}),this['_initConfig']();}['_initConfig'](){const _0x2e9d4b=_0x5d4966(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2e9d4b),this['listenTo'](this['editor'],'destroy',()=>{_0x2e9d4b['remove']();});}}class et extends _0xfb9c85{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x506e2c,Command as _0x40ce2d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x43215d,IconGooglePhotos as _0x97faf5,IconGoogleDrive as _0x3abdd8,IconFacebook as _0x54fb0c,IconDropbox as _0x59de78,IconUploadcareLink as _0x534b43,IconUploadcareImageUpload as _0x34a7ef,IconError as _0x573a7c,IconUploadcareImageEdit as _0x1864b1}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x207fe5,MenuBarMenuListItemButtonView as _0x3780a1,View as _0x2af9c1,FocusCycler as _0x213b7d,Dialog as _0x33f5b7,DialogViewPosition as _0x200239,SpinnerView as _0x511d6e,IconView as _0x5c35a9,Notification as _0x28fc60}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2589d0,DomEmitterMixin as _0x4df0d3,global as _0x2bc079,getAncestors as _0x31ed08,ObservableMixin as _0x2eeb3f,uid as _0x96132e,createElement as _0x4561dd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x12cbbb}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x616d4c,info as _0x4b1fdd}from'@uploadcare/upload-client';import*as _0x58df0b from'@uploadcare/file-uploader';var i=function(_0x38de49){return _0x38de49['Local']='local',_0x38de49['URL']='url',_0x38de49['Dropbox']='dropbox',_0x38de49['GDrive']='gdrive',_0x38de49['Facebook']='facebook',_0x38de49['GPhotos']='gphotos',_0x38de49['OneDrive']='onedrive',_0x38de49;}({});function _(_0x110b72,_0x3acbb8,_0x40647e){const t=_0x110b72['t'],_0x34e346=_0x110b72['t'];switch(_0x3acbb8){case i['Local']:return{'text':_0x34e346('Insert'===_0x40647e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x34e346('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x40647e?_0x34e346('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x34e346('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x40647e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x40647e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x40647e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x40647e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x40647e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3acbb8;}}class e extends _0x506e2c{['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 _0x53e039=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x15ab56;for(const _0x502043 in _0x53e039){const _0x1e115d=_0x502043,_0x3c1802=_0x53e039[_0x1e115d];if('uploadcareLicenseKeyValid'==_0x3c1802||'uploadcareLicenseKeyInvalid'==_0x3c1802||'uploadcareLicenseKeyExpired'==_0x3c1802||'uploadcareLicenseKeyDomainLimit'==_0x3c1802||'uploadcareLicenseKeyNotAllowed'==_0x3c1802||'uploadcareLicenseKeyEvaluationLimit'==_0x3c1802||'uploadcareLicenseKeyUsageLimit'==_0x3c1802){delete _0x53e039[_0x1e115d],_0x15ab56=_0x3c1802,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x15ab56&&_0x53e039['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x15ab56&&_0x53e039['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x15ab56&&_0x53e039['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x15ab56&&_0x53e039['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x15ab56&&_0x53e039['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x15ab56&&_0x53e039['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x26217e}=this,_0xdae832=_0x26217e['commands']['get']('uploadcare');if(!_0xdae832)return;const _0x243a7c=this['_normalizeConfigSourceList'](_0x26217e['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x417c88,_0x194c3c)=>{const _0x3fdcd8=this['_getIntegrationKey'](_0x194c3c['type']);return _0x417c88[_0x3fdcd8]||(_0x417c88[_0x3fdcd8]=[]),_0x417c88[_0x3fdcd8]['push'](_0x194c3c),_0x417c88;},{});_0x26217e['plugins']['has']('ImageInsertUI')&&_0x26217e['commands']['get']('uploadcare')&&Object['entries'](_0x243a7c)['forEach'](([_0x102d6e,_0x2ab483])=>{_0x26217e['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x102d6e,'observable':()=>_0xdae832,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2ab483),'formViewCreator':()=>this['_createDropdownButtons'](_0x2ab483),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2ab483),'override':'assetManager'!==_0x102d6e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x14b270){const {locale:_0x5f46a4}=this['editor'];return _0x14b270['map'](_0x1eebae=>{const _0x18287a=_(_0x5f46a4,_0x1eebae,'Insert');switch(_0x1eebae){case i['Local']:return{'icon':_0x34a7ef,'type':i['Local'],..._0x18287a};case i['URL']:return{'icon':_0x534b43,'type':i['URL'],..._0x18287a};case i['Dropbox']:return{'icon':_0x59de78,'type':i['Dropbox'],..._0x18287a};case i['Facebook']:return{'icon':_0x54fb0c,'type':i['Facebook'],..._0x18287a};case i['GDrive']:return{'icon':_0x3abdd8,'type':i['GDrive'],..._0x18287a};case i['GPhotos']:return{'icon':_0x97faf5,'type':i['GPhotos'],..._0x18287a};case i['OneDrive']:return{'icon':_0x43215d,'type':i['OneDrive'],..._0x18287a};}});}['_getIntegrationKey'](_0x27ff02){switch(_0x27ff02){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x146a1e,_0xae71af){const _0x2bd029=this['editor'],_0x45afe6=new _0x146a1e(_0x2bd029['locale']),_0x28b67b=_0x2bd029['commands']['get']('uploadcare');return _0x45afe6['bind']('isEnabled')['to'](_0x28b67b),_0x45afe6['on']('execute',()=>{_0x28b67b['execute'](_0xae71af);}),_0x45afe6;}['_createToolbarButton'](_0x1cb163){const {locale:_0x2acd19}=this['editor'],_0x29f3ef=this['editor']['plugins']['get']('ImageInsertUI'),_0x4ba404=_0x1cb163[0x0],_0x150eaf=this['_createButton'](_0x207fe5,_0x4ba404['type']);return _0x150eaf['icon']=_0x4ba404['icon'],_0x150eaf['bind']('label')['to'](_0x29f3ef,'isImageSelected',_0x6108e0=>_(_0x2acd19,_0x4ba404['type'],_0x6108e0?'Replace':'Insert')['text']),_0x150eaf['tooltip']=!0x0,_0x150eaf;}['_createDropdownButtons'](_0x1cb116){const {locale:_0x2868de}=this['editor'],_0x158f86=this['editor']['plugins']['get']('ImageInsertUI');return _0x1cb116['map'](_0x2cca20=>{const _0x2fb414=this['_createButton'](_0x207fe5,_0x2cca20['type']);return _0x2fb414['withText']=!0x0,_0x2fb414['icon']=_0x2cca20['icon'],_0x2fb414['bind']('label')['to'](_0x158f86,'isImageSelected',_0x52d113=>_(_0x2868de,_0x2cca20['type'],_0x52d113?'Replace':'Insert')['text']),_0x2fb414;});}['_createMenuBarButtons'](_0x20d5f1){return _0x20d5f1['map'](_0x780619=>{const _0x74978=this['_createButton'](_0x3780a1,_0x780619['type']);return _0x74978['icon']=_0x780619['icon'],_0x74978['label']=_0x780619['shortText'],_0x74978;});}}class F extends _0x2af9c1{['focusTracker'];['focusCycler'];constructor(_0x3979c6){super(_0x3979c6),this['focusTracker']=new _0x2589d0(),this['focusCycler']=new _0x213b7d({'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(_0x2c5ccd,_0x2e2758){super(_0x2c5ccd),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-'+_0x2e2758}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x29aa84,_0xe6210b){const _0x2fb68f=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x89bf13=>_0x89bf13<=_0xe6210b)['map'](_0x388e3b=>_0x29aa84['replace'](/\/$/,'')+'/-/resize/'+_0x388e3b+'x/\x20'+_0x388e3b+'w');return{'imageFallbackUrl':_0x29aa84,'imageSources':[{'srcset':_0x2fb68f['join'](',\x20'),'sizes':'(max-width:\x20'+_0xe6210b+'px)\x20100vw,\x20'+_0xe6210b+'px','type':'image/webp'}]};}function S(_0x48e183,_0x1380c3,_0x22b72c){const _0x44e6d3=_0x48e183['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x44e6d3?parseInt(_0x44e6d3[0x1],0xa):_0x1380c3,'height':_0x44e6d3?parseInt(_0x44e6d3[0x2],0xa):_0x22b72c};}function p(_0x226b13,_0x3890eb){const _0x3c9c7d=new(_0x4df0d3())(),_0x455d8f=_0x226b13['plugins']['get']('ImageUtils'),_0x9191f4=_0x226b13['editing']['mapper']['toViewElement'](_0x3890eb),_0x3383da=_0x455d8f['findViewImgElement'](_0x9191f4),_0x8125ca=_0x226b13['editing']['view']['domConverter']['viewToDom'](_0x3383da),_0x453f37=_0x3890eb['getAttribute']('width'),_0x3b5cd3=_0x3890eb['getAttribute']('height'),_0x2696f8='image-processing';_0x226b13['editing']['view']['change'](_0x442d7a=>{_0x442d7a['addClass'](_0x2696f8,_0x9191f4),_0x442d7a['setStyle']('aspect-ratio',_0x453f37+'/'+_0x3b5cd3,_0x3383da);}),_0x3c9c7d['listenTo'](_0x8125ca,'load',()=>{_0x3c9c7d['stopListening'](_0x8125ca,'load'),_0x226b13['editing']['view']['change'](_0xba29fe=>{_0xba29fe['removeClass'](_0x2696f8,_0x9191f4),_0xba29fe['removeStyle']('aspect-ratio',_0x3383da);});});}function G(_0x885576){if(Array['isArray'](_0x885576)){const _0x4d4d9d=_0x885576['map'](G);return _0x42bccf=>_0x4d4d9d['some'](_0x4ed78e=>_0x4ed78e(_0x42bccf));}if('origin'==_0x885576){const _0x42d9db=_0x2bc079['window']['location']['origin'];return _0x21231f=>new URL(_0x21231f,_0x2bc079['document']['baseURI'])['origin']==_0x42d9db;}return'function'==typeof _0x885576?_0x885576:_0x885576 instanceof RegExp?_0x583e9d=>!(!_0x583e9d['match'](_0x885576)&&!_0x583e9d['replace'](/^https?:\/\//,'')['match'](_0x885576)):()=>!0x1;}function A(_0x553290,_0x136966){return _0x31ed08(_0x553290['target'])['includes'](_0x136966);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2eeb3f(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x80863f,_0xd623e1,_0x164c6b){super(),this['_editor']=_0x80863f,this['_editing']=_0xd623e1,this['_dialog']=_0x80863f['plugins']['get'](_0x33f5b7),this['_api']=_0xd623e1['ctxElement']['getAPI'](),this['_type']=_0x164c6b,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:_0x5ae05f,model:_0x47a8d8}=this['_editor'],_0x275db6=_0x47a8d8['document']['selection']['getSelectedElement'](),_0x238ce5=_0x275db6&&(_0x275db6['is']('element','imageBlock')||_0x275db6['is']('element','imageInline'));this['_formView']=new x(_0x5ae05f,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x34a7ef,'title':_(_0x5ae05f,this['_type'],_0x238ce5?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x200239['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3f9a3b=>!A(_0x3f9a3b,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3faf9c}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xe32561=>{const _0x4337f3=_0x3faf9c['length'];for(const _0x41b5c0 of _0x3faf9c){const _0x1e0437=_0x41b5c0===_0x3faf9c[_0x4337f3-0x1],{cdnUrl:_0x5ed0c8,fileInfo:_0x5731a2}=_0x41b5c0;if(!_0x5ed0c8||!_0x5731a2)continue;const {width:_0x1f283e,height:_0x216e8f}=_0x5731a2['imageInfo'],_0x38c65e=S(_0x5ed0c8,_0x1f283e,_0x216e8f),_0x291b28=C(_0x5ed0c8,_0x38c65e['width']),_0x2176c7={'id':_0x5731a2['uuid'],'type':'image','attributes':{'imageDimension':_0x38c65e,..._0x291b28}};this['_insertAsset'](_0x2176c7,_0x1e0437,_0xe32561);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x61e443=>{'idle'===_0x61e443['detail']['status']&&!_0x61e443['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3fe5ec,_0x2cac0a,_0x11006b){const _0x5c9deb=this['_editor']['model']['document']['selection'],_0x1a5833=_0x5c9deb['getSelectedElement'](),_0x508d19=!(!_0x1a5833||!_0x1a5833['is']('element','imageInline'));_0x11006b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3fe5ec,_0x508d19),_0x2cac0a||_0x11006b['setSelection'](_0x5c9deb['getLastPosition']());}['_insertImage'](_0x221acf,_0x1cf26e){const _0x3b5e73=this['_editor'],{imageDimension:_0x26b165,imageFallbackUrl:_0x48e8da,imageSources:_0x2a58db}=_0x221acf['attributes'];_0x3b5e73['execute']('insertImage',{'imageType':_0x1cf26e?'imageInline':null,'source':{'uploadcareImageId':_0x221acf['id'],'src':_0x48e8da,'sources':_0x2a58db,..._0x26b165}});}}class w extends _0x40ce2d{['_editing'];['_controller']=null;static get['requires'](){return[_0x33f5b7,o];}constructor(_0x403506){super(_0x403506),this['_editing']=_0x403506['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x393b97){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x393b97);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5f50ad,..._0x52fb1c}){return _0x616d4c(_0x5f50ad,_0x52fb1c);}static['getInfo'](_0xb4c055,_0x550298){return _0x4b1fdd(_0xb4c055,_0x550298);}}class f extends _0x506e2c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x12cbbb,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1639cd=this['editor'];if(!!!_0x1639cd['config']['get']('uploadcare'))return;_0x1639cd['plugins']['get'](_0x12cbbb)['createUploadAdapter']=_0x6eb1d4=>new k(_0x6eb1d4,_0x1639cd),_0x1639cd['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xc43382,{imageElement:_0x1cf66f,data:_0xeb4497})=>{_0x1639cd['model']['change'](_0x411ae4=>{_0x411ae4['setAttribute']('uploadcareImageId',_0xeb4497['uploadcareImageId'],_0x1cf66f);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x3c49fd,_0xff0d9c){this['loader']=_0x3c49fd,this['editor']=_0xff0d9c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3fcd39=await this['loader']['file'];return j['upload']({'file':_0x3fcd39,'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':_0x49dec9=>{_0x49dec9&&_0x49dec9['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x49dec9['value']);}})['then'](async _0x223d21=>{const {imageFallbackUrl:_0x2cba70,imageSources:_0x9da4f1}=C(_0x223d21['cdnUrl'],_0x223d21['imageInfo']['width']);return{'uploadcareImageId':_0x223d21['uuid'],'default':_0x2cba70,'sources':_0x9da4f1};})['catch'](()=>{const _0x4fe053=t('Cannot\x20upload\x20file:')+('\x20'+_0x3fcd39['name']+'.');return Promise['reject'](_0x4fe053);});}['abort'](){this['controller']['abort']();}}class o extends _0x506e2c{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x33f5b7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3f1167){super(_0x3f1167),this['ucContextId']=_0x96132e();}['init'](){const _0x678b33=this['editor'];_0x678b33['commands']['add']('uploadcare',new w(_0x678b33));}['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 _0x1ffde1=_0x2bc079['document']['querySelector']('input[uploadcare-file-input]');_0x1ffde1&&_0x1ffde1['remove']();}),async function(_0xd1abe6){const _0x4ddf3a=_0x20c1e0([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]),_0x34ebf3=0x535f8c3a,_0x308faa=0x5358f34a^_0x34ebf3,_0x5ac603=window[_0x20c1e0([0x44,0x61,0x74,0x65])][_0x20c1e0([0x6e,0x6f,0x77])](),_0x4f4acd=_0xd1abe6[_0x20c1e0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x402cfd=new window[(_0x20c1e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f6b0e=>{_0x4f4acd[_0x20c1e0([0x6f,0x6e,0x63,0x65])](_0x20c1e0([0x72,0x65,0x61,0x64,0x79]),_0x3f6b0e);}),_0x6a3c7={[_0x20c1e0([0x6b,0x74,0x79])]:_0x20c1e0([0x45,0x43]),[_0x20c1e0([0x75,0x73,0x65])]:_0x20c1e0([0x73,0x69,0x67]),[_0x20c1e0([0x63,0x72,0x76])]:_0x20c1e0([0x50,0x2d,0x32,0x35,0x36]),[_0x20c1e0([0x78])]:_0x20c1e0([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]),[_0x20c1e0([0x79])]:_0x20c1e0([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]),[_0x20c1e0([0x61,0x6c,0x67])]:_0x20c1e0([0x45,0x53,0x32,0x35,0x36])},_0x248bff=_0x4f4acd[_0x20c1e0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x20c1e0([0x67,0x65,0x74])](_0x20c1e0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2e64ab(){let _0x15d74a,_0x4fa6b0=null,_0x10b4de=null;try{if(_0x248bff==_0x20c1e0([0x47,0x50,0x4c]))return _0x20c1e0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x15d74a=_0x239aa8(),!_0x15d74a)return _0x20c1e0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x15d74a[_0x20c1e0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x10b4de=_0x5f5409(_0x15d74a[_0x20c1e0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x15d74a[_0x20c1e0([0x6a,0x74,0x69])])),await _0xc9ee16()?_0x5eddd7()?_0x2f8b23()?_0x20c1e0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1bd16c()?(_0x15d74a[_0x20c1e0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20c1e0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4fa6b0=_0x1aa0d9(_0x20c1e0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5c08f2()):_0x20c1e0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x20c1e0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x20c1e0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x20c1e0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f8b23(){const _0x1a4cf=[_0x20c1e0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x20c1e0([0x74,0x72,0x69,0x61,0x6c])][_0x20c1e0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15d74a[_0x20c1e0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5ac603/0x3e8:0xe10*_0x308faa;return _0x15d74a[_0x20c1e0([0x65,0x78,0x70])]<_0x1a4cf;}function _0x5eddd7(){const _0x4bac02=_0x15d74a[_0x20c1e0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4bac02&&(!!_0x4bac02[_0x20c1e0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20c1e0([0x2a]))||!!_0x4bac02[_0x20c1e0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20c1e0([0x55,0x50,0x4c,0x43])));}function _0x1bd16c(){const _0x282f34=_0x15d74a[_0x20c1e0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x282f34||0x0==_0x282f34[_0x20c1e0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3aecf5}=new URL(window[_0x20c1e0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x282f34[_0x20c1e0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3aecf5))return!0x0;const _0x4c2b3a=_0x3aecf5[_0x20c1e0([0x73,0x70,0x6c,0x69,0x74])](_0x20c1e0([0x2e]));return _0x282f34[_0x20c1e0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ede96=>_0x4ede96[_0x20c1e0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20c1e0([0x2a])))[_0x20c1e0([0x6d,0x61,0x70])](_0x25b412=>_0x25b412[_0x20c1e0([0x73,0x70,0x6c,0x69,0x74])](_0x20c1e0([0x2e])))[_0x20c1e0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a214e=>_0x1a214e[_0x20c1e0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4c2b3a[_0x20c1e0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x20c1e0([0x6d,0x61,0x70])](_0x42c86f=>Array(_0x4c2b3a[_0x20c1e0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x42c86f[_0x20c1e0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x20c1e0([0x66,0x69,0x6c,0x6c])](_0x42c86f[0x0]===_0x20c1e0([0x2a])?_0x20c1e0([0x2a]):'')[_0x20c1e0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x42c86f))[_0x20c1e0([0x73,0x6f,0x6d,0x65])](_0x51ca8e=>_0x4c2b3a[_0x20c1e0([0x65,0x76,0x65,0x72,0x79])]((_0x1d5ecb,_0x24cd34)=>_0x51ca8e[_0x24cd34]===_0x1d5ecb||_0x51ca8e[_0x24cd34]===_0x20c1e0([0x2a])));}function _0x5c08f2(){return _0x4fa6b0&&_0x10b4de?new window[(_0x20c1e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3016aa,_0x26b89d)=>{_0x4fa6b0[_0x20c1e0([0x74,0x68,0x65,0x6e])](_0x3016aa,_0x26b89d),_0x10b4de[_0x20c1e0([0x74,0x68,0x65,0x6e])](_0x2a527d=>{_0x2a527d!=_0x20c1e0([0x56,0x61,0x6c,0x69,0x64])&&_0x3016aa(_0x2a527d);},_0x26b89d);}):_0x4fa6b0||_0x10b4de||_0x20c1e0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5f5409(_0xd8a66e,_0x1b13a1){return new window[(_0x20c1e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11822e=>{if(_0x4f79b3())return _0x11822e(_0x20c1e0([0x56,0x61,0x6c,0x69,0x64]));_0x336937(),_0x4f4acd[_0x20c1e0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x20c1e0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4d7712=!0x1;const _0x255137=_0x96132e();function _0x1f6d99(_0x40fff6){return!!_0x40fff6&&(typeof _0x40fff6===_0x20c1e0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40fff6===_0x20c1e0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40fff6[_0x20c1e0([0x74,0x68,0x65,0x6e])]===_0x20c1e0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40fff6[_0x20c1e0([0x63,0x61,0x74,0x63,0x68])]===_0x20c1e0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3afb59(_0x253ba2){_0x3d2dbd(_0x253ba2)[_0x20c1e0([0x74,0x68,0x65,0x6e])](_0x56d291=>{if(!_0x56d291||_0x56d291[_0x20c1e0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x20c1e0([0x6f,0x6b]))return _0x20c1e0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1dd2d0(_0x5c8ffd(_0x255137+_0x1b13a1))!=_0x56d291[_0x20c1e0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x20c1e0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x20c1e0([0x56,0x61,0x6c,0x69,0x64]);})[_0x20c1e0([0x74,0x68,0x65,0x6e])](_0x3033fb=>(_0x179020(),_0x3033fb),()=>{const _0xd1434=_0x3196a2();return null==_0xd1434?(_0x179020(),_0x20c1e0([0x56,0x61,0x6c,0x69,0x64])):_0x20c1e0(_0x5ac603-_0xd1434>(0x7753083a^_0x34ebf3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x20c1e0([0x74,0x68,0x65,0x6e])](_0x11822e)[_0x20c1e0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x11822e(_0x20c1e0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2ce550=0x536962ba^_0x34ebf3;function _0x179020(){const _0x58cfbf=_0x20c1e0([0x6c,0x6c,0x63,0x74,0x2d])+_0x1dd2d0(_0x5c8ffd(_0xd8a66e)),_0x47d2ba=_0x332080(_0x1dd2d0(window[_0x20c1e0([0x4d,0x61,0x74,0x68])][_0x20c1e0([0x63,0x65,0x69,0x6c])](_0x5ac603/_0x2ce550)));window[_0x20c1e0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20c1e0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58cfbf,_0x47d2ba);}function _0x3196a2(){const _0x2d75dd=_0x20c1e0([0x6c,0x6c,0x63,0x74,0x2d])+_0x1dd2d0(_0x5c8ffd(_0xd8a66e)),_0x542f7e=window[_0x20c1e0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20c1e0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d75dd);return _0x542f7e?window[_0x20c1e0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x332080(_0x542f7e),0x10)*_0x2ce550:null;}function _0x3d2dbd(_0x5be6f3){return new window[(_0x20c1e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d7dd6,_0x44d7cc)=>{_0x5be6f3[_0x20c1e0([0x74,0x68,0x65,0x6e])](_0x4d7dd6,_0x44d7cc),window[_0x20c1e0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x44d7cc,0x535e58fa^_0x34ebf3);});}}_0x4f4acd[_0x20c1e0([0x6f,0x6e])](_0x20c1e0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1fd363,_0x8e8e19)=>{if(_0x8e8e19[0x0]!=_0xd8a66e)return _0x11822e(_0x20c1e0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x8e8e19[0x1]={..._0x8e8e19[0x1],[_0x20c1e0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x255137};},{[_0x20c1e0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20c1e0([0x68,0x69,0x67,0x68])}),_0x4f4acd[_0x20c1e0([0x6f,0x6e])](_0x20c1e0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x370513=>{_0x1f6d99(_0x370513[_0x20c1e0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4d7712=!0x0,_0x3afb59(_0x370513[_0x20c1e0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x20c1e0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20c1e0([0x6c,0x6f,0x77])}),_0x402cfd[_0x20c1e0([0x74,0x68,0x65,0x6e])](()=>{_0x4d7712||_0x11822e(_0x20c1e0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4f79b3(){return _0x4f4acd[_0x20c1e0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20c1e0([0x76,0x69,0x65,0x77])][_0x20c1e0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x20c1e0([0x61,0x75,0x74,0x6f]);}function _0x336937(){_0x4f4acd[_0x20c1e0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20c1e0([0x76,0x69,0x65,0x77])][_0x20c1e0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20c1e0([0x61,0x75,0x74,0x6f]);}}function _0x1aa0d9(_0x414c4a){const _0x36219b=[new window[(_0x20c1e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2651bc=>setTimeout(_0x2651bc,0x5356b2f6^_0x34ebf3)),_0x402cfd[_0x20c1e0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x20c1e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f2fa5=>{let _0xe3b41=0x0;_0x4f4acd[_0x20c1e0([0x6d,0x6f,0x64,0x65,0x6c])][_0x20c1e0([0x6f,0x6e])](_0x20c1e0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x20a292,_0x13d0bf)=>{_0x13d0bf[0x0][_0x20c1e0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xe3b41++,_0xe3b41==(0x535f89d2^_0x34ebf3)&&(_0x2f2fa5(),_0x20a292[_0x20c1e0([0x6f,0x66,0x66])]());});}))];return window[_0x20c1e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20c1e0([0x72,0x61,0x63,0x65])](_0x36219b)[_0x20c1e0([0x74,0x68,0x65,0x6e])](()=>_0x414c4a);}async function _0x51bc79(){await _0x402cfd,_0x4f4acd[_0x20c1e0([0x6d,0x6f,0x64,0x65,0x6c])][_0x20c1e0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x30d7f3,_0x4f4acd[_0x20c1e0([0x6d,0x6f,0x64,0x65,0x6c])][_0x20c1e0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x30d7f3,_0x4f4acd[_0x20c1e0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x20c1e0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x249090(_0x159d4d){const _0x4ba50c=_0x50400f();_0x4f4acd[_0x4ba50c]=_0x20c1e0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x159d4d,_0x159d4d!=_0x20c1e0([0x56,0x61,0x6c,0x69,0x64])&&_0x51bc79();}function _0x50400f(){const _0x3ee8a2=window[_0x20c1e0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x20c1e0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x20c1e0([0x6e,0x6f,0x77])]())[_0x20c1e0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x20c1e0([0x2e]),'');let _0x4ec271=_0x20c1e0([0x68]);for(let _0x59bd5a=0x0;_0x59bd5a<_0x3ee8a2[_0x20c1e0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59bd5a+=0x2){let _0x64dfa5=window[_0x20c1e0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ee8a2[_0x20c1e0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59bd5a,_0x59bd5a+0x2));_0x64dfa5>=_0x4ddf3a[_0x20c1e0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x64dfa5-=_0x4ddf3a[_0x20c1e0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4ec271+=_0x4ddf3a[_0x64dfa5];}return _0x4ec271;}function _0x239aa8(){const _0x5d24d7=_0x248bff[_0x20c1e0([0x73,0x70,0x6c,0x69,0x74])](_0x20c1e0([0x2e]));if(0x3!=_0x5d24d7[_0x20c1e0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x174c5b(_0x5d24d7[0x1]);function _0x174c5b(_0x85723e){const _0x375363=_0x2db548(_0x85723e);return _0x375363&&_0x2af20b()?_0x375363:null;function _0x2af20b(){const _0x47a6d6=_0x375363[_0x20c1e0([0x6a,0x74,0x69])],_0x489e44=window[_0x20c1e0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47a6d6[_0x20c1e0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47a6d6[_0x20c1e0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x460228={..._0x375363,[_0x20c1e0([0x6a,0x74,0x69])]:_0x47a6d6[_0x20c1e0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x47a6d6[_0x20c1e0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x460228[_0x20c1e0([0x76,0x63])],_0x5c8ffd(_0x460228)==_0x489e44;}}}async function _0xc9ee16(){let _0x5cb017=!0x0;try{const _0x3e24e9=_0x248bff[_0x20c1e0([0x73,0x70,0x6c,0x69,0x74])](_0x20c1e0([0x2e])),[_0x3af28a,_0x13b4ca,_0x2e0e26]=_0x3e24e9;return _0x2fb13b(_0x3af28a),await _0x4bde3f(_0x3af28a,_0x13b4ca,_0x2e0e26),_0x5cb017;}catch{return!0x1;}function _0x2fb13b(_0xf7bc5e){const _0x45122f=_0x2db548(_0xf7bc5e);_0x45122f&&_0x45122f[_0x20c1e0([0x61,0x6c,0x67])]==_0x20c1e0([0x45,0x53,0x32,0x35,0x36])||(_0x5cb017=!0x1);}async function _0x4bde3f(_0x320d11,_0x4907bc,_0x1ba684){const _0x3ebeaa=window[_0x20c1e0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x20c1e0([0x66,0x72,0x6f,0x6d])](_0x10c202(_0x1ba684),_0x380842=>_0x380842[_0x20c1e0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x28d9d1=new window[(_0x20c1e0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x20c1e0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x320d11+_0x20c1e0([0x2e])+_0x4907bc),_0x9c158=window[_0x20c1e0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x20c1e0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x9c158)return;const _0x4d4d88=await _0x9c158[_0x20c1e0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x20c1e0([0x6a,0x77,0x6b]),_0x6a3c7,{[_0x20c1e0([0x6e,0x61,0x6d,0x65])]:_0x20c1e0([0x45,0x43,0x44,0x53,0x41]),[_0x20c1e0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x20c1e0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x20c1e0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x9c158[_0x20c1e0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x20c1e0([0x6e,0x61,0x6d,0x65])]:_0x20c1e0([0x45,0x43,0x44,0x53,0x41]),[_0x20c1e0([0x68,0x61,0x73,0x68])]:{[_0x20c1e0([0x6e,0x61,0x6d,0x65])]:_0x20c1e0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4d4d88,_0x3ebeaa,_0x28d9d1)||(_0x5cb017=!0x1);}}function _0x2db548(_0xc8a58c){return _0xc8a58c[_0x20c1e0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x20c1e0([0x65,0x79]))?JSON[_0x20c1e0([0x70,0x61,0x72,0x73,0x65])](_0x10c202(_0xc8a58c)):null;}function _0x10c202(_0xc95f41){return window[_0x20c1e0([0x61,0x74,0x6f,0x62])](_0xc95f41[_0x20c1e0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x20c1e0([0x2b]))[_0x20c1e0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x20c1e0([0x2f])));}function _0x5c8ffd(_0x46e674){let _0x571e8d=0x1505;function _0x350c7c(_0x20d939){for(let _0x471057=0x0;_0x471057<_0x20d939[_0x20c1e0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x471057++){const _0x54b9b8=_0x20d939[_0x20c1e0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x471057);_0x571e8d=(_0x571e8d<<0x5)+_0x571e8d+_0x54b9b8,_0x571e8d&=_0x571e8d;}}function _0x51adc7(_0x1d48a0){Array[_0x20c1e0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1d48a0)?_0x1d48a0[_0x20c1e0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x51adc7):_0x1d48a0&&typeof _0x1d48a0==_0x20c1e0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x20c1e0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1d48a0)[_0x20c1e0([0x73,0x6f,0x72,0x74])]()[_0x20c1e0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b28a6,_0x106a35])=>{_0x350c7c(_0x5b28a6),_0x51adc7(_0x106a35);}):_0x350c7c(window[_0x20c1e0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1d48a0));}return _0x51adc7(_0x46e674),_0x571e8d>>>0x0;}function _0x1dd2d0(_0x292775){return _0x292775[_0x20c1e0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x20c1e0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x20c1e0([0x30]));}function _0x332080(_0x27ae51){return _0x27ae51[_0x20c1e0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x20c1e0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x20c1e0([0x6a,0x6f,0x69,0x6e])]('');}function _0x30d7f3(){}function _0x20c1e0(_0xb31da7){return _0xb31da7['map'](_0x2ac10b=>String['fromCharCode'](_0x2ac10b))['join']('');}_0x249090(await _0x2e64ab());}(this);}['_initSchema'](){const _0x4ebed3=this['editor']['model']['schema'];_0x4ebed3['isRegistered']('imageBlock')&&_0x4ebed3['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4ebed3['isRegistered']('imageInline')&&_0x4ebed3['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2a4960=this['editor'];_0x2a4960['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2a4960['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5b8769=>_0x5b8769['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x221739=_0x2a4960['commands']['get']('replaceImageSource');_0x221739&&this['listenTo'](_0x221739,'cleanupImage',(_0x3b0e16,[_0x59659b,_0x3dfd90])=>{_0x59659b['removeAttribute']('uploadcareImageId',_0x3dfd90);});}['_initConfig'](){const _0x127c94=this['editor']['config']['get']('uploadcare.uploader')||{},_0x59de76=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4561dd(_0x2bc079['document'],'uc-config',{..._0x127c94,'pubkey':_0x59de76,'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']=_0x1be806=>{if('closeMax'==_0x1be806)return'#uc-icon-arrow-down';},_0x2bc079['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4561dd(_0x2bc079['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2bc079['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1cffe0=this['editor']['commands']['get']('insertImage');_0x1cffe0&&this['listenTo'](_0x1cffe0,'execute',()=>{const _0xe385a8=this['editor']['model']['document']['selection']['getSelectedElement']();_0xe385a8&&_0xe385a8['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xe385a8);});});const _0x53ee9b=this['editor']['commands']['get']('uploadcareImageReplace');_0x53ee9b&&this['listenTo'](_0x53ee9b,'execute',()=>{const _0x2b7b29=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2b7b29&&_0x2b7b29['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2b7b29);});});}}class tt extends _0x506e2c{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38bff3){super(_0x38bff3),_0x38bff3['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x58df0b['defineComponents'](_0x58df0b),this['_defineLocale']();}['_defineLocale'](){const _0x3fcf58=this['editor']['config']['get']('uploadcare.locale'),_0x38d2a3=this['editor']['locale']['contentLanguage'];_0x3fcf58&&_0x58df0b['defineLocale'](_0x38d2a3,_0x3fcf58);}}class ii extends _0x2af9c1{constructor(_0x551ad2){super(_0x551ad2);const t=_0x551ad2['t'],_0x2b1c86=this['bindTemplate'],_0x17302e=new _0x511d6e();_0x17302e['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':[_0x17302e,{'text':_0x2b1c86['to']('imageUploadProgress',_0x343b81=>t('Loading\x20image...')+'\x20('+(_0x343b81||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 _0x2af9c1{constructor(_0x155bb8){super(_0x155bb8);const t=_0x155bb8['t'];this['set']('errorType',null);const _0x193311=new _0x207fe5(_0x155bb8);_0x193311['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x193311['withText']=!0x0,_0x193311['class']='ck-button-action',_0x193311['on']('execute',()=>{this['fire']('retry');}),_0x193311['bind']('isVisible')['to'](this,'errorType',_0x45de65=>'NotFound'!==_0x45de65);const _0x128c3c=new _0x5c35a9();_0x128c3c['content']=_0x573a7c,_0x128c3c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x25fd90=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':[_0x128c3c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x25fd90['to']('errorType',_0xb342f6=>t('NotFound'!==_0xb342f6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x193311]},{'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 _0x2af9c1{constructor(_0x84d094,_0x14ab3e){super(_0x84d094);const _0x4e64d1=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x14ab3e,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4e64d1['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1586be,_0x210a58,_0x88ace2){super(_0x1586be),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1586be),this['_errorView']=new ti(_0x1586be),this['_editingView']=new ei(_0x1586be,_0x88ace2),this['_focusableView']=new _0x2af9c1(_0x1586be),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x210a58),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'],_0x38e99c=>{this['_addUploadcareImageEditorListeners'](_0x38e99c);});}),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'](_0x3433ad,_0x16148d){const _0x2b1b57='uc-cloud-image-editor',_0x378155=_0x3433ad['querySelector'](_0x2b1b57);if(_0x378155)return _0x16148d(_0x378155);const _0x4896d9=new MutationObserver(_0x2f6177=>{const _0x3a6657=_0x2f6177['filter'](_0x46ef65=>_0x46ef65['target']===_0x3433ad&&_0x46ef65['addedNodes']['length']>0x0&&_0x46ef65['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2b1b57);_0x3a6657['length']&&(_0x4896d9['disconnect'](),_0x16148d(_0x3a6657[0x0]['addedNodes'][0x0]));});_0x4896d9['observe'](_0x3433ad,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x548cf0){_0x548cf0['addEventListener']('apply',_0x20419e=>{this['fire']('apply',{'imageSrc':_0x20419e['detail']['cdnUrl']});}),_0x548cf0['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2eeb3f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3ffe11,_0x3638b3,_0x5327cc){super(),this['_editor']=_0x3ffe11,this['_dialog']=_0x3638b3,this['_imageElement']=_0x5327cc,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 _0x12be23=this['_imageElement'],_0x1ea633=_0x12be23['getAttribute']('uploadcareImageId'),_0xe877a=_0x12be23['getAttribute']('src');if(_0x1ea633)await this['_loadImageInfo'](_0x1ea633,_0xe877a);else{if(this['_imageCache']['has'](_0xe877a)){const _0x1eb807=this['_imageCache']['get'](_0xe877a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1eb807['url'],this['imageDimension']=_0x1eb807['dimension'],this['imageId']=_0x1eb807['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x38f42c}=this['_editor'],t=_0x38f42c['t'],_0x262e9f=new X(_0x38f42c,this['imageStatus'],this['_attributes']);_0x262e9f['bind']('status')['to'](this,'imageStatus'),_0x262e9f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x262e9f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x262e9f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x262e9f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1864b1,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x262e9f,'position':_0x200239['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x262e9f['focus']();},'onHide':()=>{_0x262e9f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x132db9=>!A(_0x132db9,_0x262e9f['element'])}});}['_loadImageInfo'](_0x2711f1,_0x1b3188){return j['getInfo'](_0x2711f1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4c2572=>{const {width:_0x5601c2,height:_0x369894}=_0x4c2572['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b3188,this['imageDimension']={'width':_0x5601c2,'height':_0x369894},this['imageId']=_0x2711f1;})['catch'](_0x323f03=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x323f03['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3b02e0,_0x4fd03a){return this['_getImageAsFile'](_0x3b02e0)['then'](_0x1a805a=>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':_0x4fd03a['signal'],'file':_0x1a805a,'onProgress':_0x4c7d0a=>{_0x4c7d0a&&_0x4c7d0a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4c7d0a['value']));}}))['then'](_0x2d9e8c=>{const {width:_0x1af33e,height:_0x590f11}=_0x2d9e8c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2d9e8c['cdnUrl'],this['imageDimension']={'width':_0x1af33e,'height':_0x590f11},this['imageId']=_0x2d9e8c['uuid'],this['imageUploadProgress']=null;const _0x461910=_0x3b02e0['getAttribute']('src');this['_imageCache']['set'](_0x461910,{'id':_0x2d9e8c['uuid'],'url':_0x2d9e8c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x30a0d5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x30a0d5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1f4323,_0x1506a3){_0x1f4323['on']('apply',(_0x41c4e2,_0x507ac8)=>{this['_replaceImage'](_0x1506a3,_0x507ac8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1f4323['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1f4323['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x52c64e,_0x4c5890,_0x5ec0a9){const _0x2788d8=this['_editor'],{width:_0x84345a,height:_0x2069c9}=S(_0x4c5890,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x98637c,imageSources:_0x216546}=C(_0x4c5890,_0x84345a);_0x2788d8['model']['change'](_0x1bcaf4=>{if('$graveyard'===_0x52c64e['root']['rootName']){_0x2788d8['execute']('insertImage',{'imageType':_0x52c64e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x52c64e['getAttributes']()),'uploadcareImageId':_0x5ec0a9,'src':_0x98637c,'sources':_0x216546,'width':_0x84345a,'height':_0x2069c9}});const _0x41f1c7=_0x52c64e['getChildren']();_0x52c64e=_0x2788d8['model']['document']['selection']['getSelectedElement']();for(const _0x131230 of _0x41f1c7)_0x1bcaf4['append'](_0x1bcaf4['cloneElement'](_0x131230),_0x52c64e);}else _0x1bcaf4['setSelection'](_0x52c64e,'on'),_0x2788d8['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x52c64e['getAttributes']()),'uploadcareImageId':_0x5ec0a9,'src':_0x98637c,'sources':_0x216546,'width':_0x84345a,'height':_0x2069c9},_0x52c64e);_0x1bcaf4['setSelection'](_0x52c64e,'on');});}async['_getImageAsFile'](_0x4efba1){const _0x2e7934=_0x2bc079['window'],_0x37ac03=_0x2bc079['document']['location']['href'],_0x383327=new _0x2e7934['URL'](_0x4efba1['getAttribute']('src'),_0x37ac03);if('data:'===_0x383327['protocol']){const _0x19cdfb=_0x383327['href']['split'](','),_0x5a9647=_0x19cdfb[0x0]['match'](/:(.*?);/)[0x1],_0x2097e6=_0x5a9647['split']('/')[0x1],_0x3bf5c=_0x2e7934['atob'](_0x19cdfb[_0x19cdfb['length']-0x1]);let _0xcd36c9=_0x3bf5c['length'];const _0x485c56=new _0x2e7934['Uint8Array'](_0xcd36c9);for(;_0xcd36c9--;)_0x485c56[_0xcd36c9]=_0x3bf5c['charCodeAt'](_0xcd36c9);return new _0x2e7934['File']([_0x485c56],'image.'+_0x2097e6,{'type':_0x5a9647});}const _0x9c2a5b=_0x383327['href']['split']('/'),_0x282fe=_0x9c2a5b[_0x9c2a5b['length']-0x1],_0x442d0b=_0x282fe['split']('.')[0x1];return _0x2e7934['fetch'](_0x383327['href'])['then'](_0x3eb86a=>_0x3eb86a['clone']()['blob']())['then'](_0x527d3e=>new _0x2e7934['File']([_0x527d3e],_0x282fe,{'type':'image/'+_0x442d0b}));}}class O extends _0x40ce2d{['imageEditController'];static get['requires'](){return[_0x33f5b7];}['_isEditable'];constructor(_0x1d1fb2){super(_0x1d1fb2),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3828d3){const _0x33527b=G(_0x3828d3);return _0x295563=>!(!_0x295563||!_0x295563['is']('element','imageBlock')&&!_0x295563['is']('element','imageInline'))&&(!!_0x295563['hasAttribute']('uploadcareImageId')||!!_0x295563['hasAttribute']('src')&&_0x33527b(_0x295563['getAttribute']('src')));}(_0x1d1fb2['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3ca85b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3ca85b);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x440439=this['editor']['model']['document']['selection']['getSelectedElement']();_0x440439&&(_0x440439['is']('element','imageBlock')||_0x440439['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x33f5b7),_0x440439),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x40ce2d{['refresh'](){const _0x187c5c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x187c5c&&(_0x187c5c['is']('element','imageBlock')||_0x187c5c['is']('element','imageInline')));}['execute'](_0x43c893){const _0x415b90=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x57a44d=>{_0x57a44d['setAttributes'](_0x43c893,_0x415b90),_0x57a44d['removeAttribute']('srcset',_0x415b90),_0x57a44d['removeAttribute']('sizes',_0x415b90);});}}class m extends _0x506e2c{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x28fc60,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x461938}=this;_0x461938['commands']['add']('uploadcareImageEdit',new O(_0x461938)),_0x461938['commands']['add']('uploadcareImageReplace',new R(_0x461938));}}class g extends _0x506e2c{['_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 _0x1c68ea=this['editor'];_0x1c68ea['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2868ad=>{const _0x39b77c=_0x1c68ea['commands']['get']('uploadcareImageEdit'),_0x18fd36=new _0x207fe5(_0x2868ad),t=_0x2868ad['t'];return _0x18fd36['set']({'icon':_0x1864b1,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x18fd36['bind']('isEnabled')['to'](_0x39b77c),_0x18fd36['bind']('isOn')['to'](_0x39b77c,'isActive'),this['listenTo'](_0x18fd36,'execute',()=>{_0x1c68ea['execute']('uploadcareImageEdit'),_0x1c68ea['editing']['view']['focus']();}),_0x18fd36;}),this['_initConfig']();}['_initConfig'](){const _0x316be4=_0x4561dd(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x316be4),this['listenTo'](this['editor'],'destroy',()=>{_0x316be4['remove']();});}}class et extends _0x506e2c{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};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
|
package/dist/translations/af.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x40338a=>0x1!=_0x40338a}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4d99ea=>{const {af:{dictionary:_0x18c07e,getPluralForm:_0x3fb293}}={'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x35ab59=>0x1!=_0x35ab59}};_0x4d99ea['af']||={'dictionary':{},'getPluralForm':null},_0x4d99ea['af']['dictionary']=Object['assign'](_0x4d99ea['af']['dictionary'],_0x18c07e),_0x4d99ea['af']['getPluralForm']=_0x3fb293;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
|
package/dist/translations/ar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':
|
|
23
|
+
export default{'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x3cf67c=>0x0==_0x3cf67c?0x0:0x1==_0x3cf67c?0x1:0x2==_0x3cf67c?0x2:_0x3cf67c%0x64>=0x3&&_0x3cf67c%0x64<=0xa?0x3:_0x3cf67c%0x64>=0xb?0x4:0x5}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1ed521=>{const {ar:{dictionary:_0x3b5d37,getPluralForm:_0x3c2273}}={'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x35ccdc=>0x0==_0x35ccdc?0x0:0x1==_0x35ccdc?0x1:0x2==_0x35ccdc?0x2:_0x35ccdc%0x64>=0x3&&_0x35ccdc%0x64<=0xa?0x3:_0x35ccdc%0x64>=0xb?0x4:0x5}};_0x1ed521['ar']||={'dictionary':{},'getPluralForm':null},_0x1ed521['ar']['dictionary']=Object['assign'](_0x1ed521['ar']['dictionary'],_0x3b5d37),_0x1ed521['ar']['getPluralForm']=_0x3c2273;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
|
package/dist/translations/ast.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x174634=>0x1!=_0x174634}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x82724c=>{const {ast:{dictionary:_0x452770,getPluralForm:_0x44ef90}}={'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x53ad4d=>0x1!=_0x53ad4d}};_0x82724c['ast']||={'dictionary':{},'getPluralForm':null},_0x82724c['ast']['dictionary']=Object['assign'](_0x82724c['ast']['dictionary'],_0x452770),_0x82724c['ast']['getPluralForm']=_0x44ef90;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
|
package/dist/translations/az.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x3586f3=>0x1!=_0x3586f3}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4a8173=>{const {az:{dictionary:_0x36c368,getPluralForm:_0x183613}}={'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x918b1a=>0x1!=_0x918b1a}};_0x4a8173['az']||={'dictionary':{},'getPluralForm':null},_0x4a8173['az']['dictionary']=Object['assign'](_0x4a8173['az']['dictionary'],_0x36c368),_0x4a8173['az']['getPluralForm']=_0x183613;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
|
package/dist/translations/be.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x2b8f14=>_0x2b8f14%0xa==0x1&&_0x2b8f14%0x64!=0xb?0x0:_0x2b8f14%0xa>=0x2&&_0x2b8f14%0xa<=0x4&&(_0x2b8f14%0x64<0xa||_0x2b8f14%0x64>=0x14)?0x1:0x2}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x35f526=>{const {be:{dictionary:_0x30bcbd,getPluralForm:_0x19648f}}={'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x2f30dd=>_0x2f30dd%0xa==0x1&&_0x2f30dd%0x64!=0xb?0x0:_0x2f30dd%0xa>=0x2&&_0x2f30dd%0xa<=0x4&&(_0x2f30dd%0x64<0xa||_0x2f30dd%0x64>=0x14)?0x1:0x2}};_0x35f526['be']||={'dictionary':{},'getPluralForm':null},_0x35f526['be']['dictionary']=Object['assign'](_0x35f526['be']['dictionary'],_0x30bcbd),_0x35f526['be']['getPluralForm']=_0x19648f;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
|