@ckeditor/ckeditor5-uploadcare 45.2.1 → 46.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index-editor.css +2 -2
- package/dist/index.css +2 -2
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/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/package.json +11 -11
- package/src/augmentation.d.ts +4 -4
- package/src/index.d.ts +10 -8
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.d.ts +2 -2
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.d.ts +3 -3
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.d.ts +3 -3
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.d.ts +2 -2
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.d.ts +2 -3
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.d.ts +13 -3
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +3 -3
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.d.ts +2 -2
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.d.ts +2 -2
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.d.ts +3 -4
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.d.ts +3 -3
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.d.ts +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.d.ts +2 -2
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.d.ts +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
10
|
import { Dialog } from 'ckeditor5/src/ui.js';
|
|
11
|
-
import UploadcareEditing from './uploadcareediting.js';
|
|
11
|
+
import { UploadcareEditing } from './uploadcareediting.js';
|
|
12
12
|
import type { UploadcareSource } from './uploadcareconfig.js';
|
|
13
13
|
/**
|
|
14
14
|
* The Uploadcare command. It is used by the {@link module:uploadcare/uploadcareediting~UploadcareEditing Uploadcare editing feature}
|
|
@@ -18,7 +18,7 @@ import type { UploadcareSource } from './uploadcareconfig.js';
|
|
|
18
18
|
* editor.execute( 'uploadcare' );
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
21
|
+
export declare class UploadcareCommand extends Command {
|
|
22
22
|
/**
|
|
23
23
|
* @inheritDoc
|
|
24
24
|
*/
|
package/src/uploadcarecommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x2ba6(_0xe760e0,_0x105d26){var _0x23ddc8=_0x23dd();return _0x2ba6=function(_0x2ba649,_0x2cf2a3){_0x2ba649=_0x2ba649-0x14f;var _0x32b06d=_0x23ddc8[_0x2ba649];return _0x32b06d;},_0x2ba6(_0xe760e0,_0x105d26);}var _0x1a8beb=_0x2ba6;(function(_0x57946f,_0x394a73){var _0x1d7ee3=_0x2ba6,_0x2b6126=_0x57946f();while(!![]){try{var _0x124621=parseInt(_0x1d7ee3(0x165))/0x1*(parseInt(_0x1d7ee3(0x156))/0x2)+parseInt(_0x1d7ee3(0x15c))/0x3+parseInt(_0x1d7ee3(0x153))/0x4*(parseInt(_0x1d7ee3(0x167))/0x5)+parseInt(_0x1d7ee3(0x15e))/0x6+parseInt(_0x1d7ee3(0x166))/0x7*(parseInt(_0x1d7ee3(0x152))/0x8)+parseInt(_0x1d7ee3(0x159))/0x9*(-parseInt(_0x1d7ee3(0x154))/0xa)+-parseInt(_0x1d7ee3(0x157))/0xb*(parseInt(_0x1d7ee3(0x151))/0xc);if(_0x124621===_0x394a73)break;else _0x2b6126['push'](_0x2b6126['shift']());}catch(_0x335e8a){_0x2b6126['push'](_0x2b6126['shift']());}}}(_0x23dd,0x6e636));import{Command as _0x4ded2a}from'ckeditor5/src/core.js';import{Dialog as _0x323ea7}from'ckeditor5/src/ui.js';function _0x23dd(){var _0x2c6a9a=['8037612CdnPwN','execute','isEnabled','1176471Lnuotk','insertImage','1524624luKpHM','commands','get','_checkEnabled','requires','refresh','editor','47675LpwwBz','344624gWiHOC','95qSdKrS','destroy','plugins','2436novbIZ','96gPAuNU','39496ajUQKR','10FIxkFU','_editing','4pZvzPO','9471jSuTnZ','_controller'];_0x23dd=function(){return _0x2c6a9a;};return _0x23dd();}import{UploadcareEditing as _0x3a8bea}from'./uploadcareediting.js';import{UploadcareController as _0x4d9b8a}from'./ui/uploadcarecontroller.js';export class UploadcareCommand extends _0x4ded2a{[_0x1a8beb(0x155)];[_0x1a8beb(0x158)]=null;static get[_0x1a8beb(0x162)](){return[_0x323ea7,_0x3a8bea];}constructor(_0x534aa2){var _0x26d21a=_0x1a8beb;super(_0x534aa2),this[_0x26d21a(0x155)]=_0x534aa2[_0x26d21a(0x150)][_0x26d21a(0x160)](_0x3a8bea);}[_0x1a8beb(0x163)](){var _0x53a63e=_0x1a8beb;this[_0x53a63e(0x15b)]=this[_0x53a63e(0x161)]();}[_0x1a8beb(0x15a)](_0x42c6df){var _0xd923ac=_0x1a8beb;this[_0xd923ac(0x158)]&&(this[_0xd923ac(0x158)][_0xd923ac(0x14f)](),this[_0xd923ac(0x158)]=null),this[_0xd923ac(0x158)]=new _0x4d9b8a(this[_0xd923ac(0x164)],this[_0xd923ac(0x155)],_0x42c6df);}[_0x1a8beb(0x161)](){var _0x182b2a=_0x1a8beb;return this[_0x182b2a(0x164)][_0x182b2a(0x15f)][_0x182b2a(0x160)](_0x182b2a(0x15d))[_0x182b2a(0x15b)];}}
|
|
@@ -114,7 +114,7 @@ export interface UploadcareConfig {
|
|
|
114
114
|
*
|
|
115
115
|
* You can find detailed information in the [Uploadcare documentation](https://uploadcare.com/docs/file-uploader/options/).
|
|
116
116
|
*/
|
|
117
|
-
export interface UploadcareUploaderConfig extends Partial<Omit<ConfigType,
|
|
117
|
+
export interface UploadcareUploaderConfig extends Partial<Omit<ConfigType, UploadcareExcludedKeys | 'sourceList'>> {
|
|
118
118
|
/**
|
|
119
119
|
* Comma-separated list of file sources.
|
|
120
120
|
*
|
|
@@ -135,7 +135,7 @@ export interface UploadcareEditorConfig {
|
|
|
135
135
|
/**
|
|
136
136
|
* All not supported config options.
|
|
137
137
|
*/
|
|
138
|
-
type
|
|
138
|
+
export type UploadcareExcludedKeys = 'imgOnly' | 'removeCopyright' | 'localeName' | 'confirmUpload' | 'cameraMirror' | 'cameraCapture' | 'showEmptyList';
|
|
139
139
|
/**
|
|
140
140
|
* Definition of all available upload sources.
|
|
141
141
|
*/
|
|
@@ -225,4 +225,3 @@ export interface UploadcareAssetImageAttributesDefinition {
|
|
|
225
225
|
height: number;
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
|
-
export {};
|
package/src/uploadcareconfig.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0xd0f3(){var _0x1babc1=['1414399CthCwA','1074677qWKyyi','dropbox','URL','local','OneDrive','GDrive','GPhotos','gphotos','url','41772740AULZNq','239544TYHqUA','8176624GRbxZL','Local','7917798DnONXF','25aongxu','16868Tokxgy','561SNpfoC','onedrive','9ALUmZZ','Facebook','gdrive','facebook','Dropbox'];_0xd0f3=function(){return _0x1babc1;};return _0xd0f3();}(function(_0x47ce6a,_0x58981a){var _0x7a5d0f=_0x2d2d,_0x14255f=_0x47ce6a();while(!![]){try{var _0x1ad7b8=parseInt(_0x7a5d0f(0x119))/0x1+-parseInt(_0x7a5d0f(0x110))/0x2*(parseInt(_0x7a5d0f(0x111))/0x3)+-parseInt(_0x7a5d0f(0x123))/0x4*(parseInt(_0x7a5d0f(0x10f))/0x5)+-parseInt(_0x7a5d0f(0x126))/0x6+-parseInt(_0x7a5d0f(0x118))/0x7+-parseInt(_0x7a5d0f(0x124))/0x8*(parseInt(_0x7a5d0f(0x113))/0x9)+parseInt(_0x7a5d0f(0x122))/0xa;if(_0x1ad7b8===_0x58981a)break;else _0x14255f['push'](_0x14255f['shift']());}catch(_0x340512){_0x14255f['push'](_0x14255f['shift']());}}}(_0xd0f3,0xcb06b));export var UploadcareSource;function _0x2d2d(_0x31104a,_0x54a837){var _0xd0f344=_0xd0f3();return _0x2d2d=function(_0x2d2d16,_0x346f1c){_0x2d2d16=_0x2d2d16-0x10f;var _0x346761=_0xd0f344[_0x2d2d16];return _0x346761;},_0x2d2d(_0x31104a,_0x54a837);}!function(_0x5bc36d){var _0x345a70=_0x2d2d;_0x5bc36d[_0x345a70(0x125)]=_0x345a70(0x11c),_0x5bc36d[_0x345a70(0x11b)]=_0x345a70(0x121),_0x5bc36d[_0x345a70(0x117)]=_0x345a70(0x11a),_0x5bc36d[_0x345a70(0x11e)]=_0x345a70(0x115),_0x5bc36d[_0x345a70(0x114)]=_0x345a70(0x116),_0x5bc36d[_0x345a70(0x11f)]=_0x345a70(0x120),_0x5bc36d[_0x345a70(0x11d)]=_0x345a70(0x112);}(UploadcareSource||(UploadcareSource={}));
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
* @module uploadcare/uploadcareediting
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
10
10
|
import { Dialog } from 'ckeditor5/src/ui.js';
|
|
11
|
-
import UploadcareUploadAdapter from './uploadcareuploadadapter.js';
|
|
11
|
+
import { UploadcareUploadAdapter } from './uploadcareuploadadapter.js';
|
|
12
12
|
import type { UploaderBlock } from '@uploadcare/file-uploader';
|
|
13
13
|
/**
|
|
14
14
|
* The Uploadcare editing feature. It introduces the {@link module:uploadcare/uploadcarecommand~UploadcareCommand command}.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export declare class UploadcareEditing extends Plugin {
|
|
17
17
|
/**
|
|
18
18
|
* @inheritDoc
|
|
19
19
|
*/
|
|
@@ -30,6 +30,12 @@ export default class UploadcareEditing extends Plugin {
|
|
|
30
30
|
* @inheritDoc
|
|
31
31
|
*/
|
|
32
32
|
static get isPremiumPlugin(): true;
|
|
33
|
+
/**
|
|
34
|
+
* A unique ID used to make the `ctx-name` property distinct.
|
|
35
|
+
*
|
|
36
|
+
* This ID ensures that each editor instance references to a different Uploadcare web components.
|
|
37
|
+
*/
|
|
38
|
+
ucContextId: string;
|
|
33
39
|
/**
|
|
34
40
|
* Returns the DOM element that represents the Uploadcare config web component.
|
|
35
41
|
*/
|
|
@@ -38,6 +44,10 @@ export default class UploadcareEditing extends Plugin {
|
|
|
38
44
|
* Returns the DOM element associated with the Uploadcare context web component.
|
|
39
45
|
*/
|
|
40
46
|
get ctxElement(): UploaderBlock | null;
|
|
47
|
+
/**
|
|
48
|
+
* @inheritDoc
|
|
49
|
+
*/
|
|
50
|
+
constructor(editor: Editor);
|
|
41
51
|
/**
|
|
42
52
|
* @inheritDoc
|
|
43
53
|
*/
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2bfd6b=_0x11a5;(function(_0x4e4a2e,_0x4b9840){const _0x3e9765=_0x11a5,_0x2081ce=_0x4e4a2e();while(!![]){try{const _0x587c6d=-parseInt(_0x3e9765(0x1be))/0x1*(parseInt(_0x3e9765(0x1b8))/0x2)+-parseInt(_0x3e9765(0x173))/0x3+parseInt(_0x3e9765(0x17e))/0x4+-parseInt(_0x3e9765(0x1b5))/0x5+parseInt(_0x3e9765(0x176))/0x6+parseInt(_0x3e9765(0x1b2))/0x7*(-parseInt(_0x3e9765(0x1a7))/0x8)+-parseInt(_0x3e9765(0x1ab))/0x9*(-parseInt(_0x3e9765(0x1a2))/0xa);if(_0x587c6d===_0x4b9840)break;else _0x2081ce['push'](_0x2081ce['shift']());}catch(_0x19acb3){_0x2081ce['push'](_0x2081ce['shift']());}}}(_0x3d4f,0x4b83d));function _0x11a5(_0x538b29,_0x25f3da){const _0x3d4fe1=_0x3d4f();return _0x11a5=function(_0x11a580,_0x5360d4){_0x11a580=_0x11a580-0x173;let _0x5e9065=_0x3d4fe1[_0x11a580];return _0x5e9065;},_0x11a5(_0x538b29,_0x25f3da);}import{Plugin as _0x5f4777}from'ckeditor5/src/core.js';import{Dialog as _0x4e28ec}from'ckeditor5/src/ui.js';import{createElement as _0x54e12a,global as _0xfb71fa,uid as _0x568d30}from'ckeditor5/src/utils.js';import _0x35c950 from'./uploadcarecommand.js';import _0x6f3e93 from'./uploadcareuploadadapter.js';function _0x3d4f(){const _0x3fcc57=['add','uploadcare.uploader','map','PictureEditing','_initCtx','once','get','insertImage','data-uc-image-id','selection','view','uploadcareImageId','isOfficialPlugin','uploader','getAttribute','_initConfig','pluginName','isRegistered','uploadcare','listenTo','uc-config','editing','_ctxElement','execute','locale','attributeToAttribute','elementToAttribute','removeAttribute','remove','contentLanguage','642310amwmRB','body','imageBlock','querySelector','_configElement','144wAnCvB','schema','destroy','_initImageProcessingIndicator','207gnynYY','requires','href','true','uc-upload-ctx-provider','_initConversion','conversion','152705ofgmRq','uploadcareImageReplace','uploadcare.pubkey','1860860PcrdHI','for','ctxElement','50HliJnz','getSelectedElement','document','appendChild','downcast','fromCharCode','24415WscsVn','extend','commands','cleanupImage','editor','UploadcareEditing','join','afterInit','\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','1291239EbPEof','config','_initSchema','2418948CMUFvR','#uc-icon-arrow-down','upcast','replaceImageSource','imageInline','input[uploadcare-file-input]','render','iconHrefResolver','937872QZIKkx','init','isPremiumPlugin','configElement','closeMax','model'];_0x3d4f=function(){return _0x3fcc57;};return _0x3d4f();}import{showImageProcessingIndicator as _0x3428e6}from'./utils/editingutils.js';export default class i extends _0x5f4777{[_0x2bfd6b(0x1a6)]=null;[_0x2bfd6b(0x19a)]=null;static get[_0x2bfd6b(0x194)](){const _0x44f329=_0x2bfd6b;return _0x44f329(0x1c3);}static get[_0x2bfd6b(0x1ac)](){const _0x3d1e7c=_0x2bfd6b;return[_0x3d1e7c(0x187),_0x6f3e93,_0x4e28ec];}static get[_0x2bfd6b(0x190)](){return!0x0;}static get[_0x2bfd6b(0x180)](){return!0x0;}get[_0x2bfd6b(0x181)](){const _0x1561b4=_0x2bfd6b;return this[_0x1561b4(0x1a6)];}get[_0x2bfd6b(0x1b7)](){const _0xa7eef1=_0x2bfd6b;return this[_0xa7eef1(0x19a)];}[_0x2bfd6b(0x17f)](){const _0x1be466=_0x2bfd6b,_0x19a5ae=this[_0x1be466(0x1c2)];_0x19a5ae[_0x1be466(0x1c0)][_0x1be466(0x184)](_0x1be466(0x196),new _0x35c950(_0x19a5ae));}[_0x2bfd6b(0x1c5)](){const _0x269ee5=_0x2bfd6b;this[_0x269ee5(0x175)](),this[_0x269ee5(0x1b0)](),this[_0x269ee5(0x193)](),this[_0x269ee5(0x188)](),this[_0x269ee5(0x1aa)](),this[_0x269ee5(0x197)](this[_0x269ee5(0x1c2)],_0x269ee5(0x1a9),()=>{const _0x225f32=_0x269ee5;this[_0x225f32(0x1a6)]&&(this[_0x225f32(0x1a6)][_0x225f32(0x1a0)](),this[_0x225f32(0x1a6)]=null),this[_0x225f32(0x19a)]&&(this[_0x225f32(0x19a)][_0x225f32(0x1a0)](),this[_0x225f32(0x19a)]=null);const _0x997d28=_0xfb71fa[_0x225f32(0x1ba)][_0x225f32(0x1a5)](_0x225f32(0x17b));_0x997d28&&_0x997d28[_0x225f32(0x1a0)]();}),async function(_0x3bc2ec){const _0x43d4e0=_0x28888a([0x66,0x33,0x71,0x67,0x68,0x61,0x36,0x4c,0x49,0x6b,0x37,0x4e,0x78,0x44,0x70,0x6a,0x55,0x73,0x30,0x77,0x6d,0x75,0x64,0x6f,0x31,0x4f,0x32,0x57,0x79,0x6e,0x6c,0x45,0x56,0x42,0x34,0x4d,0x53,0x4a,0x47,0x7a,0x72,0x59,0x69,0x58,0x5a,0x65,0x38,0x4b,0x48,0x50,0x62,0x52,0x46,0x63,0x39,0x76,0x35,0x51,0x74,0x54,0x41,0x43]),_0x317afa=0x6eda3144,_0x2af27d=0x6edd5aec^_0x317afa,_0x51c641=window[_0x28888a([0x44,0x61,0x74,0x65])][_0x28888a([0x6e,0x6f,0x77])](),_0x3c497f=_0x3bc2ec[_0x28888a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5454e0=new window[(_0x28888a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x554328=>{_0x3c497f[_0x28888a([0x6f,0x6e,0x63,0x65])](_0x28888a([0x72,0x65,0x61,0x64,0x79]),_0x554328);}),_0x11795a={[_0x28888a([0x6b,0x74,0x79])]:_0x28888a([0x45,0x43]),[_0x28888a([0x75,0x73,0x65])]:_0x28888a([0x73,0x69,0x67]),[_0x28888a([0x63,0x72,0x76])]:_0x28888a([0x50,0x2d,0x32,0x35,0x36]),[_0x28888a([0x78])]:_0x28888a([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]),[_0x28888a([0x79])]:_0x28888a([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]),[_0x28888a([0x61,0x6c,0x67])]:_0x28888a([0x45,0x53,0x32,0x35,0x36])},_0x4713a0=_0x3c497f[_0x28888a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x28888a([0x67,0x65,0x74])](_0x28888a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3b513a(){let _0x4d49df,_0xa0548d=null,_0x40214a=null;try{if(_0x4713a0==_0x28888a([0x47,0x50,0x4c]))return _0x28888a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4d49df=_0x485d02(),!_0x4d49df)return _0x28888a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4d49df[_0x28888a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x40214a=_0x1f823f(_0x4d49df[_0x28888a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4d49df[_0x28888a([0x6a,0x74,0x69])])),await _0x40b97e()?_0x34e8bf()?_0x55d99e()?_0x28888a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2832e3()?(_0x4d49df[_0x28888a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x28888a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xa0548d=_0x420582(_0x28888a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4d49df[_0x28888a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x28888a([0x74,0x72,0x69,0x61,0x6c])&&(_0xa0548d=_0x420582(_0x28888a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ec28d()):_0x28888a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x28888a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x28888a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x28888a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55d99e(){const _0x39d947=[_0x28888a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x28888a([0x74,0x72,0x69,0x61,0x6c])][_0x28888a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d49df[_0x28888a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x51c641/0x3e8:0xe10*_0x2af27d;return _0x4d49df[_0x28888a([0x65,0x78,0x70])]<_0x39d947;}function _0x34e8bf(){const _0x3c314f=_0x4d49df[_0x28888a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3c314f&&(!!_0x3c314f[_0x28888a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28888a([0x2a]))||!!_0x3c314f[_0x28888a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28888a([0x55,0x50,0x4c,0x43])));}function _0x2832e3(){const _0x520276=_0x11a5,_0x5b1ab9=_0x4d49df[_0x28888a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b1ab9||0x0==_0x5b1ab9[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x57d0dc}=new URL(window[_0x28888a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x520276(0x1ad)]);if(_0x5b1ab9[_0x28888a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57d0dc))return!0x0;const _0x19a82c=_0x57d0dc[_0x28888a([0x73,0x70,0x6c,0x69,0x74])](_0x28888a([0x2e]));return _0x5b1ab9[_0x28888a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38aa1a=>_0x38aa1a[_0x28888a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28888a([0x2a])))[_0x28888a([0x6d,0x61,0x70])](_0x1206db=>_0x1206db[_0x28888a([0x73,0x70,0x6c,0x69,0x74])](_0x28888a([0x2e])))[_0x28888a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11d686=>_0x11d686[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x19a82c[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x28888a([0x6d,0x61,0x70])](_0x4286be=>Array(_0x19a82c[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4286be[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x28888a([0x66,0x69,0x6c,0x6c])](_0x4286be[0x0]===_0x28888a([0x2a])?_0x28888a([0x2a]):'')[_0x28888a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4286be))[_0x28888a([0x73,0x6f,0x6d,0x65])](_0x5399c1=>_0x19a82c[_0x28888a([0x65,0x76,0x65,0x72,0x79])]((_0x6df013,_0x4e808d)=>_0x5399c1[_0x4e808d]===_0x6df013||_0x5399c1[_0x4e808d]===_0x28888a([0x2a])));}function _0x5ec28d(){return _0xa0548d&&_0x40214a?new window[(_0x28888a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x702e32,_0x46a173)=>{_0xa0548d[_0x28888a([0x74,0x68,0x65,0x6e])](_0x702e32,_0x46a173),_0x40214a[_0x28888a([0x74,0x68,0x65,0x6e])](_0x15c14b=>{_0x15c14b!=_0x28888a([0x56,0x61,0x6c,0x69,0x64])&&_0x702e32(_0x15c14b);},_0x46a173);}):_0xa0548d||_0x40214a||_0x28888a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1f823f(_0x2dde52,_0x267adc){return new window[(_0x28888a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2058a7=>{if(_0x2dc615())return _0x2058a7(_0x28888a([0x56,0x61,0x6c,0x69,0x64]));_0x3a728a(),_0x3c497f[_0x28888a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x28888a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5caa09=!0x1;const _0xa2bdc6=_0x568d30();function _0x1a3d6c(_0x6435e8){return!!_0x6435e8&&(typeof _0x6435e8===_0x28888a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6435e8===_0x28888a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6435e8[_0x28888a([0x74,0x68,0x65,0x6e])]===_0x28888a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6435e8[_0x28888a([0x63,0x61,0x74,0x63,0x68])]===_0x28888a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5679d3(_0x159eab){_0x5a6bb5(_0x159eab)[_0x28888a([0x74,0x68,0x65,0x6e])](_0x227ada=>{if(!_0x227ada||_0x227ada[_0x28888a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x28888a([0x6f,0x6b]))return _0x28888a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5ee240(_0x5943c5(_0xa2bdc6+_0x267adc))!=_0x227ada[_0x28888a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x28888a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x28888a([0x56,0x61,0x6c,0x69,0x64]);})[_0x28888a([0x74,0x68,0x65,0x6e])](_0x228ac7=>(_0x1ecdf3(),_0x228ac7),()=>{const _0x29edd9=_0x32b982();return null==_0x29edd9?(_0x1ecdf3(),_0x28888a([0x56,0x61,0x6c,0x69,0x64])):_0x28888a(_0x51c641-_0x29edd9>(0x4ad6b544^_0x317afa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x28888a([0x74,0x68,0x65,0x6e])](_0x2058a7)[_0x28888a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2058a7(_0x28888a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x38be1a=0x6eecdfc4^_0x317afa;function _0x1ecdf3(){const _0x4dc3e7=_0x28888a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ee240(_0x5943c5(_0x2dde52)),_0x2092d4=_0x4b68dd(_0x5ee240(window[_0x28888a([0x4d,0x61,0x74,0x68])][_0x28888a([0x63,0x65,0x69,0x6c])](_0x51c641/_0x38be1a)));window[_0x28888a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28888a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4dc3e7,_0x2092d4);}function _0x32b982(){const _0x5611c3=_0x28888a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ee240(_0x5943c5(_0x2dde52)),_0x262ec9=window[_0x28888a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28888a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5611c3);return _0x262ec9?window[_0x28888a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b68dd(_0x262ec9),0x10)*_0x38be1a:null;}function _0x5a6bb5(_0x43a20c){return new window[(_0x28888a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44ad58,_0x435053)=>{_0x43a20c[_0x28888a([0x74,0x68,0x65,0x6e])](_0x44ad58,_0x435053),window[_0x28888a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x435053,0x6edbe584^_0x317afa);});}}_0x3c497f[_0x28888a([0x6f,0x6e])](_0x28888a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4234f4,_0x14887c)=>{if(_0x14887c[0x0]!=_0x2dde52)return _0x2058a7(_0x28888a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x14887c[0x1]={..._0x14887c[0x1],[_0x28888a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa2bdc6};},{[_0x28888a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28888a([0x68,0x69,0x67,0x68])}),_0x3c497f[_0x28888a([0x6f,0x6e])](_0x28888a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x13c76e=>{_0x1a3d6c(_0x13c76e[_0x28888a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5caa09=!0x0,_0x5679d3(_0x13c76e[_0x28888a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x28888a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28888a([0x6c,0x6f,0x77])}),_0x5454e0[_0x28888a([0x74,0x68,0x65,0x6e])](()=>{_0x5caa09||_0x2058a7(_0x28888a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2dc615(){return _0x3c497f[_0x28888a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28888a([0x76,0x69,0x65,0x77])][_0x28888a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x28888a([0x61,0x75,0x74,0x6f]);}function _0x3a728a(){_0x3c497f[_0x28888a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28888a([0x76,0x69,0x65,0x77])][_0x28888a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x28888a([0x61,0x75,0x74,0x6f]);}}function _0x420582(_0x53e06f){const _0x4e69c9=[new window[(_0x28888a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x467220=>setTimeout(_0x467220,0x6ed30f88^_0x317afa)),_0x5454e0[_0x28888a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x28888a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc9aa3c=>{let _0x4aa4a7=0x0;_0x3c497f[_0x28888a([0x6d,0x6f,0x64,0x65,0x6c])][_0x28888a([0x6f,0x6e])](_0x28888a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b1ac6,_0x4f2fde)=>{_0x4f2fde[0x0][_0x28888a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4aa4a7++,_0x4aa4a7==(0x6eda30bc^_0x317afa)&&(_0xc9aa3c(),_0x2b1ac6[_0x28888a([0x6f,0x66,0x66])]());});}))];return window[_0x28888a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x28888a([0x72,0x61,0x63,0x65])](_0x4e69c9)[_0x28888a([0x74,0x68,0x65,0x6e])](()=>_0x53e06f);}async function _0x2b5754(){await _0x5454e0,_0x3c497f[_0x28888a([0x6d,0x6f,0x64,0x65,0x6c])][_0x28888a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x41f6e5,_0x3c497f[_0x28888a([0x6d,0x6f,0x64,0x65,0x6c])][_0x28888a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x41f6e5,_0x3c497f[_0x28888a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x28888a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x417e00(_0x5b1092){const _0x19a317=_0x3d1565();_0x3c497f[_0x19a317]=_0x28888a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5b1092,_0x5b1092!=_0x28888a([0x56,0x61,0x6c,0x69,0x64])&&_0x2b5754();}function _0x3d1565(){const _0x3b0d20=window[_0x28888a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x28888a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x28888a([0x6e,0x6f,0x77])]())[_0x28888a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x28888a([0x2e]),'');let _0x25c486=_0x28888a([0x66]);for(let _0x515912=0x0;_0x515912<_0x3b0d20[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x515912+=0x2){let _0x36126e=window[_0x28888a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b0d20[_0x28888a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x515912,_0x515912+0x2));_0x36126e>=_0x43d4e0[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36126e-=_0x43d4e0[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x25c486+=_0x43d4e0[_0x36126e];}return _0x25c486;}function _0x485d02(){const _0x1e0624=_0x4713a0[_0x28888a([0x73,0x70,0x6c,0x69,0x74])](_0x28888a([0x2e]));if(0x3!=_0x1e0624[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x531f2e(_0x1e0624[0x1]);function _0x531f2e(_0x4cb5c1){const _0x3c694f=_0x281c30(_0x4cb5c1);return _0x3c694f&&_0x74b386()?_0x3c694f:null;function _0x74b386(){const _0x173a5e=_0x3c694f[_0x28888a([0x6a,0x74,0x69])],_0x133a9e=window[_0x28888a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x173a5e[_0x28888a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x173a5e[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x259da6={..._0x3c694f,[_0x28888a([0x6a,0x74,0x69])]:_0x173a5e[_0x28888a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x173a5e[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x259da6[_0x28888a([0x76,0x63])],_0x5943c5(_0x259da6)==_0x133a9e;}}}async function _0x40b97e(){let _0x2925da=!0x0;try{const _0x5d3701=_0x4713a0[_0x28888a([0x73,0x70,0x6c,0x69,0x74])](_0x28888a([0x2e])),[_0x2e260c,_0x171741,_0x139c22]=_0x5d3701;return _0x3a2f10(_0x2e260c),await _0x467950(_0x2e260c,_0x171741,_0x139c22),_0x2925da;}catch{return!0x1;}function _0x3a2f10(_0x58a02d){const _0x3dd774=_0x281c30(_0x58a02d);_0x3dd774&&_0x3dd774[_0x28888a([0x61,0x6c,0x67])]==_0x28888a([0x45,0x53,0x32,0x35,0x36])||(_0x2925da=!0x1);}async function _0x467950(_0x1578ae,_0x32dfa7,_0x4f4dbf){const _0x40ac4a=window[_0x28888a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x28888a([0x66,0x72,0x6f,0x6d])](_0x22c0c4(_0x4f4dbf),_0x4a5e3c=>_0x4a5e3c[_0x28888a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x50ad0c=new window[(_0x28888a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x28888a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1578ae+_0x28888a([0x2e])+_0x32dfa7),_0x14e556=window[_0x28888a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x28888a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x14e556)return;const _0x21ff3e=await _0x14e556[_0x28888a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x28888a([0x6a,0x77,0x6b]),_0x11795a,{[_0x28888a([0x6e,0x61,0x6d,0x65])]:_0x28888a([0x45,0x43,0x44,0x53,0x41]),[_0x28888a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x28888a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x28888a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x14e556[_0x28888a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x28888a([0x6e,0x61,0x6d,0x65])]:_0x28888a([0x45,0x43,0x44,0x53,0x41]),[_0x28888a([0x68,0x61,0x73,0x68])]:{[_0x28888a([0x6e,0x61,0x6d,0x65])]:_0x28888a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x21ff3e,_0x40ac4a,_0x50ad0c)||(_0x2925da=!0x1);}}function _0x281c30(_0x2bd14b){return _0x2bd14b[_0x28888a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x28888a([0x65,0x79]))?JSON[_0x28888a([0x70,0x61,0x72,0x73,0x65])](_0x22c0c4(_0x2bd14b)):null;}function _0x22c0c4(_0x40d071){return window[_0x28888a([0x61,0x74,0x6f,0x62])](_0x40d071[_0x28888a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x28888a([0x2b]))[_0x28888a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x28888a([0x2f])));}function _0x5943c5(_0x2ee5f1){let _0x560044=0x1505;function _0x39521d(_0x31f246){for(let _0x4f63ae=0x0;_0x4f63ae<_0x31f246[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f63ae++){const _0x498963=_0x31f246[_0x28888a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f63ae);_0x560044=(_0x560044<<0x5)+_0x560044+_0x498963,_0x560044&=_0x560044;}}function _0x7c3cb7(_0xbc78d){Array[_0x28888a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xbc78d)?_0xbc78d[_0x28888a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7c3cb7):_0xbc78d&&typeof _0xbc78d==_0x28888a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x28888a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xbc78d)[_0x28888a([0x73,0x6f,0x72,0x74])]()[_0x28888a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x42b474,_0x4087a1])=>{_0x39521d(_0x42b474),_0x7c3cb7(_0x4087a1);}):_0x39521d(window[_0x28888a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xbc78d));}return _0x7c3cb7(_0x2ee5f1),_0x560044>>>0x0;}function _0x5ee240(_0x503ca5){return _0x503ca5[_0x28888a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x28888a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x28888a([0x30]));}function _0x4b68dd(_0x18a31f){return _0x18a31f[_0x28888a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x28888a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x28888a([0x6a,0x6f,0x69,0x6e])]('');}function _0x41f6e5(){}function _0x28888a(_0x21762a){const _0x1ee132=_0x11a5;return _0x21762a[_0x1ee132(0x186)](_0x270e95=>String[_0x1ee132(0x1bd)](_0x270e95))[_0x1ee132(0x1c4)]('');}_0x417e00(await _0x3b513a());}(this);}[_0x2bfd6b(0x175)](){const _0x17b747=_0x2bfd6b,_0x983c87=this[_0x17b747(0x1c2)][_0x17b747(0x183)][_0x17b747(0x1a8)];_0x983c87[_0x17b747(0x195)](_0x17b747(0x1a4))&&_0x983c87[_0x17b747(0x1bf)](_0x17b747(0x1a4),{'allowAttributes':[_0x17b747(0x18f)]}),_0x983c87[_0x17b747(0x195)](_0x17b747(0x17a))&&_0x983c87[_0x17b747(0x1bf)](_0x17b747(0x17a),{'allowAttributes':[_0x17b747(0x18f)]});}[_0x2bfd6b(0x1b0)](){const _0x5a9f61=_0x2bfd6b,_0x63a913=this[_0x5a9f61(0x1c2)];_0x63a913[_0x5a9f61(0x1b1)][_0x5a9f61(0x1b6)](_0x5a9f61(0x1bc))[_0x5a9f61(0x19d)]({'model':_0x5a9f61(0x18f),'view':_0x5a9f61(0x18c)}),_0x63a913[_0x5a9f61(0x1b1)][_0x5a9f61(0x1b6)](_0x5a9f61(0x178))[_0x5a9f61(0x19e)]({'model':{'key':_0x5a9f61(0x18f),'value':_0x4bda45=>_0x4bda45[_0x5a9f61(0x192)](_0x5a9f61(0x18c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x163899=_0x63a913[_0x5a9f61(0x1c0)][_0x5a9f61(0x18a)](_0x5a9f61(0x179));_0x163899&&this[_0x5a9f61(0x197)](_0x163899,_0x5a9f61(0x1c1),(_0x89eac5,[_0x2e060e,_0x326314])=>{const _0xaff74e=_0x5a9f61;_0x2e060e[_0xaff74e(0x19f)](_0xaff74e(0x18f),_0x326314);});}[_0x2bfd6b(0x193)](){const _0xe89564=_0x2bfd6b,_0x4686c7=this[_0xe89564(0x1c2)][_0xe89564(0x174)][_0xe89564(0x18a)](_0xe89564(0x185))||{},_0x2325de=this[_0xe89564(0x1c2)][_0xe89564(0x174)][_0xe89564(0x18a)](_0xe89564(0x1b4))||'';this[_0xe89564(0x1a6)]=_0x54e12a(_0xfb71fa[_0xe89564(0x1ba)],_0xe89564(0x198),{..._0x4686c7,'pubkey':_0x2325de,'ctx-name':_0xe89564(0x191),'sourceList':'','imgOnly':_0xe89564(0x1ae),'removeCopyright':_0xe89564(0x1ae),'localeName':this[_0xe89564(0x1c2)][_0xe89564(0x19c)][_0xe89564(0x1a1)],'externalSourcesEmbedCss':_0xe89564(0x1c6)}),this[_0xe89564(0x1a6)][_0xe89564(0x17d)]=_0x33da96=>{const _0x1b38a4=_0xe89564;if(_0x1b38a4(0x182)==_0x33da96)return _0x1b38a4(0x177);},_0xfb71fa[_0xe89564(0x1ba)][_0xe89564(0x1a3)][_0xe89564(0x1bb)](this[_0xe89564(0x1a6)]);}[_0x2bfd6b(0x188)](){const _0x15e9b8=_0x2bfd6b;this[_0x15e9b8(0x19a)]=_0x54e12a(_0xfb71fa[_0x15e9b8(0x1ba)],_0x15e9b8(0x1af),{'ctx-name':_0x15e9b8(0x191)}),_0xfb71fa[_0x15e9b8(0x1ba)][_0x15e9b8(0x1a3)][_0x15e9b8(0x1bb)](this[_0x15e9b8(0x19a)]);}[_0x2bfd6b(0x1aa)](){const _0x4f312e=_0x2bfd6b,_0x844971=this[_0x4f312e(0x1c2)][_0x4f312e(0x1c0)][_0x4f312e(0x18a)](_0x4f312e(0x18b));_0x844971&&this[_0x4f312e(0x197)](_0x844971,_0x4f312e(0x19b),()=>{const _0x4ee586=_0x4f312e,_0x4a0be4=this[_0x4ee586(0x1c2)][_0x4ee586(0x183)][_0x4ee586(0x1ba)][_0x4ee586(0x18d)][_0x4ee586(0x1b9)]();_0x4a0be4&&_0x4a0be4[_0x4ee586(0x192)](_0x4ee586(0x18f))&&this[_0x4ee586(0x1c2)][_0x4ee586(0x199)][_0x4ee586(0x18e)][_0x4ee586(0x189)](_0x4ee586(0x17c),()=>{const _0x5ed043=_0x4ee586;_0x3428e6(this[_0x5ed043(0x1c2)],_0x4a0be4);});});const _0x12afaa=this[_0x4f312e(0x1c2)][_0x4f312e(0x1c0)][_0x4f312e(0x18a)](_0x4f312e(0x1b3));_0x12afaa&&this[_0x4f312e(0x197)](_0x12afaa,_0x4f312e(0x19b),()=>{const _0x26edad=_0x4f312e,_0x1d93a4=this[_0x26edad(0x1c2)][_0x26edad(0x183)][_0x26edad(0x1ba)][_0x26edad(0x18d)][_0x26edad(0x1b9)]();_0x1d93a4&&_0x1d93a4[_0x26edad(0x192)](_0x26edad(0x18f))&&this[_0x26edad(0x1c2)][_0x26edad(0x199)][_0x26edad(0x18e)][_0x26edad(0x189)](_0x26edad(0x17c),()=>{const _0x86ec77=_0x26edad;_0x3428e6(this[_0x86ec77(0x1c2)],_0x1d93a4);});});}}
|
|
23
|
+
function _0x42ef(_0x5e3e25,_0x1bdf7b){const _0xcda9c4=_0xcda9();return _0x42ef=function(_0x42efb0,_0x40bf9d){_0x42efb0=_0x42efb0-0x1d2;let _0x268f68=_0xcda9c4[_0x42efb0];return _0x268f68;},_0x42ef(_0x5e3e25,_0x1bdf7b);}const _0x34c6ee=_0x42ef;(function(_0x342e42,_0x3fd57d){const _0x203b26=_0x42ef,_0x3cc6de=_0x342e42();while(!![]){try{const _0x2e093d=-parseInt(_0x203b26(0x1ed))/0x1+-parseInt(_0x203b26(0x1f6))/0x2*(parseInt(_0x203b26(0x225))/0x3)+parseInt(_0x203b26(0x1d3))/0x4*(parseInt(_0x203b26(0x1f4))/0x5)+-parseInt(_0x203b26(0x1fc))/0x6+-parseInt(_0x203b26(0x1fe))/0x7*(-parseInt(_0x203b26(0x211))/0x8)+-parseInt(_0x203b26(0x218))/0x9*(-parseInt(_0x203b26(0x1f7))/0xa)+-parseInt(_0x203b26(0x1f5))/0xb*(parseInt(_0x203b26(0x1dc))/0xc);if(_0x2e093d===_0x3fd57d)break;else _0x3cc6de['push'](_0x3cc6de['shift']());}catch(_0x200716){_0x3cc6de['push'](_0x3cc6de['shift']());}}}(_0xcda9,0x3feea));import{Plugin as _0x4b5d3e}from'ckeditor5/src/core.js';import{Dialog as _0x1817b5}from'ckeditor5/src/ui.js';function _0xcda9(){const _0x514a3d=['uploadcare.uploader','_ctxElement','input[uploadcare-file-input]','ctxElement','isPremiumPlugin','remove','insertImage','replaceImageSource','closeMax','add','_configElement','328527oSAcQW','init','config','iconHrefResolver','map','68auDTmV','destroy','view','body','getSelectedElement','editing','isRegistered','_initSchema','uploadcareImageReplace','139476sOgWdY','requires','imageInline','_initImageProcessingIndicator','querySelector','true','_initCtx','downcast','selection','attributeToAttribute','extend','for','UploadcareEditing','commands','removeAttribute','model','uc-config','192932GdhUYD','conversion','once','configElement','ucContextId','appendChild','editor','145085qBkXro','11BxkBZy','2XQjQtr','13570muCPoN','cleanupImage','schema','uploadcare.pubkey','get','2364732TFDgEg','render','3213854skMBUv','execute','join','isOfficialPlugin','contentLanguage','afterInit','upcast','getAttribute','uploader-','_initConversion','#uc-icon-arrow-down','document','imageBlock','_initConfig','uploadcare','listenTo','fromCharCode','PictureEditing','uploadcareImageId','8cquTag','uc-upload-ctx-provider','data-uc-image-id','pluginName','locale','href','\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','117fhgmdE','elementToAttribute'];_0xcda9=function(){return _0x514a3d;};return _0xcda9();}import{createElement as _0x57ab19,global as _0x178f14,uid as _0x1882b8}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x48dd03}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x37b0c5}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2ffb1}from'./utils/editingutils.js';export class UploadcareEditing extends _0x4b5d3e{[_0x34c6ee(0x224)]=null;[_0x34c6ee(0x21b)]=null;static get[_0x34c6ee(0x214)](){const _0x27d2c5=_0x34c6ee;return _0x27d2c5(0x1e8);}static get[_0x34c6ee(0x1dd)](){const _0x407497=_0x34c6ee;return[_0x407497(0x20f),_0x37b0c5,_0x1817b5];}static get[_0x34c6ee(0x201)](){return!0x0;}static get[_0x34c6ee(0x21e)](){return!0x0;}[_0x34c6ee(0x1f1)];get[_0x34c6ee(0x1f0)](){const _0x2c213e=_0x34c6ee;return this[_0x2c213e(0x224)];}get[_0x34c6ee(0x21d)](){const _0x25c6fe=_0x34c6ee;return this[_0x25c6fe(0x21b)];}constructor(_0x3f0be9){const _0x4f0916=_0x34c6ee;super(_0x3f0be9),this[_0x4f0916(0x1f1)]=_0x1882b8();}[_0x34c6ee(0x226)](){const _0x5db240=_0x34c6ee,_0x57937e=this[_0x5db240(0x1f3)];_0x57937e[_0x5db240(0x1e9)][_0x5db240(0x223)](_0x5db240(0x20c),new _0x48dd03(_0x57937e));}[_0x34c6ee(0x203)](){const _0x3b9f57=_0x34c6ee;this[_0x3b9f57(0x1da)](),this[_0x3b9f57(0x207)](),this[_0x3b9f57(0x20b)](),this[_0x3b9f57(0x1e2)](),this[_0x3b9f57(0x1df)](),this[_0x3b9f57(0x20d)](this[_0x3b9f57(0x1f3)],_0x3b9f57(0x1d4),()=>{const _0x164909=_0x3b9f57;this[_0x164909(0x224)]&&(this[_0x164909(0x224)][_0x164909(0x21f)](),this[_0x164909(0x224)]=null),this[_0x164909(0x21b)]&&(this[_0x164909(0x21b)][_0x164909(0x21f)](),this[_0x164909(0x21b)]=null);const _0xdb6116=_0x178f14[_0x164909(0x209)][_0x164909(0x1e0)](_0x164909(0x21c));_0xdb6116&&_0xdb6116[_0x164909(0x21f)]();}),async function(_0x293b63){const _0x3710b6=_0x41a6a0([0x6a,0x68,0x62,0x52,0x4e,0x6f,0x58,0x39,0x42,0x6b,0x7a,0x78,0x6c,0x67,0x37,0x54,0x64,0x47,0x77,0x34,0x75,0x56,0x66,0x48,0x73,0x4a,0x6e,0x53,0x31,0x46,0x45,0x38,0x51,0x36,0x70,0x6d,0x59,0x69,0x65,0x63,0x71,0x61,0x43,0x30,0x57,0x32,0x76,0x5a,0x4b,0x4c,0x4f,0x35,0x72,0x50,0x55,0x41,0x79,0x49,0x74,0x4d,0x44,0x33]),_0x4cb381=0x16f2b914,_0x4697f6=0x16f5d544^_0x4cb381,_0x2eee98=window[_0x41a6a0([0x44,0x61,0x74,0x65])][_0x41a6a0([0x6e,0x6f,0x77])](),_0x33c105=_0x293b63[_0x41a6a0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x542084=new window[(_0x41a6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40daac=>{_0x33c105[_0x41a6a0([0x6f,0x6e,0x63,0x65])](_0x41a6a0([0x72,0x65,0x61,0x64,0x79]),_0x40daac);}),_0x13dd2f={[_0x41a6a0([0x6b,0x74,0x79])]:_0x41a6a0([0x45,0x43]),[_0x41a6a0([0x75,0x73,0x65])]:_0x41a6a0([0x73,0x69,0x67]),[_0x41a6a0([0x63,0x72,0x76])]:_0x41a6a0([0x50,0x2d,0x32,0x35,0x36]),[_0x41a6a0([0x78])]:_0x41a6a0([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]),[_0x41a6a0([0x79])]:_0x41a6a0([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]),[_0x41a6a0([0x61,0x6c,0x67])]:_0x41a6a0([0x45,0x53,0x32,0x35,0x36])},_0x85e08d=_0x33c105[_0x41a6a0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x41a6a0([0x67,0x65,0x74])](_0x41a6a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xf03b52(){let _0x36b5aa,_0x5c4457=null,_0x2d73e7=null;try{if(_0x85e08d==_0x41a6a0([0x47,0x50,0x4c]))return _0x41a6a0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x36b5aa=_0x42c1d2(),!_0x36b5aa)return _0x41a6a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x36b5aa[_0x41a6a0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d73e7=_0x15c752(_0x36b5aa[_0x41a6a0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x36b5aa[_0x41a6a0([0x6a,0x74,0x69])])),await _0x427534()?_0x44a9ee()?_0x4d444a()?_0x41a6a0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xe0a90e()?(_0x36b5aa[_0x41a6a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x41a6a0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c4457=_0x240fb8(_0x41a6a0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x36b5aa[_0x41a6a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x41a6a0([0x74,0x72,0x69,0x61,0x6c])&&(_0x5c4457=_0x240fb8(_0x41a6a0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x27e6cd()):_0x41a6a0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x41a6a0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x41a6a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x41a6a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d444a(){const _0x293627=[_0x41a6a0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x41a6a0([0x74,0x72,0x69,0x61,0x6c])][_0x41a6a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36b5aa[_0x41a6a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2eee98/0x3e8:0xe10*_0x4697f6;return _0x36b5aa[_0x41a6a0([0x65,0x78,0x70])]<_0x293627;}function _0x44a9ee(){const _0x51eda0=_0x36b5aa[_0x41a6a0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x51eda0&&(!!_0x51eda0[_0x41a6a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41a6a0([0x2a]))||!!_0x51eda0[_0x41a6a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41a6a0([0x55,0x50,0x4c,0x43])));}function _0xe0a90e(){const _0x2aed36=_0x42ef,_0x2c4f87=_0x36b5aa[_0x41a6a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2c4f87||0x0==_0x2c4f87[_0x41a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xd2d24c}=new URL(window[_0x41a6a0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2aed36(0x216)]);if(_0x2c4f87[_0x41a6a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd2d24c))return!0x0;const _0x303963=_0xd2d24c[_0x41a6a0([0x73,0x70,0x6c,0x69,0x74])](_0x41a6a0([0x2e]));return _0x2c4f87[_0x41a6a0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f3cdf=>_0x3f3cdf[_0x41a6a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41a6a0([0x2a])))[_0x41a6a0([0x6d,0x61,0x70])](_0x43ecce=>_0x43ecce[_0x41a6a0([0x73,0x70,0x6c,0x69,0x74])](_0x41a6a0([0x2e])))[_0x41a6a0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xbfe67c=>_0xbfe67c[_0x41a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x303963[_0x41a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x41a6a0([0x6d,0x61,0x70])](_0x3102cf=>Array(_0x303963[_0x41a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3102cf[_0x41a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x41a6a0([0x66,0x69,0x6c,0x6c])](_0x3102cf[0x0]===_0x41a6a0([0x2a])?_0x41a6a0([0x2a]):'')[_0x41a6a0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3102cf))[_0x41a6a0([0x73,0x6f,0x6d,0x65])](_0x3c7d3b=>_0x303963[_0x41a6a0([0x65,0x76,0x65,0x72,0x79])]((_0x71538b,_0x1ca023)=>_0x3c7d3b[_0x1ca023]===_0x71538b||_0x3c7d3b[_0x1ca023]===_0x41a6a0([0x2a])));}function _0x27e6cd(){return _0x5c4457&&_0x2d73e7?new window[(_0x41a6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf3e66e,_0xfb9270)=>{_0x5c4457[_0x41a6a0([0x74,0x68,0x65,0x6e])](_0xf3e66e,_0xfb9270),_0x2d73e7[_0x41a6a0([0x74,0x68,0x65,0x6e])](_0x14f84c=>{_0x14f84c!=_0x41a6a0([0x56,0x61,0x6c,0x69,0x64])&&_0xf3e66e(_0x14f84c);},_0xfb9270);}):_0x5c4457||_0x2d73e7||_0x41a6a0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x15c752(_0x40e98f,_0x4dbf7d){return new window[(_0x41a6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24892b=>{if(_0x47eec4())return _0x24892b(_0x41a6a0([0x56,0x61,0x6c,0x69,0x64]));_0x323f66(),_0x33c105[_0x41a6a0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x41a6a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x43e272=!0x1;const _0x3d1208=_0x1882b8();function _0x50b8dd(_0xab3037){return!!_0xab3037&&(typeof _0xab3037===_0x41a6a0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xab3037===_0x41a6a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xab3037[_0x41a6a0([0x74,0x68,0x65,0x6e])]===_0x41a6a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xab3037[_0x41a6a0([0x63,0x61,0x74,0x63,0x68])]===_0x41a6a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3fdbc6(_0x4decb1){_0x3c42ca(_0x4decb1)[_0x41a6a0([0x74,0x68,0x65,0x6e])](_0x442a51=>{if(!_0x442a51||_0x442a51[_0x41a6a0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x41a6a0([0x6f,0x6b]))return _0x41a6a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x567ce1(_0x2d4fc1(_0x3d1208+_0x4dbf7d))!=_0x442a51[_0x41a6a0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x41a6a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x41a6a0([0x56,0x61,0x6c,0x69,0x64]);})[_0x41a6a0([0x74,0x68,0x65,0x6e])](_0x42fa0b=>(_0x136e3f(),_0x42fa0b),()=>{const _0x5a269c=_0x42dd1b();return null==_0x5a269c?(_0x136e3f(),_0x41a6a0([0x56,0x61,0x6c,0x69,0x64])):_0x41a6a0(_0x2eee98-_0x5a269c>(0x32fe3d14^_0x4cb381)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x41a6a0([0x74,0x68,0x65,0x6e])](_0x24892b)[_0x41a6a0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24892b(_0x41a6a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2b851e=0x16c45794^_0x4cb381;function _0x136e3f(){const _0x223871=_0x41a6a0([0x6c,0x6c,0x63,0x74,0x2d])+_0x567ce1(_0x2d4fc1(_0x40e98f)),_0x1d78ab=_0x5ad15a(_0x567ce1(window[_0x41a6a0([0x4d,0x61,0x74,0x68])][_0x41a6a0([0x63,0x65,0x69,0x6c])](_0x2eee98/_0x2b851e)));window[_0x41a6a0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41a6a0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x223871,_0x1d78ab);}function _0x42dd1b(){const _0x18f7d5=_0x41a6a0([0x6c,0x6c,0x63,0x74,0x2d])+_0x567ce1(_0x2d4fc1(_0x40e98f)),_0x5894cf=window[_0x41a6a0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41a6a0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18f7d5);return _0x5894cf?window[_0x41a6a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ad15a(_0x5894cf),0x10)*_0x2b851e:null;}function _0x3c42ca(_0x3f1378){return new window[(_0x41a6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1aa9b2,_0x78aff9)=>{_0x3f1378[_0x41a6a0([0x74,0x68,0x65,0x6e])](_0x1aa9b2,_0x78aff9),window[_0x41a6a0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x78aff9,0x16f36dd4^_0x4cb381);});}}_0x33c105[_0x41a6a0([0x6f,0x6e])](_0x41a6a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x26a6df,_0x3d994f)=>{if(_0x3d994f[0x0]!=_0x40e98f)return _0x24892b(_0x41a6a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d994f[0x1]={..._0x3d994f[0x1],[_0x41a6a0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3d1208};},{[_0x41a6a0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41a6a0([0x68,0x69,0x67,0x68])}),_0x33c105[_0x41a6a0([0x6f,0x6e])](_0x41a6a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5c1022=>{_0x50b8dd(_0x5c1022[_0x41a6a0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x43e272=!0x0,_0x3fdbc6(_0x5c1022[_0x41a6a0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x41a6a0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41a6a0([0x6c,0x6f,0x77])}),_0x542084[_0x41a6a0([0x74,0x68,0x65,0x6e])](()=>{_0x43e272||_0x24892b(_0x41a6a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47eec4(){return _0x33c105[_0x41a6a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41a6a0([0x76,0x69,0x65,0x77])][_0x41a6a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x41a6a0([0x61,0x75,0x74,0x6f]);}function _0x323f66(){_0x33c105[_0x41a6a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41a6a0([0x76,0x69,0x65,0x77])][_0x41a6a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x41a6a0([0x61,0x75,0x74,0x6f]);}}function _0x240fb8(_0x399596){const _0x422dc2=[new window[(_0x41a6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x348666=>setTimeout(_0x348666,0x16fb87d8^_0x4cb381)),_0x542084[_0x41a6a0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x41a6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x66ef75=>{let _0x417141=0x0;_0x33c105[_0x41a6a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x41a6a0([0x6f,0x6e])](_0x41a6a0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x83933d,_0x24b7f6)=>{_0x24b7f6[0x0][_0x41a6a0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x417141++,_0x417141==(0x16f2b8ec^_0x4cb381)&&(_0x66ef75(),_0x83933d[_0x41a6a0([0x6f,0x66,0x66])]());});}))];return window[_0x41a6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x41a6a0([0x72,0x61,0x63,0x65])](_0x422dc2)[_0x41a6a0([0x74,0x68,0x65,0x6e])](()=>_0x399596);}async function _0x590eb9(){await _0x542084,_0x33c105[_0x41a6a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x41a6a0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x58ac90,_0x33c105[_0x41a6a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x41a6a0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x58ac90,_0x33c105[_0x41a6a0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x41a6a0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2486f9(_0x1c7efe){const _0x305d58=_0xe9265d();_0x33c105[_0x305d58]=_0x41a6a0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c7efe,_0x1c7efe!=_0x41a6a0([0x56,0x61,0x6c,0x69,0x64])&&_0x590eb9();}function _0xe9265d(){const _0x1f2367=window[_0x41a6a0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x41a6a0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x41a6a0([0x6e,0x6f,0x77])]())[_0x41a6a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x41a6a0([0x2e]),'');let _0x42a971=_0x41a6a0([0x6a]);for(let _0x2be5fe=0x0;_0x2be5fe<_0x1f2367[_0x41a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2be5fe+=0x2){let _0x43b392=window[_0x41a6a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f2367[_0x41a6a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2be5fe,_0x2be5fe+0x2));_0x43b392>=_0x3710b6[_0x41a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x43b392-=_0x3710b6[_0x41a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x42a971+=_0x3710b6[_0x43b392];}return _0x42a971;}function _0x42c1d2(){const _0x2824ba=_0x85e08d[_0x41a6a0([0x73,0x70,0x6c,0x69,0x74])](_0x41a6a0([0x2e]));if(0x3!=_0x2824ba[_0x41a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5182dd(_0x2824ba[0x1]);function _0x5182dd(_0x3e825a){const _0x1154ac=_0xf6591d(_0x3e825a);return _0x1154ac&&_0x2eeec7()?_0x1154ac:null;function _0x2eeec7(){const _0x51cd20=_0x1154ac[_0x41a6a0([0x6a,0x74,0x69])],_0x5c5c0d=window[_0x41a6a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51cd20[_0x41a6a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51cd20[_0x41a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4085de={..._0x1154ac,[_0x41a6a0([0x6a,0x74,0x69])]:_0x51cd20[_0x41a6a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x51cd20[_0x41a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4085de[_0x41a6a0([0x76,0x63])],_0x2d4fc1(_0x4085de)==_0x5c5c0d;}}}async function _0x427534(){let _0x341b4d=!0x0;try{const _0x5e013c=_0x85e08d[_0x41a6a0([0x73,0x70,0x6c,0x69,0x74])](_0x41a6a0([0x2e])),[_0x29e82c,_0x407ec2,_0x2453c9]=_0x5e013c;return _0x2c9be6(_0x29e82c),await _0x5b38ee(_0x29e82c,_0x407ec2,_0x2453c9),_0x341b4d;}catch{return!0x1;}function _0x2c9be6(_0x2a6914){const _0x5a3e23=_0xf6591d(_0x2a6914);_0x5a3e23&&_0x5a3e23[_0x41a6a0([0x61,0x6c,0x67])]==_0x41a6a0([0x45,0x53,0x32,0x35,0x36])||(_0x341b4d=!0x1);}async function _0x5b38ee(_0x5a511a,_0x2fb8ac,_0x22373f){const _0x10f87d=window[_0x41a6a0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x41a6a0([0x66,0x72,0x6f,0x6d])](_0x1f5018(_0x22373f),_0x88670b=>_0x88670b[_0x41a6a0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x125243=new window[(_0x41a6a0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x41a6a0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5a511a+_0x41a6a0([0x2e])+_0x2fb8ac),_0xc084c6=window[_0x41a6a0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x41a6a0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xc084c6)return;const _0x1a32f4=await _0xc084c6[_0x41a6a0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x41a6a0([0x6a,0x77,0x6b]),_0x13dd2f,{[_0x41a6a0([0x6e,0x61,0x6d,0x65])]:_0x41a6a0([0x45,0x43,0x44,0x53,0x41]),[_0x41a6a0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x41a6a0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x41a6a0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xc084c6[_0x41a6a0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x41a6a0([0x6e,0x61,0x6d,0x65])]:_0x41a6a0([0x45,0x43,0x44,0x53,0x41]),[_0x41a6a0([0x68,0x61,0x73,0x68])]:{[_0x41a6a0([0x6e,0x61,0x6d,0x65])]:_0x41a6a0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a32f4,_0x10f87d,_0x125243)||(_0x341b4d=!0x1);}}function _0xf6591d(_0x143e61){return _0x143e61[_0x41a6a0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x41a6a0([0x65,0x79]))?JSON[_0x41a6a0([0x70,0x61,0x72,0x73,0x65])](_0x1f5018(_0x143e61)):null;}function _0x1f5018(_0x3124aa){return window[_0x41a6a0([0x61,0x74,0x6f,0x62])](_0x3124aa[_0x41a6a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x41a6a0([0x2b]))[_0x41a6a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x41a6a0([0x2f])));}function _0x2d4fc1(_0x35e275){let _0x1ce2f4=0x1505;function _0x9a4839(_0x2824f1){for(let _0x291cb8=0x0;_0x291cb8<_0x2824f1[_0x41a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x291cb8++){const _0x5ee7bc=_0x2824f1[_0x41a6a0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x291cb8);_0x1ce2f4=(_0x1ce2f4<<0x5)+_0x1ce2f4+_0x5ee7bc,_0x1ce2f4&=_0x1ce2f4;}}function _0x5200b9(_0x1606ba){Array[_0x41a6a0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1606ba)?_0x1606ba[_0x41a6a0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5200b9):_0x1606ba&&typeof _0x1606ba==_0x41a6a0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x41a6a0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1606ba)[_0x41a6a0([0x73,0x6f,0x72,0x74])]()[_0x41a6a0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x437f88,_0x115b65])=>{_0x9a4839(_0x437f88),_0x5200b9(_0x115b65);}):_0x9a4839(window[_0x41a6a0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1606ba));}return _0x5200b9(_0x35e275),_0x1ce2f4>>>0x0;}function _0x567ce1(_0xb0db85){return _0xb0db85[_0x41a6a0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x41a6a0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x41a6a0([0x30]));}function _0x5ad15a(_0x4473e1){return _0x4473e1[_0x41a6a0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x41a6a0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x41a6a0([0x6a,0x6f,0x69,0x6e])]('');}function _0x58ac90(){}function _0x41a6a0(_0x45d2e7){const _0x4b43a6=_0x42ef;return _0x45d2e7[_0x4b43a6(0x1d2)](_0x2e534c=>String[_0x4b43a6(0x20e)](_0x2e534c))[_0x4b43a6(0x200)]('');}_0x2486f9(await _0xf03b52());}(this);}[_0x34c6ee(0x1da)](){const _0x436b33=_0x34c6ee,_0x23c541=this[_0x436b33(0x1f3)][_0x436b33(0x1eb)][_0x436b33(0x1f9)];_0x23c541[_0x436b33(0x1d9)](_0x436b33(0x20a))&&_0x23c541[_0x436b33(0x1e6)](_0x436b33(0x20a),{'allowAttributes':[_0x436b33(0x210)]}),_0x23c541[_0x436b33(0x1d9)](_0x436b33(0x1de))&&_0x23c541[_0x436b33(0x1e6)](_0x436b33(0x1de),{'allowAttributes':[_0x436b33(0x210)]});}[_0x34c6ee(0x207)](){const _0x125790=_0x34c6ee,_0x5b89ce=this[_0x125790(0x1f3)];_0x5b89ce[_0x125790(0x1ee)][_0x125790(0x1e7)](_0x125790(0x1e3))[_0x125790(0x1e5)]({'model':_0x125790(0x210),'view':_0x125790(0x213)}),_0x5b89ce[_0x125790(0x1ee)][_0x125790(0x1e7)](_0x125790(0x204))[_0x125790(0x219)]({'model':{'key':_0x125790(0x210),'value':_0x38f67b=>_0x38f67b[_0x125790(0x205)](_0x125790(0x213))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x121672=_0x5b89ce[_0x125790(0x1e9)][_0x125790(0x1fb)](_0x125790(0x221));_0x121672&&this[_0x125790(0x20d)](_0x121672,_0x125790(0x1f8),(_0x39f855,[_0x9638d8,_0x5d44df])=>{const _0x54e1a6=_0x125790;_0x9638d8[_0x54e1a6(0x1ea)](_0x54e1a6(0x210),_0x5d44df);});}[_0x34c6ee(0x20b)](){const _0x4cfe65=_0x34c6ee,_0x3489a6=this[_0x4cfe65(0x1f3)][_0x4cfe65(0x227)][_0x4cfe65(0x1fb)](_0x4cfe65(0x21a))||{},_0xe19063=this[_0x4cfe65(0x1f3)][_0x4cfe65(0x227)][_0x4cfe65(0x1fb)](_0x4cfe65(0x1fa))||'';this[_0x4cfe65(0x224)]=_0x57ab19(_0x178f14[_0x4cfe65(0x209)],_0x4cfe65(0x1ec),{..._0x3489a6,'pubkey':_0xe19063,'ctx-name':_0x4cfe65(0x206)+this[_0x4cfe65(0x1f1)],'sourceList':'','imgOnly':_0x4cfe65(0x1e1),'removeCopyright':_0x4cfe65(0x1e1),'localeName':this[_0x4cfe65(0x1f3)][_0x4cfe65(0x215)][_0x4cfe65(0x202)],'externalSourcesEmbedCss':_0x4cfe65(0x217)}),this[_0x4cfe65(0x224)][_0x4cfe65(0x228)]=_0x1822c3=>{const _0x43db89=_0x4cfe65;if(_0x43db89(0x222)==_0x1822c3)return _0x43db89(0x208);},_0x178f14[_0x4cfe65(0x209)][_0x4cfe65(0x1d6)][_0x4cfe65(0x1f2)](this[_0x4cfe65(0x224)]);}[_0x34c6ee(0x1e2)](){const _0x5e9f3a=_0x34c6ee;this[_0x5e9f3a(0x21b)]=_0x57ab19(_0x178f14[_0x5e9f3a(0x209)],_0x5e9f3a(0x212),{'ctx-name':_0x5e9f3a(0x206)+this[_0x5e9f3a(0x1f1)]}),_0x178f14[_0x5e9f3a(0x209)][_0x5e9f3a(0x1d6)][_0x5e9f3a(0x1f2)](this[_0x5e9f3a(0x21b)]);}[_0x34c6ee(0x1df)](){const _0x5130dc=_0x34c6ee,_0x42f282=this[_0x5130dc(0x1f3)][_0x5130dc(0x1e9)][_0x5130dc(0x1fb)](_0x5130dc(0x220));_0x42f282&&this[_0x5130dc(0x20d)](_0x42f282,_0x5130dc(0x1ff),()=>{const _0x4a453c=_0x5130dc,_0x7e51f2=this[_0x4a453c(0x1f3)][_0x4a453c(0x1eb)][_0x4a453c(0x209)][_0x4a453c(0x1e4)][_0x4a453c(0x1d7)]();_0x7e51f2&&_0x7e51f2[_0x4a453c(0x205)](_0x4a453c(0x210))&&this[_0x4a453c(0x1f3)][_0x4a453c(0x1d8)][_0x4a453c(0x1d5)][_0x4a453c(0x1ef)](_0x4a453c(0x1fd),()=>{const _0x2fc8d5=_0x4a453c;_0x2ffb1(this[_0x2fc8d5(0x1f3)],_0x7e51f2);});});const _0x298593=this[_0x5130dc(0x1f3)][_0x5130dc(0x1e9)][_0x5130dc(0x1fb)](_0x5130dc(0x1db));_0x298593&&this[_0x5130dc(0x20d)](_0x298593,_0x5130dc(0x1ff),()=>{const _0x1fc40e=_0x5130dc,_0xa19654=this[_0x1fc40e(0x1f3)][_0x1fc40e(0x1eb)][_0x1fc40e(0x209)][_0x1fc40e(0x1e4)][_0x1fc40e(0x1d7)]();_0xa19654&&_0xa19654[_0x1fc40e(0x205)](_0x1fc40e(0x210))&&this[_0x1fc40e(0x1f3)][_0x1fc40e(0x1d8)][_0x1fc40e(0x1d5)][_0x1fc40e(0x1ef)](_0x1fc40e(0x1fd),()=>{const _0x9900fe=_0x1fc40e;_0x2ffb1(this[_0x9900fe(0x1f3)],_0xa19654);});});}}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { type Dialog } from 'ckeditor5/src/ui.js';
|
|
6
6
|
import type { Editor } from 'ckeditor5/src/core.js';
|
|
7
|
-
import type {
|
|
7
|
+
import type { ModelElement } from 'ckeditor5/src/engine.js';
|
|
8
8
|
declare const UploadcareImageEditController_base: {
|
|
9
9
|
new (): import("ckeditor5/src/utils.js").Observable;
|
|
10
10
|
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
@@ -15,7 +15,7 @@ declare const UploadcareImageEditController_base: {
|
|
|
15
15
|
* It manages the dialog and all the related actions during dialog instance lifecycle. It is bound to a dialog instance
|
|
16
16
|
* and an active image element and destroyed when dialog instance is closed.
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
18
|
+
export declare class UploadcareImageEditController extends /* #__PURE__ -- @preserve */ UploadcareImageEditController_base {
|
|
19
19
|
/**
|
|
20
20
|
* Whenever the controller is active and dialog UI visible.
|
|
21
21
|
*
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x5845f1,ObservableMixin as _0x260832}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x4bbfd5}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1c8c3f}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x56153a}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x5641a8}from'../../utils/uploadutils.js';import{getImageUrls as _0x1b1636,getImageDimension as _0x4558f0}from'../../utils/editingutils.js';import{isAncestor as _0x1a1eb2}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x260832(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1fb31e,_0x3ac10b,_0x1f990f){super(),this['_editor']=_0x1fb31e,this['_dialog']=_0x3ac10b,this['_imageElement']=_0x1f990f,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 _0x12dbd3=this['_imageElement'],_0x4beab0=_0x12dbd3['getAttribute']('uploadcareImageId'),_0x432f5a=_0x12dbd3['getAttribute']('src');if(_0x4beab0)await this['_loadImageInfo'](_0x4beab0,_0x432f5a);else{if(this['_imageCache']['has'](_0x432f5a)){const _0x3f851c=this['_imageCache']['get'](_0x432f5a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f851c['url'],this['imageDimension']=_0x3f851c['dimension'],this['imageId']=_0x3f851c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3158f3}=this['_editor'],t=_0x3158f3['t'],_0x5c8e69=new _0x56153a(_0x3158f3,this['imageStatus'],this['_attributes']);_0x5c8e69['bind']('status')['to'](this,'imageStatus'),_0x5c8e69['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5c8e69['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5c8e69['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5c8e69,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1c8c3f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5c8e69,'position':_0x4bbfd5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5c8e69['focus']();},'onHide':()=>{_0x5c8e69['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3d713b=>!_0x1a1eb2(_0x3d713b,_0x5c8e69['element'])}});}['_loadImageInfo'](_0x317f84,_0x56b5ca){return _0x5641a8['getInfo'](_0x317f84,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4eaf5d=>{const {width:_0x35e233,height:_0x3f2603}=_0x4eaf5d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x56b5ca,this['imageDimension']={'width':_0x35e233,'height':_0x3f2603},this['imageId']=_0x317f84;})['catch'](_0x864d99=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x864d99['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1fba3f,_0x1bc0d0){return this['_getImageAsFile'](_0x1fba3f)['then'](_0x1c8804=>_0x5641a8['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1bc0d0['signal'],'file':_0x1c8804,'onProgress':_0x4f47cd=>{_0x4f47cd&&_0x4f47cd['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4f47cd['value']));}}))['then'](_0x55ea20=>{const {width:_0x3ead5e,height:_0x51a240}=_0x55ea20['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x55ea20['cdnUrl'],this['imageDimension']={'width':_0x3ead5e,'height':_0x51a240},this['imageId']=_0x55ea20['uuid'],this['imageUploadProgress']=null;const _0x46e681=_0x1fba3f['getAttribute']('src');this['_imageCache']['set'](_0x46e681,{'id':_0x55ea20['uuid'],'url':_0x55ea20['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3aa307=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3aa307['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x568aba,_0x126343){_0x568aba['on']('apply',(_0x1ad383,_0x1f6e24)=>{this['_replaceImage'](_0x126343,_0x1f6e24['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x568aba['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x568aba['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2c1158,_0x1a1069,_0x31eecb){const _0x4c3595=this['_editor'],{width:_0xbfe45,height:_0x1c5c6d}=_0x4558f0(_0x1a1069,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2bbe28,imageSources:_0x10079a}=_0x1b1636(_0x1a1069,_0xbfe45);_0x4c3595['model']['change'](_0x1d5bc9=>{if('$graveyard'===_0x2c1158['root']['rootName']){_0x4c3595['execute']('insertImage',{'imageType':_0x2c1158['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2c1158['getAttributes']()),'uploadcareImageId':_0x31eecb,'src':_0x2bbe28,'sources':_0x10079a,'width':_0xbfe45,'height':_0x1c5c6d}});const _0x20a739=_0x2c1158['getChildren']();_0x2c1158=_0x4c3595['model']['document']['selection']['getSelectedElement']();for(const _0x19139a of _0x20a739)_0x1d5bc9['append'](_0x1d5bc9['cloneElement'](_0x19139a),_0x2c1158);}else _0x1d5bc9['setSelection'](_0x2c1158,'on'),_0x4c3595['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2c1158['getAttributes']()),'uploadcareImageId':_0x31eecb,'src':_0x2bbe28,'sources':_0x10079a,'width':_0xbfe45,'height':_0x1c5c6d},_0x2c1158);_0x1d5bc9['setSelection'](_0x2c1158,'on');});}async['_getImageAsFile'](_0x586654){const _0x5dde61=_0x5845f1['window'],_0x9316ad=_0x5845f1['document']['location']['href'],_0x1a4485=new _0x5dde61['URL'](_0x586654['getAttribute']('src'),_0x9316ad);if('data:'===_0x1a4485['protocol']){const _0x11e560=_0x1a4485['href']['split'](','),_0x5118b2=_0x11e560[0x0]['match'](/:(.*?);/)[0x1],_0x1cb7c4=_0x5118b2['split']('/')[0x1],_0xbae3c6=_0x5dde61['atob'](_0x11e560[_0x11e560['length']-0x1]);let _0x196a3e=_0xbae3c6['length'];const _0x28a89b=new _0x5dde61['Uint8Array'](_0x196a3e);for(;_0x196a3e--;)_0x28a89b[_0x196a3e]=_0xbae3c6['charCodeAt'](_0x196a3e);return new _0x5dde61['File']([_0x28a89b],'image.'+_0x1cb7c4,{'type':_0x5118b2});}const _0x4e7b73=_0x1a4485['href']['split']('/'),_0x4e24cc=_0x4e7b73[_0x4e7b73['length']-0x1],_0x54e627=_0x4e24cc['split']('.')[0x1];return _0x5dde61['fetch'](_0x1a4485['href'])['then'](_0xe3ac60=>_0xe3ac60['clone']()['blob']())['then'](_0x2d5e88=>new _0x5dde61['File']([_0x2d5e88],_0x4e24cc,{'type':'image/'+_0x54e627}));}}
|
|
@@ -11,7 +11,7 @@ import type { UploadcareEditorConfig } from '../../uploadcareconfig.js';
|
|
|
11
11
|
/**
|
|
12
12
|
* A class representing the form editing view of the Uploadcare image edit feature.
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export declare class UploadcareImageEditFormEditingView extends View {
|
|
15
15
|
/**
|
|
16
16
|
* Image source URL.
|
|
17
17
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x545d(_0x5ce1cd,_0x53e178){const _0x22ac6f=_0x22ac();return _0x545d=function(_0x545d60,_0x34f481){_0x545d60=_0x545d60-0x7f;let _0x57ae26=_0x22ac6f[_0x545d60];return _0x57ae26;},_0x545d(_0x5ce1cd,_0x53e178);}function _0x22ac(){const _0x55a018=['41CWfoZw','34218444PCWdIH','ck-uploadcare-theme','60210NywMck','539891snkmcX','uc-light','38530ogsRZj','bindTemplate','204EVdwgo','uc-cloud-image-editor','5157gZknLt','5368pNzkxD','130319JHXczH','130qpiWtH','set','imageSrc','38305IjAwjk','176djOEFM','setTemplate','image-edit'];_0x22ac=function(){return _0x55a018;};return _0x22ac();}(function(_0xb7c22e,_0x32ee9c){const _0x15cc65=_0x545d,_0x2cace8=_0xb7c22e();while(!![]){try{const _0x8e3185=parseInt(_0x15cc65(0x8b))/0x1*(-parseInt(_0x15cc65(0x91))/0x2)+parseInt(_0x15cc65(0x8e))/0x3*(-parseInt(_0x15cc65(0x88))/0x4)+parseInt(_0x15cc65(0x87))/0x5*(-parseInt(_0x15cc65(0x7f))/0x6)+-parseInt(_0x15cc65(0x83))/0x7+parseInt(_0x15cc65(0x82))/0x8*(parseInt(_0x15cc65(0x81))/0x9)+-parseInt(_0x15cc65(0x84))/0xa*(parseInt(_0x15cc65(0x8f))/0xb)+parseInt(_0x15cc65(0x8c))/0xc;if(_0x8e3185===_0x32ee9c)break;else _0x2cace8['push'](_0x2cace8['shift']());}catch(_0x32c71b){_0x2cace8['push'](_0x2cace8['shift']());}}}(_0x22ac,0x9db2b));import{View as _0xeb84a5}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0xeb84a5{constructor(_0x20caef,_0xd36dbc){const _0x2564e2=_0x545d;super(_0x20caef);const _0xb5b418=this[_0x2564e2(0x92)];this[_0x2564e2(0x85)](_0x2564e2(0x86),''),this[_0x2564e2(0x89)]({'tag':_0x2564e2(0x80),'attributes':{..._0xd36dbc,'class':[_0x2564e2(0x90),_0x2564e2(0x8d)],'ctx-name':_0x2564e2(0x8a),'cdn-url':_0xb5b418['to'](_0x2564e2(0x86))}});}}
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { View } from 'ckeditor5/src/ui.js';
|
|
6
6
|
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
7
|
-
import type UploadcareImageEditController from './uploadcareimageeditcontroller.js';
|
|
7
|
+
import { type UploadcareImageEditController } from './uploadcareimageeditcontroller.js';
|
|
8
8
|
/**
|
|
9
9
|
* A class representing the form error view of the Uploadcare image edit feature.
|
|
10
10
|
*/
|
|
11
|
-
export
|
|
11
|
+
export declare class UploadcareImageEditFormErrorView extends View {
|
|
12
12
|
/**
|
|
13
13
|
* The image upload error details.
|
|
14
14
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x2cf0a7}from'ckeditor5/src/icons.js';import{ButtonView as _0x336367,IconView as _0x5e4f22,View as _0x4712b8}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x4712b8{constructor(_0x163d1e){super(_0x163d1e);const t=_0x163d1e['t'];this['set']('errorType',null);const _0x30fce3=new _0x336367(_0x163d1e);_0x30fce3['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x30fce3['withText']=!0x0,_0x30fce3['class']='ck-button-action',_0x30fce3['on']('execute',()=>{this['fire']('retry');}),_0x30fce3['bind']('isVisible')['to'](this,'errorType',_0x157603=>'NotFound'!==_0x157603);const _0x560ee6=new _0x5e4f22();_0x560ee6['content']=_0x2cf0a7,_0x560ee6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1b94d7=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':[_0x560ee6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1b94d7['to']('errorType',_0x1cd4bf=>t('NotFound'!==_0x1cd4bf?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x30fce3]},{'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'}]}]}]});}}
|
|
@@ -10,7 +10,7 @@ import { View } from 'ckeditor5/src/ui.js';
|
|
|
10
10
|
/**
|
|
11
11
|
* A class representing the form loading view of the Uploadcare image edit feature.
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
13
|
+
export declare class UploadcareImageEditFormLoadingView extends View {
|
|
14
14
|
/**
|
|
15
15
|
* The image upload progress.
|
|
16
16
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{SpinnerView as
|
|
23
|
+
import{SpinnerView as _0xb8e17a,View as _0x31574a}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x31574a{constructor(_0x4229af){super(_0x4229af);const t=_0x4229af['t'],_0x4cc466=this['bindTemplate'],_0x48c100=new _0xb8e17a();_0x48c100['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':[_0x48c100,{'text':_0x4cc466['to']('imageUploadProgress',_0x25b1bf=>t('Loading\x20image...')+'\x20('+(_0x25b1bf||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'}]}]}]});}}
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
* @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformview
|
|
7
7
|
*/
|
|
8
8
|
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
-
import type UploadcareImageEditController from './uploadcareimageeditcontroller.js';
|
|
10
|
-
import DialogFocusManagerView from '../../utils/dialogfocusmanagerview.js';
|
|
9
|
+
import { type UploadcareImageEditController } from './uploadcareimageeditcontroller.js';
|
|
10
|
+
import { DialogFocusManagerView } from '../../utils/dialogfocusmanagerview.js';
|
|
11
11
|
import type { UploadcareEditorConfig } from '../../uploadcareconfig.js';
|
|
12
12
|
import '../../../theme/uploadcare-form.css';
|
|
13
13
|
/**
|
|
14
14
|
* A class representing the form view of the Uploadcare image edit feature.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export declare class UploadcareImageEditFormView extends DialogFocusManagerView {
|
|
17
17
|
/**
|
|
18
18
|
* Status of the image passed to the view;
|
|
19
19
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1fec23=_0x38ec;(function(_0x10acee,_0x2c7f0c){const _0x15f92d=_0x38ec,_0x4ddf61=_0x10acee();while(!![]){try{const _0x36de8e=-parseInt(_0x15f92d(0x179))/0x1+parseInt(_0x15f92d(0x192))/0x2*(-parseInt(_0x15f92d(0x17e))/0x3)+-parseInt(_0x15f92d(0x19b))/0x4*(-parseInt(_0x15f92d(0x194))/0x5)+-parseInt(_0x15f92d(0x176))/0x6+-parseInt(_0x15f92d(0x172))/0x7+parseInt(_0x15f92d(0x17d))/0x8+parseInt(_0x15f92d(0x18d))/0x9;if(_0x36de8e===_0x2c7f0c)break;else _0x4ddf61['push'](_0x4ddf61['shift']());}catch(_0x316fe8){_0x4ddf61['push'](_0x4ddf61['shift']());}}}(_0x4a20,0x87a1b));import{View as _0x3ce3ae}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x5e27ea}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x2abbf9}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x401a36}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x3235f6}from'../../utils/dialogfocusmanagerview.js';function _0x38ec(_0x2903e2,_0x3c92db){const _0x4a2009=_0x4a20();return _0x38ec=function(_0x38ec12,_0x2dc78c){_0x38ec12=_0x38ec12-0x16b;let _0x47ab50=_0x4a2009[_0x38ec12];return _0x47ab50;},_0x38ec(_0x2903e2,_0x3c92db);}function _0x4a20(){const _0x69bad1=['1519544gHgSpx','3ahvLLt','ready','observe','error','length','uploading','uc-cloud-image-editor','cancel','once','render','target','createCollection','querySelector','_addErrorViewListeners','_errorView','24402483MPuOCX','_editingView','_waitForImageEditorComponent','fire','addMany','1987976aKtMUy','addEventListener','10PYOlRn','addedNodes','focus','change:status','div','setTemplate','_items','105012oywdrn','nodeName','cdnUrl','ck-uploadcare-form','_addUploadcareImageEditorListeners','detail','element','status','add','_setView','_loadingView','filter','retry','4469192GSovXS','ck-reset_all-excluded','disconnect','set','680412GmeBJM','clear','toLowerCase','652443QuRKJY','apply','getFocusableElement','_focusableView'];_0x4a20=function(){return _0x69bad1;};return _0x4a20();}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x3235f6{[_0x1fec23(0x19a)];[_0x1fec23(0x16f)];[_0x1fec23(0x18c)];[_0x1fec23(0x18e)];[_0x1fec23(0x17c)];constructor(_0x35525e,_0x15a9a3,_0x24a78a){const _0x1e3b24=_0x1fec23;super(_0x35525e),this[_0x1e3b24(0x19a)]=this[_0x1e3b24(0x189)](),this[_0x1e3b24(0x16f)]=new _0x5e27ea(_0x35525e),this[_0x1e3b24(0x18c)]=new _0x2abbf9(_0x35525e),this[_0x1e3b24(0x18e)]=new _0x401a36(_0x35525e,_0x24a78a),this[_0x1e3b24(0x17c)]=new _0x3ce3ae(_0x35525e),this[_0x1e3b24(0x17c)][_0x1e3b24(0x199)](this[_0x1e3b24(0x17b)]()),this[_0x1e3b24(0x175)](_0x1e3b24(0x16c),_0x15a9a3),this[_0x1e3b24(0x199)]({'tag':_0x1e3b24(0x198),'attributes':{'class':['ck',_0x1e3b24(0x173),_0x1e3b24(0x19e)],'tabindex':'-1'},'children':this[_0x1e3b24(0x19a)]}),this[_0x1e3b24(0x16e)](),this[_0x1e3b24(0x186)](_0x1e3b24(0x187),()=>{const _0x19074e=_0x1e3b24;this[_0x19074e(0x18f)](this[_0x19074e(0x16b)],_0x26fd98=>{const _0x44151d=_0x19074e;this[_0x44151d(0x19f)](_0x26fd98);});}),this['on'](_0x1e3b24(0x197),()=>{const _0x1de5bd=_0x1e3b24;this[_0x1de5bd(0x16e)]();}),this[_0x1e3b24(0x18b)]();}[_0x1fec23(0x196)](){const _0x52999a=_0x1fec23;this[_0x52999a(0x16b)][_0x52999a(0x196)]();}[_0x1fec23(0x16e)](){const _0x29f772=_0x1fec23;switch(this[_0x29f772(0x19a)][_0x29f772(0x177)](),this[_0x29f772(0x16c)]){case _0x29f772(0x183):this[_0x29f772(0x19a)][_0x29f772(0x16d)](this[_0x29f772(0x16f)]);break;case _0x29f772(0x181):this[_0x29f772(0x19a)][_0x29f772(0x16d)](this[_0x29f772(0x18c)]);break;case _0x29f772(0x17f):this[_0x29f772(0x19a)][_0x29f772(0x191)]([this[_0x29f772(0x18e)],this[_0x29f772(0x17c)]]);}}[_0x1fec23(0x18f)](_0x2e1bb4,_0x23f354){const _0x140870=_0x1fec23,_0x25aa7a=_0x140870(0x184),_0x352cf5=_0x2e1bb4[_0x140870(0x18a)](_0x25aa7a);if(_0x352cf5)return _0x23f354(_0x352cf5);const _0x48f7f5=new MutationObserver(_0x59344b=>{const _0xb7c6=_0x140870,_0xdd18c6=_0x59344b[_0xb7c6(0x170)](_0xc78bc0=>_0xc78bc0[_0xb7c6(0x188)]===_0x2e1bb4&&_0xc78bc0[_0xb7c6(0x195)][_0xb7c6(0x182)]>0x0&&_0xc78bc0[_0xb7c6(0x195)][0x0][_0xb7c6(0x19c)][_0xb7c6(0x178)]()===_0x25aa7a);_0xdd18c6[_0xb7c6(0x182)]&&(_0x48f7f5[_0xb7c6(0x174)](),_0x23f354(_0xdd18c6[0x0][_0xb7c6(0x195)][0x0]));});_0x48f7f5[_0x140870(0x180)](_0x2e1bb4,{'childList':!0x0,'subtree':!0x0});}[_0x1fec23(0x19f)](_0x19d9d7){const _0x331053=_0x1fec23;_0x19d9d7[_0x331053(0x193)](_0x331053(0x17a),_0x5b405c=>{const _0x176c97=_0x331053;this[_0x176c97(0x190)](_0x176c97(0x17a),{'imageSrc':_0x5b405c[_0x176c97(0x1a0)][_0x176c97(0x19d)]});}),_0x19d9d7[_0x331053(0x193)](_0x331053(0x185),()=>{const _0x2f2b93=_0x331053;this[_0x2f2b93(0x190)](_0x2f2b93(0x185));});}[_0x1fec23(0x18b)](){const _0x11b8f2=_0x1fec23;this[_0x11b8f2(0x18c)]['on'](_0x11b8f2(0x171),()=>{const _0x110b60=_0x11b8f2;this[_0x110b60(0x190)](_0x110b60(0x171));});}}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
10
|
import { Dialog } from 'ckeditor5/src/ui.js';
|
|
11
|
-
import UploadcareImageEditController from './ui/uploadcareimageeditcontroller.js';
|
|
11
|
+
import { UploadcareImageEditController } from './ui/uploadcareimageeditcontroller.js';
|
|
12
12
|
/**
|
|
13
13
|
* The Uploadcare edit image command.
|
|
14
14
|
*
|
|
@@ -18,7 +18,7 @@ import UploadcareImageEditController from './ui/uploadcareimageeditcontroller.js
|
|
|
18
18
|
* editor.execute( 'uploadcareImageEdit' );
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
21
|
+
export declare class UploadcareImageEditCommand extends Command {
|
|
22
22
|
/**
|
|
23
23
|
* Whenever the controller is active and dialog UI visible.
|
|
24
24
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49b93e=_0x14bd;(function(_0x26ff6a,_0x147285){const _0xa7f427=_0x14bd,_0x3b6b92=_0x26ff6a();while(!![]){try{const _0x1a4fd7=-parseInt(_0xa7f427(0x1b5))/0x1*(-parseInt(_0xa7f427(0x1c5))/0x2)+parseInt(_0xa7f427(0x1c7))/0x3+-parseInt(_0xa7f427(0x1d0))/0x4+-parseInt(_0xa7f427(0x1bd))/0x5+-parseInt(_0xa7f427(0x1c4))/0x6+parseInt(_0xa7f427(0x1ca))/0x7*(-parseInt(_0xa7f427(0x1d2))/0x8)+-parseInt(_0xa7f427(0x1b9))/0x9*(-parseInt(_0xa7f427(0x1c9))/0xa);if(_0x1a4fd7===_0x147285)break;else _0x3b6b92['push'](_0x3b6b92['shift']());}catch(_0x7b9b34){_0x3b6b92['push'](_0x3b6b92['shift']());}}}(_0xf33c,0xc05c8));import{Command as _0x27f73f}from'ckeditor5/src/core.js';function _0x14bd(_0x95302a,_0x4a48e9){const _0xf33c2f=_0xf33c();return _0x14bd=function(_0x14bd72,_0x8eee5f){_0x14bd72=_0x14bd72-0x1b3;let _0x314b8f=_0xf33c2f[_0x14bd72];return _0x314b8f;},_0x14bd(_0x95302a,_0x4a48e9);}import{Dialog as _0x7d8796}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0xbbd170}from'./ui/uploadcareimageeditcontroller.js';function _0xf33c(){const _0x3d95ab=['plugins','108LSTAAc','unbind','element','execute','812090zZqhZj','getSelectedElement','document','bind','set','isActive','model','1591686ePlovG','3998iUurIC','_isEditable','4043511ZVjOEs','imageBlock','1037870acxAeI','16772rAXDfN','requires','uploadcare.allowExternalImagesEditing','imageEditController','get','refresh','1978516gStyiB','config','4904lNiLbA','imageInline','selection','293raYdEM','editor','isEnabled'];_0xf33c=function(){return _0x3d95ab;};return _0xf33c();}import{createEditabilityChecker as _0x496b20}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x27f73f{[_0x49b93e(0x1cd)];static get[_0x49b93e(0x1cb)](){return[_0x7d8796];}[_0x49b93e(0x1c6)];constructor(_0x2b9f15){const _0xa34413=_0x49b93e;super(_0x2b9f15),this[_0xa34413(0x1cd)]=void 0x0,this[_0xa34413(0x1c6)]=_0x496b20(_0x2b9f15[_0xa34413(0x1d1)][_0xa34413(0x1ce)](_0xa34413(0x1cc))||[]),this[_0xa34413(0x1c1)]({'isActive':!0x1});}[_0x49b93e(0x1cf)](){const _0x5c1477=_0x49b93e,_0x11449b=this[_0x5c1477(0x1b6)][_0x5c1477(0x1c3)][_0x5c1477(0x1bf)][_0x5c1477(0x1b4)][_0x5c1477(0x1be)]();this[_0x5c1477(0x1b7)]=this[_0x5c1477(0x1c6)](_0x11449b);}[_0x49b93e(0x1bc)](){const _0xa0fe50=_0x49b93e;this[_0xa0fe50(0x1cd)]&&(this[_0xa0fe50(0x1ba)](_0xa0fe50(0x1c2)),this[_0xa0fe50(0x1cd)]=void 0x0);const _0x662723=this[_0xa0fe50(0x1b6)][_0xa0fe50(0x1c3)][_0xa0fe50(0x1bf)][_0xa0fe50(0x1b4)][_0xa0fe50(0x1be)]();_0x662723&&(_0x662723['is'](_0xa0fe50(0x1bb),_0xa0fe50(0x1c8))||_0x662723['is'](_0xa0fe50(0x1bb),_0xa0fe50(0x1b3)))&&(this[_0xa0fe50(0x1cd)]=new _0xbbd170(this[_0xa0fe50(0x1b6)],this[_0xa0fe50(0x1b6)][_0xa0fe50(0x1b8)][_0xa0fe50(0x1ce)](_0x7d8796),_0x662723),this[_0xa0fe50(0x1c0)](_0xa0fe50(0x1c2))['to'](this[_0xa0fe50(0x1cd)],_0xa0fe50(0x1c2)));}}
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
10
|
import { Notification } from 'ckeditor5/src/ui.js';
|
|
11
|
-
import UploadcareEditing from '../uploadcareediting.js';
|
|
11
|
+
import { UploadcareEditing } from '../uploadcareediting.js';
|
|
12
12
|
/**
|
|
13
13
|
* The Uploadcare image editing plugin.
|
|
14
14
|
*
|
|
15
15
|
* It complements the {@link module:uploadcare/uploadcare~Uploadcare Uploadcare feature} by adding editing capabilities for uploaded images.
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export declare class UploadcareImageEditEditing extends Plugin {
|
|
18
18
|
/**
|
|
19
19
|
* @inheritDoc
|
|
20
20
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d8ac1=_0x5613;function _0x4d3c(){const _0x42ece4=['UploadcareImageEditEditing','requires','9686411GVJwVq','6BIphwJ','ImageUtils','uploadcareImageEdit','5985204UNUwhq','add','1511520QabDqo','commands','2183375bWwlzD','461628ecLnbj','pluginName','init','isOfficialPlugin','434808ZQdFJR','uploadcareImageReplace','3680622xKZdNB','isPremiumPlugin','ImageEditing'];_0x4d3c=function(){return _0x42ece4;};return _0x4d3c();}(function(_0x186a22,_0x33b26f){const _0x53c7d5=_0x5613,_0x7df8e7=_0x186a22();while(!![]){try{const _0x49466e=-parseInt(_0x53c7d5(0x70))/0x1+-parseInt(_0x53c7d5(0x6d))/0x2*(parseInt(_0x53c7d5(0x68))/0x3)+parseInt(_0x53c7d5(0x6b))/0x4+parseInt(_0x53c7d5(0x6f))/0x5+-parseInt(_0x53c7d5(0x76))/0x6+parseInt(_0x53c7d5(0x67))/0x7+parseInt(_0x53c7d5(0x74))/0x8;if(_0x49466e===_0x33b26f)break;else _0x7df8e7['push'](_0x7df8e7['shift']());}catch(_0x24b0fa){_0x7df8e7['push'](_0x7df8e7['shift']());}}}(_0x4d3c,0xbf883));function _0x5613(_0x62dbd4,_0x33accc){const _0x4d3cb9=_0x4d3c();return _0x5613=function(_0x561399,_0x214d4a){_0x561399=_0x561399-0x67;let _0x2da05d=_0x4d3cb9[_0x561399];return _0x2da05d;},_0x5613(_0x62dbd4,_0x33accc);}import{Plugin as _0x57f3d1}from'ckeditor5/src/core.js';import{Notification as _0x58e647}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x29c9a7}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x40c884}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x445cb3}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x57f3d1{static get[_0x2d8ac1(0x71)](){const _0xc2403f=_0x2d8ac1;return _0xc2403f(0x79);}static get[_0x2d8ac1(0x7a)](){const _0x45e1b6=_0x2d8ac1;return[_0x445cb3,_0x58e647,_0x45e1b6(0x69),_0x45e1b6(0x78)];}static get[_0x2d8ac1(0x73)](){return!0x0;}static get[_0x2d8ac1(0x77)](){return!0x0;}[_0x2d8ac1(0x72)](){const _0x36a06a=_0x2d8ac1,{editor:_0x6ff7b6}=this;_0x6ff7b6[_0x36a06a(0x6e)][_0x36a06a(0x6c)](_0x36a06a(0x6a),new _0x29c9a7(_0x6ff7b6)),_0x6ff7b6[_0x36a06a(0x6e)][_0x36a06a(0x6c)](_0x36a06a(0x75),new _0x40c884(_0x6ff7b6));}}
|