@ckeditor/ckeditor5-uploadcare 44.2.0-alpha.0 → 44.2.0-alpha.10
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 +5 -0
- package/README.md +16 -5
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/build/uploadcare.js +2 -2
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +0 -3
- package/lang/translations/af.po +0 -12
- package/lang/translations/ar.po +22 -34
- package/lang/translations/ast.po +0 -12
- package/lang/translations/az.po +0 -12
- package/lang/translations/bg.po +22 -34
- package/lang/translations/bn.po +22 -34
- package/lang/translations/bs.po +0 -12
- package/lang/translations/ca.po +22 -34
- package/lang/translations/cs.po +22 -34
- package/lang/translations/da.po +22 -34
- package/lang/translations/de-ch.po +0 -12
- package/lang/translations/de.po +22 -34
- package/lang/translations/el.po +22 -34
- package/lang/translations/en-au.po +0 -12
- package/lang/translations/en-gb.po +0 -12
- package/lang/translations/en.po +0 -12
- package/lang/translations/eo.po +0 -12
- package/lang/translations/es-co.po +0 -12
- package/lang/translations/es.po +22 -34
- package/lang/translations/et.po +22 -34
- package/lang/translations/eu.po +0 -12
- package/lang/translations/fa.po +0 -12
- package/lang/translations/fi.po +22 -34
- package/lang/translations/fr.po +22 -34
- package/lang/translations/gl.po +0 -12
- package/lang/translations/gu.po +0 -12
- package/lang/translations/he.po +22 -34
- package/lang/translations/hi.po +22 -34
- package/lang/translations/hr.po +0 -12
- package/lang/translations/hu.po +22 -34
- package/lang/translations/hy.po +0 -12
- package/lang/translations/id.po +22 -34
- package/lang/translations/it.po +22 -34
- package/lang/translations/ja.po +22 -34
- package/lang/translations/jv.po +0 -12
- package/lang/translations/kk.po +0 -12
- package/lang/translations/km.po +0 -12
- package/lang/translations/kn.po +0 -12
- package/lang/translations/ko.po +22 -34
- package/lang/translations/ku.po +0 -12
- package/lang/translations/lt.po +22 -34
- package/lang/translations/lv.po +22 -34
- package/lang/translations/ms.po +22 -34
- package/lang/translations/nb.po +0 -12
- package/lang/translations/ne.po +0 -12
- package/lang/translations/nl.po +22 -34
- package/lang/translations/no.po +22 -34
- package/lang/translations/oc.po +0 -12
- package/lang/translations/pl.po +22 -34
- package/lang/translations/pt-br.po +22 -34
- package/lang/translations/pt.po +22 -34
- package/lang/translations/ro.po +22 -34
- package/lang/translations/ru.po +22 -34
- package/lang/translations/si.po +0 -12
- package/lang/translations/sk.po +22 -34
- package/lang/translations/sl.po +0 -12
- package/lang/translations/sq.po +0 -12
- package/lang/translations/sr-latn.po +0 -12
- package/lang/translations/sr.po +22 -34
- package/lang/translations/sv.po +22 -34
- package/lang/translations/th.po +22 -34
- package/lang/translations/ti.po +0 -12
- package/lang/translations/tk.po +0 -12
- package/lang/translations/tr.po +22 -34
- package/lang/translations/tt.po +0 -12
- package/lang/translations/ug.po +0 -12
- package/lang/translations/uk.po +22 -34
- package/lang/translations/ur.po +0 -12
- package/lang/translations/uz.po +0 -12
- package/lang/translations/vi.po +22 -34
- package/lang/translations/zh-cn.po +22 -34
- package/lang/translations/zh.po +22 -34
- package/package.json +8 -8
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.d.ts +9 -8
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
- package/theme/icons/instagram.svg +0 -11
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2dfcf7=_0x2c0c;(function(_0x1d4e63,_0x54476f){const _0x39ca08=_0x2c0c,_0x28cefe=_0x1d4e63();while(!![]){try{const _0x4f1be6=parseInt(_0x39ca08(0x140))/0x1*(parseInt(_0x39ca08(0x129))/0x2)+parseInt(_0x39ca08(0x146))/0x3*(parseInt(_0x39ca08(0x154))/0x4)+parseInt(_0x39ca08(0x104))/0x5+-parseInt(_0x39ca08(0x138))/0x6+-parseInt(_0x39ca08(0x108))/0x7+parseInt(_0x39ca08(0x11b))/0x8+parseInt(_0x39ca08(0x130))/0x9*(parseInt(_0x39ca08(0x109))/0xa);if(_0x4f1be6===_0x54476f)break;else _0x28cefe['push'](_0x28cefe['shift']());}catch(_0x1c1993){_0x28cefe['push'](_0x28cefe['shift']());}}}(_0x51ec,0x6de54));import{Plugin as _0x3b14ec}from'ckeditor5/src/core.js';import{Dialog as _0x3a5f7e}from'ckeditor5/src/ui.js';import{createElement as _0x400a30,global as _0x5d1e1e,uid as _0x309b03}from'ckeditor5/src/utils.js';import _0x2d9251 from'./uploadcarecommand.js';import _0x2fda89 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3ce622}from'./utils/editingutils.js';function _0x2c0c(_0x5138c7,_0xa25b1){const _0x51ec14=_0x51ec();return _0x2c0c=function(_0x2c0cfa,_0x1b9b7d){_0x2c0cfa=_0x2c0cfa-0x104;let _0x4ca7ae=_0x51ec14[_0x2c0cfa];return _0x4ca7ae;},_0x2c0c(_0x5138c7,_0xa25b1);}export default class i extends _0x3b14ec{constructor(){const _0x278303=_0x2c0c;super(...arguments),this[_0x278303(0x13e)]=null,this[_0x278303(0x116)]=null;}static get[_0x2dfcf7(0x10b)](){const _0x32bb08=_0x2dfcf7;return _0x32bb08(0x141);}static get[_0x2dfcf7(0x155)](){const _0x27bed3=_0x2dfcf7;return[_0x27bed3(0x106),_0x2fda89,_0x3a5f7e];}static get[_0x2dfcf7(0x152)](){return!0x0;}static get[_0x2dfcf7(0x12c)](){return!0x0;}get[_0x2dfcf7(0x110)](){const _0x5c2849=_0x2dfcf7;return this[_0x5c2849(0x13e)];}get[_0x2dfcf7(0x133)](){const _0x519f40=_0x2dfcf7;return this[_0x519f40(0x116)];}[_0x2dfcf7(0x145)](){const _0x356c56=_0x2dfcf7,_0x4658a4=this[_0x356c56(0x153)];_0x4658a4[_0x356c56(0x156)][_0x356c56(0x122)](_0x356c56(0x115),new _0x2d9251(_0x4658a4));}[_0x2dfcf7(0x14a)](){const _0x3b5cb9=_0x2dfcf7;this[_0x3b5cb9(0x14d)](),this[_0x3b5cb9(0x128)](),this[_0x3b5cb9(0x13f)](),this[_0x3b5cb9(0x10c)](),this[_0x3b5cb9(0x157)](),this[_0x3b5cb9(0x123)](this[_0x3b5cb9(0x153)],_0x3b5cb9(0x118),()=>{const _0x3ecd2b=_0x3b5cb9;this[_0x3ecd2b(0x13e)]&&(this[_0x3ecd2b(0x13e)][_0x3ecd2b(0x126)](),this[_0x3ecd2b(0x13e)]=null),this[_0x3ecd2b(0x116)]&&(this[_0x3ecd2b(0x116)][_0x3ecd2b(0x126)](),this[_0x3ecd2b(0x116)]=null);const _0x421416=_0x5d1e1e[_0x3ecd2b(0x14c)][_0x3ecd2b(0x148)](_0x3ecd2b(0x13a));_0x421416&&_0x421416[_0x3ecd2b(0x126)]();}),async function(_0x501f08){const _0x44840b=_0x572cae([0x5a,0x50,0x69,0x53,0x41,0x54,0x62,0x32,0x49,0x48,0x78,0x6d,0x31,0x6e,0x34,0x37,0x61,0x4e,0x6a,0x38,0x43,0x51,0x71,0x36,0x64,0x75,0x59,0x57,0x44,0x58,0x76,0x47,0x77,0x4a,0x55,0x70,0x30,0x7a,0x73,0x52,0x72,0x68,0x45,0x79,0x35,0x66,0x56,0x74,0x6c,0x39,0x6b,0x42,0x4d,0x6f,0x46,0x4b,0x63,0x67,0x33,0x4c,0x4f,0x65]),_0x10d48b=0x235e9458,_0x4797be=0x2359c9a0^_0x10d48b,_0x29d8e6=window[_0x572cae([0x44,0x61,0x74,0x65])][_0x572cae([0x6e,0x6f,0x77])](),_0xdd7576=_0x501f08[_0x572cae([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x584e01=new window[(_0x572cae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x96cb93=>{_0xdd7576[_0x572cae([0x6f,0x6e,0x63,0x65])](_0x572cae([0x72,0x65,0x61,0x64,0x79]),_0x96cb93);}),_0x51d6d7={[_0x572cae([0x6b,0x74,0x79])]:_0x572cae([0x45,0x43]),[_0x572cae([0x75,0x73,0x65])]:_0x572cae([0x73,0x69,0x67]),[_0x572cae([0x63,0x72,0x76])]:_0x572cae([0x50,0x2d,0x32,0x35,0x36]),[_0x572cae([0x78])]:_0x572cae([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]),[_0x572cae([0x79])]:_0x572cae([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]),[_0x572cae([0x61,0x6c,0x67])]:_0x572cae([0x45,0x53,0x32,0x35,0x36])},_0x53a083=_0xdd7576[_0x572cae([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x572cae([0x67,0x65,0x74])](_0x572cae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x59512b(){let _0x38c3bc,_0x217485=null,_0x3787b7=null;try{if(_0x53a083==_0x572cae([0x47,0x50,0x4c]))return _0x572cae([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x38c3bc=_0x408e02(),!_0x38c3bc)return _0x572cae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x38c3bc[_0x572cae([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3787b7=_0x4255dc(_0x38c3bc[_0x572cae([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x38c3bc[_0x572cae([0x6a,0x74,0x69])])),await _0xe35cdc()?_0x5acbe8()?_0x57fcc9()?_0x572cae([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x13abec()?(_0x38c3bc[_0x572cae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x572cae([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x217485=_0x54f79d(_0x572cae([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x38c3bc[_0x572cae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x572cae([0x74,0x72,0x69,0x61,0x6c])&&(_0x217485=_0x54f79d(_0x572cae([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5c9cd4()):_0x572cae([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x572cae([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x572cae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x26acd7){return _0x572cae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x57fcc9(){const _0x277801=[_0x572cae([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x572cae([0x74,0x72,0x69,0x61,0x6c])][_0x572cae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38c3bc[_0x572cae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x29d8e6/0x3e8:0xe10*_0x4797be;return _0x38c3bc[_0x572cae([0x65,0x78,0x70])]<_0x277801;}function _0x5acbe8(){const _0x15cc08=_0x38c3bc[_0x572cae([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x15cc08&&(!!_0x15cc08[_0x572cae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x572cae([0x2a]))||!!_0x15cc08[_0x572cae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x572cae([0x55,0x50,0x4c,0x43])));}function _0x13abec(){const _0x20262d=_0x2c0c,_0x4d0446=_0x38c3bc[_0x572cae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4d0446||0x0==_0x4d0446[_0x572cae([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x23eae0}=new URL(window[_0x572cae([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x20262d(0x131)]);if(_0x4d0446[_0x572cae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23eae0))return!0x0;const _0x8378fe=_0x23eae0[_0x572cae([0x73,0x70,0x6c,0x69,0x74])](_0x572cae([0x2e]));return _0x4d0446[_0x572cae([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x421d37=>_0x421d37[_0x572cae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x572cae([0x2a])))[_0x572cae([0x6d,0x61,0x70])](_0x32b12a=>_0x32b12a[_0x572cae([0x73,0x70,0x6c,0x69,0x74])](_0x572cae([0x2e])))[_0x572cae([0x73,0x6f,0x6d,0x65])](_0x2a9406=>_0x8378fe[_0x572cae([0x65,0x76,0x65,0x72,0x79])]((_0x45e3f6,_0x40d436)=>_0x2a9406[_0x40d436]===_0x45e3f6||_0x2a9406[_0x40d436]===_0x572cae([0x2a])));}function _0x5c9cd4(){return _0x217485&&_0x3787b7?new window[(_0x572cae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d1a4f,_0x471641)=>{_0x217485[_0x572cae([0x74,0x68,0x65,0x6e])](_0x1d1a4f,_0x471641),_0x3787b7[_0x572cae([0x74,0x68,0x65,0x6e])](_0x4f43b5=>{_0x4f43b5!=_0x572cae([0x56,0x61,0x6c,0x69,0x64])&&_0x1d1a4f(_0x4f43b5);},_0x471641);}):_0x217485||_0x3787b7||_0x572cae([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4255dc(_0x1826cb,_0x2c8498){return new window[(_0x572cae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x989857=>{if(_0x3598d5())return _0x989857(_0x572cae([0x56,0x61,0x6c,0x69,0x64]));_0x281f28(),_0xdd7576[_0x572cae([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x572cae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ed308=!0x1;const _0x105c73=_0x309b03();function _0x4908d8(_0x1547d9){return!!_0x1547d9&&(typeof _0x1547d9===_0x572cae([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1547d9===_0x572cae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1547d9[_0x572cae([0x74,0x68,0x65,0x6e])]===_0x572cae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1547d9[_0x572cae([0x63,0x61,0x74,0x63,0x68])]===_0x572cae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x41a36f(_0x1d4094){_0x56c442(_0x1d4094)[_0x572cae([0x74,0x68,0x65,0x6e])](_0x1c05e9=>{if(!_0x1c05e9||_0x1c05e9[_0x572cae([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x572cae([0x6f,0x6b]))return _0x572cae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x41962c(_0x447600(_0x105c73+_0x2c8498))!=_0x1c05e9[_0x572cae([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x572cae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x572cae([0x56,0x61,0x6c,0x69,0x64]);})[_0x572cae([0x74,0x68,0x65,0x6e])](_0xe424bf=>(_0xc02917(),_0xe424bf),()=>{const _0x48e48c=_0x9fa738();return null==_0x48e48c?(_0xc02917(),_0x572cae([0x56,0x61,0x6c,0x69,0x64])):_0x572cae(_0x29d8e6-_0x48e48c>(0x7521058^_0x10d48b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x572cae([0x74,0x68,0x65,0x6e])](_0x989857)[_0x572cae([0x63,0x61,0x74,0x63,0x68])](()=>{_0x989857(_0x572cae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13dc18=0x23687ad8^_0x10d48b;function _0xc02917(){const _0x22d9a7=_0x572cae([0x6c,0x6c,0x63,0x74,0x2d])+_0x41962c(_0x447600(_0x1826cb)),_0x2eadcc=_0x55fb18(_0x41962c(window[_0x572cae([0x4d,0x61,0x74,0x68])][_0x572cae([0x63,0x65,0x69,0x6c])](_0x29d8e6/_0x13dc18)));window[_0x572cae([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x572cae([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22d9a7,_0x2eadcc);}function _0x9fa738(){const _0x3906ea=_0x572cae([0x6c,0x6c,0x63,0x74,0x2d])+_0x41962c(_0x447600(_0x1826cb)),_0xc4aee6=window[_0x572cae([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x572cae([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3906ea);return _0xc4aee6?window[_0x572cae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55fb18(_0xc4aee6),0x10)*_0x13dc18:null;}function _0x56c442(_0x1de1b5){return new window[(_0x572cae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d9393,_0x36614b)=>{_0x1de1b5[_0x572cae([0x74,0x68,0x65,0x6e])](_0x5d9393,_0x36614b),window[_0x572cae([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x36614b,0x235f4098^_0x10d48b);});}}_0xdd7576[_0x572cae([0x6f,0x6e])](_0x572cae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5575b2,_0x35ca17)=>{if(_0x35ca17[0x0]!=_0x1826cb)return _0x989857(_0x572cae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x35ca17[0x1]={..._0x35ca17[0x1],[_0x572cae([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x105c73};},{[_0x572cae([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x572cae([0x68,0x69,0x67,0x68])}),_0xdd7576[_0x572cae([0x6f,0x6e])](_0x572cae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10b4e2=>{_0x4908d8(_0x10b4e2[_0x572cae([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ed308=!0x0,_0x41a36f(_0x10b4e2[_0x572cae([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x572cae([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x572cae([0x6c,0x6f,0x77])}),_0x584e01[_0x572cae([0x74,0x68,0x65,0x6e])](()=>{_0x2ed308||_0x989857(_0x572cae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3598d5(){return _0xdd7576[_0x572cae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x572cae([0x76,0x69,0x65,0x77])][_0x572cae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x572cae([0x61,0x75,0x74,0x6f]);}function _0x281f28(){_0xdd7576[_0x572cae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x572cae([0x76,0x69,0x65,0x77])][_0x572cae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x572cae([0x61,0x75,0x74,0x6f]);}}function _0x54f79d(_0x4eec90){const _0x3eacb2=[new window[(_0x572cae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57c41f=>setTimeout(_0x57c41f,0x2357aa94^_0x10d48b)),_0x584e01[_0x572cae([0x74,0x68,0x65,0x6e])](()=>new window[(_0x572cae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4eb346=>{let _0x1a7966=0x0;_0xdd7576[_0x572cae([0x6d,0x6f,0x64,0x65,0x6c])][_0x572cae([0x6f,0x6e])](_0x572cae([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x29306e,_0x2f23f4)=>{_0x2f23f4[0x0][_0x572cae([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a7966++,_0x1a7966==(0x235e95a0^_0x10d48b)&&(_0x4eb346(),_0x29306e[_0x572cae([0x6f,0x66,0x66])]());});}))];return window[_0x572cae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x572cae([0x72,0x61,0x63,0x65])](_0x3eacb2)[_0x572cae([0x74,0x68,0x65,0x6e])](()=>_0x4eec90);}async function _0x3f95d2(){await _0x584e01,_0xdd7576[_0x572cae([0x6d,0x6f,0x64,0x65,0x6c])][_0x572cae([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2bb386,_0xdd7576[_0x572cae([0x6d,0x6f,0x64,0x65,0x6c])][_0x572cae([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2bb386,_0xdd7576[_0x572cae([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x572cae([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xc77ad7(_0x43b01f){const _0x192207=_0x4f8b1f();_0xdd7576[_0x192207]=_0x572cae([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x43b01f,_0x43b01f!=_0x572cae([0x56,0x61,0x6c,0x69,0x64])&&_0x3f95d2();}function _0x4f8b1f(){const _0x3c12de=window[_0x572cae([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x572cae([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x572cae([0x6e,0x6f,0x77])]())[_0x572cae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x572cae([0x2e]),'');let _0x5787a7=_0x572cae([0x5a]);for(let _0x238144=0x0;_0x238144<_0x3c12de[_0x572cae([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x238144+=0x2){let _0x382bc4=window[_0x572cae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c12de[_0x572cae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x238144,_0x238144+0x2));_0x382bc4>=_0x44840b[_0x572cae([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x382bc4-=_0x44840b[_0x572cae([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5787a7+=_0x44840b[_0x382bc4];}return _0x5787a7;}function _0x408e02(){const _0x290d89=_0x53a083[_0x572cae([0x73,0x70,0x6c,0x69,0x74])](_0x572cae([0x2e]));if(0x3!=_0x290d89[_0x572cae([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x333aff(_0x290d89[0x1]);function _0x333aff(_0x57ada1){const _0x174487=_0xa6e8ea(_0x57ada1);return _0x174487&&_0x3f7547()?_0x174487:null;function _0x3f7547(){const _0x111f02=_0x174487[_0x572cae([0x6a,0x74,0x69])],_0xe3932a=window[_0x572cae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x111f02[_0x572cae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x111f02[_0x572cae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x57f91c={..._0x174487,[_0x572cae([0x6a,0x74,0x69])]:_0x111f02[_0x572cae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x111f02[_0x572cae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x57f91c[_0x572cae([0x76,0x63])],_0x447600(_0x57f91c)==_0xe3932a;}}}async function _0xe35cdc(){let _0x116cfd=!0x0;try{const _0x2c6bec=_0x53a083[_0x572cae([0x73,0x70,0x6c,0x69,0x74])](_0x572cae([0x2e])),[_0x4e1ed0,_0x1cbfa9,_0x2d7e93]=_0x2c6bec;return _0x5e4ddc(_0x4e1ed0),await _0x1dd082(_0x4e1ed0,_0x1cbfa9,_0x2d7e93),_0x116cfd;}catch(_0x4ea734){return!0x1;}function _0x5e4ddc(_0x121e44){const _0x3ecafe=_0xa6e8ea(_0x121e44);_0x3ecafe&&_0x3ecafe[_0x572cae([0x61,0x6c,0x67])]==_0x572cae([0x45,0x53,0x32,0x35,0x36])||(_0x116cfd=!0x1);}async function _0x1dd082(_0x29b3ee,_0x3325d0,_0x4632f1){const _0x1cd281=window[_0x572cae([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x572cae([0x66,0x72,0x6f,0x6d])](_0x2abf14(_0x4632f1),_0x26c61a=>_0x26c61a[_0x572cae([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x421f4c=new window[(_0x572cae([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x572cae([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x29b3ee+_0x572cae([0x2e])+_0x3325d0),_0x348cb3=window[_0x572cae([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x572cae([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x348cb3)return;const _0x279b03=await _0x348cb3[_0x572cae([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x572cae([0x6a,0x77,0x6b]),_0x51d6d7,{[_0x572cae([0x6e,0x61,0x6d,0x65])]:_0x572cae([0x45,0x43,0x44,0x53,0x41]),[_0x572cae([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x572cae([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x572cae([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x348cb3[_0x572cae([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x572cae([0x6e,0x61,0x6d,0x65])]:_0x572cae([0x45,0x43,0x44,0x53,0x41]),[_0x572cae([0x68,0x61,0x73,0x68])]:{[_0x572cae([0x6e,0x61,0x6d,0x65])]:_0x572cae([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x279b03,_0x1cd281,_0x421f4c)||(_0x116cfd=!0x1);}}function _0xa6e8ea(_0x49f593){return _0x49f593[_0x572cae([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x572cae([0x65,0x79]))?JSON[_0x572cae([0x70,0x61,0x72,0x73,0x65])](_0x2abf14(_0x49f593)):null;}function _0x2abf14(_0x30b46a){return window[_0x572cae([0x61,0x74,0x6f,0x62])](_0x30b46a[_0x572cae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x572cae([0x2b]))[_0x572cae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x572cae([0x2f])));}function _0x447600(_0x4d9970){let _0x83232d=0x1505;function _0x11ee30(_0x53fb4e){for(let _0x1d351f=0x0;_0x1d351f<_0x53fb4e[_0x572cae([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d351f++){const _0x530d76=_0x53fb4e[_0x572cae([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d351f);_0x83232d=(_0x83232d<<0x5)+_0x83232d+_0x530d76,_0x83232d&=_0x83232d;}}function _0x3c6903(_0x480c0d){Array[_0x572cae([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x480c0d)?_0x480c0d[_0x572cae([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3c6903):_0x480c0d&&typeof _0x480c0d==_0x572cae([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x572cae([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x480c0d)[_0x572cae([0x73,0x6f,0x72,0x74])]()[_0x572cae([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4b59d7,_0x5861ae])=>{_0x11ee30(_0x4b59d7),_0x3c6903(_0x5861ae);}):_0x11ee30(window[_0x572cae([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x480c0d));}return _0x3c6903(_0x4d9970),_0x83232d>>>0x0;}function _0x41962c(_0x3bdd8f){return _0x3bdd8f[_0x572cae([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x572cae([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x572cae([0x30]));}function _0x55fb18(_0x278f3c){return _0x278f3c[_0x572cae([0x73,0x70,0x6c,0x69,0x74])]('')[_0x572cae([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x572cae([0x6a,0x6f,0x69,0x6e])]('');}function _0x2bb386(){}function _0x572cae(_0x356419){const _0x5acfb4=_0x2c0c;return _0x356419[_0x5acfb4(0x112)](_0x1c5f71=>String[_0x5acfb4(0x12b)](_0x1c5f71))[_0x5acfb4(0x11c)]('');}_0xc77ad7(await _0x59512b());}(this);}[_0x2dfcf7(0x14d)](){const _0x3d74e8=_0x2dfcf7,_0x294f21=this[_0x3d74e8(0x153)][_0x3d74e8(0x135)][_0x3d74e8(0x113)];_0x294f21[_0x3d74e8(0x117)](_0x3d74e8(0x10d))&&_0x294f21[_0x3d74e8(0x149)](_0x3d74e8(0x10d),{'allowAttributes':[_0x3d74e8(0x13d)]}),_0x294f21[_0x3d74e8(0x117)](_0x3d74e8(0x14e))&&_0x294f21[_0x3d74e8(0x149)](_0x3d74e8(0x14e),{'allowAttributes':[_0x3d74e8(0x13d)]});}[_0x2dfcf7(0x128)](){const _0x1c30a1=_0x2dfcf7,_0x2481f4=this[_0x1c30a1(0x153)];_0x2481f4[_0x1c30a1(0x13c)][_0x1c30a1(0x12a)](_0x1c30a1(0x114))[_0x1c30a1(0x12e)]({'model':_0x1c30a1(0x13d),'view':_0x1c30a1(0x11f)}),_0x2481f4[_0x1c30a1(0x13c)][_0x1c30a1(0x12a)](_0x1c30a1(0x111))[_0x1c30a1(0x139)]({'model':{'key':_0x1c30a1(0x13d),'value':_0x15fc17=>_0x15fc17[_0x1c30a1(0x120)](_0x1c30a1(0x11f))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3cfe52=_0x2481f4[_0x1c30a1(0x156)][_0x1c30a1(0x11e)](_0x1c30a1(0x10a));_0x3cfe52&&this[_0x1c30a1(0x123)](_0x3cfe52,_0x1c30a1(0x105),(_0x3ef740,[_0x32822a,_0x2dd136])=>{const _0x54e8bc=_0x1c30a1;_0x32822a[_0x54e8bc(0x137)](_0x54e8bc(0x13d),_0x2dd136);});}[_0x2dfcf7(0x13f)](){const _0x45217a=_0x2dfcf7,_0xae3229=this[_0x45217a(0x153)][_0x45217a(0x10e)][_0x45217a(0x11e)](_0x45217a(0x14b))||{},_0xe6e0df=this[_0x45217a(0x153)][_0x45217a(0x10e)][_0x45217a(0x11e)](_0x45217a(0x10f))||'';this[_0x45217a(0x13e)]=_0x400a30(_0x5d1e1e[_0x45217a(0x14c)],_0x45217a(0x119),{..._0xae3229,'pubkey':_0xe6e0df,'ctx-name':_0x45217a(0x147),'sourceList':'','imgOnly':_0x45217a(0x12f),'removeCopyright':_0x45217a(0x12f),'localeName':this[_0x45217a(0x153)][_0x45217a(0x107)][_0x45217a(0x14f)],'externalSourcesEmbedCss':_0x45217a(0x134)}),this[_0x45217a(0x13e)][_0x45217a(0x11a)]=_0x5c1c00=>{const _0x5759f2=_0x45217a;if(_0x5759f2(0x11d)==_0x5c1c00)return _0x5759f2(0x12d);},_0x5d1e1e[_0x45217a(0x14c)][_0x45217a(0x125)][_0x45217a(0x127)](this[_0x45217a(0x13e)]);}[_0x2dfcf7(0x10c)](){const _0x297c5c=_0x2dfcf7;this[_0x297c5c(0x116)]=_0x400a30(_0x5d1e1e[_0x297c5c(0x14c)],_0x297c5c(0x151),{'ctx-name':_0x297c5c(0x147)}),_0x5d1e1e[_0x297c5c(0x14c)][_0x297c5c(0x125)][_0x297c5c(0x127)](this[_0x297c5c(0x116)]);}[_0x2dfcf7(0x157)](){const _0x40539f=_0x2dfcf7,_0xc91cba=this[_0x40539f(0x153)][_0x40539f(0x156)][_0x40539f(0x11e)](_0x40539f(0x144));_0xc91cba&&this[_0x40539f(0x123)](_0xc91cba,_0x40539f(0x13b),()=>{const _0x369e9d=_0x40539f,_0x5a42f5=this[_0x369e9d(0x153)][_0x369e9d(0x135)][_0x369e9d(0x14c)][_0x369e9d(0x143)][_0x369e9d(0x121)]();_0x5a42f5&&_0x5a42f5[_0x369e9d(0x120)](_0x369e9d(0x13d))&&this[_0x369e9d(0x153)][_0x369e9d(0x124)][_0x369e9d(0x142)][_0x369e9d(0x136)](_0x369e9d(0x132),()=>{const _0xd79388=_0x369e9d;_0x3ce622(this[_0xd79388(0x153)],_0x5a42f5);});});const _0xda257c=this[_0x40539f(0x153)][_0x40539f(0x156)][_0x40539f(0x11e)](_0x40539f(0x150));_0xda257c&&this[_0x40539f(0x123)](_0xda257c,_0x40539f(0x13b),()=>{const _0x565f7e=_0x40539f,_0x12ee03=this[_0x565f7e(0x153)][_0x565f7e(0x135)][_0x565f7e(0x14c)][_0x565f7e(0x143)][_0x565f7e(0x121)]();_0x12ee03&&_0x12ee03[_0x565f7e(0x120)](_0x565f7e(0x13d))&&this[_0x565f7e(0x153)][_0x565f7e(0x124)][_0x565f7e(0x142)][_0x565f7e(0x136)](_0x565f7e(0x132),()=>{const _0xcafc1e=_0x565f7e;_0x3ce622(this[_0xcafc1e(0x153)],_0x12ee03);});});}}function _0x51ec(){const _0x294225=['uc-config','iconHrefResolver','5195432NafkHw','join','closeMax','get','data-uc-image-id','getAttribute','getSelectedElement','add','listenTo','editing','body','remove','appendChild','_initConversion','207098RpeDJX','for','fromCharCode','isPremiumPlugin','#uc-icon-arrow-down','attributeToAttribute','true','36mrEEAC','href','render','ctxElement','\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','model','once','removeAttribute','3584346DqvqWy','elementToAttribute','input[uploadcare-file-input]','execute','conversion','uploadcareImageId','_configElement','_initConfig','1SfvMfN','UploadcareEditing','view','selection','insertImage','init','189942XMbDKG','uploader','querySelector','extend','afterInit','uploadcare.uploader','document','_initSchema','imageInline','contentLanguage','uploadcareImageReplace','uc-upload-ctx-provider','isOfficialPlugin','editor','4zoGqGI','requires','commands','_initImageProcessingIndicator','1111420fEZZns','cleanupImage','PictureEditing','locale','4853639kUVFtE','1755810FtUVSo','replaceImageSource','pluginName','_initCtx','imageBlock','config','uploadcare.pubkey','configElement','upcast','map','schema','downcast','uploadcare','_ctxElement','isRegistered','destroy'];_0x51ec=function(){return _0x294225;};return _0x51ec();}
|
|
23
|
+
const _0x4570d4=_0x478d;(function(_0x43935c,_0xd7c5f4){const _0xd04293=_0x478d,_0xbcd97d=_0x43935c();while(!![]){try{const _0x4d7fad=-parseInt(_0xd04293(0x1a5))/0x1+parseInt(_0xd04293(0x1d8))/0x2*(-parseInt(_0xd04293(0x1c6))/0x3)+parseInt(_0xd04293(0x1ca))/0x4+parseInt(_0xd04293(0x1e4))/0x5+parseInt(_0xd04293(0x1a9))/0x6+parseInt(_0xd04293(0x1d4))/0x7*(parseInt(_0xd04293(0x1cb))/0x8)+parseInt(_0xd04293(0x1cc))/0x9*(parseInt(_0xd04293(0x1b5))/0xa);if(_0x4d7fad===_0xd7c5f4)break;else _0xbcd97d['push'](_0xbcd97d['shift']());}catch(_0x3ebdac){_0xbcd97d['push'](_0xbcd97d['shift']());}}}(_0x2ed2,0x74f28));function _0x478d(_0x47c1af,_0x37e942){const _0x2ed21c=_0x2ed2();return _0x478d=function(_0x478d2c,_0x476116){_0x478d2c=_0x478d2c-0x196;let _0x2b6629=_0x2ed21c[_0x478d2c];return _0x2b6629;},_0x478d(_0x47c1af,_0x37e942);}import{Plugin as _0x4f9329}from'ckeditor5/src/core.js';function _0x2ed2(){const _0x1c6f35=['upcast','true','extend','href','destroy','uc-upload-ctx-provider','querySelector','isPremiumPlugin','editing','contentLanguage','uploadcare','uploadcare.uploader','map','_initImageProcessingIndicator','once','_initConfig','591612KDxBDJ','insertImage','input[uploadcare-file-input]','execute','236860BCAPfU','2080WkMwiT','144594jJYWgw','appendChild','getAttribute','config','commands','uploader','elementToAttribute','view','14707WuIKiA','add','_initCtx','get','4jkECXu','closeMax','pluginName','iconHrefResolver','getSelectedElement','for','model','_initConversion','uploadcareImageReplace','\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','remove','isRegistered','2337045qyzUEZ','editor','body','uploadcareImageId','#uc-icon-arrow-down','afterInit','imageInline','attributeToAttribute','_configElement','_ctxElement','isOfficialPlugin','data-uc-image-id','schema','UploadcareEditing','listenTo','init','uploadcare.pubkey','render','join','imageBlock','requires','796975PMeAxa','uc-config','conversion','ctxElement','404022jxzTEr','document','_initSchema','configElement','fromCharCode','PictureEditing','downcast','cleanupImage','removeAttribute','replaceImageSource','locale','selection','330enGlbZ'];_0x2ed2=function(){return _0x1c6f35;};return _0x2ed2();}import{Dialog as _0x478846}from'ckeditor5/src/ui.js';import{createElement as _0x183d06,global as _0x1f934e,uid as _0xb602f2}from'ckeditor5/src/utils.js';import _0x4d34b3 from'./uploadcarecommand.js';import _0x5f3213 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1f9dac}from'./utils/editingutils.js';export default class i extends _0x4f9329{constructor(){const _0x33fd76=_0x478d;super(...arguments),this[_0x33fd76(0x198)]=null,this[_0x33fd76(0x199)]=null;}static get[_0x4570d4(0x1da)](){const _0x4fe40c=_0x4570d4;return _0x4fe40c(0x19d);}static get[_0x4570d4(0x1a4)](){const _0x14eee5=_0x4570d4;return[_0x14eee5(0x1ae),_0x5f3213,_0x478846];}static get[_0x4570d4(0x19a)](){return!0x0;}static get[_0x4570d4(0x1bd)](){return!0x0;}get[_0x4570d4(0x1ac)](){const _0xbf0992=_0x4570d4;return this[_0xbf0992(0x198)];}get[_0x4570d4(0x1a8)](){const _0x5e6c7f=_0x4570d4;return this[_0x5e6c7f(0x199)];}[_0x4570d4(0x19f)](){const _0x56596f=_0x4570d4,_0x163239=this[_0x56596f(0x1e5)];_0x163239[_0x56596f(0x1d0)][_0x56596f(0x1d5)](_0x56596f(0x1c0),new _0x4d34b3(_0x163239));}[_0x4570d4(0x1e9)](){const _0x493bb4=_0x4570d4;this[_0x493bb4(0x1ab)](),this[_0x493bb4(0x1df)](),this[_0x493bb4(0x1c5)](),this[_0x493bb4(0x1d6)](),this[_0x493bb4(0x1c3)](),this[_0x493bb4(0x19e)](this[_0x493bb4(0x1e5)],_0x493bb4(0x1ba),()=>{const _0x38b05b=_0x493bb4;this[_0x38b05b(0x198)]&&(this[_0x38b05b(0x198)][_0x38b05b(0x1e2)](),this[_0x38b05b(0x198)]=null),this[_0x38b05b(0x199)]&&(this[_0x38b05b(0x199)][_0x38b05b(0x1e2)](),this[_0x38b05b(0x199)]=null);const _0x4eba55=_0x1f934e[_0x38b05b(0x1aa)][_0x38b05b(0x1bc)](_0x38b05b(0x1c8));_0x4eba55&&_0x4eba55[_0x38b05b(0x1e2)]();}),async function(_0x48bf38){const _0x281563=_0x46d090([0x4f,0x6e,0x63,0x37,0x64,0x4a,0x55,0x61,0x42,0x59,0x69,0x52,0x33,0x77,0x70,0x4c,0x72,0x4e,0x51,0x4d,0x57,0x35,0x6f,0x36,0x68,0x54,0x5a,0x31,0x4b,0x7a,0x49,0x44,0x74,0x39,0x48,0x32,0x6a,0x76,0x50,0x6b,0x67,0x78,0x45,0x47,0x30,0x79,0x41,0x62,0x71,0x6c,0x34,0x66,0x46,0x56,0x75,0x38,0x65,0x58,0x53,0x6d,0x43,0x73]),_0x2d84e8=0x57a54f48,_0x334972=0x57a211f0^_0x2d84e8,_0x2335c1=window[_0x46d090([0x44,0x61,0x74,0x65])][_0x46d090([0x6e,0x6f,0x77])](),_0x6a54c7=_0x48bf38[_0x46d090([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x52fdf0=new window[(_0x46d090([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17c559=>{_0x6a54c7[_0x46d090([0x6f,0x6e,0x63,0x65])](_0x46d090([0x72,0x65,0x61,0x64,0x79]),_0x17c559);}),_0x4555fa={[_0x46d090([0x6b,0x74,0x79])]:_0x46d090([0x45,0x43]),[_0x46d090([0x75,0x73,0x65])]:_0x46d090([0x73,0x69,0x67]),[_0x46d090([0x63,0x72,0x76])]:_0x46d090([0x50,0x2d,0x32,0x35,0x36]),[_0x46d090([0x78])]:_0x46d090([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]),[_0x46d090([0x79])]:_0x46d090([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]),[_0x46d090([0x61,0x6c,0x67])]:_0x46d090([0x45,0x53,0x32,0x35,0x36])},_0x4460f7=_0x6a54c7[_0x46d090([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x46d090([0x67,0x65,0x74])](_0x46d090([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e9b42(){let _0x43d02c,_0x279475=null,_0x162fe7=null;try{if(_0x4460f7==_0x46d090([0x47,0x50,0x4c]))return _0x46d090([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x43d02c=_0x285654(),!_0x43d02c)return _0x46d090([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x43d02c[_0x46d090([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x162fe7=_0x49d7af(_0x43d02c[_0x46d090([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x43d02c[_0x46d090([0x6a,0x74,0x69])])),await _0x1a26e0()?_0x196db3()?_0x52a8b2()?_0x46d090([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x486d40()?(_0x43d02c[_0x46d090([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46d090([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x279475=_0x20d45c(_0x46d090([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x43d02c[_0x46d090([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46d090([0x74,0x72,0x69,0x61,0x6c])&&(_0x279475=_0x20d45c(_0x46d090([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x44f7bb()):_0x46d090([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x46d090([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x46d090([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5873f3){return _0x46d090([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x52a8b2(){const _0x4b88f4=[_0x46d090([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x46d090([0x74,0x72,0x69,0x61,0x6c])][_0x46d090([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43d02c[_0x46d090([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2335c1/0x3e8:0xe10*_0x334972;return _0x43d02c[_0x46d090([0x65,0x78,0x70])]<_0x4b88f4;}function _0x196db3(){const _0x45df18=_0x43d02c[_0x46d090([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x45df18&&(!!_0x45df18[_0x46d090([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46d090([0x2a]))||!!_0x45df18[_0x46d090([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46d090([0x55,0x50,0x4c,0x43])));}function _0x486d40(){const _0x3fc340=_0x478d,_0x1a462c=_0x43d02c[_0x46d090([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1a462c||0x0==_0x1a462c[_0x46d090([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x284f07}=new URL(window[_0x46d090([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3fc340(0x1b9)]);if(_0x1a462c[_0x46d090([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x284f07))return!0x0;const _0x4224de=_0x284f07[_0x46d090([0x73,0x70,0x6c,0x69,0x74])](_0x46d090([0x2e]));return _0x1a462c[_0x46d090([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x14dc78=>_0x14dc78[_0x46d090([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46d090([0x2a])))[_0x46d090([0x6d,0x61,0x70])](_0x5487b3=>_0x5487b3[_0x46d090([0x73,0x70,0x6c,0x69,0x74])](_0x46d090([0x2e])))[_0x46d090([0x73,0x6f,0x6d,0x65])](_0x1c95eb=>_0x4224de[_0x46d090([0x65,0x76,0x65,0x72,0x79])]((_0xbe22c,_0x5640bf)=>_0x1c95eb[_0x5640bf]===_0xbe22c||_0x1c95eb[_0x5640bf]===_0x46d090([0x2a])));}function _0x44f7bb(){return _0x279475&&_0x162fe7?new window[(_0x46d090([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f6324,_0x3973e9)=>{_0x279475[_0x46d090([0x74,0x68,0x65,0x6e])](_0x1f6324,_0x3973e9),_0x162fe7[_0x46d090([0x74,0x68,0x65,0x6e])](_0x391687=>{_0x391687!=_0x46d090([0x56,0x61,0x6c,0x69,0x64])&&_0x1f6324(_0x391687);},_0x3973e9);}):_0x279475||_0x162fe7||_0x46d090([0x56,0x61,0x6c,0x69,0x64]);}}function _0x49d7af(_0x288440,_0x154a35){return new window[(_0x46d090([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5854e4=>{if(_0x27aeec())return _0x5854e4(_0x46d090([0x56,0x61,0x6c,0x69,0x64]));_0x55fce2(),_0x6a54c7[_0x46d090([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x46d090([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x929051=!0x1;const _0x3ba76b=_0xb602f2();function _0x465a8c(_0x3d7a19){return!!_0x3d7a19&&(typeof _0x3d7a19===_0x46d090([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3d7a19===_0x46d090([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3d7a19[_0x46d090([0x74,0x68,0x65,0x6e])]===_0x46d090([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3d7a19[_0x46d090([0x63,0x61,0x74,0x63,0x68])]===_0x46d090([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4e5309(_0x30933c){_0x56f1dc(_0x30933c)[_0x46d090([0x74,0x68,0x65,0x6e])](_0x191548=>{if(!_0x191548||_0x191548[_0x46d090([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x46d090([0x6f,0x6b]))return _0x46d090([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x59dac8(_0x1f8072(_0x3ba76b+_0x154a35))!=_0x191548[_0x46d090([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x46d090([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x46d090([0x56,0x61,0x6c,0x69,0x64]);})[_0x46d090([0x74,0x68,0x65,0x6e])](_0x2efc9c=>(_0x4b76d9(),_0x2efc9c),()=>{const _0x3f40c2=_0x42d65e();return null==_0x3f40c2?(_0x4b76d9(),_0x46d090([0x56,0x61,0x6c,0x69,0x64])):_0x46d090(_0x2335c1-_0x3f40c2>(0x73a9cb48^_0x2d84e8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x46d090([0x74,0x68,0x65,0x6e])](_0x5854e4)[_0x46d090([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5854e4(_0x46d090([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x51b1d6=0x5793a1c8^_0x2d84e8;function _0x4b76d9(){const _0x1b69c2=_0x46d090([0x6c,0x6c,0x63,0x74,0x2d])+_0x59dac8(_0x1f8072(_0x288440)),_0x110494=_0x4dd30b(_0x59dac8(window[_0x46d090([0x4d,0x61,0x74,0x68])][_0x46d090([0x63,0x65,0x69,0x6c])](_0x2335c1/_0x51b1d6)));window[_0x46d090([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46d090([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b69c2,_0x110494);}function _0x42d65e(){const _0x1e4539=_0x46d090([0x6c,0x6c,0x63,0x74,0x2d])+_0x59dac8(_0x1f8072(_0x288440)),_0x226d85=window[_0x46d090([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46d090([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e4539);return _0x226d85?window[_0x46d090([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4dd30b(_0x226d85),0x10)*_0x51b1d6:null;}function _0x56f1dc(_0x44be2d){return new window[(_0x46d090([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50ef32,_0x5642e4)=>{_0x44be2d[_0x46d090([0x74,0x68,0x65,0x6e])](_0x50ef32,_0x5642e4),window[_0x46d090([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5642e4,0x57a49b88^_0x2d84e8);});}}_0x6a54c7[_0x46d090([0x6f,0x6e])](_0x46d090([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x49aabf,_0x48f4f4)=>{if(_0x48f4f4[0x0]!=_0x288440)return _0x5854e4(_0x46d090([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x48f4f4[0x1]={..._0x48f4f4[0x1],[_0x46d090([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ba76b};},{[_0x46d090([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46d090([0x68,0x69,0x67,0x68])}),_0x6a54c7[_0x46d090([0x6f,0x6e])](_0x46d090([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x43faf3=>{_0x465a8c(_0x43faf3[_0x46d090([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x929051=!0x0,_0x4e5309(_0x43faf3[_0x46d090([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x46d090([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46d090([0x6c,0x6f,0x77])}),_0x52fdf0[_0x46d090([0x74,0x68,0x65,0x6e])](()=>{_0x929051||_0x5854e4(_0x46d090([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x27aeec(){return _0x6a54c7[_0x46d090([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46d090([0x76,0x69,0x65,0x77])][_0x46d090([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x46d090([0x61,0x75,0x74,0x6f]);}function _0x55fce2(){_0x6a54c7[_0x46d090([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46d090([0x76,0x69,0x65,0x77])][_0x46d090([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x46d090([0x61,0x75,0x74,0x6f]);}}function _0x20d45c(_0x34ac82){const _0x507bcf=[new window[(_0x46d090([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a5c14=>setTimeout(_0x3a5c14,0x57ac7184^_0x2d84e8)),_0x52fdf0[_0x46d090([0x74,0x68,0x65,0x6e])](()=>new window[(_0x46d090([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b8517=>{let _0x1460c6=0x0;_0x6a54c7[_0x46d090([0x6d,0x6f,0x64,0x65,0x6c])][_0x46d090([0x6f,0x6e])](_0x46d090([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x338cf7,_0x385299)=>{_0x385299[0x0][_0x46d090([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1460c6++,_0x1460c6==(0x57a54eb0^_0x2d84e8)&&(_0x4b8517(),_0x338cf7[_0x46d090([0x6f,0x66,0x66])]());});}))];return window[_0x46d090([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x46d090([0x72,0x61,0x63,0x65])](_0x507bcf)[_0x46d090([0x74,0x68,0x65,0x6e])](()=>_0x34ac82);}async function _0x11c406(){await _0x52fdf0,_0x6a54c7[_0x46d090([0x6d,0x6f,0x64,0x65,0x6c])][_0x46d090([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1fa316,_0x6a54c7[_0x46d090([0x6d,0x6f,0x64,0x65,0x6c])][_0x46d090([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1fa316,_0x6a54c7[_0x46d090([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x46d090([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2b2ef6(_0x49e89b){const _0x2ae5ca=_0x1b2c0b();_0x6a54c7[_0x2ae5ca]=_0x46d090([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x49e89b,_0x49e89b!=_0x46d090([0x56,0x61,0x6c,0x69,0x64])&&_0x11c406();}function _0x1b2c0b(){const _0x878477=window[_0x46d090([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x46d090([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x46d090([0x6e,0x6f,0x77])]())[_0x46d090([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x46d090([0x2e]),'');let _0x578139=_0x46d090([0x4f]);for(let _0x28ec40=0x0;_0x28ec40<_0x878477[_0x46d090([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x28ec40+=0x2){let _0x56746c=window[_0x46d090([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x878477[_0x46d090([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x28ec40,_0x28ec40+0x2));_0x56746c>=_0x281563[_0x46d090([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x56746c-=_0x281563[_0x46d090([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x578139+=_0x281563[_0x56746c];}return _0x578139;}function _0x285654(){const _0x45e3e3=_0x4460f7[_0x46d090([0x73,0x70,0x6c,0x69,0x74])](_0x46d090([0x2e]));if(0x3!=_0x45e3e3[_0x46d090([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x218282(_0x45e3e3[0x1]);function _0x218282(_0xbf3dff){const _0x2b146d=_0x5ddee8(_0xbf3dff);return _0x2b146d&&_0x3eaeb9()?_0x2b146d:null;function _0x3eaeb9(){const _0x4f8b86=_0x2b146d[_0x46d090([0x6a,0x74,0x69])],_0x537219=window[_0x46d090([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f8b86[_0x46d090([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f8b86[_0x46d090([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f1ae6={..._0x2b146d,[_0x46d090([0x6a,0x74,0x69])]:_0x4f8b86[_0x46d090([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4f8b86[_0x46d090([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f1ae6[_0x46d090([0x76,0x63])],_0x1f8072(_0x2f1ae6)==_0x537219;}}}async function _0x1a26e0(){let _0x4612f6=!0x0;try{const _0x1dba7d=_0x4460f7[_0x46d090([0x73,0x70,0x6c,0x69,0x74])](_0x46d090([0x2e])),[_0x3d765a,_0x1ada3a,_0x3f5ca4]=_0x1dba7d;return _0x3e813b(_0x3d765a),await _0x45adf4(_0x3d765a,_0x1ada3a,_0x3f5ca4),_0x4612f6;}catch(_0x88523d){return!0x1;}function _0x3e813b(_0x33ee74){const _0x3dc755=_0x5ddee8(_0x33ee74);_0x3dc755&&_0x3dc755[_0x46d090([0x61,0x6c,0x67])]==_0x46d090([0x45,0x53,0x32,0x35,0x36])||(_0x4612f6=!0x1);}async function _0x45adf4(_0xb30b40,_0x51df79,_0x4d2062){const _0x42c623=window[_0x46d090([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x46d090([0x66,0x72,0x6f,0x6d])](_0x2fcb8b(_0x4d2062),_0x38455a=>_0x38455a[_0x46d090([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x48f388=new window[(_0x46d090([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x46d090([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xb30b40+_0x46d090([0x2e])+_0x51df79),_0x2ec1cd=window[_0x46d090([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x46d090([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ec1cd)return;const _0x3de090=await _0x2ec1cd[_0x46d090([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x46d090([0x6a,0x77,0x6b]),_0x4555fa,{[_0x46d090([0x6e,0x61,0x6d,0x65])]:_0x46d090([0x45,0x43,0x44,0x53,0x41]),[_0x46d090([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x46d090([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x46d090([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ec1cd[_0x46d090([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x46d090([0x6e,0x61,0x6d,0x65])]:_0x46d090([0x45,0x43,0x44,0x53,0x41]),[_0x46d090([0x68,0x61,0x73,0x68])]:{[_0x46d090([0x6e,0x61,0x6d,0x65])]:_0x46d090([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3de090,_0x42c623,_0x48f388)||(_0x4612f6=!0x1);}}function _0x5ddee8(_0x5672c3){return _0x5672c3[_0x46d090([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x46d090([0x65,0x79]))?JSON[_0x46d090([0x70,0x61,0x72,0x73,0x65])](_0x2fcb8b(_0x5672c3)):null;}function _0x2fcb8b(_0x567bd5){return window[_0x46d090([0x61,0x74,0x6f,0x62])](_0x567bd5[_0x46d090([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x46d090([0x2b]))[_0x46d090([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x46d090([0x2f])));}function _0x1f8072(_0x151d57){let _0x432edf=0x1505;function _0x212fb9(_0x3fb526){for(let _0x4d5ef0=0x0;_0x4d5ef0<_0x3fb526[_0x46d090([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d5ef0++){const _0x46b39d=_0x3fb526[_0x46d090([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4d5ef0);_0x432edf=(_0x432edf<<0x5)+_0x432edf+_0x46b39d,_0x432edf&=_0x432edf;}}function _0x289c0e(_0x581cbd){Array[_0x46d090([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x581cbd)?_0x581cbd[_0x46d090([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x289c0e):_0x581cbd&&typeof _0x581cbd==_0x46d090([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x46d090([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x581cbd)[_0x46d090([0x73,0x6f,0x72,0x74])]()[_0x46d090([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6c8a15,_0x47fa54])=>{_0x212fb9(_0x6c8a15),_0x289c0e(_0x47fa54);}):_0x212fb9(window[_0x46d090([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x581cbd));}return _0x289c0e(_0x151d57),_0x432edf>>>0x0;}function _0x59dac8(_0x4141ae){return _0x4141ae[_0x46d090([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x46d090([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x46d090([0x30]));}function _0x4dd30b(_0x391c0b){return _0x391c0b[_0x46d090([0x73,0x70,0x6c,0x69,0x74])]('')[_0x46d090([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x46d090([0x6a,0x6f,0x69,0x6e])]('');}function _0x1fa316(){}function _0x46d090(_0x1184cd){const _0x139386=_0x478d;return _0x1184cd[_0x139386(0x1c2)](_0x1543d1=>String[_0x139386(0x1ad)](_0x1543d1))[_0x139386(0x1a2)]('');}_0x2b2ef6(await _0x4e9b42());}(this);}[_0x4570d4(0x1ab)](){const _0x29d1c5=_0x4570d4,_0x405ca4=this[_0x29d1c5(0x1e5)][_0x29d1c5(0x1de)][_0x29d1c5(0x19c)];_0x405ca4[_0x29d1c5(0x1e3)](_0x29d1c5(0x1a3))&&_0x405ca4[_0x29d1c5(0x1b8)](_0x29d1c5(0x1a3),{'allowAttributes':[_0x29d1c5(0x1e7)]}),_0x405ca4[_0x29d1c5(0x1e3)](_0x29d1c5(0x196))&&_0x405ca4[_0x29d1c5(0x1b8)](_0x29d1c5(0x196),{'allowAttributes':[_0x29d1c5(0x1e7)]});}[_0x4570d4(0x1df)](){const _0x3a1872=_0x4570d4,_0x26e322=this[_0x3a1872(0x1e5)];_0x26e322[_0x3a1872(0x1a7)][_0x3a1872(0x1dd)](_0x3a1872(0x1af))[_0x3a1872(0x197)]({'model':_0x3a1872(0x1e7),'view':_0x3a1872(0x19b)}),_0x26e322[_0x3a1872(0x1a7)][_0x3a1872(0x1dd)](_0x3a1872(0x1b6))[_0x3a1872(0x1d2)]({'model':{'key':_0x3a1872(0x1e7),'value':_0x25a2d3=>_0x25a2d3[_0x3a1872(0x1ce)](_0x3a1872(0x19b))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x37df32=_0x26e322[_0x3a1872(0x1d0)][_0x3a1872(0x1d7)](_0x3a1872(0x1b2));_0x37df32&&this[_0x3a1872(0x19e)](_0x37df32,_0x3a1872(0x1b0),(_0x336751,[_0x1f772b,_0x1a762c])=>{const _0x48fdd8=_0x3a1872;_0x1f772b[_0x48fdd8(0x1b1)](_0x48fdd8(0x1e7),_0x1a762c);});}[_0x4570d4(0x1c5)](){const _0x316a3e=_0x4570d4,_0x22b068=this[_0x316a3e(0x1e5)][_0x316a3e(0x1cf)][_0x316a3e(0x1d7)](_0x316a3e(0x1c1))||{},_0x1518ed=this[_0x316a3e(0x1e5)][_0x316a3e(0x1cf)][_0x316a3e(0x1d7)](_0x316a3e(0x1a0))||'';this[_0x316a3e(0x198)]=_0x183d06(_0x1f934e[_0x316a3e(0x1aa)],_0x316a3e(0x1a6),{..._0x22b068,'pubkey':_0x1518ed,'ctx-name':_0x316a3e(0x1d1),'sourceList':'','imgOnly':_0x316a3e(0x1b7),'removeCopyright':_0x316a3e(0x1b7),'localeName':this[_0x316a3e(0x1e5)][_0x316a3e(0x1b3)][_0x316a3e(0x1bf)],'externalSourcesEmbedCss':_0x316a3e(0x1e1)}),this[_0x316a3e(0x198)][_0x316a3e(0x1db)]=_0x5b4965=>{const _0x399eb4=_0x316a3e;if(_0x399eb4(0x1d9)==_0x5b4965)return _0x399eb4(0x1e8);},_0x1f934e[_0x316a3e(0x1aa)][_0x316a3e(0x1e6)][_0x316a3e(0x1cd)](this[_0x316a3e(0x198)]);}[_0x4570d4(0x1d6)](){const _0xb12ffb=_0x4570d4;this[_0xb12ffb(0x199)]=_0x183d06(_0x1f934e[_0xb12ffb(0x1aa)],_0xb12ffb(0x1bb),{'ctx-name':_0xb12ffb(0x1d1)}),_0x1f934e[_0xb12ffb(0x1aa)][_0xb12ffb(0x1e6)][_0xb12ffb(0x1cd)](this[_0xb12ffb(0x199)]);}[_0x4570d4(0x1c3)](){const _0x4c6c1c=_0x4570d4,_0x201bce=this[_0x4c6c1c(0x1e5)][_0x4c6c1c(0x1d0)][_0x4c6c1c(0x1d7)](_0x4c6c1c(0x1c7));_0x201bce&&this[_0x4c6c1c(0x19e)](_0x201bce,_0x4c6c1c(0x1c9),()=>{const _0x366fbf=_0x4c6c1c,_0x10f4c3=this[_0x366fbf(0x1e5)][_0x366fbf(0x1de)][_0x366fbf(0x1aa)][_0x366fbf(0x1b4)][_0x366fbf(0x1dc)]();_0x10f4c3&&_0x10f4c3[_0x366fbf(0x1ce)](_0x366fbf(0x1e7))&&this[_0x366fbf(0x1e5)][_0x366fbf(0x1be)][_0x366fbf(0x1d3)][_0x366fbf(0x1c4)](_0x366fbf(0x1a1),()=>{const _0x3f3a76=_0x366fbf;_0x1f9dac(this[_0x3f3a76(0x1e5)],_0x10f4c3);});});const _0x1a71a0=this[_0x4c6c1c(0x1e5)][_0x4c6c1c(0x1d0)][_0x4c6c1c(0x1d7)](_0x4c6c1c(0x1e0));_0x1a71a0&&this[_0x4c6c1c(0x19e)](_0x1a71a0,_0x4c6c1c(0x1c9),()=>{const _0x39e700=_0x4c6c1c,_0x3141c7=this[_0x39e700(0x1e5)][_0x39e700(0x1de)][_0x39e700(0x1aa)][_0x39e700(0x1b4)][_0x39e700(0x1dc)]();_0x3141c7&&_0x3141c7[_0x39e700(0x1ce)](_0x39e700(0x1e7))&&this[_0x39e700(0x1e5)][_0x39e700(0x1be)][_0x39e700(0x1d3)][_0x39e700(0x1c4)](_0x39e700(0x1a1),()=>{const _0x437d1f=_0x39e700;_0x1f9dac(this[_0x437d1f(0x1e5)],_0x3141c7);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x527abf,ObservableMixin as _0x3cd0ba}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2c14b2}from'ckeditor5/src/ui.js';import _0x1c4630 from'./uploadcareimageeditformview.js';import _0x2e9d0a from'../../utils/uploadutils.js';import _0x5723b5 from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x478730,getImageDimension as _0x2c024d}from'../../utils/editingutils.js';import{isAncestor as _0x129d05}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3cd0ba(){constructor(_0x25e12b,_0x59a98c,_0x17233f){super(),this['_editor']=_0x25e12b,this['_dialog']=_0x59a98c,this['_imageElement']=_0x17233f,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 _0x1df26e=this['_imageElement'],_0x358c98=_0x1df26e['getAttribute']('uploadcareImageId'),_0x5b61bf=_0x1df26e['getAttribute']('src');if(_0x358c98)await this['_loadImageInfo'](_0x358c98,_0x5b61bf);else{if(this['_imageCache']['has'](_0x5b61bf)){const _0x48c9bf=this['_imageCache']['get'](_0x5b61bf);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x48c9bf['url'],this['imageDimension']=_0x48c9bf['dimension'],this['imageId']=_0x48c9bf['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x503f88}=this['_editor'],t=_0x503f88['t'],_0x16e480=new _0x1c4630(_0x503f88,this['imageStatus'],this['_attributes']);_0x16e480['bind']('status')['to'](this,'imageStatus'),_0x16e480['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x16e480['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x16e480['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x16e480,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5723b5,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x16e480,'position':_0x2c14b2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x16e480['focus']();},'onHide':()=>{_0x16e480['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x46d896=>!_0x129d05(_0x46d896,_0x16e480['element'])}});}['_loadImageInfo'](_0x17f67f,_0x116825){return _0x2e9d0a['getInfo'](_0x17f67f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xab8229=>{const {width:_0x25ef5b,height:_0x33b234}=_0xab8229['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x116825,this['imageDimension']={'width':_0x25ef5b,'height':_0x33b234},this['imageId']=_0x17f67f;})['catch'](_0x22fc5f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x22fc5f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xbfad11,_0x2e6511){return this['_getImageAsFile'](_0xbfad11)['then'](_0x45d0da=>_0x2e9d0a['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2e6511['signal'],'file':_0x45d0da,'onProgress':_0x6ab60c=>{_0x6ab60c&&_0x6ab60c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x6ab60c['value']));}}))['then'](_0x21505e=>{const {width:_0x252f2b,height:_0x1f2455}=_0x21505e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x21505e['cdnUrl'],this['imageDimension']={'width':_0x252f2b,'height':_0x1f2455},this['imageId']=_0x21505e['uuid'],this['imageUploadProgress']=null;const _0x5dee14=_0xbfad11['getAttribute']('src');this['_imageCache']['set'](_0x5dee14,{'id':_0x21505e['uuid'],'url':_0x21505e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1e5cac=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1e5cac['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x6931bd,_0x2a57dd){_0x6931bd['on']('apply',(_0x2f0fc5,_0x44f81a)=>{this['_replaceImage'](_0x2a57dd,_0x44f81a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x6931bd['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x6931bd['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3763ea,_0x58d80a,_0xb4b50e){const _0x4ebd8a=this['_editor'],{width:_0x1b3140,height:_0x2708fd}=_0x2c024d(_0x58d80a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x275592,imageSources:_0x526f0c}=_0x478730(_0x58d80a,_0x1b3140);_0x4ebd8a['model']['change'](_0x19dcd9=>{if('$graveyard'===_0x3763ea['root']['rootName']){_0x4ebd8a['execute']('insertImage',{'imageType':_0x3763ea['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3763ea['getAttributes']()),'uploadcareImageId':_0xb4b50e,'src':_0x275592,'sources':_0x526f0c,'width':_0x1b3140,'height':_0x2708fd}});const _0x52c701=_0x3763ea['getChildren']();_0x3763ea=_0x4ebd8a['model']['document']['selection']['getSelectedElement']();for(const _0x4b2b30 of _0x52c701)_0x19dcd9['append'](_0x19dcd9['cloneElement'](_0x4b2b30),_0x3763ea);}else _0x19dcd9['setSelection'](_0x3763ea,'on'),_0x4ebd8a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3763ea['getAttributes']()),'uploadcareImageId':_0xb4b50e,'src':_0x275592,'sources':_0x526f0c,'width':_0x1b3140,'height':_0x2708fd},_0x3763ea);_0x19dcd9['setSelection'](_0x3763ea,'on');});}async['_getImageAsFile'](_0x59ad78){const _0x4d25cd=_0x527abf['window'],_0x4283bd=_0x527abf['document']['location']['href'],_0x39d96d=new _0x4d25cd['URL'](_0x59ad78['getAttribute']('src'),_0x4283bd);if('data:'===_0x39d96d['protocol']){const _0x1a3da1=_0x39d96d['href']['split'](','),_0x222e5a=_0x1a3da1[0x0]['match'](/:(.*?);/)[0x1],_0x56ef6f=_0x222e5a['split']('/')[0x1],_0x3cde1f=_0x4d25cd['atob'](_0x1a3da1[_0x1a3da1['length']-0x1]);let _0x5c6538=_0x3cde1f['length'];const _0xa28b91=new _0x4d25cd['Uint8Array'](_0x5c6538);for(;_0x5c6538--;)_0xa28b91[_0x5c6538]=_0x3cde1f['charCodeAt'](_0x5c6538);return new _0x4d25cd['File']([_0xa28b91],'image.'+_0x56ef6f,{'type':_0x222e5a});}const _0x59ecf9=_0x39d96d['href']['split']('/'),_0x28c06b=_0x59ecf9[_0x59ecf9['length']-0x1],_0x160583=_0x28c06b['split']('.')[0x1];return _0x4d25cd['fetch'](_0x39d96d['href'])['then'](_0x128dd0=>_0x128dd0['clone']()['blob']())['then'](_0x2e1630=>new _0x4d25cd['File']([_0x2e1630],_0x28c06b,{'type':'image/'+_0x160583}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x312997,_0x378d70){const _0x19ac8f=_0x2408,_0x4d7ac0=_0x312997();while(!![]){try{const _0x24e7f9=parseInt(_0x19ac8f(0x13c))/0x1*(parseInt(_0x19ac8f(0x142))/0x2)+parseInt(_0x19ac8f(0x143))/0x3+parseInt(_0x19ac8f(0x147))/0x4+-parseInt(_0x19ac8f(0x13e))/0x5+parseInt(_0x19ac8f(0x13f))/0x6*(parseInt(_0x19ac8f(0x14b))/0x7)+-parseInt(_0x19ac8f(0x144))/0x8*(-parseInt(_0x19ac8f(0x13d))/0x9)+parseInt(_0x19ac8f(0x141))/0xa*(-parseInt(_0x19ac8f(0x149))/0xb);if(_0x24e7f9===_0x378d70)break;else _0x4d7ac0['push'](_0x4d7ac0['shift']());}catch(_0x5d4316){_0x4d7ac0['push'](_0x4d7ac0['shift']());}}}(_0x4dd4,0xa33f7));function _0x2408(_0x212395,_0x1137d7){const _0x4dd46c=_0x4dd4();return _0x2408=function(_0x240879,_0x1d3adf){_0x240879=_0x240879-0x13a;let _0x360cce=_0x4dd46c[_0x240879];return _0x360cce;},_0x2408(_0x212395,_0x1137d7);}function _0x4dd4(){const _0x401017=['748719ywxjdJ','62216FyrPgz','bindTemplate','ck-uploadcare-theme','491876POxmHu','uc-light','11nnMXKD','setTemplate','287iIplpc','image-edit','imageSrc','set','1YCVywW','1017HsKLMa','6348515cyZLZo','10950aUqcrR','uc-cloud-image-editor','1971260ltWGYn','1618648iaUcWG'];_0x4dd4=function(){return _0x401017;};return _0x4dd4();}import{View as _0x1f499e}from'ckeditor5/src/ui.js';export default class tt extends _0x1f499e{constructor(_0x3e5cef,_0x5212a3){const _0x586dab=_0x2408;super(_0x3e5cef);const _0x4e0e6e=this[_0x586dab(0x145)];this[_0x586dab(0x13b)](_0x586dab(0x13a),''),this[_0x586dab(0x14a)]({'tag':_0x586dab(0x140),'attributes':{..._0x5212a3,'class':[_0x586dab(0x148),_0x586dab(0x146)],'ctx-name':_0x586dab(0x14c),'cdn-url':_0x4e0e6e['to'](_0x586dab(0x13a))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x5a0093,IconView as et,View as _0x27aab8}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x27aab8{constructor(_0x2eaf50){super(_0x2eaf50);const t=_0x2eaf50['t'];this['set']('errorType',null);const _0x40f6f0=new _0x5a0093(_0x2eaf50);_0x40f6f0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x40f6f0['withText']=!0x0,_0x40f6f0['class']='ck-button-action',_0x40f6f0['on']('execute',()=>{this['fire']('retry');}),_0x40f6f0['bind']('isVisible')['to'](this,'errorType',_0x1e1781=>'NotFound'!==_0x1e1781);const _0x39d38d=new et();_0x39d38d['content']=at,_0x39d38d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x547a85=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':[_0x39d38d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x547a85['to']('errorType',_0x1e1eb8=>t('NotFound'!==_0x1e1eb8?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x40f6f0]},{'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'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{SpinnerView as
|
|
23
|
+
import{SpinnerView as _0x23360c,View as _0x625945}from'ckeditor5/src/ui.js';export default class ta extends _0x625945{constructor(_0x36a0cc){super(_0x36a0cc);const t=_0x36a0cc['t'],_0x4dc380=this['bindTemplate'],_0x3c3771=new _0x23360c();_0x3c3771['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':[_0x3c3771,{'text':_0x4dc380['to']('imageUploadProgress',_0x45561c=>t('Loading\x20image...')+'\x20('+(_0x45561c||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'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1c6e(_0x10d806,_0x3a842b){const _0xe22795=_0xe227();return _0x1c6e=function(_0x1c6ee6,_0x39a42e){_0x1c6ee6=_0x1c6ee6-0x90;let _0xcc8250=_0xe22795[_0x1c6ee6];return _0xcc8250;},_0x1c6e(_0x10d806,_0x3a842b);}const _0x16c9c0=_0x1c6e;(function(_0xbd9db0,_0x43c5ad){const _0x3b3203=_0x1c6e,_0x555a68=_0xbd9db0();while(!![]){try{const _0x16c085=parseInt(_0x3b3203(0xb5))/0x1*(-parseInt(_0x3b3203(0xa7))/0x2)+-parseInt(_0x3b3203(0xbb))/0x3+-parseInt(_0x3b3203(0xbe))/0x4*(parseInt(_0x3b3203(0xad))/0x5)+-parseInt(_0x3b3203(0xa9))/0x6+-parseInt(_0x3b3203(0xa1))/0x7*(-parseInt(_0x3b3203(0xbd))/0x8)+-parseInt(_0x3b3203(0x91))/0x9*(-parseInt(_0x3b3203(0xaa))/0xa)+parseInt(_0x3b3203(0x99))/0xb;if(_0x16c085===_0x43c5ad)break;else _0x555a68['push'](_0x555a68['shift']());}catch(_0x11b10a){_0x555a68['push'](_0x555a68['shift']());}}}(_0xe227,0xe8dd5));import{View as _0x57cfc7}from'ckeditor5/src/ui.js';import _0x3eb532 from'./uploadcareimageeditformloadingview.js';function _0xe227(){const _0x23d810=['cancel','10095784DculnL','104raTeOW','_setView','_addUploadcareImageEditorListeners','filter','_addErrorViewListeners','target','uc-cloud-image-editor','cdnUrl','addMany','getFocusableElement','_errorView','18IoIFJh','set','change:status','_items','_loadingView','render','disconnect','detail','3798234QywsSg','clear','element','div','observe','error','setTemplate','addedNodes','7XXNYLg','retry','status','focus','once','apply','6JcDSlS','uploading','1273764TWxNXM','6251220aWkvcq','_focusableView','ck-uploadcare-form','232910DLtUSG','add','toLowerCase','querySelector','ck-reset_all-excluded','fire','_editingView','_waitForImageEditorComponent','73881hqLNGl','addEventListener','length','ready','createCollection','nodeName','775887BpZypa'];_0xe227=function(){return _0x23d810;};return _0xe227();}import _0x4fee3d from'./uploadcareimageeditformerrorview.js';import _0x470de6 from'./uploadcareimageeditformeditingview.js';import _0x35ba0a from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x35ba0a{constructor(_0x514715,_0x35876a,_0x7c802e){const _0x190f93=_0x1c6e;super(_0x514715),this[_0x190f93(0x94)]=this[_0x190f93(0xb9)](),this[_0x190f93(0x95)]=new _0x3eb532(_0x514715),this[_0x190f93(0x90)]=new _0x4fee3d(_0x514715),this[_0x190f93(0xb3)]=new _0x470de6(_0x514715,_0x7c802e),this[_0x190f93(0xab)]=new _0x57cfc7(_0x514715),this[_0x190f93(0xab)][_0x190f93(0x9f)](this[_0x190f93(0xc7)]()),this[_0x190f93(0x92)](_0x190f93(0xa3),_0x35876a),this[_0x190f93(0x9f)]({'tag':_0x190f93(0x9c),'attributes':{'class':['ck',_0x190f93(0xb1),_0x190f93(0xac)],'tabindex':'-1'},'children':this[_0x190f93(0x94)]}),this[_0x190f93(0xbf)](),this[_0x190f93(0xa5)](_0x190f93(0x96),()=>{const _0x151a82=_0x190f93;this[_0x151a82(0xb4)](this[_0x151a82(0x9b)],_0x2b9311=>{const _0x6d2729=_0x151a82;this[_0x6d2729(0xc0)](_0x2b9311);});}),this['on'](_0x190f93(0x93),()=>{const _0x405ead=_0x190f93;this[_0x405ead(0xbf)]();}),this[_0x190f93(0xc2)]();}[_0x16c9c0(0xa4)](){const _0x453563=_0x16c9c0;this[_0x453563(0x9b)][_0x453563(0xa4)]();}[_0x16c9c0(0xbf)](){const _0x4cce76=_0x16c9c0;switch(this[_0x4cce76(0x94)][_0x4cce76(0x9a)](),this[_0x4cce76(0xa3)]){case _0x4cce76(0xa8):this[_0x4cce76(0x94)][_0x4cce76(0xae)](this[_0x4cce76(0x95)]);break;case _0x4cce76(0x9e):this[_0x4cce76(0x94)][_0x4cce76(0xae)](this[_0x4cce76(0x90)]);break;case _0x4cce76(0xb8):this[_0x4cce76(0x94)][_0x4cce76(0xc6)]([this[_0x4cce76(0xb3)],this[_0x4cce76(0xab)]]);}}[_0x16c9c0(0xb4)](_0x20898b,_0x3e3041){const _0x47afce=_0x16c9c0,_0x3a84a7=_0x47afce(0xc4),_0x4a2a23=_0x20898b[_0x47afce(0xb0)](_0x3a84a7);if(_0x4a2a23)return _0x3e3041(_0x4a2a23);const _0x224e93=new MutationObserver(_0x230dd1=>{const _0x2ae7c9=_0x47afce,_0x3bf1da=_0x230dd1[_0x2ae7c9(0xc1)](_0x143d9d=>_0x143d9d[_0x2ae7c9(0xc3)]===_0x20898b&&_0x143d9d[_0x2ae7c9(0xa0)][_0x2ae7c9(0xb7)]>0x0&&_0x143d9d[_0x2ae7c9(0xa0)][0x0][_0x2ae7c9(0xba)][_0x2ae7c9(0xaf)]()===_0x3a84a7);_0x3bf1da[_0x2ae7c9(0xb7)]&&(_0x224e93[_0x2ae7c9(0x97)](),_0x3e3041(_0x3bf1da[0x0][_0x2ae7c9(0xa0)][0x0]));});_0x224e93[_0x47afce(0x9d)](_0x20898b,{'childList':!0x0,'subtree':!0x0});}[_0x16c9c0(0xc0)](_0x4979aa){const _0x4d9f98=_0x16c9c0;_0x4979aa[_0x4d9f98(0xb6)](_0x4d9f98(0xa6),_0x42cceb=>{const _0x50b3bb=_0x4d9f98;this[_0x50b3bb(0xb2)](_0x50b3bb(0xa6),{'imageSrc':_0x42cceb[_0x50b3bb(0x98)][_0x50b3bb(0xc5)]});}),_0x4979aa[_0x4d9f98(0xb6)](_0x4d9f98(0xbc),()=>{const _0x4a97c3=_0x4d9f98;this[_0x4a97c3(0xb2)](_0x4a97c3(0xbc));});}[_0x16c9c0(0xc2)](){const _0x295eb3=_0x16c9c0;this[_0x295eb3(0x90)]['on'](_0x295eb3(0xa2),()=>{const _0xf2396=_0x295eb3;this[_0xf2396(0xb2)](_0xf2396(0xa2));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x114a15=_0x48b9;(function(_0x4a4038,_0x20b76e){const _0x19acd9=_0x48b9,_0x527cd7=_0x4a4038();while(!![]){try{const _0x28215d=parseInt(_0x19acd9(0x149))/0x1*(-parseInt(_0x19acd9(0x12e))/0x2)+parseInt(_0x19acd9(0x139))/0x3+parseInt(_0x19acd9(0x12f))/0x4+parseInt(_0x19acd9(0x136))/0x5+-parseInt(_0x19acd9(0x13a))/0x6+-parseInt(_0x19acd9(0x13e))/0x7+-parseInt(_0x19acd9(0x144))/0x8*(-parseInt(_0x19acd9(0x12d))/0x9);if(_0x28215d===_0x20b76e)break;else _0x527cd7['push'](_0x527cd7['shift']());}catch(_0x48d3e7){_0x527cd7['push'](_0x527cd7['shift']());}}}(_0x3ae2,0xf2084));function _0x3ae2(){const _0x549da3=['plugins','isActive','_isEditable','bind','8soVDit','imageBlock','getSelectedElement','editor','requires','5lIpmOA','execute','imageEditController','16372602ocoTkG','587474FeIkbj','7270668dqJiMd','config','model','imageInline','unbind','document','uploadcare.allowExternalImagesEditing','6276755XZfeWe','get','selection','2483517ZvZgfY','10726920roGtzf','set','element','refresh','10305162NByjyD','isEnabled'];_0x3ae2=function(){return _0x549da3;};return _0x3ae2();}import{Command as _0x1796dd}from'ckeditor5/src/core.js';import{Dialog as _0x38cf82}from'ckeditor5/src/ui.js';import _0x3065b9 from'./ui/uploadcareimageeditcontroller.js';function _0x48b9(_0x435c9a,_0x5e3c2f){const _0x3ae234=_0x3ae2();return _0x48b9=function(_0x48b9e9,_0x4298e1){_0x48b9e9=_0x48b9e9-0x12d;let _0x19e370=_0x3ae234[_0x48b9e9];return _0x19e370;},_0x48b9(_0x435c9a,_0x5e3c2f);}import{createEditabilityChecker as _0x5eb5d2}from'../utils/editingutils.js';export default class J extends _0x1796dd{static get[_0x114a15(0x148)](){return[_0x38cf82];}constructor(_0xe4c95e){const _0x4135f7=_0x114a15;super(_0xe4c95e),this[_0x4135f7(0x14b)]=void 0x0,this[_0x4135f7(0x142)]=_0x5eb5d2(_0xe4c95e[_0x4135f7(0x130)][_0x4135f7(0x137)](_0x4135f7(0x135))||[]),this[_0x4135f7(0x13b)]({'isActive':!0x1});}[_0x114a15(0x13d)](){const _0x110e04=_0x114a15,_0x459139=this[_0x110e04(0x147)][_0x110e04(0x131)][_0x110e04(0x134)][_0x110e04(0x138)][_0x110e04(0x146)]();this[_0x110e04(0x13f)]=this[_0x110e04(0x142)](_0x459139);}[_0x114a15(0x14a)](){const _0x41d854=_0x114a15;this[_0x41d854(0x14b)]&&(this[_0x41d854(0x133)](_0x41d854(0x141)),this[_0x41d854(0x14b)]=void 0x0);const _0x51c9e5=this[_0x41d854(0x147)][_0x41d854(0x131)][_0x41d854(0x134)][_0x41d854(0x138)][_0x41d854(0x146)]();_0x51c9e5&&(_0x51c9e5['is'](_0x41d854(0x13c),_0x41d854(0x145))||_0x51c9e5['is'](_0x41d854(0x13c),_0x41d854(0x132)))&&(this[_0x41d854(0x14b)]=new _0x3065b9(this[_0x41d854(0x147)],this[_0x41d854(0x147)][_0x41d854(0x140)][_0x41d854(0x137)](_0x38cf82),_0x51c9e5),this[_0x41d854(0x143)](_0x41d854(0x141))['to'](this[_0x41d854(0x14b)],_0x41d854(0x141)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x7f92(){const _0x23ac66=['pluginName','786335PUtLVf','isOfficialPlugin','uploadcareImageReplace','30494950JomgHq','963853KRUEYT','isPremiumPlugin','2387147ekiTcY','24cYvjtO','commands','UploadcareImageEditEditing','ImageEditing','56AaSQff','ImageUtils','1407528HPdwvV','init','add','uploadcareImageEdit','1719558BJZROZ','39UfpFQa','16346LrCBWv','requires'];_0x7f92=function(){return _0x23ac66;};return _0x7f92();}const _0x2b7b23=_0x246f;(function(_0x5d451c,_0x2b2ba8){const _0x1a419d=_0x246f,_0x95e8fc=_0x5d451c();while(!![]){try{const _0x1c8904=parseInt(_0x1a419d(0x154))/0x1+parseInt(_0x1a419d(0x163))/0x2*(-parseInt(_0x1a419d(0x162))/0x3)+-parseInt(_0x1a419d(0x15d))/0x4+-parseInt(_0x1a419d(0x166))/0x5+parseInt(_0x1a419d(0x157))/0x6*(-parseInt(_0x1a419d(0x156))/0x7)+-parseInt(_0x1a419d(0x15b))/0x8*(parseInt(_0x1a419d(0x161))/0x9)+parseInt(_0x1a419d(0x153))/0xa;if(_0x1c8904===_0x2b2ba8)break;else _0x95e8fc['push'](_0x95e8fc['shift']());}catch(_0x379d38){_0x95e8fc['push'](_0x95e8fc['shift']());}}}(_0x7f92,0xaa070));import{Plugin as _0x42d367}from'ckeditor5/src/core.js';import{Notification as _0x539683}from'ckeditor5/src/ui.js';import _0x5a0860 from'./uploadcareimageeditcommand.js';function _0x246f(_0x14650a,_0xcbf130){const _0x7f9296=_0x7f92();return _0x246f=function(_0x246f26,_0x3bfff4){_0x246f26=_0x246f26-0x151;let _0x404206=_0x7f9296[_0x246f26];return _0x404206;},_0x246f(_0x14650a,_0xcbf130);}import _0x31cc87 from'./uploadcareimagereplacecommand.js';import _0x41ca16 from'../uploadcareediting.js';export default class m extends _0x42d367{static get[_0x2b7b23(0x165)](){const _0x3b367b=_0x2b7b23;return _0x3b367b(0x159);}static get[_0x2b7b23(0x164)](){const _0x367634=_0x2b7b23;return[_0x41ca16,_0x539683,_0x367634(0x15c),_0x367634(0x15a)];}static get[_0x2b7b23(0x151)](){return!0x0;}static get[_0x2b7b23(0x155)](){return!0x0;}[_0x2b7b23(0x15e)](){const _0x9c9293=_0x2b7b23,{editor:_0x2ee817}=this;_0x2ee817[_0x9c9293(0x158)][_0x9c9293(0x15f)](_0x9c9293(0x160),new _0x5a0860(_0x2ee817)),_0x2ee817[_0x9c9293(0x158)][_0x9c9293(0x15f)](_0x9c9293(0x152),new _0x31cc87(_0x2ee817));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x134af7}from'ckeditor5/src/core.js';import{ButtonView as _0x4df693}from'ckeditor5/src/ui.js';import{createElement as _0x413afb}from'ckeditor5/src/utils.js';import _0x4e29d8 from'../../theme/icons/uploadcare-image-edit.svg';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class g extends _0x134af7{constructor(){super(...arguments),this['_imageCache']=new Map();}static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x580fb6=this['editor'];_0x580fb6['ui']['componentFactory']['add']('uploadcareImageEdit',_0x469f2f=>{const _0x2760fd=_0x580fb6['commands']['get']('uploadcareImageEdit'),_0x4348d0=new _0x4df693(_0x469f2f),t=_0x469f2f['t'];return _0x4348d0['set']({'icon':_0x4e29d8,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4348d0['bind']('isEnabled')['to'](_0x2760fd),_0x4348d0['bind']('isOn')['to'](_0x2760fd,'isActive'),this['listenTo'](_0x4348d0,'execute',()=>{_0x580fb6['execute']('uploadcareImageEdit'),_0x580fb6['editing']['view']['focus']();}),_0x4348d0;}),this['_initConfig']();}['_initConfig'](){const _0x19bb99=_0x413afb(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x19bb99),this['listenTo'](this['editor'],'destroy',()=>{_0x19bb99['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x177480=_0x4be6;(function(_0x28a100,_0x15dfdb){const _0x180fdf=_0x4be6,_0x415313=_0x28a100();while(!![]){try{const _0x536861=parseInt(_0x180fdf(0xbf))/0x1+parseInt(_0x180fdf(0xb1))/0x2*(-parseInt(_0x180fdf(0xb6))/0x3)+-parseInt(_0x180fdf(0xbc))/0x4+-parseInt(_0x180fdf(0xac))/0x5+-parseInt(_0x180fdf(0xbe))/0x6+parseInt(_0x180fdf(0xc1))/0x7+parseInt(_0x180fdf(0xae))/0x8;if(_0x536861===_0x15dfdb)break;else _0x415313['push'](_0x415313['shift']());}catch(_0x1f2b9b){_0x415313['push'](_0x415313['shift']());}}}(_0x466a,0x96e28));function _0x4be6(_0x136a2f,_0x42892b){const _0x466a4d=_0x466a();return _0x4be6=function(_0x4be6a2,_0x18a33c){_0x4be6a2=_0x4be6a2-0xab;let _0x5672c3=_0x466a4d[_0x4be6a2];return _0x5672c3;},_0x4be6(_0x136a2f,_0x42892b);}function _0x466a(){const _0x10cd14=['element','getSelectedElement','3873476WsBWzh','document','7244004ARZgVW','1199539OVYEjg','sizes','2383731dHhqpv','refresh','isEnabled','1721255LUuIzH','setAttributes','17159584OTmsGj','selection','imageBlock','4dzBQrb','imageInline','srcset','editor','change','820563YjqSKE','model','removeAttribute','execute'];_0x466a=function(){return _0x10cd14;};return _0x466a();}import{Command as _0x52b25a}from'ckeditor5/src/core.js';export default class O extends _0x52b25a{[_0x177480(0xc2)](){const _0x1a7782=_0x177480,_0x577c4e=this[_0x1a7782(0xb4)][_0x1a7782(0xb7)][_0x1a7782(0xbd)][_0x1a7782(0xaf)][_0x1a7782(0xbb)]();this[_0x1a7782(0xab)]=Boolean(_0x577c4e&&(_0x577c4e['is'](_0x1a7782(0xba),_0x1a7782(0xb0))||_0x577c4e['is'](_0x1a7782(0xba),_0x1a7782(0xb2))));}[_0x177480(0xb9)](_0xf791a1){const _0xdf64bd=_0x177480,_0x20b20c=this[_0xdf64bd(0xb4)][_0xdf64bd(0xb7)][_0xdf64bd(0xbd)][_0xdf64bd(0xaf)][_0xdf64bd(0xbb)]();this[_0xdf64bd(0xb4)][_0xdf64bd(0xb7)][_0xdf64bd(0xb5)](_0x4a34fc=>{const _0x449697=_0xdf64bd;_0x4a34fc[_0x449697(0xad)](_0xf791a1,_0x20b20c),_0x4a34fc[_0x449697(0xb8)](_0x449697(0xb3),_0x20b20c),_0x4a34fc[_0x449697(0xb8)](_0x449697(0xc0),_0x20b20c);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1c4411=_0x2cae;function _0x2cae(_0xaba877,_0x26aa10){var _0x41b7d2=_0x41b7();return _0x2cae=function(_0x2caed1,_0x53eb49){_0x2caed1=_0x2caed1-0x14e;var _0x21905a=_0x41b7d2[_0x2caed1];return _0x21905a;},_0x2cae(_0xaba877,_0x26aa10);}(function(_0x35d6e7,_0x248d01){var _0x55302a=_0x2cae,_0x168e65=_0x35d6e7();while(!![]){try{var _0x340811=-parseInt(_0x55302a(0x155))/0x1*(parseInt(_0x55302a(0x15b))/0x2)+-parseInt(_0x55302a(0x159))/0x3+parseInt(_0x55302a(0x15d))/0x4*(-parseInt(_0x55302a(0x150))/0x5)+-parseInt(_0x55302a(0x153))/0x6+-parseInt(_0x55302a(0x151))/0x7*(parseInt(_0x55302a(0x156))/0x8)+-parseInt(_0x55302a(0x15e))/0x9*(parseInt(_0x55302a(0x158))/0xa)+-parseInt(_0x55302a(0x15a))/0xb*(-parseInt(_0x55302a(0x15c))/0xc);if(_0x340811===_0x248d01)break;else _0x168e65['push'](_0x168e65['shift']());}catch(_0x14405f){_0x168e65['push'](_0x168e65['shift']());}}}(_0x41b7,0x58ce1));import{Plugin as _0x2123fe}from'ckeditor5/src/core.js';import _0xdcad4f from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x524925 from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x41b7(){var _0x3d2af7=['21428KypHjD','45VEizce','UploadcareImageEdit','isPremiumPlugin','130IYncfe','4493167clgrSK','isOfficialPlugin','4343862tkfimD','pluginName','59808tJTXHq','8VpCcVo','requires','1245310zIhyUm','964119RkakoX','11KVMNMj','12ADINGd','38061132PCgboO'];_0x41b7=function(){return _0x3d2af7;};return _0x41b7();}export default class j extends _0x2123fe{static get[_0x1c4411(0x154)](){var _0x54f9d9=_0x1c4411;return _0x54f9d9(0x14e);}static get[_0x1c4411(0x157)](){return[_0xdcad4f,_0x524925];}static get[_0x1c4411(0x152)](){return!0x0;}static get[_0x1c4411(0x14f)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a0a94=_0x41e6;(function(_0x39d788,_0x42be91){const _0x3f3406=_0x41e6,_0x476309=_0x39d788();while(!![]){try{const _0x4be3cc=-parseInt(_0x3f3406(0x1fa))/0x1*(parseInt(_0x3f3406(0x1e3))/0x2)+parseInt(_0x3f3406(0x1c7))/0x3*(-parseInt(_0x3f3406(0x1fd))/0x4)+parseInt(_0x3f3406(0x1c8))/0x5+parseInt(_0x3f3406(0x1d4))/0x6+-parseInt(_0x3f3406(0x1cf))/0x7+-parseInt(_0x3f3406(0x1e6))/0x8*(-parseInt(_0x3f3406(0x1d2))/0x9)+parseInt(_0x3f3406(0x1f9))/0xa;if(_0x4be3cc===_0x42be91)break;else _0x476309['push'](_0x476309['shift']());}catch(_0x46283b){_0x476309['push'](_0x476309['shift']());}}}(_0x13b1,0x665d4));import{Plugin as _0x22cc1c,icons as _0x4f7da6}from'ckeditor5/src/core.js';import{ButtonView as _0x2f4ec5,MenuBarMenuListItemButtonView as _0x58bb5c}from'ckeditor5/src/ui.js';import _0x10df10 from'../theme/icons/dropbox.svg';import _0xcc2458 from'../theme/icons/facebook.svg';import _0x44a49c from'../theme/icons/google-drive.svg';import _0x2bdf40 from'../theme/icons/google-photos.svg';import _0x1fb860 from'../theme/icons/link.svg';import _0x2e8d1e from'../theme/icons/onedrive.svg';import{UploadcareSource as _0x867e85}from'./uploadcareconfig.js';import{getTranslation as _0x4114a8}from'./utils/common-translations.js';function _0x41e6(_0x386d3d,_0x2b5bd6){const _0x13b192=_0x13b1();return _0x41e6=function(_0x41e635,_0x56e555){_0x41e635=_0x41e635-0x1c7;let _0x448c73=_0x13b192[_0x41e635];return _0x448c73;},_0x41e6(_0x386d3d,_0x2b5bd6);}import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x13b1(){const _0x1fcc6f=['3292212HFCXug','uploadcareLicenseKeyValid','shortText','isOfficialPlugin','uploadcare.uploader.sourceList','uploadcareLicenseKeyUsageLimit','Local','afterInit','invalid','upload','get','reduce','uploadcareLicenseKeyNotAllowed','UploadcareUI','Facebook','28EjbVdU','_createToolbarButton','icon','48odeohE','Uploadcare','type','uploadcare','uploadcareLicenseKeyDomainLimit','registerIntegration','assetManager','imageUpload','entries','GPhotos','forEach','_createButton','text','_createDropdownButtons','_createMenuBarButtons','URL','execute','domainLimit','_getIntegrationKey','5470380hOzszz','45448VTWUDm','plugins','destroy','1116868xczXQz','isPremiumPlugin','featureNotAllowed','Dropbox','evaluationLimit','locale','GDrive','uploadcareLicenseKeyExpired','isImageSelected','uploadcareLicenseKeyEvaluationLimit','licenseKey','label','OneDrive','Replace','ImageInsertUI','Insert','editor','commands','pluginName','_showLicenseError','isEnabled','_licenseKeyCheckInterval','bind','has','usageLimit','expired','uploadcareLicenseKeyTrialLimit','push','6osgmyr','2281850dYwVhI','map','config','init','url','withText','uploadcareLicenseKeyInvalid','5427100LHAOTt','tooltip','_normalizeConfigSourceList','1255770QPRFqc','trialLimit'];_0x13b1=function(){return _0x1fcc6f;};return _0x13b1();}import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x22cc1c{static get[_0x2a0a94(0x20f)](){const _0x918c6f=_0x2a0a94;return _0x918c6f(0x1e1);}static get[_0x2a0a94(0x1d7)](){return!0x0;}static get[_0x2a0a94(0x1fe)](){return!0x0;}[_0x2a0a94(0x1cb)](){const _0x490664=_0x2a0a94;this[_0x490664(0x207)]=this[_0x490664(0x20d)][_0x490664(0x1ca)][_0x490664(0x1de)](_0x490664(0x207));const _0x436c6d=this[_0x490664(0x20d)];this[_0x490664(0x212)]=setInterval(()=>{const _0x59998f=_0x490664;let _0x3ea4f1;for(const _0x3ee1fb in _0x436c6d){const _0xa3e6ac=_0x3ee1fb,_0x86eba6=_0x436c6d[_0xa3e6ac];if(_0x59998f(0x1d5)==_0x86eba6||_0x59998f(0x1ce)==_0x86eba6||_0x59998f(0x204)==_0x86eba6||_0x59998f(0x1ea)==_0x86eba6||_0x59998f(0x1e0)==_0x86eba6||_0x59998f(0x206)==_0x86eba6||_0x59998f(0x217)==_0x86eba6||_0x59998f(0x1d9)==_0x86eba6){delete _0x436c6d[_0xa3e6ac],_0x3ea4f1=_0x86eba6,clearInterval(this[_0x59998f(0x212)]),this[_0x59998f(0x212)]=void 0x0;break;}}_0x59998f(0x1ce)==_0x3ea4f1&&_0x436c6d[_0x59998f(0x210)](_0x59998f(0x1dc)),_0x59998f(0x204)==_0x3ea4f1&&_0x436c6d[_0x59998f(0x210)](_0x59998f(0x216)),_0x59998f(0x1ea)==_0x3ea4f1&&_0x436c6d[_0x59998f(0x210)](_0x59998f(0x1f7)),_0x59998f(0x1e0)==_0x3ea4f1&&_0x436c6d[_0x59998f(0x210)](_0x59998f(0x1ff),_0x59998f(0x1e7)),_0x59998f(0x206)==_0x3ea4f1&&_0x436c6d[_0x59998f(0x210)](_0x59998f(0x201)),_0x59998f(0x217)==_0x3ea4f1&&_0x436c6d[_0x59998f(0x210)](_0x59998f(0x1d3)),_0x59998f(0x1d9)==_0x3ea4f1&&_0x436c6d[_0x59998f(0x210)](_0x59998f(0x215));},0x3e8);}[_0x2a0a94(0x1db)](){const _0x15ec1f=_0x2a0a94,{editor:_0x2c31d0}=this,_0x50a729=_0x2c31d0[_0x15ec1f(0x20e)][_0x15ec1f(0x1de)](_0x15ec1f(0x1e9));if(!_0x50a729)return;const _0xdd2f27=this[_0x15ec1f(0x1d1)](_0x2c31d0[_0x15ec1f(0x1ca)][_0x15ec1f(0x1de)](_0x15ec1f(0x1d8)))[_0x15ec1f(0x1df)]((_0x5758da,_0x506eaa)=>{const _0x390e2f=_0x15ec1f,_0x3cae23=this[_0x390e2f(0x1f8)](_0x506eaa[_0x390e2f(0x1e8)]);return _0x5758da[_0x3cae23]||(_0x5758da[_0x3cae23]=[]),_0x5758da[_0x3cae23][_0x390e2f(0x218)](_0x506eaa),_0x5758da;},{});_0x2c31d0[_0x15ec1f(0x1fb)][_0x15ec1f(0x214)](_0x15ec1f(0x20b))&&_0x2c31d0[_0x15ec1f(0x20e)][_0x15ec1f(0x1de)](_0x15ec1f(0x1e9))&&Object[_0x15ec1f(0x1ee)](_0xdd2f27)[_0x15ec1f(0x1f0)](([_0x5e8e7f,_0x3ce033])=>{const _0x292399=_0x15ec1f;_0x2c31d0[_0x292399(0x1fb)][_0x292399(0x1de)](_0x292399(0x20b))[_0x292399(0x1eb)]({'name':_0x5e8e7f,'observable':()=>_0x50a729,'buttonViewCreator':()=>this[_0x292399(0x1e4)](_0x3ce033),'formViewCreator':()=>this[_0x292399(0x1f3)](_0x3ce033),'menuBarButtonViewCreator':()=>this[_0x292399(0x1f4)](_0x3ce033),'override':_0x292399(0x1ec)!==_0x5e8e7f});});}[_0x2a0a94(0x1fc)](){const _0x2a49ed=_0x2a0a94;super[_0x2a49ed(0x1fc)](),this[_0x2a49ed(0x212)]&&clearInterval(this[_0x2a49ed(0x212)]);}[_0x2a0a94(0x1d1)](_0xc45ff5){const _0xf05025=_0x2a0a94,{locale:_0xe99644}=this[_0xf05025(0x20d)];return _0xc45ff5[_0xf05025(0x1c9)](_0x480b68=>{const _0x20d905=_0xf05025,_0x5c433e=_0x4114a8(_0xe99644,_0x480b68,_0x20d905(0x20c));switch(_0x480b68){case _0x867e85[_0x20d905(0x1da)]:return{'icon':_0x4f7da6[_0x20d905(0x1ed)],'type':_0x867e85[_0x20d905(0x1da)],..._0x5c433e};case _0x867e85[_0x20d905(0x1f5)]:return{'icon':_0x1fb860,'type':_0x867e85[_0x20d905(0x1f5)],..._0x5c433e};case _0x867e85[_0x20d905(0x200)]:return{'icon':_0x10df10,'type':_0x867e85[_0x20d905(0x200)],..._0x5c433e};case _0x867e85[_0x20d905(0x1e2)]:return{'icon':_0xcc2458,'type':_0x867e85[_0x20d905(0x1e2)],..._0x5c433e};case _0x867e85[_0x20d905(0x203)]:return{'icon':_0x44a49c,'type':_0x867e85[_0x20d905(0x203)],..._0x5c433e};case _0x867e85[_0x20d905(0x1ef)]:return{'icon':_0x2bdf40,'type':_0x867e85[_0x20d905(0x1ef)],..._0x5c433e};case _0x867e85[_0x20d905(0x209)]:return{'icon':_0x2e8d1e,'type':_0x867e85[_0x20d905(0x209)],..._0x5c433e};}});}[_0x2a0a94(0x1f8)](_0x44167f){const _0x4be345=_0x2a0a94;switch(_0x44167f){case _0x867e85[_0x4be345(0x1da)]:return _0x4be345(0x1dd);case _0x867e85[_0x4be345(0x1f5)]:return _0x4be345(0x1cc);default:return _0x4be345(0x1ec);}}[_0x2a0a94(0x1f1)](_0x405e41,_0x3597c5){const _0x608117=_0x2a0a94,_0xf0ab06=this[_0x608117(0x20d)],_0x17e38d=new _0x405e41(_0xf0ab06[_0x608117(0x202)]),_0x43c74c=_0xf0ab06[_0x608117(0x20e)][_0x608117(0x1de)](_0x608117(0x1e9));return _0x17e38d[_0x608117(0x213)](_0x608117(0x211))['to'](_0x43c74c),_0x17e38d['on'](_0x608117(0x1f6),()=>{const _0x5ec6d7=_0x608117;_0x43c74c[_0x5ec6d7(0x1f6)](_0x3597c5);}),_0x17e38d;}[_0x2a0a94(0x1e4)](_0x2e721c){const _0x40d7d5=_0x2a0a94,{locale:_0xb7a942}=this[_0x40d7d5(0x20d)],_0x5e41f8=this[_0x40d7d5(0x20d)][_0x40d7d5(0x1fb)][_0x40d7d5(0x1de)](_0x40d7d5(0x20b)),_0xad48f6=_0x2e721c[0x0],_0x365165=this[_0x40d7d5(0x1f1)](_0x2f4ec5,_0xad48f6[_0x40d7d5(0x1e8)]);return _0x365165[_0x40d7d5(0x1e5)]=_0xad48f6[_0x40d7d5(0x1e5)],_0x365165[_0x40d7d5(0x213)](_0x40d7d5(0x208))['to'](_0x5e41f8,_0x40d7d5(0x205),_0x30071c=>_0x4114a8(_0xb7a942,_0xad48f6[_0x40d7d5(0x1e8)],_0x30071c?_0x40d7d5(0x20a):_0x40d7d5(0x20c))[_0x40d7d5(0x1f2)]),_0x365165[_0x40d7d5(0x1d0)]=!0x0,_0x365165;}[_0x2a0a94(0x1f3)](_0x3db973){const _0x43675b=_0x2a0a94,{locale:_0x4edfbd}=this[_0x43675b(0x20d)],_0xd7bc8f=this[_0x43675b(0x20d)][_0x43675b(0x1fb)][_0x43675b(0x1de)](_0x43675b(0x20b));return _0x3db973[_0x43675b(0x1c9)](_0x54f158=>{const _0x141228=_0x43675b,_0x529725=this[_0x141228(0x1f1)](_0x2f4ec5,_0x54f158[_0x141228(0x1e8)]);return _0x529725[_0x141228(0x1cd)]=!0x0,_0x529725[_0x141228(0x1e5)]=_0x54f158[_0x141228(0x1e5)],_0x529725[_0x141228(0x213)](_0x141228(0x208))['to'](_0xd7bc8f,_0x141228(0x205),_0x408642=>_0x4114a8(_0x4edfbd,_0x54f158[_0x141228(0x1e8)],_0x408642?_0x141228(0x20a):_0x141228(0x20c))[_0x141228(0x1f2)]),_0x529725;});}[_0x2a0a94(0x1f4)](_0x17bbaa){const _0x7a5dff=_0x2a0a94;return _0x17bbaa[_0x7a5dff(0x1c9)](_0x62b201=>{const _0x2ad7f5=_0x7a5dff,_0x7f3ed7=this[_0x2ad7f5(0x1f1)](_0x58bb5c,_0x62b201[_0x2ad7f5(0x1e8)]);return _0x7f3ed7[_0x2ad7f5(0x1e5)]=_0x62b201[_0x2ad7f5(0x1e5)],_0x7f3ed7[_0x2ad7f5(0x208)]=_0x62b201[_0x2ad7f5(0x1d6)],_0x7f3ed7;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3f24d6}from'ckeditor5/src/core.js';import{FileRepository as _0x31a14a}from'ckeditor5/src/upload.js';import _0x47b144 from'./uploadcareediting.js';import _0x3d738f from'./utils/uploadutils.js';import{getImageUrls as _0x36ff8b}from'./utils/editingutils.js';export default class f extends _0x3f24d6{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x31a14a,_0x47b144];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x42c6a2=this['editor'];if(!!!_0x42c6a2['config']['get']('uploadcare'))return;_0x42c6a2['plugins']['get'](_0x31a14a)['createUploadAdapter']=_0x44a060=>new E(_0x44a060,_0x42c6a2),_0x42c6a2['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x29ec1d,{imageElement:_0x139f6d,data:_0x375615})=>{_0x42c6a2['model']['change'](_0x10859c=>{_0x10859c['setAttribute']('uploadcareImageId',_0x375615['uploadcareImageId'],_0x139f6d);});});}}class E{constructor(_0x38a657,_0x2d7c63){this['loader']=_0x38a657,this['editor']=_0x2d7c63,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x34116a=this['editor']['config']['get']('uploadcare.pubkey'),_0x5a6d09=await this['loader']['file'];return _0x3d738f['upload']({'file':_0x5a6d09,'publicKey':_0x34116a,'signal':this['controller']['signal'],'onProgress':_0x18f342=>{_0x18f342&&_0x18f342['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x18f342['value']);}})['then'](async _0x4b7e33=>{const {imageFallbackUrl:_0x3b47ff,imageSources:_0x10a91c}=_0x36ff8b(_0x4b7e33['cdnUrl'],_0x4b7e33['imageInfo']['width']);return{'uploadcareImageId':_0x4b7e33['uuid'],'default':_0x3b47ff,'sources':_0x10a91c};})['catch'](()=>{const _0x330a56=t('Cannot\x20upload\x20file:')+('\x20'+_0x5a6d09['name']+'.');return Promise['reject'](_0x330a56);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x45a20a}from'../uploadcareconfig.js';export function getTranslation(_0x5e34a9,_0x1a7a0a,_0x3b1858){const t=_0x5e34a9['t'],_0x196561=_0x5e34a9['t'];switch(_0x1a7a0a){case _0x45a20a['Local']:return{'text':_0x196561('Insert'===_0x3b1858?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x196561('From\x20computer')};case _0x45a20a['URL']:return{'text':'Insert'===_0x3b1858?_0x196561('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x196561('Via\x20URL')};case _0x45a20a['Dropbox']:return{'text':t('Insert'===_0x3b1858?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x45a20a['Facebook']:return{'text':t('Insert'===_0x3b1858?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x45a20a['GDrive']:return{'text':t('Insert'===_0x3b1858?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x45a20a['GPhotos']:return{'text':t('Insert'===_0x3b1858?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x45a20a['OneDrive']:return{'text':t('Insert'===_0x3b1858?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1a7a0a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2a12(_0x493e71,_0x145bc1){var _0x645182=_0x6451();return _0x2a12=function(_0x2a123d,_0x571750){_0x2a123d=_0x2a123d-0x169;var _0x2f457a=_0x645182[_0x2a123d];return _0x2f457a;},_0x2a12(_0x493e71,_0x145bc1);}var _0xe65763=_0x2a12;(function(_0x506db5,_0x3f9cbb){var _0x2495f9=_0x2a12,_0x1b3355=_0x506db5();while(!![]){try{var _0x54370c=parseInt(_0x2495f9(0x17b))/0x1+-parseInt(_0x2495f9(0x17c))/0x2*(-parseInt(_0x2495f9(0x175))/0x3)+-parseInt(_0x2495f9(0x16a))/0x4*(-parseInt(_0x2495f9(0x17e))/0x5)+-parseInt(_0x2495f9(0x173))/0x6*(parseInt(_0x2495f9(0x16e))/0x7)+-parseInt(_0x2495f9(0x17a))/0x8*(parseInt(_0x2495f9(0x17d))/0x9)+parseInt(_0x2495f9(0x16b))/0xa*(-parseInt(_0x2495f9(0x176))/0xb)+-parseInt(_0x2495f9(0x179))/0xc*(-parseInt(_0x2495f9(0x177))/0xd);if(_0x54370c===_0x3f9cbb)break;else _0x1b3355['push'](_0x1b3355['shift']());}catch(_0x765dee){_0x1b3355['push'](_0x1b3355['shift']());}}}(_0x6451,0xe94eb));import{FocusTracker as _0xda4727}from'ckeditor5/src/utils.js';import{View as _0x31c4d8,FocusCycler as _0x5ef4ad}from'ckeditor5/src/ui.js';function _0x6451(){var _0x48c708=['583188hKoQRM','24MIREWV','21167ULpMmy','1803622iyPoak','5703849dyUPja','2525wtDafI','getFocusableElement','5280VQJsri','407630ZSvNId','fire','forwardCycle','1093372QtaUbr','true','bindTemplate','focusCycler','createCollection','24JUYpNY','focusTracker','3LePDAM','473fMXPcC','975AJPCxn','div'];_0x6451=function(){return _0x48c708;};return _0x6451();}import'../../theme/uploadcare-form.css';export default class q extends _0x31c4d8{constructor(_0x40ef64){var _0x77d74a=_0x2a12;super(_0x40ef64),this[_0x77d74a(0x174)]=new _0xda4727(),this[_0x77d74a(0x171)]=new _0x5ef4ad({'focusables':this[_0x77d74a(0x172)](),'focusTracker':this[_0x77d74a(0x174)]});}[_0xe65763(0x169)](){var _0x27631e=_0xe65763;return{'tag':_0x27631e(0x178),'attributes':{'aria-hidden':_0x27631e(0x16f),'tabindex':'0'},'on':{'focus':this[_0x27631e(0x170)]['to'](()=>{var _0x408e77=_0x27631e;this[_0x408e77(0x171)][_0x408e77(0x16c)](_0x408e77(0x16d));})}};}}
|