@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20260107.0 → 0.0.0-nightly-20260108.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/build/translations/af.js +1 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/ast.js +1 -0
- package/build/translations/az.js +1 -0
- package/build/translations/be.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/en-gb.js +1 -0
- package/build/translations/eo.js +1 -0
- package/build/translations/es-co.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/eu.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/gu.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/hy.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.js +1 -0
- package/build/translations/kk.js +1 -0
- package/build/translations/km.js +1 -0
- package/build/translations/kn.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/ku.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nb.js +1 -0
- package/build/translations/ne.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/oc.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/si.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sl.js +1 -0
- package/build/translations/sq.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/ti.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/uz.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/build/uploadcare.js +5 -0
- package/ckeditor5-metadata.json +2 -2
- package/dist/index.css +4 -4
- 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/be.js +1 -1
- package/dist/translations/be.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/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/ast.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/be.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/eo.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/eu.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/gu.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/hy.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/kk.po +1 -1
- package/lang/translations/km.po +1 -1
- package/lang/translations/kn.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nb.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/oc.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/si.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sl.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/ti.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/uz.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +33 -23
- package/{dist → src}/augmentation.d.ts +0 -4
- package/src/augmentation.js +23 -0
- package/{dist → src}/index.d.ts +0 -4
- package/src/index.js +23 -0
- package/{dist → src}/ui/uploadcarecontroller.d.ts +3 -7
- package/src/ui/uploadcarecontroller.js +24 -0
- package/{dist → src}/ui/uploadcareformview.d.ts +1 -5
- package/src/ui/uploadcareformview.js +23 -0
- package/{dist → src}/uploadcare.d.ts +1 -5
- package/src/uploadcare.js +23 -0
- package/{dist → src}/uploadcarecommand.d.ts +2 -6
- package/src/uploadcarecommand.js +23 -0
- package/{dist → src}/uploadcareconfig.d.ts +1 -5
- package/src/uploadcareconfig.js +23 -0
- package/{dist → src}/uploadcareediting.d.ts +2 -6
- package/src/uploadcareediting.js +23 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +5 -9
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +24 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +2 -6
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +23 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +2 -6
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +23 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +2 -6
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +23 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +1 -5
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +23 -0
- package/{dist → src}/uploadcareimageedit/uploadcareimageeditcommand.d.ts +2 -6
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +23 -0
- package/{dist → src}/uploadcareimageedit/uploadcareimageeditediting.d.ts +2 -6
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +23 -0
- package/{dist → src}/uploadcareimageedit/uploadcareimageeditui.d.ts +1 -5
- package/src/uploadcareimageedit/uploadcareimageeditui.js +23 -0
- package/{dist → src}/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +1 -5
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +23 -0
- package/{dist → src}/uploadcareimageedit.d.ts +1 -5
- package/src/uploadcareimageedit.js +23 -0
- package/{dist → src}/uploadcareui.d.ts +1 -5
- package/src/uploadcareui.js +23 -0
- package/{dist → src}/uploadcareuploadadapter.d.ts +2 -6
- package/src/uploadcareuploadadapter.js +23 -0
- package/{dist → src}/utils/common-translations.d.ts +0 -4
- package/src/utils/common-translations.js +23 -0
- package/{dist → src}/utils/dialogfocusmanagerview.d.ts +2 -6
- package/src/utils/dialogfocusmanagerview.js +23 -0
- package/{dist → src}/utils/editingutils.d.ts +0 -4
- package/src/utils/editingutils.js +23 -0
- package/{dist → src}/utils/isancestor.d.ts +0 -4
- package/src/utils/isancestor.js +23 -0
- package/{dist → src}/utils/uploadutils.d.ts +0 -4
- package/src/utils/uploadutils.js +23 -0
- package/theme/uploadcare-form.css +1 -1
- package/theme/uploadcare-theme.css +1 -1
- package/theme/uploadcareimageedit.css +1 -1
package/ckeditor5-metadata.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"className": "Uploadcare",
|
|
6
6
|
"description": "Allows inserting images into the rich-text editor content and to the Uploadcare cloud.",
|
|
7
7
|
"docs": "",
|
|
8
|
-
"path": "src/uploadcare.
|
|
8
|
+
"path": "src/uploadcare.js",
|
|
9
9
|
"requires": [
|
|
10
10
|
[
|
|
11
11
|
"ImageBlock",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"className": "UploadcareImageEdit",
|
|
32
32
|
"description": "Allows editing images.",
|
|
33
33
|
"docs": "",
|
|
34
|
-
"path": "src/uploadcareimageedit.
|
|
34
|
+
"path": "src/uploadcareimageedit.js",
|
|
35
35
|
"requires": [
|
|
36
36
|
"Uploadcare"
|
|
37
37
|
],
|
package/dist/index.css
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
34
34
|
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
35
35
|
*
|
|
36
|
-
* Copyright (c) 2003-
|
|
36
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
37
37
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
38
38
|
*/
|
|
39
39
|
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
121
121
|
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
122
122
|
*
|
|
123
|
-
* Copyright (c) 2003-
|
|
123
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
124
124
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
125
125
|
*/
|
|
126
126
|
|
|
@@ -141,12 +141,12 @@
|
|
|
141
141
|
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
142
142
|
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
143
143
|
*
|
|
144
|
-
* Copyright (c) 2003-
|
|
144
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
145
145
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
146
146
|
*/
|
|
147
147
|
|
|
148
148
|
/*
|
|
149
|
-
* Copyright (c) 2003-
|
|
149
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
150
150
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
151
151
|
*/
|
|
152
152
|
|
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0xa7313f,Command as _0x20d127}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4883b8,IconGooglePhotos as _0x434744,IconGoogleDrive as _0x198cf0,IconFacebook as _0x189f6f,IconDropbox as _0x3723b6,IconUploadcareLink as _0x38340d,IconUploadcareImageUpload as _0x38cc43,IconError as _0xc3e620,IconUploadcareImageEdit as _0x2622f3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x33cbd5,MenuBarMenuListItemButtonView as _0x418114,View as _0xcae530,FocusCycler as _0x5f469c,Dialog as _0x479684,DialogViewPosition as _0xdd4e71,SpinnerView as _0x523e4d,IconView as _0x3b03f7,Notification as _0xe7f899}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x99e339,DomEmitterMixin as _0x14c5d7,global as _0x3997ed,getAncestors as _0x30dcf9,ObservableMixin as _0x11d3dc,uid as _0x110a1a,createElement as _0x4aaac7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x15dd7e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2a0406,info as _0x40f4c2}from'@uploadcare/upload-client';import*as _0x53a18b from'@uploadcare/file-uploader';var K=function(_0x316ce9){return _0x316ce9['Local']='local',_0x316ce9['URL']='url',_0x316ce9['Dropbox']='dropbox',_0x316ce9['GDrive']='gdrive',_0x316ce9['Facebook']='facebook',_0x316ce9['GPhotos']='gphotos',_0x316ce9['OneDrive']='onedrive',_0x316ce9;}({});function R(_0x2d92b4,_0x1af8f1,_0x5085f8){const t=_0x2d92b4['t'],_0x1cddf9=_0x2d92b4['t'];switch(_0x1af8f1){case K['Local']:return{'text':_0x1cddf9('Insert'===_0x5085f8?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1cddf9('From\x20computer')};case K['URL']:return{'text':'Insert'===_0x5085f8?_0x1cddf9('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1cddf9('Via\x20URL')};case K['Dropbox']:return{'text':t('Insert'===_0x5085f8?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case K['Facebook']:return{'text':t('Insert'===_0x5085f8?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case K['GDrive']:return{'text':t('Insert'===_0x5085f8?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case K['GPhotos']:return{'text':t('Insert'===_0x5085f8?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case K['OneDrive']:return{'text':t('Insert'===_0x5085f8?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1af8f1;}}class S extends _0xa7313f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x569736=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x25f9a1;for(const _0x1af592 in _0x569736){const _0x105f2b=_0x1af592,_0x386893=_0x569736[_0x105f2b];if('uploadcareLicenseKeyValid'==_0x386893||'uploadcareLicenseKeyInvalid'==_0x386893||'uploadcareLicenseKeyExpired'==_0x386893||'uploadcareLicenseKeyDomainLimit'==_0x386893||'uploadcareLicenseKeyNotAllowed'==_0x386893||'uploadcareLicenseKeyEvaluationLimit'==_0x386893||'uploadcareLicenseKeyTrialLimit'==_0x386893||'uploadcareLicenseKeyUsageLimit'==_0x386893){delete _0x569736[_0x105f2b],_0x25f9a1=_0x386893,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x25f9a1&&_0x569736['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x25f9a1&&_0x569736['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x25f9a1&&_0x569736['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x25f9a1&&_0x569736['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x25f9a1&&_0x569736['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x25f9a1&&_0x569736['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x25f9a1&&_0x569736['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x40f4dc}=this,_0x5cc45a=_0x40f4dc['commands']['get']('uploadcare');if(!_0x5cc45a)return;const _0x2bc41b=this['_normalizeConfigSourceList'](_0x40f4dc['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x452c26,_0x96fb4a)=>{const _0x3535c2=this['_getIntegrationKey'](_0x96fb4a['type']);return _0x452c26[_0x3535c2]||(_0x452c26[_0x3535c2]=[]),_0x452c26[_0x3535c2]['push'](_0x96fb4a),_0x452c26;},{});_0x40f4dc['plugins']['has']('ImageInsertUI')&&_0x40f4dc['commands']['get']('uploadcare')&&Object['entries'](_0x2bc41b)['forEach'](([_0x3d8942,_0x801712])=>{_0x40f4dc['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3d8942,'observable':()=>_0x5cc45a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x801712),'formViewCreator':()=>this['_createDropdownButtons'](_0x801712),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x801712),'override':'assetManager'!==_0x3d8942});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3cd725){const {locale:_0x1c6a01}=this['editor'];return _0x3cd725['map'](_0x4f77cf=>{const _0x9bde3b=R(_0x1c6a01,_0x4f77cf,'Insert');switch(_0x4f77cf){case K['Local']:return{'icon':_0x38cc43,'type':K['Local'],..._0x9bde3b};case K['URL']:return{'icon':_0x38340d,'type':K['URL'],..._0x9bde3b};case K['Dropbox']:return{'icon':_0x3723b6,'type':K['Dropbox'],..._0x9bde3b};case K['Facebook']:return{'icon':_0x189f6f,'type':K['Facebook'],..._0x9bde3b};case K['GDrive']:return{'icon':_0x198cf0,'type':K['GDrive'],..._0x9bde3b};case K['GPhotos']:return{'icon':_0x434744,'type':K['GPhotos'],..._0x9bde3b};case K['OneDrive']:return{'icon':_0x4883b8,'type':K['OneDrive'],..._0x9bde3b};}});}['_getIntegrationKey'](_0x5e4108){switch(_0x5e4108){case K['Local']:return'upload';case K['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xc3144c,_0x21c6a8){const _0x14ef1c=this['editor'],_0xc93a73=new _0xc3144c(_0x14ef1c['locale']),_0x4ba83e=_0x14ef1c['commands']['get']('uploadcare');return _0xc93a73['bind']('isEnabled')['to'](_0x4ba83e),_0xc93a73['on']('execute',()=>{_0x4ba83e['execute'](_0x21c6a8);}),_0xc93a73;}['_createToolbarButton'](_0x57478c){const {locale:_0x5390f8}=this['editor'],_0x545cec=this['editor']['plugins']['get']('ImageInsertUI'),_0x432d15=_0x57478c[0x0],_0xb7f8f1=this['_createButton'](_0x33cbd5,_0x432d15['type']);return _0xb7f8f1['icon']=_0x432d15['icon'],_0xb7f8f1['bind']('label')['to'](_0x545cec,'isImageSelected',_0x60d0f3=>R(_0x5390f8,_0x432d15['type'],_0x60d0f3?'Replace':'Insert')['text']),_0xb7f8f1['tooltip']=!0x0,_0xb7f8f1;}['_createDropdownButtons'](_0x59ee84){const {locale:_0x324ec4}=this['editor'],_0xb75db9=this['editor']['plugins']['get']('ImageInsertUI');return _0x59ee84['map'](_0x1b257c=>{const _0xd7b158=this['_createButton'](_0x33cbd5,_0x1b257c['type']);return _0xd7b158['withText']=!0x0,_0xd7b158['icon']=_0x1b257c['icon'],_0xd7b158['bind']('label')['to'](_0xb75db9,'isImageSelected',_0x483294=>R(_0x324ec4,_0x1b257c['type'],_0x483294?'Replace':'Insert')['text']),_0xd7b158;});}['_createMenuBarButtons'](_0x404dd8){return _0x404dd8['map'](_0x3b313e=>{const _0x3582af=this['_createButton'](_0x418114,_0x3b313e['type']);return _0x3582af['icon']=_0x3b313e['icon'],_0x3582af['label']=_0x3b313e['shortText'],_0x3582af;});}}class A extends _0xcae530{['focusTracker'];['focusCycler'];constructor(_0x1d5471){super(_0x1d5471),this['focusTracker']=new _0x99e339(),this['focusCycler']=new _0x5f469c({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class O extends A{constructor(_0x861ea7,_0x3f579f){super(_0x861ea7),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader-'+_0x3f579f}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function D(_0x275022,_0xe848d0){const _0x415b9f=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4a65d9=>_0x4a65d9<=_0xe848d0)['map'](_0x1c4865=>_0x275022['replace'](/\/$/,'')+'/-/resize/'+_0x1c4865+'x/\x20'+_0x1c4865+'w');return{'imageFallbackUrl':_0x275022,'imageSources':[{'srcset':_0x415b9f['join'](',\x20'),'sizes':'(max-width:\x20'+_0xe848d0+'px)\x20100vw,\x20'+_0xe848d0+'px','type':'image/webp'}]};}function F(_0x471ce5,_0x30c15e,_0x4a9b10){const _0x52af17=_0x471ce5['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x52af17?parseInt(_0x52af17[0x1],0xa):_0x30c15e,'height':_0x52af17?parseInt(_0x52af17[0x2],0xa):_0x4a9b10};}function $(_0x300d86,_0x408aad){const _0x3f3055=new(_0x14c5d7())(),_0x28f524=_0x300d86['plugins']['get']('ImageUtils'),_0x2e0206=_0x300d86['editing']['mapper']['toViewElement'](_0x408aad),_0x1c3fa9=_0x28f524['findViewImgElement'](_0x2e0206),_0x4d72f6=_0x300d86['editing']['view']['domConverter']['viewToDom'](_0x1c3fa9),_0x165050=_0x408aad['getAttribute']('width'),_0x58df4a=_0x408aad['getAttribute']('height'),_0x3f0b19='image-processing';_0x300d86['editing']['view']['change'](_0x2f27e1=>{_0x2f27e1['addClass'](_0x3f0b19,_0x2e0206),_0x2f27e1['setStyle']('aspect-ratio',_0x165050+'/'+_0x58df4a,_0x1c3fa9);}),_0x3f3055['listenTo'](_0x4d72f6,'load',()=>{_0x3f3055['stopListening'](_0x4d72f6,'load'),_0x300d86['editing']['view']['change'](_0x1b4c5e=>{_0x1b4c5e['removeClass'](_0x3f0b19,_0x2e0206),_0x1b4c5e['removeStyle']('aspect-ratio',_0x1c3fa9);});});}function B(_0x2ae0c8){if(Array['isArray'](_0x2ae0c8)){const _0x46dd4f=_0x2ae0c8['map'](B);return _0x218ed8=>_0x46dd4f['some'](_0x4f35a2=>_0x4f35a2(_0x218ed8));}if('origin'==_0x2ae0c8){const _0x1c250a=_0x3997ed['window']['location']['origin'];return _0x1559b0=>new URL(_0x1559b0,_0x3997ed['document']['baseURI'])['origin']==_0x1c250a;}return'function'==typeof _0x2ae0c8?_0x2ae0c8:_0x2ae0c8 instanceof RegExp?_0x40abc2=>!(!_0x40abc2['match'](_0x2ae0c8)&&!_0x40abc2['replace'](/^https?:\/\//,'')['match'](_0x2ae0c8)):()=>!0x1;}function V(_0x3e5ecf,_0x24a70d){return _0x30dcf9(_0x3e5ecf['target'])['includes'](_0x24a70d);}class j extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x11d3dc(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x91e752,_0x527a82,_0x55c9f4){super(),this['_editor']=_0x91e752,this['_editing']=_0x527a82,this['_dialog']=_0x91e752['plugins']['get'](_0x479684),this['_api']=_0x527a82['ctxElement']['getAPI'](),this['_type']=_0x55c9f4,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x30d042,model:_0x443bba}=this['_editor'],_0x55206a=_0x443bba['document']['selection']['getSelectedElement'](),_0x1701b6=_0x55206a&&(_0x55206a['is']('element','imageBlock')||_0x55206a['is']('element','imageInline'));this['_formView']=new O(_0x30d042,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x38cc43,'title':R(_0x30d042,this['_type'],_0x1701b6?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xdd4e71['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x17b8d5=>!V(_0x17b8d5,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x314a0a}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x344685=>{const _0x3be181=_0x314a0a['length'];for(const _0x1d49e8 of _0x314a0a){const _0x118fdd=_0x1d49e8===_0x314a0a[_0x3be181-0x1],{cdnUrl:_0x3a8d9f,fileInfo:_0x518469}=_0x1d49e8;if(!_0x3a8d9f||!_0x518469)continue;const {width:_0x453771,height:_0x1143d9}=_0x518469['imageInfo'],_0x32570e=F(_0x3a8d9f,_0x453771,_0x1143d9),_0x1f87cd=D(_0x3a8d9f,_0x32570e['width']),_0x1c6cbf={'id':_0x518469['uuid'],'type':'image','attributes':{'imageDimension':_0x32570e,..._0x1f87cd}};this['_insertAsset'](_0x1c6cbf,_0x118fdd,_0x344685);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x34488e=>{'idle'===_0x34488e['detail']['status']&&!_0x34488e['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===K['Local']?this['_api']['setCurrentActivity'](K['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x215a7a,_0x5c5b03,_0x36e89b){const _0x3aa73a=this['_editor']['model']['document']['selection'],_0x24abe0=_0x3aa73a['getSelectedElement'](),_0x360c08=!(!_0x24abe0||!_0x24abe0['is']('element','imageInline'));_0x36e89b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x215a7a,_0x360c08),_0x5c5b03||_0x36e89b['setSelection'](_0x3aa73a['getLastPosition']());}['_insertImage'](_0x3d318c,_0xf67463){const _0x225e8b=this['_editor'],{imageDimension:_0x21f39b,imageFallbackUrl:_0x38c4f4,imageSources:_0x339444}=_0x3d318c['attributes'];_0x225e8b['execute']('insertImage',{'imageType':_0xf67463?'imageInline':null,'source':{'uploadcareImageId':_0x3d318c['id'],'src':_0x38c4f4,'sources':_0x339444,..._0x21f39b}});}}class M extends _0x20d127{['_editing'];['_controller']=null;static get['requires'](){return[_0x479684,z];}constructor(_0x5094a5){super(_0x5094a5),this['_editing']=_0x5094a5['plugins']['get'](z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2e987c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new j(this['editor'],this['_editing'],_0x2e987c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class q{static['upload']({file:_0x3fbe94,..._0x2ac7e2}){return _0x2a0406(_0x3fbe94,_0x2ac7e2);}static['getInfo'](_0x5d0c96,_0x18f60f){return _0x40f4c2(_0x5d0c96,_0x18f60f);}}class W extends _0xa7313f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x15dd7e,z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x524796=this['editor'];if(!!!_0x524796['config']['get']('uploadcare'))return;_0x524796['plugins']['get'](_0x15dd7e)['createUploadAdapter']=_0x5941a8=>new G(_0x5941a8,_0x524796),_0x524796['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5ccaa4,{imageElement:_0x2a488e,data:_0x297031})=>{_0x524796['model']['change'](_0x489850=>{_0x489850['setAttribute']('uploadcareImageId',_0x297031['uploadcareImageId'],_0x2a488e);});});}}class G{['loader'];['editor'];['controller'];constructor(_0x18bb85,_0x15cbba){this['loader']=_0x18bb85,this['editor']=_0x15cbba,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xd9d8ff=await this['loader']['file'];return q['upload']({'file':_0xd9d8ff,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x127e54=>{_0x127e54&&_0x127e54['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x127e54['value']);}})['then'](async _0x42dfcb=>{const {imageFallbackUrl:_0x564722,imageSources:_0x55e650}=D(_0x42dfcb['cdnUrl'],_0x42dfcb['imageInfo']['width']);return{'uploadcareImageId':_0x42dfcb['uuid'],'default':_0x564722,'sources':_0x55e650};})['catch'](()=>{const _0xd97f3f=t('Cannot\x20upload\x20file:')+('\x20'+_0xd9d8ff['name']+'.');return Promise['reject'](_0xd97f3f);});}['abort'](){this['controller']['abort']();}}class z extends _0xa7313f{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',W,_0x479684];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3ada2d){super(_0x3ada2d),this['ucContextId']=_0x110a1a();}['init'](){const _0x523ece=this['editor'];_0x523ece['commands']['add']('uploadcare',new M(_0x523ece));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x525150=_0x3997ed['document']['querySelector']('input[uploadcare-file-input]');_0x525150&&_0x525150['remove']();}),async function(_0x307178){const _0x134122=_0x4f462f([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1272bb=0x535f8c3a,_0x4e3276=0x5358f21a^_0x1272bb,_0x12cd19=window[_0x4f462f([0x44,0x61,0x74,0x65])][_0x4f462f([0x6e,0x6f,0x77])](),_0x426518=_0x307178[_0x4f462f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5f4126=new window[(_0x4f462f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a2cbe=>{_0x426518[_0x4f462f([0x6f,0x6e,0x63,0x65])](_0x4f462f([0x72,0x65,0x61,0x64,0x79]),_0x5a2cbe);}),_0x356a24={[_0x4f462f([0x6b,0x74,0x79])]:_0x4f462f([0x45,0x43]),[_0x4f462f([0x75,0x73,0x65])]:_0x4f462f([0x73,0x69,0x67]),[_0x4f462f([0x63,0x72,0x76])]:_0x4f462f([0x50,0x2d,0x32,0x35,0x36]),[_0x4f462f([0x78])]:_0x4f462f([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]),[_0x4f462f([0x79])]:_0x4f462f([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]),[_0x4f462f([0x61,0x6c,0x67])]:_0x4f462f([0x45,0x53,0x32,0x35,0x36])},_0x9fd2a8=_0x426518[_0x4f462f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f462f([0x67,0x65,0x74])](_0x4f462f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2aceca(){let _0x429af2,_0x38ae67=null,_0x4a9bfa=null;try{if(_0x9fd2a8==_0x4f462f([0x47,0x50,0x4c]))return _0x4f462f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x429af2=_0x3cc19e(),!_0x429af2)return _0x4f462f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x429af2[_0x4f462f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4a9bfa=_0x1fbbc3(_0x429af2[_0x4f462f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x429af2[_0x4f462f([0x6a,0x74,0x69])])),await _0x43e71c()?_0x59aee0()?_0x2ac229()?_0x4f462f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x23bb00()?(_0x429af2[_0x4f462f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f462f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x38ae67=_0x18e0ca(_0x4f462f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x429af2[_0x4f462f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f462f([0x74,0x72,0x69,0x61,0x6c])&&(_0x38ae67=_0x18e0ca(_0x4f462f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ab445()):_0x4f462f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f462f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f462f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4f462f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2ac229(){const _0x47f5ef=[_0x4f462f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f462f([0x74,0x72,0x69,0x61,0x6c])][_0x4f462f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x429af2[_0x4f462f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x12cd19/0x3e8:0xe10*_0x4e3276;return _0x429af2[_0x4f462f([0x65,0x78,0x70])]<_0x47f5ef;}function _0x59aee0(){const _0x47a9d0=_0x429af2[_0x4f462f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x47a9d0&&(!!_0x47a9d0[_0x4f462f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f462f([0x2a]))||!!_0x47a9d0[_0x4f462f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f462f([0x55,0x50,0x4c,0x43])));}function _0x23bb00(){const _0x50de14=_0x429af2[_0x4f462f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x50de14||0x0==_0x50de14[_0x4f462f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x32f4f2}=new URL(window[_0x4f462f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x50de14[_0x4f462f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32f4f2))return!0x0;const _0x1682ce=_0x32f4f2[_0x4f462f([0x73,0x70,0x6c,0x69,0x74])](_0x4f462f([0x2e]));return _0x50de14[_0x4f462f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd5cd61=>_0xd5cd61[_0x4f462f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f462f([0x2a])))[_0x4f462f([0x6d,0x61,0x70])](_0x2273cc=>_0x2273cc[_0x4f462f([0x73,0x70,0x6c,0x69,0x74])](_0x4f462f([0x2e])))[_0x4f462f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xfa6155=>_0xfa6155[_0x4f462f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1682ce[_0x4f462f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4f462f([0x6d,0x61,0x70])](_0x1317b7=>Array(_0x1682ce[_0x4f462f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1317b7[_0x4f462f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4f462f([0x66,0x69,0x6c,0x6c])](_0x1317b7[0x0]===_0x4f462f([0x2a])?_0x4f462f([0x2a]):'')[_0x4f462f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1317b7))[_0x4f462f([0x73,0x6f,0x6d,0x65])](_0xdb7a99=>_0x1682ce[_0x4f462f([0x65,0x76,0x65,0x72,0x79])]((_0x421b7f,_0x3390c7)=>_0xdb7a99[_0x3390c7]===_0x421b7f||_0xdb7a99[_0x3390c7]===_0x4f462f([0x2a])));}function _0x5ab445(){return _0x38ae67&&_0x4a9bfa?new window[(_0x4f462f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58ba0f,_0x34a2ff)=>{_0x38ae67[_0x4f462f([0x74,0x68,0x65,0x6e])](_0x58ba0f,_0x34a2ff),_0x4a9bfa[_0x4f462f([0x74,0x68,0x65,0x6e])](_0x2f6b66=>{_0x2f6b66!=_0x4f462f([0x56,0x61,0x6c,0x69,0x64])&&_0x58ba0f(_0x2f6b66);},_0x34a2ff);}):_0x38ae67||_0x4a9bfa||_0x4f462f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1fbbc3(_0x338f15,_0x3ca8ba){return new window[(_0x4f462f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x377002=>{if(_0x12eebc())return _0x377002(_0x4f462f([0x56,0x61,0x6c,0x69,0x64]));_0x2c8bae(),_0x426518[_0x4f462f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f462f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4cb766=!0x1;const _0x55e073=_0x110a1a();function _0x26645e(_0x140727){return!!_0x140727&&(typeof _0x140727===_0x4f462f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x140727===_0x4f462f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x140727[_0x4f462f([0x74,0x68,0x65,0x6e])]===_0x4f462f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x140727[_0x4f462f([0x63,0x61,0x74,0x63,0x68])]===_0x4f462f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x351cb4(_0x508d93){_0x2298b9(_0x508d93)[_0x4f462f([0x74,0x68,0x65,0x6e])](_0x58c66d=>{if(!_0x58c66d||_0x58c66d[_0x4f462f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f462f([0x6f,0x6b]))return _0x4f462f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5d1fb0(_0x597bc9(_0x55e073+_0x3ca8ba))!=_0x58c66d[_0x4f462f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f462f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f462f([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f462f([0x74,0x68,0x65,0x6e])](_0x2d5934=>(_0x170e09(),_0x2d5934),()=>{const _0x221bb4=_0x266a2c();return null==_0x221bb4?(_0x170e09(),_0x4f462f([0x56,0x61,0x6c,0x69,0x64])):_0x4f462f(_0x12cd19-_0x221bb4>(0x7753083a^_0x1272bb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f462f([0x74,0x68,0x65,0x6e])](_0x377002)[_0x4f462f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x377002(_0x4f462f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x57f69b=0x536962ba^_0x1272bb;function _0x170e09(){const _0x265aa3=_0x4f462f([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d1fb0(_0x597bc9(_0x338f15)),_0xaf878d=_0x309556(_0x5d1fb0(window[_0x4f462f([0x4d,0x61,0x74,0x68])][_0x4f462f([0x63,0x65,0x69,0x6c])](_0x12cd19/_0x57f69b)));window[_0x4f462f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f462f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x265aa3,_0xaf878d);}function _0x266a2c(){const _0x393d94=_0x4f462f([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d1fb0(_0x597bc9(_0x338f15)),_0x3774e3=window[_0x4f462f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f462f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x393d94);return _0x3774e3?window[_0x4f462f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x309556(_0x3774e3),0x10)*_0x57f69b:null;}function _0x2298b9(_0x407b84){return new window[(_0x4f462f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x582478,_0x589027)=>{_0x407b84[_0x4f462f([0x74,0x68,0x65,0x6e])](_0x582478,_0x589027),window[_0x4f462f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x589027,0x535e58fa^_0x1272bb);});}}_0x426518[_0x4f462f([0x6f,0x6e])](_0x4f462f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x40977e,_0x376802)=>{if(_0x376802[0x0]!=_0x338f15)return _0x377002(_0x4f462f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x376802[0x1]={..._0x376802[0x1],[_0x4f462f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x55e073};},{[_0x4f462f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f462f([0x68,0x69,0x67,0x68])}),_0x426518[_0x4f462f([0x6f,0x6e])](_0x4f462f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x36061d=>{_0x26645e(_0x36061d[_0x4f462f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4cb766=!0x0,_0x351cb4(_0x36061d[_0x4f462f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f462f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f462f([0x6c,0x6f,0x77])}),_0x5f4126[_0x4f462f([0x74,0x68,0x65,0x6e])](()=>{_0x4cb766||_0x377002(_0x4f462f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x12eebc(){return _0x426518[_0x4f462f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f462f([0x76,0x69,0x65,0x77])][_0x4f462f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f462f([0x61,0x75,0x74,0x6f]);}function _0x2c8bae(){_0x426518[_0x4f462f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f462f([0x76,0x69,0x65,0x77])][_0x4f462f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f462f([0x61,0x75,0x74,0x6f]);}}function _0x18e0ca(_0x51fc25){const _0x3addf0=[new window[(_0x4f462f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ffc1c=>setTimeout(_0x4ffc1c,0x5356b2f6^_0x1272bb)),_0x5f4126[_0x4f462f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f462f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x329e09=>{let _0xeb877=0x0;_0x426518[_0x4f462f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f462f([0x6f,0x6e])](_0x4f462f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a33fc,_0x927dcb)=>{_0x927dcb[0x0][_0x4f462f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xeb877++,_0xeb877==(0x535f89d2^_0x1272bb)&&(_0x329e09(),_0x1a33fc[_0x4f462f([0x6f,0x66,0x66])]());});}))];return window[_0x4f462f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f462f([0x72,0x61,0x63,0x65])](_0x3addf0)[_0x4f462f([0x74,0x68,0x65,0x6e])](()=>_0x51fc25);}async function _0x41baa3(){await _0x5f4126,_0x426518[_0x4f462f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f462f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x404bdb,_0x426518[_0x4f462f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f462f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x404bdb,_0x426518[_0x4f462f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f462f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x24e262(_0x59633d){const _0x450c08=_0x137791();_0x426518[_0x450c08]=_0x4f462f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x59633d,_0x59633d!=_0x4f462f([0x56,0x61,0x6c,0x69,0x64])&&_0x41baa3();}function _0x137791(){const _0x6687a6=window[_0x4f462f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f462f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f462f([0x6e,0x6f,0x77])]())[_0x4f462f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f462f([0x2e]),'');let _0x2b441c=_0x4f462f([0x68]);for(let _0x5b342d=0x0;_0x5b342d<_0x6687a6[_0x4f462f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b342d+=0x2){let _0x791baf=window[_0x4f462f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6687a6[_0x4f462f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b342d,_0x5b342d+0x2));_0x791baf>=_0x134122[_0x4f462f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x791baf-=_0x134122[_0x4f462f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b441c+=_0x134122[_0x791baf];}return _0x2b441c;}function _0x3cc19e(){const _0x3f1fcc=_0x9fd2a8[_0x4f462f([0x73,0x70,0x6c,0x69,0x74])](_0x4f462f([0x2e]));if(0x3!=_0x3f1fcc[_0x4f462f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2def86(_0x3f1fcc[0x1]);function _0x2def86(_0x195a94){const _0x41cc81=_0x40b923(_0x195a94);return _0x41cc81&&_0x32c043()?_0x41cc81:null;function _0x32c043(){const _0x35b670=_0x41cc81[_0x4f462f([0x6a,0x74,0x69])],_0x416e2f=window[_0x4f462f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35b670[_0x4f462f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35b670[_0x4f462f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x295af4={..._0x41cc81,[_0x4f462f([0x6a,0x74,0x69])]:_0x35b670[_0x4f462f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x35b670[_0x4f462f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x295af4[_0x4f462f([0x76,0x63])],_0x597bc9(_0x295af4)==_0x416e2f;}}}async function _0x43e71c(){let _0x2d5fc5=!0x0;try{const _0x2ab865=_0x9fd2a8[_0x4f462f([0x73,0x70,0x6c,0x69,0x74])](_0x4f462f([0x2e])),[_0x1a7d04,_0x35e128,_0x26f346]=_0x2ab865;return _0xfa4a26(_0x1a7d04),await _0xd2e69e(_0x1a7d04,_0x35e128,_0x26f346),_0x2d5fc5;}catch{return!0x1;}function _0xfa4a26(_0x47713b){const _0x511369=_0x40b923(_0x47713b);_0x511369&&_0x511369[_0x4f462f([0x61,0x6c,0x67])]==_0x4f462f([0x45,0x53,0x32,0x35,0x36])||(_0x2d5fc5=!0x1);}async function _0xd2e69e(_0x53b0f3,_0xb6119,_0x3941bc){const _0x2197e7=window[_0x4f462f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f462f([0x66,0x72,0x6f,0x6d])](_0x2a6d21(_0x3941bc),_0x913c7d=>_0x913c7d[_0x4f462f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x50f460=new window[(_0x4f462f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f462f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x53b0f3+_0x4f462f([0x2e])+_0xb6119),_0x434089=window[_0x4f462f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f462f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x434089)return;const _0x1618c9=await _0x434089[_0x4f462f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f462f([0x6a,0x77,0x6b]),_0x356a24,{[_0x4f462f([0x6e,0x61,0x6d,0x65])]:_0x4f462f([0x45,0x43,0x44,0x53,0x41]),[_0x4f462f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f462f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f462f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x434089[_0x4f462f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f462f([0x6e,0x61,0x6d,0x65])]:_0x4f462f([0x45,0x43,0x44,0x53,0x41]),[_0x4f462f([0x68,0x61,0x73,0x68])]:{[_0x4f462f([0x6e,0x61,0x6d,0x65])]:_0x4f462f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1618c9,_0x2197e7,_0x50f460)||(_0x2d5fc5=!0x1);}}function _0x40b923(_0x5337da){return _0x5337da[_0x4f462f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f462f([0x65,0x79]))?JSON[_0x4f462f([0x70,0x61,0x72,0x73,0x65])](_0x2a6d21(_0x5337da)):null;}function _0x2a6d21(_0x5924c4){return window[_0x4f462f([0x61,0x74,0x6f,0x62])](_0x5924c4[_0x4f462f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f462f([0x2b]))[_0x4f462f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f462f([0x2f])));}function _0x597bc9(_0x1f2e98){let _0x14d1f3=0x1505;function _0xff13c9(_0x1ac209){for(let _0x43730f=0x0;_0x43730f<_0x1ac209[_0x4f462f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43730f++){const _0x50a8c0=_0x1ac209[_0x4f462f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x43730f);_0x14d1f3=(_0x14d1f3<<0x5)+_0x14d1f3+_0x50a8c0,_0x14d1f3&=_0x14d1f3;}}function _0x17b7c6(_0x19e773){Array[_0x4f462f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x19e773)?_0x19e773[_0x4f462f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x17b7c6):_0x19e773&&typeof _0x19e773==_0x4f462f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f462f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x19e773)[_0x4f462f([0x73,0x6f,0x72,0x74])]()[_0x4f462f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3333d6,_0x5efe65])=>{_0xff13c9(_0x3333d6),_0x17b7c6(_0x5efe65);}):_0xff13c9(window[_0x4f462f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x19e773));}return _0x17b7c6(_0x1f2e98),_0x14d1f3>>>0x0;}function _0x5d1fb0(_0xb6d900){return _0xb6d900[_0x4f462f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f462f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f462f([0x30]));}function _0x309556(_0x278e2d){return _0x278e2d[_0x4f462f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f462f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f462f([0x6a,0x6f,0x69,0x6e])]('');}function _0x404bdb(){}function _0x4f462f(_0x168cf3){return _0x168cf3['map'](_0x32dc5e=>String['fromCharCode'](_0x32dc5e))['join']('');}_0x24e262(await _0x2aceca());}(this);}['_initSchema'](){const _0x343f57=this['editor']['model']['schema'];_0x343f57['isRegistered']('imageBlock')&&_0x343f57['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x343f57['isRegistered']('imageInline')&&_0x343f57['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x390a96=this['editor'];_0x390a96['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x390a96['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xef2155=>_0xef2155['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5f3ac0=_0x390a96['commands']['get']('replaceImageSource');_0x5f3ac0&&this['listenTo'](_0x5f3ac0,'cleanupImage',(_0x1c9028,[_0xc6df40,_0x3a36b7])=>{_0xc6df40['removeAttribute']('uploadcareImageId',_0x3a36b7);});}['_initConfig'](){const _0x15aafc=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4f75d4=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4aaac7(_0x3997ed['document'],'uc-config',{..._0x15aafc,'pubkey':_0x4f75d4,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x48e635=>{if('closeMax'==_0x48e635)return'#uc-icon-arrow-down';},_0x3997ed['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4aaac7(_0x3997ed['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3997ed['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x8f440c=this['editor']['commands']['get']('insertImage');_0x8f440c&&this['listenTo'](_0x8f440c,'execute',()=>{const _0x274537=this['editor']['model']['document']['selection']['getSelectedElement']();_0x274537&&_0x274537['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x274537);});});const _0x5dd39e=this['editor']['commands']['get']('uploadcareImageReplace');_0x5dd39e&&this['listenTo'](_0x5dd39e,'execute',()=>{const _0x338752=this['editor']['model']['document']['selection']['getSelectedElement']();_0x338752&&_0x338752['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x338752);});});}}class H extends _0xa7313f{static get['requires'](){return[z,S];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x81295a){super(_0x81295a),_0x81295a['config']['define']('uploadcare.uploader.sourceList',[K['Local'],K['URL']]),_0x53a18b['defineComponents'](_0x53a18b),this['_defineLocale']();}['_defineLocale'](){const _0x12a919=this['editor']['config']['get']('uploadcare.locale'),_0x1cec24=this['editor']['locale']['contentLanguage'];_0x12a919&&_0x53a18b['defineLocale'](_0x1cec24,_0x12a919);}}class J extends _0xcae530{constructor(_0x85725f){super(_0x85725f);const t=_0x85725f['t'],_0x560c12=this['bindTemplate'],_0x5a75a2=new _0x523e4d();_0x5a75a2['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':[_0x5a75a2,{'text':_0x560c12['to']('imageUploadProgress',_0x1b749e=>t('Loading\x20image...')+'\x20('+(_0x1b749e||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class Z extends _0xcae530{constructor(_0x1e7b5c){super(_0x1e7b5c);const t=_0x1e7b5c['t'];this['set']('errorType',null);const _0x208574=new _0x33cbd5(_0x1e7b5c);_0x208574['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x208574['withText']=!0x0,_0x208574['class']='ck-button-action',_0x208574['on']('execute',()=>{this['fire']('retry');}),_0x208574['bind']('isVisible')['to'](this,'errorType',_0x46534f=>'NotFound'!==_0x46534f);const _0x421b9f=new _0x3b03f7();_0x421b9f['content']=_0xc3e620,_0x421b9f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x16a94=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':[_0x421b9f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x16a94['to']('errorType',_0x2daafa=>t('NotFound'!==_0x2daafa?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x208574]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class Q extends _0xcae530{constructor(_0x303db3,_0x3c5936){super(_0x303db3);const _0x5a2bce=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3c5936,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5a2bce['to']('imageSrc')}});}}class X extends A{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xf3b72f,_0xf58605,_0x5a7cb5){super(_0xf3b72f),this['_items']=this['createCollection'](),this['_loadingView']=new J(_0xf3b72f),this['_errorView']=new Z(_0xf3b72f),this['_editingView']=new Q(_0xf3b72f,_0x5a7cb5),this['_focusableView']=new _0xcae530(_0xf3b72f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xf58605),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x529af0=>{this['_addUploadcareImageEditorListeners'](_0x529af0);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x4f73c9,_0x3267b8){const _0x4a9f95='uc-cloud-image-editor',_0x19af70=_0x4f73c9['querySelector'](_0x4a9f95);if(_0x19af70)return _0x3267b8(_0x19af70);const _0x2abba4=new MutationObserver(_0x4f48e5=>{const _0x42bd2b=_0x4f48e5['filter'](_0x1dcb72=>_0x1dcb72['target']===_0x4f73c9&&_0x1dcb72['addedNodes']['length']>0x0&&_0x1dcb72['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4a9f95);_0x42bd2b['length']&&(_0x2abba4['disconnect'](),_0x3267b8(_0x42bd2b[0x0]['addedNodes'][0x0]));});_0x2abba4['observe'](_0x4f73c9,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x52beb0){_0x52beb0['addEventListener']('apply',_0x1d1c92=>{this['fire']('apply',{'imageSrc':_0x1d1c92['detail']['cdnUrl']});}),_0x52beb0['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class Y extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x11d3dc(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xc72b7e,_0x4ec740,_0x3fa4b7){super(),this['_editor']=_0xc72b7e,this['_dialog']=_0x4ec740,this['_imageElement']=_0x3fa4b7,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 _0x5d91a3=this['_imageElement'],_0x548a0e=_0x5d91a3['getAttribute']('uploadcareImageId'),_0x5e530a=_0x5d91a3['getAttribute']('src');if(_0x548a0e)await this['_loadImageInfo'](_0x548a0e,_0x5e530a);else{if(this['_imageCache']['has'](_0x5e530a)){const _0x3a322c=this['_imageCache']['get'](_0x5e530a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3a322c['url'],this['imageDimension']=_0x3a322c['dimension'],this['imageId']=_0x3a322c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x56dfa6}=this['_editor'],t=_0x56dfa6['t'],_0x689d31=new X(_0x56dfa6,this['imageStatus'],this['_attributes']);_0x689d31['bind']('status')['to'](this,'imageStatus'),_0x689d31['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x689d31['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x689d31['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x689d31,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2622f3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x689d31,'position':_0xdd4e71['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x689d31['focus']();},'onHide':()=>{_0x689d31['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x464d97=>!V(_0x464d97,_0x689d31['element'])}});}['_loadImageInfo'](_0x2a4860,_0x214078){return q['getInfo'](_0x2a4860,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2a9f67=>{const {width:_0x39ab48,height:_0x20997c}=_0x2a9f67['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x214078,this['imageDimension']={'width':_0x39ab48,'height':_0x20997c},this['imageId']=_0x2a4860;})['catch'](_0x130cd3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x130cd3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3decdd,_0x59290a){return this['_getImageAsFile'](_0x3decdd)['then'](_0x263012=>q['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x59290a['signal'],'file':_0x263012,'onProgress':_0x51ccbe=>{_0x51ccbe&&_0x51ccbe['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x51ccbe['value']));}}))['then'](_0x44d024=>{const {width:_0x25237b,height:_0x48a5a0}=_0x44d024['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x44d024['cdnUrl'],this['imageDimension']={'width':_0x25237b,'height':_0x48a5a0},this['imageId']=_0x44d024['uuid'],this['imageUploadProgress']=null;const _0x3c48ef=_0x3decdd['getAttribute']('src');this['_imageCache']['set'](_0x3c48ef,{'id':_0x44d024['uuid'],'url':_0x44d024['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5d72b3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5d72b3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2a08e1,_0x17182c){_0x2a08e1['on']('apply',(_0x490e58,_0x412b3d)=>{this['_replaceImage'](_0x17182c,_0x412b3d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2a08e1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2a08e1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x9248da,_0x3b7357,_0x21d853){const _0x419aef=this['_editor'],{width:_0x37ee8d,height:_0x2c5e5d}=F(_0x3b7357,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x224caa,imageSources:_0x2ffa37}=D(_0x3b7357,_0x37ee8d);_0x419aef['model']['change'](_0x202f0e=>{if('$graveyard'===_0x9248da['root']['rootName']){_0x419aef['execute']('insertImage',{'imageType':_0x9248da['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x9248da['getAttributes']()),'uploadcareImageId':_0x21d853,'src':_0x224caa,'sources':_0x2ffa37,'width':_0x37ee8d,'height':_0x2c5e5d}});const _0x120b6e=_0x9248da['getChildren']();_0x9248da=_0x419aef['model']['document']['selection']['getSelectedElement']();for(const _0x367ef4 of _0x120b6e)_0x202f0e['append'](_0x202f0e['cloneElement'](_0x367ef4),_0x9248da);}else _0x202f0e['setSelection'](_0x9248da,'on'),_0x419aef['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x9248da['getAttributes']()),'uploadcareImageId':_0x21d853,'src':_0x224caa,'sources':_0x2ffa37,'width':_0x37ee8d,'height':_0x2c5e5d},_0x9248da);_0x202f0e['setSelection'](_0x9248da,'on');});}async['_getImageAsFile'](_0x2ec6ca){const _0x337327=_0x3997ed['window'],_0x4c3afa=_0x3997ed['document']['location']['href'],_0x196737=new _0x337327['URL'](_0x2ec6ca['getAttribute']('src'),_0x4c3afa);if('data:'===_0x196737['protocol']){const _0x46825e=_0x196737['href']['split'](','),_0x32bd08=_0x46825e[0x0]['match'](/:(.*?);/)[0x1],_0x2d01fd=_0x32bd08['split']('/')[0x1],_0x3dbfd5=_0x337327['atob'](_0x46825e[_0x46825e['length']-0x1]);let _0x19ebe2=_0x3dbfd5['length'];const _0x585911=new _0x337327['Uint8Array'](_0x19ebe2);for(;_0x19ebe2--;)_0x585911[_0x19ebe2]=_0x3dbfd5['charCodeAt'](_0x19ebe2);return new _0x337327['File']([_0x585911],'image.'+_0x2d01fd,{'type':_0x32bd08});}const _0x1e1f4d=_0x196737['href']['split']('/'),_0x1d0c92=_0x1e1f4d[_0x1e1f4d['length']-0x1],_0x126552=_0x1d0c92['split']('.')[0x1];return _0x337327['fetch'](_0x196737['href'])['then'](_0x2856fa=>_0x2856fa['clone']()['blob']())['then'](_0x844178=>new _0x337327['File']([_0x844178],_0x1d0c92,{'type':'image/'+_0x126552}));}}class tt extends _0x20d127{['imageEditController'];static get['requires'](){return[_0x479684];}['_isEditable'];constructor(_0x50904d){super(_0x50904d),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5a517d){const _0x4d6f2e=B(_0x5a517d);return _0x5e77c5=>!(!_0x5e77c5||!_0x5e77c5['is']('element','imageBlock')&&!_0x5e77c5['is']('element','imageInline'))&&(!!_0x5e77c5['hasAttribute']('uploadcareImageId')||!!_0x5e77c5['hasAttribute']('src')&&_0x4d6f2e(_0x5e77c5['getAttribute']('src')));}(_0x50904d['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x213671=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x213671);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2b2faf=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2b2faf&&(_0x2b2faf['is']('element','imageBlock')||_0x2b2faf['is']('element','imageInline'))&&(this['imageEditController']=new Y(this['editor'],this['editor']['plugins']['get'](_0x479684),_0x2b2faf),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class et extends _0x20d127{['refresh'](){const _0x12e250=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x12e250&&(_0x12e250['is']('element','imageBlock')||_0x12e250['is']('element','imageInline')));}['execute'](_0x194a0f){const _0x1e216a=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3ba9c1=>{_0x3ba9c1['setAttributes'](_0x194a0f,_0x1e216a),_0x3ba9c1['removeAttribute']('srcset',_0x1e216a),_0x3ba9c1['removeAttribute']('sizes',_0x1e216a);});}}class it extends _0xa7313f{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[z,_0xe7f899,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x51b56e}=this;_0x51b56e['commands']['add']('uploadcareImageEdit',new tt(_0x51b56e)),_0x51b56e['commands']['add']('uploadcareImageReplace',new et(_0x51b56e));}}class st extends _0xa7313f{['_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 _0x5ac267=this['editor'];_0x5ac267['ui']['componentFactory']['add']('uploadcareImageEdit',_0x34251d=>{const _0x3dd0d8=_0x5ac267['commands']['get']('uploadcareImageEdit'),_0x27de86=new _0x33cbd5(_0x34251d),t=_0x34251d['t'];return _0x27de86['set']({'icon':_0x2622f3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x27de86['bind']('isEnabled')['to'](_0x3dd0d8),_0x27de86['bind']('isOn')['to'](_0x3dd0d8,'isActive'),this['listenTo'](_0x27de86,'execute',()=>{_0x5ac267['execute']('uploadcareImageEdit'),_0x5ac267['editing']['view']['focus']();}),_0x27de86;}),this['_initConfig']();}['_initConfig'](){const _0xe6d176=_0x4aaac7(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xe6d176),this['listenTo'](this['editor'],'destroy',()=>{_0xe6d176['remove']();});}}class nt extends _0xa7313f{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[it,st];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{H as Uploadcare,M as UploadcareCommand,z as UploadcareEditing,nt as UploadcareImageEdit,tt as UploadcareImageEditCommand,it as UploadcareImageEditEditing,st as UploadcareImageEditUI,S as UploadcareUI,W as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x242355,Command as _0x6cce2f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x186f9f,IconGooglePhotos as _0x1533d0,IconGoogleDrive as _0x478b63,IconFacebook as _0x4294d5,IconDropbox as _0x371664,IconUploadcareLink as _0x2592a1,IconUploadcareImageUpload as _0x1bfd2d,IconError as _0x1fc145,IconUploadcareImageEdit as _0x589c8b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5cbd10,MenuBarMenuListItemButtonView as _0x4a37b4,View as _0x2cd26b,FocusCycler as _0x43672b,Dialog as _0x29ca92,DialogViewPosition as _0x3431e2,SpinnerView as _0x25aaf5,IconView as _0x3772cd,Notification as _0x1320fd}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1dcf96,DomEmitterMixin as _0x458338,global as _0x1c4c5d,getAncestors as _0x4a9bc8,ObservableMixin as _0x1172f6,uid as _0x1389b5,createElement as _0x237efc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2988b6}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x455dab,info as _0x8fe793}from'@uploadcare/upload-client';import*as _0x421fb7 from'@uploadcare/file-uploader';var i=function(_0x53d601){return _0x53d601['Local']='local',_0x53d601['URL']='url',_0x53d601['Dropbox']='dropbox',_0x53d601['GDrive']='gdrive',_0x53d601['Facebook']='facebook',_0x53d601['GPhotos']='gphotos',_0x53d601['OneDrive']='onedrive',_0x53d601;}({});function _(_0x408169,_0x3b11cf,_0x3326bb){const t=_0x408169['t'],_0x499dff=_0x408169['t'];switch(_0x3b11cf){case i['Local']:return{'text':_0x499dff('Insert'===_0x3326bb?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x499dff('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3326bb?_0x499dff('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x499dff('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3326bb?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3326bb?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3326bb?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3326bb?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3326bb?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3b11cf;}}class e extends _0x242355{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2ad0ec=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2a3c40;for(const _0x1a7ec8 in _0x2ad0ec){const _0x293c58=_0x1a7ec8,_0x36a96f=_0x2ad0ec[_0x293c58];if('uploadcareLicenseKeyValid'==_0x36a96f||'uploadcareLicenseKeyInvalid'==_0x36a96f||'uploadcareLicenseKeyExpired'==_0x36a96f||'uploadcareLicenseKeyDomainLimit'==_0x36a96f||'uploadcareLicenseKeyNotAllowed'==_0x36a96f||'uploadcareLicenseKeyEvaluationLimit'==_0x36a96f||'uploadcareLicenseKeyUsageLimit'==_0x36a96f){delete _0x2ad0ec[_0x293c58],_0x2a3c40=_0x36a96f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2a3c40&&_0x2ad0ec['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2a3c40&&_0x2ad0ec['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2a3c40&&_0x2ad0ec['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2a3c40&&_0x2ad0ec['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2a3c40&&_0x2ad0ec['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2a3c40&&_0x2ad0ec['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x47bc52}=this,_0x27d643=_0x47bc52['commands']['get']('uploadcare');if(!_0x27d643)return;const _0x3bde3f=this['_normalizeConfigSourceList'](_0x47bc52['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x34b219,_0xfe849d)=>{const _0x3d2786=this['_getIntegrationKey'](_0xfe849d['type']);return _0x34b219[_0x3d2786]||(_0x34b219[_0x3d2786]=[]),_0x34b219[_0x3d2786]['push'](_0xfe849d),_0x34b219;},{});_0x47bc52['plugins']['has']('ImageInsertUI')&&_0x47bc52['commands']['get']('uploadcare')&&Object['entries'](_0x3bde3f)['forEach'](([_0x42474c,_0x27bb46])=>{_0x47bc52['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x42474c,'observable':()=>_0x27d643,'buttonViewCreator':()=>this['_createToolbarButton'](_0x27bb46),'formViewCreator':()=>this['_createDropdownButtons'](_0x27bb46),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x27bb46),'override':'assetManager'!==_0x42474c});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x592b60){const {locale:_0x2cc91d}=this['editor'];return _0x592b60['map'](_0x7defbd=>{const _0xb1a7db=_(_0x2cc91d,_0x7defbd,'Insert');switch(_0x7defbd){case i['Local']:return{'icon':_0x1bfd2d,'type':i['Local'],..._0xb1a7db};case i['URL']:return{'icon':_0x2592a1,'type':i['URL'],..._0xb1a7db};case i['Dropbox']:return{'icon':_0x371664,'type':i['Dropbox'],..._0xb1a7db};case i['Facebook']:return{'icon':_0x4294d5,'type':i['Facebook'],..._0xb1a7db};case i['GDrive']:return{'icon':_0x478b63,'type':i['GDrive'],..._0xb1a7db};case i['GPhotos']:return{'icon':_0x1533d0,'type':i['GPhotos'],..._0xb1a7db};case i['OneDrive']:return{'icon':_0x186f9f,'type':i['OneDrive'],..._0xb1a7db};}});}['_getIntegrationKey'](_0x3d8568){switch(_0x3d8568){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x45751f,_0x4fe440){const _0x40b859=this['editor'],_0x585766=new _0x45751f(_0x40b859['locale']),_0x44486a=_0x40b859['commands']['get']('uploadcare');return _0x585766['bind']('isEnabled')['to'](_0x44486a),_0x585766['on']('execute',()=>{_0x44486a['execute'](_0x4fe440);}),_0x585766;}['_createToolbarButton'](_0xe0c546){const {locale:_0x13a190}=this['editor'],_0x32199f=this['editor']['plugins']['get']('ImageInsertUI'),_0xd255b4=_0xe0c546[0x0],_0x1199ef=this['_createButton'](_0x5cbd10,_0xd255b4['type']);return _0x1199ef['icon']=_0xd255b4['icon'],_0x1199ef['bind']('label')['to'](_0x32199f,'isImageSelected',_0x254738=>_(_0x13a190,_0xd255b4['type'],_0x254738?'Replace':'Insert')['text']),_0x1199ef['tooltip']=!0x0,_0x1199ef;}['_createDropdownButtons'](_0x26179e){const {locale:_0x1baecc}=this['editor'],_0x21acc4=this['editor']['plugins']['get']('ImageInsertUI');return _0x26179e['map'](_0x19fa01=>{const _0x4a18b5=this['_createButton'](_0x5cbd10,_0x19fa01['type']);return _0x4a18b5['withText']=!0x0,_0x4a18b5['icon']=_0x19fa01['icon'],_0x4a18b5['bind']('label')['to'](_0x21acc4,'isImageSelected',_0x23a515=>_(_0x1baecc,_0x19fa01['type'],_0x23a515?'Replace':'Insert')['text']),_0x4a18b5;});}['_createMenuBarButtons'](_0x31f371){return _0x31f371['map'](_0x537e16=>{const _0x4e5171=this['_createButton'](_0x4a37b4,_0x537e16['type']);return _0x4e5171['icon']=_0x537e16['icon'],_0x4e5171['label']=_0x537e16['shortText'],_0x4e5171;});}}class F extends _0x2cd26b{['focusTracker'];['focusCycler'];constructor(_0x3c4431){super(_0x3c4431),this['focusTracker']=new _0x1dcf96(),this['focusCycler']=new _0x43672b({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x29a416,_0x4bc948){super(_0x29a416),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader-'+_0x4bc948}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x5e8563,_0x53068e){const _0x279f0b=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1be4d0=>_0x1be4d0<=_0x53068e)['map'](_0x3190bf=>_0x5e8563['replace'](/\/$/,'')+'/-/resize/'+_0x3190bf+'x/\x20'+_0x3190bf+'w');return{'imageFallbackUrl':_0x5e8563,'imageSources':[{'srcset':_0x279f0b['join'](',\x20'),'sizes':'(max-width:\x20'+_0x53068e+'px)\x20100vw,\x20'+_0x53068e+'px','type':'image/webp'}]};}function S(_0x261ac6,_0x3844c8,_0x1f3337){const _0x377cb4=_0x261ac6['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x377cb4?parseInt(_0x377cb4[0x1],0xa):_0x3844c8,'height':_0x377cb4?parseInt(_0x377cb4[0x2],0xa):_0x1f3337};}function p(_0xb2899e,_0x57f740){const _0x247a93=new(_0x458338())(),_0x2bef0a=_0xb2899e['plugins']['get']('ImageUtils'),_0xa5ca4b=_0xb2899e['editing']['mapper']['toViewElement'](_0x57f740),_0x5631a7=_0x2bef0a['findViewImgElement'](_0xa5ca4b),_0x1a73a7=_0xb2899e['editing']['view']['domConverter']['viewToDom'](_0x5631a7),_0xdcd595=_0x57f740['getAttribute']('width'),_0x5aeb49=_0x57f740['getAttribute']('height'),_0x585a58='image-processing';_0xb2899e['editing']['view']['change'](_0x72c553=>{_0x72c553['addClass'](_0x585a58,_0xa5ca4b),_0x72c553['setStyle']('aspect-ratio',_0xdcd595+'/'+_0x5aeb49,_0x5631a7);}),_0x247a93['listenTo'](_0x1a73a7,'load',()=>{_0x247a93['stopListening'](_0x1a73a7,'load'),_0xb2899e['editing']['view']['change'](_0x530656=>{_0x530656['removeClass'](_0x585a58,_0xa5ca4b),_0x530656['removeStyle']('aspect-ratio',_0x5631a7);});});}function G(_0x27a1bd){if(Array['isArray'](_0x27a1bd)){const _0xb5ab8c=_0x27a1bd['map'](G);return _0x529d2e=>_0xb5ab8c['some'](_0x28e7cd=>_0x28e7cd(_0x529d2e));}if('origin'==_0x27a1bd){const _0x3a9008=_0x1c4c5d['window']['location']['origin'];return _0x1289a5=>new URL(_0x1289a5,_0x1c4c5d['document']['baseURI'])['origin']==_0x3a9008;}return'function'==typeof _0x27a1bd?_0x27a1bd:_0x27a1bd instanceof RegExp?_0x4733d6=>!(!_0x4733d6['match'](_0x27a1bd)&&!_0x4733d6['replace'](/^https?:\/\//,'')['match'](_0x27a1bd)):()=>!0x1;}function A(_0x3c57b9,_0x49037a){return _0x4a9bc8(_0x3c57b9['target'])['includes'](_0x49037a);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1172f6(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2cea30,_0x205812,_0x5b960f){super(),this['_editor']=_0x2cea30,this['_editing']=_0x205812,this['_dialog']=_0x2cea30['plugins']['get'](_0x29ca92),this['_api']=_0x205812['ctxElement']['getAPI'](),this['_type']=_0x5b960f,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x288ae3,model:_0x120d9d}=this['_editor'],_0x4dca00=_0x120d9d['document']['selection']['getSelectedElement'](),_0x2e8a85=_0x4dca00&&(_0x4dca00['is']('element','imageBlock')||_0x4dca00['is']('element','imageInline'));this['_formView']=new x(_0x288ae3,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x1bfd2d,'title':_(_0x288ae3,this['_type'],_0x2e8a85?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3431e2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x562aa5=>!A(_0x562aa5,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2275c6}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xd189c4=>{const _0x457867=_0x2275c6['length'];for(const _0x5dc82f of _0x2275c6){const _0x43662f=_0x5dc82f===_0x2275c6[_0x457867-0x1],{cdnUrl:_0x937016,fileInfo:_0x30f280}=_0x5dc82f;if(!_0x937016||!_0x30f280)continue;const {width:_0x371c5e,height:_0x536fad}=_0x30f280['imageInfo'],_0x220866=S(_0x937016,_0x371c5e,_0x536fad),_0x280b2c=C(_0x937016,_0x220866['width']),_0x5525cc={'id':_0x30f280['uuid'],'type':'image','attributes':{'imageDimension':_0x220866,..._0x280b2c}};this['_insertAsset'](_0x5525cc,_0x43662f,_0xd189c4);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x18560b=>{'idle'===_0x18560b['detail']['status']&&!_0x18560b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2c107a,_0x128b85,_0x3fa0b0){const _0x48dc99=this['_editor']['model']['document']['selection'],_0x1b9599=_0x48dc99['getSelectedElement'](),_0x2f27c8=!(!_0x1b9599||!_0x1b9599['is']('element','imageInline'));_0x3fa0b0['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2c107a,_0x2f27c8),_0x128b85||_0x3fa0b0['setSelection'](_0x48dc99['getLastPosition']());}['_insertImage'](_0x5e2777,_0x32894f){const _0x6a9161=this['_editor'],{imageDimension:_0x1bec60,imageFallbackUrl:_0x2bd8e5,imageSources:_0x1336f5}=_0x5e2777['attributes'];_0x6a9161['execute']('insertImage',{'imageType':_0x32894f?'imageInline':null,'source':{'uploadcareImageId':_0x5e2777['id'],'src':_0x2bd8e5,'sources':_0x1336f5,..._0x1bec60}});}}class w extends _0x6cce2f{['_editing'];['_controller']=null;static get['requires'](){return[_0x29ca92,o];}constructor(_0xb2fa16){super(_0xb2fa16),this['_editing']=_0xb2fa16['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xf6eb3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xf6eb3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x552517,..._0x2db19e}){return _0x455dab(_0x552517,_0x2db19e);}static['getInfo'](_0x26a798,_0x119aed){return _0x8fe793(_0x26a798,_0x119aed);}}class f extends _0x242355{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2988b6,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x519196=this['editor'];if(!!!_0x519196['config']['get']('uploadcare'))return;_0x519196['plugins']['get'](_0x2988b6)['createUploadAdapter']=_0x1dee9c=>new k(_0x1dee9c,_0x519196),_0x519196['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x19a312,{imageElement:_0x45d90c,data:_0xaa9d5a})=>{_0x519196['model']['change'](_0x5e5f44=>{_0x5e5f44['setAttribute']('uploadcareImageId',_0xaa9d5a['uploadcareImageId'],_0x45d90c);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x387210,_0x439c3f){this['loader']=_0x387210,this['editor']=_0x439c3f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xa48fd8=await this['loader']['file'];return j['upload']({'file':_0xa48fd8,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x4ed179=>{_0x4ed179&&_0x4ed179['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4ed179['value']);}})['then'](async _0x166d51=>{const {imageFallbackUrl:_0x185fb8,imageSources:_0x417eea}=C(_0x166d51['cdnUrl'],_0x166d51['imageInfo']['width']);return{'uploadcareImageId':_0x166d51['uuid'],'default':_0x185fb8,'sources':_0x417eea};})['catch'](()=>{const _0x34c58f=t('Cannot\x20upload\x20file:')+('\x20'+_0xa48fd8['name']+'.');return Promise['reject'](_0x34c58f);});}['abort'](){this['controller']['abort']();}}class o extends _0x242355{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x29ca92];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x540e82){super(_0x540e82),this['ucContextId']=_0x1389b5();}['init'](){const _0x3c4c51=this['editor'];_0x3c4c51['commands']['add']('uploadcare',new w(_0x3c4c51));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x24439b=_0x1c4c5d['document']['querySelector']('input[uploadcare-file-input]');_0x24439b&&_0x24439b['remove']();}),async function(_0x47d5ae){const _0x30b66f=_0x454980([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4cbd66=0x535f8c3a,_0x23e765=0x5358f202^_0x4cbd66,_0x345692=window[_0x454980([0x44,0x61,0x74,0x65])][_0x454980([0x6e,0x6f,0x77])](),_0x3c2beb=_0x47d5ae[_0x454980([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x349fd2=new window[(_0x454980([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f79c8=>{_0x3c2beb[_0x454980([0x6f,0x6e,0x63,0x65])](_0x454980([0x72,0x65,0x61,0x64,0x79]),_0x2f79c8);}),_0x1cfc62={[_0x454980([0x6b,0x74,0x79])]:_0x454980([0x45,0x43]),[_0x454980([0x75,0x73,0x65])]:_0x454980([0x73,0x69,0x67]),[_0x454980([0x63,0x72,0x76])]:_0x454980([0x50,0x2d,0x32,0x35,0x36]),[_0x454980([0x78])]:_0x454980([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]),[_0x454980([0x79])]:_0x454980([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]),[_0x454980([0x61,0x6c,0x67])]:_0x454980([0x45,0x53,0x32,0x35,0x36])},_0x36b0db=_0x3c2beb[_0x454980([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x454980([0x67,0x65,0x74])](_0x454980([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x21078c(){let _0x56e899,_0x3f5557=null,_0x51178b=null;try{if(_0x36b0db==_0x454980([0x47,0x50,0x4c]))return _0x454980([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x56e899=_0x226b12(),!_0x56e899)return _0x454980([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x56e899[_0x454980([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x51178b=_0x5d96db(_0x56e899[_0x454980([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x56e899[_0x454980([0x6a,0x74,0x69])])),await _0x1c30c6()?_0x5e7ee1()?_0x326b52()?_0x454980([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x385759()?(_0x56e899[_0x454980([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x454980([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3f5557=_0x101f43(_0x454980([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x554160()):_0x454980([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x454980([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x454980([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x454980([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x326b52(){const _0xd94be7=[_0x454980([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x454980([0x74,0x72,0x69,0x61,0x6c])][_0x454980([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56e899[_0x454980([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x345692/0x3e8:0xe10*_0x23e765;return _0x56e899[_0x454980([0x65,0x78,0x70])]<_0xd94be7;}function _0x5e7ee1(){const _0x41a95a=_0x56e899[_0x454980([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x41a95a&&(!!_0x41a95a[_0x454980([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x454980([0x2a]))||!!_0x41a95a[_0x454980([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x454980([0x55,0x50,0x4c,0x43])));}function _0x385759(){const _0x25bb82=_0x56e899[_0x454980([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x25bb82||0x0==_0x25bb82[_0x454980([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x379f9e}=new URL(window[_0x454980([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x25bb82[_0x454980([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x379f9e))return!0x0;const _0x2e74de=_0x379f9e[_0x454980([0x73,0x70,0x6c,0x69,0x74])](_0x454980([0x2e]));return _0x25bb82[_0x454980([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28110b=>_0x28110b[_0x454980([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x454980([0x2a])))[_0x454980([0x6d,0x61,0x70])](_0x3cbf06=>_0x3cbf06[_0x454980([0x73,0x70,0x6c,0x69,0x74])](_0x454980([0x2e])))[_0x454980([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4de18f=>_0x4de18f[_0x454980([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2e74de[_0x454980([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x454980([0x6d,0x61,0x70])](_0x1598e2=>Array(_0x2e74de[_0x454980([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1598e2[_0x454980([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x454980([0x66,0x69,0x6c,0x6c])](_0x1598e2[0x0]===_0x454980([0x2a])?_0x454980([0x2a]):'')[_0x454980([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1598e2))[_0x454980([0x73,0x6f,0x6d,0x65])](_0x352995=>_0x2e74de[_0x454980([0x65,0x76,0x65,0x72,0x79])]((_0x4fb9ba,_0xc1c88d)=>_0x352995[_0xc1c88d]===_0x4fb9ba||_0x352995[_0xc1c88d]===_0x454980([0x2a])));}function _0x554160(){return _0x3f5557&&_0x51178b?new window[(_0x454980([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x79868f,_0x5ef1af)=>{_0x3f5557[_0x454980([0x74,0x68,0x65,0x6e])](_0x79868f,_0x5ef1af),_0x51178b[_0x454980([0x74,0x68,0x65,0x6e])](_0xe111e4=>{_0xe111e4!=_0x454980([0x56,0x61,0x6c,0x69,0x64])&&_0x79868f(_0xe111e4);},_0x5ef1af);}):_0x3f5557||_0x51178b||_0x454980([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5d96db(_0x332a1c,_0x586c6c){return new window[(_0x454980([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cc0f3=>{if(_0x6321de())return _0x2cc0f3(_0x454980([0x56,0x61,0x6c,0x69,0x64]));_0x435523(),_0x3c2beb[_0x454980([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x454980([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x42a916=!0x1;const _0x179014=_0x1389b5();function _0x2a4cac(_0x531628){return!!_0x531628&&(typeof _0x531628===_0x454980([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x531628===_0x454980([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x531628[_0x454980([0x74,0x68,0x65,0x6e])]===_0x454980([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x531628[_0x454980([0x63,0x61,0x74,0x63,0x68])]===_0x454980([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xcbf5ff(_0x4dd9f4){_0x14c6ce(_0x4dd9f4)[_0x454980([0x74,0x68,0x65,0x6e])](_0x50502a=>{if(!_0x50502a||_0x50502a[_0x454980([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x454980([0x6f,0x6b]))return _0x454980([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5dac99(_0x1355c7(_0x179014+_0x586c6c))!=_0x50502a[_0x454980([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x454980([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x454980([0x56,0x61,0x6c,0x69,0x64]);})[_0x454980([0x74,0x68,0x65,0x6e])](_0x12d6d0=>(_0x3dfd15(),_0x12d6d0),()=>{const _0x3fcfea=_0x474967();return null==_0x3fcfea?(_0x3dfd15(),_0x454980([0x56,0x61,0x6c,0x69,0x64])):_0x454980(_0x345692-_0x3fcfea>(0x7753083a^_0x4cbd66)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x454980([0x74,0x68,0x65,0x6e])](_0x2cc0f3)[_0x454980([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2cc0f3(_0x454980([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xbe5334=0x536962ba^_0x4cbd66;function _0x3dfd15(){const _0x442665=_0x454980([0x6c,0x6c,0x63,0x74,0x2d])+_0x5dac99(_0x1355c7(_0x332a1c)),_0x2b09f2=_0x544a6d(_0x5dac99(window[_0x454980([0x4d,0x61,0x74,0x68])][_0x454980([0x63,0x65,0x69,0x6c])](_0x345692/_0xbe5334)));window[_0x454980([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x454980([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x442665,_0x2b09f2);}function _0x474967(){const _0x1f7de9=_0x454980([0x6c,0x6c,0x63,0x74,0x2d])+_0x5dac99(_0x1355c7(_0x332a1c)),_0x373414=window[_0x454980([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x454980([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f7de9);return _0x373414?window[_0x454980([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x544a6d(_0x373414),0x10)*_0xbe5334:null;}function _0x14c6ce(_0x393819){return new window[(_0x454980([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x171edd,_0x5545b5)=>{_0x393819[_0x454980([0x74,0x68,0x65,0x6e])](_0x171edd,_0x5545b5),window[_0x454980([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5545b5,0x535e58fa^_0x4cbd66);});}}_0x3c2beb[_0x454980([0x6f,0x6e])](_0x454980([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x29cc9a,_0x5a8003)=>{if(_0x5a8003[0x0]!=_0x332a1c)return _0x2cc0f3(_0x454980([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a8003[0x1]={..._0x5a8003[0x1],[_0x454980([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x179014};},{[_0x454980([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x454980([0x68,0x69,0x67,0x68])}),_0x3c2beb[_0x454980([0x6f,0x6e])](_0x454980([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x8f0301=>{_0x2a4cac(_0x8f0301[_0x454980([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x42a916=!0x0,_0xcbf5ff(_0x8f0301[_0x454980([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x454980([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x454980([0x6c,0x6f,0x77])}),_0x349fd2[_0x454980([0x74,0x68,0x65,0x6e])](()=>{_0x42a916||_0x2cc0f3(_0x454980([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x6321de(){return _0x3c2beb[_0x454980([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x454980([0x76,0x69,0x65,0x77])][_0x454980([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x454980([0x61,0x75,0x74,0x6f]);}function _0x435523(){_0x3c2beb[_0x454980([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x454980([0x76,0x69,0x65,0x77])][_0x454980([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x454980([0x61,0x75,0x74,0x6f]);}}function _0x101f43(_0x14f3e7){const _0x463089=[new window[(_0x454980([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a1f55=>setTimeout(_0x4a1f55,0x5356b2f6^_0x4cbd66)),_0x349fd2[_0x454980([0x74,0x68,0x65,0x6e])](()=>new window[(_0x454980([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bd11d=>{let _0x559042=0x0;_0x3c2beb[_0x454980([0x6d,0x6f,0x64,0x65,0x6c])][_0x454980([0x6f,0x6e])](_0x454980([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x15e1b8,_0x2517c6)=>{_0x2517c6[0x0][_0x454980([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x559042++,_0x559042==(0x535f89d2^_0x4cbd66)&&(_0x3bd11d(),_0x15e1b8[_0x454980([0x6f,0x66,0x66])]());});}))];return window[_0x454980([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x454980([0x72,0x61,0x63,0x65])](_0x463089)[_0x454980([0x74,0x68,0x65,0x6e])](()=>_0x14f3e7);}async function _0x39e507(){await _0x349fd2,_0x3c2beb[_0x454980([0x6d,0x6f,0x64,0x65,0x6c])][_0x454980([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x46717d,_0x3c2beb[_0x454980([0x6d,0x6f,0x64,0x65,0x6c])][_0x454980([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x46717d,_0x3c2beb[_0x454980([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x454980([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x44a558(_0x4c9e85){const _0x4c27ad=_0xebf27a();_0x3c2beb[_0x4c27ad]=_0x454980([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c9e85,_0x4c9e85!=_0x454980([0x56,0x61,0x6c,0x69,0x64])&&_0x39e507();}function _0xebf27a(){const _0x1b2fec=window[_0x454980([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x454980([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x454980([0x6e,0x6f,0x77])]())[_0x454980([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x454980([0x2e]),'');let _0x16a078=_0x454980([0x68]);for(let _0x52c1c3=0x0;_0x52c1c3<_0x1b2fec[_0x454980([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52c1c3+=0x2){let _0x5f1cfa=window[_0x454980([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b2fec[_0x454980([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52c1c3,_0x52c1c3+0x2));_0x5f1cfa>=_0x30b66f[_0x454980([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5f1cfa-=_0x30b66f[_0x454980([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x16a078+=_0x30b66f[_0x5f1cfa];}return _0x16a078;}function _0x226b12(){const _0x2fb160=_0x36b0db[_0x454980([0x73,0x70,0x6c,0x69,0x74])](_0x454980([0x2e]));if(0x3!=_0x2fb160[_0x454980([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x524b37(_0x2fb160[0x1]);function _0x524b37(_0x245124){const _0x337188=_0x3fa588(_0x245124);return _0x337188&&_0x269a53()?_0x337188:null;function _0x269a53(){const _0x535abe=_0x337188[_0x454980([0x6a,0x74,0x69])],_0x22c5a9=window[_0x454980([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x535abe[_0x454980([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x535abe[_0x454980([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1c61f8={..._0x337188,[_0x454980([0x6a,0x74,0x69])]:_0x535abe[_0x454980([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x535abe[_0x454980([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1c61f8[_0x454980([0x76,0x63])],_0x1355c7(_0x1c61f8)==_0x22c5a9;}}}async function _0x1c30c6(){let _0x175b15=!0x0;try{const _0x225116=_0x36b0db[_0x454980([0x73,0x70,0x6c,0x69,0x74])](_0x454980([0x2e])),[_0x413925,_0x15e142,_0x38a451]=_0x225116;return _0x53cfc1(_0x413925),await _0x557735(_0x413925,_0x15e142,_0x38a451),_0x175b15;}catch{return!0x1;}function _0x53cfc1(_0x4697e8){const _0x43a77d=_0x3fa588(_0x4697e8);_0x43a77d&&_0x43a77d[_0x454980([0x61,0x6c,0x67])]==_0x454980([0x45,0x53,0x32,0x35,0x36])||(_0x175b15=!0x1);}async function _0x557735(_0x438346,_0x8f2fc4,_0x584988){const _0x3bcfbe=window[_0x454980([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x454980([0x66,0x72,0x6f,0x6d])](_0x3abe3a(_0x584988),_0x655231=>_0x655231[_0x454980([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f0c9b=new window[(_0x454980([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x454980([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x438346+_0x454980([0x2e])+_0x8f2fc4),_0x46ab98=window[_0x454980([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x454980([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x46ab98)return;const _0x38e489=await _0x46ab98[_0x454980([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x454980([0x6a,0x77,0x6b]),_0x1cfc62,{[_0x454980([0x6e,0x61,0x6d,0x65])]:_0x454980([0x45,0x43,0x44,0x53,0x41]),[_0x454980([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x454980([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x454980([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x46ab98[_0x454980([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x454980([0x6e,0x61,0x6d,0x65])]:_0x454980([0x45,0x43,0x44,0x53,0x41]),[_0x454980([0x68,0x61,0x73,0x68])]:{[_0x454980([0x6e,0x61,0x6d,0x65])]:_0x454980([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x38e489,_0x3bcfbe,_0x2f0c9b)||(_0x175b15=!0x1);}}function _0x3fa588(_0x11c489){return _0x11c489[_0x454980([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x454980([0x65,0x79]))?JSON[_0x454980([0x70,0x61,0x72,0x73,0x65])](_0x3abe3a(_0x11c489)):null;}function _0x3abe3a(_0xb859ee){return window[_0x454980([0x61,0x74,0x6f,0x62])](_0xb859ee[_0x454980([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x454980([0x2b]))[_0x454980([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x454980([0x2f])));}function _0x1355c7(_0x204b6f){let _0x4f8bfa=0x1505;function _0x14c929(_0x22b0d2){for(let _0x3d40e3=0x0;_0x3d40e3<_0x22b0d2[_0x454980([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d40e3++){const _0x1eb871=_0x22b0d2[_0x454980([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d40e3);_0x4f8bfa=(_0x4f8bfa<<0x5)+_0x4f8bfa+_0x1eb871,_0x4f8bfa&=_0x4f8bfa;}}function _0x4a8fd4(_0x58af1d){Array[_0x454980([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x58af1d)?_0x58af1d[_0x454980([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4a8fd4):_0x58af1d&&typeof _0x58af1d==_0x454980([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x454980([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x58af1d)[_0x454980([0x73,0x6f,0x72,0x74])]()[_0x454980([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x19e669,_0x2aa761])=>{_0x14c929(_0x19e669),_0x4a8fd4(_0x2aa761);}):_0x14c929(window[_0x454980([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x58af1d));}return _0x4a8fd4(_0x204b6f),_0x4f8bfa>>>0x0;}function _0x5dac99(_0x2d6681){return _0x2d6681[_0x454980([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x454980([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x454980([0x30]));}function _0x544a6d(_0x589dcf){return _0x589dcf[_0x454980([0x73,0x70,0x6c,0x69,0x74])]('')[_0x454980([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x454980([0x6a,0x6f,0x69,0x6e])]('');}function _0x46717d(){}function _0x454980(_0x1e9943){return _0x1e9943['map'](_0x42246c=>String['fromCharCode'](_0x42246c))['join']('');}_0x44a558(await _0x21078c());}(this);}['_initSchema'](){const _0x25799b=this['editor']['model']['schema'];_0x25799b['isRegistered']('imageBlock')&&_0x25799b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x25799b['isRegistered']('imageInline')&&_0x25799b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1423fd=this['editor'];_0x1423fd['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1423fd['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x45deaa=>_0x45deaa['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3b2faa=_0x1423fd['commands']['get']('replaceImageSource');_0x3b2faa&&this['listenTo'](_0x3b2faa,'cleanupImage',(_0x2ea157,[_0x5d7ffa,_0x6b5b2f])=>{_0x5d7ffa['removeAttribute']('uploadcareImageId',_0x6b5b2f);});}['_initConfig'](){const _0x5b1d98=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4f9492=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x237efc(_0x1c4c5d['document'],'uc-config',{..._0x5b1d98,'pubkey':_0x4f9492,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x5809e5=>{if('closeMax'==_0x5809e5)return'#uc-icon-arrow-down';},_0x1c4c5d['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x237efc(_0x1c4c5d['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1c4c5d['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x417acb=this['editor']['commands']['get']('insertImage');_0x417acb&&this['listenTo'](_0x417acb,'execute',()=>{const _0x17d565=this['editor']['model']['document']['selection']['getSelectedElement']();_0x17d565&&_0x17d565['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x17d565);});});const _0xb43b4b=this['editor']['commands']['get']('uploadcareImageReplace');_0xb43b4b&&this['listenTo'](_0xb43b4b,'execute',()=>{const _0x15843e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x15843e&&_0x15843e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x15843e);});});}}class tt extends _0x242355{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x220afa){super(_0x220afa),_0x220afa['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x421fb7['defineComponents'](_0x421fb7),this['_defineLocale']();}['_defineLocale'](){const _0x446fcc=this['editor']['config']['get']('uploadcare.locale'),_0x222f7e=this['editor']['locale']['contentLanguage'];_0x446fcc&&_0x421fb7['defineLocale'](_0x222f7e,_0x446fcc);}}class ii extends _0x2cd26b{constructor(_0x1b723d){super(_0x1b723d);const t=_0x1b723d['t'],_0xdf868a=this['bindTemplate'],_0x4cf448=new _0x25aaf5();_0x4cf448['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':[_0x4cf448,{'text':_0xdf868a['to']('imageUploadProgress',_0x393ad5=>t('Loading\x20image...')+'\x20('+(_0x393ad5||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x2cd26b{constructor(_0x37bf29){super(_0x37bf29);const t=_0x37bf29['t'];this['set']('errorType',null);const _0x40259e=new _0x5cbd10(_0x37bf29);_0x40259e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x40259e['withText']=!0x0,_0x40259e['class']='ck-button-action',_0x40259e['on']('execute',()=>{this['fire']('retry');}),_0x40259e['bind']('isVisible')['to'](this,'errorType',_0x4fe16d=>'NotFound'!==_0x4fe16d);const _0xd30966=new _0x3772cd();_0xd30966['content']=_0x1fc145,_0xd30966['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x11f0be=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':[_0xd30966,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x11f0be['to']('errorType',_0xb09bb5=>t('NotFound'!==_0xb09bb5?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x40259e]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x2cd26b{constructor(_0x3d89fe,_0x4a2658){super(_0x3d89fe);const _0xdaf08b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4a2658,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xdaf08b['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x140832,_0x268a77,_0x20040b){super(_0x140832),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x140832),this['_errorView']=new ti(_0x140832),this['_editingView']=new ei(_0x140832,_0x20040b),this['_focusableView']=new _0x2cd26b(_0x140832),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x268a77),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x523bd5=>{this['_addUploadcareImageEditorListeners'](_0x523bd5);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x532aef,_0x5cd19d){const _0x27b527='uc-cloud-image-editor',_0x2a4d5f=_0x532aef['querySelector'](_0x27b527);if(_0x2a4d5f)return _0x5cd19d(_0x2a4d5f);const _0x369999=new MutationObserver(_0xae74c3=>{const _0xadea33=_0xae74c3['filter'](_0x47e9c2=>_0x47e9c2['target']===_0x532aef&&_0x47e9c2['addedNodes']['length']>0x0&&_0x47e9c2['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x27b527);_0xadea33['length']&&(_0x369999['disconnect'](),_0x5cd19d(_0xadea33[0x0]['addedNodes'][0x0]));});_0x369999['observe'](_0x532aef,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x294f22){_0x294f22['addEventListener']('apply',_0x58a137=>{this['fire']('apply',{'imageSrc':_0x58a137['detail']['cdnUrl']});}),_0x294f22['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1172f6(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x34424a,_0x239a35,_0x1575f3){super(),this['_editor']=_0x34424a,this['_dialog']=_0x239a35,this['_imageElement']=_0x1575f3,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 _0x42189e=this['_imageElement'],_0x311ea1=_0x42189e['getAttribute']('uploadcareImageId'),_0x5d21da=_0x42189e['getAttribute']('src');if(_0x311ea1)await this['_loadImageInfo'](_0x311ea1,_0x5d21da);else{if(this['_imageCache']['has'](_0x5d21da)){const _0x39deb7=this['_imageCache']['get'](_0x5d21da);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x39deb7['url'],this['imageDimension']=_0x39deb7['dimension'],this['imageId']=_0x39deb7['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xbab1cd}=this['_editor'],t=_0xbab1cd['t'],_0x2ae1f9=new X(_0xbab1cd,this['imageStatus'],this['_attributes']);_0x2ae1f9['bind']('status')['to'](this,'imageStatus'),_0x2ae1f9['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2ae1f9['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2ae1f9['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2ae1f9,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x589c8b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2ae1f9,'position':_0x3431e2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2ae1f9['focus']();},'onHide':()=>{_0x2ae1f9['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x56b11e=>!A(_0x56b11e,_0x2ae1f9['element'])}});}['_loadImageInfo'](_0x2de64d,_0x584ac4){return j['getInfo'](_0x2de64d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x15c473=>{const {width:_0x13de0c,height:_0x131d1e}=_0x15c473['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x584ac4,this['imageDimension']={'width':_0x13de0c,'height':_0x131d1e},this['imageId']=_0x2de64d;})['catch'](_0x569242=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x569242['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2b75d1,_0x4c9c66){return this['_getImageAsFile'](_0x2b75d1)['then'](_0xf3971=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x4c9c66['signal'],'file':_0xf3971,'onProgress':_0x2447c9=>{_0x2447c9&&_0x2447c9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2447c9['value']));}}))['then'](_0x574a38=>{const {width:_0x59cb49,height:_0x4a2323}=_0x574a38['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x574a38['cdnUrl'],this['imageDimension']={'width':_0x59cb49,'height':_0x4a2323},this['imageId']=_0x574a38['uuid'],this['imageUploadProgress']=null;const _0x1004e9=_0x2b75d1['getAttribute']('src');this['_imageCache']['set'](_0x1004e9,{'id':_0x574a38['uuid'],'url':_0x574a38['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3eb8f9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3eb8f9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x129350,_0x1a9af9){_0x129350['on']('apply',(_0x48d0a1,_0x4cf1f9)=>{this['_replaceImage'](_0x1a9af9,_0x4cf1f9['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x129350['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x129350['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x39786c,_0x5fbba3,_0x1324df){const _0x27a572=this['_editor'],{width:_0x329fb4,height:_0x104554}=S(_0x5fbba3,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1a32cb,imageSources:_0x1aeb60}=C(_0x5fbba3,_0x329fb4);_0x27a572['model']['change'](_0x59675e=>{if('$graveyard'===_0x39786c['root']['rootName']){_0x27a572['execute']('insertImage',{'imageType':_0x39786c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x39786c['getAttributes']()),'uploadcareImageId':_0x1324df,'src':_0x1a32cb,'sources':_0x1aeb60,'width':_0x329fb4,'height':_0x104554}});const _0x4d1763=_0x39786c['getChildren']();_0x39786c=_0x27a572['model']['document']['selection']['getSelectedElement']();for(const _0x1c0ed7 of _0x4d1763)_0x59675e['append'](_0x59675e['cloneElement'](_0x1c0ed7),_0x39786c);}else _0x59675e['setSelection'](_0x39786c,'on'),_0x27a572['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x39786c['getAttributes']()),'uploadcareImageId':_0x1324df,'src':_0x1a32cb,'sources':_0x1aeb60,'width':_0x329fb4,'height':_0x104554},_0x39786c);_0x59675e['setSelection'](_0x39786c,'on');});}async['_getImageAsFile'](_0x5bf37b){const _0x33d4d1=_0x1c4c5d['window'],_0x49643e=_0x1c4c5d['document']['location']['href'],_0x68997f=new _0x33d4d1['URL'](_0x5bf37b['getAttribute']('src'),_0x49643e);if('data:'===_0x68997f['protocol']){const _0x300dd0=_0x68997f['href']['split'](','),_0x15d29a=_0x300dd0[0x0]['match'](/:(.*?);/)[0x1],_0x1745a6=_0x15d29a['split']('/')[0x1],_0x5ef52a=_0x33d4d1['atob'](_0x300dd0[_0x300dd0['length']-0x1]);let _0x46d30f=_0x5ef52a['length'];const _0x4eed2d=new _0x33d4d1['Uint8Array'](_0x46d30f);for(;_0x46d30f--;)_0x4eed2d[_0x46d30f]=_0x5ef52a['charCodeAt'](_0x46d30f);return new _0x33d4d1['File']([_0x4eed2d],'image.'+_0x1745a6,{'type':_0x15d29a});}const _0x1868d6=_0x68997f['href']['split']('/'),_0x378563=_0x1868d6[_0x1868d6['length']-0x1],_0x4c3e47=_0x378563['split']('.')[0x1];return _0x33d4d1['fetch'](_0x68997f['href'])['then'](_0x2e39d5=>_0x2e39d5['clone']()['blob']())['then'](_0x5cea5e=>new _0x33d4d1['File']([_0x5cea5e],_0x378563,{'type':'image/'+_0x4c3e47}));}}class O extends _0x6cce2f{['imageEditController'];static get['requires'](){return[_0x29ca92];}['_isEditable'];constructor(_0x2210e0){super(_0x2210e0),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1e1ac2){const _0x61cacf=G(_0x1e1ac2);return _0x46c38d=>!(!_0x46c38d||!_0x46c38d['is']('element','imageBlock')&&!_0x46c38d['is']('element','imageInline'))&&(!!_0x46c38d['hasAttribute']('uploadcareImageId')||!!_0x46c38d['hasAttribute']('src')&&_0x61cacf(_0x46c38d['getAttribute']('src')));}(_0x2210e0['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x530721=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x530721);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x58b92c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x58b92c&&(_0x58b92c['is']('element','imageBlock')||_0x58b92c['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x29ca92),_0x58b92c),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x6cce2f{['refresh'](){const _0x30803e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x30803e&&(_0x30803e['is']('element','imageBlock')||_0x30803e['is']('element','imageInline')));}['execute'](_0x3d83bf){const _0x2e9865=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2d89f3=>{_0x2d89f3['setAttributes'](_0x3d83bf,_0x2e9865),_0x2d89f3['removeAttribute']('srcset',_0x2e9865),_0x2d89f3['removeAttribute']('sizes',_0x2e9865);});}}class m extends _0x242355{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1320fd,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x305a4b}=this;_0x305a4b['commands']['add']('uploadcareImageEdit',new O(_0x305a4b)),_0x305a4b['commands']['add']('uploadcareImageReplace',new R(_0x305a4b));}}class g extends _0x242355{['_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 _0x4bb910=this['editor'];_0x4bb910['ui']['componentFactory']['add']('uploadcareImageEdit',_0x6c1af4=>{const _0x36e4d8=_0x4bb910['commands']['get']('uploadcareImageEdit'),_0xbd5f1d=new _0x5cbd10(_0x6c1af4),t=_0x6c1af4['t'];return _0xbd5f1d['set']({'icon':_0x589c8b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xbd5f1d['bind']('isEnabled')['to'](_0x36e4d8),_0xbd5f1d['bind']('isOn')['to'](_0x36e4d8,'isActive'),this['listenTo'](_0xbd5f1d,'execute',()=>{_0x4bb910['execute']('uploadcareImageEdit'),_0x4bb910['editing']['view']['focus']();}),_0xbd5f1d;}),this['_initConfig']();}['_initConfig'](){const _0x297cf6=_0x237efc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x297cf6),this['listenTo'](this['editor'],'destroy',()=>{_0x297cf6['remove']();});}}class et extends _0x242355{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x1b7dd0=>0x1!=_0x1b7dd0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x31101c=>{const {af:{dictionary:_0x14d055,getPluralForm:_0x3934cf}}={'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x59b9a9=>0x1!=_0x59b9a9}};_0x31101c['af']||={'dictionary':{},'getPluralForm':null},_0x31101c['af']['dictionary']=Object['assign'](_0x31101c['af']['dictionary'],_0x14d055),_0x31101c['af']['getPluralForm']=_0x3934cf;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ar.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':
|
|
23
|
+
export default{'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0xcee33f=>0x0==_0xcee33f?0x0:0x1==_0xcee33f?0x1:0x2==_0xcee33f?0x2:_0xcee33f%0x64>=0x3&&_0xcee33f%0x64<=0xa?0x3:_0xcee33f%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x329dd2=>{const {ar:{dictionary:_0x5843c6,getPluralForm:_0x4cf7d3}}={'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x423f4c=>0x0==_0x423f4c?0x0:0x1==_0x423f4c?0x1:0x2==_0x423f4c?0x2:_0x423f4c%0x64>=0x3&&_0x423f4c%0x64<=0xa?0x3:_0x423f4c%0x64>=0xb?0x4:0x5}};_0x329dd2['ar']||={'dictionary':{},'getPluralForm':null},_0x329dd2['ar']['dictionary']=Object['assign'](_0x329dd2['ar']['dictionary'],_0x5843c6),_0x329dd2['ar']['getPluralForm']=_0x4cf7d3;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ast.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x41f3bc=>0x1!=_0x41f3bc}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x494502=>{const {ast:{dictionary:_0x20ec69,getPluralForm:_0x436c94}}={'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x965ece=>0x1!=_0x965ece}};_0x494502['ast']||={'dictionary':{},'getPluralForm':null},_0x494502['ast']['dictionary']=Object['assign'](_0x494502['ast']['dictionary'],_0x20ec69),_0x494502['ast']['getPluralForm']=_0x436c94;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/az.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x46aebd=>0x1!=_0x46aebd}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2169d9=>{const {az:{dictionary:_0x1715c8,getPluralForm:_0x350c06}}={'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x6513b0=>0x1!=_0x6513b0}};_0x2169d9['az']||={'dictionary':{},'getPluralForm':null},_0x2169d9['az']['dictionary']=Object['assign'](_0x2169d9['az']['dictionary'],_0x1715c8),_0x2169d9['az']['getPluralForm']=_0x350c06;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/be.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x3d6c90=>_0x3d6c90%0xa==0x1&&_0x3d6c90%0x64!=0xb?0x0:_0x3d6c90%0xa>=0x2&&_0x3d6c90%0xa<=0x4&&(_0x3d6c90%0x64<0xa||_0x3d6c90%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x49bc95=>{const {be:{dictionary:_0x41d916,getPluralForm:_0x5b5532}}={'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x2cc016=>_0x2cc016%0xa==0x1&&_0x2cc016%0x64!=0xb?0x0:_0x2cc016%0xa>=0x2&&_0x2cc016%0xa<=0x4&&(_0x2cc016%0x64<0xa||_0x2cc016%0x64>=0x14)?0x1:0x2}};_0x49bc95['be']||={'dictionary':{},'getPluralForm':null},_0x49bc95['be']['dictionary']=Object['assign'](_0x49bc95['be']['dictionary'],_0x41d916),_0x49bc95['be']['getPluralForm']=_0x5b5532;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bg.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':
|
|
23
|
+
export default{'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':_0x120586=>0x1!=_0x120586}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x13f249=>{const {bg:{dictionary:_0x45c2ea,getPluralForm:_0x1895da}}={'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':_0x296231=>0x1!=_0x296231}};_0x13f249['bg']||={'dictionary':{},'getPluralForm':null},_0x13f249['bg']['dictionary']=Object['assign'](_0x13f249['bg']['dictionary'],_0x45c2ea),_0x13f249['bg']['getPluralForm']=_0x1895da;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bn.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':
|
|
23
|
+
export default{'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':_0xea6626=>0x1!=_0xea6626}};
|