@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250206.0 → 0.0.0-nightly-20250208.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.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x56ed45,_0x51d4d0){var _0x2c212a=_0x2716,_0x5dd601=_0x56ed45();while(!![]){try{var _0x568bca=-parseInt(_0x2c212a(0x11c))/0x1+parseInt(_0x2c212a(0x12d))/0x2+-parseInt(_0x2c212a(0x131))/0x3+parseInt(_0x2c212a(0x11d))/0x4+-parseInt(_0x2c212a(0x126))/0x5+-parseInt(_0x2c212a(0x129))/0x6*(-parseInt(_0x2c212a(0x125))/0x7)+-parseInt(_0x2c212a(0x120))/0x8;if(_0x568bca===_0x51d4d0)break;else _0x5dd601['push'](_0x5dd601['shift']());}catch(_0x489c8b){_0x5dd601['push'](_0x5dd601['shift']());}}}(_0xa8b7,0xe68dd));export var UploadcareSource;!function(_0x2b1b78){var _0x51dcb9=_0x2716;_0x2b1b78[_0x51dcb9(0x12e)]=_0x51dcb9(0x12c),_0x2b1b78[_0x51dcb9(0x11e)]=_0x51dcb9(0x121),_0x2b1b78[_0x51dcb9(0x123)]=_0x51dcb9(0x12b),_0x2b1b78[_0x51dcb9(0x132)]=_0x51dcb9(0x128),_0x2b1b78[_0x51dcb9(0x133)]=_0x51dcb9(0x12a),_0x2b1b78[_0x51dcb9(0x11f)]=_0x51dcb9(0x130),_0x2b1b78[_0x51dcb9(0x124)]=_0x51dcb9(0x127),_0x2b1b78[_0x51dcb9(0x122)]=_0x51dcb9(0x12f);}(UploadcareSource||(UploadcareSource={}));function _0x2716(_0x5ae3e9,_0x209356){var _0xa8b794=_0xa8b7();return _0x2716=function(_0x27167a,_0x575b33){_0x27167a=_0x27167a-0x11c;var _0x2988cb=_0xa8b794[_0x27167a];return _0x2988cb;},_0x2716(_0x5ae3e9,_0x209356);}function _0xa8b7(){var _0x2c72d0=['Facebook','1438802LMuQFk','5768140KtEsrv','URL','GPhotos','377368FTdmWU','url','OneDrive','Dropbox','Instagram','6167SEeDUW','5043805MsjBqI','instagram','gdrive','8220CzZxZV','facebook','dropbox','local','2566330pedaKN','Local','onedrive','gphotos','1479261CVHway','GDrive'];_0xa8b7=function(){return _0x2c72d0;};return _0xa8b7();}
23
+ (function(_0x100740,_0x4165cf){var _0x2fed6d=_0x5c39,_0x15a70e=_0x100740();while(!![]){try{var _0x1d7beb=parseInt(_0x2fed6d(0xb2))/0x1+-parseInt(_0x2fed6d(0xb3))/0x2+-parseInt(_0x2fed6d(0xb9))/0x3*(parseInt(_0x2fed6d(0xb7))/0x4)+-parseInt(_0x2fed6d(0xae))/0x5+parseInt(_0x2fed6d(0xb1))/0x6+-parseInt(_0x2fed6d(0xb6))/0x7+parseInt(_0x2fed6d(0xa8))/0x8;if(_0x1d7beb===_0x4165cf)break;else _0x15a70e['push'](_0x15a70e['shift']());}catch(_0x477146){_0x15a70e['push'](_0x15a70e['shift']());}}}(_0xeed5,0x84461));function _0x5c39(_0x335c7a,_0x2934a4){var _0xeed5f4=_0xeed5();return _0x5c39=function(_0x5c39b2,_0x2781dc){_0x5c39b2=_0x5c39b2-0xa2;var _0xf688f2=_0xeed5f4[_0x5c39b2];return _0xf688f2;},_0x5c39(_0x335c7a,_0x2934a4);}export var UploadcareSource;function _0xeed5(){var _0x2e4be6=['Instagram','GDrive','url','2844390APoWUF','gphotos','URL','4354962vafsVd','133682LzExsR','631458LkNLlD','Facebook','gdrive','2462530BKNKKV','28kYYDnI','onedrive','354507MXmBDJ','facebook','dropbox','Dropbox','Local','GPhotos','instagram','13966912UAfzhp','local','OneDrive'];_0xeed5=function(){return _0x2e4be6;};return _0xeed5();}!function(_0x24f8d5){var _0x10b316=_0x5c39;_0x24f8d5[_0x10b316(0xa5)]=_0x10b316(0xa9),_0x24f8d5[_0x10b316(0xb0)]=_0x10b316(0xad),_0x24f8d5[_0x10b316(0xa4)]=_0x10b316(0xa3),_0x24f8d5[_0x10b316(0xac)]=_0x10b316(0xb5),_0x24f8d5[_0x10b316(0xb4)]=_0x10b316(0xa2),_0x24f8d5[_0x10b316(0xa6)]=_0x10b316(0xaf),_0x24f8d5[_0x10b316(0xab)]=_0x10b316(0xa7),_0x24f8d5[_0x10b316(0xaa)]=_0x10b316(0xb8);}(UploadcareSource||(UploadcareSource={}));
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x28ec1d=_0x4e99;(function(_0x4e5311,_0x4b42c8){const _0x31ae1e=_0x4e99,_0x448048=_0x4e5311();while(!![]){try{const _0x1e2edf=parseInt(_0x31ae1e(0xd9))/0x1+-parseInt(_0x31ae1e(0xe6))/0x2+-parseInt(_0x31ae1e(0xa7))/0x3*(-parseInt(_0x31ae1e(0xd0))/0x4)+parseInt(_0x31ae1e(0x99))/0x5*(-parseInt(_0x31ae1e(0xa5))/0x6)+parseInt(_0x31ae1e(0xbb))/0x7+-parseInt(_0x31ae1e(0xda))/0x8+parseInt(_0x31ae1e(0x98))/0x9;if(_0x1e2edf===_0x4b42c8)break;else _0x448048['push'](_0x448048['shift']());}catch(_0x5b2cbe){_0x448048['push'](_0x448048['shift']());}}}(_0x2c3c,0x8aa1d));import{Plugin as _0x307a30}from'ckeditor5/src/core.js';import{Dialog as _0x43a1e0}from'ckeditor5/src/ui.js';import{createElement as _0x179e8e,global as _0x5ee757,uid as _0x59b6e3}from'ckeditor5/src/utils.js';function _0x4e99(_0x3c31d5,_0x2bd5f3){const _0x2c3c45=_0x2c3c();return _0x4e99=function(_0x4e994c,_0x29e5b8){_0x4e994c=_0x4e994c-0x95;let _0x226bda=_0x2c3c45[_0x4e994c];return _0x226bda;},_0x4e99(_0x3c31d5,_0x2bd5f3);}import _0x2bee29 from'./uploadcarecommand.js';import _0x4797c2 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x56a29e}from'./utils/editingutils.js';function _0x2c3c(){const _0x248319=['3OlMzgm','closeMax','imageBlock','cleanupImage','uploadcare.pubkey','ctxElement','isRegistered','destroy','_ctxElement','config','body','isPremiumPlugin','remove','_initCtx','uploader','_initImageProcessingIndicator','once','href','elementToAttribute','uc-config','3526012tlafWB','conversion','uploadcareImageId','join','_initSchema','appendChild','data-uc-image-id','true','editor','editing','iconHrefResolver','#uc-icon-arrow-down','map','get','selection','requires','listenTo','add','fromCharCode','input[uploadcare-file-input]','commands','1900648ylCVYe','afterInit','removeAttribute','execute','getAttribute','UploadcareEditing','imageInline','replaceImageSource','_initConversion','360642YIkRan','5305224bwQJgo','\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','upcast','attributeToAttribute','configElement','uploadcare.uploader','_initConfig','PictureEditing','uc-upload-ctx-provider','document','for','_configElement','881042LlVhzJ','render','getSelectedElement','view','isOfficialPlugin','12883968njeVKp','239035syvsZl','init','insertImage','querySelector','extend','contentLanguage','downcast','pluginName','schema','uploadcareImageReplace','uploadcare','locale','138rqJjdT','model'];_0x2c3c=function(){return _0x248319;};return _0x2c3c();}export default class i extends _0x307a30{constructor(){const _0x1b143f=_0x4e99;super(...arguments),this[_0x1b143f(0xe5)]=null,this[_0x1b143f(0xaf)]=null;}static get[_0x28ec1d(0xa0)](){const _0x5356b6=_0x28ec1d;return _0x5356b6(0xd5);}static get[_0x28ec1d(0xca)](){const _0x1329b1=_0x28ec1d;return[_0x1329b1(0xe1),_0x4797c2,_0x43a1e0];}static get[_0x28ec1d(0x97)](){return!0x0;}static get[_0x28ec1d(0xb2)](){return!0x0;}get[_0x28ec1d(0xde)](){const _0x53a6eb=_0x28ec1d;return this[_0x53a6eb(0xe5)];}get[_0x28ec1d(0xac)](){const _0x2de23=_0x28ec1d;return this[_0x2de23(0xaf)];}[_0x28ec1d(0x9a)](){const _0x1cc084=_0x28ec1d,_0x5a12f8=this[_0x1cc084(0xc3)];_0x5a12f8[_0x1cc084(0xcf)][_0x1cc084(0xcc)](_0x1cc084(0xa3),new _0x2bee29(_0x5a12f8));}[_0x28ec1d(0xd1)](){const _0x572da4=_0x28ec1d;this[_0x572da4(0xbf)](),this[_0x572da4(0xd8)](),this[_0x572da4(0xe0)](),this[_0x572da4(0xb4)](),this[_0x572da4(0xb6)](),this[_0x572da4(0xcb)](this[_0x572da4(0xc3)],_0x572da4(0xae),()=>{const _0x56ed41=_0x572da4;this[_0x56ed41(0xe5)]&&(this[_0x56ed41(0xe5)][_0x56ed41(0xb3)](),this[_0x56ed41(0xe5)]=null),this[_0x56ed41(0xaf)]&&(this[_0x56ed41(0xaf)][_0x56ed41(0xb3)](),this[_0x56ed41(0xaf)]=null);const _0x562558=_0x5ee757[_0x56ed41(0xe3)][_0x56ed41(0x9c)](_0x56ed41(0xce));_0x562558&&_0x562558[_0x56ed41(0xb3)]();}),async function(_0xf30ed9){const _0x45e9a7=_0x262d47([0x34,0x45,0x49,0x51,0x67,0x6c,0x66,0x62,0x39,0x46,0x50,0x4b,0x5a,0x65,0x6e,0x32,0x35,0x56,0x43,0x4c,0x47,0x52,0x4e,0x42,0x4a,0x73,0x76,0x6a,0x77,0x64,0x58,0x59,0x74,0x6d,0x53,0x38,0x63,0x4d,0x30,0x54,0x33,0x7a,0x55,0x6b,0x79,0x4f,0x61,0x31,0x68,0x37,0x57,0x6f,0x70,0x41,0x69,0x71,0x44,0x48,0x36,0x72,0x75,0x78]),_0x352fbb=0x1144b942,_0x150599=0x1143e7fa^_0x352fbb,_0x170285=window[_0x262d47([0x44,0x61,0x74,0x65])][_0x262d47([0x6e,0x6f,0x77])](),_0x12069d=_0xf30ed9[_0x262d47([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x324753=new window[(_0x262d47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b7bc6=>{_0x12069d[_0x262d47([0x6f,0x6e,0x63,0x65])](_0x262d47([0x72,0x65,0x61,0x64,0x79]),_0x2b7bc6);}),_0x5a5dae={[_0x262d47([0x6b,0x74,0x79])]:_0x262d47([0x45,0x43]),[_0x262d47([0x75,0x73,0x65])]:_0x262d47([0x73,0x69,0x67]),[_0x262d47([0x63,0x72,0x76])]:_0x262d47([0x50,0x2d,0x32,0x35,0x36]),[_0x262d47([0x78])]:_0x262d47([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]),[_0x262d47([0x79])]:_0x262d47([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]),[_0x262d47([0x61,0x6c,0x67])]:_0x262d47([0x45,0x53,0x32,0x35,0x36])},_0x3b4edb=_0x12069d[_0x262d47([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x262d47([0x67,0x65,0x74])](_0x262d47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3f374c(){let _0x43c67b,_0x35409c=null,_0x3e2a37=null;try{if(_0x3b4edb==_0x262d47([0x47,0x50,0x4c]))return _0x262d47([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x43c67b=_0x91470d(),!_0x43c67b)return _0x262d47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x43c67b[_0x262d47([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e2a37=_0x2a286f(_0x43c67b[_0x262d47([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x43c67b[_0x262d47([0x6a,0x74,0x69])])),await _0xc88a4f()?_0x5f2c53()?_0x11b914()?_0x262d47([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4df1e2()?(_0x43c67b[_0x262d47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x262d47([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x35409c=_0xb63d11(_0x262d47([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x43c67b[_0x262d47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x262d47([0x74,0x72,0x69,0x61,0x6c])&&(_0x35409c=_0xb63d11(_0x262d47([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x46afea()):_0x262d47([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x262d47([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x262d47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2d9b97){return _0x262d47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x11b914(){const _0x4b3550=[_0x262d47([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x262d47([0x74,0x72,0x69,0x61,0x6c])][_0x262d47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43c67b[_0x262d47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x170285/0x3e8:0xe10*_0x150599;return _0x43c67b[_0x262d47([0x65,0x78,0x70])]<_0x4b3550;}function _0x5f2c53(){const _0x4e35bb=_0x43c67b[_0x262d47([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4e35bb&&(!!_0x4e35bb[_0x262d47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x262d47([0x2a]))||!!_0x4e35bb[_0x262d47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x262d47([0x55,0x50,0x4c,0x43])));}function _0x4df1e2(){const _0x361207=_0x4e99,_0x177961=_0x43c67b[_0x262d47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x177961||0x0==_0x177961[_0x262d47([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2f0052}=new URL(window[_0x262d47([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x361207(0xb8)]);if(_0x177961[_0x262d47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f0052))return!0x0;const _0x322638=_0x2f0052[_0x262d47([0x73,0x70,0x6c,0x69,0x74])](_0x262d47([0x2e]));return _0x177961[_0x262d47([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b7fc9=>_0x1b7fc9[_0x262d47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x262d47([0x2a])))[_0x262d47([0x6d,0x61,0x70])](_0x2df33e=>_0x2df33e[_0x262d47([0x73,0x70,0x6c,0x69,0x74])](_0x262d47([0x2e])))[_0x262d47([0x73,0x6f,0x6d,0x65])](_0x576a84=>_0x322638[_0x262d47([0x65,0x76,0x65,0x72,0x79])]((_0x4d9a3a,_0x20fbfe)=>_0x576a84[_0x20fbfe]===_0x4d9a3a||_0x576a84[_0x20fbfe]===_0x262d47([0x2a])));}function _0x46afea(){return _0x35409c&&_0x3e2a37?new window[(_0x262d47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4bad80,_0x55e0c4)=>{_0x35409c[_0x262d47([0x74,0x68,0x65,0x6e])](_0x4bad80,_0x55e0c4),_0x3e2a37[_0x262d47([0x74,0x68,0x65,0x6e])](_0x36ca2c=>{_0x36ca2c!=_0x262d47([0x56,0x61,0x6c,0x69,0x64])&&_0x4bad80(_0x36ca2c);},_0x55e0c4);}):_0x35409c||_0x3e2a37||_0x262d47([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2a286f(_0x260f70,_0x468a2c){return new window[(_0x262d47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13d422=>{if(_0xea304a())return _0x13d422(_0x262d47([0x56,0x61,0x6c,0x69,0x64]));_0x388496(),_0x12069d[_0x262d47([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x262d47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1590d3=!0x1;const _0x85c61a=_0x59b6e3();function _0x2f97d9(_0x2ef063){return!!_0x2ef063&&(typeof _0x2ef063===_0x262d47([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ef063===_0x262d47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ef063[_0x262d47([0x74,0x68,0x65,0x6e])]===_0x262d47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ef063[_0x262d47([0x63,0x61,0x74,0x63,0x68])]===_0x262d47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2eae19(_0x555e0d){_0x238074(_0x555e0d)[_0x262d47([0x74,0x68,0x65,0x6e])](_0xdb9e88=>{if(!_0xdb9e88||_0xdb9e88[_0x262d47([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x262d47([0x6f,0x6b]))return _0x262d47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1758a5(_0x1b4da7(_0x85c61a+_0x468a2c))!=_0xdb9e88[_0x262d47([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x262d47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x262d47([0x56,0x61,0x6c,0x69,0x64]);})[_0x262d47([0x74,0x68,0x65,0x6e])](_0x1ec330=>(_0x1564c5(),_0x1ec330),()=>{const _0x8af28a=_0x44ed08();return null==_0x8af28a?(_0x1564c5(),_0x262d47([0x56,0x61,0x6c,0x69,0x64])):_0x262d47(_0x170285-_0x8af28a>(0x35483d42^_0x352fbb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x262d47([0x74,0x68,0x65,0x6e])](_0x13d422)[_0x262d47([0x63,0x61,0x74,0x63,0x68])](()=>{_0x13d422(_0x262d47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x50d994=0x117257c2^_0x352fbb;function _0x1564c5(){const _0xd72ebe=_0x262d47([0x6c,0x6c,0x63,0x74,0x2d])+_0x1758a5(_0x1b4da7(_0x260f70)),_0x18d7e3=_0x52d08b(_0x1758a5(window[_0x262d47([0x4d,0x61,0x74,0x68])][_0x262d47([0x63,0x65,0x69,0x6c])](_0x170285/_0x50d994)));window[_0x262d47([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x262d47([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd72ebe,_0x18d7e3);}function _0x44ed08(){const _0x4d3d42=_0x262d47([0x6c,0x6c,0x63,0x74,0x2d])+_0x1758a5(_0x1b4da7(_0x260f70)),_0x277a1d=window[_0x262d47([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x262d47([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d3d42);return _0x277a1d?window[_0x262d47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52d08b(_0x277a1d),0x10)*_0x50d994:null;}function _0x238074(_0x137eae){return new window[(_0x262d47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1794b4,_0x316102)=>{_0x137eae[_0x262d47([0x74,0x68,0x65,0x6e])](_0x1794b4,_0x316102),window[_0x262d47([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x316102,0x11456d82^_0x352fbb);});}}_0x12069d[_0x262d47([0x6f,0x6e])](_0x262d47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x45258c,_0x2c48ae)=>{if(_0x2c48ae[0x0]!=_0x260f70)return _0x13d422(_0x262d47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2c48ae[0x1]={..._0x2c48ae[0x1],[_0x262d47([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x85c61a};},{[_0x262d47([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x262d47([0x68,0x69,0x67,0x68])}),_0x12069d[_0x262d47([0x6f,0x6e])](_0x262d47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x50f943=>{_0x2f97d9(_0x50f943[_0x262d47([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1590d3=!0x0,_0x2eae19(_0x50f943[_0x262d47([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x262d47([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x262d47([0x6c,0x6f,0x77])}),_0x324753[_0x262d47([0x74,0x68,0x65,0x6e])](()=>{_0x1590d3||_0x13d422(_0x262d47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xea304a(){return _0x12069d[_0x262d47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x262d47([0x76,0x69,0x65,0x77])][_0x262d47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x262d47([0x61,0x75,0x74,0x6f]);}function _0x388496(){_0x12069d[_0x262d47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x262d47([0x76,0x69,0x65,0x77])][_0x262d47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x262d47([0x61,0x75,0x74,0x6f]);}}function _0xb63d11(_0x229e13){const _0x3804bf=[new window[(_0x262d47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x108416=>setTimeout(_0x108416,0x114d878e^_0x352fbb)),_0x324753[_0x262d47([0x74,0x68,0x65,0x6e])](()=>new window[(_0x262d47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c5c53=>{let _0x1f848d=0x0;_0x12069d[_0x262d47([0x6d,0x6f,0x64,0x65,0x6c])][_0x262d47([0x6f,0x6e])](_0x262d47([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x118ef1,_0x1dc083)=>{_0x1dc083[0x0][_0x262d47([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1f848d++,_0x1f848d==(0x1144b8ba^_0x352fbb)&&(_0x3c5c53(),_0x118ef1[_0x262d47([0x6f,0x66,0x66])]());});}))];return window[_0x262d47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x262d47([0x72,0x61,0x63,0x65])](_0x3804bf)[_0x262d47([0x74,0x68,0x65,0x6e])](()=>_0x229e13);}async function _0x1f1f6f(){await _0x324753,_0x12069d[_0x262d47([0x6d,0x6f,0x64,0x65,0x6c])][_0x262d47([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3aa17b,_0x12069d[_0x262d47([0x6d,0x6f,0x64,0x65,0x6c])][_0x262d47([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3aa17b,_0x12069d[_0x262d47([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x262d47([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x389031(_0x3c3ae3){const _0x4dabd7=_0x299743();_0x12069d[_0x4dabd7]=_0x262d47([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3c3ae3,_0x3c3ae3!=_0x262d47([0x56,0x61,0x6c,0x69,0x64])&&_0x1f1f6f();}function _0x299743(){const _0x3b4d63=window[_0x262d47([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x262d47([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x262d47([0x6e,0x6f,0x77])]())[_0x262d47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x262d47([0x2e]),'');let _0x8418e1=_0x262d47([0x45]);for(let _0xbbd988=0x0;_0xbbd988<_0x3b4d63[_0x262d47([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xbbd988+=0x2){let _0x4043db=window[_0x262d47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b4d63[_0x262d47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbbd988,_0xbbd988+0x2));_0x4043db>=_0x45e9a7[_0x262d47([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4043db-=_0x45e9a7[_0x262d47([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x8418e1+=_0x45e9a7[_0x4043db];}return _0x8418e1;}function _0x91470d(){const _0x451600=_0x3b4edb[_0x262d47([0x73,0x70,0x6c,0x69,0x74])](_0x262d47([0x2e]));if(0x3!=_0x451600[_0x262d47([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3a7399(_0x451600[0x1]);function _0x3a7399(_0x5017ac){const _0x4d91d1=_0x22a4d0(_0x5017ac);return _0x4d91d1&&_0x581bf6()?_0x4d91d1:null;function _0x581bf6(){const _0x19c77f=_0x4d91d1[_0x262d47([0x6a,0x74,0x69])],_0x2ba6f5=window[_0x262d47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19c77f[_0x262d47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19c77f[_0x262d47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x7c0912={..._0x4d91d1,[_0x262d47([0x6a,0x74,0x69])]:_0x19c77f[_0x262d47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x19c77f[_0x262d47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x7c0912[_0x262d47([0x76,0x63])],_0x1b4da7(_0x7c0912)==_0x2ba6f5;}}}async function _0xc88a4f(){let _0x5e52e2=!0x0;try{const _0x87a22f=_0x3b4edb[_0x262d47([0x73,0x70,0x6c,0x69,0x74])](_0x262d47([0x2e])),[_0x1ce049,_0x399905,_0x568e04]=_0x87a22f;return _0x211518(_0x1ce049),await _0x4f47e6(_0x1ce049,_0x399905,_0x568e04),_0x5e52e2;}catch(_0x3316b3){return!0x1;}function _0x211518(_0x38430a){const _0x28f660=_0x22a4d0(_0x38430a);_0x28f660&&_0x28f660[_0x262d47([0x61,0x6c,0x67])]==_0x262d47([0x45,0x53,0x32,0x35,0x36])||(_0x5e52e2=!0x1);}async function _0x4f47e6(_0x167a92,_0x3392cc,_0x3a6c5c){const _0x5a658c=window[_0x262d47([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x262d47([0x66,0x72,0x6f,0x6d])](_0x4cee12(_0x3a6c5c),_0x38fed3=>_0x38fed3[_0x262d47([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x50bc24=new window[(_0x262d47([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x262d47([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x167a92+_0x262d47([0x2e])+_0x3392cc),_0xde13f4=window[_0x262d47([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x262d47([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xde13f4)return;const _0x57d27c=await _0xde13f4[_0x262d47([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x262d47([0x6a,0x77,0x6b]),_0x5a5dae,{[_0x262d47([0x6e,0x61,0x6d,0x65])]:_0x262d47([0x45,0x43,0x44,0x53,0x41]),[_0x262d47([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x262d47([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x262d47([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xde13f4[_0x262d47([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x262d47([0x6e,0x61,0x6d,0x65])]:_0x262d47([0x45,0x43,0x44,0x53,0x41]),[_0x262d47([0x68,0x61,0x73,0x68])]:{[_0x262d47([0x6e,0x61,0x6d,0x65])]:_0x262d47([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x57d27c,_0x5a658c,_0x50bc24)||(_0x5e52e2=!0x1);}}function _0x22a4d0(_0x55cf7d){return _0x55cf7d[_0x262d47([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x262d47([0x65,0x79]))?JSON[_0x262d47([0x70,0x61,0x72,0x73,0x65])](_0x4cee12(_0x55cf7d)):null;}function _0x4cee12(_0x13666c){return window[_0x262d47([0x61,0x74,0x6f,0x62])](_0x13666c[_0x262d47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x262d47([0x2b]))[_0x262d47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x262d47([0x2f])));}function _0x1b4da7(_0x254a25){let _0x2a33fc=0x1505;function _0x5e93dc(_0x275db3){for(let _0x3eb1b3=0x0;_0x3eb1b3<_0x275db3[_0x262d47([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3eb1b3++){const _0x25380f=_0x275db3[_0x262d47([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3eb1b3);_0x2a33fc=(_0x2a33fc<<0x5)+_0x2a33fc+_0x25380f,_0x2a33fc&=_0x2a33fc;}}function _0x1f126e(_0x1ae9b5){Array[_0x262d47([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1ae9b5)?_0x1ae9b5[_0x262d47([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1f126e):_0x1ae9b5&&typeof _0x1ae9b5==_0x262d47([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x262d47([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1ae9b5)[_0x262d47([0x73,0x6f,0x72,0x74])]()[_0x262d47([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x202a82,_0x4b7ea8])=>{_0x5e93dc(_0x202a82),_0x1f126e(_0x4b7ea8);}):_0x5e93dc(window[_0x262d47([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1ae9b5));}return _0x1f126e(_0x254a25),_0x2a33fc>>>0x0;}function _0x1758a5(_0x73ee93){return _0x73ee93[_0x262d47([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x262d47([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x262d47([0x30]));}function _0x52d08b(_0xdb0be0){return _0xdb0be0[_0x262d47([0x73,0x70,0x6c,0x69,0x74])]('')[_0x262d47([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x262d47([0x6a,0x6f,0x69,0x6e])]('');}function _0x3aa17b(){}function _0x262d47(_0x53490e){const _0x456455=_0x4e99;return _0x53490e[_0x456455(0xc7)](_0x11b9b2=>String[_0x456455(0xcd)](_0x11b9b2))[_0x456455(0xbe)]('');}_0x389031(await _0x3f374c());}(this);}[_0x28ec1d(0xbf)](){const _0x13c198=_0x28ec1d,_0x1582fb=this[_0x13c198(0xc3)][_0x13c198(0xa6)][_0x13c198(0xa1)];_0x1582fb[_0x13c198(0xad)](_0x13c198(0xa9))&&_0x1582fb[_0x13c198(0x9d)](_0x13c198(0xa9),{'allowAttributes':[_0x13c198(0xbd)]}),_0x1582fb[_0x13c198(0xad)](_0x13c198(0xd6))&&_0x1582fb[_0x13c198(0x9d)](_0x13c198(0xd6),{'allowAttributes':[_0x13c198(0xbd)]});}[_0x28ec1d(0xd8)](){const _0x32c27e=_0x28ec1d,_0x43fb16=this[_0x32c27e(0xc3)];_0x43fb16[_0x32c27e(0xbc)][_0x32c27e(0xe4)](_0x32c27e(0x9f))[_0x32c27e(0xdd)]({'model':_0x32c27e(0xbd),'view':_0x32c27e(0xc1)}),_0x43fb16[_0x32c27e(0xbc)][_0x32c27e(0xe4)](_0x32c27e(0xdc))[_0x32c27e(0xb9)]({'model':{'key':_0x32c27e(0xbd),'value':_0x241bb2=>_0x241bb2[_0x32c27e(0xd4)](_0x32c27e(0xc1))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5869cb=_0x43fb16[_0x32c27e(0xcf)][_0x32c27e(0xc8)](_0x32c27e(0xd7));_0x5869cb&&this[_0x32c27e(0xcb)](_0x5869cb,_0x32c27e(0xaa),(_0x4bdc39,[_0x3bcd37,_0x1c081c])=>{const _0xda33d5=_0x32c27e;_0x3bcd37[_0xda33d5(0xd2)](_0xda33d5(0xbd),_0x1c081c);});}[_0x28ec1d(0xe0)](){const _0x226fab=_0x28ec1d,_0x58c850=this[_0x226fab(0xc3)][_0x226fab(0xb0)][_0x226fab(0xc8)](_0x226fab(0xdf))||{},_0x58e7c1=this[_0x226fab(0xc3)][_0x226fab(0xb0)][_0x226fab(0xc8)](_0x226fab(0xab))||'';this[_0x226fab(0xe5)]=_0x179e8e(_0x5ee757[_0x226fab(0xe3)],_0x226fab(0xba),{..._0x58c850,'pubkey':_0x58e7c1,'ctx-name':_0x226fab(0xb5),'sourceList':'','imgOnly':_0x226fab(0xc2),'removeCopyright':_0x226fab(0xc2),'localeName':this[_0x226fab(0xc3)][_0x226fab(0xa4)][_0x226fab(0x9e)],'externalSourcesEmbedCss':_0x226fab(0xdb)}),this[_0x226fab(0xe5)][_0x226fab(0xc5)]=_0x3d1a82=>{const _0x14ff55=_0x226fab;if(_0x14ff55(0xa8)==_0x3d1a82)return _0x14ff55(0xc6);},_0x5ee757[_0x226fab(0xe3)][_0x226fab(0xb1)][_0x226fab(0xc0)](this[_0x226fab(0xe5)]);}[_0x28ec1d(0xb4)](){const _0x51aaab=_0x28ec1d;this[_0x51aaab(0xaf)]=_0x179e8e(_0x5ee757[_0x51aaab(0xe3)],_0x51aaab(0xe2),{'ctx-name':_0x51aaab(0xb5)}),_0x5ee757[_0x51aaab(0xe3)][_0x51aaab(0xb1)][_0x51aaab(0xc0)](this[_0x51aaab(0xaf)]);}[_0x28ec1d(0xb6)](){const _0x41cc1c=_0x28ec1d,_0x1c642b=this[_0x41cc1c(0xc3)][_0x41cc1c(0xcf)][_0x41cc1c(0xc8)](_0x41cc1c(0x9b));_0x1c642b&&this[_0x41cc1c(0xcb)](_0x1c642b,_0x41cc1c(0xd3),()=>{const _0x1cad2a=_0x41cc1c,_0x4961c6=this[_0x1cad2a(0xc3)][_0x1cad2a(0xa6)][_0x1cad2a(0xe3)][_0x1cad2a(0xc9)][_0x1cad2a(0x95)]();_0x4961c6&&_0x4961c6[_0x1cad2a(0xd4)](_0x1cad2a(0xbd))&&this[_0x1cad2a(0xc3)][_0x1cad2a(0xc4)][_0x1cad2a(0x96)][_0x1cad2a(0xb7)](_0x1cad2a(0xe7),()=>{const _0x245bcd=_0x1cad2a;_0x56a29e(this[_0x245bcd(0xc3)],_0x4961c6);});});const _0x329f9c=this[_0x41cc1c(0xc3)][_0x41cc1c(0xcf)][_0x41cc1c(0xc8)](_0x41cc1c(0xa2));_0x329f9c&&this[_0x41cc1c(0xcb)](_0x329f9c,_0x41cc1c(0xd3),()=>{const _0x32b7b1=_0x41cc1c,_0x4600e2=this[_0x32b7b1(0xc3)][_0x32b7b1(0xa6)][_0x32b7b1(0xe3)][_0x32b7b1(0xc9)][_0x32b7b1(0x95)]();_0x4600e2&&_0x4600e2[_0x32b7b1(0xd4)](_0x32b7b1(0xbd))&&this[_0x32b7b1(0xc3)][_0x32b7b1(0xc4)][_0x32b7b1(0x96)][_0x32b7b1(0xb7)](_0x32b7b1(0xe7),()=>{const _0xc989fa=_0x32b7b1;_0x56a29e(this[_0xc989fa(0xc3)],_0x4600e2);});});}}
23
+ const _0x4b537d=_0x3513;(function(_0x3a21c6,_0x217642){const _0x3f296b=_0x3513,_0x1403af=_0x3a21c6();while(!![]){try{const _0x417484=-parseInt(_0x3f296b(0x136))/0x1+parseInt(_0x3f296b(0x139))/0x2*(-parseInt(_0x3f296b(0x10f))/0x3)+parseInt(_0x3f296b(0x120))/0x4*(-parseInt(_0x3f296b(0x12b))/0x5)+parseInt(_0x3f296b(0x151))/0x6+-parseInt(_0x3f296b(0x12e))/0x7+-parseInt(_0x3f296b(0x111))/0x8*(parseInt(_0x3f296b(0x130))/0x9)+parseInt(_0x3f296b(0x154))/0xa;if(_0x417484===_0x217642)break;else _0x1403af['push'](_0x1403af['shift']());}catch(_0x3e7373){_0x1403af['push'](_0x1403af['shift']());}}}(_0x18ac,0xcd6ac));function _0x18ac(){const _0x5c59d6=['init','UploadcareEditing','getSelectedElement','listenTo','extend','map','once','uploadcareImageId','insertImage','requires','add','24332NxKEma','isOfficialPlugin','upcast','uploadcareImageReplace','downcast','contentLanguage','uc-config','fromCharCode','schema','_ctxElement','get','305kXrYHv','PictureEditing','ctxElement','924448kCSZmS','_initConfig','225AmHtod','imageBlock','uc-upload-ctx-provider','afterInit','_initConversion','\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','1045318xrEAae','conversion','model','2933038aZMrpJ','editor','attributeToAttribute','iconHrefResolver','true','configElement','pluginName','removeAttribute','remove','for','_initCtx','locale','replaceImageSource','uploadcare','render','#uc-icon-arrow-down','document','imageInline','commands','body','elementToAttribute','config','data-uc-image-id','uploader','3191076ycuWvL','_configElement','selection','43989310HNWmXj','getAttribute','view','uploadcare.pubkey','href','input[uploadcare-file-input]','_initSchema','execute','closeMax','join','isRegistered','isPremiumPlugin','querySelector','uploadcare.uploader','destroy','3NYvWFA','cleanupImage','343816oyciWq','_initImageProcessingIndicator','editing','appendChild'];_0x18ac=function(){return _0x5c59d6;};return _0x18ac();}import{Plugin as _0x32b040}from'ckeditor5/src/core.js';import{Dialog as _0xe414ee}from'ckeditor5/src/ui.js';import{createElement as _0x46e996,global as _0x563701,uid as _0x57b6fd}from'ckeditor5/src/utils.js';function _0x3513(_0x4a27b1,_0x2a216a){const _0x18ac00=_0x18ac();return _0x3513=function(_0x351375,_0x2876ee){_0x351375=_0x351375-0x104;let _0x18e721=_0x18ac00[_0x351375];return _0x18e721;},_0x3513(_0x4a27b1,_0x2a216a);}import _0x47dc69 from'./uploadcarecommand.js';import _0x438ad7 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x729e65}from'./utils/editingutils.js';export default class i extends _0x32b040{constructor(){const _0x4e2197=_0x3513;super(...arguments),this[_0x4e2197(0x152)]=null,this[_0x4e2197(0x129)]=null;}static get[_0x4b537d(0x13f)](){const _0x34cc7c=_0x4b537d;return _0x34cc7c(0x116);}static get[_0x4b537d(0x11e)](){const _0x341fb0=_0x4b537d;return[_0x341fb0(0x12c),_0x438ad7,_0xe414ee];}static get[_0x4b537d(0x121)](){return!0x0;}static get[_0x4b537d(0x10b)](){return!0x0;}get[_0x4b537d(0x13e)](){const _0x133976=_0x4b537d;return this[_0x133976(0x152)];}get[_0x4b537d(0x12d)](){const _0x5329f5=_0x4b537d;return this[_0x5329f5(0x129)];}[_0x4b537d(0x115)](){const _0xe0384c=_0x4b537d,_0x409711=this[_0xe0384c(0x13a)];_0x409711[_0xe0384c(0x14b)][_0xe0384c(0x11f)](_0xe0384c(0x146),new _0x47dc69(_0x409711));}[_0x4b537d(0x133)](){const _0x417f7e=_0x4b537d;this[_0x417f7e(0x106)](),this[_0x417f7e(0x134)](),this[_0x417f7e(0x12f)](),this[_0x417f7e(0x143)](),this[_0x417f7e(0x112)](),this[_0x417f7e(0x118)](this[_0x417f7e(0x13a)],_0x417f7e(0x10e),()=>{const _0x312085=_0x417f7e;this[_0x312085(0x152)]&&(this[_0x312085(0x152)][_0x312085(0x141)](),this[_0x312085(0x152)]=null),this[_0x312085(0x129)]&&(this[_0x312085(0x129)][_0x312085(0x141)](),this[_0x312085(0x129)]=null);const _0x4455c5=_0x563701[_0x312085(0x149)][_0x312085(0x10c)](_0x312085(0x105));_0x4455c5&&_0x4455c5[_0x312085(0x141)]();}),async function(_0x1a1148){const _0x1f4a3e=_0x6e40ea([0x4a,0x52,0x54,0x76,0x79,0x44,0x4c,0x4b,0x62,0x69,0x32,0x6e,0x49,0x72,0x5a,0x30,0x67,0x39,0x63,0x7a,0x43,0x58,0x64,0x77,0x59,0x57,0x50,0x42,0x56,0x48,0x6a,0x6d,0x34,0x35,0x53,0x4f,0x75,0x66,0x68,0x6c,0x73,0x65,0x71,0x47,0x4d,0x78,0x33,0x37,0x6b,0x41,0x6f,0x51,0x38,0x61,0x74,0x4e,0x36,0x45,0x31,0x55,0x70,0x46]),_0x11d9a7=0x459e88eb,_0x3e89ac=0x4599d603^_0x11d9a7,_0x133a78=window[_0x6e40ea([0x44,0x61,0x74,0x65])][_0x6e40ea([0x6e,0x6f,0x77])](),_0x4d95a1=_0x1a1148[_0x6e40ea([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1522a2=new window[(_0x6e40ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f964d=>{_0x4d95a1[_0x6e40ea([0x6f,0x6e,0x63,0x65])](_0x6e40ea([0x72,0x65,0x61,0x64,0x79]),_0x2f964d);}),_0x59c402={[_0x6e40ea([0x6b,0x74,0x79])]:_0x6e40ea([0x45,0x43]),[_0x6e40ea([0x75,0x73,0x65])]:_0x6e40ea([0x73,0x69,0x67]),[_0x6e40ea([0x63,0x72,0x76])]:_0x6e40ea([0x50,0x2d,0x32,0x35,0x36]),[_0x6e40ea([0x78])]:_0x6e40ea([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]),[_0x6e40ea([0x79])]:_0x6e40ea([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]),[_0x6e40ea([0x61,0x6c,0x67])]:_0x6e40ea([0x45,0x53,0x32,0x35,0x36])},_0x3cba8b=_0x4d95a1[_0x6e40ea([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x6e40ea([0x67,0x65,0x74])](_0x6e40ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4d746d(){let _0x4fb131,_0x1847ad=null,_0x3a1b90=null;try{if(_0x3cba8b==_0x6e40ea([0x47,0x50,0x4c]))return _0x6e40ea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4fb131=_0x39209d(),!_0x4fb131)return _0x6e40ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4fb131[_0x6e40ea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3a1b90=_0x5a5b4a(_0x4fb131[_0x6e40ea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4fb131[_0x6e40ea([0x6a,0x74,0x69])])),await _0x5725d8()?_0x25b95c()?_0x498770()?_0x6e40ea([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x96b87e()?(_0x4fb131[_0x6e40ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6e40ea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1847ad=_0x3804df(_0x6e40ea([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4fb131[_0x6e40ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6e40ea([0x74,0x72,0x69,0x61,0x6c])&&(_0x1847ad=_0x3804df(_0x6e40ea([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3e7279()):_0x6e40ea([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x6e40ea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x6e40ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x59f73a){return _0x6e40ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x498770(){const _0x381aa4=[_0x6e40ea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x6e40ea([0x74,0x72,0x69,0x61,0x6c])][_0x6e40ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fb131[_0x6e40ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x133a78/0x3e8:0xe10*_0x3e89ac;return _0x4fb131[_0x6e40ea([0x65,0x78,0x70])]<_0x381aa4;}function _0x25b95c(){const _0x49323c=_0x4fb131[_0x6e40ea([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x49323c&&(!!_0x49323c[_0x6e40ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6e40ea([0x2a]))||!!_0x49323c[_0x6e40ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6e40ea([0x55,0x50,0x4c,0x43])));}function _0x96b87e(){const _0x1989b9=_0x3513,_0x482260=_0x4fb131[_0x6e40ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x482260||0x0==_0x482260[_0x6e40ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc1017c}=new URL(window[_0x6e40ea([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1989b9(0x104)]);if(_0x482260[_0x6e40ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc1017c))return!0x0;const _0x274b3c=_0xc1017c[_0x6e40ea([0x73,0x70,0x6c,0x69,0x74])](_0x6e40ea([0x2e]));return _0x482260[_0x6e40ea([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x31f0a4=>_0x31f0a4[_0x6e40ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6e40ea([0x2a])))[_0x6e40ea([0x6d,0x61,0x70])](_0x4c94dc=>_0x4c94dc[_0x6e40ea([0x73,0x70,0x6c,0x69,0x74])](_0x6e40ea([0x2e])))[_0x6e40ea([0x73,0x6f,0x6d,0x65])](_0x535ab1=>_0x274b3c[_0x6e40ea([0x65,0x76,0x65,0x72,0x79])]((_0x361867,_0x3ae814)=>_0x535ab1[_0x3ae814]===_0x361867||_0x535ab1[_0x3ae814]===_0x6e40ea([0x2a])));}function _0x3e7279(){return _0x1847ad&&_0x3a1b90?new window[(_0x6e40ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x146869,_0x387cfd)=>{_0x1847ad[_0x6e40ea([0x74,0x68,0x65,0x6e])](_0x146869,_0x387cfd),_0x3a1b90[_0x6e40ea([0x74,0x68,0x65,0x6e])](_0x250742=>{_0x250742!=_0x6e40ea([0x56,0x61,0x6c,0x69,0x64])&&_0x146869(_0x250742);},_0x387cfd);}):_0x1847ad||_0x3a1b90||_0x6e40ea([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a5b4a(_0x4b596e,_0x4a796d){return new window[(_0x6e40ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3731df=>{if(_0x251392())return _0x3731df(_0x6e40ea([0x56,0x61,0x6c,0x69,0x64]));_0xe65d4d(),_0x4d95a1[_0x6e40ea([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x6e40ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c822e=!0x1;const _0x42c7e9=_0x57b6fd();function _0x355af8(_0x63d60e){return!!_0x63d60e&&(typeof _0x63d60e===_0x6e40ea([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x63d60e===_0x6e40ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x63d60e[_0x6e40ea([0x74,0x68,0x65,0x6e])]===_0x6e40ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x63d60e[_0x6e40ea([0x63,0x61,0x74,0x63,0x68])]===_0x6e40ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c5e4e(_0x53ecd8){_0x2f7622(_0x53ecd8)[_0x6e40ea([0x74,0x68,0x65,0x6e])](_0x4a5659=>{if(!_0x4a5659||_0x4a5659[_0x6e40ea([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x6e40ea([0x6f,0x6b]))return _0x6e40ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2fb5de(_0x426308(_0x42c7e9+_0x4a796d))!=_0x4a5659[_0x6e40ea([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x6e40ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x6e40ea([0x56,0x61,0x6c,0x69,0x64]);})[_0x6e40ea([0x74,0x68,0x65,0x6e])](_0x22e985=>(_0x42bc6a(),_0x22e985),()=>{const _0x2e8e1a=_0x503700();return null==_0x2e8e1a?(_0x42bc6a(),_0x6e40ea([0x56,0x61,0x6c,0x69,0x64])):_0x6e40ea(_0x133a78-_0x2e8e1a>(0x61920ceb^_0x11d9a7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x6e40ea([0x74,0x68,0x65,0x6e])](_0x3731df)[_0x6e40ea([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3731df(_0x6e40ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xe57bad=0x45a8666b^_0x11d9a7;function _0x42bc6a(){const _0x46e8bf=_0x6e40ea([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fb5de(_0x426308(_0x4b596e)),_0x1c8e82=_0x4b3cf9(_0x2fb5de(window[_0x6e40ea([0x4d,0x61,0x74,0x68])][_0x6e40ea([0x63,0x65,0x69,0x6c])](_0x133a78/_0xe57bad)));window[_0x6e40ea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6e40ea([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46e8bf,_0x1c8e82);}function _0x503700(){const _0x34cd81=_0x6e40ea([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fb5de(_0x426308(_0x4b596e)),_0x452f3f=window[_0x6e40ea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6e40ea([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34cd81);return _0x452f3f?window[_0x6e40ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b3cf9(_0x452f3f),0x10)*_0xe57bad:null;}function _0x2f7622(_0x554e49){return new window[(_0x6e40ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x190c23,_0x3e1782)=>{_0x554e49[_0x6e40ea([0x74,0x68,0x65,0x6e])](_0x190c23,_0x3e1782),window[_0x6e40ea([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3e1782,0x459f5c2b^_0x11d9a7);});}}_0x4d95a1[_0x6e40ea([0x6f,0x6e])](_0x6e40ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x399bf1,_0x54c55b)=>{if(_0x54c55b[0x0]!=_0x4b596e)return _0x3731df(_0x6e40ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x54c55b[0x1]={..._0x54c55b[0x1],[_0x6e40ea([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x42c7e9};},{[_0x6e40ea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6e40ea([0x68,0x69,0x67,0x68])}),_0x4d95a1[_0x6e40ea([0x6f,0x6e])](_0x6e40ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4c8554=>{_0x355af8(_0x4c8554[_0x6e40ea([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c822e=!0x0,_0x3c5e4e(_0x4c8554[_0x6e40ea([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x6e40ea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6e40ea([0x6c,0x6f,0x77])}),_0x1522a2[_0x6e40ea([0x74,0x68,0x65,0x6e])](()=>{_0x2c822e||_0x3731df(_0x6e40ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x251392(){return _0x4d95a1[_0x6e40ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6e40ea([0x76,0x69,0x65,0x77])][_0x6e40ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x6e40ea([0x61,0x75,0x74,0x6f]);}function _0xe65d4d(){_0x4d95a1[_0x6e40ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6e40ea([0x76,0x69,0x65,0x77])][_0x6e40ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x6e40ea([0x61,0x75,0x74,0x6f]);}}function _0x3804df(_0x55541b){const _0x572e61=[new window[(_0x6e40ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b42db=>setTimeout(_0x2b42db,0x4597b627^_0x11d9a7)),_0x1522a2[_0x6e40ea([0x74,0x68,0x65,0x6e])](()=>new window[(_0x6e40ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f1d84=>{let _0x43db6d=0x0;_0x4d95a1[_0x6e40ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x6e40ea([0x6f,0x6e])](_0x6e40ea([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x123fa2,_0x300753)=>{_0x300753[0x0][_0x6e40ea([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x43db6d++,_0x43db6d==(0x459e8913^_0x11d9a7)&&(_0x5f1d84(),_0x123fa2[_0x6e40ea([0x6f,0x66,0x66])]());});}))];return window[_0x6e40ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x6e40ea([0x72,0x61,0x63,0x65])](_0x572e61)[_0x6e40ea([0x74,0x68,0x65,0x6e])](()=>_0x55541b);}async function _0x15b3b6(){await _0x1522a2,_0x4d95a1[_0x6e40ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x6e40ea([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x12b7dd,_0x4d95a1[_0x6e40ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x6e40ea([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x12b7dd,_0x4d95a1[_0x6e40ea([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x6e40ea([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x562a20(_0x47f89f){const _0x88a143=_0xbe715();_0x4d95a1[_0x88a143]=_0x6e40ea([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x47f89f,_0x47f89f!=_0x6e40ea([0x56,0x61,0x6c,0x69,0x64])&&_0x15b3b6();}function _0xbe715(){const _0x2a81ee=window[_0x6e40ea([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x6e40ea([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x6e40ea([0x6e,0x6f,0x77])]())[_0x6e40ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x6e40ea([0x2e]),'');let _0x117aee=_0x6e40ea([0x4a]);for(let _0x366c46=0x0;_0x366c46<_0x2a81ee[_0x6e40ea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x366c46+=0x2){let _0x234caa=window[_0x6e40ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a81ee[_0x6e40ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x366c46,_0x366c46+0x2));_0x234caa>=_0x1f4a3e[_0x6e40ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x234caa-=_0x1f4a3e[_0x6e40ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x117aee+=_0x1f4a3e[_0x234caa];}return _0x117aee;}function _0x39209d(){const _0x4bf163=_0x3cba8b[_0x6e40ea([0x73,0x70,0x6c,0x69,0x74])](_0x6e40ea([0x2e]));if(0x3!=_0x4bf163[_0x6e40ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4ba506(_0x4bf163[0x1]);function _0x4ba506(_0x36a8ed){const _0x21cf55=_0x5a06b0(_0x36a8ed);return _0x21cf55&&_0x2bdebd()?_0x21cf55:null;function _0x2bdebd(){const _0x48d59d=_0x21cf55[_0x6e40ea([0x6a,0x74,0x69])],_0x56fb10=window[_0x6e40ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48d59d[_0x6e40ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x48d59d[_0x6e40ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4bb4df={..._0x21cf55,[_0x6e40ea([0x6a,0x74,0x69])]:_0x48d59d[_0x6e40ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x48d59d[_0x6e40ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4bb4df[_0x6e40ea([0x76,0x63])],_0x426308(_0x4bb4df)==_0x56fb10;}}}async function _0x5725d8(){let _0x1af933=!0x0;try{const _0x460c88=_0x3cba8b[_0x6e40ea([0x73,0x70,0x6c,0x69,0x74])](_0x6e40ea([0x2e])),[_0x52c80e,_0x3e6584,_0x288745]=_0x460c88;return _0x1c02bc(_0x52c80e),await _0xab9364(_0x52c80e,_0x3e6584,_0x288745),_0x1af933;}catch(_0x324364){return!0x1;}function _0x1c02bc(_0x3707e5){const _0x2a58e5=_0x5a06b0(_0x3707e5);_0x2a58e5&&_0x2a58e5[_0x6e40ea([0x61,0x6c,0x67])]==_0x6e40ea([0x45,0x53,0x32,0x35,0x36])||(_0x1af933=!0x1);}async function _0xab9364(_0x7f4397,_0x449401,_0x3229ba){const _0x37bdf3=window[_0x6e40ea([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x6e40ea([0x66,0x72,0x6f,0x6d])](_0x58055c(_0x3229ba),_0x237b76=>_0x237b76[_0x6e40ea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x188a79=new window[(_0x6e40ea([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x6e40ea([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x7f4397+_0x6e40ea([0x2e])+_0x449401),_0x2b9db6=window[_0x6e40ea([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x6e40ea([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2b9db6)return;const _0x2f54a4=await _0x2b9db6[_0x6e40ea([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x6e40ea([0x6a,0x77,0x6b]),_0x59c402,{[_0x6e40ea([0x6e,0x61,0x6d,0x65])]:_0x6e40ea([0x45,0x43,0x44,0x53,0x41]),[_0x6e40ea([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x6e40ea([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x6e40ea([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2b9db6[_0x6e40ea([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x6e40ea([0x6e,0x61,0x6d,0x65])]:_0x6e40ea([0x45,0x43,0x44,0x53,0x41]),[_0x6e40ea([0x68,0x61,0x73,0x68])]:{[_0x6e40ea([0x6e,0x61,0x6d,0x65])]:_0x6e40ea([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2f54a4,_0x37bdf3,_0x188a79)||(_0x1af933=!0x1);}}function _0x5a06b0(_0x1f4a55){return _0x1f4a55[_0x6e40ea([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x6e40ea([0x65,0x79]))?JSON[_0x6e40ea([0x70,0x61,0x72,0x73,0x65])](_0x58055c(_0x1f4a55)):null;}function _0x58055c(_0x586ee3){return window[_0x6e40ea([0x61,0x74,0x6f,0x62])](_0x586ee3[_0x6e40ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x6e40ea([0x2b]))[_0x6e40ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x6e40ea([0x2f])));}function _0x426308(_0x1ab377){let _0x51ed06=0x1505;function _0x45ca35(_0x5e9568){for(let _0x24743a=0x0;_0x24743a<_0x5e9568[_0x6e40ea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24743a++){const _0xccb397=_0x5e9568[_0x6e40ea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24743a);_0x51ed06=(_0x51ed06<<0x5)+_0x51ed06+_0xccb397,_0x51ed06&=_0x51ed06;}}function _0x3d476b(_0x14143e){Array[_0x6e40ea([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x14143e)?_0x14143e[_0x6e40ea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3d476b):_0x14143e&&typeof _0x14143e==_0x6e40ea([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x6e40ea([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x14143e)[_0x6e40ea([0x73,0x6f,0x72,0x74])]()[_0x6e40ea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x29ec8,_0xff2052])=>{_0x45ca35(_0x29ec8),_0x3d476b(_0xff2052);}):_0x45ca35(window[_0x6e40ea([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x14143e));}return _0x3d476b(_0x1ab377),_0x51ed06>>>0x0;}function _0x2fb5de(_0x5667f5){return _0x5667f5[_0x6e40ea([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x6e40ea([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x6e40ea([0x30]));}function _0x4b3cf9(_0xbd1db7){return _0xbd1db7[_0x6e40ea([0x73,0x70,0x6c,0x69,0x74])]('')[_0x6e40ea([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x6e40ea([0x6a,0x6f,0x69,0x6e])]('');}function _0x12b7dd(){}function _0x6e40ea(_0x12e55d){const _0x3b6de7=_0x3513;return _0x12e55d[_0x3b6de7(0x11a)](_0x2fb27f=>String[_0x3b6de7(0x127)](_0x2fb27f))[_0x3b6de7(0x109)]('');}_0x562a20(await _0x4d746d());}(this);}[_0x4b537d(0x106)](){const _0x21c93d=_0x4b537d,_0x4597b6=this[_0x21c93d(0x13a)][_0x21c93d(0x138)][_0x21c93d(0x128)];_0x4597b6[_0x21c93d(0x10a)](_0x21c93d(0x131))&&_0x4597b6[_0x21c93d(0x119)](_0x21c93d(0x131),{'allowAttributes':[_0x21c93d(0x11c)]}),_0x4597b6[_0x21c93d(0x10a)](_0x21c93d(0x14a))&&_0x4597b6[_0x21c93d(0x119)](_0x21c93d(0x14a),{'allowAttributes':[_0x21c93d(0x11c)]});}[_0x4b537d(0x134)](){const _0x5f2e61=_0x4b537d,_0x51ec25=this[_0x5f2e61(0x13a)];_0x51ec25[_0x5f2e61(0x137)][_0x5f2e61(0x142)](_0x5f2e61(0x124))[_0x5f2e61(0x13b)]({'model':_0x5f2e61(0x11c),'view':_0x5f2e61(0x14f)}),_0x51ec25[_0x5f2e61(0x137)][_0x5f2e61(0x142)](_0x5f2e61(0x122))[_0x5f2e61(0x14d)]({'model':{'key':_0x5f2e61(0x11c),'value':_0x30ef4a=>_0x30ef4a[_0x5f2e61(0x155)](_0x5f2e61(0x14f))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x134367=_0x51ec25[_0x5f2e61(0x14b)][_0x5f2e61(0x12a)](_0x5f2e61(0x145));_0x134367&&this[_0x5f2e61(0x118)](_0x134367,_0x5f2e61(0x110),(_0x935b5a,[_0xecc70a,_0x2874ac])=>{const _0x7ef36e=_0x5f2e61;_0xecc70a[_0x7ef36e(0x140)](_0x7ef36e(0x11c),_0x2874ac);});}[_0x4b537d(0x12f)](){const _0x3612ed=_0x4b537d,_0x896ca7=this[_0x3612ed(0x13a)][_0x3612ed(0x14e)][_0x3612ed(0x12a)](_0x3612ed(0x10d))||{},_0x3dc978=this[_0x3612ed(0x13a)][_0x3612ed(0x14e)][_0x3612ed(0x12a)](_0x3612ed(0x157))||'';this[_0x3612ed(0x152)]=_0x46e996(_0x563701[_0x3612ed(0x149)],_0x3612ed(0x126),{..._0x896ca7,'pubkey':_0x3dc978,'ctx-name':_0x3612ed(0x150),'sourceList':'','imgOnly':_0x3612ed(0x13d),'removeCopyright':_0x3612ed(0x13d),'localeName':this[_0x3612ed(0x13a)][_0x3612ed(0x144)][_0x3612ed(0x125)],'externalSourcesEmbedCss':_0x3612ed(0x135)}),this[_0x3612ed(0x152)][_0x3612ed(0x13c)]=_0x5baec4=>{const _0x1b3a32=_0x3612ed;if(_0x1b3a32(0x108)==_0x5baec4)return _0x1b3a32(0x148);},_0x563701[_0x3612ed(0x149)][_0x3612ed(0x14c)][_0x3612ed(0x114)](this[_0x3612ed(0x152)]);}[_0x4b537d(0x143)](){const _0x15f85e=_0x4b537d;this[_0x15f85e(0x129)]=_0x46e996(_0x563701[_0x15f85e(0x149)],_0x15f85e(0x132),{'ctx-name':_0x15f85e(0x150)}),_0x563701[_0x15f85e(0x149)][_0x15f85e(0x14c)][_0x15f85e(0x114)](this[_0x15f85e(0x129)]);}[_0x4b537d(0x112)](){const _0x557782=_0x4b537d,_0xd4fd29=this[_0x557782(0x13a)][_0x557782(0x14b)][_0x557782(0x12a)](_0x557782(0x11d));_0xd4fd29&&this[_0x557782(0x118)](_0xd4fd29,_0x557782(0x107),()=>{const _0x54ab8c=_0x557782,_0x3f9c43=this[_0x54ab8c(0x13a)][_0x54ab8c(0x138)][_0x54ab8c(0x149)][_0x54ab8c(0x153)][_0x54ab8c(0x117)]();_0x3f9c43&&_0x3f9c43[_0x54ab8c(0x155)](_0x54ab8c(0x11c))&&this[_0x54ab8c(0x13a)][_0x54ab8c(0x113)][_0x54ab8c(0x156)][_0x54ab8c(0x11b)](_0x54ab8c(0x147),()=>{const _0x1f8431=_0x54ab8c;_0x729e65(this[_0x1f8431(0x13a)],_0x3f9c43);});});const _0x19bf84=this[_0x557782(0x13a)][_0x557782(0x14b)][_0x557782(0x12a)](_0x557782(0x123));_0x19bf84&&this[_0x557782(0x118)](_0x19bf84,_0x557782(0x107),()=>{const _0xf4f46e=_0x557782,_0x5c093c=this[_0xf4f46e(0x13a)][_0xf4f46e(0x138)][_0xf4f46e(0x149)][_0xf4f46e(0x153)][_0xf4f46e(0x117)]();_0x5c093c&&_0x5c093c[_0xf4f46e(0x155)](_0xf4f46e(0x11c))&&this[_0xf4f46e(0x13a)][_0xf4f46e(0x113)][_0xf4f46e(0x156)][_0xf4f46e(0x11b)](_0xf4f46e(0x147),()=>{const _0x1ca2f1=_0xf4f46e;_0x729e65(this[_0x1ca2f1(0x13a)],_0x5c093c);});});}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{global as _0x56b067,ObservableMixin as _0x390046}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1d3a01}from'ckeditor5/src/ui.js';import _0x6134c5 from'./uploadcareimageeditformview.js';import _0x160ed8 from'../../utils/uploadutils.js';import _0x47e935 from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x2fd0bc,getImageDimension as _0x5ddcc3}from'../../utils/editingutils.js';import{isAncestor as _0x3d9be4}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
24
- _0x390046(){constructor(_0x1df513,_0x5269dd,_0x2c0234){super(),this['_editor']=_0x1df513,this['_dialog']=_0x5269dd,this['_imageElement']=_0x2c0234,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 _0x51e5ea=this['_imageElement'],_0xb9b7c7=_0x51e5ea['getAttribute']('uploadcareImageId'),_0x13cc3f=_0x51e5ea['getAttribute']('src');if(_0xb9b7c7)await this['_loadImageInfo'](_0xb9b7c7,_0x13cc3f);else{if(this['_imageCache']['has'](_0x13cc3f)){const _0x4702d7=this['_imageCache']['get'](_0x13cc3f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4702d7['url'],this['imageDimension']=_0x4702d7['dimension'],this['imageId']=_0x4702d7['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x13ce3b}=this['_editor'],t=_0x13ce3b['t'],_0x29894c=new _0x6134c5(_0x13ce3b,this['imageStatus'],this['_attributes']);_0x29894c['bind']('status')['to'](this,'imageStatus'),_0x29894c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x29894c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x29894c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x29894c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x47e935,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x29894c,'position':_0x1d3a01['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x29894c['focus']();},'onHide':()=>{_0x29894c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x430dad=>!_0x3d9be4(_0x430dad,_0x29894c['element'])}});}['_loadImageInfo'](_0x252ea3,_0x23713d){return _0x160ed8['getInfo'](_0x252ea3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3e1640=>{const {width:_0x36a3ba,height:_0x295a5e}=_0x3e1640['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x23713d,this['imageDimension']={'width':_0x36a3ba,'height':_0x295a5e},this['imageId']=_0x252ea3;})['catch'](_0x1f2796=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1f2796['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3e0aaf,_0x31c981){return this['_getImageAsFile'](_0x3e0aaf)['then'](_0x462d6b=>_0x160ed8['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x31c981['signal'],'file':_0x462d6b,'onProgress':_0x39c684=>{_0x39c684&&_0x39c684['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x39c684['value']));}}))['then'](_0x522098=>{const {width:_0x263db4,height:_0x36bad4}=_0x522098['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x522098['cdnUrl'],this['imageDimension']={'width':_0x263db4,'height':_0x36bad4},this['imageId']=_0x522098['uuid'],this['imageUploadProgress']=null;const _0x3ce755=_0x3e0aaf['getAttribute']('src');this['_imageCache']['set'](_0x3ce755,{'id':_0x522098['uuid'],'url':_0x522098['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x38aef6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x38aef6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5f06dd,_0x3e3c28){_0x5f06dd['on']('apply',(_0x507dbc,_0x5eb1c1)=>{this['_replaceImage'](_0x3e3c28,_0x5eb1c1['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5f06dd['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5f06dd['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5ef901,_0x6326f2,_0x4dea59){const _0x5b1f94=this['_editor'],{width:_0x5cbb83,height:_0xe63c58}=_0x5ddcc3(_0x6326f2,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x128d69,imageSources:_0x248977}=_0x2fd0bc(_0x6326f2,_0x5cbb83);_0x5b1f94['model']['change'](_0x241ede=>{if('$graveyard'===_0x5ef901['root']['rootName']){_0x5b1f94['execute']('insertImage',{'imageType':_0x5ef901['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5ef901['getAttributes']()),'uploadcareImageId':_0x4dea59,'src':_0x128d69,'sources':_0x248977,'width':_0x5cbb83,'height':_0xe63c58}});const _0x323fb9=_0x5ef901['getChildren']();_0x5ef901=_0x5b1f94['model']['document']['selection']['getSelectedElement']();for(const _0x3c1295 of _0x323fb9)_0x241ede['append'](_0x241ede['cloneElement'](_0x3c1295),_0x5ef901);}else _0x241ede['setSelection'](_0x5ef901,'on'),_0x5b1f94['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5ef901['getAttributes']()),'uploadcareImageId':_0x4dea59,'src':_0x128d69,'sources':_0x248977,'width':_0x5cbb83,'height':_0xe63c58},_0x5ef901);_0x241ede['setSelection'](_0x5ef901,'on');});}async['_getImageAsFile'](_0x204216){const _0x3478ac=_0x56b067['window'],_0x1d74b1=_0x56b067['document']['location']['href'],_0x2fb1ca=new _0x3478ac['URL'](_0x204216['getAttribute']('src'),_0x1d74b1);if('data:'===_0x2fb1ca['protocol']){const _0x58d68b=_0x2fb1ca['href']['split'](','),_0x3b4e41=_0x58d68b[0x0]['match'](/:(.*?);/)[0x1],_0x5f0036=_0x3b4e41['split']('/')[0x1],_0xb3150a=_0x3478ac['atob'](_0x58d68b[_0x58d68b['length']-0x1]);let _0x45d71d=_0xb3150a['length'];const _0x264427=new _0x3478ac['Uint8Array'](_0x45d71d);for(;_0x45d71d--;)_0x264427[_0x45d71d]=_0xb3150a['charCodeAt'](_0x45d71d);return new _0x3478ac['File']([_0x264427],'image.'+_0x5f0036,{'type':_0x3b4e41});}const _0x4563aa=_0x2fb1ca['href']['split']('/'),_0x415f83=_0x4563aa[_0x4563aa['length']-0x1],_0x2e3e01=_0x415f83['split']('.')[0x1];return _0x3478ac['fetch'](_0x2fb1ca['href'])['then'](_0xe3ca17=>_0xe3ca17['clone']()['blob']())['then'](_0x1be480=>new _0x3478ac['File']([_0x1be480],_0x415f83,{'type':'image/'+_0x2e3e01}));}}
23
+ import{global as _0x490785,ObservableMixin as _0x178dbd}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x38b473}from'ckeditor5/src/ui.js';import _0x3c9ab5 from'./uploadcareimageeditformview.js';import _0x47990c from'../../utils/uploadutils.js';import _0x24bf97 from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x2e11cc,getImageDimension as _0x1905f0}from'../../utils/editingutils.js';import{isAncestor as _0x3b55af}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
24
+ _0x178dbd(){constructor(_0x48549d,_0x283bda,_0x20814e){super(),this['_editor']=_0x48549d,this['_dialog']=_0x283bda,this['_imageElement']=_0x20814e,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 _0x26872c=this['_imageElement'],_0x3c07a8=_0x26872c['getAttribute']('uploadcareImageId'),_0x2faa3e=_0x26872c['getAttribute']('src');if(_0x3c07a8)await this['_loadImageInfo'](_0x3c07a8,_0x2faa3e);else{if(this['_imageCache']['has'](_0x2faa3e)){const _0x4cdb77=this['_imageCache']['get'](_0x2faa3e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4cdb77['url'],this['imageDimension']=_0x4cdb77['dimension'],this['imageId']=_0x4cdb77['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4dcb4f}=this['_editor'],t=_0x4dcb4f['t'],_0xb5aaa3=new _0x3c9ab5(_0x4dcb4f,this['imageStatus'],this['_attributes']);_0xb5aaa3['bind']('status')['to'](this,'imageStatus'),_0xb5aaa3['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xb5aaa3['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xb5aaa3['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xb5aaa3,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x24bf97,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xb5aaa3,'position':_0x38b473['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xb5aaa3['focus']();},'onHide':()=>{_0xb5aaa3['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x414c5b=>!_0x3b55af(_0x414c5b,_0xb5aaa3['element'])}});}['_loadImageInfo'](_0x576cdf,_0x496779){return _0x47990c['getInfo'](_0x576cdf,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4ccf73=>{const {width:_0x59dced,height:_0x5d642b}=_0x4ccf73['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x496779,this['imageDimension']={'width':_0x59dced,'height':_0x5d642b},this['imageId']=_0x576cdf;})['catch'](_0x3a8e5a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3a8e5a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x7a8fd7,_0x1a2060){return this['_getImageAsFile'](_0x7a8fd7)['then'](_0x56d672=>_0x47990c['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1a2060['signal'],'file':_0x56d672,'onProgress':_0xaea9b2=>{_0xaea9b2&&_0xaea9b2['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xaea9b2['value']));}}))['then'](_0x5d267b=>{const {width:_0x3f4df4,height:_0xd76af8}=_0x5d267b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5d267b['cdnUrl'],this['imageDimension']={'width':_0x3f4df4,'height':_0xd76af8},this['imageId']=_0x5d267b['uuid'],this['imageUploadProgress']=null;const _0x3bc743=_0x7a8fd7['getAttribute']('src');this['_imageCache']['set'](_0x3bc743,{'id':_0x5d267b['uuid'],'url':_0x5d267b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4f1f7e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4f1f7e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x35fb86,_0x26927c){_0x35fb86['on']('apply',(_0x347c38,_0x5d561d)=>{this['_replaceImage'](_0x26927c,_0x5d561d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x35fb86['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x35fb86['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x103730,_0x49140d,_0x475738){const _0x54a272=this['_editor'],{width:_0x4fe826,height:_0x3220e7}=_0x1905f0(_0x49140d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x36af80,imageSources:_0x2ab954}=_0x2e11cc(_0x49140d,_0x4fe826);_0x54a272['model']['change'](_0x28283c=>{if('$graveyard'===_0x103730['root']['rootName']){_0x54a272['execute']('insertImage',{'imageType':_0x103730['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x103730['getAttributes']()),'uploadcareImageId':_0x475738,'src':_0x36af80,'sources':_0x2ab954,'width':_0x4fe826,'height':_0x3220e7}});const _0x398e48=_0x103730['getChildren']();_0x103730=_0x54a272['model']['document']['selection']['getSelectedElement']();for(const _0x160cbf of _0x398e48)_0x28283c['append'](_0x28283c['cloneElement'](_0x160cbf),_0x103730);}else _0x28283c['setSelection'](_0x103730,'on'),_0x54a272['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x103730['getAttributes']()),'uploadcareImageId':_0x475738,'src':_0x36af80,'sources':_0x2ab954,'width':_0x4fe826,'height':_0x3220e7},_0x103730);_0x28283c['setSelection'](_0x103730,'on');});}async['_getImageAsFile'](_0x516cbe){const _0x28113d=_0x490785['window'],_0x256770=_0x490785['document']['location']['href'],_0x1e3c48=new _0x28113d['URL'](_0x516cbe['getAttribute']('src'),_0x256770);if('data:'===_0x1e3c48['protocol']){const _0x599edf=_0x1e3c48['href']['split'](','),_0x47bde5=_0x599edf[0x0]['match'](/:(.*?);/)[0x1],_0x3c9f6e=_0x47bde5['split']('/')[0x1],_0x370b65=_0x28113d['atob'](_0x599edf[_0x599edf['length']-0x1]);let _0x443118=_0x370b65['length'];const _0x20bf23=new _0x28113d['Uint8Array'](_0x443118);for(;_0x443118--;)_0x20bf23[_0x443118]=_0x370b65['charCodeAt'](_0x443118);return new _0x28113d['File']([_0x20bf23],'image.'+_0x3c9f6e,{'type':_0x47bde5});}const _0xc53da7=_0x1e3c48['href']['split']('/'),_0xf98672=_0xc53da7[_0xc53da7['length']-0x1],_0x4e169c=_0xf98672['split']('.')[0x1];return _0x28113d['fetch'](_0x1e3c48['href'])['then'](_0x3c5bc5=>_0x3c5bc5['clone']()['blob']())['then'](_0x33e9de=>new _0x28113d['File']([_0x33e9de],_0xf98672,{'type':'image/'+_0x4e169c}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x41e630,_0xeb9261){const _0x297d63=_0x5b39,_0x5a4ae0=_0x41e630();while(!![]){try{const _0x29f1bd=-parseInt(_0x297d63(0x1d9))/0x1+-parseInt(_0x297d63(0x1da))/0x2+-parseInt(_0x297d63(0x1e5))/0x3*(parseInt(_0x297d63(0x1e3))/0x4)+parseInt(_0x297d63(0x1e6))/0x5+parseInt(_0x297d63(0x1e1))/0x6*(-parseInt(_0x297d63(0x1e4))/0x7)+parseInt(_0x297d63(0x1e9))/0x8*(-parseInt(_0x297d63(0x1dd))/0x9)+parseInt(_0x297d63(0x1db))/0xa*(parseInt(_0x297d63(0x1de))/0xb);if(_0x29f1bd===_0xeb9261)break;else _0x5a4ae0['push'](_0x5a4ae0['shift']());}catch(_0x2ef4d8){_0x5a4ae0['push'](_0x5a4ae0['shift']());}}}(_0x98e5,0xa483b));function _0x5b39(_0xceaf09,_0x1b8bb1){const _0x98e58=_0x98e5();return _0x5b39=function(_0x5b3903,_0x4a72e9){_0x5b3903=_0x5b3903-0x1d8;let _0x3a8fa0=_0x98e58[_0x5b3903];return _0x3a8fa0;},_0x5b39(_0xceaf09,_0x1b8bb1);}import{View as _0x388c9c}from'ckeditor5/src/ui.js';function _0x98e5(){const _0x542beb=['7ndTYtS','3379623UVVGcB','5379705jdeJMC','ck-uploadcare-theme','image-edit','1110240FFipPX','uc-cloud-image-editor','set','928643BgEHcN','225932DVYBxx','39227730ELpszB','bindTemplate','81RZfjwQ','11itIHbn','imageSrc','uc-light','5446158xDhkaa','setTemplate','4zUtHXW'];_0x98e5=function(){return _0x542beb;};return _0x98e5();}export default class tt extends _0x388c9c{constructor(_0xe301f1,_0x1530cc){const _0x3afc41=_0x5b39;super(_0xe301f1);const _0xc0a3d8=this[_0x3afc41(0x1dc)];this[_0x3afc41(0x1d8)](_0x3afc41(0x1df),''),this[_0x3afc41(0x1e2)]({'tag':_0x3afc41(0x1ea),'attributes':{..._0x1530cc,'class':[_0x3afc41(0x1e0),_0x3afc41(0x1e7)],'ctx-name':_0x3afc41(0x1e8),'cdn-url':_0xc0a3d8['to'](_0x3afc41(0x1df))}});}}
23
+ function _0x3bed(_0xdb2450,_0x211f99){const _0x27e5a5=_0x27e5();return _0x3bed=function(_0x3bedfc,_0x32d2fd){_0x3bedfc=_0x3bedfc-0x18c;let _0x2ca47f=_0x27e5a5[_0x3bedfc];return _0x2ca47f;},_0x3bed(_0xdb2450,_0x211f99);}(function(_0x306267,_0x28d022){const _0x5228af=_0x3bed,_0x30d822=_0x306267();while(!![]){try{const _0x1c43cc=-parseInt(_0x5228af(0x196))/0x1*(parseInt(_0x5228af(0x199))/0x2)+parseInt(_0x5228af(0x195))/0x3+-parseInt(_0x5228af(0x198))/0x4*(parseInt(_0x5228af(0x197))/0x5)+parseInt(_0x5228af(0x18d))/0x6*(parseInt(_0x5228af(0x18c))/0x7)+parseInt(_0x5228af(0x190))/0x8+-parseInt(_0x5228af(0x18f))/0x9+-parseInt(_0x5228af(0x19a))/0xa;if(_0x1c43cc===_0x28d022)break;else _0x30d822['push'](_0x30d822['shift']());}catch(_0x1d3048){_0x30d822['push'](_0x30d822['shift']());}}}(_0x27e5,0x67797));import{View as _0x242310}from'ckeditor5/src/ui.js';function _0x27e5(){const _0x20a623=['5162832osDzkX','ck-uploadcare-theme','uc-cloud-image-editor','imageSrc','bindTemplate','1264209aMRFZU','1AwuYlY','8485ZBPZYU','600NCYUQE','1620006MMYkuQ','2584710rBcWZP','image-edit','uc-light','set','7aAxYMV','5034006IKUOha','setTemplate','1430127yujOfo'];_0x27e5=function(){return _0x20a623;};return _0x27e5();}export default class tt extends _0x242310{constructor(_0x137fad,_0x2dd416){const _0x1d5fa9=_0x3bed;super(_0x137fad);const _0x415a78=this[_0x1d5fa9(0x194)];this[_0x1d5fa9(0x19d)](_0x1d5fa9(0x193),''),this[_0x1d5fa9(0x18e)]({'tag':_0x1d5fa9(0x192),'attributes':{..._0x2dd416,'class':[_0x1d5fa9(0x19c),_0x1d5fa9(0x191)],'ctx-name':_0x1d5fa9(0x19b),'cdn-url':_0x415a78['to'](_0x1d5fa9(0x193))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ButtonView as _0x2fc58b,IconView as et,View as _0x584db9}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x584db9{constructor(_0x2bdf9a){super(_0x2bdf9a);const t=_0x2bdf9a['t'];this['set']('errorType',null);const _0x34d679=new _0x2fc58b(_0x2bdf9a);_0x34d679['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x34d679['withText']=!0x0,_0x34d679['class']='ck-button-action',_0x34d679['on']('execute',()=>{this['fire']('retry');}),_0x34d679['bind']('isVisible')['to'](this,'errorType',_0x1b4677=>'NotFound'!==_0x1b4677);const _0x571966=new et();_0x571966['content']=at,_0x571966['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x247440=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':[_0x571966,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x247440['to']('errorType',_0x1446ed=>t('NotFound'!==_0x1446ed?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x34d679]},{'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'}]}]}]});}}
23
+ import{ButtonView as _0x200d3c,IconView as et,View as _0x5ae5c0}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x5ae5c0{constructor(_0x42b6be){super(_0x42b6be);const t=_0x42b6be['t'];this['set']('errorType',null);const _0x174af7=new _0x200d3c(_0x42b6be);_0x174af7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x174af7['withText']=!0x0,_0x174af7['class']='ck-button-action',_0x174af7['on']('execute',()=>{this['fire']('retry');}),_0x174af7['bind']('isVisible')['to'](this,'errorType',_0x1fe47f=>'NotFound'!==_0x1fe47f);const _0x265aea=new et();_0x265aea['content']=at,_0x265aea['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x59905d=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':[_0x265aea,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x59905d['to']('errorType',_0x257f4f=>t('NotFound'!==_0x257f4f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x174af7]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{SpinnerView as _0x518dc2,View as _0x1f3359}from'ckeditor5/src/ui.js';export default class ta extends _0x1f3359{constructor(_0x38be17){super(_0x38be17);const t=_0x38be17['t'],_0xd90cc9=this['bindTemplate'],_0x4cbc12=new _0x518dc2();_0x4cbc12['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':[_0x4cbc12,{'text':_0xd90cc9['to']('imageUploadProgress',_0x13a1b9=>t('Loading\x20image...')+'\x20('+(_0x13a1b9||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'}]}]}]});}}
23
+ import{SpinnerView as _0x1fb90a,View as _0xc91530}from'ckeditor5/src/ui.js';export default class ta extends _0xc91530{constructor(_0x4689ac){super(_0x4689ac);const t=_0x4689ac['t'],_0x518bd9=this['bindTemplate'],_0x1893c5=new _0x1fb90a();_0x1893c5['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':[_0x1893c5,{'text':_0x518bd9['to']('imageUploadProgress',_0x1944e3=>t('Loading\x20image...')+'\x20('+(_0x1944e3||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ec842=_0xcca9;(function(_0x5377e3,_0x5e2f88){const _0x2c3188=_0xcca9,_0x99d0ff=_0x5377e3();while(!![]){try{const _0x35c863=-parseInt(_0x2c3188(0x193))/0x1+-parseInt(_0x2c3188(0x162))/0x2*(-parseInt(_0x2c3188(0x17c))/0x3)+parseInt(_0x2c3188(0x173))/0x4*(parseInt(_0x2c3188(0x18e))/0x5)+parseInt(_0x2c3188(0x191))/0x6+-parseInt(_0x2c3188(0x176))/0x7*(parseInt(_0x2c3188(0x168))/0x8)+-parseInt(_0x2c3188(0x167))/0x9+parseInt(_0x2c3188(0x188))/0xa*(parseInt(_0x2c3188(0x185))/0xb);if(_0x35c863===_0x5e2f88)break;else _0x99d0ff['push'](_0x99d0ff['shift']());}catch(_0x560dca){_0x99d0ff['push'](_0x99d0ff['shift']());}}}(_0x7295,0xa8d36));import{View as _0x34ff6c}from'ckeditor5/src/ui.js';import _0x23050d from'./uploadcareimageeditformloadingview.js';function _0xcca9(_0x4f49e9,_0x31cdea){const _0x729522=_0x7295();return _0xcca9=function(_0xcca9ec,_0x50fb3b){_0xcca9ec=_0xcca9ec-0x161;let _0x35ae8a=_0x729522[_0xcca9ec];return _0x35ae8a;},_0xcca9(_0x4f49e9,_0x31cdea);}function _0x7295(){const _0x276e10=['ck-reset_all-excluded','_loadingView','disconnect','createCollection','setTemplate','render','54248BYLnJB','getFocusableElement','status','11746WgmNRT','addedNodes','toLowerCase','focus','fire','addMany','224151cWehQp','set','cancel','uc-cloud-image-editor','nodeName','ready','apply','_focusableView','_items','1859EHJyMF','add','querySelector','80310EixLlR','ck-uploadcare-form','detail','target','_addUploadcareImageEditorListeners','clear','205rAUCKX','_editingView','element','2752974AxVCUy','length','1231714YSOWjc','div','cdnUrl','addEventListener','_addErrorViewListeners','_waitForImageEditorComponent','retry','18NgkQtb','filter','_setView','observe','_errorView','7554915bNEBnB','1344xsmiws','uploading','change:status','once','error'];_0x7295=function(){return _0x276e10;};return _0x7295();}import _0x4fa018 from'./uploadcareimageeditformerrorview.js';import _0x22f91f from'./uploadcareimageeditformeditingview.js';import _0x255b16 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class ii extends _0x255b16{constructor(_0x3cddfd,_0x45cd89,_0xbab12d){const _0x39524c=_0xcca9;super(_0x3cddfd),this[_0x39524c(0x184)]=this[_0x39524c(0x170)](),this[_0x39524c(0x16e)]=new _0x23050d(_0x3cddfd),this[_0x39524c(0x166)]=new _0x4fa018(_0x3cddfd),this[_0x39524c(0x18f)]=new _0x22f91f(_0x3cddfd,_0xbab12d),this[_0x39524c(0x183)]=new _0x34ff6c(_0x3cddfd),this[_0x39524c(0x183)][_0x39524c(0x171)](this[_0x39524c(0x174)]()),this[_0x39524c(0x17d)](_0x39524c(0x175),_0x45cd89),this[_0x39524c(0x171)]({'tag':_0x39524c(0x194),'attributes':{'class':['ck',_0x39524c(0x16d),_0x39524c(0x189)],'tabindex':'-1'},'children':this[_0x39524c(0x184)]}),this[_0x39524c(0x164)](),this[_0x39524c(0x16b)](_0x39524c(0x172),()=>{const _0x974847=_0x39524c;this[_0x974847(0x198)](this[_0x974847(0x190)],_0x3ee215=>{const _0x545c92=_0x974847;this[_0x545c92(0x18c)](_0x3ee215);});}),this['on'](_0x39524c(0x16a),()=>{const _0x3bd3ac=_0x39524c;this[_0x3bd3ac(0x164)]();}),this[_0x39524c(0x197)]();}[_0x1ec842(0x179)](){const _0x299a45=_0x1ec842;this[_0x299a45(0x190)][_0x299a45(0x179)]();}[_0x1ec842(0x164)](){const _0x3ed2d1=_0x1ec842;switch(this[_0x3ed2d1(0x184)][_0x3ed2d1(0x18d)](),this[_0x3ed2d1(0x175)]){case _0x3ed2d1(0x169):this[_0x3ed2d1(0x184)][_0x3ed2d1(0x186)](this[_0x3ed2d1(0x16e)]);break;case _0x3ed2d1(0x16c):this[_0x3ed2d1(0x184)][_0x3ed2d1(0x186)](this[_0x3ed2d1(0x166)]);break;case _0x3ed2d1(0x181):this[_0x3ed2d1(0x184)][_0x3ed2d1(0x17b)]([this[_0x3ed2d1(0x18f)],this[_0x3ed2d1(0x183)]]);}}[_0x1ec842(0x198)](_0x137b8e,_0x478f7d){const _0x32b894=_0x1ec842,_0x284432=_0x32b894(0x17f),_0x53f76c=_0x137b8e[_0x32b894(0x187)](_0x284432);if(_0x53f76c)return _0x478f7d(_0x53f76c);const _0x513e4e=new MutationObserver(_0x36c5e8=>{const _0x4d5c2b=_0x32b894,_0xb132ea=_0x36c5e8[_0x4d5c2b(0x163)](_0x11c5f9=>_0x11c5f9[_0x4d5c2b(0x18b)]===_0x137b8e&&_0x11c5f9[_0x4d5c2b(0x177)][_0x4d5c2b(0x192)]>0x0&&_0x11c5f9[_0x4d5c2b(0x177)][0x0][_0x4d5c2b(0x180)][_0x4d5c2b(0x178)]()===_0x284432);_0xb132ea[_0x4d5c2b(0x192)]&&(_0x513e4e[_0x4d5c2b(0x16f)](),_0x478f7d(_0xb132ea[0x0][_0x4d5c2b(0x177)][0x0]));});_0x513e4e[_0x32b894(0x165)](_0x137b8e,{'childList':!0x0,'subtree':!0x0});}[_0x1ec842(0x18c)](_0x249894){const _0x627963=_0x1ec842;_0x249894[_0x627963(0x196)](_0x627963(0x182),_0x48a416=>{const _0x58600c=_0x627963;this[_0x58600c(0x17a)](_0x58600c(0x182),{'imageSrc':_0x48a416[_0x58600c(0x18a)][_0x58600c(0x195)]});}),_0x249894[_0x627963(0x196)](_0x627963(0x17e),()=>{const _0xe3cf83=_0x627963;this[_0xe3cf83(0x17a)](_0xe3cf83(0x17e));});}[_0x1ec842(0x197)](){const _0x33d4cb=_0x1ec842;this[_0x33d4cb(0x166)]['on'](_0x33d4cb(0x161),()=>{const _0x247d94=_0x33d4cb;this[_0x247d94(0x17a)](_0x247d94(0x161));});}}
23
+ const _0x1ac238=_0x3001;(function(_0x4de030,_0x41a13d){const _0x209cd2=_0x3001,_0x34b38f=_0x4de030();while(!![]){try{const _0x14599b=-parseInt(_0x209cd2(0x19d))/0x1*(-parseInt(_0x209cd2(0x1a0))/0x2)+parseInt(_0x209cd2(0x173))/0x3*(-parseInt(_0x209cd2(0x17f))/0x4)+-parseInt(_0x209cd2(0x17b))/0x5+-parseInt(_0x209cd2(0x193))/0x6*(parseInt(_0x209cd2(0x18a))/0x7)+-parseInt(_0x209cd2(0x184))/0x8*(parseInt(_0x209cd2(0x18e))/0x9)+-parseInt(_0x209cd2(0x171))/0xa*(parseInt(_0x209cd2(0x195))/0xb)+-parseInt(_0x209cd2(0x188))/0xc*(-parseInt(_0x209cd2(0x18c))/0xd);if(_0x14599b===_0x41a13d)break;else _0x34b38f['push'](_0x34b38f['shift']());}catch(_0x454f5c){_0x34b38f['push'](_0x34b38f['shift']());}}}(_0x156a,0x4a277));function _0x3001(_0x27aa98,_0x2c6f76){const _0x156adf=_0x156a();return _0x3001=function(_0x3001ef,_0x25efa7){_0x3001ef=_0x3001ef-0x170;let _0x505cf6=_0x156adf[_0x3001ef];return _0x505cf6;},_0x3001(_0x27aa98,_0x2c6f76);}import{View as _0x420472}from'ckeditor5/src/ui.js';import _0x2e4d9e from'./uploadcareimageeditformloadingview.js';import _0x2e13db from'./uploadcareimageeditformerrorview.js';import _0x206b11 from'./uploadcareimageeditformeditingview.js';function _0x156a(){const _0x45e85d=['addMany','ck-uploadcare-form','disconnect','_items','filter','ck-reset_all-excluded','div','ready','40360xeGdUz','focus','529953EopcMi','nodeName','cancel','addEventListener','_waitForImageEditorComponent','error','fire','addedNodes','2611280gZhHnH','length','status','add','12ZhgGIE','retry','_addUploadcareImageEditorListeners','uploading','_errorView','789592VqUonu','render','clear','once','27479076KoVgHF','createCollection','7MvWcBM','target','13CAyMSE','_editingView','45eMQZzp','change:status','apply','element','observe','2228988RCUZfK','cdnUrl','242lDBYkw','_setView','setTemplate','set','getFocusableElement','_addErrorViewListeners','querySelector','toLowerCase','9903XLiuyb','_focusableView','detail','4MedLGT','uc-cloud-image-editor','_loadingView'];_0x156a=function(){return _0x45e85d;};return _0x156a();}import _0x40a5a3 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class ii extends _0x40a5a3{constructor(_0x24bd1c,_0x858f31,_0x380029){const _0x5462b5=_0x3001;super(_0x24bd1c),this[_0x5462b5(0x1a6)]=this[_0x5462b5(0x189)](),this[_0x5462b5(0x1a2)]=new _0x2e4d9e(_0x24bd1c),this[_0x5462b5(0x183)]=new _0x2e13db(_0x24bd1c),this[_0x5462b5(0x18d)]=new _0x206b11(_0x24bd1c,_0x380029),this[_0x5462b5(0x19e)]=new _0x420472(_0x24bd1c),this[_0x5462b5(0x19e)][_0x5462b5(0x197)](this[_0x5462b5(0x199)]()),this[_0x5462b5(0x198)](_0x5462b5(0x17d),_0x858f31),this[_0x5462b5(0x197)]({'tag':_0x5462b5(0x1a9),'attributes':{'class':['ck',_0x5462b5(0x1a8),_0x5462b5(0x1a4)],'tabindex':'-1'},'children':this[_0x5462b5(0x1a6)]}),this[_0x5462b5(0x196)](),this[_0x5462b5(0x187)](_0x5462b5(0x185),()=>{const _0xa623e4=_0x5462b5;this[_0xa623e4(0x177)](this[_0xa623e4(0x191)],_0x5af7ad=>{const _0x38eed6=_0xa623e4;this[_0x38eed6(0x181)](_0x5af7ad);});}),this['on'](_0x5462b5(0x18f),()=>{const _0x9a4b6c=_0x5462b5;this[_0x9a4b6c(0x196)]();}),this[_0x5462b5(0x19a)]();}[_0x1ac238(0x172)](){const _0x21a21b=_0x1ac238;this[_0x21a21b(0x191)][_0x21a21b(0x172)]();}[_0x1ac238(0x196)](){const _0x5bb101=_0x1ac238;switch(this[_0x5bb101(0x1a6)][_0x5bb101(0x186)](),this[_0x5bb101(0x17d)]){case _0x5bb101(0x182):this[_0x5bb101(0x1a6)][_0x5bb101(0x17e)](this[_0x5bb101(0x1a2)]);break;case _0x5bb101(0x178):this[_0x5bb101(0x1a6)][_0x5bb101(0x17e)](this[_0x5bb101(0x183)]);break;case _0x5bb101(0x170):this[_0x5bb101(0x1a6)][_0x5bb101(0x1a3)]([this[_0x5bb101(0x18d)],this[_0x5bb101(0x19e)]]);}}[_0x1ac238(0x177)](_0x1dcc69,_0x2f88b9){const _0x439547=_0x1ac238,_0x26b987=_0x439547(0x1a1),_0x43b933=_0x1dcc69[_0x439547(0x19b)](_0x26b987);if(_0x43b933)return _0x2f88b9(_0x43b933);const _0xd2c467=new MutationObserver(_0x3cced2=>{const _0x207d8e=_0x439547,_0x5daad7=_0x3cced2[_0x207d8e(0x1a7)](_0x322736=>_0x322736[_0x207d8e(0x18b)]===_0x1dcc69&&_0x322736[_0x207d8e(0x17a)][_0x207d8e(0x17c)]>0x0&&_0x322736[_0x207d8e(0x17a)][0x0][_0x207d8e(0x174)][_0x207d8e(0x19c)]()===_0x26b987);_0x5daad7[_0x207d8e(0x17c)]&&(_0xd2c467[_0x207d8e(0x1a5)](),_0x2f88b9(_0x5daad7[0x0][_0x207d8e(0x17a)][0x0]));});_0xd2c467[_0x439547(0x192)](_0x1dcc69,{'childList':!0x0,'subtree':!0x0});}[_0x1ac238(0x181)](_0xb9166f){const _0x228adb=_0x1ac238;_0xb9166f[_0x228adb(0x176)](_0x228adb(0x190),_0x3ec386=>{const _0x1a9ba5=_0x228adb;this[_0x1a9ba5(0x179)](_0x1a9ba5(0x190),{'imageSrc':_0x3ec386[_0x1a9ba5(0x19f)][_0x1a9ba5(0x194)]});}),_0xb9166f[_0x228adb(0x176)](_0x228adb(0x175),()=>{const _0x5424f4=_0x228adb;this[_0x5424f4(0x179)](_0x5424f4(0x175));});}[_0x1ac238(0x19a)](){const _0x65ecf2=_0x1ac238;this[_0x65ecf2(0x183)]['on'](_0x65ecf2(0x180),()=>{const _0x1a016f=_0x65ecf2;this[_0x1a016f(0x179)](_0x1a016f(0x180));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13cb9b=_0x18e1;(function(_0x4deaa8,_0xe63dfa){const _0x3b6833=_0x18e1,_0x527111=_0x4deaa8();while(!![]){try{const _0x524f00=parseInt(_0x3b6833(0x117))/0x1+-parseInt(_0x3b6833(0x10d))/0x2*(-parseInt(_0x3b6833(0x118))/0x3)+parseInt(_0x3b6833(0x102))/0x4*(parseInt(_0x3b6833(0xfe))/0x5)+-parseInt(_0x3b6833(0x10e))/0x6+parseInt(_0x3b6833(0x108))/0x7+-parseInt(_0x3b6833(0x113))/0x8+-parseInt(_0x3b6833(0xff))/0x9;if(_0x524f00===_0xe63dfa)break;else _0x527111['push'](_0x527111['shift']());}catch(_0x4d1d62){_0x527111['push'](_0x527111['shift']());}}}(_0x7053,0x2b508));import{Command as _0x1ddeab}from'ckeditor5/src/core.js';import{Dialog as _0x389136}from'ckeditor5/src/ui.js';function _0x18e1(_0x36dd63,_0x65bf37){const _0x705347=_0x7053();return _0x18e1=function(_0x18e176,_0x2437dc){_0x18e176=_0x18e176-0xfd;let _0x4fac1c=_0x705347[_0x18e176];return _0x4fac1c;},_0x18e1(_0x36dd63,_0x65bf37);}import _0x1fff16 from'./ui/uploadcareimageeditcontroller.js';function _0x7053(){const _0x20a6be=['refresh','plugins','element','2270422sqgHRJ','getSelectedElement','editor','set','get','4PdGIgv','1515780cUzYqM','isActive','selection','config','imageInline','1273376DffeNW','bind','unbind','imageEditController','319991mnngIq','326658pbhExr','execute','imageBlock','uploadcare.allowExternalImagesEditing','isEnabled','373150epzesv','4471029Xumcfx','_isEditable','document','12AmLZLf','model','requires'];_0x7053=function(){return _0x20a6be;};return _0x7053();}import{createEditabilityChecker as _0x21d049}from'../utils/editingutils.js';export default class J extends _0x1ddeab{static get[_0x13cb9b(0x104)](){return[_0x389136];}constructor(_0x5465f1){const _0x5c832b=_0x13cb9b;super(_0x5465f1),this[_0x5c832b(0x116)]=void 0x0,this[_0x5c832b(0x100)]=_0x21d049(_0x5465f1[_0x5c832b(0x111)][_0x5c832b(0x10c)](_0x5c832b(0x11b))||[]),this[_0x5c832b(0x10b)]({'isActive':!0x1});}[_0x13cb9b(0x105)](){const _0x43913b=_0x13cb9b,_0x3450b3=this[_0x43913b(0x10a)][_0x43913b(0x103)][_0x43913b(0x101)][_0x43913b(0x110)][_0x43913b(0x109)]();this[_0x43913b(0xfd)]=this[_0x43913b(0x100)](_0x3450b3);}[_0x13cb9b(0x119)](){const _0x29461e=_0x13cb9b;this[_0x29461e(0x116)]&&(this[_0x29461e(0x115)](_0x29461e(0x10f)),this[_0x29461e(0x116)]=void 0x0);const _0x57e9f2=this[_0x29461e(0x10a)][_0x29461e(0x103)][_0x29461e(0x101)][_0x29461e(0x110)][_0x29461e(0x109)]();_0x57e9f2&&(_0x57e9f2['is'](_0x29461e(0x107),_0x29461e(0x11a))||_0x57e9f2['is'](_0x29461e(0x107),_0x29461e(0x112)))&&(this[_0x29461e(0x116)]=new _0x1fff16(this[_0x29461e(0x10a)],this[_0x29461e(0x10a)][_0x29461e(0x106)][_0x29461e(0x10c)](_0x389136),_0x57e9f2),this[_0x29461e(0x114)](_0x29461e(0x10f))['to'](this[_0x29461e(0x116)],_0x29461e(0x10f)));}}
23
+ function _0x2c7c(){const _0x54eaa8=['document','isActive','48YJpjPl','217698UNgelS','get','583767jdRRQF','3312036jUcQEs','uploadcare.allowExternalImagesEditing','500762xjKbfT','plugins','1149ElfaTK','4BUBWWZ','execute','editor','2878PijJbR','isEnabled','imageEditController','requires','refresh','bind','2426260sUnlDn','7008760ZyFiGj','getSelectedElement','imageBlock','imageInline','config','model','_isEditable','unbind','set','element','selection'];_0x2c7c=function(){return _0x54eaa8;};return _0x2c7c();}const _0x1ca993=_0xba8d;function _0xba8d(_0x357a34,_0x54fa1b){const _0x2c7c36=_0x2c7c();return _0xba8d=function(_0xba8db1,_0x98554e){_0xba8db1=_0xba8db1-0x6c;let _0x566ef9=_0x2c7c36[_0xba8db1];return _0x566ef9;},_0xba8d(_0x357a34,_0x54fa1b);}(function(_0x38496b,_0x3a3859){const _0xe79aea=_0xba8d,_0x1caab1=_0x38496b();while(!![]){try{const _0x543a93=-parseInt(_0xe79aea(0x78))/0x1+parseInt(_0xe79aea(0x7e))/0x2*(parseInt(_0xe79aea(0x7a))/0x3)+parseInt(_0xe79aea(0x7b))/0x4*(-parseInt(_0xe79aea(0x84))/0x5)+-parseInt(_0xe79aea(0x73))/0x6+parseInt(_0xe79aea(0x76))/0x7+-parseInt(_0xe79aea(0x72))/0x8*(parseInt(_0xe79aea(0x75))/0x9)+parseInt(_0xe79aea(0x85))/0xa;if(_0x543a93===_0x3a3859)break;else _0x1caab1['push'](_0x1caab1['shift']());}catch(_0x5f1271){_0x1caab1['push'](_0x1caab1['shift']());}}}(_0x2c7c,0x4c956));import{Command as _0x534adf}from'ckeditor5/src/core.js';import{Dialog as _0x47050a}from'ckeditor5/src/ui.js';import _0x195f9c from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x4668f3}from'../utils/editingutils.js';export default class J extends _0x534adf{static get[_0x1ca993(0x81)](){return[_0x47050a];}constructor(_0x127502){const _0x1da3b5=_0x1ca993;super(_0x127502),this[_0x1da3b5(0x80)]=void 0x0,this[_0x1da3b5(0x8b)]=_0x4668f3(_0x127502[_0x1da3b5(0x89)][_0x1da3b5(0x74)](_0x1da3b5(0x77))||[]),this[_0x1da3b5(0x6d)]({'isActive':!0x1});}[_0x1ca993(0x82)](){const _0x58557a=_0x1ca993,_0x5bdfa5=this[_0x58557a(0x7d)][_0x58557a(0x8a)][_0x58557a(0x70)][_0x58557a(0x6f)][_0x58557a(0x86)]();this[_0x58557a(0x7f)]=this[_0x58557a(0x8b)](_0x5bdfa5);}[_0x1ca993(0x7c)](){const _0x3647e5=_0x1ca993;this[_0x3647e5(0x80)]&&(this[_0x3647e5(0x6c)](_0x3647e5(0x71)),this[_0x3647e5(0x80)]=void 0x0);const _0x2608e3=this[_0x3647e5(0x7d)][_0x3647e5(0x8a)][_0x3647e5(0x70)][_0x3647e5(0x6f)][_0x3647e5(0x86)]();_0x2608e3&&(_0x2608e3['is'](_0x3647e5(0x6e),_0x3647e5(0x87))||_0x2608e3['is'](_0x3647e5(0x6e),_0x3647e5(0x88)))&&(this[_0x3647e5(0x80)]=new _0x195f9c(this[_0x3647e5(0x7d)],this[_0x3647e5(0x7d)][_0x3647e5(0x79)][_0x3647e5(0x74)](_0x47050a),_0x2608e3),this[_0x3647e5(0x83)](_0x3647e5(0x71))['to'](this[_0x3647e5(0x80)],_0x3647e5(0x71)));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x194a34=_0x3275;(function(_0x445a0c,_0xfa1c06){const _0x150472=_0x3275,_0x551034=_0x445a0c();while(!![]){try{const _0x46c4d3=-parseInt(_0x150472(0x183))/0x1+-parseInt(_0x150472(0x18c))/0x2+-parseInt(_0x150472(0x17f))/0x3+parseInt(_0x150472(0x182))/0x4*(-parseInt(_0x150472(0x17c))/0x5)+-parseInt(_0x150472(0x17b))/0x6*(-parseInt(_0x150472(0x18b))/0x7)+-parseInt(_0x150472(0x177))/0x8*(-parseInt(_0x150472(0x17d))/0x9)+parseInt(_0x150472(0x186))/0xa;if(_0x46c4d3===_0xfa1c06)break;else _0x551034['push'](_0x551034['shift']());}catch(_0x5d103c){_0x551034['push'](_0x551034['shift']());}}}(_0x462e,0x1c25c));import{Plugin as _0x175f8c}from'ckeditor5/src/core.js';import{Notification as _0x489864}from'ckeditor5/src/ui.js';function _0x462e(){const _0x585087=['327200gIERhT','8EKlsWU','ImageUtils','pluginName','init','12eJjhNV','185CxezMs','242523EequGf','ImageEditing','541407aQwgiu','uploadcareImageReplace','uploadcareImageEdit','956chqdZj','173269dAGHVG','UploadcareImageEditEditing','commands','5469080QacdDV','isOfficialPlugin','isPremiumPlugin','requires','add','236663uHZplU'];_0x462e=function(){return _0x585087;};return _0x462e();}function _0x3275(_0x2d0255,_0x2b3769){const _0x462edc=_0x462e();return _0x3275=function(_0x3275bd,_0x21bc35){_0x3275bd=_0x3275bd-0x177;let _0x2828a1=_0x462edc[_0x3275bd];return _0x2828a1;},_0x3275(_0x2d0255,_0x2b3769);}import _0x58e813 from'./uploadcareimageeditcommand.js';import _0x12fb33 from'./uploadcareimagereplacecommand.js';import _0x23557d from'../uploadcareediting.js';export default class m extends _0x175f8c{static get[_0x194a34(0x179)](){const _0x43b033=_0x194a34;return _0x43b033(0x184);}static get[_0x194a34(0x189)](){const _0x3466e8=_0x194a34;return[_0x23557d,_0x489864,_0x3466e8(0x178),_0x3466e8(0x17e)];}static get[_0x194a34(0x187)](){return!0x0;}static get[_0x194a34(0x188)](){return!0x0;}[_0x194a34(0x17a)](){const _0x40ea81=_0x194a34,{editor:_0x258417}=this;_0x258417[_0x40ea81(0x185)][_0x40ea81(0x18a)](_0x40ea81(0x181),new _0x58e813(_0x258417)),_0x258417[_0x40ea81(0x185)][_0x40ea81(0x18a)](_0x40ea81(0x180),new _0x12fb33(_0x258417));}}
23
+ function _0x199d(_0x537d41,_0x10202b){const _0xbb7271=_0xbb72();return _0x199d=function(_0x199dfc,_0xc13bfa){_0x199dfc=_0x199dfc-0x106;let _0x5ee000=_0xbb7271[_0x199dfc];return _0x5ee000;},_0x199d(_0x537d41,_0x10202b);}const _0x3fdc08=_0x199d;(function(_0x24d2c7,_0x2b7f9a){const _0x2f394f=_0x199d,_0x5b5702=_0x24d2c7();while(!![]){try{const _0x49de0f=-parseInt(_0x2f394f(0x106))/0x1+-parseInt(_0x2f394f(0x109))/0x2*(parseInt(_0x2f394f(0x117))/0x3)+parseInt(_0x2f394f(0x110))/0x4+-parseInt(_0x2f394f(0x119))/0x5*(-parseInt(_0x2f394f(0x113))/0x6)+parseInt(_0x2f394f(0x107))/0x7+-parseInt(_0x2f394f(0x11b))/0x8*(parseInt(_0x2f394f(0x10f))/0x9)+parseInt(_0x2f394f(0x116))/0xa;if(_0x49de0f===_0x2b7f9a)break;else _0x5b5702['push'](_0x5b5702['shift']());}catch(_0x2fa5a4){_0x5b5702['push'](_0x5b5702['shift']());}}}(_0xbb72,0x95c9c));import{Plugin as _0x5d7098}from'ckeditor5/src/core.js';import{Notification as _0x568e2f}from'ckeditor5/src/ui.js';import _0x54a0cd from'./uploadcareimageeditcommand.js';import _0xa4f58f from'./uploadcareimagereplacecommand.js';import _0x40d7ab from'../uploadcareediting.js';function _0xbb72(){const _0x3abfe5=['21ZQbzNY','UploadcareImageEditEditing','35IMebSH','pluginName','207184ajAvSc','510414DdYUaa','5605488IBfNqR','ImageEditing','246034vajBUF','ImageUtils','isOfficialPlugin','requires','uploadcareImageReplace','init','198RHuuVv','531860BPjsAN','add','commands','751002EHSaOP','isPremiumPlugin','uploadcareImageEdit','7449030LpSQhW'];_0xbb72=function(){return _0x3abfe5;};return _0xbb72();}export default class m extends _0x5d7098{static get[_0x3fdc08(0x11a)](){const _0x34022d=_0x3fdc08;return _0x34022d(0x118);}static get[_0x3fdc08(0x10c)](){const _0x297870=_0x3fdc08;return[_0x40d7ab,_0x568e2f,_0x297870(0x10a),_0x297870(0x108)];}static get[_0x3fdc08(0x10b)](){return!0x0;}static get[_0x3fdc08(0x114)](){return!0x0;}[_0x3fdc08(0x10e)](){const _0x20ce86=_0x3fdc08,{editor:_0x273bab}=this;_0x273bab[_0x20ce86(0x112)][_0x20ce86(0x111)](_0x20ce86(0x115),new _0x54a0cd(_0x273bab)),_0x273bab[_0x20ce86(0x112)][_0x20ce86(0x111)](_0x20ce86(0x10d),new _0xa4f58f(_0x273bab));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x39f83e}from'ckeditor5/src/core.js';import{ButtonView as _0x1b3f64}from'ckeditor5/src/ui.js';import{createElement as _0x58683c}from'ckeditor5/src/utils.js';import _0x1e425f from'../../theme/icons/uploadcare-image-edit.svg';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class g extends _0x39f83e{constructor(){super(...arguments),this['_imageCache']=new Map();}static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x216199=this['editor'];_0x216199['ui']['componentFactory']['add']('uploadcareImageEdit',_0x49f1e6=>{const _0x24fc2f=_0x216199['commands']['get']('uploadcareImageEdit'),_0x1ee53f=new _0x1b3f64(_0x49f1e6),t=_0x49f1e6['t'];return _0x1ee53f['set']({'icon':_0x1e425f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1ee53f['bind']('isEnabled')['to'](_0x24fc2f),_0x1ee53f['bind']('isOn')['to'](_0x24fc2f,'isActive'),this['listenTo'](_0x1ee53f,'execute',()=>{_0x216199['execute']('uploadcareImageEdit'),_0x216199['editing']['view']['focus']();}),_0x1ee53f;}),this['_initConfig']();}['_initConfig'](){const _0x1a8c52=_0x58683c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1a8c52),this['listenTo'](this['editor'],'destroy',()=>{_0x1a8c52['remove']();});}}
23
+ import{Plugin as _0x5b1860}from'ckeditor5/src/core.js';import{ButtonView as _0x197419}from'ckeditor5/src/ui.js';import{createElement as _0x3f9523}from'ckeditor5/src/utils.js';import _0x296cae from'../../theme/icons/uploadcare-image-edit.svg';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class g extends _0x5b1860{constructor(){super(...arguments),this['_imageCache']=new Map();}static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x271655=this['editor'];_0x271655['ui']['componentFactory']['add']('uploadcareImageEdit',_0x34bd=>{const _0x442a11=_0x271655['commands']['get']('uploadcareImageEdit'),_0x6986b1=new _0x197419(_0x34bd),t=_0x34bd['t'];return _0x6986b1['set']({'icon':_0x296cae,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x6986b1['bind']('isEnabled')['to'](_0x442a11),_0x6986b1['bind']('isOn')['to'](_0x442a11,'isActive'),this['listenTo'](_0x6986b1,'execute',()=>{_0x271655['execute']('uploadcareImageEdit'),_0x271655['editing']['view']['focus']();}),_0x6986b1;}),this['_initConfig']();}['_initConfig'](){const _0x2078a3=_0x3f9523(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2078a3),this['listenTo'](this['editor'],'destroy',()=>{_0x2078a3['remove']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x539f6e=_0x44b9;(function(_0x24a324,_0x5901ea){const _0x2ee89c=_0x44b9,_0x1bec9e=_0x24a324();while(!![]){try{const _0x50c08f=-parseInt(_0x2ee89c(0x1ac))/0x1+parseInt(_0x2ee89c(0x1ab))/0x2*(parseInt(_0x2ee89c(0x1a5))/0x3)+-parseInt(_0x2ee89c(0x19e))/0x4*(parseInt(_0x2ee89c(0x19b))/0x5)+parseInt(_0x2ee89c(0x1a7))/0x6*(parseInt(_0x2ee89c(0x1a9))/0x7)+-parseInt(_0x2ee89c(0x1aa))/0x8*(parseInt(_0x2ee89c(0x19d))/0x9)+parseInt(_0x2ee89c(0x19c))/0xa*(parseInt(_0x2ee89c(0x1b1))/0xb)+-parseInt(_0x2ee89c(0x1a8))/0xc;if(_0x50c08f===_0x5901ea)break;else _0x1bec9e['push'](_0x1bec9e['shift']());}catch(_0x8456d4){_0x1bec9e['push'](_0x1bec9e['shift']());}}}(_0x2b76,0x2df69));import{Command as _0x57d0f8}from'ckeditor5/src/core.js';function _0x44b9(_0x30cdfb,_0x3c34c2){const _0x2b76f2=_0x2b76();return _0x44b9=function(_0x44b986,_0x109bb6){_0x44b986=_0x44b986-0x199;let _0x5ef19e=_0x2b76f2[_0x44b986];return _0x5ef19e;},_0x44b9(_0x30cdfb,_0x3c34c2);}export default class O extends _0x57d0f8{[_0x539f6e(0x19a)](){const _0x133dc3=_0x539f6e,_0x51650a=this[_0x133dc3(0x1b3)][_0x133dc3(0x1b2)][_0x133dc3(0x1af)][_0x133dc3(0x1a6)][_0x133dc3(0x1b0)]();this[_0x133dc3(0x1a1)]=Boolean(_0x51650a&&(_0x51650a['is'](_0x133dc3(0x19f),_0x133dc3(0x1ad))||_0x51650a['is'](_0x133dc3(0x19f),_0x133dc3(0x1a0))));}[_0x539f6e(0x1a3)](_0x54d095){const _0x416870=_0x539f6e,_0x1c5e54=this[_0x416870(0x1b3)][_0x416870(0x1b2)][_0x416870(0x1af)][_0x416870(0x1a6)][_0x416870(0x1b0)]();this[_0x416870(0x1b3)][_0x416870(0x1b2)][_0x416870(0x1ae)](_0x163923=>{const _0x41128a=_0x416870;_0x163923[_0x41128a(0x1b4)](_0x54d095,_0x1c5e54),_0x163923[_0x41128a(0x1a2)](_0x41128a(0x1a4),_0x1c5e54),_0x163923[_0x41128a(0x1a2)](_0x41128a(0x199),_0x1c5e54);});}}function _0x2b76(){const _0x18f201=['32nSdoXI','element','imageInline','isEnabled','removeAttribute','execute','srcset','1017444yECKmj','selection','3252iMmfuD','1695480XGuloK','329clKFXn','799464oNPbqV','2NURSIg','138410bycUyM','imageBlock','change','document','getSelectedElement','3905803ICeXTX','model','editor','setAttributes','sizes','refresh','32415LXLboC','10vOfFJE','18ghfxCL'];_0x2b76=function(){return _0x18f201;};return _0x2b76();}
23
+ function _0x5c92(_0x10cdd1,_0x5e5188){const _0x396044=_0x3960();return _0x5c92=function(_0x5c920f,_0x21c5bd){_0x5c920f=_0x5c920f-0xe8;let _0x585203=_0x396044[_0x5c920f];return _0x585203;},_0x5c92(_0x10cdd1,_0x5e5188);}function _0x3960(){const _0x414dcf=['isEnabled','getSelectedElement','264KLSDjd','2898200yOPWrP','3562866TYrTfc','sizes','change','27395UIMmiY','4126032EEjLEc','2341QWaDVk','document','editor','srcset','imageBlock','removeAttribute','refresh','334NPfdEH','114611gdyesj','296dZKsRW','270459SuQGzu','imageInline','execute','selection','model','element','setAttributes'];_0x3960=function(){return _0x414dcf;};return _0x3960();}const _0x3669be=_0x5c92;(function(_0x1c4394,_0x5b9cf4){const _0x47b483=_0x5c92,_0x538182=_0x1c4394();while(!![]){try{const _0x5c1a08=-parseInt(_0x47b483(0xe8))/0x1*(-parseInt(_0x47b483(0xef))/0x2)+-parseInt(_0x47b483(0xf2))/0x3+-parseInt(_0x47b483(0xf1))/0x4*(-parseInt(_0x47b483(0x100))/0x5)+-parseInt(_0x47b483(0x101))/0x6+-parseInt(_0x47b483(0xf0))/0x7*(-parseInt(_0x47b483(0xfb))/0x8)+-parseInt(_0x47b483(0xfd))/0x9+parseInt(_0x47b483(0xfc))/0xa;if(_0x5c1a08===_0x5b9cf4)break;else _0x538182['push'](_0x538182['shift']());}catch(_0x19795d){_0x538182['push'](_0x538182['shift']());}}}(_0x3960,0x6e8d7));import{Command as _0x2f930a}from'ckeditor5/src/core.js';export default class O extends _0x2f930a{[_0x3669be(0xee)](){const _0x41fc4c=_0x3669be,_0x181217=this[_0x41fc4c(0xea)][_0x41fc4c(0xf6)][_0x41fc4c(0xe9)][_0x41fc4c(0xf5)][_0x41fc4c(0xfa)]();this[_0x41fc4c(0xf9)]=Boolean(_0x181217&&(_0x181217['is'](_0x41fc4c(0xf7),_0x41fc4c(0xec))||_0x181217['is'](_0x41fc4c(0xf7),_0x41fc4c(0xf3))));}[_0x3669be(0xf4)](_0x27dd59){const _0xf96007=_0x3669be,_0x35ffef=this[_0xf96007(0xea)][_0xf96007(0xf6)][_0xf96007(0xe9)][_0xf96007(0xf5)][_0xf96007(0xfa)]();this[_0xf96007(0xea)][_0xf96007(0xf6)][_0xf96007(0xff)](_0x1744db=>{const _0x33b810=_0xf96007;_0x1744db[_0x33b810(0xf8)](_0x27dd59,_0x35ffef),_0x1744db[_0x33b810(0xed)](_0x33b810(0xeb),_0x35ffef),_0x1744db[_0x33b810(0xed)](_0x33b810(0xfe),_0x35ffef);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4360(_0x1fcd80,_0x3c748c){var _0x3a88e8=_0x3a88();return _0x4360=function(_0x436029,_0x570f37){_0x436029=_0x436029-0x102;var _0x1c3970=_0x3a88e8[_0x436029];return _0x1c3970;},_0x4360(_0x1fcd80,_0x3c748c);}var _0x40ed39=_0x4360;(function(_0x44db8e,_0x4695c2){var _0x555484=_0x4360,_0xa2581f=_0x44db8e();while(!![]){try{var _0xd7706d=-parseInt(_0x555484(0x10a))/0x1+parseInt(_0x555484(0x108))/0x2*(parseInt(_0x555484(0x106))/0x3)+parseInt(_0x555484(0x107))/0x4+parseInt(_0x555484(0x102))/0x5+-parseInt(_0x555484(0x104))/0x6+parseInt(_0x555484(0x10e))/0x7*(parseInt(_0x555484(0x103))/0x8)+-parseInt(_0x555484(0x110))/0x9*(parseInt(_0x555484(0x109))/0xa);if(_0xd7706d===_0x4695c2)break;else _0xa2581f['push'](_0xa2581f['shift']());}catch(_0x4a92be){_0xa2581f['push'](_0xa2581f['shift']());}}}(_0x3a88,0x2ff62));import{Plugin as _0x5e5b17}from'ckeditor5/src/core.js';import _0x4eb736 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x4b9c62 from'./uploadcareimageedit/uploadcareimageeditui.js';export default class j extends _0x5e5b17{static get[_0x40ed39(0x10b)](){var _0x2c27e5=_0x40ed39;return _0x2c27e5(0x105);}static get[_0x40ed39(0x10d)](){return[_0x4eb736,_0x4b9c62];}static get[_0x40ed39(0x10c)](){return!0x0;}static get[_0x40ed39(0x10f)](){return!0x0;}}function _0x3a88(){var _0x1da677=['258jSfmms','599240EvLvmm','3904YCcuQy','35590uaVXvB','47966oZfrwH','pluginName','isOfficialPlugin','requires','7XZFLdK','isPremiumPlugin','531WMnOqR','1952115HjpWfx','129944WhuouF','1619706JzPXDE','UploadcareImageEdit'];_0x3a88=function(){return _0x1da677;};return _0x3a88();}
23
+ function _0x531d(){var _0x16f1f4=['768864xxMtXW','419001VnClcP','5PqvpLi','22wDTgPE','pluginName','isOfficialPlugin','UploadcareImageEdit','180736UleBDn','9WZHdGj','requires','1335929yJblEb','7904356WeNEnd','7993656WgAbEx','39374770TTyKII','isPremiumPlugin'];_0x531d=function(){return _0x16f1f4;};return _0x531d();}function _0x1cd6(_0x36a1f4,_0x954752){var _0x531d0a=_0x531d();return _0x1cd6=function(_0x1cd6e5,_0x438be3){_0x1cd6e5=_0x1cd6e5-0xd7;var _0x2d17ee=_0x531d0a[_0x1cd6e5];return _0x2d17ee;},_0x1cd6(_0x36a1f4,_0x954752);}var _0x12de14=_0x1cd6;(function(_0x499080,_0x2ca9a8){var _0x27fd48=_0x1cd6,_0x1ceff0=_0x499080();while(!![]){try{var _0xa5f368=parseInt(_0x27fd48(0xde))/0x1+parseInt(_0x27fd48(0xda))/0x2*(parseInt(_0x27fd48(0xd8))/0x3)+parseInt(_0x27fd48(0xe2))/0x4+-parseInt(_0x27fd48(0xd9))/0x5*(-parseInt(_0x27fd48(0xe3))/0x6)+-parseInt(_0x27fd48(0xe1))/0x7+-parseInt(_0x27fd48(0xd7))/0x8*(-parseInt(_0x27fd48(0xdf))/0x9)+-parseInt(_0x27fd48(0xe4))/0xa;if(_0xa5f368===_0x2ca9a8)break;else _0x1ceff0['push'](_0x1ceff0['shift']());}catch(_0x4fab9f){_0x1ceff0['push'](_0x1ceff0['shift']());}}}(_0x531d,0xf27c6));import{Plugin as _0x268373}from'ckeditor5/src/core.js';import _0x34066d from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x1d7b8b from'./uploadcareimageedit/uploadcareimageeditui.js';export default class j extends _0x268373{static get[_0x12de14(0xdb)](){var _0x1c163e=_0x12de14;return _0x1c163e(0xdd);}static get[_0x12de14(0xe0)](){return[_0x34066d,_0x1d7b8b];}static get[_0x12de14(0xdc)](){return!0x0;}static get[_0x12de14(0xe5)](){return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a692c=_0x5d70;(function(_0x52cd60,_0x1f79af){const _0x14c338=_0x5d70,_0x37f427=_0x52cd60();while(!![]){try{const _0x3a4368=-parseInt(_0x14c338(0x1b1))/0x1+-parseInt(_0x14c338(0x1c1))/0x2+-parseInt(_0x14c338(0x1bc))/0x3+parseInt(_0x14c338(0x1a1))/0x4+-parseInt(_0x14c338(0x19f))/0x5*(parseInt(_0x14c338(0x1aa))/0x6)+parseInt(_0x14c338(0x198))/0x7*(-parseInt(_0x14c338(0x1ae))/0x8)+parseInt(_0x14c338(0x1d8))/0x9;if(_0x3a4368===_0x1f79af)break;else _0x37f427['push'](_0x37f427['shift']());}catch(_0xd513de){_0x37f427['push'](_0x37f427['shift']());}}}(_0x2c29,0x626ab));import{Plugin as _0x3c99a5,icons as _0x3f3e6a}from'ckeditor5/src/core.js';function _0x2c29(){const _0x523c20=['isPremiumPlugin','600129mAzTkv','invalid','Uploadcare','editor','isEnabled','imageUpload','label','destroy','get','commands','afterInit','1825590diELtb','_createMenuBarButtons','uploadcare.uploader.sourceList','uploadcareLicenseKeyTrialLimit','text','1447744YFdGrh','uploadcare','_createDropdownButtons','plugins','assetManager','has','featureNotAllowed','_createToolbarButton','Instagram','GDrive','init','type','uploadcareLicenseKeyEvaluationLimit','bind','isImageSelected','_createButton','licenseKey','Insert','uploadcareLicenseKeyDomainLimit','uploadcareLicenseKeyInvalid','ImageInsertUI','upload','url','19880217ACKezQ','registerIntegration','Replace','_showLicenseError','uploadcareLicenseKeyNotAllowed','usageLimit','Local','domainLimit','tooltip','uploadcareLicenseKeyUsageLimit','_getIntegrationKey','URL','forEach','OneDrive','icon','push','uploadcareLicenseKeyValid','execute','118223vhkOuu','expired','isOfficialPlugin','_licenseKeyCheckInterval','uploadcareLicenseKeyExpired','_normalizeConfigSourceList','GPhotos','340OrpfBc','Dropbox','1540660yXoQvv','map','evaluationLimit','reduce','shortText','locale','pluginName','config','trialLimit','16842dbcWxI','entries','Facebook','UploadcareUI','32szuASL','withText'];_0x2c29=function(){return _0x523c20;};return _0x2c29();}import{ButtonView as _0x456203,MenuBarMenuListItemButtonView as _0x3c1493}from'ckeditor5/src/ui.js';import _0x9360b3 from'../theme/icons/dropbox.svg';import _0xe12d7 from'../theme/icons/facebook.svg';import _0xbf2780 from'../theme/icons/google-drive.svg';import _0x13affd from'../theme/icons/google-photos.svg';import _0x251c48 from'../theme/icons/instagram.svg';import _0x187cda from'../theme/icons/link.svg';import _0x2080ab from'../theme/icons/onedrive.svg';function _0x5d70(_0x4799f5,_0x571f19){const _0x2c296f=_0x2c29();return _0x5d70=function(_0x5d701c,_0xe3e9f2){_0x5d701c=_0x5d701c-0x193;let _0x1ba3e7=_0x2c296f[_0x5d701c];return _0x1ba3e7;},_0x5d70(_0x4799f5,_0x571f19);}import{UploadcareSource as _0x2afe69}from'./uploadcareconfig.js';import{getTranslation as _0x4e52e8}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x3c99a5{static get[_0x4a692c(0x1a7)](){const _0x1df94c=_0x4a692c;return _0x1df94c(0x1ad);}static get[_0x4a692c(0x19a)](){return!0x0;}static get[_0x4a692c(0x1b0)](){return!0x0;}[_0x4a692c(0x1cb)](){const _0xe18015=_0x4a692c;this[_0xe18015(0x1d1)]=this[_0xe18015(0x1b4)][_0xe18015(0x1a8)][_0xe18015(0x1b9)](_0xe18015(0x1d1));const _0xf8660e=this[_0xe18015(0x1b4)];this[_0xe18015(0x19b)]=setInterval(()=>{const _0x3ff67d=_0xe18015;let _0x543b79;for(const _0x1efe88 in _0xf8660e){const _0xdd8bef=_0x1efe88,_0x478d83=_0xf8660e[_0xdd8bef];if(_0x3ff67d(0x196)==_0x478d83||_0x3ff67d(0x1d4)==_0x478d83||_0x3ff67d(0x19c)==_0x478d83||_0x3ff67d(0x1d3)==_0x478d83||_0x3ff67d(0x1dc)==_0x478d83||_0x3ff67d(0x1cd)==_0x478d83||_0x3ff67d(0x1bf)==_0x478d83||_0x3ff67d(0x1e1)==_0x478d83){delete _0xf8660e[_0xdd8bef],_0x543b79=_0x478d83,clearInterval(this[_0x3ff67d(0x19b)]),this[_0x3ff67d(0x19b)]=void 0x0;break;}}_0x3ff67d(0x1d4)==_0x543b79&&_0xf8660e[_0x3ff67d(0x1db)](_0x3ff67d(0x1b2)),_0x3ff67d(0x19c)==_0x543b79&&_0xf8660e[_0x3ff67d(0x1db)](_0x3ff67d(0x199)),_0x3ff67d(0x1d3)==_0x543b79&&_0xf8660e[_0x3ff67d(0x1db)](_0x3ff67d(0x1df)),_0x3ff67d(0x1dc)==_0x543b79&&_0xf8660e[_0x3ff67d(0x1db)](_0x3ff67d(0x1c7),_0x3ff67d(0x1b3)),_0x3ff67d(0x1cd)==_0x543b79&&_0xf8660e[_0x3ff67d(0x1db)](_0x3ff67d(0x1a3)),_0x3ff67d(0x1bf)==_0x543b79&&_0xf8660e[_0x3ff67d(0x1db)](_0x3ff67d(0x1a9)),_0x3ff67d(0x1e1)==_0x543b79&&_0xf8660e[_0x3ff67d(0x1db)](_0x3ff67d(0x1dd));},0x3e8);}[_0x4a692c(0x1bb)](){const _0x2157e3=_0x4a692c,{editor:_0xe2ea07}=this,_0x3b5efe=_0xe2ea07[_0x2157e3(0x1ba)][_0x2157e3(0x1b9)](_0x2157e3(0x1c2));if(!_0x3b5efe)return;const _0x66aec8=this[_0x2157e3(0x19d)](_0xe2ea07[_0x2157e3(0x1a8)][_0x2157e3(0x1b9)](_0x2157e3(0x1be)))[_0x2157e3(0x1a4)]((_0x4e9d3e,_0x5868fd)=>{const _0x57253d=_0x2157e3,_0x15cebd=this[_0x57253d(0x1e2)](_0x5868fd[_0x57253d(0x1cc)]);return _0x4e9d3e[_0x15cebd]||(_0x4e9d3e[_0x15cebd]=[]),_0x4e9d3e[_0x15cebd][_0x57253d(0x195)](_0x5868fd),_0x4e9d3e;},{});_0xe2ea07[_0x2157e3(0x1c4)][_0x2157e3(0x1c6)](_0x2157e3(0x1d5))&&_0xe2ea07[_0x2157e3(0x1ba)][_0x2157e3(0x1b9)](_0x2157e3(0x1c2))&&Object[_0x2157e3(0x1ab)](_0x66aec8)[_0x2157e3(0x1e4)](([_0x164c14,_0x5f465a])=>{const _0x3e5614=_0x2157e3;_0xe2ea07[_0x3e5614(0x1c4)][_0x3e5614(0x1b9)](_0x3e5614(0x1d5))[_0x3e5614(0x1d9)]({'name':_0x164c14,'observable':()=>_0x3b5efe,'buttonViewCreator':()=>this[_0x3e5614(0x1c8)](_0x5f465a),'formViewCreator':()=>this[_0x3e5614(0x1c3)](_0x5f465a),'menuBarButtonViewCreator':()=>this[_0x3e5614(0x1bd)](_0x5f465a),'override':_0x3e5614(0x1c5)!==_0x164c14});});}[_0x4a692c(0x1b8)](){const _0x3d5f3a=_0x4a692c;super[_0x3d5f3a(0x1b8)](),this[_0x3d5f3a(0x19b)]&&clearInterval(this[_0x3d5f3a(0x19b)]);}[_0x4a692c(0x19d)](_0x12d0ce){const _0x5d0946=_0x4a692c,{locale:_0x183197}=this[_0x5d0946(0x1b4)];return _0x12d0ce[_0x5d0946(0x1a2)](_0x53189a=>{const _0x12080f=_0x5d0946,_0x3e2024=_0x4e52e8(_0x183197,_0x53189a,_0x12080f(0x1d2));switch(_0x53189a){case _0x2afe69[_0x12080f(0x1de)]:return{'icon':_0x3f3e6a[_0x12080f(0x1b6)],'type':_0x2afe69[_0x12080f(0x1de)],..._0x3e2024};case _0x2afe69[_0x12080f(0x1e3)]:return{'icon':_0x187cda,'type':_0x2afe69[_0x12080f(0x1e3)],..._0x3e2024};case _0x2afe69[_0x12080f(0x1a0)]:return{'icon':_0x9360b3,'type':_0x2afe69[_0x12080f(0x1a0)],..._0x3e2024};case _0x2afe69[_0x12080f(0x1ac)]:return{'icon':_0xe12d7,'type':_0x2afe69[_0x12080f(0x1ac)],..._0x3e2024};case _0x2afe69[_0x12080f(0x1ca)]:return{'icon':_0xbf2780,'type':_0x2afe69[_0x12080f(0x1ca)],..._0x3e2024};case _0x2afe69[_0x12080f(0x19e)]:return{'icon':_0x13affd,'type':_0x2afe69[_0x12080f(0x19e)],..._0x3e2024};case _0x2afe69[_0x12080f(0x1c9)]:return{'icon':_0x251c48,'type':_0x2afe69[_0x12080f(0x1c9)],..._0x3e2024};case _0x2afe69[_0x12080f(0x193)]:return{'icon':_0x2080ab,'type':_0x2afe69[_0x12080f(0x193)],..._0x3e2024};}});}[_0x4a692c(0x1e2)](_0x4fe718){const _0x4eb0cf=_0x4a692c;switch(_0x4fe718){case _0x2afe69[_0x4eb0cf(0x1de)]:return _0x4eb0cf(0x1d6);case _0x2afe69[_0x4eb0cf(0x1e3)]:return _0x4eb0cf(0x1d7);default:return _0x4eb0cf(0x1c5);}}[_0x4a692c(0x1d0)](_0x3458c0,_0x4906d5){const _0x1a8ea1=_0x4a692c,_0x536cb4=this[_0x1a8ea1(0x1b4)],_0x522979=new _0x3458c0(_0x536cb4[_0x1a8ea1(0x1a6)]),_0x44139a=_0x536cb4[_0x1a8ea1(0x1ba)][_0x1a8ea1(0x1b9)](_0x1a8ea1(0x1c2));return _0x522979[_0x1a8ea1(0x1ce)](_0x1a8ea1(0x1b5))['to'](_0x44139a),_0x522979['on'](_0x1a8ea1(0x197),()=>{const _0x3ff0d5=_0x1a8ea1;_0x44139a[_0x3ff0d5(0x197)](_0x4906d5);}),_0x522979;}[_0x4a692c(0x1c8)](_0x5ad688){const _0x3d6efe=_0x4a692c,{locale:_0x398a33}=this[_0x3d6efe(0x1b4)],_0x1e549a=this[_0x3d6efe(0x1b4)][_0x3d6efe(0x1c4)][_0x3d6efe(0x1b9)](_0x3d6efe(0x1d5)),_0x2b4808=_0x5ad688[0x0],_0x4d9ff3=this[_0x3d6efe(0x1d0)](_0x456203,_0x2b4808[_0x3d6efe(0x1cc)]);return _0x4d9ff3[_0x3d6efe(0x194)]=_0x2b4808[_0x3d6efe(0x194)],_0x4d9ff3[_0x3d6efe(0x1ce)](_0x3d6efe(0x1b7))['to'](_0x1e549a,_0x3d6efe(0x1cf),_0x53cee8=>_0x4e52e8(_0x398a33,_0x2b4808[_0x3d6efe(0x1cc)],_0x53cee8?_0x3d6efe(0x1da):_0x3d6efe(0x1d2))[_0x3d6efe(0x1c0)]),_0x4d9ff3[_0x3d6efe(0x1e0)]=!0x0,_0x4d9ff3;}[_0x4a692c(0x1c3)](_0x4aee2a){const _0x36de7c=_0x4a692c,{locale:_0x5f07bd}=this[_0x36de7c(0x1b4)],_0x707996=this[_0x36de7c(0x1b4)][_0x36de7c(0x1c4)][_0x36de7c(0x1b9)](_0x36de7c(0x1d5));return _0x4aee2a[_0x36de7c(0x1a2)](_0x50a23b=>{const _0x16f859=_0x36de7c,_0x2bced5=this[_0x16f859(0x1d0)](_0x456203,_0x50a23b[_0x16f859(0x1cc)]);return _0x2bced5[_0x16f859(0x1af)]=!0x0,_0x2bced5[_0x16f859(0x194)]=_0x50a23b[_0x16f859(0x194)],_0x2bced5[_0x16f859(0x1ce)](_0x16f859(0x1b7))['to'](_0x707996,_0x16f859(0x1cf),_0x38c14d=>_0x4e52e8(_0x5f07bd,_0x50a23b[_0x16f859(0x1cc)],_0x38c14d?_0x16f859(0x1da):_0x16f859(0x1d2))[_0x16f859(0x1c0)]),_0x2bced5;});}[_0x4a692c(0x1bd)](_0x574a78){const _0x2c77a0=_0x4a692c;return _0x574a78[_0x2c77a0(0x1a2)](_0x1910b6=>{const _0x8b05a1=_0x2c77a0,_0x3c406d=this[_0x8b05a1(0x1d0)](_0x3c1493,_0x1910b6[_0x8b05a1(0x1cc)]);return _0x3c406d[_0x8b05a1(0x194)]=_0x1910b6[_0x8b05a1(0x194)],_0x3c406d[_0x8b05a1(0x1b7)]=_0x1910b6[_0x8b05a1(0x1a5)],_0x3c406d;});}}
23
+ const _0x5656ef=_0x4d4e;function _0x4d4e(_0x5797b3,_0x4e54d4){const _0x492c15=_0x492c();return _0x4d4e=function(_0x4d4e30,_0x4ee208){_0x4d4e30=_0x4d4e30-0x1db;let _0xd50bbb=_0x492c15[_0x4d4e30];return _0xd50bbb;},_0x4d4e(_0x5797b3,_0x4e54d4);}(function(_0x4e2815,_0x3f04a5){const _0x57a69f=_0x4d4e,_0x482fcc=_0x4e2815();while(!![]){try{const _0x340520=parseInt(_0x57a69f(0x1fd))/0x1+-parseInt(_0x57a69f(0x21a))/0x2*(parseInt(_0x57a69f(0x214))/0x3)+parseInt(_0x57a69f(0x1f3))/0x4+-parseInt(_0x57a69f(0x1f6))/0x5+-parseInt(_0x57a69f(0x204))/0x6+parseInt(_0x57a69f(0x20e))/0x7+parseInt(_0x57a69f(0x206))/0x8;if(_0x340520===_0x3f04a5)break;else _0x482fcc['push'](_0x482fcc['shift']());}catch(_0xed645f){_0x482fcc['push'](_0x482fcc['shift']());}}}(_0x492c,0x77fe6));function _0x492c(){const _0x304664=['uploadcareLicenseKeyTrialLimit','domainLimit','bind','GDrive','upload','Insert','locale','OneDrive','isPremiumPlugin','label','uploadcareLicenseKeyEvaluationLimit','URL','Dropbox','url','commands','uploadcareLicenseKeyExpired','isImageSelected','trialLimit','init','map','isOfficialPlugin','icon','_licenseKeyCheckInterval','evaluationLimit','reduce','uploadcareLicenseKeyDomainLimit','Instagram','assetManager','uploadcare','ImageInsertUI','usageLimit','3567944dMClhC','destroy','featureNotAllowed','661040zpAkBq','_createToolbarButton','withText','execute','pluginName','uploadcareLicenseKeyValid','_createButton','339104LanUuB','uploadcareLicenseKeyUsageLimit','type','editor','push','_showLicenseError','text','5091030ogHdQk','forEach','817152SOCzoW','config','_createDropdownButtons','tooltip','has','plugins','expired','registerIntegration','3389981ojjNSQ','uploadcareLicenseKeyNotAllowed','_getIntegrationKey','isEnabled','_createMenuBarButtons','uploadcare.uploader.sourceList','15VIwEcq','licenseKey','get','_normalizeConfigSourceList','afterInit','UploadcareUI','138124ckUIId','uploadcareLicenseKeyInvalid','shortText','entries','GPhotos','imageUpload','invalid','Local','Facebook','Replace','Uploadcare'];_0x492c=function(){return _0x304664;};return _0x492c();}import{Plugin as _0x460530,icons as _0x6e8290}from'ckeditor5/src/core.js';import{ButtonView as _0x44565a,MenuBarMenuListItemButtonView as _0x4e4f52}from'ckeditor5/src/ui.js';import _0x45b6a0 from'../theme/icons/dropbox.svg';import _0x4ead5b from'../theme/icons/facebook.svg';import _0x23c44e from'../theme/icons/google-drive.svg';import _0x4e6776 from'../theme/icons/google-photos.svg';import _0x152695 from'../theme/icons/instagram.svg';import _0x32bdbe from'../theme/icons/link.svg';import _0x4f70b3 from'../theme/icons/onedrive.svg';import{UploadcareSource as _0x63d424}from'./uploadcareconfig.js';import{getTranslation as _0x5883a4}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x460530{static get[_0x5656ef(0x1fa)](){const _0x523a01=_0x5656ef;return _0x523a01(0x219);}static get[_0x5656ef(0x1e8)](){return!0x0;}static get[_0x5656ef(0x1dc)](){return!0x0;}[_0x5656ef(0x1e6)](){const _0x5a9df0=_0x5656ef;this[_0x5a9df0(0x215)]=this[_0x5a9df0(0x200)][_0x5a9df0(0x207)][_0x5a9df0(0x216)](_0x5a9df0(0x215));const _0x552545=this[_0x5a9df0(0x200)];this[_0x5a9df0(0x1ea)]=setInterval(()=>{const _0x35c040=_0x5a9df0;let _0x3f3951;for(const _0x8915cf in _0x552545){const _0x762b09=_0x8915cf,_0x90ecf7=_0x552545[_0x762b09];if(_0x35c040(0x1fb)==_0x90ecf7||_0x35c040(0x21b)==_0x90ecf7||_0x35c040(0x1e3)==_0x90ecf7||_0x35c040(0x1ed)==_0x90ecf7||_0x35c040(0x20f)==_0x90ecf7||_0x35c040(0x1de)==_0x90ecf7||_0x35c040(0x225)==_0x90ecf7||_0x35c040(0x1fe)==_0x90ecf7){delete _0x552545[_0x762b09],_0x3f3951=_0x90ecf7,clearInterval(this[_0x35c040(0x1ea)]),this[_0x35c040(0x1ea)]=void 0x0;break;}}_0x35c040(0x21b)==_0x3f3951&&_0x552545[_0x35c040(0x202)](_0x35c040(0x220)),_0x35c040(0x1e3)==_0x3f3951&&_0x552545[_0x35c040(0x202)](_0x35c040(0x20c)),_0x35c040(0x1ed)==_0x3f3951&&_0x552545[_0x35c040(0x202)](_0x35c040(0x226)),_0x35c040(0x20f)==_0x3f3951&&_0x552545[_0x35c040(0x202)](_0x35c040(0x1f5),_0x35c040(0x224)),_0x35c040(0x1de)==_0x3f3951&&_0x552545[_0x35c040(0x202)](_0x35c040(0x1eb)),_0x35c040(0x225)==_0x3f3951&&_0x552545[_0x35c040(0x202)](_0x35c040(0x1e5)),_0x35c040(0x1fe)==_0x3f3951&&_0x552545[_0x35c040(0x202)](_0x35c040(0x1f2));},0x3e8);}[_0x5656ef(0x218)](){const _0x10ad8b=_0x5656ef,{editor:_0x467c9a}=this,_0x5be45a=_0x467c9a[_0x10ad8b(0x1e2)][_0x10ad8b(0x216)](_0x10ad8b(0x1f0));if(!_0x5be45a)return;const _0x4a1762=this[_0x10ad8b(0x217)](_0x467c9a[_0x10ad8b(0x207)][_0x10ad8b(0x216)](_0x10ad8b(0x213)))[_0x10ad8b(0x1ec)]((_0x202994,_0x158039)=>{const _0x43d4bd=_0x10ad8b,_0xe2b0c=this[_0x43d4bd(0x210)](_0x158039[_0x43d4bd(0x1ff)]);return _0x202994[_0xe2b0c]||(_0x202994[_0xe2b0c]=[]),_0x202994[_0xe2b0c][_0x43d4bd(0x201)](_0x158039),_0x202994;},{});_0x467c9a[_0x10ad8b(0x20b)][_0x10ad8b(0x20a)](_0x10ad8b(0x1f1))&&_0x467c9a[_0x10ad8b(0x1e2)][_0x10ad8b(0x216)](_0x10ad8b(0x1f0))&&Object[_0x10ad8b(0x21d)](_0x4a1762)[_0x10ad8b(0x205)](([_0x593b00,_0x3ba2ac])=>{const _0x58a082=_0x10ad8b;_0x467c9a[_0x58a082(0x20b)][_0x58a082(0x216)](_0x58a082(0x1f1))[_0x58a082(0x20d)]({'name':_0x593b00,'observable':()=>_0x5be45a,'buttonViewCreator':()=>this[_0x58a082(0x1f7)](_0x3ba2ac),'formViewCreator':()=>this[_0x58a082(0x208)](_0x3ba2ac),'menuBarButtonViewCreator':()=>this[_0x58a082(0x212)](_0x3ba2ac),'override':_0x58a082(0x1ef)!==_0x593b00});});}[_0x5656ef(0x1f4)](){const _0x513ba6=_0x5656ef;super[_0x513ba6(0x1f4)](),this[_0x513ba6(0x1ea)]&&clearInterval(this[_0x513ba6(0x1ea)]);}[_0x5656ef(0x217)](_0x150965){const _0x46345a=_0x5656ef,{locale:_0x1f8389}=this[_0x46345a(0x200)];return _0x150965[_0x46345a(0x1e7)](_0x1b96d7=>{const _0x53c94a=_0x46345a,_0x2a725e=_0x5883a4(_0x1f8389,_0x1b96d7,_0x53c94a(0x22a));switch(_0x1b96d7){case _0x63d424[_0x53c94a(0x221)]:return{'icon':_0x6e8290[_0x53c94a(0x21f)],'type':_0x63d424[_0x53c94a(0x221)],..._0x2a725e};case _0x63d424[_0x53c94a(0x1df)]:return{'icon':_0x32bdbe,'type':_0x63d424[_0x53c94a(0x1df)],..._0x2a725e};case _0x63d424[_0x53c94a(0x1e0)]:return{'icon':_0x45b6a0,'type':_0x63d424[_0x53c94a(0x1e0)],..._0x2a725e};case _0x63d424[_0x53c94a(0x222)]:return{'icon':_0x4ead5b,'type':_0x63d424[_0x53c94a(0x222)],..._0x2a725e};case _0x63d424[_0x53c94a(0x228)]:return{'icon':_0x23c44e,'type':_0x63d424[_0x53c94a(0x228)],..._0x2a725e};case _0x63d424[_0x53c94a(0x21e)]:return{'icon':_0x4e6776,'type':_0x63d424[_0x53c94a(0x21e)],..._0x2a725e};case _0x63d424[_0x53c94a(0x1ee)]:return{'icon':_0x152695,'type':_0x63d424[_0x53c94a(0x1ee)],..._0x2a725e};case _0x63d424[_0x53c94a(0x1db)]:return{'icon':_0x4f70b3,'type':_0x63d424[_0x53c94a(0x1db)],..._0x2a725e};}});}[_0x5656ef(0x210)](_0x12904d){const _0x258805=_0x5656ef;switch(_0x12904d){case _0x63d424[_0x258805(0x221)]:return _0x258805(0x229);case _0x63d424[_0x258805(0x1df)]:return _0x258805(0x1e1);default:return _0x258805(0x1ef);}}[_0x5656ef(0x1fc)](_0x10a056,_0xbeef6f){const _0x1e1b8f=_0x5656ef,_0x1dfec5=this[_0x1e1b8f(0x200)],_0x4d3d19=new _0x10a056(_0x1dfec5[_0x1e1b8f(0x22b)]),_0x39c50c=_0x1dfec5[_0x1e1b8f(0x1e2)][_0x1e1b8f(0x216)](_0x1e1b8f(0x1f0));return _0x4d3d19[_0x1e1b8f(0x227)](_0x1e1b8f(0x211))['to'](_0x39c50c),_0x4d3d19['on'](_0x1e1b8f(0x1f9),()=>{const _0x5a0d36=_0x1e1b8f;_0x39c50c[_0x5a0d36(0x1f9)](_0xbeef6f);}),_0x4d3d19;}[_0x5656ef(0x1f7)](_0x2ad65d){const _0x182993=_0x5656ef,{locale:_0x2eaabb}=this[_0x182993(0x200)],_0xc67c16=this[_0x182993(0x200)][_0x182993(0x20b)][_0x182993(0x216)](_0x182993(0x1f1)),_0x19666e=_0x2ad65d[0x0],_0x101656=this[_0x182993(0x1fc)](_0x44565a,_0x19666e[_0x182993(0x1ff)]);return _0x101656[_0x182993(0x1e9)]=_0x19666e[_0x182993(0x1e9)],_0x101656[_0x182993(0x227)](_0x182993(0x1dd))['to'](_0xc67c16,_0x182993(0x1e4),_0x5b2c96=>_0x5883a4(_0x2eaabb,_0x19666e[_0x182993(0x1ff)],_0x5b2c96?_0x182993(0x223):_0x182993(0x22a))[_0x182993(0x203)]),_0x101656[_0x182993(0x209)]=!0x0,_0x101656;}[_0x5656ef(0x208)](_0x29a2c1){const _0xe7b9a1=_0x5656ef,{locale:_0x491f17}=this[_0xe7b9a1(0x200)],_0x5f4a11=this[_0xe7b9a1(0x200)][_0xe7b9a1(0x20b)][_0xe7b9a1(0x216)](_0xe7b9a1(0x1f1));return _0x29a2c1[_0xe7b9a1(0x1e7)](_0x22d01d=>{const _0x475087=_0xe7b9a1,_0x39a2e8=this[_0x475087(0x1fc)](_0x44565a,_0x22d01d[_0x475087(0x1ff)]);return _0x39a2e8[_0x475087(0x1f8)]=!0x0,_0x39a2e8[_0x475087(0x1e9)]=_0x22d01d[_0x475087(0x1e9)],_0x39a2e8[_0x475087(0x227)](_0x475087(0x1dd))['to'](_0x5f4a11,_0x475087(0x1e4),_0x54233e=>_0x5883a4(_0x491f17,_0x22d01d[_0x475087(0x1ff)],_0x54233e?_0x475087(0x223):_0x475087(0x22a))[_0x475087(0x203)]),_0x39a2e8;});}[_0x5656ef(0x212)](_0x582a26){const _0x15aa81=_0x5656ef;return _0x582a26[_0x15aa81(0x1e7)](_0x499bc1=>{const _0x1690de=_0x15aa81,_0x57739f=this[_0x1690de(0x1fc)](_0x4e4f52,_0x499bc1[_0x1690de(0x1ff)]);return _0x57739f[_0x1690de(0x1e9)]=_0x499bc1[_0x1690de(0x1e9)],_0x57739f[_0x1690de(0x1dd)]=_0x499bc1[_0x1690de(0x21c)],_0x57739f;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x270ff2}from'ckeditor5/src/core.js';import{FileRepository as _0x41a9c2}from'ckeditor5/src/upload.js';import _0x3034fa from'./uploadcareediting.js';import _0x15e640 from'./utils/uploadutils.js';import{getImageUrls as _0x4cd983}from'./utils/editingutils.js';export default class f extends _0x270ff2{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x41a9c2,_0x3034fa];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x27b1e1=this['editor'];if(!!!_0x27b1e1['config']['get']('uploadcare'))return;_0x27b1e1['plugins']['get'](_0x41a9c2)['createUploadAdapter']=_0x3ead95=>new A(_0x3ead95,_0x27b1e1),_0x27b1e1['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x253241,{imageElement:_0x2d7d7e,data:_0x3896b5})=>{_0x27b1e1['model']['change'](_0x2e13f4=>{_0x2e13f4['setAttribute']('uploadcareImageId',_0x3896b5['uploadcareImageId'],_0x2d7d7e);});});}}class A{constructor(_0x2235cd,_0x2cca82){this['loader']=_0x2235cd,this['editor']=_0x2cca82,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1f7818=this['editor']['config']['get']('uploadcare.pubkey'),_0x13db77=await this['loader']['file'];return _0x15e640['upload']({'file':_0x13db77,'publicKey':_0x1f7818,'signal':this['controller']['signal'],'onProgress':_0x470854=>{_0x470854&&_0x470854['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x470854['value']);}})['then'](async _0x151d7a=>{const {imageFallbackUrl:_0x27f812,imageSources:_0x9a88e4}=_0x4cd983(_0x151d7a['cdnUrl'],_0x151d7a['imageInfo']['width']);return{'uploadcareImageId':_0x151d7a['uuid'],'default':_0x27f812,'sources':_0x9a88e4};})['catch'](()=>{const _0x1f1088=t('Cannot\x20upload\x20file:')+('\x20'+_0x13db77['name']+'.');return Promise['reject'](_0x1f1088);});}['abort'](){this['controller']['abort']();}}
23
+ import{Plugin as _0x184e68}from'ckeditor5/src/core.js';import{FileRepository as _0x4927c3}from'ckeditor5/src/upload.js';import _0x254226 from'./uploadcareediting.js';import _0x37dd15 from'./utils/uploadutils.js';import{getImageUrls as _0x569b95}from'./utils/editingutils.js';export default class f extends _0x184e68{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4927c3,_0x254226];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x22d964=this['editor'];if(!!!_0x22d964['config']['get']('uploadcare'))return;_0x22d964['plugins']['get'](_0x4927c3)['createUploadAdapter']=_0x130d64=>new A(_0x130d64,_0x22d964),_0x22d964['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xb1f0cd,{imageElement:_0x46bd17,data:_0x5835f8})=>{_0x22d964['model']['change'](_0x195ccc=>{_0x195ccc['setAttribute']('uploadcareImageId',_0x5835f8['uploadcareImageId'],_0x46bd17);});});}}class A{constructor(_0x34575b,_0x4d5079){this['loader']=_0x34575b,this['editor']=_0x4d5079,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x67a58a=this['editor']['config']['get']('uploadcare.pubkey'),_0x5db1ca=await this['loader']['file'];return _0x37dd15['upload']({'file':_0x5db1ca,'publicKey':_0x67a58a,'signal':this['controller']['signal'],'onProgress':_0x1978c3=>{_0x1978c3&&_0x1978c3['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1978c3['value']);}})['then'](async _0x20427d=>{const {imageFallbackUrl:_0x241a1e,imageSources:_0x4d1078}=_0x569b95(_0x20427d['cdnUrl'],_0x20427d['imageInfo']['width']);return{'uploadcareImageId':_0x20427d['uuid'],'default':_0x241a1e,'sources':_0x4d1078};})['catch'](()=>{const _0x31c802=t('Cannot\x20upload\x20file:')+('\x20'+_0x5db1ca['name']+'.');return Promise['reject'](_0x31c802);});}['abort'](){this['controller']['abort']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{UploadcareSource as _0x2beac2}from'../uploadcareconfig.js';export function getTranslation(_0x1cb5db,_0x16b936,_0x7f8519){const t=_0x1cb5db['t'],_0xca830a=_0x1cb5db['t'];switch(_0x16b936){case _0x2beac2['Local']:return{'text':_0xca830a('Insert'===_0x7f8519?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xca830a('From\x20computer')};case _0x2beac2['URL']:return{'text':'Insert'===_0x7f8519?_0xca830a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xca830a('Via\x20URL')};case _0x2beac2['Dropbox']:return{'text':t('Insert'===_0x7f8519?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x2beac2['Facebook']:return{'text':t('Insert'===_0x7f8519?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x2beac2['GDrive']:return{'text':t('Insert'===_0x7f8519?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x2beac2['GPhotos']:return{'text':t('Insert'===_0x7f8519?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x2beac2['Instagram']:return{'text':t('Insert'===_0x7f8519?'Insert\x20with\x20Instagram':'Replace\x20with\x20Instagram'),'shortText':t('With\x20Instagram')};case _0x2beac2['OneDrive']:return{'text':t('Insert'===_0x7f8519?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x16b936;}}
23
+ import{UploadcareSource as _0x3b921c}from'../uploadcareconfig.js';export function getTranslation(_0x3d940e,_0x1edcdf,_0x5dc171){const t=_0x3d940e['t'],_0x10fced=_0x3d940e['t'];switch(_0x1edcdf){case _0x3b921c['Local']:return{'text':_0x10fced('Insert'===_0x5dc171?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x10fced('From\x20computer')};case _0x3b921c['URL']:return{'text':'Insert'===_0x5dc171?_0x10fced('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x10fced('Via\x20URL')};case _0x3b921c['Dropbox']:return{'text':t('Insert'===_0x5dc171?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x3b921c['Facebook']:return{'text':t('Insert'===_0x5dc171?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x3b921c['GDrive']:return{'text':t('Insert'===_0x5dc171?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x3b921c['GPhotos']:return{'text':t('Insert'===_0x5dc171?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x3b921c['Instagram']:return{'text':t('Insert'===_0x5dc171?'Insert\x20with\x20Instagram':'Replace\x20with\x20Instagram'),'shortText':t('With\x20Instagram')};case _0x3b921c['OneDrive']:return{'text':t('Insert'===_0x5dc171?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1edcdf;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3e6e20=_0x1bdc;function _0x1bdc(_0x34f7e3,_0x260717){var _0x30c6e9=_0x30c6();return _0x1bdc=function(_0x1bdc06,_0x136ea1){_0x1bdc06=_0x1bdc06-0x144;var _0x149fdd=_0x30c6e9[_0x1bdc06];return _0x149fdd;},_0x1bdc(_0x34f7e3,_0x260717);}function _0x30c6(){var _0x1fef24=['5WIGsmZ','focusCycler','3144JfjZxQ','createCollection','7097076oydSlv','div','3668QYJziI','1101682cFallC','getFocusableElement','7218378DcIZRO','2475384QteBPo','23311530ZlvBNh','2IBWpWn','fire','true','focusTracker','bindTemplate','815352RJSPAv','forwardCycle'];_0x30c6=function(){return _0x1fef24;};return _0x30c6();}(function(_0x2a24f8,_0x37786e){var _0x2a5886=_0x1bdc,_0x10d388=_0x2a24f8();while(!![]){try{var _0x484038=parseInt(_0x2a5886(0x153))/0x1*(parseInt(_0x2a5886(0x14e))/0x2)+-parseInt(_0x2a5886(0x145))/0x3+-parseInt(_0x2a5886(0x151))/0x4+-parseInt(_0x2a5886(0x147))/0x5*(parseInt(_0x2a5886(0x150))/0x6)+-parseInt(_0x2a5886(0x14d))/0x7*(-parseInt(_0x2a5886(0x149))/0x8)+-parseInt(_0x2a5886(0x14b))/0x9+parseInt(_0x2a5886(0x152))/0xa;if(_0x484038===_0x37786e)break;else _0x10d388['push'](_0x10d388['shift']());}catch(_0x3b580c){_0x10d388['push'](_0x10d388['shift']());}}}(_0x30c6,0xb8b1e));import{FocusTracker as _0x1719d4}from'ckeditor5/src/utils.js';import{View as _0x422f9f,FocusCycler as _0x3892f0}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x422f9f{constructor(_0x4af6cf){var _0x488136=_0x1bdc;super(_0x4af6cf),this[_0x488136(0x156)]=new _0x1719d4(),this[_0x488136(0x148)]=new _0x3892f0({'focusables':this[_0x488136(0x14a)](),'focusTracker':this[_0x488136(0x156)]});}[_0x3e6e20(0x14f)](){var _0x1f3d11=_0x3e6e20;return{'tag':_0x1f3d11(0x14c),'attributes':{'aria-hidden':_0x1f3d11(0x155),'tabindex':'0'},'on':{'focus':this[_0x1f3d11(0x144)]['to'](()=>{var _0x1a7403=_0x1f3d11;this[_0x1a7403(0x148)][_0x1a7403(0x154)](_0x1a7403(0x146));})}};}}
23
+ var _0x2cc9f2=_0x279e;(function(_0x35d7f2,_0x36653f){var _0xb8f0b9=_0x279e,_0x5020e1=_0x35d7f2();while(!![]){try{var _0x4528e8=parseInt(_0xb8f0b9(0x111))/0x1+parseInt(_0xb8f0b9(0x10f))/0x2+-parseInt(_0xb8f0b9(0x112))/0x3*(parseInt(_0xb8f0b9(0x118))/0x4)+parseInt(_0xb8f0b9(0x115))/0x5+parseInt(_0xb8f0b9(0x110))/0x6+parseInt(_0xb8f0b9(0x117))/0x7+parseInt(_0xb8f0b9(0x10d))/0x8*(-parseInt(_0xb8f0b9(0x119))/0x9);if(_0x4528e8===_0x36653f)break;else _0x5020e1['push'](_0x5020e1['shift']());}catch(_0x1b902b){_0x5020e1['push'](_0x5020e1['shift']());}}}(_0x7497,0xb0d5d));function _0x7497(){var _0x7a5404=['24ofZsnY','getFocusableElement','912510MySTGe','3252174MNQaiC','41893oNdDhp','28131tEQieA','true','createCollection','1423265kPwRje','focusCycler','6116747VZdlTF','496xfTNll','934758OmjIzs','fire','forwardCycle','div','focusTracker','bindTemplate'];_0x7497=function(){return _0x7a5404;};return _0x7497();}function _0x279e(_0x1877c9,_0x3b7d81){var _0x749752=_0x7497();return _0x279e=function(_0x279ee5,_0x5bc9fa){_0x279ee5=_0x279ee5-0x10b;var _0x284993=_0x749752[_0x279ee5];return _0x284993;},_0x279e(_0x1877c9,_0x3b7d81);}import{FocusTracker as _0x4ce974}from'ckeditor5/src/utils.js';import{View as _0x256591,FocusCycler as _0x53079b}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x256591{constructor(_0x4135c8){var _0x15a039=_0x279e;super(_0x4135c8),this[_0x15a039(0x10b)]=new _0x4ce974(),this[_0x15a039(0x116)]=new _0x53079b({'focusables':this[_0x15a039(0x114)](),'focusTracker':this[_0x15a039(0x10b)]});}[_0x2cc9f2(0x10e)](){var _0x4e2668=_0x2cc9f2;return{'tag':_0x4e2668(0x11c),'attributes':{'aria-hidden':_0x4e2668(0x113),'tabindex':'0'},'on':{'focus':this[_0x4e2668(0x10c)]['to'](()=>{var _0x36eb1a=_0x4e2668;this[_0x36eb1a(0x116)][_0x36eb1a(0x11a)](_0x36eb1a(0x11b));})}};}}