@ckeditor/ckeditor5-uploadcare 0.0.0-internal-20251218.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
|
@@ -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,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x5af20e=_0x58bc;function _0x3765(){const _0x33986c=['element','attributes','setSelection','1266748TMbxmP','imageInline','editing','imageBlock','ucContextId','execute','getSelectedElement','initFlow','1776075zaMzoe','_type','stopListening','done-click','Insert','2WqIHcE','_initDialog','getLastPosition','change','_dialog','uploadCare','EDITOR_TOP_CENTER','source-list','configElement','plugins','width','view','_insertImage','719130laqiMU','idle','Replace','getAPI','allEntries','_initListeners','insertImage','_insertAsset','hide','focus','ctxElement','status','text','Local','setAttribute','getOutputCollectionState','stopDelegating','imageInfo','_editing','setCurrentActivity','1394400DqTkeL','_formView','linkHref','get','uuid','removeSelectionAttribute','length','model','isOpen','show','11609752bzvnXU','detail','_api','selection','doneFlow','1953399sDhbNI','_editor','addEventListener','image','destroy','removeAllFiles','488789yKpbDY','document'];_0x3765=function(){return _0x33986c;};return _0x3765();}(function(_0x9846a2,_0x3d3db5){const _0x18b0ca=_0x58bc,_0x363113=_0x9846a2();while(!![]){try{const _0x46a0bb=parseInt(_0x18b0ca(0x1ea))/0x1*(-parseInt(_0x18b0ca(0x1fc))/0x2)+-parseInt(_0x18b0ca(0x1e4))/0x3+-parseInt(_0x18b0ca(0x1ef))/0x4+parseInt(_0x18b0ca(0x1f7))/0x5+-parseInt(_0x18b0ca(0x209))/0x6+parseInt(_0x18b0ca(0x1d5))/0x7+parseInt(_0x18b0ca(0x1df))/0x8;if(_0x46a0bb===_0x3d3db5)break;else _0x363113['push'](_0x363113['shift']());}catch(_0x1a6881){_0x363113['push'](_0x363113['shift']());}}}(_0x3765,0x68c72));import{IconUploadcareImageUpload as _0x42b8ed}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x211bf3}from'ckeditor5/src/utils.js';import{Dialog as _0x55a5b1,DialogViewPosition as _0x28cbec}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x4473c5}from'./uploadcareformview.js';import{UploadcareSource as _0x279f2a}from'../uploadcareconfig.js';import{getTranslation as _0x3e0481}from'../utils/common-translations.js';import{getImageUrls as _0x1dd8c2,getImageDimension as _0x1937e5}from'../utils/editingutils.js';import{isAncestor as _0x3a1f24}from'../utils/isancestor.js';function _0x58bc(_0x2c3630,_0x3a31b0){const _0x376537=_0x3765();return _0x58bc=function(_0x58bc86,_0x505c15){_0x58bc86=_0x58bc86-0x1d0;let _0x4b8e43=_0x376537[_0x58bc86];return _0x4b8e43;},_0x58bc(_0x2c3630,_0x3a31b0);}export class UploadcareController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x211bf3(){[_0x5af20e(0x1e5)];[_0x5af20e(0x200)];[_0x5af20e(0x1d3)];[_0x5af20e(0x1e1)];[_0x5af20e(0x1f8)]=null;[_0x5af20e(0x1d6)]=null;constructor(_0x3a5834,_0x188523,_0x392c8a){const _0x3acd40=_0x5af20e;super(),this[_0x3acd40(0x1e5)]=_0x3a5834,this[_0x3acd40(0x1d3)]=_0x188523,this[_0x3acd40(0x200)]=_0x3a5834[_0x3acd40(0x205)][_0x3acd40(0x1d8)](_0x55a5b1),this[_0x3acd40(0x1e1)]=_0x188523[_0x3acd40(0x213)][_0x3acd40(0x20c)](),this[_0x3acd40(0x1f8)]=_0x392c8a,this[_0x3acd40(0x1d3)][_0x3acd40(0x204)][_0x3acd40(0x217)](_0x3acd40(0x203),this[_0x3acd40(0x1f8)]),this[_0x3acd40(0x1fd)](),this[_0x3acd40(0x20e)](),this[_0x3acd40(0x1e1)][_0x3acd40(0x1f6)]();}[_0x5af20e(0x1e8)](){const _0x59a21e=_0x5af20e;this[_0x59a21e(0x1d6)]&&(this[_0x59a21e(0x1d6)][_0x59a21e(0x1e8)](),this[_0x59a21e(0x1d6)]=null),this[_0x59a21e(0x1e1)]&&this[_0x59a21e(0x1e1)][_0x59a21e(0x1e3)](),this[_0x59a21e(0x1f9)](),this[_0x59a21e(0x1d1)]();}[_0x5af20e(0x1fd)](){const _0x47da95=_0x5af20e,{locale:_0x131492,model:_0x5968e2}=this[_0x47da95(0x1e5)],_0x4b4d78=_0x5968e2[_0x47da95(0x1eb)][_0x47da95(0x1e2)][_0x47da95(0x1f5)](),_0x54f5e6=_0x4b4d78&&(_0x4b4d78['is'](_0x47da95(0x1ec),_0x47da95(0x1f2))||_0x4b4d78['is'](_0x47da95(0x1ec),_0x47da95(0x1f0)));this[_0x47da95(0x1d6)]=new _0x4473c5(_0x131492,this[_0x47da95(0x1d3)][_0x47da95(0x1f3)]),this[_0x47da95(0x200)][_0x47da95(0x1de)]({'id':_0x47da95(0x201),'icon':_0x42b8ed,'title':_0x3e0481(_0x131492,this[_0x47da95(0x1f8)],_0x54f5e6?_0x47da95(0x20b):_0x47da95(0x1fb))[_0x47da95(0x215)],'content':this[_0x47da95(0x1d6)],'position':_0x28cbec[_0x47da95(0x202)],'isModal':!0x0,'onShow':()=>{const _0x1c9490=_0x47da95;this[_0x1c9490(0x1d6)][_0x1c9490(0x212)]();},'onHide':()=>{const _0x1b6c0a=_0x47da95;this[_0x1b6c0a(0x1e1)][_0x1b6c0a(0x1e9)](),this[_0x1b6c0a(0x1e5)][_0x1b6c0a(0x1f1)][_0x1b6c0a(0x207)][_0x1b6c0a(0x212)](),this[_0x1b6c0a(0x1e8)]();},'keystrokeHandlerOptions':{'filter':_0x4e96eb=>!_0x3a1f24(_0x4e96eb,this[_0x47da95(0x1d6)][_0x47da95(0x1ec)])}});}[_0x5af20e(0x20e)](){const _0xa10272=_0x5af20e;this[_0xa10272(0x1d3)][_0xa10272(0x213)][_0xa10272(0x1e6)](_0xa10272(0x1fa),()=>{const _0x222a17=_0xa10272,{allEntries:_0x33c2c8}=this[_0x222a17(0x1e1)][_0x222a17(0x1d0)]();this[_0x222a17(0x1e5)][_0x222a17(0x1dc)][_0x222a17(0x1ff)](_0x5cf051=>{const _0x3432c1=_0x222a17,_0x16dfef=_0x33c2c8[_0x3432c1(0x1db)];for(const _0x4684dc of _0x33c2c8){const _0x1e8775=_0x4684dc===_0x33c2c8[_0x16dfef-0x1],{cdnUrl:_0x76801c,fileInfo:_0x5772c5}=_0x4684dc;if(!_0x76801c||!_0x5772c5)continue;const {width:_0x274de8,height:_0x526de9}=_0x5772c5[_0x3432c1(0x1d2)],_0x4ef1e3=_0x1937e5(_0x76801c,_0x274de8,_0x526de9),_0x252eb3=_0x1dd8c2(_0x76801c,_0x4ef1e3[_0x3432c1(0x206)]),_0x284548={'id':_0x5772c5[_0x3432c1(0x1d9)],'type':_0x3432c1(0x1e7),'attributes':{'imageDimension':_0x4ef1e3,..._0x252eb3}};this[_0x3432c1(0x210)](_0x284548,_0x1e8775,_0x5cf051);}}),this[_0x222a17(0x200)][_0x222a17(0x211)]();}),this[_0xa10272(0x1d3)][_0xa10272(0x213)][_0xa10272(0x1e6)](_0xa10272(0x1ff),_0x268bb5=>{const _0x4b25bb=_0xa10272;_0x4b25bb(0x20a)===_0x268bb5[_0x4b25bb(0x1e0)][_0x4b25bb(0x214)]&&!_0x268bb5[_0x4b25bb(0x1e0)][_0x4b25bb(0x20d)][_0x4b25bb(0x1db)]&&this[_0x4b25bb(0x200)][_0x4b25bb(0x1dd)]&&(this[_0x4b25bb(0x1f8)]===_0x279f2a[_0x4b25bb(0x216)]?this[_0x4b25bb(0x1e1)][_0x4b25bb(0x1d4)](_0x279f2a[_0x4b25bb(0x216)]):this[_0x4b25bb(0x1e1)][_0x4b25bb(0x1f6)]());});}[_0x5af20e(0x210)](_0x18e564,_0x4e6f50,_0x4a4ff2){const _0x4fa858=_0x5af20e,_0x2a27f9=this[_0x4fa858(0x1e5)][_0x4fa858(0x1dc)][_0x4fa858(0x1eb)][_0x4fa858(0x1e2)],_0x558ac7=_0x2a27f9[_0x4fa858(0x1f5)](),_0x2cd721=!(!_0x558ac7||!_0x558ac7['is'](_0x4fa858(0x1ec),_0x4fa858(0x1f0)));_0x4a4ff2[_0x4fa858(0x1da)](_0x4fa858(0x1d7)),this[_0x4fa858(0x208)](_0x18e564,_0x2cd721),_0x4e6f50||_0x4a4ff2[_0x4fa858(0x1ee)](_0x2a27f9[_0x4fa858(0x1fe)]());}[_0x5af20e(0x208)](_0x509667,_0x1209b5){const _0x534bb8=_0x5af20e,_0x508dcf=this[_0x534bb8(0x1e5)],{imageDimension:_0x352847,imageFallbackUrl:_0x58dee6,imageSources:_0x5938db}=_0x509667[_0x534bb8(0x1ed)];_0x508dcf[_0x534bb8(0x1f4)](_0x534bb8(0x20f),{'imageType':_0x1209b5?_0x534bb8(0x1f0):null,'source':{'uploadcareImageId':_0x509667['id'],'src':_0x58dee6,'sources':_0x5938db,..._0x352847}});}}
|
|
@@ -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
|
/**
|
|
@@ -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
|
-
var
|
|
23
|
+
function _0x2f6a(_0x3c19a4,_0x42f452){var _0x5318eb=_0x5318();return _0x2f6a=function(_0x2f6a3c,_0x3c7a62){_0x2f6a3c=_0x2f6a3c-0xda;var _0x572381=_0x5318eb[_0x2f6a3c];return _0x572381;},_0x2f6a(_0x3c19a4,_0x42f452);}function _0x5318(){var _0x2479be=['setTemplate','12EAGYQv','78KkPYfl','73265tnPiWB','7635251QFYcYX','ck-uploadcare-form','element','uc-light','675286WDEHHt','2qKBxNs','getFocusableElement','uc-file-uploader-inline','uploader-','11Mxbbnq','1672350vIrBbM','389354yHTYCN','focus','div','2299540NCPXaF','ck-reset_all-excluded','117KzugmI','ck-uploadcare-theme','538952bDOQBV','184PISviX'];_0x5318=function(){return _0x2479be;};return _0x5318();}var _0x36dca7=_0x2f6a;(function(_0xccd37a,_0x43251f){var _0x2af357=_0x2f6a,_0x321f8b=_0xccd37a();while(!![]){try{var _0xab48a1=-parseInt(_0x2af357(0xe2))/0x1*(parseInt(_0x2af357(0xe1))/0x2)+-parseInt(_0x2af357(0xe7))/0x3+parseInt(_0x2af357(0xf0))/0x4*(-parseInt(_0x2af357(0xdc))/0x5)+parseInt(_0x2af357(0xdb))/0x6*(parseInt(_0x2af357(0xe8))/0x7)+parseInt(_0x2af357(0xef))/0x8*(parseInt(_0x2af357(0xed))/0x9)+-parseInt(_0x2af357(0xeb))/0xa*(-parseInt(_0x2af357(0xe6))/0xb)+-parseInt(_0x2af357(0xda))/0xc*(-parseInt(_0x2af357(0xdd))/0xd);if(_0xab48a1===_0x43251f)break;else _0x321f8b['push'](_0x321f8b['shift']());}catch(_0xd0c8f6){_0x321f8b['push'](_0x321f8b['shift']());}}}(_0x5318,0x7c5ce));import{DialogFocusManagerView as _0x22acd}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x22acd{constructor(_0x3a9f70,_0x36ca4a){var _0x2a83a6=_0x2f6a;super(_0x3a9f70),this[_0x2a83a6(0xf1)]({'tag':_0x2a83a6(0xea),'attributes':{'class':['ck',_0x2a83a6(0xec),_0x2a83a6(0xde)],'tabindex':'-1'},'children':[{'tag':_0x2a83a6(0xe4),'attributes':{'class':[_0x2a83a6(0xe0),_0x2a83a6(0xee)],'ctx-name':_0x2a83a6(0xe5)+_0x36ca4a}},this[_0x2a83a6(0xe3)]()]});}[_0x36dca7(0xe9)](){var _0x317108=_0x36dca7;this[_0x317108(0xdf)][_0x317108(0xe9)]();}}
|
package/src/uploadcare.d.ts
CHANGED
|
@@ -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/src/uploadcare.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
|
-
const
|
|
23
|
+
const _0x52f306=_0x426c;(function(_0x2f3694,_0x36d60d){const _0x4240b4=_0x426c,_0x189de2=_0x2f3694();while(!![]){try{const _0x2aa4e9=parseInt(_0x4240b4(0xcf))/0x1+-parseInt(_0x4240b4(0xce))/0x2*(-parseInt(_0x4240b4(0xd8))/0x3)+parseInt(_0x4240b4(0xdd))/0x4*(parseInt(_0x4240b4(0xd1))/0x5)+-parseInt(_0x4240b4(0xe6))/0x6*(-parseInt(_0x4240b4(0xe7))/0x7)+-parseInt(_0x4240b4(0xe2))/0x8*(parseInt(_0x4240b4(0xcb))/0x9)+parseInt(_0x4240b4(0xd9))/0xa+-parseInt(_0x4240b4(0xcc))/0xb;if(_0x2aa4e9===_0x36d60d)break;else _0x189de2['push'](_0x189de2['shift']());}catch(_0x2e7e9d){_0x189de2['push'](_0x189de2['shift']());}}}(_0x3d93,0x231e1));import{Plugin as _0x427bd1}from'ckeditor5/src/core.js';function _0x426c(_0x1b50d7,_0xd96196){const _0x3d938e=_0x3d93();return _0x426c=function(_0x426c02,_0x52ef4c){_0x426c02=_0x426c02-0xcb;let _0x2e6499=_0x3d938e[_0x426c02];return _0x2e6499;},_0x426c(_0x1b50d7,_0xd96196);}import{UploadcareUI as _0x3952d4}from'./uploadcareui.js';import{UploadcareEditing as _0x2ea82d}from'./uploadcareediting.js';import{UploadcareSource as _0x585a6d}from'./uploadcareconfig.js';function _0x3d93(){const _0x44c824=['isPremiumPlugin','define','80368SSgWBX','Local','requires','defineLocale','630WQtaOp','10038NSVdcW','144fQpYUN','6077203aZKIQU','URL','2txoFxB','159989atBbjL','locale','5ilJcst','editor','contentLanguage','defineComponents','isOfficialPlugin','get','Uploadcare','675306dDyrTV','572980cNDXxe','uploadcare.uploader.sourceList','config','pluginName','1056364CezIDX','_defineLocale','uploadcare.locale'];_0x3d93=function(){return _0x44c824;};return _0x3d93();}import*as _0x181e20 from'@uploadcare/file-uploader';export class Uploadcare extends _0x427bd1{static get[_0x52f306(0xe4)](){return[_0x2ea82d,_0x3952d4];}static get[_0x52f306(0xdc)](){const _0x19384e=_0x52f306;return _0x19384e(0xd7);}static get[_0x52f306(0xd5)](){return!0x0;}static get[_0x52f306(0xe0)](){return!0x0;}constructor(_0x403b2d){const _0x1d6ec9=_0x52f306;super(_0x403b2d),_0x403b2d[_0x1d6ec9(0xdb)][_0x1d6ec9(0xe1)](_0x1d6ec9(0xda),[_0x585a6d[_0x1d6ec9(0xe3)],_0x585a6d[_0x1d6ec9(0xcd)]]),_0x181e20[_0x1d6ec9(0xd4)](_0x181e20),this[_0x1d6ec9(0xde)]();}[_0x52f306(0xde)](){const _0x2cb64e=_0x52f306,_0x2ce5f5=this[_0x2cb64e(0xd2)][_0x2cb64e(0xdb)][_0x2cb64e(0xd6)](_0x2cb64e(0xdf)),_0x24f84b=this[_0x2cb64e(0xd2)][_0x2cb64e(0xd0)][_0x2cb64e(0xd3)];_0x2ce5f5&&_0x181e20[_0x2cb64e(0xe5)](_0x24f84b,_0x2ce5f5);}}
|
|
@@ -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/src/uploadcarecommand.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
|
-
function
|
|
23
|
+
var _0x7bcf3f=_0x2db3;function _0x2db3(_0x4c70ce,_0x34f25a){var _0x40a8ae=_0x40a8();return _0x2db3=function(_0x2db33d,_0x58a5d5){_0x2db33d=_0x2db33d-0xea;var _0xddb29f=_0x40a8ae[_0x2db33d];return _0xddb29f;},_0x2db3(_0x4c70ce,_0x34f25a);}(function(_0x35106b,_0x29cdf5){var _0x3c12f0=_0x2db3,_0x37c2f4=_0x35106b();while(!![]){try{var _0x15c998=-parseInt(_0x3c12f0(0xf1))/0x1+-parseInt(_0x3c12f0(0xf4))/0x2*(parseInt(_0x3c12f0(0xeb))/0x3)+-parseInt(_0x3c12f0(0xf9))/0x4*(-parseInt(_0x3c12f0(0xf0))/0x5)+-parseInt(_0x3c12f0(0xef))/0x6*(parseInt(_0x3c12f0(0x100))/0x7)+-parseInt(_0x3c12f0(0xea))/0x8+parseInt(_0x3c12f0(0x101))/0x9+parseInt(_0x3c12f0(0xff))/0xa*(parseInt(_0x3c12f0(0xf8))/0xb);if(_0x15c998===_0x29cdf5)break;else _0x37c2f4['push'](_0x37c2f4['shift']());}catch(_0x56c1cb){_0x37c2f4['push'](_0x37c2f4['shift']());}}}(_0x40a8,0xa75b6));import{Command as _0x12b3b1}from'ckeditor5/src/core.js';import{Dialog as _0x6abbda}from'ckeditor5/src/ui.js';import{UploadcareEditing as _0x2920a9}from'./uploadcareediting.js';function _0x40a8(){var _0xc99e7c=['9476456ANEhpa','4788hPoERT','_checkEnabled','insertImage','plugins','18syamOw','5wEvTnH','523824XXRdYx','execute','requires','1162kyudLB','isEnabled','refresh','destroy','11YzbCrh','2243552mQoosp','_controller','_editing','get','commands','editor','22055830nVnkzg','1794289kMIHBM','11912949DXThRx'];_0x40a8=function(){return _0xc99e7c;};return _0x40a8();}import{UploadcareController as _0x3b061a}from'./ui/uploadcarecontroller.js';export class UploadcareCommand extends _0x12b3b1{[_0x7bcf3f(0xfb)];[_0x7bcf3f(0xfa)]=null;static get[_0x7bcf3f(0xf3)](){return[_0x6abbda,_0x2920a9];}constructor(_0xfdb817){var _0x2a979c=_0x7bcf3f;super(_0xfdb817),this[_0x2a979c(0xfb)]=_0xfdb817[_0x2a979c(0xee)][_0x2a979c(0xfc)](_0x2920a9);}[_0x7bcf3f(0xf6)](){var _0x23d7c7=_0x7bcf3f;this[_0x23d7c7(0xf5)]=this[_0x23d7c7(0xec)]();}[_0x7bcf3f(0xf2)](_0x2b31c9){var _0x52f080=_0x7bcf3f;this[_0x52f080(0xfa)]&&(this[_0x52f080(0xfa)][_0x52f080(0xf7)](),this[_0x52f080(0xfa)]=null),this[_0x52f080(0xfa)]=new _0x3b061a(this[_0x52f080(0xfe)],this[_0x52f080(0xfb)],_0x2b31c9);}[_0x7bcf3f(0xec)](){var _0x508fe0=_0x7bcf3f;return this[_0x508fe0(0xfe)][_0x508fe0(0xfd)][_0x508fe0(0xfc)](_0x508fe0(0xed))[_0x508fe0(0xf5)];}}
|
|
@@ -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/src/uploadcareconfig.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
|
-
|
|
23
|
+
(function(_0x1f7a66,_0x42628d){var _0x234da2=_0x2bae,_0x4f6414=_0x1f7a66();while(!![]){try{var _0x11d4d4=-parseInt(_0x234da2(0xd8))/0x1*(parseInt(_0x234da2(0xcc))/0x2)+parseInt(_0x234da2(0xc4))/0x3*(parseInt(_0x234da2(0xd3))/0x4)+parseInt(_0x234da2(0xce))/0x5+-parseInt(_0x234da2(0xc8))/0x6*(-parseInt(_0x234da2(0xcb))/0x7)+parseInt(_0x234da2(0xc6))/0x8*(parseInt(_0x234da2(0xd9))/0x9)+-parseInt(_0x234da2(0xda))/0xa+-parseInt(_0x234da2(0xd2))/0xb;if(_0x11d4d4===_0x42628d)break;else _0x4f6414['push'](_0x4f6414['shift']());}catch(_0x39a679){_0x4f6414['push'](_0x4f6414['shift']());}}}(_0x538f,0x738c8));function _0x2bae(_0x3a77f8,_0x7ea9df){var _0x538fa9=_0x538f();return _0x2bae=function(_0x2baec5,_0x414e46){_0x2baec5=_0x2baec5-0xc3;var _0x42a87c=_0x538fa9[_0x2baec5];return _0x42a87c;},_0x2bae(_0x3a77f8,_0x7ea9df);}export var UploadcareSource;function _0x538f(){var _0x4f24a2=['18cPYNit','GPhotos','32PoIAsn','url','6bMutdq','Facebook','facebook','3178231XXhdmT','127790FsCKEz','GDrive','1999560AERtci','Local','gphotos','URL','4104617DkIJnr','86276LIZhYm','dropbox','Dropbox','onedrive','local','1BNaVvI','48213TOFmxo','944570hXPmvJ','OneDrive','gdrive'];_0x538f=function(){return _0x4f24a2;};return _0x538f();}!function(_0x5f01bb){var _0x1c6f32=_0x2bae;_0x5f01bb[_0x1c6f32(0xcf)]=_0x1c6f32(0xd7),_0x5f01bb[_0x1c6f32(0xd1)]=_0x1c6f32(0xc7),_0x5f01bb[_0x1c6f32(0xd5)]=_0x1c6f32(0xd4),_0x5f01bb[_0x1c6f32(0xcd)]=_0x1c6f32(0xc3),_0x5f01bb[_0x1c6f32(0xc9)]=_0x1c6f32(0xca),_0x5f01bb[_0x1c6f32(0xc5)]=_0x1c6f32(0xd0),_0x5f01bb[_0x1c6f32(0xdb)]=_0x1c6f32(0xd6);}(UploadcareSource||(UploadcareSource={}));
|
|
@@ -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/src/uploadcareediting.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
|
-
const _0x2facc1=_0xef37;function _0xef37(_0xab9f2,_0x3718cf){const _0x26f9a5=_0x26f9();return _0xef37=function(_0xef37be,_0x427662){_0xef37be=_0xef37be-0xca;let _0x552b81=_0x26f9a5[_0xef37be];return _0x552b81;},_0xef37(_0xab9f2,_0x3718cf);}(function(_0x3b27b0,_0xa12c39){const _0x51b0f1=_0xef37,_0x30c66b=_0x3b27b0();while(!![]){try{const _0x1e16a8=parseInt(_0x51b0f1(0xcb))/0x1+parseInt(_0x51b0f1(0xfa))/0x2*(parseInt(_0x51b0f1(0x11a))/0x3)+parseInt(_0x51b0f1(0x117))/0x4+-parseInt(_0x51b0f1(0xd7))/0x5*(-parseInt(_0x51b0f1(0xff))/0x6)+-parseInt(_0x51b0f1(0x11c))/0x7*(-parseInt(_0x51b0f1(0xcf))/0x8)+parseInt(_0x51b0f1(0xdc))/0x9*(parseInt(_0x51b0f1(0x103))/0xa)+-parseInt(_0x51b0f1(0xd6))/0xb*(parseInt(_0x51b0f1(0x111))/0xc);if(_0x1e16a8===_0xa12c39)break;else _0x30c66b['push'](_0x30c66b['shift']());}catch(_0x177d26){_0x30c66b['push'](_0x30c66b['shift']());}}}(_0x26f9,0xb7747));import{Plugin as _0x133b75}from'ckeditor5/src/core.js';import{Dialog as _0x7ec3fb}from'ckeditor5/src/ui.js';import{createElement as _0x28a8e3,global as _0x11608a,uid as _0x241b4a}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4f68c2}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x4c7a84}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2b9eca}from'./utils/editingutils.js';export class UploadcareEditing extends _0x133b75{[_0x2facc1(0xf9)]=null;[_0x2facc1(0x118)]=null;static get[_0x2facc1(0x11d)](){const _0x21c87d=_0x2facc1;return _0x21c87d(0x110);}static get[_0x2facc1(0x100)](){const _0x19e841=_0x2facc1;return[_0x19e841(0xda),_0x4c7a84,_0x7ec3fb];}static get[_0x2facc1(0xe2)](){return!0x0;}static get[_0x2facc1(0x106)](){return!0x0;}[_0x2facc1(0x10f)];get[_0x2facc1(0xf4)](){const _0x409c6f=_0x2facc1;return this[_0x409c6f(0xf9)];}get[_0x2facc1(0x11f)](){const _0x177f72=_0x2facc1;return this[_0x177f72(0x118)];}constructor(_0xdd6f7a){const _0x25c64e=_0x2facc1;super(_0xdd6f7a),this[_0x25c64e(0x10f)]=_0x241b4a();}[_0x2facc1(0xf6)](){const _0x4d28fa=_0x2facc1,_0x3c6c89=this[_0x4d28fa(0xd3)];_0x3c6c89[_0x4d28fa(0xec)][_0x4d28fa(0xe4)](_0x4d28fa(0xe8),new _0x4f68c2(_0x3c6c89));}[_0x2facc1(0xf3)](){const _0x23c9f0=_0x2facc1;this[_0x23c9f0(0xd4)](),this[_0x23c9f0(0xdd)](),this[_0x23c9f0(0xef)](),this[_0x23c9f0(0x11e)](),this[_0x23c9f0(0x112)](),this[_0x23c9f0(0xf7)](this[_0x23c9f0(0xd3)],_0x23c9f0(0xcd),()=>{const _0x56d9f0=_0x23c9f0;this[_0x56d9f0(0xf9)]&&(this[_0x56d9f0(0xf9)][_0x56d9f0(0xde)](),this[_0x56d9f0(0xf9)]=null),this[_0x56d9f0(0x118)]&&(this[_0x56d9f0(0x118)][_0x56d9f0(0xde)](),this[_0x56d9f0(0x118)]=null);const _0x250673=_0x11608a[_0x56d9f0(0xf2)][_0x56d9f0(0xe3)](_0x56d9f0(0xca));_0x250673&&_0x250673[_0x56d9f0(0xde)]();}),async function(_0x58554c){const _0x3249c5=_0x22ba93([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]),_0x4a8d81=0x535f8c3a,_0x7e6ce4=0x5358f07a^_0x4a8d81,_0x28f9da=window[_0x22ba93([0x44,0x61,0x74,0x65])][_0x22ba93([0x6e,0x6f,0x77])](),_0x5068eb=_0x58554c[_0x22ba93([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1f40a5=new window[(_0x22ba93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7b10d3=>{_0x5068eb[_0x22ba93([0x6f,0x6e,0x63,0x65])](_0x22ba93([0x72,0x65,0x61,0x64,0x79]),_0x7b10d3);}),_0x4045b8={[_0x22ba93([0x6b,0x74,0x79])]:_0x22ba93([0x45,0x43]),[_0x22ba93([0x75,0x73,0x65])]:_0x22ba93([0x73,0x69,0x67]),[_0x22ba93([0x63,0x72,0x76])]:_0x22ba93([0x50,0x2d,0x32,0x35,0x36]),[_0x22ba93([0x78])]:_0x22ba93([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]),[_0x22ba93([0x79])]:_0x22ba93([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]),[_0x22ba93([0x61,0x6c,0x67])]:_0x22ba93([0x45,0x53,0x32,0x35,0x36])},_0x304f00=_0x5068eb[_0x22ba93([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x22ba93([0x67,0x65,0x74])](_0x22ba93([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x474a24(){let _0x2293ac,_0x4cf09a=null,_0x1b4419=null;try{if(_0x304f00==_0x22ba93([0x47,0x50,0x4c]))return _0x22ba93([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2293ac=_0x229477(),!_0x2293ac)return _0x22ba93([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2293ac[_0x22ba93([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1b4419=_0x263433(_0x2293ac[_0x22ba93([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2293ac[_0x22ba93([0x6a,0x74,0x69])])),await _0x5f4f53()?_0x3668cf()?_0x1639ec()?_0x22ba93([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4567b2()?(_0x2293ac[_0x22ba93([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22ba93([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4cf09a=_0x139c18(_0x22ba93([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2293ac[_0x22ba93([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22ba93([0x74,0x72,0x69,0x61,0x6c])&&(_0x4cf09a=_0x139c18(_0x22ba93([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2190d7()):_0x22ba93([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x22ba93([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x22ba93([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x22ba93([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1639ec(){const _0x149cd4=[_0x22ba93([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x22ba93([0x74,0x72,0x69,0x61,0x6c])][_0x22ba93([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2293ac[_0x22ba93([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x28f9da/0x3e8:0xe10*_0x7e6ce4;return _0x2293ac[_0x22ba93([0x65,0x78,0x70])]<_0x149cd4;}function _0x3668cf(){const _0xa4e59e=_0x2293ac[_0x22ba93([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xa4e59e&&(!!_0xa4e59e[_0x22ba93([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22ba93([0x2a]))||!!_0xa4e59e[_0x22ba93([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22ba93([0x55,0x50,0x4c,0x43])));}function _0x4567b2(){const _0x4ae88e=_0xef37,_0x3ff934=_0x2293ac[_0x22ba93([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3ff934||0x0==_0x3ff934[_0x22ba93([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x33dad5}=new URL(window[_0x22ba93([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4ae88e(0x107)]);if(_0x3ff934[_0x22ba93([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33dad5))return!0x0;const _0x2b12c0=_0x33dad5[_0x22ba93([0x73,0x70,0x6c,0x69,0x74])](_0x22ba93([0x2e]));return _0x3ff934[_0x22ba93([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x588caa=>_0x588caa[_0x22ba93([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22ba93([0x2a])))[_0x22ba93([0x6d,0x61,0x70])](_0x19eb25=>_0x19eb25[_0x22ba93([0x73,0x70,0x6c,0x69,0x74])](_0x22ba93([0x2e])))[_0x22ba93([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x27bd9e=>_0x27bd9e[_0x22ba93([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2b12c0[_0x22ba93([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x22ba93([0x6d,0x61,0x70])](_0x306dbb=>Array(_0x2b12c0[_0x22ba93([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x306dbb[_0x22ba93([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x22ba93([0x66,0x69,0x6c,0x6c])](_0x306dbb[0x0]===_0x22ba93([0x2a])?_0x22ba93([0x2a]):'')[_0x22ba93([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x306dbb))[_0x22ba93([0x73,0x6f,0x6d,0x65])](_0x15c674=>_0x2b12c0[_0x22ba93([0x65,0x76,0x65,0x72,0x79])]((_0x59ef78,_0x4c5df2)=>_0x15c674[_0x4c5df2]===_0x59ef78||_0x15c674[_0x4c5df2]===_0x22ba93([0x2a])));}function _0x2190d7(){return _0x4cf09a&&_0x1b4419?new window[(_0x22ba93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x20a6b0,_0x4da3c9)=>{_0x4cf09a[_0x22ba93([0x74,0x68,0x65,0x6e])](_0x20a6b0,_0x4da3c9),_0x1b4419[_0x22ba93([0x74,0x68,0x65,0x6e])](_0xedba8d=>{_0xedba8d!=_0x22ba93([0x56,0x61,0x6c,0x69,0x64])&&_0x20a6b0(_0xedba8d);},_0x4da3c9);}):_0x4cf09a||_0x1b4419||_0x22ba93([0x56,0x61,0x6c,0x69,0x64]);}}function _0x263433(_0x48a1da,_0x293426){return new window[(_0x22ba93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x523fdf=>{if(_0x286a7e())return _0x523fdf(_0x22ba93([0x56,0x61,0x6c,0x69,0x64]));_0x8dea14(),_0x5068eb[_0x22ba93([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x22ba93([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5bbc85=!0x1;const _0x3cdd0c=_0x241b4a();function _0x6be000(_0x30a85b){return!!_0x30a85b&&(typeof _0x30a85b===_0x22ba93([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x30a85b===_0x22ba93([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x30a85b[_0x22ba93([0x74,0x68,0x65,0x6e])]===_0x22ba93([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x30a85b[_0x22ba93([0x63,0x61,0x74,0x63,0x68])]===_0x22ba93([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2aaab4(_0xdcf3df){_0x36507e(_0xdcf3df)[_0x22ba93([0x74,0x68,0x65,0x6e])](_0x36c16c=>{if(!_0x36c16c||_0x36c16c[_0x22ba93([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x22ba93([0x6f,0x6b]))return _0x22ba93([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x596184(_0xd17ac3(_0x3cdd0c+_0x293426))!=_0x36c16c[_0x22ba93([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x22ba93([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x22ba93([0x56,0x61,0x6c,0x69,0x64]);})[_0x22ba93([0x74,0x68,0x65,0x6e])](_0x2042b0=>(_0x1ca91d(),_0x2042b0),()=>{const _0x36e4fa=_0x512cf2();return null==_0x36e4fa?(_0x1ca91d(),_0x22ba93([0x56,0x61,0x6c,0x69,0x64])):_0x22ba93(_0x28f9da-_0x36e4fa>(0x7753083a^_0x4a8d81)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x22ba93([0x74,0x68,0x65,0x6e])](_0x523fdf)[_0x22ba93([0x63,0x61,0x74,0x63,0x68])](()=>{_0x523fdf(_0x22ba93([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x533e35=0x536962ba^_0x4a8d81;function _0x1ca91d(){const _0x20d9dd=_0x22ba93([0x6c,0x6c,0x63,0x74,0x2d])+_0x596184(_0xd17ac3(_0x48a1da)),_0x47ab86=_0x24275e(_0x596184(window[_0x22ba93([0x4d,0x61,0x74,0x68])][_0x22ba93([0x63,0x65,0x69,0x6c])](_0x28f9da/_0x533e35)));window[_0x22ba93([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22ba93([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x20d9dd,_0x47ab86);}function _0x512cf2(){const _0x305209=_0x22ba93([0x6c,0x6c,0x63,0x74,0x2d])+_0x596184(_0xd17ac3(_0x48a1da)),_0x3357e9=window[_0x22ba93([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22ba93([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x305209);return _0x3357e9?window[_0x22ba93([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24275e(_0x3357e9),0x10)*_0x533e35:null;}function _0x36507e(_0xb82c51){return new window[(_0x22ba93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x343e90,_0x466e16)=>{_0xb82c51[_0x22ba93([0x74,0x68,0x65,0x6e])](_0x343e90,_0x466e16),window[_0x22ba93([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x466e16,0x535e58fa^_0x4a8d81);});}}_0x5068eb[_0x22ba93([0x6f,0x6e])](_0x22ba93([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x63e6c4,_0x17c0ac)=>{if(_0x17c0ac[0x0]!=_0x48a1da)return _0x523fdf(_0x22ba93([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x17c0ac[0x1]={..._0x17c0ac[0x1],[_0x22ba93([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3cdd0c};},{[_0x22ba93([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22ba93([0x68,0x69,0x67,0x68])}),_0x5068eb[_0x22ba93([0x6f,0x6e])](_0x22ba93([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3da989=>{_0x6be000(_0x3da989[_0x22ba93([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5bbc85=!0x0,_0x2aaab4(_0x3da989[_0x22ba93([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x22ba93([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22ba93([0x6c,0x6f,0x77])}),_0x1f40a5[_0x22ba93([0x74,0x68,0x65,0x6e])](()=>{_0x5bbc85||_0x523fdf(_0x22ba93([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x286a7e(){return _0x5068eb[_0x22ba93([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22ba93([0x76,0x69,0x65,0x77])][_0x22ba93([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x22ba93([0x61,0x75,0x74,0x6f]);}function _0x8dea14(){_0x5068eb[_0x22ba93([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22ba93([0x76,0x69,0x65,0x77])][_0x22ba93([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x22ba93([0x61,0x75,0x74,0x6f]);}}function _0x139c18(_0x1b6096){const _0x4ef508=[new window[(_0x22ba93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f804f=>setTimeout(_0x2f804f,0x5356b2f6^_0x4a8d81)),_0x1f40a5[_0x22ba93([0x74,0x68,0x65,0x6e])](()=>new window[(_0x22ba93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2193ca=>{let _0x55a967=0x0;_0x5068eb[_0x22ba93([0x6d,0x6f,0x64,0x65,0x6c])][_0x22ba93([0x6f,0x6e])](_0x22ba93([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd2fa8d,_0x4f74f1)=>{_0x4f74f1[0x0][_0x22ba93([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x55a967++,_0x55a967==(0x535f8dc2^_0x4a8d81)&&(_0x2193ca(),_0xd2fa8d[_0x22ba93([0x6f,0x66,0x66])]());});}))];return window[_0x22ba93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x22ba93([0x72,0x61,0x63,0x65])](_0x4ef508)[_0x22ba93([0x74,0x68,0x65,0x6e])](()=>_0x1b6096);}async function _0x4c0e48(){await _0x1f40a5,_0x5068eb[_0x22ba93([0x6d,0x6f,0x64,0x65,0x6c])][_0x22ba93([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4750b1,_0x5068eb[_0x22ba93([0x6d,0x6f,0x64,0x65,0x6c])][_0x22ba93([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4750b1,_0x5068eb[_0x22ba93([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x22ba93([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2e81de(_0x58b0ce){const _0x1a62a8=_0x12e190();_0x5068eb[_0x1a62a8]=_0x22ba93([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x58b0ce,_0x58b0ce!=_0x22ba93([0x56,0x61,0x6c,0x69,0x64])&&_0x4c0e48();}function _0x12e190(){const _0x4ce364=window[_0x22ba93([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x22ba93([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x22ba93([0x6e,0x6f,0x77])]())[_0x22ba93([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x22ba93([0x2e]),'');let _0xef9f48=_0x22ba93([0x68]);for(let _0x578409=0x0;_0x578409<_0x4ce364[_0x22ba93([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x578409+=0x2){let _0x56e14d=window[_0x22ba93([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ce364[_0x22ba93([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x578409,_0x578409+0x2));_0x56e14d>=_0x3249c5[_0x22ba93([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x56e14d-=_0x3249c5[_0x22ba93([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xef9f48+=_0x3249c5[_0x56e14d];}return _0xef9f48;}function _0x229477(){const _0x356ff1=_0x304f00[_0x22ba93([0x73,0x70,0x6c,0x69,0x74])](_0x22ba93([0x2e]));if(0x3!=_0x356ff1[_0x22ba93([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x329fb9(_0x356ff1[0x1]);function _0x329fb9(_0x2d57ba){const _0x4451a3=_0x3c232f(_0x2d57ba);return _0x4451a3&&_0x1981ec()?_0x4451a3:null;function _0x1981ec(){const _0x3f16f0=_0x4451a3[_0x22ba93([0x6a,0x74,0x69])],_0x294018=window[_0x22ba93([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f16f0[_0x22ba93([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f16f0[_0x22ba93([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x160fc0={..._0x4451a3,[_0x22ba93([0x6a,0x74,0x69])]:_0x3f16f0[_0x22ba93([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f16f0[_0x22ba93([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x160fc0[_0x22ba93([0x76,0x63])],_0xd17ac3(_0x160fc0)==_0x294018;}}}async function _0x5f4f53(){let _0x21500e=!0x0;try{const _0x5174d8=_0x304f00[_0x22ba93([0x73,0x70,0x6c,0x69,0x74])](_0x22ba93([0x2e])),[_0x55ece6,_0x14a9b9,_0x4c1d25]=_0x5174d8;return _0x217957(_0x55ece6),await _0x18f235(_0x55ece6,_0x14a9b9,_0x4c1d25),_0x21500e;}catch{return!0x1;}function _0x217957(_0x1b15b5){const _0x3b5fe4=_0x3c232f(_0x1b15b5);_0x3b5fe4&&_0x3b5fe4[_0x22ba93([0x61,0x6c,0x67])]==_0x22ba93([0x45,0x53,0x32,0x35,0x36])||(_0x21500e=!0x1);}async function _0x18f235(_0x5da952,_0x1eb6f2,_0x5f45e6){const _0x28eabc=window[_0x22ba93([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x22ba93([0x66,0x72,0x6f,0x6d])](_0x1156cd(_0x5f45e6),_0x2797bc=>_0x2797bc[_0x22ba93([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x24803e=new window[(_0x22ba93([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x22ba93([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5da952+_0x22ba93([0x2e])+_0x1eb6f2),_0x482495=window[_0x22ba93([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x22ba93([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x482495)return;const _0x1aa941=await _0x482495[_0x22ba93([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x22ba93([0x6a,0x77,0x6b]),_0x4045b8,{[_0x22ba93([0x6e,0x61,0x6d,0x65])]:_0x22ba93([0x45,0x43,0x44,0x53,0x41]),[_0x22ba93([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x22ba93([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x22ba93([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x482495[_0x22ba93([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x22ba93([0x6e,0x61,0x6d,0x65])]:_0x22ba93([0x45,0x43,0x44,0x53,0x41]),[_0x22ba93([0x68,0x61,0x73,0x68])]:{[_0x22ba93([0x6e,0x61,0x6d,0x65])]:_0x22ba93([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1aa941,_0x28eabc,_0x24803e)||(_0x21500e=!0x1);}}function _0x3c232f(_0x40fc5d){return _0x40fc5d[_0x22ba93([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x22ba93([0x65,0x79]))?JSON[_0x22ba93([0x70,0x61,0x72,0x73,0x65])](_0x1156cd(_0x40fc5d)):null;}function _0x1156cd(_0x41b388){return window[_0x22ba93([0x61,0x74,0x6f,0x62])](_0x41b388[_0x22ba93([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x22ba93([0x2b]))[_0x22ba93([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x22ba93([0x2f])));}function _0xd17ac3(_0x30ccb6){let _0x634515=0x1505;function _0x3b015d(_0x15bc7a){for(let _0x12c0d9=0x0;_0x12c0d9<_0x15bc7a[_0x22ba93([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12c0d9++){const _0x421586=_0x15bc7a[_0x22ba93([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x12c0d9);_0x634515=(_0x634515<<0x5)+_0x634515+_0x421586,_0x634515&=_0x634515;}}function _0x204500(_0x4f27bc){Array[_0x22ba93([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f27bc)?_0x4f27bc[_0x22ba93([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x204500):_0x4f27bc&&typeof _0x4f27bc==_0x22ba93([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x22ba93([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f27bc)[_0x22ba93([0x73,0x6f,0x72,0x74])]()[_0x22ba93([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2d8b42,_0x164f54])=>{_0x3b015d(_0x2d8b42),_0x204500(_0x164f54);}):_0x3b015d(window[_0x22ba93([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f27bc));}return _0x204500(_0x30ccb6),_0x634515>>>0x0;}function _0x596184(_0x321907){return _0x321907[_0x22ba93([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x22ba93([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x22ba93([0x30]));}function _0x24275e(_0x192b19){return _0x192b19[_0x22ba93([0x73,0x70,0x6c,0x69,0x74])]('')[_0x22ba93([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x22ba93([0x6a,0x6f,0x69,0x6e])]('');}function _0x4750b1(){}function _0x22ba93(_0x577ff3){const _0x39ec6=_0xef37;return _0x577ff3[_0x39ec6(0xd8)](_0x3de6ef=>String[_0x39ec6(0xd9)](_0x3de6ef))[_0x39ec6(0x119)]('');}_0x2e81de(await _0x474a24());}(this);}[_0x2facc1(0xd4)](){const _0x35573f=_0x2facc1,_0x3a7f33=this[_0x35573f(0xd3)][_0x35573f(0x101)][_0x35573f(0xdb)];_0x3a7f33[_0x35573f(0x116)](_0x35573f(0xcc))&&_0x3a7f33[_0x35573f(0x115)](_0x35573f(0xcc),{'allowAttributes':[_0x35573f(0x113)]}),_0x3a7f33[_0x35573f(0x116)](_0x35573f(0x109))&&_0x3a7f33[_0x35573f(0x115)](_0x35573f(0x109),{'allowAttributes':[_0x35573f(0x113)]});}[_0x2facc1(0xdd)](){const _0x5b00a2=_0x2facc1,_0x543e9d=this[_0x5b00a2(0xd3)];_0x543e9d[_0x5b00a2(0xf8)][_0x5b00a2(0xd0)](_0x5b00a2(0xea))[_0x5b00a2(0xd5)]({'model':_0x5b00a2(0x113),'view':_0x5b00a2(0xd1)}),_0x543e9d[_0x5b00a2(0xf8)][_0x5b00a2(0xd0)](_0x5b00a2(0xfd))[_0x5b00a2(0xeb)]({'model':{'key':_0x5b00a2(0x113),'value':_0x158f27=>_0x158f27[_0x5b00a2(0xfe)](_0x5b00a2(0xd1))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x215d25=_0x543e9d[_0x5b00a2(0xec)][_0x5b00a2(0xed)](_0x5b00a2(0x10c));_0x215d25&&this[_0x5b00a2(0xf7)](_0x215d25,_0x5b00a2(0x105),(_0x52324d,[_0x33421c,_0x1f276f])=>{const _0x1b6f19=_0x5b00a2;_0x33421c[_0x1b6f19(0xf5)](_0x1b6f19(0x113),_0x1f276f);});}[_0x2facc1(0xef)](){const _0x735b97=_0x2facc1,_0x5c27e8=this[_0x735b97(0xd3)][_0x735b97(0xee)][_0x735b97(0xed)](_0x735b97(0xdf))||{},_0x391a70=this[_0x735b97(0xd3)][_0x735b97(0xee)][_0x735b97(0xed)](_0x735b97(0xe0))||'';this[_0x735b97(0xf9)]=_0x28a8e3(_0x11608a[_0x735b97(0xf2)],_0x735b97(0xe1),{..._0x5c27e8,'pubkey':_0x391a70,'ctx-name':_0x735b97(0xf0)+this[_0x735b97(0x10f)],'sourceList':'','imgOnly':_0x735b97(0x104),'removeCopyright':_0x735b97(0x104),'localeName':this[_0x735b97(0xd3)][_0x735b97(0xd2)][_0x735b97(0x10a)],'externalSourcesEmbedCss':_0x735b97(0xfb)}),this[_0x735b97(0xf9)][_0x735b97(0xe7)]=_0x3b7728=>{const _0x3206ac=_0x735b97;if(_0x3206ac(0xfc)==_0x3b7728)return _0x3206ac(0x10e);},_0x11608a[_0x735b97(0xf2)][_0x735b97(0x120)][_0x735b97(0xe6)](this[_0x735b97(0xf9)]);}[_0x2facc1(0x11e)](){const _0x293d36=_0x2facc1;this[_0x293d36(0x118)]=_0x28a8e3(_0x11608a[_0x293d36(0xf2)],_0x293d36(0x10b),{'ctx-name':_0x293d36(0xf0)+this[_0x293d36(0x10f)]}),_0x11608a[_0x293d36(0xf2)][_0x293d36(0x120)][_0x293d36(0xe6)](this[_0x293d36(0x118)]);}[_0x2facc1(0x112)](){const _0x4cf8b4=_0x2facc1,_0x214a96=this[_0x4cf8b4(0xd3)][_0x4cf8b4(0xec)][_0x4cf8b4(0xed)](_0x4cf8b4(0x10d));_0x214a96&&this[_0x4cf8b4(0xf7)](_0x214a96,_0x4cf8b4(0xf1),()=>{const _0x1928f4=_0x4cf8b4,_0x43ecb6=this[_0x1928f4(0xd3)][_0x1928f4(0x101)][_0x1928f4(0xf2)][_0x1928f4(0x114)][_0x1928f4(0xce)]();_0x43ecb6&&_0x43ecb6[_0x1928f4(0xfe)](_0x1928f4(0x113))&&this[_0x1928f4(0xd3)][_0x1928f4(0xe5)][_0x1928f4(0xe9)][_0x1928f4(0x11b)](_0x1928f4(0x108),()=>{const _0x201de8=_0x1928f4;_0x2b9eca(this[_0x201de8(0xd3)],_0x43ecb6);});});const _0x2cb690=this[_0x4cf8b4(0xd3)][_0x4cf8b4(0xec)][_0x4cf8b4(0xed)](_0x4cf8b4(0x102));_0x2cb690&&this[_0x4cf8b4(0xf7)](_0x2cb690,_0x4cf8b4(0xf1),()=>{const _0x141ec0=_0x4cf8b4,_0x334151=this[_0x141ec0(0xd3)][_0x141ec0(0x101)][_0x141ec0(0xf2)][_0x141ec0(0x114)][_0x141ec0(0xce)]();_0x334151&&_0x334151[_0x141ec0(0xfe)](_0x141ec0(0x113))&&this[_0x141ec0(0xd3)][_0x141ec0(0xe5)][_0x141ec0(0xe9)][_0x141ec0(0x11b)](_0x141ec0(0x108),()=>{const _0x39595a=_0x141ec0;_0x2b9eca(this[_0x39595a(0xd3)],_0x334151);});});}}function _0x26f9(){const _0x5700c8=['\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','closeMax','upcast','getAttribute','3232842UeTNyO','requires','model','uploadcareImageReplace','29450MbPMkH','true','cleanupImage','isPremiumPlugin','href','render','imageInline','contentLanguage','uc-upload-ctx-provider','replaceImageSource','insertImage','#uc-icon-arrow-down','ucContextId','UploadcareEditing','12HijhUw','_initImageProcessingIndicator','uploadcareImageId','selection','extend','isRegistered','3261896VyOCVe','_ctxElement','join','1027641YnhUjF','once','65233SmmJmN','pluginName','_initCtx','ctxElement','body','input[uploadcare-file-input]','466594iYHuZo','imageBlock','destroy','getSelectedElement','344rUwFBZ','for','data-uc-image-id','locale','editor','_initSchema','attributeToAttribute','21721513NkbhHV','5UmlrIy','map','fromCharCode','PictureEditing','schema','495Zajrew','_initConversion','remove','uploadcare.uploader','uploadcare.pubkey','uc-config','isOfficialPlugin','querySelector','add','editing','appendChild','iconHrefResolver','uploadcare','view','downcast','elementToAttribute','commands','get','config','_initConfig','uploader-','execute','document','afterInit','configElement','removeAttribute','init','listenTo','conversion','_configElement','2eOlNWH'];_0x26f9=function(){return _0x5700c8;};return _0x26f9();}
|
|
23
|
+
function _0x161c(_0x29f5ea,_0x4a22d3){const _0x540347=_0x5403();return _0x161c=function(_0x161c31,_0x54f0ec){_0x161c31=_0x161c31-0x11a;let _0x5249fd=_0x540347[_0x161c31];return _0x5249fd;},_0x161c(_0x29f5ea,_0x4a22d3);}const _0x3b45c3=_0x161c;(function(_0x44b550,_0x25796b){const _0x4d9888=_0x161c,_0x738b2a=_0x44b550();while(!![]){try{const _0x34f97b=-parseInt(_0x4d9888(0x158))/0x1+parseInt(_0x4d9888(0x16f))/0x2*(parseInt(_0x4d9888(0x13f))/0x3)+parseInt(_0x4d9888(0x16e))/0x4+parseInt(_0x4d9888(0x169))/0x5*(-parseInt(_0x4d9888(0x146))/0x6)+parseInt(_0x4d9888(0x15c))/0x7*(-parseInt(_0x4d9888(0x149))/0x8)+parseInt(_0x4d9888(0x15a))/0x9*(parseInt(_0x4d9888(0x162))/0xa)+-parseInt(_0x4d9888(0x159))/0xb*(-parseInt(_0x4d9888(0x157))/0xc);if(_0x34f97b===_0x25796b)break;else _0x738b2a['push'](_0x738b2a['shift']());}catch(_0xc97341){_0x738b2a['push'](_0x738b2a['shift']());}}}(_0x5403,0x69a16));import{Plugin as _0x4b226d}from'ckeditor5/src/core.js';import{Dialog as _0x463cfc}from'ckeditor5/src/ui.js';import{createElement as _0x3351ce,global as _0x512212,uid as _0xa8c091}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1f5880}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x184664}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3eccd1}from'./utils/editingutils.js';function _0x5403(){const _0x44bed9=['remove','\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','for','_configElement','view','upcast','getAttribute','_initCtx','execute','insertImage','conversion','input[uploadcare-file-input]','iconHrefResolver','selection','get','PictureEditing','imageBlock','uploadcare.pubkey','cleanupImage','pluginName','getSelectedElement','3jmDoKv','locale','requires','#uc-icon-arrow-down','isOfficialPlugin','configElement','UploadcareEditing','12BTUZYt','appendChild','ucContextId','8Gsnhuk','model','extend','downcast','join','attributeToAttribute','_initImageProcessingIndicator','editing','replaceImageSource','listenTo','uploadcareImageReplace','imageInline','uc-upload-ctx-provider','uploadcareImageId','24pISmpm','199291iwDrEt','4630461FnAODh','2313tFjZDT','removeAttribute','3813215vRNBIt','once','isPremiumPlugin','contentLanguage','_initConfig','map','4570ZDMFmx','uploadcare','closeMax','afterInit','isRegistered','editor','href','1392295sTXapw','add','data-uc-image-id','schema','elementToAttribute','836544YpxfAt','1130258pjDdTM','destroy','init','_ctxElement','document','ctxElement','querySelector','true','_initSchema','fromCharCode','uploadcare.uploader','_initConversion','commands','config','render','uploader-','body','uc-config'];_0x5403=function(){return _0x44bed9;};return _0x5403();}export class UploadcareEditing extends _0x4b226d{[_0x3b45c3(0x12d)]=null;[_0x3b45c3(0x11b)]=null;static get[_0x3b45c3(0x13d)](){const _0x5e7af0=_0x3b45c3;return _0x5e7af0(0x145);}static get[_0x3b45c3(0x141)](){const _0x33537d=_0x3b45c3;return[_0x33537d(0x139),_0x184664,_0x463cfc];}static get[_0x3b45c3(0x143)](){return!0x0;}static get[_0x3b45c3(0x15e)](){return!0x0;}[_0x3b45c3(0x148)];get[_0x3b45c3(0x144)](){const _0x2daacf=_0x3b45c3;return this[_0x2daacf(0x12d)];}get[_0x3b45c3(0x11d)](){const _0x5a5266=_0x3b45c3;return this[_0x5a5266(0x11b)];}constructor(_0x35f142){const _0xa91e9f=_0x3b45c3;super(_0x35f142),this[_0xa91e9f(0x148)]=_0xa8c091();}[_0x3b45c3(0x11a)](){const _0x403d4f=_0x3b45c3,_0x2d6af3=this[_0x403d4f(0x167)];_0x2d6af3[_0x403d4f(0x124)][_0x403d4f(0x16a)](_0x403d4f(0x163),new _0x1f5880(_0x2d6af3));}[_0x3b45c3(0x165)](){const _0x111f90=_0x3b45c3;this[_0x111f90(0x120)](),this[_0x111f90(0x123)](),this[_0x111f90(0x160)](),this[_0x111f90(0x131)](),this[_0x111f90(0x14f)](),this[_0x111f90(0x152)](this[_0x111f90(0x167)],_0x111f90(0x170),()=>{const _0x1f779c=_0x111f90;this[_0x1f779c(0x12d)]&&(this[_0x1f779c(0x12d)][_0x1f779c(0x12a)](),this[_0x1f779c(0x12d)]=null),this[_0x1f779c(0x11b)]&&(this[_0x1f779c(0x11b)][_0x1f779c(0x12a)](),this[_0x1f779c(0x11b)]=null);const _0x5ee7f8=_0x512212[_0x1f779c(0x11c)][_0x1f779c(0x11e)](_0x1f779c(0x135));_0x5ee7f8&&_0x5ee7f8[_0x1f779c(0x12a)]();}),async function(_0x4ab8a6){const _0x135798=_0x4f7d1d([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]),_0x24579a=0x535f8c3a,_0x47437c=0x5358f34a^_0x24579a,_0x34da84=window[_0x4f7d1d([0x44,0x61,0x74,0x65])][_0x4f7d1d([0x6e,0x6f,0x77])](),_0x403703=_0x4ab8a6[_0x4f7d1d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2c6819=new window[(_0x4f7d1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b7c96=>{_0x403703[_0x4f7d1d([0x6f,0x6e,0x63,0x65])](_0x4f7d1d([0x72,0x65,0x61,0x64,0x79]),_0x3b7c96);}),_0x3bf431={[_0x4f7d1d([0x6b,0x74,0x79])]:_0x4f7d1d([0x45,0x43]),[_0x4f7d1d([0x75,0x73,0x65])]:_0x4f7d1d([0x73,0x69,0x67]),[_0x4f7d1d([0x63,0x72,0x76])]:_0x4f7d1d([0x50,0x2d,0x32,0x35,0x36]),[_0x4f7d1d([0x78])]:_0x4f7d1d([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]),[_0x4f7d1d([0x79])]:_0x4f7d1d([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]),[_0x4f7d1d([0x61,0x6c,0x67])]:_0x4f7d1d([0x45,0x53,0x32,0x35,0x36])},_0x2772df=_0x403703[_0x4f7d1d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f7d1d([0x67,0x65,0x74])](_0x4f7d1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4c8e61(){let _0x50e3cf,_0x33cba3=null,_0x4ee8f4=null;try{if(_0x2772df==_0x4f7d1d([0x47,0x50,0x4c]))return _0x4f7d1d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x50e3cf=_0x45aaf8(),!_0x50e3cf)return _0x4f7d1d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x50e3cf[_0x4f7d1d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ee8f4=_0x454d94(_0x50e3cf[_0x4f7d1d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x50e3cf[_0x4f7d1d([0x6a,0x74,0x69])])),await _0x5966d3()?_0x48c019()?_0x438931()?_0x4f7d1d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xf3e276()?(_0x50e3cf[_0x4f7d1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f7d1d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x33cba3=_0x367f2e(_0x4f7d1d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3f6d2d()):_0x4f7d1d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f7d1d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f7d1d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4f7d1d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x438931(){const _0x404a82=[_0x4f7d1d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f7d1d([0x74,0x72,0x69,0x61,0x6c])][_0x4f7d1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50e3cf[_0x4f7d1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x34da84/0x3e8:0xe10*_0x47437c;return _0x50e3cf[_0x4f7d1d([0x65,0x78,0x70])]<_0x404a82;}function _0x48c019(){const _0x4c888d=_0x50e3cf[_0x4f7d1d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4c888d&&(!!_0x4c888d[_0x4f7d1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f7d1d([0x2a]))||!!_0x4c888d[_0x4f7d1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f7d1d([0x55,0x50,0x4c,0x43])));}function _0xf3e276(){const _0x1f0f97=_0x161c,_0x414018=_0x50e3cf[_0x4f7d1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x414018||0x0==_0x414018[_0x4f7d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x537f22}=new URL(window[_0x4f7d1d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1f0f97(0x168)]);if(_0x414018[_0x4f7d1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x537f22))return!0x0;const _0xabc1db=_0x537f22[_0x4f7d1d([0x73,0x70,0x6c,0x69,0x74])](_0x4f7d1d([0x2e]));return _0x414018[_0x4f7d1d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24e7d2=>_0x24e7d2[_0x4f7d1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f7d1d([0x2a])))[_0x4f7d1d([0x6d,0x61,0x70])](_0x1fa533=>_0x1fa533[_0x4f7d1d([0x73,0x70,0x6c,0x69,0x74])](_0x4f7d1d([0x2e])))[_0x4f7d1d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x17d235=>_0x17d235[_0x4f7d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xabc1db[_0x4f7d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4f7d1d([0x6d,0x61,0x70])](_0x1260c9=>Array(_0xabc1db[_0x4f7d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1260c9[_0x4f7d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4f7d1d([0x66,0x69,0x6c,0x6c])](_0x1260c9[0x0]===_0x4f7d1d([0x2a])?_0x4f7d1d([0x2a]):'')[_0x4f7d1d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1260c9))[_0x4f7d1d([0x73,0x6f,0x6d,0x65])](_0x2cd30a=>_0xabc1db[_0x4f7d1d([0x65,0x76,0x65,0x72,0x79])]((_0x283ff8,_0x5448b6)=>_0x2cd30a[_0x5448b6]===_0x283ff8||_0x2cd30a[_0x5448b6]===_0x4f7d1d([0x2a])));}function _0x3f6d2d(){return _0x33cba3&&_0x4ee8f4?new window[(_0x4f7d1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbb3be5,_0xfc7b9d)=>{_0x33cba3[_0x4f7d1d([0x74,0x68,0x65,0x6e])](_0xbb3be5,_0xfc7b9d),_0x4ee8f4[_0x4f7d1d([0x74,0x68,0x65,0x6e])](_0x15b8dc=>{_0x15b8dc!=_0x4f7d1d([0x56,0x61,0x6c,0x69,0x64])&&_0xbb3be5(_0x15b8dc);},_0xfc7b9d);}):_0x33cba3||_0x4ee8f4||_0x4f7d1d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x454d94(_0x3fc29a,_0x2709b6){return new window[(_0x4f7d1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48f9bd=>{if(_0x36170e())return _0x48f9bd(_0x4f7d1d([0x56,0x61,0x6c,0x69,0x64]));_0x177911(),_0x403703[_0x4f7d1d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f7d1d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4430d1=!0x1;const _0x3b5175=_0xa8c091();function _0x35ad5a(_0x277c4d){return!!_0x277c4d&&(typeof _0x277c4d===_0x4f7d1d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x277c4d===_0x4f7d1d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x277c4d[_0x4f7d1d([0x74,0x68,0x65,0x6e])]===_0x4f7d1d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x277c4d[_0x4f7d1d([0x63,0x61,0x74,0x63,0x68])]===_0x4f7d1d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d66f2(_0x59e105){_0x4ac326(_0x59e105)[_0x4f7d1d([0x74,0x68,0x65,0x6e])](_0x429276=>{if(!_0x429276||_0x429276[_0x4f7d1d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f7d1d([0x6f,0x6b]))return _0x4f7d1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5071b9(_0x2c1e61(_0x3b5175+_0x2709b6))!=_0x429276[_0x4f7d1d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f7d1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f7d1d([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f7d1d([0x74,0x68,0x65,0x6e])](_0x502b78=>(_0x550c91(),_0x502b78),()=>{const _0x29db34=_0x143095();return null==_0x29db34?(_0x550c91(),_0x4f7d1d([0x56,0x61,0x6c,0x69,0x64])):_0x4f7d1d(_0x34da84-_0x29db34>(0x7753083a^_0x24579a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f7d1d([0x74,0x68,0x65,0x6e])](_0x48f9bd)[_0x4f7d1d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x48f9bd(_0x4f7d1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x53ed31=0x536962ba^_0x24579a;function _0x550c91(){const _0x450821=_0x4f7d1d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5071b9(_0x2c1e61(_0x3fc29a)),_0x4ff238=_0x527731(_0x5071b9(window[_0x4f7d1d([0x4d,0x61,0x74,0x68])][_0x4f7d1d([0x63,0x65,0x69,0x6c])](_0x34da84/_0x53ed31)));window[_0x4f7d1d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f7d1d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x450821,_0x4ff238);}function _0x143095(){const _0xdefbc2=_0x4f7d1d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5071b9(_0x2c1e61(_0x3fc29a)),_0x58d0ff=window[_0x4f7d1d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f7d1d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xdefbc2);return _0x58d0ff?window[_0x4f7d1d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x527731(_0x58d0ff),0x10)*_0x53ed31:null;}function _0x4ac326(_0xc0bf2b){return new window[(_0x4f7d1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x387687,_0x2899dd)=>{_0xc0bf2b[_0x4f7d1d([0x74,0x68,0x65,0x6e])](_0x387687,_0x2899dd),window[_0x4f7d1d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2899dd,0x535e58fa^_0x24579a);});}}_0x403703[_0x4f7d1d([0x6f,0x6e])](_0x4f7d1d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x191660,_0x410daf)=>{if(_0x410daf[0x0]!=_0x3fc29a)return _0x48f9bd(_0x4f7d1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x410daf[0x1]={..._0x410daf[0x1],[_0x4f7d1d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3b5175};},{[_0x4f7d1d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f7d1d([0x68,0x69,0x67,0x68])}),_0x403703[_0x4f7d1d([0x6f,0x6e])](_0x4f7d1d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xbcdf99=>{_0x35ad5a(_0xbcdf99[_0x4f7d1d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4430d1=!0x0,_0x5d66f2(_0xbcdf99[_0x4f7d1d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f7d1d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f7d1d([0x6c,0x6f,0x77])}),_0x2c6819[_0x4f7d1d([0x74,0x68,0x65,0x6e])](()=>{_0x4430d1||_0x48f9bd(_0x4f7d1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x36170e(){return _0x403703[_0x4f7d1d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f7d1d([0x76,0x69,0x65,0x77])][_0x4f7d1d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f7d1d([0x61,0x75,0x74,0x6f]);}function _0x177911(){_0x403703[_0x4f7d1d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f7d1d([0x76,0x69,0x65,0x77])][_0x4f7d1d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f7d1d([0x61,0x75,0x74,0x6f]);}}function _0x367f2e(_0x39aa6e){const _0x338a88=[new window[(_0x4f7d1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3712bc=>setTimeout(_0x3712bc,0x5356b2f6^_0x24579a)),_0x2c6819[_0x4f7d1d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f7d1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c9ff5=>{let _0x2431e3=0x0;_0x403703[_0x4f7d1d([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f7d1d([0x6f,0x6e])](_0x4f7d1d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1adba7,_0x3431c6)=>{_0x3431c6[0x0][_0x4f7d1d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2431e3++,_0x2431e3==(0x535f89d2^_0x24579a)&&(_0x1c9ff5(),_0x1adba7[_0x4f7d1d([0x6f,0x66,0x66])]());});}))];return window[_0x4f7d1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f7d1d([0x72,0x61,0x63,0x65])](_0x338a88)[_0x4f7d1d([0x74,0x68,0x65,0x6e])](()=>_0x39aa6e);}async function _0x52c741(){await _0x2c6819,_0x403703[_0x4f7d1d([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f7d1d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x472cf4,_0x403703[_0x4f7d1d([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f7d1d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x472cf4,_0x403703[_0x4f7d1d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f7d1d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x102503(_0x4b341e){const _0x2b17ff=_0x59bec3();_0x403703[_0x2b17ff]=_0x4f7d1d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4b341e,_0x4b341e!=_0x4f7d1d([0x56,0x61,0x6c,0x69,0x64])&&_0x52c741();}function _0x59bec3(){const _0x5a4ea0=window[_0x4f7d1d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f7d1d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f7d1d([0x6e,0x6f,0x77])]())[_0x4f7d1d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f7d1d([0x2e]),'');let _0x77fa89=_0x4f7d1d([0x68]);for(let _0x1ef0fb=0x0;_0x1ef0fb<_0x5a4ea0[_0x4f7d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ef0fb+=0x2){let _0x15f1f4=window[_0x4f7d1d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a4ea0[_0x4f7d1d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ef0fb,_0x1ef0fb+0x2));_0x15f1f4>=_0x135798[_0x4f7d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x15f1f4-=_0x135798[_0x4f7d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x77fa89+=_0x135798[_0x15f1f4];}return _0x77fa89;}function _0x45aaf8(){const _0x686cec=_0x2772df[_0x4f7d1d([0x73,0x70,0x6c,0x69,0x74])](_0x4f7d1d([0x2e]));if(0x3!=_0x686cec[_0x4f7d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c36da(_0x686cec[0x1]);function _0x4c36da(_0x136341){const _0x57e87b=_0x55ffc3(_0x136341);return _0x57e87b&&_0xbcf5bd()?_0x57e87b:null;function _0xbcf5bd(){const _0x1d6eb5=_0x57e87b[_0x4f7d1d([0x6a,0x74,0x69])],_0x30748e=window[_0x4f7d1d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d6eb5[_0x4f7d1d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d6eb5[_0x4f7d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2a7fcd={..._0x57e87b,[_0x4f7d1d([0x6a,0x74,0x69])]:_0x1d6eb5[_0x4f7d1d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1d6eb5[_0x4f7d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2a7fcd[_0x4f7d1d([0x76,0x63])],_0x2c1e61(_0x2a7fcd)==_0x30748e;}}}async function _0x5966d3(){let _0x333e12=!0x0;try{const _0x3ec61b=_0x2772df[_0x4f7d1d([0x73,0x70,0x6c,0x69,0x74])](_0x4f7d1d([0x2e])),[_0x567e85,_0x86786b,_0x6a8589]=_0x3ec61b;return _0x57fc24(_0x567e85),await _0x7f56c2(_0x567e85,_0x86786b,_0x6a8589),_0x333e12;}catch{return!0x1;}function _0x57fc24(_0xb366e7){const _0x333fbf=_0x55ffc3(_0xb366e7);_0x333fbf&&_0x333fbf[_0x4f7d1d([0x61,0x6c,0x67])]==_0x4f7d1d([0x45,0x53,0x32,0x35,0x36])||(_0x333e12=!0x1);}async function _0x7f56c2(_0x4e5ac1,_0x5d28ef,_0x3496c9){const _0x1f8e75=window[_0x4f7d1d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f7d1d([0x66,0x72,0x6f,0x6d])](_0x45b52c(_0x3496c9),_0x5109c5=>_0x5109c5[_0x4f7d1d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xa20026=new window[(_0x4f7d1d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f7d1d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e5ac1+_0x4f7d1d([0x2e])+_0x5d28ef),_0xaafe1c=window[_0x4f7d1d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f7d1d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xaafe1c)return;const _0x41cc4b=await _0xaafe1c[_0x4f7d1d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f7d1d([0x6a,0x77,0x6b]),_0x3bf431,{[_0x4f7d1d([0x6e,0x61,0x6d,0x65])]:_0x4f7d1d([0x45,0x43,0x44,0x53,0x41]),[_0x4f7d1d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f7d1d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f7d1d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xaafe1c[_0x4f7d1d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f7d1d([0x6e,0x61,0x6d,0x65])]:_0x4f7d1d([0x45,0x43,0x44,0x53,0x41]),[_0x4f7d1d([0x68,0x61,0x73,0x68])]:{[_0x4f7d1d([0x6e,0x61,0x6d,0x65])]:_0x4f7d1d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x41cc4b,_0x1f8e75,_0xa20026)||(_0x333e12=!0x1);}}function _0x55ffc3(_0xe5d7be){return _0xe5d7be[_0x4f7d1d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f7d1d([0x65,0x79]))?JSON[_0x4f7d1d([0x70,0x61,0x72,0x73,0x65])](_0x45b52c(_0xe5d7be)):null;}function _0x45b52c(_0x34de68){return window[_0x4f7d1d([0x61,0x74,0x6f,0x62])](_0x34de68[_0x4f7d1d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f7d1d([0x2b]))[_0x4f7d1d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f7d1d([0x2f])));}function _0x2c1e61(_0xff17e2){let _0x289822=0x1505;function _0x36f10d(_0x128e83){for(let _0x5a0cad=0x0;_0x5a0cad<_0x128e83[_0x4f7d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a0cad++){const _0x573bf2=_0x128e83[_0x4f7d1d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5a0cad);_0x289822=(_0x289822<<0x5)+_0x289822+_0x573bf2,_0x289822&=_0x289822;}}function _0x11f2f8(_0x5d2f95){Array[_0x4f7d1d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d2f95)?_0x5d2f95[_0x4f7d1d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x11f2f8):_0x5d2f95&&typeof _0x5d2f95==_0x4f7d1d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f7d1d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d2f95)[_0x4f7d1d([0x73,0x6f,0x72,0x74])]()[_0x4f7d1d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2354bc,_0x25e239])=>{_0x36f10d(_0x2354bc),_0x11f2f8(_0x25e239);}):_0x36f10d(window[_0x4f7d1d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d2f95));}return _0x11f2f8(_0xff17e2),_0x289822>>>0x0;}function _0x5071b9(_0x1acfe5){return _0x1acfe5[_0x4f7d1d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f7d1d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f7d1d([0x30]));}function _0x527731(_0x51ddaf){return _0x51ddaf[_0x4f7d1d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f7d1d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f7d1d([0x6a,0x6f,0x69,0x6e])]('');}function _0x472cf4(){}function _0x4f7d1d(_0x1e646a){const _0x3855f7=_0x161c;return _0x1e646a[_0x3855f7(0x161)](_0x1a1e92=>String[_0x3855f7(0x121)](_0x1a1e92))[_0x3855f7(0x14d)]('');}_0x102503(await _0x4c8e61());}(this);}[_0x3b45c3(0x120)](){const _0x27281f=_0x3b45c3,_0x52846b=this[_0x27281f(0x167)][_0x27281f(0x14a)][_0x27281f(0x16c)];_0x52846b[_0x27281f(0x166)](_0x27281f(0x13a))&&_0x52846b[_0x27281f(0x14b)](_0x27281f(0x13a),{'allowAttributes':[_0x27281f(0x156)]}),_0x52846b[_0x27281f(0x166)](_0x27281f(0x154))&&_0x52846b[_0x27281f(0x14b)](_0x27281f(0x154),{'allowAttributes':[_0x27281f(0x156)]});}[_0x3b45c3(0x123)](){const _0x1d3c3d=_0x3b45c3,_0x57c96c=this[_0x1d3c3d(0x167)];_0x57c96c[_0x1d3c3d(0x134)][_0x1d3c3d(0x12c)](_0x1d3c3d(0x14c))[_0x1d3c3d(0x14e)]({'model':_0x1d3c3d(0x156),'view':_0x1d3c3d(0x16b)}),_0x57c96c[_0x1d3c3d(0x134)][_0x1d3c3d(0x12c)](_0x1d3c3d(0x12f))[_0x1d3c3d(0x16d)]({'model':{'key':_0x1d3c3d(0x156),'value':_0x427772=>_0x427772[_0x1d3c3d(0x130)](_0x1d3c3d(0x16b))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4f5125=_0x57c96c[_0x1d3c3d(0x124)][_0x1d3c3d(0x138)](_0x1d3c3d(0x151));_0x4f5125&&this[_0x1d3c3d(0x152)](_0x4f5125,_0x1d3c3d(0x13c),(_0x440b96,[_0x457390,_0x5eaeef])=>{const _0x5eb602=_0x1d3c3d;_0x457390[_0x5eb602(0x15b)](_0x5eb602(0x156),_0x5eaeef);});}[_0x3b45c3(0x160)](){const _0x58f8b0=_0x3b45c3,_0x17ce50=this[_0x58f8b0(0x167)][_0x58f8b0(0x125)][_0x58f8b0(0x138)](_0x58f8b0(0x122))||{},_0x1db026=this[_0x58f8b0(0x167)][_0x58f8b0(0x125)][_0x58f8b0(0x138)](_0x58f8b0(0x13b))||'';this[_0x58f8b0(0x12d)]=_0x3351ce(_0x512212[_0x58f8b0(0x11c)],_0x58f8b0(0x129),{..._0x17ce50,'pubkey':_0x1db026,'ctx-name':_0x58f8b0(0x127)+this[_0x58f8b0(0x148)],'sourceList':'','imgOnly':_0x58f8b0(0x11f),'removeCopyright':_0x58f8b0(0x11f),'localeName':this[_0x58f8b0(0x167)][_0x58f8b0(0x140)][_0x58f8b0(0x15f)],'externalSourcesEmbedCss':_0x58f8b0(0x12b)}),this[_0x58f8b0(0x12d)][_0x58f8b0(0x136)]=_0x35296d=>{const _0x1d34fc=_0x58f8b0;if(_0x1d34fc(0x164)==_0x35296d)return _0x1d34fc(0x142);},_0x512212[_0x58f8b0(0x11c)][_0x58f8b0(0x128)][_0x58f8b0(0x147)](this[_0x58f8b0(0x12d)]);}[_0x3b45c3(0x131)](){const _0x5da1a2=_0x3b45c3;this[_0x5da1a2(0x11b)]=_0x3351ce(_0x512212[_0x5da1a2(0x11c)],_0x5da1a2(0x155),{'ctx-name':_0x5da1a2(0x127)+this[_0x5da1a2(0x148)]}),_0x512212[_0x5da1a2(0x11c)][_0x5da1a2(0x128)][_0x5da1a2(0x147)](this[_0x5da1a2(0x11b)]);}[_0x3b45c3(0x14f)](){const _0x56fbd2=_0x3b45c3,_0x569627=this[_0x56fbd2(0x167)][_0x56fbd2(0x124)][_0x56fbd2(0x138)](_0x56fbd2(0x133));_0x569627&&this[_0x56fbd2(0x152)](_0x569627,_0x56fbd2(0x132),()=>{const _0x1eabef=_0x56fbd2,_0x540612=this[_0x1eabef(0x167)][_0x1eabef(0x14a)][_0x1eabef(0x11c)][_0x1eabef(0x137)][_0x1eabef(0x13e)]();_0x540612&&_0x540612[_0x1eabef(0x130)](_0x1eabef(0x156))&&this[_0x1eabef(0x167)][_0x1eabef(0x150)][_0x1eabef(0x12e)][_0x1eabef(0x15d)](_0x1eabef(0x126),()=>{const _0x54ac65=_0x1eabef;_0x3eccd1(this[_0x54ac65(0x167)],_0x540612);});});const _0xcb6da9=this[_0x56fbd2(0x167)][_0x56fbd2(0x124)][_0x56fbd2(0x138)](_0x56fbd2(0x153));_0xcb6da9&&this[_0x56fbd2(0x152)](_0xcb6da9,_0x56fbd2(0x132),()=>{const _0x17ab40=_0x56fbd2,_0xdd68fb=this[_0x17ab40(0x167)][_0x17ab40(0x14a)][_0x17ab40(0x11c)][_0x17ab40(0x137)][_0x17ab40(0x13e)]();_0xdd68fb&&_0xdd68fb[_0x17ab40(0x130)](_0x17ab40(0x156))&&this[_0x17ab40(0x167)][_0x17ab40(0x150)][_0x17ab40(0x12e)][_0x17ab40(0x15d)](_0x17ab40(0x126),()=>{const _0x3ddd2c=_0x17ab40;_0x3eccd1(this[_0x3ddd2c(0x167)],_0xdd68fb);});});}}
|
|
@@ -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
|
import { type Dialog } from 'ckeditor5/src/ui.js';
|
|
@@ -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,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x238838,ObservableMixin as _0x3177c0}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x41a2d9}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5ea8ff}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x4de4a3}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x16c283}from'../../utils/uploadutils.js';import{getImageUrls as _0x42175d,getImageDimension as _0x45211a}from'../../utils/editingutils.js';import{isAncestor as _0xcb277b}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3177c0(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4730de,_0x26b788,_0x45f5d9){super(),this['_editor']=_0x4730de,this['_dialog']=_0x26b788,this['_imageElement']=_0x45f5d9,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 _0x20371c=this['_imageElement'],_0x151a18=_0x20371c['getAttribute']('uploadcareImageId'),_0x4dc9c5=_0x20371c['getAttribute']('src');if(_0x151a18)await this['_loadImageInfo'](_0x151a18,_0x4dc9c5);else{if(this['_imageCache']['has'](_0x4dc9c5)){const _0x3aed6a=this['_imageCache']['get'](_0x4dc9c5);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3aed6a['url'],this['imageDimension']=_0x3aed6a['dimension'],this['imageId']=_0x3aed6a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x44f0ea}=this['_editor'],t=_0x44f0ea['t'],_0x3f77f6=new _0x4de4a3(_0x44f0ea,this['imageStatus'],this['_attributes']);_0x3f77f6['bind']('status')['to'](this,'imageStatus'),_0x3f77f6['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3f77f6['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3f77f6['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3f77f6,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5ea8ff,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3f77f6,'position':_0x41a2d9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3f77f6['focus']();},'onHide':()=>{_0x3f77f6['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4fceb8=>!_0xcb277b(_0x4fceb8,_0x3f77f6['element'])}});}['_loadImageInfo'](_0x528e66,_0x17e234){return _0x16c283['getInfo'](_0x528e66,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5b136c=>{const {width:_0x1fc548,height:_0x319122}=_0x5b136c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x17e234,this['imageDimension']={'width':_0x1fc548,'height':_0x319122},this['imageId']=_0x528e66;})['catch'](_0x5e9bb8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5e9bb8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3168f6,_0x30e114){return this['_getImageAsFile'](_0x3168f6)['then'](_0x41fcd1=>_0x16c283['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':_0x30e114['signal'],'file':_0x41fcd1,'onProgress':_0xe71177=>{_0xe71177&&_0xe71177['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xe71177['value']));}}))['then'](_0x4fe743=>{const {width:_0x28a324,height:_0x597658}=_0x4fe743['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4fe743['cdnUrl'],this['imageDimension']={'width':_0x28a324,'height':_0x597658},this['imageId']=_0x4fe743['uuid'],this['imageUploadProgress']=null;const _0x24b8aa=_0x3168f6['getAttribute']('src');this['_imageCache']['set'](_0x24b8aa,{'id':_0x4fe743['uuid'],'url':_0x4fe743['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2586cf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2586cf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5e2378,_0x3d0e20){_0x5e2378['on']('apply',(_0x11912f,_0x354dff)=>{this['_replaceImage'](_0x3d0e20,_0x354dff['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5e2378['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5e2378['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3dda9c,_0x5d7d55,_0x2d9a83){const _0x407b45=this['_editor'],{width:_0x45d4c2,height:_0x2cbcad}=_0x45211a(_0x5d7d55,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xf98cba,imageSources:_0x393b6f}=_0x42175d(_0x5d7d55,_0x45d4c2);_0x407b45['model']['change'](_0x1c8fa3=>{if('$graveyard'===_0x3dda9c['root']['rootName']){_0x407b45['execute']('insertImage',{'imageType':_0x3dda9c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3dda9c['getAttributes']()),'uploadcareImageId':_0x2d9a83,'src':_0xf98cba,'sources':_0x393b6f,'width':_0x45d4c2,'height':_0x2cbcad}});const _0x2c48e5=_0x3dda9c['getChildren']();_0x3dda9c=_0x407b45['model']['document']['selection']['getSelectedElement']();for(const _0x509c6b of _0x2c48e5)_0x1c8fa3['append'](_0x1c8fa3['cloneElement'](_0x509c6b),_0x3dda9c);}else _0x1c8fa3['setSelection'](_0x3dda9c,'on'),_0x407b45['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3dda9c['getAttributes']()),'uploadcareImageId':_0x2d9a83,'src':_0xf98cba,'sources':_0x393b6f,'width':_0x45d4c2,'height':_0x2cbcad},_0x3dda9c);_0x1c8fa3['setSelection'](_0x3dda9c,'on');});}async['_getImageAsFile'](_0x3be5a4){const _0x4f24ff=_0x238838['window'],_0x5036c9=_0x238838['document']['location']['href'],_0x5dde18=new _0x4f24ff['URL'](_0x3be5a4['getAttribute']('src'),_0x5036c9);if('data:'===_0x5dde18['protocol']){const _0x3e462c=_0x5dde18['href']['split'](','),_0x4909b4=_0x3e462c[0x0]['match'](/:(.*?);/)[0x1],_0x1e1ecd=_0x4909b4['split']('/')[0x1],_0x3c1590=_0x4f24ff['atob'](_0x3e462c[_0x3e462c['length']-0x1]);let _0x2f819d=_0x3c1590['length'];const _0xc17822=new _0x4f24ff['Uint8Array'](_0x2f819d);for(;_0x2f819d--;)_0xc17822[_0x2f819d]=_0x3c1590['charCodeAt'](_0x2f819d);return new _0x4f24ff['File']([_0xc17822],'image.'+_0x1e1ecd,{'type':_0x4909b4});}const _0x3dd77b=_0x5dde18['href']['split']('/'),_0x46c780=_0x3dd77b[_0x3dd77b['length']-0x1],_0x55a353=_0x46c780['split']('.')[0x1];return _0x4f24ff['fetch'](_0x5dde18['href'])['then'](_0x25407f=>_0x25407f['clone']()['blob']())['then'](_0x3eecb0=>new _0x4f24ff['File']([_0x3eecb0],_0x46c780,{'type':'image/'+_0x55a353}));}}
|
|
@@ -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
|
/**
|
|
@@ -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
|
-
(function(
|
|
23
|
+
(function(_0x5ac131,_0x5db9c6){const _0x666b50=_0x2a17,_0x12d0c5=_0x5ac131();while(!![]){try{const _0x299adb=-parseInt(_0x666b50(0x173))/0x1+-parseInt(_0x666b50(0x165))/0x2+parseInt(_0x666b50(0x16f))/0x3*(-parseInt(_0x666b50(0x16c))/0x4)+parseInt(_0x666b50(0x16a))/0x5+-parseInt(_0x666b50(0x164))/0x6*(-parseInt(_0x666b50(0x166))/0x7)+-parseInt(_0x666b50(0x170))/0x8+parseInt(_0x666b50(0x16e))/0x9*(parseInt(_0x666b50(0x175))/0xa);if(_0x299adb===_0x5db9c6)break;else _0x12d0c5['push'](_0x12d0c5['shift']());}catch(_0x57b507){_0x12d0c5['push'](_0x12d0c5['shift']());}}}(_0x58e2,0x8efeb));function _0x58e2(){const _0x5c91ab=['ck-uploadcare-theme','imageSrc','image-edit','4903075OhNGMl','uc-cloud-image-editor','268ydBXLk','setTemplate','9PokLJO','50709pCpyPD','6586664EDJSxd','uc-light','bindTemplate','717574nsckLC','set','14056110tfOCmd','120TtCeeA','261062NutMdA','351197AnGEOu'];_0x58e2=function(){return _0x5c91ab;};return _0x58e2();}import{View as _0x41960b}from'ckeditor5/src/ui.js';function _0x2a17(_0x4214ac,_0x39eaaa){const _0x58e264=_0x58e2();return _0x2a17=function(_0x2a1739,_0x339a48){_0x2a1739=_0x2a1739-0x164;let _0x124168=_0x58e264[_0x2a1739];return _0x124168;},_0x2a17(_0x4214ac,_0x39eaaa);}export class UploadcareImageEditFormEditingView extends _0x41960b{constructor(_0x4bfb74,_0x1ca265){const _0x2092ff=_0x2a17;super(_0x4bfb74);const _0x15efa4=this[_0x2092ff(0x172)];this[_0x2092ff(0x174)](_0x2092ff(0x168),''),this[_0x2092ff(0x16d)]({'tag':_0x2092ff(0x16b),'attributes':{..._0x1ca265,'class':[_0x2092ff(0x171),_0x2092ff(0x167)],'ctx-name':_0x2092ff(0x169),'cdn-url':_0x15efa4['to'](_0x2092ff(0x168))}});}}
|
|
@@ -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
|
import { View } from 'ckeditor5/src/ui.js';
|
|
@@ -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
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x7c6f8a}from'ckeditor5/src/icons.js';import{ButtonView as _0x2ace90,IconView as _0x20631f,View as _0x52b447}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x52b447{constructor(_0x3eee16){super(_0x3eee16);const t=_0x3eee16['t'];this['set']('errorType',null);const _0x47489e=new _0x2ace90(_0x3eee16);_0x47489e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x47489e['withText']=!0x0,_0x47489e['class']='ck-button-action',_0x47489e['on']('execute',()=>{this['fire']('retry');}),_0x47489e['bind']('isVisible')['to'](this,'errorType',_0x3ac76c=>'NotFound'!==_0x3ac76c);const _0x3e24b1=new _0x20631f();_0x3e24b1['content']=_0x7c6f8a,_0x3e24b1['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1f589f=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':[_0x3e24b1,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1f589f['to']('errorType',_0x3580db=>t('NotFound'!==_0x3580db?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x47489e]},{'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'}]}]}]});}}
|
|
@@ -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
|
/**
|
|
@@ -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
|
-
import{SpinnerView as
|
|
23
|
+
import{SpinnerView as _0x583f69,View as _0x2b4b31}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x2b4b31{constructor(_0x314f64){super(_0x314f64);const t=_0x314f64['t'],_0x4a344f=this['bindTemplate'],_0x4e09aa=new _0x583f69();_0x4e09aa['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':[_0x4e09aa,{'text':_0x4a344f['to']('imageUploadProgress',_0x4b9eb0=>t('Loading\x20image...')+'\x20('+(_0x4b9eb0||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'}]}]}]});}}
|
|
@@ -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
|
/**
|
|
@@ -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
|
+
function _0x3b11(){const _0x4d1254=['detail','length','cdnUrl','uploading','target','createCollection','_setView','88WZbioI','add','_loadingView','_errorView','9LoKeNZ','error','8426880eGrOSV','focus','disconnect','addEventListener','fire','element','_focusableView','status','addMany','apply','ready','_addUploadcareImageEditorListeners','setTemplate','getFocusableElement','querySelector','ck-reset_all-excluded','render','6321AAjGRb','5868sCPPEu','observe','18mrjxDk','uc-cloud-image-editor','change:status','div','327608uxwzUN','set','_editingView','10097540jxaWvl','_items','addedNodes','cancel','filter','ck-uploadcare-form','_waitForImageEditorComponent','1449804hBtcgk','366844tSnumt','nodeName','_addErrorViewListeners','once','39477TsCEPH','clear','toLowerCase','retry','35QEexMy'];_0x3b11=function(){return _0x4d1254;};return _0x3b11();}const _0x2bb2ce=_0x52eb;(function(_0x2bf691,_0xf225b3){const _0x5d6dfb=_0x52eb,_0x418592=_0x2bf691();while(!![]){try{const _0x28a5bd=parseInt(_0x5d6dfb(0x1fd))/0x1+parseInt(_0x5d6dfb(0x1f9))/0x2*(parseInt(_0x5d6dfb(0x223))/0x3)+parseInt(_0x5d6dfb(0x227))/0x4*(-parseInt(_0x5d6dfb(0x201))/0x5)+parseInt(_0x5d6dfb(0x221))/0x6*(-parseInt(_0x5d6dfb(0x220))/0x7)+-parseInt(_0x5d6dfb(0x20f))/0x8+-parseInt(_0x5d6dfb(0x20d))/0x9*(-parseInt(_0x5d6dfb(0x1f1))/0xa)+-parseInt(_0x5d6dfb(0x209))/0xb*(-parseInt(_0x5d6dfb(0x1f8))/0xc);if(_0x28a5bd===_0xf225b3)break;else _0x418592['push'](_0x418592['shift']());}catch(_0x52ccc7){_0x418592['push'](_0x418592['shift']());}}}(_0x3b11,0x9411b));function _0x52eb(_0x41a97d,_0x50d2ae){const _0x3b11b3=_0x3b11();return _0x52eb=function(_0x52eb26,_0x56f5e8){_0x52eb26=_0x52eb26-0x1f1;let _0x37dc15=_0x3b11b3[_0x52eb26];return _0x37dc15;},_0x52eb(_0x41a97d,_0x50d2ae);}import{View as _0x3b14b0}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x5a4ddb}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x3c8ecf}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x21517a}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0xc21b82}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0xc21b82{[_0x2bb2ce(0x1f2)];[_0x2bb2ce(0x20b)];[_0x2bb2ce(0x20c)];[_0x2bb2ce(0x229)];[_0x2bb2ce(0x215)];constructor(_0x93ee25,_0x3028d3,_0x408d9d){const _0x366ff5=_0x2bb2ce;super(_0x93ee25),this[_0x366ff5(0x1f2)]=this[_0x366ff5(0x207)](),this[_0x366ff5(0x20b)]=new _0x5a4ddb(_0x93ee25),this[_0x366ff5(0x20c)]=new _0x3c8ecf(_0x93ee25),this[_0x366ff5(0x229)]=new _0x21517a(_0x93ee25,_0x408d9d),this[_0x366ff5(0x215)]=new _0x3b14b0(_0x93ee25),this[_0x366ff5(0x215)][_0x366ff5(0x21b)](this[_0x366ff5(0x21c)]()),this[_0x366ff5(0x228)](_0x366ff5(0x216),_0x3028d3),this[_0x366ff5(0x21b)]({'tag':_0x366ff5(0x226),'attributes':{'class':['ck',_0x366ff5(0x21e),_0x366ff5(0x1f6)],'tabindex':'-1'},'children':this[_0x366ff5(0x1f2)]}),this[_0x366ff5(0x208)](),this[_0x366ff5(0x1fc)](_0x366ff5(0x21f),()=>{const _0x28ca6a=_0x366ff5;this[_0x28ca6a(0x1f7)](this[_0x28ca6a(0x214)],_0x126df1=>{const _0x4969b4=_0x28ca6a;this[_0x4969b4(0x21a)](_0x126df1);});}),this['on'](_0x366ff5(0x225),()=>{const _0x565ca6=_0x366ff5;this[_0x565ca6(0x208)]();}),this[_0x366ff5(0x1fb)]();}[_0x2bb2ce(0x210)](){const _0x2698f1=_0x2bb2ce;this[_0x2698f1(0x214)][_0x2698f1(0x210)]();}[_0x2bb2ce(0x208)](){const _0x355095=_0x2bb2ce;switch(this[_0x355095(0x1f2)][_0x355095(0x1fe)](),this[_0x355095(0x216)]){case _0x355095(0x205):this[_0x355095(0x1f2)][_0x355095(0x20a)](this[_0x355095(0x20b)]);break;case _0x355095(0x20e):this[_0x355095(0x1f2)][_0x355095(0x20a)](this[_0x355095(0x20c)]);break;case _0x355095(0x219):this[_0x355095(0x1f2)][_0x355095(0x217)]([this[_0x355095(0x229)],this[_0x355095(0x215)]]);}}[_0x2bb2ce(0x1f7)](_0x398bca,_0x1cecfb){const _0x243ec1=_0x2bb2ce,_0x4ccc40=_0x243ec1(0x224),_0x224896=_0x398bca[_0x243ec1(0x21d)](_0x4ccc40);if(_0x224896)return _0x1cecfb(_0x224896);const _0xfffa8a=new MutationObserver(_0x7da96e=>{const _0x4d579f=_0x243ec1,_0x108f4a=_0x7da96e[_0x4d579f(0x1f5)](_0x15d065=>_0x15d065[_0x4d579f(0x206)]===_0x398bca&&_0x15d065[_0x4d579f(0x1f3)][_0x4d579f(0x203)]>0x0&&_0x15d065[_0x4d579f(0x1f3)][0x0][_0x4d579f(0x1fa)][_0x4d579f(0x1ff)]()===_0x4ccc40);_0x108f4a[_0x4d579f(0x203)]&&(_0xfffa8a[_0x4d579f(0x211)](),_0x1cecfb(_0x108f4a[0x0][_0x4d579f(0x1f3)][0x0]));});_0xfffa8a[_0x243ec1(0x222)](_0x398bca,{'childList':!0x0,'subtree':!0x0});}[_0x2bb2ce(0x21a)](_0x234c25){const _0x6bee3c=_0x2bb2ce;_0x234c25[_0x6bee3c(0x212)](_0x6bee3c(0x218),_0x44d440=>{const _0x497fff=_0x6bee3c;this[_0x497fff(0x213)](_0x497fff(0x218),{'imageSrc':_0x44d440[_0x497fff(0x202)][_0x497fff(0x204)]});}),_0x234c25[_0x6bee3c(0x212)](_0x6bee3c(0x1f4),()=>{const _0x4f56ae=_0x6bee3c;this[_0x4f56ae(0x213)](_0x4f56ae(0x1f4));});}[_0x2bb2ce(0x1fb)](){const _0x4cf674=_0x2bb2ce;this[_0x4cf674(0x20c)]['on'](_0x4cf674(0x200),()=>{const _0x53ae1c=_0x4cf674;this[_0x53ae1c(0x213)](_0x53ae1c(0x200));});}}
|