@ckeditor/ckeditor5-uploadcare 47.7.0 → 47.7.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/build/uploadcare.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +9 -9
  150. package/src/index.js +1 -1
  151. package/src/ui/uploadcarecontroller.js +2 -2
  152. package/src/ui/uploadcareformview.js +1 -1
  153. package/src/uploadcare.js +1 -1
  154. package/src/uploadcarecommand.js +1 -1
  155. package/src/uploadcareconfig.js +1 -1
  156. package/src/uploadcareediting.js +1 -1
  157. package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
  158. package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
  159. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
  160. package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
  161. package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
  162. package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
  163. package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
  164. package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
  165. package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
  166. package/src/uploadcareimageedit.js +1 -1
  167. package/src/uploadcareui.js +1 -1
  168. package/src/uploadcareuploadadapter.js +1 -1
  169. package/src/utils/common-translations.js +1 -1
  170. package/src/utils/dialogfocusmanagerview.js +1 -1
  171. package/src/utils/editingutils.js +1 -1
  172. package/src/utils/isancestor.js +1 -1
  173. package/src/utils/uploadutils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4474d0=_0x1189;(function(_0x2e4562,_0x2154bf){const _0x27d50f=_0x1189,_0x2b0d9a=_0x2e4562();while(!![]){try{const _0x56a255=-parseInt(_0x27d50f(0x11f))/0x1+-parseInt(_0x27d50f(0x12b))/0x2*(parseInt(_0x27d50f(0x11a))/0x3)+-parseInt(_0x27d50f(0x128))/0x4+parseInt(_0x27d50f(0x15a))/0x5*(-parseInt(_0x27d50f(0x145))/0x6)+parseInt(_0x27d50f(0x134))/0x7+parseInt(_0x27d50f(0x12f))/0x8+parseInt(_0x27d50f(0x123))/0x9;if(_0x56a255===_0x2154bf)break;else _0x2b0d9a['push'](_0x2b0d9a['shift']());}catch(_0x23cdf8){_0x2b0d9a['push'](_0x2b0d9a['shift']());}}}(_0x38b2,0x8d5f2));import{Plugin as _0x3af328}from'ckeditor5/src/core.js';import{Dialog as _0x7bc3a4}from'ckeditor5/src/ui.js';import{createElement as _0x6457da,global as _0x552ceb,uid as _0x266253}from'ckeditor5/src/utils.js';function _0x1189(_0x3bc7f6,_0x36162e){const _0x38b25c=_0x38b2();return _0x1189=function(_0x118926,_0x4d10bf){_0x118926=_0x118926-0x108;let _0x223766=_0x38b25c[_0x118926];return _0x223766;},_0x1189(_0x3bc7f6,_0x36162e);}import{UploadcareCommand as _0x59d333}from'./uploadcarecommand.js';function _0x38b2(){const _0xdd143e=['getAttribute','uploader-','config','href','uc-upload-ctx-provider','uploadcare.uploader','_initConversion','editor','selection','contentLanguage','document','2790yPNHFo','\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','uploadcareImageReplace','#uc-icon-arrow-down','add','render','UploadcareEditing','_initCtx','afterInit','data-uc-image-id','_initImageProcessingIndicator','destroy','cleanupImage','PictureEditing','querySelector','ucContextId','configElement','isOfficialPlugin','editing','map','uploadcare','10405NseEbc','body','_configElement','iconHrefResolver','true','extend','appendChild','commands','imageBlock','_initConfig','_ctxElement','insertImage','requires','ctxElement','once','conversion','downcast','listenTo','pluginName','for','3iYQMWs','getSelectedElement','execute','join','attributeToAttribute','141849bPqzvu','replaceImageSource','closeMax','init','21590640fIFLaW','fromCharCode','isRegistered','_initSchema','locale','3464444RFFZsP','remove','uc-config','2256764eSwIll','upcast','isPremiumPlugin','model','3983512rhTlxV','schema','get','uploadcare.pubkey','removeAttribute','5503162lohMZy','input[uploadcare-file-input]','view','elementToAttribute','uploadcareImageId','imageInline'];_0x38b2=function(){return _0xdd143e;};return _0x38b2();}import{UploadcareUploadAdapter as _0x4e9a67}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3b6bb7}from'./utils/editingutils.js';export class UploadcareEditing extends _0x3af328{[_0x4474d0(0x108)]=null;[_0x4474d0(0x110)]=null;static get[_0x4474d0(0x118)](){const _0x2acd4c=_0x4474d0;return _0x2acd4c(0x14b);}static get[_0x4474d0(0x112)](){const _0x4b7563=_0x4474d0;return[_0x4b7563(0x152),_0x4e9a67,_0x7bc3a4];}static get[_0x4474d0(0x156)](){return!0x0;}static get[_0x4474d0(0x12d)](){return!0x0;}[_0x4474d0(0x154)];get[_0x4474d0(0x155)](){const _0xdd5281=_0x4474d0;return this[_0xdd5281(0x108)];}get[_0x4474d0(0x113)](){const _0x3c4752=_0x4474d0;return this[_0x3c4752(0x110)];}constructor(_0x171bb8){const _0xc6ac5b=_0x4474d0;super(_0x171bb8),this[_0xc6ac5b(0x154)]=_0x266253();}[_0x4474d0(0x122)](){const _0x1101fe=_0x4474d0,_0x31884b=this[_0x1101fe(0x141)];_0x31884b[_0x1101fe(0x10d)][_0x1101fe(0x149)](_0x1101fe(0x159),new _0x59d333(_0x31884b));}[_0x4474d0(0x14d)](){const _0x20ea09=_0x4474d0;this[_0x20ea09(0x126)](),this[_0x20ea09(0x140)](),this[_0x20ea09(0x10f)](),this[_0x20ea09(0x14c)](),this[_0x20ea09(0x14f)](),this[_0x20ea09(0x117)](this[_0x20ea09(0x141)],_0x20ea09(0x150),()=>{const _0x5c291d=_0x20ea09;this[_0x5c291d(0x108)]&&(this[_0x5c291d(0x108)][_0x5c291d(0x129)](),this[_0x5c291d(0x108)]=null),this[_0x5c291d(0x110)]&&(this[_0x5c291d(0x110)][_0x5c291d(0x129)](),this[_0x5c291d(0x110)]=null);const _0x331bf0=_0x552ceb[_0x5c291d(0x144)][_0x5c291d(0x153)](_0x5c291d(0x135));_0x331bf0&&_0x331bf0[_0x5c291d(0x129)]();}),async function(_0x5ed312){const _0x561827=_0x371a4d([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x163f97=0x535f8c3a,_0x50de36=0x53580b52^_0x163f97,_0x2e6b18=window[_0x371a4d([0x44,0x61,0x74,0x65])][_0x371a4d([0x6e,0x6f,0x77])](),_0x332f31=_0x5ed312[_0x371a4d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e73e2=new window[(_0x371a4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xff10e9=>{_0x332f31[_0x371a4d([0x6f,0x6e,0x63,0x65])](_0x371a4d([0x72,0x65,0x61,0x64,0x79]),_0xff10e9);}),_0x269866={[_0x371a4d([0x6b,0x74,0x79])]:_0x371a4d([0x45,0x43]),[_0x371a4d([0x75,0x73,0x65])]:_0x371a4d([0x73,0x69,0x67]),[_0x371a4d([0x63,0x72,0x76])]:_0x371a4d([0x50,0x2d,0x32,0x35,0x36]),[_0x371a4d([0x78])]:_0x371a4d([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]),[_0x371a4d([0x79])]:_0x371a4d([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]),[_0x371a4d([0x61,0x6c,0x67])]:_0x371a4d([0x45,0x53,0x32,0x35,0x36])},_0x3222c0=_0x332f31[_0x371a4d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x371a4d([0x67,0x65,0x74])](_0x371a4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x18f81a(){let _0x193cdc,_0x107d23=null,_0x5bfb3a=null;try{if(_0x3222c0==_0x371a4d([0x47,0x50,0x4c]))return _0x371a4d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x193cdc=_0x4073f8(),!_0x193cdc)return _0x371a4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x193cdc[_0x371a4d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5bfb3a=_0x45dcf6(_0x193cdc[_0x371a4d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x193cdc[_0x371a4d([0x6a,0x74,0x69])])),await _0x40a147()?_0xdd9a08()?_0x5b1080()?_0x371a4d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x284f91()?(_0x193cdc[_0x371a4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x371a4d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x107d23=_0x885e68(_0x371a4d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ee839()):_0x371a4d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x371a4d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x371a4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x371a4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5b1080(){const _0x141994=[_0x371a4d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x371a4d([0x74,0x72,0x69,0x61,0x6c])][_0x371a4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x193cdc[_0x371a4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2e6b18/0x3e8:0xe10*_0x50de36;return _0x193cdc[_0x371a4d([0x65,0x78,0x70])]<_0x141994;}function _0xdd9a08(){const _0x31d6cf=_0x193cdc[_0x371a4d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x31d6cf&&(!!_0x31d6cf[_0x371a4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x371a4d([0x2a]))||!!_0x31d6cf[_0x371a4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x371a4d([0x55,0x50,0x4c,0x43])));}function _0x284f91(){const _0x92c3ad=_0x1189,_0x1aa1fc=_0x193cdc[_0x371a4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1aa1fc||0x0==_0x1aa1fc[_0x371a4d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x37c765}=new URL(window[_0x371a4d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x92c3ad(0x13d)]);if(_0x1aa1fc[_0x371a4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37c765))return!0x0;const _0x3f5da6=_0x37c765[_0x371a4d([0x73,0x70,0x6c,0x69,0x74])](_0x371a4d([0x2e]));return _0x1aa1fc[_0x371a4d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x30fe7c=>_0x30fe7c[_0x371a4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x371a4d([0x2a])))[_0x371a4d([0x6d,0x61,0x70])](_0x168f5b=>_0x168f5b[_0x371a4d([0x73,0x70,0x6c,0x69,0x74])](_0x371a4d([0x2e])))[_0x371a4d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2eee2e=>_0x2eee2e[_0x371a4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3f5da6[_0x371a4d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x371a4d([0x6d,0x61,0x70])](_0x430135=>Array(_0x3f5da6[_0x371a4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x430135[_0x371a4d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x371a4d([0x66,0x69,0x6c,0x6c])](_0x430135[0x0]===_0x371a4d([0x2a])?_0x371a4d([0x2a]):'')[_0x371a4d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x430135))[_0x371a4d([0x73,0x6f,0x6d,0x65])](_0x310f37=>_0x3f5da6[_0x371a4d([0x65,0x76,0x65,0x72,0x79])]((_0x2a76c5,_0x458eb8)=>_0x310f37[_0x458eb8]===_0x2a76c5||_0x310f37[_0x458eb8]===_0x371a4d([0x2a])));}function _0x5ee839(){return _0x107d23&&_0x5bfb3a?new window[(_0x371a4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x93f399,_0x4c825d)=>{_0x107d23[_0x371a4d([0x74,0x68,0x65,0x6e])](_0x93f399,_0x4c825d),_0x5bfb3a[_0x371a4d([0x74,0x68,0x65,0x6e])](_0x39ec99=>{_0x39ec99!=_0x371a4d([0x56,0x61,0x6c,0x69,0x64])&&_0x93f399(_0x39ec99);},_0x4c825d);}):_0x107d23||_0x5bfb3a||_0x371a4d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x45dcf6(_0x165e39,_0x56416c){return new window[(_0x371a4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x196af5=>{if(_0xb3997a())return _0x196af5(_0x371a4d([0x56,0x61,0x6c,0x69,0x64]));_0x1db8ac(),_0x332f31[_0x371a4d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x371a4d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5eeebf=!0x1;const _0x3ab8db=_0x266253();function _0x2aa77b(_0x426232){return!!_0x426232&&(typeof _0x426232===_0x371a4d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x426232===_0x371a4d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x426232[_0x371a4d([0x74,0x68,0x65,0x6e])]===_0x371a4d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x426232[_0x371a4d([0x63,0x61,0x74,0x63,0x68])]===_0x371a4d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x430207(_0x4ebd3b){_0x13d901(_0x4ebd3b)[_0x371a4d([0x74,0x68,0x65,0x6e])](_0x1033c9=>{if(!_0x1033c9||_0x1033c9[_0x371a4d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x371a4d([0x6f,0x6b]))return _0x371a4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x15cd29(_0x519c9c(_0x3ab8db+_0x56416c))!=_0x1033c9[_0x371a4d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x371a4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x371a4d([0x56,0x61,0x6c,0x69,0x64]);})[_0x371a4d([0x74,0x68,0x65,0x6e])](_0xaf5c92=>(_0x32a01a(),_0xaf5c92),()=>{const _0xa19c5c=_0x4bf145();return null==_0xa19c5c?(_0x32a01a(),_0x371a4d([0x56,0x61,0x6c,0x69,0x64])):_0x371a4d(_0x2e6b18-_0xa19c5c>(0x7753083a^_0x163f97)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x371a4d([0x74,0x68,0x65,0x6e])](_0x196af5)[_0x371a4d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x196af5(_0x371a4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x47ffb3=0x536962ba^_0x163f97;function _0x32a01a(){const _0x241ee5=_0x371a4d([0x6c,0x6c,0x63,0x74,0x2d])+_0x15cd29(_0x519c9c(_0x165e39)),_0x49fbf4=_0x20179f(_0x15cd29(window[_0x371a4d([0x4d,0x61,0x74,0x68])][_0x371a4d([0x63,0x65,0x69,0x6c])](_0x2e6b18/_0x47ffb3)));window[_0x371a4d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x371a4d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x241ee5,_0x49fbf4);}function _0x4bf145(){const _0x409860=_0x371a4d([0x6c,0x6c,0x63,0x74,0x2d])+_0x15cd29(_0x519c9c(_0x165e39)),_0x5551c8=window[_0x371a4d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x371a4d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x409860);return _0x5551c8?window[_0x371a4d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20179f(_0x5551c8),0x10)*_0x47ffb3:null;}function _0x13d901(_0x3b7032){return new window[(_0x371a4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x107053,_0x850726)=>{_0x3b7032[_0x371a4d([0x74,0x68,0x65,0x6e])](_0x107053,_0x850726),window[_0x371a4d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x850726,0x535e58fa^_0x163f97);});}}_0x332f31[_0x371a4d([0x6f,0x6e])](_0x371a4d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x26903f,_0x536f30)=>{if(_0x536f30[0x0]!=_0x165e39)return _0x196af5(_0x371a4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x536f30[0x1]={..._0x536f30[0x1],[_0x371a4d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ab8db};},{[_0x371a4d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x371a4d([0x68,0x69,0x67,0x68])}),_0x332f31[_0x371a4d([0x6f,0x6e])](_0x371a4d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x557d64=>{_0x2aa77b(_0x557d64[_0x371a4d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5eeebf=!0x0,_0x430207(_0x557d64[_0x371a4d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x371a4d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x371a4d([0x6c,0x6f,0x77])}),_0x3e73e2[_0x371a4d([0x74,0x68,0x65,0x6e])](()=>{_0x5eeebf||_0x196af5(_0x371a4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xb3997a(){return _0x332f31[_0x371a4d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x371a4d([0x76,0x69,0x65,0x77])][_0x371a4d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x371a4d([0x61,0x75,0x74,0x6f]);}function _0x1db8ac(){_0x332f31[_0x371a4d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x371a4d([0x76,0x69,0x65,0x77])][_0x371a4d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x371a4d([0x61,0x75,0x74,0x6f]);}}function _0x885e68(_0x13a42e){const _0x6a6a60=[new window[(_0x371a4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x581a8e=>setTimeout(_0x581a8e,0x5356b2f6^_0x163f97)),_0x3e73e2[_0x371a4d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x371a4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbcd6f7=>{let _0x110589=0x0;_0x332f31[_0x371a4d([0x6d,0x6f,0x64,0x65,0x6c])][_0x371a4d([0x6f,0x6e])](_0x371a4d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5f55a0,_0x18ab2a)=>{_0x18ab2a[0x0][_0x371a4d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x110589++,_0x110589==(0x535f89d2^_0x163f97)&&(_0xbcd6f7(),_0x5f55a0[_0x371a4d([0x6f,0x66,0x66])]());});}))];return window[_0x371a4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x371a4d([0x72,0x61,0x63,0x65])](_0x6a6a60)[_0x371a4d([0x74,0x68,0x65,0x6e])](()=>_0x13a42e);}async function _0x2a0375(){await _0x3e73e2,_0x332f31[_0x371a4d([0x6d,0x6f,0x64,0x65,0x6c])][_0x371a4d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1ecf96,_0x332f31[_0x371a4d([0x6d,0x6f,0x64,0x65,0x6c])][_0x371a4d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1ecf96,_0x332f31[_0x371a4d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x371a4d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1ffcaf(_0x4ef40c){const _0x41ea1a=_0xfb095b();_0x332f31[_0x41ea1a]=_0x371a4d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ef40c,_0x4ef40c!=_0x371a4d([0x56,0x61,0x6c,0x69,0x64])&&_0x2a0375();}function _0xfb095b(){const _0x4e736a=window[_0x371a4d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x371a4d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x371a4d([0x6e,0x6f,0x77])]())[_0x371a4d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x371a4d([0x2e]),'');let _0x16710e=_0x371a4d([0x68]);for(let _0x239965=0x0;_0x239965<_0x4e736a[_0x371a4d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x239965+=0x2){let _0xf31a60=window[_0x371a4d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e736a[_0x371a4d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x239965,_0x239965+0x2));_0xf31a60>=_0x561827[_0x371a4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xf31a60-=_0x561827[_0x371a4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x16710e+=_0x561827[_0xf31a60];}return _0x16710e;}function _0x4073f8(){const _0x313703=_0x3222c0[_0x371a4d([0x73,0x70,0x6c,0x69,0x74])](_0x371a4d([0x2e]));if(0x3!=_0x313703[_0x371a4d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x42f0d9(_0x313703[0x1]);function _0x42f0d9(_0x32f233){const _0x1a674d=_0x278812(_0x32f233);return _0x1a674d&&_0x39f40d()?_0x1a674d:null;function _0x39f40d(){const _0x116bf6=_0x1a674d[_0x371a4d([0x6a,0x74,0x69])],_0x549404=window[_0x371a4d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x116bf6[_0x371a4d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x116bf6[_0x371a4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e4b81={..._0x1a674d,[_0x371a4d([0x6a,0x74,0x69])]:_0x116bf6[_0x371a4d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x116bf6[_0x371a4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e4b81[_0x371a4d([0x76,0x63])],_0x519c9c(_0x4e4b81)==_0x549404;}}}async function _0x40a147(){let _0xc9e454=!0x0;try{const _0x4ce23d=_0x3222c0[_0x371a4d([0x73,0x70,0x6c,0x69,0x74])](_0x371a4d([0x2e])),[_0x11f574,_0x399996,_0x53ee7c]=_0x4ce23d;return _0x5af2f2(_0x11f574),await _0x56e6b5(_0x11f574,_0x399996,_0x53ee7c),_0xc9e454;}catch{return!0x1;}function _0x5af2f2(_0x5e6d54){const _0x5937f0=_0x278812(_0x5e6d54);_0x5937f0&&_0x5937f0[_0x371a4d([0x61,0x6c,0x67])]==_0x371a4d([0x45,0x53,0x32,0x35,0x36])||(_0xc9e454=!0x1);}async function _0x56e6b5(_0x45fb92,_0x20bf34,_0x440f19){const _0x2b2824=window[_0x371a4d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x371a4d([0x66,0x72,0x6f,0x6d])](_0x1a54b4(_0x440f19),_0x383d64=>_0x383d64[_0x371a4d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x498615=new window[(_0x371a4d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x371a4d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x45fb92+_0x371a4d([0x2e])+_0x20bf34),_0x2273aa=window[_0x371a4d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x371a4d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2273aa)return;const _0x1006ed=await _0x2273aa[_0x371a4d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x371a4d([0x6a,0x77,0x6b]),_0x269866,{[_0x371a4d([0x6e,0x61,0x6d,0x65])]:_0x371a4d([0x45,0x43,0x44,0x53,0x41]),[_0x371a4d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x371a4d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x371a4d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2273aa[_0x371a4d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x371a4d([0x6e,0x61,0x6d,0x65])]:_0x371a4d([0x45,0x43,0x44,0x53,0x41]),[_0x371a4d([0x68,0x61,0x73,0x68])]:{[_0x371a4d([0x6e,0x61,0x6d,0x65])]:_0x371a4d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1006ed,_0x2b2824,_0x498615)||(_0xc9e454=!0x1);}}function _0x278812(_0x488931){return _0x488931[_0x371a4d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x371a4d([0x65,0x79]))?JSON[_0x371a4d([0x70,0x61,0x72,0x73,0x65])](_0x1a54b4(_0x488931)):null;}function _0x1a54b4(_0x4d7b6e){return window[_0x371a4d([0x61,0x74,0x6f,0x62])](_0x4d7b6e[_0x371a4d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x371a4d([0x2b]))[_0x371a4d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x371a4d([0x2f])));}function _0x519c9c(_0x564a36){let _0x246024=0x1505;function _0x24b90d(_0x288809){for(let _0x1a888f=0x0;_0x1a888f<_0x288809[_0x371a4d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a888f++){const _0x4cc94c=_0x288809[_0x371a4d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1a888f);_0x246024=(_0x246024<<0x5)+_0x246024+_0x4cc94c,_0x246024&=_0x246024;}}function _0x159d76(_0x26b876){Array[_0x371a4d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x26b876)?_0x26b876[_0x371a4d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x159d76):_0x26b876&&typeof _0x26b876==_0x371a4d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x371a4d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x26b876)[_0x371a4d([0x73,0x6f,0x72,0x74])]()[_0x371a4d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x471786,_0x3a7516])=>{_0x24b90d(_0x471786),_0x159d76(_0x3a7516);}):_0x24b90d(window[_0x371a4d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x26b876));}return _0x159d76(_0x564a36),_0x246024>>>0x0;}function _0x15cd29(_0x366cf4){return _0x366cf4[_0x371a4d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x371a4d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x371a4d([0x30]));}function _0x20179f(_0x1420bf){return _0x1420bf[_0x371a4d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x371a4d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x371a4d([0x6a,0x6f,0x69,0x6e])]('');}function _0x1ecf96(){}function _0x371a4d(_0x313eb6){const _0x5f3099=_0x1189;return _0x313eb6[_0x5f3099(0x158)](_0xfe4967=>String[_0x5f3099(0x124)](_0xfe4967))[_0x5f3099(0x11d)]('');}_0x1ffcaf(await _0x18f81a());}(this);}[_0x4474d0(0x126)](){const _0x3b8227=_0x4474d0,_0x3c1f5d=this[_0x3b8227(0x141)][_0x3b8227(0x12e)][_0x3b8227(0x130)];_0x3c1f5d[_0x3b8227(0x125)](_0x3b8227(0x10e))&&_0x3c1f5d[_0x3b8227(0x10b)](_0x3b8227(0x10e),{'allowAttributes':[_0x3b8227(0x138)]}),_0x3c1f5d[_0x3b8227(0x125)](_0x3b8227(0x139))&&_0x3c1f5d[_0x3b8227(0x10b)](_0x3b8227(0x139),{'allowAttributes':[_0x3b8227(0x138)]});}[_0x4474d0(0x140)](){const _0x4a7dfc=_0x4474d0,_0x922fb9=this[_0x4a7dfc(0x141)];_0x922fb9[_0x4a7dfc(0x115)][_0x4a7dfc(0x119)](_0x4a7dfc(0x116))[_0x4a7dfc(0x11e)]({'model':_0x4a7dfc(0x138),'view':_0x4a7dfc(0x14e)}),_0x922fb9[_0x4a7dfc(0x115)][_0x4a7dfc(0x119)](_0x4a7dfc(0x12c))[_0x4a7dfc(0x137)]({'model':{'key':_0x4a7dfc(0x138),'value':_0x99fd20=>_0x99fd20[_0x4a7dfc(0x13a)](_0x4a7dfc(0x14e))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x52500b=_0x922fb9[_0x4a7dfc(0x10d)][_0x4a7dfc(0x131)](_0x4a7dfc(0x120));_0x52500b&&this[_0x4a7dfc(0x117)](_0x52500b,_0x4a7dfc(0x151),(_0x32698e,[_0x272f81,_0x33529f])=>{const _0x2bb1f9=_0x4a7dfc;_0x272f81[_0x2bb1f9(0x133)](_0x2bb1f9(0x138),_0x33529f);});}[_0x4474d0(0x10f)](){const _0x532919=_0x4474d0,_0x2cd606=this[_0x532919(0x141)][_0x532919(0x13c)][_0x532919(0x131)](_0x532919(0x13f))||{},_0x16eda8=this[_0x532919(0x141)][_0x532919(0x13c)][_0x532919(0x131)](_0x532919(0x132))||'';this[_0x532919(0x108)]=_0x6457da(_0x552ceb[_0x532919(0x144)],_0x532919(0x12a),{..._0x2cd606,'pubkey':_0x16eda8,'ctx-name':_0x532919(0x13b)+this[_0x532919(0x154)],'sourceList':'','imgOnly':_0x532919(0x10a),'removeCopyright':_0x532919(0x10a),'localeName':this[_0x532919(0x141)][_0x532919(0x127)][_0x532919(0x143)],'externalSourcesEmbedCss':_0x532919(0x146)}),this[_0x532919(0x108)][_0x532919(0x109)]=_0x3dda2c=>{const _0x2ab20b=_0x532919;if(_0x2ab20b(0x121)==_0x3dda2c)return _0x2ab20b(0x148);},_0x552ceb[_0x532919(0x144)][_0x532919(0x15b)][_0x532919(0x10c)](this[_0x532919(0x108)]);}[_0x4474d0(0x14c)](){const _0x40e9d0=_0x4474d0;this[_0x40e9d0(0x110)]=_0x6457da(_0x552ceb[_0x40e9d0(0x144)],_0x40e9d0(0x13e),{'ctx-name':_0x40e9d0(0x13b)+this[_0x40e9d0(0x154)]}),_0x552ceb[_0x40e9d0(0x144)][_0x40e9d0(0x15b)][_0x40e9d0(0x10c)](this[_0x40e9d0(0x110)]);}[_0x4474d0(0x14f)](){const _0x173bc4=_0x4474d0,_0x3d9733=this[_0x173bc4(0x141)][_0x173bc4(0x10d)][_0x173bc4(0x131)](_0x173bc4(0x111));_0x3d9733&&this[_0x173bc4(0x117)](_0x3d9733,_0x173bc4(0x11c),()=>{const _0x4d536d=_0x173bc4,_0xac9693=this[_0x4d536d(0x141)][_0x4d536d(0x12e)][_0x4d536d(0x144)][_0x4d536d(0x142)][_0x4d536d(0x11b)]();_0xac9693&&_0xac9693[_0x4d536d(0x13a)](_0x4d536d(0x138))&&this[_0x4d536d(0x141)][_0x4d536d(0x157)][_0x4d536d(0x136)][_0x4d536d(0x114)](_0x4d536d(0x14a),()=>{const _0x51b49b=_0x4d536d;_0x3b6bb7(this[_0x51b49b(0x141)],_0xac9693);});});const _0x5e2c94=this[_0x173bc4(0x141)][_0x173bc4(0x10d)][_0x173bc4(0x131)](_0x173bc4(0x147));_0x5e2c94&&this[_0x173bc4(0x117)](_0x5e2c94,_0x173bc4(0x11c),()=>{const _0x2fd004=_0x173bc4,_0x47242b=this[_0x2fd004(0x141)][_0x2fd004(0x12e)][_0x2fd004(0x144)][_0x2fd004(0x142)][_0x2fd004(0x11b)]();_0x47242b&&_0x47242b[_0x2fd004(0x13a)](_0x2fd004(0x138))&&this[_0x2fd004(0x141)][_0x2fd004(0x157)][_0x2fd004(0x136)][_0x2fd004(0x114)](_0x2fd004(0x14a),()=>{const _0x3f3fa6=_0x2fd004;_0x3b6bb7(this[_0x3f3fa6(0x141)],_0x47242b);});});}}
23
+ function _0x1427(_0x413e3d,_0x3aa0ee){const _0x998c72=_0x998c();return _0x1427=function(_0x14271e,_0x7b9eb1){_0x14271e=_0x14271e-0xe7;let _0x377db3=_0x998c72[_0x14271e];return _0x377db3;},_0x1427(_0x413e3d,_0x3aa0ee);}const _0x56a764=_0x1427;(function(_0x468aaf,_0x3d33b2){const _0x5e9772=_0x1427,_0xfad81d=_0x468aaf();while(!![]){try{const _0x2eeefd=-parseInt(_0x5e9772(0xed))/0x1+parseInt(_0x5e9772(0xee))/0x2+parseInt(_0x5e9772(0x118))/0x3*(parseInt(_0x5e9772(0x132))/0x4)+-parseInt(_0x5e9772(0x105))/0x5*(-parseInt(_0x5e9772(0x11d))/0x6)+parseInt(_0x5e9772(0xf5))/0x7+-parseInt(_0x5e9772(0x103))/0x8+-parseInt(_0x5e9772(0x106))/0x9;if(_0x2eeefd===_0x3d33b2)break;else _0xfad81d['push'](_0xfad81d['shift']());}catch(_0x20b8c9){_0xfad81d['push'](_0xfad81d['shift']());}}}(_0x998c,0xc21bc));import{Plugin as _0x480bd5}from'ckeditor5/src/core.js';import{Dialog as _0x370306}from'ckeditor5/src/ui.js';import{createElement as _0x464ba8,global as _0x123f63,uid as _0x58a0c1}from'ckeditor5/src/utils.js';function _0x998c(){const _0x22d94f=['href','fromCharCode','isOfficialPlugin','selection','conversion','imageInline','model','ctxElement','map','editor','_initConfig','data-uc-image-id','document','60jYeDvV','destroy','init','_configElement','once','510ZjVNMX','insertImage','uploadcare.pubkey','\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','commands','ucContextId','upcast','getSelectedElement','body','_initCtx','requires','for','_initImageProcessingIndicator','uc-config','pluginName','view','remove','locale','isRegistered','iconHrefResolver','true','97380FmNwkX','UploadcareEditing','uploadcareImageReplace','uploadcare.uploader','getAttribute','closeMax','join','cleanupImage','input[uploadcare-file-input]','uc-upload-ctx-provider','listenTo','configElement','isPremiumPlugin','#uc-icon-arrow-down','removeAttribute','1496684jOKTFR','232336GMvynf','editing','execute','_initConversion','attributeToAttribute','PictureEditing','schema','5310564VujZzL','downcast','afterInit','uploader-','contentLanguage','appendChild','render','uploadcare','elementToAttribute','replaceImageSource','imageBlock','extend','add','uploadcareImageId','713952iFXCed','get','77005bAdryy','2608281RysONk','_ctxElement','config','querySelector','_initSchema'];_0x998c=function(){return _0x22d94f;};return _0x998c();}import{UploadcareCommand as _0x20c48c}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2661db}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x28580b}from'./utils/editingutils.js';export class UploadcareEditing extends _0x480bd5{[_0x56a764(0x11b)]=null;[_0x56a764(0x107)]=null;static get[_0x56a764(0x12b)](){const _0x2b82fb=_0x56a764;return _0x2b82fb(0x133);}static get[_0x56a764(0x127)](){const _0x277c67=_0x56a764;return[_0x277c67(0xf3),_0x2661db,_0x370306];}static get[_0x56a764(0x10d)](){return!0x0;}static get[_0x56a764(0xea)](){return!0x0;}[_0x56a764(0x122)];get[_0x56a764(0xe9)](){const _0x2eb256=_0x56a764;return this[_0x2eb256(0x11b)];}get[_0x56a764(0x112)](){const _0x2c0fa2=_0x56a764;return this[_0x2c0fa2(0x107)];}constructor(_0x2cbd5a){const _0x254950=_0x56a764;super(_0x2cbd5a),this[_0x254950(0x122)]=_0x58a0c1();}[_0x56a764(0x11a)](){const _0x433f62=_0x56a764,_0x21ed93=this[_0x433f62(0x114)];_0x21ed93[_0x433f62(0x121)][_0x433f62(0x101)](_0x433f62(0xfc),new _0x20c48c(_0x21ed93));}[_0x56a764(0xf7)](){const _0x4c1fdd=_0x56a764;this[_0x4c1fdd(0x10a)](),this[_0x4c1fdd(0xf1)](),this[_0x4c1fdd(0x115)](),this[_0x4c1fdd(0x126)](),this[_0x4c1fdd(0x129)](),this[_0x4c1fdd(0xe8)](this[_0x4c1fdd(0x114)],_0x4c1fdd(0x119),()=>{const _0x5eee20=_0x4c1fdd;this[_0x5eee20(0x11b)]&&(this[_0x5eee20(0x11b)][_0x5eee20(0x12d)](),this[_0x5eee20(0x11b)]=null),this[_0x5eee20(0x107)]&&(this[_0x5eee20(0x107)][_0x5eee20(0x12d)](),this[_0x5eee20(0x107)]=null);const _0x34854b=_0x123f63[_0x5eee20(0x117)][_0x5eee20(0x109)](_0x5eee20(0x13a));_0x34854b&&_0x34854b[_0x5eee20(0x12d)]();}),async function(_0x10f21a){const _0x3672e6=_0xd5ebb([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x536500=0x535f8c3a,_0x5d56d9=0x53580bf2^_0x536500,_0x50d5ca=window[_0xd5ebb([0x44,0x61,0x74,0x65])][_0xd5ebb([0x6e,0x6f,0x77])](),_0x1fdbde=_0x10f21a[_0xd5ebb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x43728a=new window[(_0xd5ebb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa9b677=>{_0x1fdbde[_0xd5ebb([0x6f,0x6e,0x63,0x65])](_0xd5ebb([0x72,0x65,0x61,0x64,0x79]),_0xa9b677);}),_0x4e7629={[_0xd5ebb([0x6b,0x74,0x79])]:_0xd5ebb([0x45,0x43]),[_0xd5ebb([0x75,0x73,0x65])]:_0xd5ebb([0x73,0x69,0x67]),[_0xd5ebb([0x63,0x72,0x76])]:_0xd5ebb([0x50,0x2d,0x32,0x35,0x36]),[_0xd5ebb([0x78])]:_0xd5ebb([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]),[_0xd5ebb([0x79])]:_0xd5ebb([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]),[_0xd5ebb([0x61,0x6c,0x67])]:_0xd5ebb([0x45,0x53,0x32,0x35,0x36])},_0x2fd222=_0x1fdbde[_0xd5ebb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd5ebb([0x67,0x65,0x74])](_0xd5ebb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x12996d(){let _0x13d09e,_0x55d8b4=null,_0x1e8284=null;try{if(_0x2fd222==_0xd5ebb([0x47,0x50,0x4c]))return _0xd5ebb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x13d09e=_0x593643(),!_0x13d09e)return _0xd5ebb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x13d09e[_0xd5ebb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e8284=_0x26454c(_0x13d09e[_0xd5ebb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x13d09e[_0xd5ebb([0x6a,0x74,0x69])])),await _0x2f91ff()?_0x5df1d0()?_0x113ec6()?_0xd5ebb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1235e5()?(_0x13d09e[_0xd5ebb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd5ebb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x55d8b4=_0x245d3c(_0xd5ebb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x190c3d()):_0xd5ebb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd5ebb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd5ebb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xd5ebb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x113ec6(){const _0x421175=[_0xd5ebb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd5ebb([0x74,0x72,0x69,0x61,0x6c])][_0xd5ebb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13d09e[_0xd5ebb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x50d5ca/0x3e8:0xe10*_0x5d56d9;return _0x13d09e[_0xd5ebb([0x65,0x78,0x70])]<_0x421175;}function _0x5df1d0(){const _0xede85b=_0x13d09e[_0xd5ebb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xede85b&&(!!_0xede85b[_0xd5ebb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd5ebb([0x2a]))||!!_0xede85b[_0xd5ebb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd5ebb([0x55,0x50,0x4c,0x43])));}function _0x1235e5(){const _0x5a5d27=_0x1427,_0x5d3965=_0x13d09e[_0xd5ebb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5d3965||0x0==_0x5d3965[_0xd5ebb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x32fc7f}=new URL(window[_0xd5ebb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5a5d27(0x10b)]);if(_0x5d3965[_0xd5ebb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32fc7f))return!0x0;const _0xf488b8=_0x32fc7f[_0xd5ebb([0x73,0x70,0x6c,0x69,0x74])](_0xd5ebb([0x2e]));return _0x5d3965[_0xd5ebb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x23db8c=>_0x23db8c[_0xd5ebb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd5ebb([0x2a])))[_0xd5ebb([0x6d,0x61,0x70])](_0x3170e8=>_0x3170e8[_0xd5ebb([0x73,0x70,0x6c,0x69,0x74])](_0xd5ebb([0x2e])))[_0xd5ebb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34821b=>_0x34821b[_0xd5ebb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xf488b8[_0xd5ebb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd5ebb([0x6d,0x61,0x70])](_0x3a35c2=>Array(_0xf488b8[_0xd5ebb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3a35c2[_0xd5ebb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd5ebb([0x66,0x69,0x6c,0x6c])](_0x3a35c2[0x0]===_0xd5ebb([0x2a])?_0xd5ebb([0x2a]):'')[_0xd5ebb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3a35c2))[_0xd5ebb([0x73,0x6f,0x6d,0x65])](_0x2a5f74=>_0xf488b8[_0xd5ebb([0x65,0x76,0x65,0x72,0x79])]((_0x19ab18,_0x4fb5f1)=>_0x2a5f74[_0x4fb5f1]===_0x19ab18||_0x2a5f74[_0x4fb5f1]===_0xd5ebb([0x2a])));}function _0x190c3d(){return _0x55d8b4&&_0x1e8284?new window[(_0xd5ebb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46321e,_0x380e06)=>{_0x55d8b4[_0xd5ebb([0x74,0x68,0x65,0x6e])](_0x46321e,_0x380e06),_0x1e8284[_0xd5ebb([0x74,0x68,0x65,0x6e])](_0x4f9946=>{_0x4f9946!=_0xd5ebb([0x56,0x61,0x6c,0x69,0x64])&&_0x46321e(_0x4f9946);},_0x380e06);}):_0x55d8b4||_0x1e8284||_0xd5ebb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x26454c(_0x2db32e,_0x12fd74){return new window[(_0xd5ebb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbacd55=>{if(_0x1adb76())return _0xbacd55(_0xd5ebb([0x56,0x61,0x6c,0x69,0x64]));_0x443025(),_0x1fdbde[_0xd5ebb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd5ebb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1cbaa5=!0x1;const _0xf1b380=_0x58a0c1();function _0x221ba1(_0xd12683){return!!_0xd12683&&(typeof _0xd12683===_0xd5ebb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xd12683===_0xd5ebb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xd12683[_0xd5ebb([0x74,0x68,0x65,0x6e])]===_0xd5ebb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xd12683[_0xd5ebb([0x63,0x61,0x74,0x63,0x68])]===_0xd5ebb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2d22d6(_0xcf2bb7){_0x40be85(_0xcf2bb7)[_0xd5ebb([0x74,0x68,0x65,0x6e])](_0x5d68f4=>{if(!_0x5d68f4||_0x5d68f4[_0xd5ebb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd5ebb([0x6f,0x6b]))return _0xd5ebb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c3ced(_0x58c077(_0xf1b380+_0x12fd74))!=_0x5d68f4[_0xd5ebb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd5ebb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd5ebb([0x56,0x61,0x6c,0x69,0x64]);})[_0xd5ebb([0x74,0x68,0x65,0x6e])](_0x4f655c=>(_0x427959(),_0x4f655c),()=>{const _0x4d442e=_0x69fc4e();return null==_0x4d442e?(_0x427959(),_0xd5ebb([0x56,0x61,0x6c,0x69,0x64])):_0xd5ebb(_0x50d5ca-_0x4d442e>(0x7753083a^_0x536500)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd5ebb([0x74,0x68,0x65,0x6e])](_0xbacd55)[_0xd5ebb([0x63,0x61,0x74,0x63,0x68])](()=>{_0xbacd55(_0xd5ebb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3afa91=0x536962ba^_0x536500;function _0x427959(){const _0x126628=_0xd5ebb([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c3ced(_0x58c077(_0x2db32e)),_0xea446b=_0x1b2fd2(_0x2c3ced(window[_0xd5ebb([0x4d,0x61,0x74,0x68])][_0xd5ebb([0x63,0x65,0x69,0x6c])](_0x50d5ca/_0x3afa91)));window[_0xd5ebb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd5ebb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x126628,_0xea446b);}function _0x69fc4e(){const _0x224da9=_0xd5ebb([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c3ced(_0x58c077(_0x2db32e)),_0x1f6e74=window[_0xd5ebb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd5ebb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x224da9);return _0x1f6e74?window[_0xd5ebb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b2fd2(_0x1f6e74),0x10)*_0x3afa91:null;}function _0x40be85(_0x238faf){return new window[(_0xd5ebb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x744539,_0x4691de)=>{_0x238faf[_0xd5ebb([0x74,0x68,0x65,0x6e])](_0x744539,_0x4691de),window[_0xd5ebb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4691de,0x535e58fa^_0x536500);});}}_0x1fdbde[_0xd5ebb([0x6f,0x6e])](_0xd5ebb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5ad45f,_0x24ae0e)=>{if(_0x24ae0e[0x0]!=_0x2db32e)return _0xbacd55(_0xd5ebb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x24ae0e[0x1]={..._0x24ae0e[0x1],[_0xd5ebb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xf1b380};},{[_0xd5ebb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd5ebb([0x68,0x69,0x67,0x68])}),_0x1fdbde[_0xd5ebb([0x6f,0x6e])](_0xd5ebb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4cee51=>{_0x221ba1(_0x4cee51[_0xd5ebb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1cbaa5=!0x0,_0x2d22d6(_0x4cee51[_0xd5ebb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd5ebb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd5ebb([0x6c,0x6f,0x77])}),_0x43728a[_0xd5ebb([0x74,0x68,0x65,0x6e])](()=>{_0x1cbaa5||_0xbacd55(_0xd5ebb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1adb76(){return _0x1fdbde[_0xd5ebb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd5ebb([0x76,0x69,0x65,0x77])][_0xd5ebb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd5ebb([0x61,0x75,0x74,0x6f]);}function _0x443025(){_0x1fdbde[_0xd5ebb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd5ebb([0x76,0x69,0x65,0x77])][_0xd5ebb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd5ebb([0x61,0x75,0x74,0x6f]);}}function _0x245d3c(_0x51ac75){const _0x3e065b=[new window[(_0xd5ebb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14901a=>setTimeout(_0x14901a,0x5356b2f6^_0x536500)),_0x43728a[_0xd5ebb([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd5ebb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x406b01=>{let _0x105fee=0x0;_0x1fdbde[_0xd5ebb([0x6d,0x6f,0x64,0x65,0x6c])][_0xd5ebb([0x6f,0x6e])](_0xd5ebb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2180ce,_0x1169a1)=>{_0x1169a1[0x0][_0xd5ebb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x105fee++,_0x105fee==(0x535f89d2^_0x536500)&&(_0x406b01(),_0x2180ce[_0xd5ebb([0x6f,0x66,0x66])]());});}))];return window[_0xd5ebb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd5ebb([0x72,0x61,0x63,0x65])](_0x3e065b)[_0xd5ebb([0x74,0x68,0x65,0x6e])](()=>_0x51ac75);}async function _0x183674(){await _0x43728a,_0x1fdbde[_0xd5ebb([0x6d,0x6f,0x64,0x65,0x6c])][_0xd5ebb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3e02ed,_0x1fdbde[_0xd5ebb([0x6d,0x6f,0x64,0x65,0x6c])][_0xd5ebb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3e02ed,_0x1fdbde[_0xd5ebb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd5ebb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa99d6e(_0x4222be){const _0x4d2490=_0x21fc01();_0x1fdbde[_0x4d2490]=_0xd5ebb([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4222be,_0x4222be!=_0xd5ebb([0x56,0x61,0x6c,0x69,0x64])&&_0x183674();}function _0x21fc01(){const _0x490499=window[_0xd5ebb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd5ebb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd5ebb([0x6e,0x6f,0x77])]())[_0xd5ebb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd5ebb([0x2e]),'');let _0x365d97=_0xd5ebb([0x68]);for(let _0x144b64=0x0;_0x144b64<_0x490499[_0xd5ebb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x144b64+=0x2){let _0x488716=window[_0xd5ebb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x490499[_0xd5ebb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x144b64,_0x144b64+0x2));_0x488716>=_0x3672e6[_0xd5ebb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x488716-=_0x3672e6[_0xd5ebb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x365d97+=_0x3672e6[_0x488716];}return _0x365d97;}function _0x593643(){const _0x6ac86d=_0x2fd222[_0xd5ebb([0x73,0x70,0x6c,0x69,0x74])](_0xd5ebb([0x2e]));if(0x3!=_0x6ac86d[_0xd5ebb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x125c89(_0x6ac86d[0x1]);function _0x125c89(_0x14a9aa){const _0x3a6ff9=_0x34941d(_0x14a9aa);return _0x3a6ff9&&_0x3664e9()?_0x3a6ff9:null;function _0x3664e9(){const _0x468bb7=_0x3a6ff9[_0xd5ebb([0x6a,0x74,0x69])],_0x8c849e=window[_0xd5ebb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x468bb7[_0xd5ebb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x468bb7[_0xd5ebb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x19d5fb={..._0x3a6ff9,[_0xd5ebb([0x6a,0x74,0x69])]:_0x468bb7[_0xd5ebb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x468bb7[_0xd5ebb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x19d5fb[_0xd5ebb([0x76,0x63])],_0x58c077(_0x19d5fb)==_0x8c849e;}}}async function _0x2f91ff(){let _0x4fb9bf=!0x0;try{const _0x127288=_0x2fd222[_0xd5ebb([0x73,0x70,0x6c,0x69,0x74])](_0xd5ebb([0x2e])),[_0x55bb5a,_0x1345a4,_0x2b1600]=_0x127288;return _0x4dea77(_0x55bb5a),await _0x248fb7(_0x55bb5a,_0x1345a4,_0x2b1600),_0x4fb9bf;}catch{return!0x1;}function _0x4dea77(_0xfad26c){const _0x421162=_0x34941d(_0xfad26c);_0x421162&&_0x421162[_0xd5ebb([0x61,0x6c,0x67])]==_0xd5ebb([0x45,0x53,0x32,0x35,0x36])||(_0x4fb9bf=!0x1);}async function _0x248fb7(_0x1b8378,_0x4a0310,_0x1224ff){const _0x47038b=window[_0xd5ebb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd5ebb([0x66,0x72,0x6f,0x6d])](_0xb32220(_0x1224ff),_0x9eff90=>_0x9eff90[_0xd5ebb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1ad01f=new window[(_0xd5ebb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd5ebb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1b8378+_0xd5ebb([0x2e])+_0x4a0310),_0x453c5b=window[_0xd5ebb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd5ebb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x453c5b)return;const _0x5283f3=await _0x453c5b[_0xd5ebb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd5ebb([0x6a,0x77,0x6b]),_0x4e7629,{[_0xd5ebb([0x6e,0x61,0x6d,0x65])]:_0xd5ebb([0x45,0x43,0x44,0x53,0x41]),[_0xd5ebb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd5ebb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd5ebb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x453c5b[_0xd5ebb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd5ebb([0x6e,0x61,0x6d,0x65])]:_0xd5ebb([0x45,0x43,0x44,0x53,0x41]),[_0xd5ebb([0x68,0x61,0x73,0x68])]:{[_0xd5ebb([0x6e,0x61,0x6d,0x65])]:_0xd5ebb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5283f3,_0x47038b,_0x1ad01f)||(_0x4fb9bf=!0x1);}}function _0x34941d(_0x5dcf88){return _0x5dcf88[_0xd5ebb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd5ebb([0x65,0x79]))?JSON[_0xd5ebb([0x70,0x61,0x72,0x73,0x65])](_0xb32220(_0x5dcf88)):null;}function _0xb32220(_0x5ec8c3){return window[_0xd5ebb([0x61,0x74,0x6f,0x62])](_0x5ec8c3[_0xd5ebb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd5ebb([0x2b]))[_0xd5ebb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd5ebb([0x2f])));}function _0x58c077(_0xaf5949){let _0x1a174d=0x1505;function _0xfe491a(_0x2c5081){for(let _0x33064e=0x0;_0x33064e<_0x2c5081[_0xd5ebb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33064e++){const _0x164ea=_0x2c5081[_0xd5ebb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x33064e);_0x1a174d=(_0x1a174d<<0x5)+_0x1a174d+_0x164ea,_0x1a174d&=_0x1a174d;}}function _0x614127(_0x5e0192){Array[_0xd5ebb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5e0192)?_0x5e0192[_0xd5ebb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x614127):_0x5e0192&&typeof _0x5e0192==_0xd5ebb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd5ebb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5e0192)[_0xd5ebb([0x73,0x6f,0x72,0x74])]()[_0xd5ebb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x293df0,_0xf3f29b])=>{_0xfe491a(_0x293df0),_0x614127(_0xf3f29b);}):_0xfe491a(window[_0xd5ebb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5e0192));}return _0x614127(_0xaf5949),_0x1a174d>>>0x0;}function _0x2c3ced(_0x4f4f5f){return _0x4f4f5f[_0xd5ebb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd5ebb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd5ebb([0x30]));}function _0x1b2fd2(_0x166a27){return _0x166a27[_0xd5ebb([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd5ebb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd5ebb([0x6a,0x6f,0x69,0x6e])]('');}function _0x3e02ed(){}function _0xd5ebb(_0x25bad6){const _0x252eaf=_0x1427;return _0x25bad6[_0x252eaf(0x113)](_0x55961b=>String[_0x252eaf(0x10c)](_0x55961b))[_0x252eaf(0x138)]('');}_0xa99d6e(await _0x12996d());}(this);}[_0x56a764(0x10a)](){const _0x4a9685=_0x56a764,_0x545bc4=this[_0x4a9685(0x114)][_0x4a9685(0x111)][_0x4a9685(0xf4)];_0x545bc4[_0x4a9685(0x12f)](_0x4a9685(0xff))&&_0x545bc4[_0x4a9685(0x100)](_0x4a9685(0xff),{'allowAttributes':[_0x4a9685(0x102)]}),_0x545bc4[_0x4a9685(0x12f)](_0x4a9685(0x110))&&_0x545bc4[_0x4a9685(0x100)](_0x4a9685(0x110),{'allowAttributes':[_0x4a9685(0x102)]});}[_0x56a764(0xf1)](){const _0x3e459f=_0x56a764,_0x47954f=this[_0x3e459f(0x114)];_0x47954f[_0x3e459f(0x10f)][_0x3e459f(0x128)](_0x3e459f(0xf6))[_0x3e459f(0xf2)]({'model':_0x3e459f(0x102),'view':_0x3e459f(0x116)}),_0x47954f[_0x3e459f(0x10f)][_0x3e459f(0x128)](_0x3e459f(0x123))[_0x3e459f(0xfd)]({'model':{'key':_0x3e459f(0x102),'value':_0x285cb2=>_0x285cb2[_0x3e459f(0x136)](_0x3e459f(0x116))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3a5c82=_0x47954f[_0x3e459f(0x121)][_0x3e459f(0x104)](_0x3e459f(0xfe));_0x3a5c82&&this[_0x3e459f(0xe8)](_0x3a5c82,_0x3e459f(0x139),(_0x5a10c0,[_0x3361d7,_0x195f52])=>{const _0x2671db=_0x3e459f;_0x3361d7[_0x2671db(0xec)](_0x2671db(0x102),_0x195f52);});}[_0x56a764(0x115)](){const _0x726e3d=_0x56a764,_0x39d713=this[_0x726e3d(0x114)][_0x726e3d(0x108)][_0x726e3d(0x104)](_0x726e3d(0x135))||{},_0x30ffd8=this[_0x726e3d(0x114)][_0x726e3d(0x108)][_0x726e3d(0x104)](_0x726e3d(0x11f))||'';this[_0x726e3d(0x11b)]=_0x464ba8(_0x123f63[_0x726e3d(0x117)],_0x726e3d(0x12a),{..._0x39d713,'pubkey':_0x30ffd8,'ctx-name':_0x726e3d(0xf8)+this[_0x726e3d(0x122)],'sourceList':'','imgOnly':_0x726e3d(0x131),'removeCopyright':_0x726e3d(0x131),'localeName':this[_0x726e3d(0x114)][_0x726e3d(0x12e)][_0x726e3d(0xf9)],'externalSourcesEmbedCss':_0x726e3d(0x120)}),this[_0x726e3d(0x11b)][_0x726e3d(0x130)]=_0x21b0b5=>{const _0x1baa0d=_0x726e3d;if(_0x1baa0d(0x137)==_0x21b0b5)return _0x1baa0d(0xeb);},_0x123f63[_0x726e3d(0x117)][_0x726e3d(0x125)][_0x726e3d(0xfa)](this[_0x726e3d(0x11b)]);}[_0x56a764(0x126)](){const _0x5412ef=_0x56a764;this[_0x5412ef(0x107)]=_0x464ba8(_0x123f63[_0x5412ef(0x117)],_0x5412ef(0xe7),{'ctx-name':_0x5412ef(0xf8)+this[_0x5412ef(0x122)]}),_0x123f63[_0x5412ef(0x117)][_0x5412ef(0x125)][_0x5412ef(0xfa)](this[_0x5412ef(0x107)]);}[_0x56a764(0x129)](){const _0x4dbc46=_0x56a764,_0x5b6ea8=this[_0x4dbc46(0x114)][_0x4dbc46(0x121)][_0x4dbc46(0x104)](_0x4dbc46(0x11e));_0x5b6ea8&&this[_0x4dbc46(0xe8)](_0x5b6ea8,_0x4dbc46(0xf0),()=>{const _0x42cfda=_0x4dbc46,_0xd174ac=this[_0x42cfda(0x114)][_0x42cfda(0x111)][_0x42cfda(0x117)][_0x42cfda(0x10e)][_0x42cfda(0x124)]();_0xd174ac&&_0xd174ac[_0x42cfda(0x136)](_0x42cfda(0x102))&&this[_0x42cfda(0x114)][_0x42cfda(0xef)][_0x42cfda(0x12c)][_0x42cfda(0x11c)](_0x42cfda(0xfb),()=>{const _0x276966=_0x42cfda;_0x28580b(this[_0x276966(0x114)],_0xd174ac);});});const _0x58b040=this[_0x4dbc46(0x114)][_0x4dbc46(0x121)][_0x4dbc46(0x104)](_0x4dbc46(0x134));_0x58b040&&this[_0x4dbc46(0xe8)](_0x58b040,_0x4dbc46(0xf0),()=>{const _0xb823c4=_0x4dbc46,_0x4f8508=this[_0xb823c4(0x114)][_0xb823c4(0x111)][_0xb823c4(0x117)][_0xb823c4(0x10e)][_0xb823c4(0x124)]();_0x4f8508&&_0x4f8508[_0xb823c4(0x136)](_0xb823c4(0x102))&&this[_0xb823c4(0x114)][_0xb823c4(0xef)][_0xb823c4(0x12c)][_0xb823c4(0x11c)](_0xb823c4(0xfb),()=>{const _0x1f0d31=_0xb823c4;_0x28580b(this[_0x1f0d31(0x114)],_0x4f8508);});});}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{global as _0x141208,ObservableMixin as _0x32e48b}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x473847}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x273953}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x112043}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x41feac}from'../../utils/uploadutils.js';import{getImageUrls as _0x1a00db,getImageDimension as _0x5099c0}from'../../utils/editingutils.js';import{isAncestor as _0x542796}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
- _0x32e48b(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2e7757,_0x413f01,_0xcf0cfb){super(),this['_editor']=_0x2e7757,this['_dialog']=_0x413f01,this['_imageElement']=_0xcf0cfb,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 _0x2055c8=this['_imageElement'],_0x134c08=_0x2055c8['getAttribute']('uploadcareImageId'),_0x231892=_0x2055c8['getAttribute']('src');if(_0x134c08)await this['_loadImageInfo'](_0x134c08,_0x231892);else{if(this['_imageCache']['has'](_0x231892)){const _0x33a5d3=this['_imageCache']['get'](_0x231892);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x33a5d3['url'],this['imageDimension']=_0x33a5d3['dimension'],this['imageId']=_0x33a5d3['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3ce36a}=this['_editor'],t=_0x3ce36a['t'],_0x5bdb10=new _0x112043(_0x3ce36a,this['imageStatus'],this['_attributes']);_0x5bdb10['bind']('status')['to'](this,'imageStatus'),_0x5bdb10['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5bdb10['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5bdb10['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5bdb10,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x273953,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5bdb10,'position':_0x473847['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5bdb10['focus']();},'onHide':()=>{_0x5bdb10['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1091d4=>!_0x542796(_0x1091d4,_0x5bdb10['element'])}});}['_loadImageInfo'](_0x56fab4,_0x510258){return _0x41feac['getInfo'](_0x56fab4,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x31e9fc=>{const {width:_0x45d350,height:_0x3f8e3e}=_0x31e9fc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x510258,this['imageDimension']={'width':_0x45d350,'height':_0x3f8e3e},this['imageId']=_0x56fab4;})['catch'](_0x10293d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x10293d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x405437,_0x4b1efd){return this['_getImageAsFile'](_0x405437)['then'](_0x25cfa0=>_0x41feac['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x4b1efd['signal'],'file':_0x25cfa0,'onProgress':_0x153ed8=>{_0x153ed8&&_0x153ed8['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x153ed8['value']));}}))['then'](_0x191536=>{const {width:_0x277fce,height:_0x302020}=_0x191536['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x191536['cdnUrl'],this['imageDimension']={'width':_0x277fce,'height':_0x302020},this['imageId']=_0x191536['uuid'],this['imageUploadProgress']=null;const _0x5a480d=_0x405437['getAttribute']('src');this['_imageCache']['set'](_0x5a480d,{'id':_0x191536['uuid'],'url':_0x191536['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2d643b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2d643b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x490ca2,_0x388b44){_0x490ca2['on']('apply',(_0x4290b8,_0x3522c0)=>{this['_replaceImage'](_0x388b44,_0x3522c0['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x490ca2['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x490ca2['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4d965e,_0x3ce2dd,_0x128c51){const _0x340d74=this['_editor'],{width:_0x1c37da,height:_0x31a38f}=_0x5099c0(_0x3ce2dd,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2a872d,imageSources:_0x53c525}=_0x1a00db(_0x3ce2dd,_0x1c37da);_0x340d74['model']['change'](_0x4c875b=>{if('$graveyard'===_0x4d965e['root']['rootName']){_0x340d74['execute']('insertImage',{'imageType':_0x4d965e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4d965e['getAttributes']()),'uploadcareImageId':_0x128c51,'src':_0x2a872d,'sources':_0x53c525,'width':_0x1c37da,'height':_0x31a38f}});const _0xb75104=_0x4d965e['getChildren']();_0x4d965e=_0x340d74['model']['document']['selection']['getSelectedElement']();for(const _0x3227ae of _0xb75104)_0x4c875b['append'](_0x4c875b['cloneElement'](_0x3227ae),_0x4d965e);}else _0x4c875b['setSelection'](_0x4d965e,'on'),_0x340d74['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4d965e['getAttributes']()),'uploadcareImageId':_0x128c51,'src':_0x2a872d,'sources':_0x53c525,'width':_0x1c37da,'height':_0x31a38f},_0x4d965e);_0x4c875b['setSelection'](_0x4d965e,'on');});}async['_getImageAsFile'](_0x3e34d3){const _0x5000c0=_0x141208['window'],_0x476886=_0x141208['document']['location']['href'],_0x4b7885=new _0x5000c0['URL'](_0x3e34d3['getAttribute']('src'),_0x476886);if('data:'===_0x4b7885['protocol']){const _0x4aa6e3=_0x4b7885['href']['split'](','),_0x2f798e=_0x4aa6e3[0x0]['match'](/:(.*?);/)[0x1],_0x29880f=_0x2f798e['split']('/')[0x1],_0x14947a=_0x5000c0['atob'](_0x4aa6e3[_0x4aa6e3['length']-0x1]);let _0x34add7=_0x14947a['length'];const _0x5ea3c5=new _0x5000c0['Uint8Array'](_0x34add7);for(;_0x34add7--;)_0x5ea3c5[_0x34add7]=_0x14947a['charCodeAt'](_0x34add7);return new _0x5000c0['File']([_0x5ea3c5],'image.'+_0x29880f,{'type':_0x2f798e});}const _0x23c5f1=_0x4b7885['href']['split']('/'),_0x4c25b0=_0x23c5f1[_0x23c5f1['length']-0x1],_0x16ec4f=_0x4c25b0['split']('.')[0x1];return _0x5000c0['fetch'](_0x4b7885['href'])['then'](_0x28115b=>_0x28115b['clone']()['blob']())['then'](_0x5dc71f=>new _0x5000c0['File']([_0x5dc71f],_0x4c25b0,{'type':'image/'+_0x16ec4f}));}}
23
+ import{global as _0x339eac,ObservableMixin as _0x29ee28}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2f6b84}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4e356b}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x24ffca}from'./uploadcareimageeditformview.js';import{UploadUtils as _0xf2f92c}from'../../utils/uploadutils.js';import{getImageUrls as _0x472790,getImageDimension as _0x4e2d55}from'../../utils/editingutils.js';import{isAncestor as _0x55c61e}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
+ _0x29ee28(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x736595,_0x42411c,_0x402f10){super(),this['_editor']=_0x736595,this['_dialog']=_0x42411c,this['_imageElement']=_0x402f10,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 _0x2b4e93=this['_imageElement'],_0x588388=_0x2b4e93['getAttribute']('uploadcareImageId'),_0x28b144=_0x2b4e93['getAttribute']('src');if(_0x588388)await this['_loadImageInfo'](_0x588388,_0x28b144);else{if(this['_imageCache']['has'](_0x28b144)){const _0x579799=this['_imageCache']['get'](_0x28b144);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x579799['url'],this['imageDimension']=_0x579799['dimension'],this['imageId']=_0x579799['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4acf02}=this['_editor'],t=_0x4acf02['t'],_0xd62449=new _0x24ffca(_0x4acf02,this['imageStatus'],this['_attributes']);_0xd62449['bind']('status')['to'](this,'imageStatus'),_0xd62449['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xd62449['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xd62449['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xd62449,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4e356b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xd62449,'position':_0x2f6b84['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xd62449['focus']();},'onHide':()=>{_0xd62449['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1872af=>!_0x55c61e(_0x1872af,_0xd62449['element'])}});}['_loadImageInfo'](_0x4a67f7,_0x2bb8be){return _0xf2f92c['getInfo'](_0x4a67f7,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x53d206=>{const {width:_0x3deb8d,height:_0x52d1cc}=_0x53d206['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2bb8be,this['imageDimension']={'width':_0x3deb8d,'height':_0x52d1cc},this['imageId']=_0x4a67f7;})['catch'](_0x58220e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x58220e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1682a2,_0x4de48e){return this['_getImageAsFile'](_0x1682a2)['then'](_0x526bc3=>_0xf2f92c['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x4de48e['signal'],'file':_0x526bc3,'onProgress':_0x32013f=>{_0x32013f&&_0x32013f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x32013f['value']));}}))['then'](_0x12f663=>{const {width:_0x3ebbbd,height:_0x248514}=_0x12f663['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x12f663['cdnUrl'],this['imageDimension']={'width':_0x3ebbbd,'height':_0x248514},this['imageId']=_0x12f663['uuid'],this['imageUploadProgress']=null;const _0x398ab8=_0x1682a2['getAttribute']('src');this['_imageCache']['set'](_0x398ab8,{'id':_0x12f663['uuid'],'url':_0x12f663['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1946d0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1946d0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x18de47,_0x490ee9){_0x18de47['on']('apply',(_0x2804be,_0x40e8d6)=>{this['_replaceImage'](_0x490ee9,_0x40e8d6['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x18de47['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x18de47['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x49a90f,_0x14c48b,_0x4b2509){const _0x2f5a1d=this['_editor'],{width:_0x1f421d,height:_0x1c2bf3}=_0x4e2d55(_0x14c48b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x317da9,imageSources:_0x4e69e5}=_0x472790(_0x14c48b,_0x1f421d);_0x2f5a1d['model']['change'](_0x5e2137=>{if('$graveyard'===_0x49a90f['root']['rootName']){_0x2f5a1d['execute']('insertImage',{'imageType':_0x49a90f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x49a90f['getAttributes']()),'uploadcareImageId':_0x4b2509,'src':_0x317da9,'sources':_0x4e69e5,'width':_0x1f421d,'height':_0x1c2bf3}});const _0x53e5a2=_0x49a90f['getChildren']();_0x49a90f=_0x2f5a1d['model']['document']['selection']['getSelectedElement']();for(const _0x3ba60e of _0x53e5a2)_0x5e2137['append'](_0x5e2137['cloneElement'](_0x3ba60e),_0x49a90f);}else _0x5e2137['setSelection'](_0x49a90f,'on'),_0x2f5a1d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x49a90f['getAttributes']()),'uploadcareImageId':_0x4b2509,'src':_0x317da9,'sources':_0x4e69e5,'width':_0x1f421d,'height':_0x1c2bf3},_0x49a90f);_0x5e2137['setSelection'](_0x49a90f,'on');});}async['_getImageAsFile'](_0x2b3473){const _0x408bf5=_0x339eac['window'],_0x3b6bf8=_0x339eac['document']['location']['href'],_0x6fc139=new _0x408bf5['URL'](_0x2b3473['getAttribute']('src'),_0x3b6bf8);if('data:'===_0x6fc139['protocol']){const _0x870313=_0x6fc139['href']['split'](','),_0x3b1716=_0x870313[0x0]['match'](/:(.*?);/)[0x1],_0x1498c2=_0x3b1716['split']('/')[0x1],_0x12517d=_0x408bf5['atob'](_0x870313[_0x870313['length']-0x1]);let _0x4e003b=_0x12517d['length'];const _0xfd1a9f=new _0x408bf5['Uint8Array'](_0x4e003b);for(;_0x4e003b--;)_0xfd1a9f[_0x4e003b]=_0x12517d['charCodeAt'](_0x4e003b);return new _0x408bf5['File']([_0xfd1a9f],'image.'+_0x1498c2,{'type':_0x3b1716});}const _0x3c70fc=_0x6fc139['href']['split']('/'),_0x338292=_0x3c70fc[_0x3c70fc['length']-0x1],_0x36d05e=_0x338292['split']('.')[0x1];return _0x408bf5['fetch'](_0x6fc139['href'])['then'](_0x27b3f8=>_0x27b3f8['clone']()['blob']())['then'](_0x1c58be=>new _0x408bf5['File']([_0x1c58be],_0x338292,{'type':'image/'+_0x36d05e}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x2172f1,_0x2c9b5b){const _0x57af61=_0x3608,_0x95688f=_0x2172f1();while(!![]){try{const _0x1d3d7f=-parseInt(_0x57af61(0x16e))/0x1*(parseInt(_0x57af61(0x16b))/0x2)+-parseInt(_0x57af61(0x161))/0x3+parseInt(_0x57af61(0x15f))/0x4+-parseInt(_0x57af61(0x167))/0x5*(-parseInt(_0x57af61(0x165))/0x6)+-parseInt(_0x57af61(0x163))/0x7*(-parseInt(_0x57af61(0x15d))/0x8)+parseInt(_0x57af61(0x168))/0x9+-parseInt(_0x57af61(0x16c))/0xa;if(_0x1d3d7f===_0x2c9b5b)break;else _0x95688f['push'](_0x95688f['shift']());}catch(_0x59e5fd){_0x95688f['push'](_0x95688f['shift']());}}}(_0x10e6,0x981dd));function _0x3608(_0x37e2e3,_0x201f53){const _0x10e63e=_0x10e6();return _0x3608=function(_0x3608cc,_0x778b64){_0x3608cc=_0x3608cc-0x15d;let _0x3023e3=_0x10e63e[_0x3608cc];return _0x3023e3;},_0x3608(_0x37e2e3,_0x201f53);}import{View as _0x1e314e}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x1e314e{constructor(_0x22711c,_0x3d317b){const _0x14b7ff=_0x3608;super(_0x22711c);const _0x23fc00=this[_0x14b7ff(0x16d)];this[_0x14b7ff(0x169)](_0x14b7ff(0x162),''),this[_0x14b7ff(0x15e)]({'tag':_0x14b7ff(0x160),'attributes':{..._0x3d317b,'class':[_0x14b7ff(0x166),_0x14b7ff(0x164)],'ctx-name':_0x14b7ff(0x16a),'cdn-url':_0x23fc00['to'](_0x14b7ff(0x162))}});}}function _0x10e6(){const _0x44f202=['ck-uploadcare-theme','1946154YydEGt','uc-light','5pjtWeK','2252790BZQWtr','set','image-edit','2pCJtfI','9877750GBnMwA','bindTemplate','646516JlVpkT','40NjQzuE','setTemplate','2370504YrBzyJ','uc-cloud-image-editor','459510tXZZJD','imageSrc','1740529ViGWDW'];_0x10e6=function(){return _0x44f202;};return _0x10e6();}
23
+ function _0x4fe4(){const _0x5dac82=['978295FAHrwT','uc-cloud-image-editor','329250ZCULfF','bindTemplate','1762446LYpIdW','set','4OkomDC','243bNcoYV','99633ZPxRmS','404046jUSOUu','96312aqagAD','image-edit','441846dhEUMl','uc-light','ck-uploadcare-theme','imageSrc','setTemplate'];_0x4fe4=function(){return _0x5dac82;};return _0x4fe4();}(function(_0x31714d,_0x27260a){const _0x4f54c9=_0x3b53,_0x2a9595=_0x31714d();while(!![]){try{const _0x20eae6=-parseInt(_0x4f54c9(0x135))/0x1+parseInt(_0x4f54c9(0x139))/0x2+-parseInt(_0x4f54c9(0x12f))/0x3+parseInt(_0x4f54c9(0x133))/0x4*(parseInt(_0x4f54c9(0x12d))/0x5)+parseInt(_0x4f54c9(0x136))/0x6+parseInt(_0x4f54c9(0x131))/0x7+parseInt(_0x4f54c9(0x137))/0x8*(-parseInt(_0x4f54c9(0x134))/0x9);if(_0x20eae6===_0x27260a)break;else _0x2a9595['push'](_0x2a9595['shift']());}catch(_0xf857e8){_0x2a9595['push'](_0x2a9595['shift']());}}}(_0x4fe4,0x31231));function _0x3b53(_0x1c494d,_0x4d2dff){const _0x4fe4dc=_0x4fe4();return _0x3b53=function(_0x3b53de,_0x3b5515){_0x3b53de=_0x3b53de-0x129;let _0x38a263=_0x4fe4dc[_0x3b53de];return _0x38a263;},_0x3b53(_0x1c494d,_0x4d2dff);}import{View as _0x3bd7b2}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x3bd7b2{constructor(_0x2e78e5,_0x2a96c2){const _0x578a15=_0x3b53;super(_0x2e78e5);const _0x346464=this[_0x578a15(0x130)];this[_0x578a15(0x132)](_0x578a15(0x12b),''),this[_0x578a15(0x12c)]({'tag':_0x578a15(0x12e),'attributes':{..._0x2a96c2,'class':[_0x578a15(0x129),_0x578a15(0x12a)],'ctx-name':_0x578a15(0x138),'cdn-url':_0x346464['to'](_0x578a15(0x12b))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as _0xfb170}from'ckeditor5/src/icons.js';import{ButtonView as _0x252db9,IconView as _0x56dcfc,View as _0x43d329}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x43d329{constructor(_0x11471c){super(_0x11471c);const t=_0x11471c['t'];this['set']('errorType',null);const _0x11eee9=new _0x252db9(_0x11471c);_0x11eee9['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x11eee9['withText']=!0x0,_0x11eee9['class']='ck-button-action',_0x11eee9['on']('execute',()=>{this['fire']('retry');}),_0x11eee9['bind']('isVisible')['to'](this,'errorType',_0x211d8d=>'NotFound'!==_0x211d8d);const _0x36ea54=new _0x56dcfc();_0x36ea54['content']=_0xfb170,_0x36ea54['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x396f20=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':[_0x36ea54,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x396f20['to']('errorType',_0xa76c4=>t('NotFound'!==_0xa76c4?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x11eee9]},{'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{IconError as _0x1fc408}from'ckeditor5/src/icons.js';import{ButtonView as _0x2f96b6,IconView as _0x206574,View as _0x603ef1}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x603ef1{constructor(_0x30e4ef){super(_0x30e4ef);const t=_0x30e4ef['t'];this['set']('errorType',null);const _0x2c4375=new _0x2f96b6(_0x30e4ef);_0x2c4375['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2c4375['withText']=!0x0,_0x2c4375['class']='ck-button-action',_0x2c4375['on']('execute',()=>{this['fire']('retry');}),_0x2c4375['bind']('isVisible')['to'](this,'errorType',_0x3ce73b=>'NotFound'!==_0x3ce73b);const _0x39c5c6=new _0x206574();_0x39c5c6['content']=_0x1fc408,_0x39c5c6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x310269=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':[_0x39c5c6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x310269['to']('errorType',_0x1bcf99=>t('NotFound'!==_0x1bcf99?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2c4375]},{'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 _0x5a0893,View as _0x10dd90}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x10dd90{constructor(_0x352c2b){super(_0x352c2b);const t=_0x352c2b['t'],_0x5c4dca=this['bindTemplate'],_0x355d20=new _0x5a0893();_0x355d20['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':[_0x355d20,{'text':_0x5c4dca['to']('imageUploadProgress',_0x419d15=>t('Loading\x20image...')+'\x20('+(_0x419d15||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 _0x478cfa,View as _0x400e93}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x400e93{constructor(_0x3885dc){super(_0x3885dc);const t=_0x3885dc['t'],_0x331aa9=this['bindTemplate'],_0x385410=new _0x478cfa();_0x385410['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':[_0x385410,{'text':_0x331aa9['to']('imageUploadProgress',_0x5170f6=>t('Loading\x20image...')+'\x20('+(_0x5170f6||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 _0xae13e0=_0x66ce;function _0x66ce(_0x11ba4b,_0x1469c3){const _0x5b0a99=_0x5b0a();return _0x66ce=function(_0x66ce32,_0x251ee4){_0x66ce32=_0x66ce32-0x178;let _0x5beabe=_0x5b0a99[_0x66ce32];return _0x5beabe;},_0x66ce(_0x11ba4b,_0x1469c3);}(function(_0x3f1adc,_0x2f4213){const _0x5edc00=_0x66ce,_0x47cc65=_0x3f1adc();while(!![]){try{const _0x1a008f=-parseInt(_0x5edc00(0x179))/0x1*(-parseInt(_0x5edc00(0x17c))/0x2)+parseInt(_0x5edc00(0x185))/0x3+parseInt(_0x5edc00(0x178))/0x4+parseInt(_0x5edc00(0x1a4))/0x5*(parseInt(_0x5edc00(0x18e))/0x6)+-parseInt(_0x5edc00(0x19b))/0x7*(parseInt(_0x5edc00(0x1a8))/0x8)+parseInt(_0x5edc00(0x193))/0x9+-parseInt(_0x5edc00(0x18d))/0xa*(parseInt(_0x5edc00(0x183))/0xb);if(_0x1a008f===_0x2f4213)break;else _0x47cc65['push'](_0x47cc65['shift']());}catch(_0x56efdf){_0x47cc65['push'](_0x47cc65['shift']());}}}(_0x5b0a,0x24221));import{View as _0x52c7e1}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x3fc0ad}from'./uploadcareimageeditformloadingview.js';function _0x5b0a(){const _0x239610=['42qlnmsD','length','set','error','querySelector','fire','cdnUrl','ready','addMany','109230FiXhRQ','observe','change:status','cancel','298808NvFVfp','status','clear','setTemplate','target','add','_editingView','_items','803464dJItFZ','45665oozRzj','ck-uploadcare-form','div','10TGeHvR','nodeName','toLowerCase','getFocusableElement','ck-reset_all-excluded','disconnect','_waitForImageEditorComponent','2303653HlzwLd','createCollection','542514UXiMPi','uc-cloud-image-editor','_focusableView','filter','_loadingView','detail','once','render','30NrhLYl','78ObuoKI','addedNodes','uploading','retry','_setView','957141tKdYFO','element','_addUploadcareImageEditorListeners','_addErrorViewListeners','apply','focus','_errorView','addEventListener'];_0x5b0a=function(){return _0x239610;};return _0x5b0a();}import{UploadcareImageEditFormErrorView as _0x170931}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x8e0536}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x302125}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x302125{[_0xae13e0(0x1af)];[_0xae13e0(0x189)];[_0xae13e0(0x199)];[_0xae13e0(0x1ae)];[_0xae13e0(0x187)];constructor(_0x587eef,_0x3c66f4,_0xe48bb8){const _0x5f43c9=_0xae13e0;super(_0x587eef),this[_0x5f43c9(0x1af)]=this[_0x5f43c9(0x184)](),this[_0x5f43c9(0x189)]=new _0x3fc0ad(_0x587eef),this[_0x5f43c9(0x199)]=new _0x170931(_0x587eef),this[_0x5f43c9(0x1ae)]=new _0x8e0536(_0x587eef,_0xe48bb8),this[_0x5f43c9(0x187)]=new _0x52c7e1(_0x587eef),this[_0x5f43c9(0x187)][_0x5f43c9(0x1ab)](this[_0x5f43c9(0x17f)]()),this[_0x5f43c9(0x19d)](_0x5f43c9(0x1a9),_0x3c66f4),this[_0x5f43c9(0x1ab)]({'tag':_0x5f43c9(0x17b),'attributes':{'class':['ck',_0x5f43c9(0x180),_0x5f43c9(0x17a)],'tabindex':'-1'},'children':this[_0x5f43c9(0x1af)]}),this[_0x5f43c9(0x192)](),this[_0x5f43c9(0x18b)](_0x5f43c9(0x18c),()=>{const _0x1d4928=_0x5f43c9;this[_0x1d4928(0x182)](this[_0x1d4928(0x194)],_0x397858=>{const _0xdf927c=_0x1d4928;this[_0xdf927c(0x195)](_0x397858);});}),this['on'](_0x5f43c9(0x1a6),()=>{const _0x202185=_0x5f43c9;this[_0x202185(0x192)]();}),this[_0x5f43c9(0x196)]();}[_0xae13e0(0x198)](){const _0x103c10=_0xae13e0;this[_0x103c10(0x194)][_0x103c10(0x198)]();}[_0xae13e0(0x192)](){const _0x18f12c=_0xae13e0;switch(this[_0x18f12c(0x1af)][_0x18f12c(0x1aa)](),this[_0x18f12c(0x1a9)]){case _0x18f12c(0x190):this[_0x18f12c(0x1af)][_0x18f12c(0x1ad)](this[_0x18f12c(0x189)]);break;case _0x18f12c(0x19e):this[_0x18f12c(0x1af)][_0x18f12c(0x1ad)](this[_0x18f12c(0x199)]);break;case _0x18f12c(0x1a2):this[_0x18f12c(0x1af)][_0x18f12c(0x1a3)]([this[_0x18f12c(0x1ae)],this[_0x18f12c(0x187)]]);}}[_0xae13e0(0x182)](_0x46bb6d,_0x579ce2){const _0x5a28f8=_0xae13e0,_0xc72b0f=_0x5a28f8(0x186),_0x355f76=_0x46bb6d[_0x5a28f8(0x19f)](_0xc72b0f);if(_0x355f76)return _0x579ce2(_0x355f76);const _0x78a854=new MutationObserver(_0x4934bf=>{const _0x4a3add=_0x5a28f8,_0x549d2f=_0x4934bf[_0x4a3add(0x188)](_0x99d5c8=>_0x99d5c8[_0x4a3add(0x1ac)]===_0x46bb6d&&_0x99d5c8[_0x4a3add(0x18f)][_0x4a3add(0x19c)]>0x0&&_0x99d5c8[_0x4a3add(0x18f)][0x0][_0x4a3add(0x17d)][_0x4a3add(0x17e)]()===_0xc72b0f);_0x549d2f[_0x4a3add(0x19c)]&&(_0x78a854[_0x4a3add(0x181)](),_0x579ce2(_0x549d2f[0x0][_0x4a3add(0x18f)][0x0]));});_0x78a854[_0x5a28f8(0x1a5)](_0x46bb6d,{'childList':!0x0,'subtree':!0x0});}[_0xae13e0(0x195)](_0xa7eb68){const _0x1e3e01=_0xae13e0;_0xa7eb68[_0x1e3e01(0x19a)](_0x1e3e01(0x197),_0x287b6b=>{const _0x46b246=_0x1e3e01;this[_0x46b246(0x1a0)](_0x46b246(0x197),{'imageSrc':_0x287b6b[_0x46b246(0x18a)][_0x46b246(0x1a1)]});}),_0xa7eb68[_0x1e3e01(0x19a)](_0x1e3e01(0x1a7),()=>{const _0x4dd5d3=_0x1e3e01;this[_0x4dd5d3(0x1a0)](_0x4dd5d3(0x1a7));});}[_0xae13e0(0x196)](){const _0x1fc929=_0xae13e0;this[_0x1fc929(0x199)]['on'](_0x1fc929(0x191),()=>{const _0x2244ba=_0x1fc929;this[_0x2244ba(0x1a0)](_0x2244ba(0x191));});}}
23
+ const _0x47c693=_0x561d;(function(_0x37b9e9,_0x372687){const _0x43919d=_0x561d,_0x408881=_0x37b9e9();while(!![]){try{const _0x18c160=parseInt(_0x43919d(0x20f))/0x1+parseInt(_0x43919d(0x200))/0x2*(-parseInt(_0x43919d(0x21d))/0x3)+parseInt(_0x43919d(0x1fc))/0x4*(-parseInt(_0x43919d(0x1f5))/0x5)+parseInt(_0x43919d(0x21e))/0x6*(parseInt(_0x43919d(0x203))/0x7)+-parseInt(_0x43919d(0x1f1))/0x8+-parseInt(_0x43919d(0x213))/0x9*(-parseInt(_0x43919d(0x211))/0xa)+-parseInt(_0x43919d(0x216))/0xb*(-parseInt(_0x43919d(0x21f))/0xc);if(_0x18c160===_0x372687)break;else _0x408881['push'](_0x408881['shift']());}catch(_0x47d03c){_0x408881['push'](_0x408881['shift']());}}}(_0x6df0,0x51b9b));import{View as _0x56deeb}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x3544c1}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x4c6c7c}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x1e6702}from'./uploadcareimageeditformeditingview.js';function _0x561d(_0x35e621,_0x37ca11){const _0x6df070=_0x6df0();return _0x561d=function(_0x561dab,_0x48ea66){_0x561dab=_0x561dab-0x1f1;let _0x233938=_0x6df070[_0x561dab];return _0x233938;},_0x561d(_0x35e621,_0x37ca11);}import{DialogFocusManagerView as _0xc62a73}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0xc62a73{[_0x47c693(0x21b)];[_0x47c693(0x223)];[_0x47c693(0x207)];[_0x47c693(0x1f9)];[_0x47c693(0x226)];constructor(_0x1fb01c,_0x477163,_0x33d1ba){const _0x4207a5=_0x47c693;super(_0x1fb01c),this[_0x4207a5(0x21b)]=this[_0x4207a5(0x1fd)](),this[_0x4207a5(0x223)]=new _0x3544c1(_0x1fb01c),this[_0x4207a5(0x207)]=new _0x4c6c7c(_0x1fb01c),this[_0x4207a5(0x1f9)]=new _0x1e6702(_0x1fb01c,_0x33d1ba),this[_0x4207a5(0x226)]=new _0x56deeb(_0x1fb01c),this[_0x4207a5(0x226)][_0x4207a5(0x1fe)](this[_0x4207a5(0x20e)]()),this[_0x4207a5(0x20a)](_0x4207a5(0x1f6),_0x477163),this[_0x4207a5(0x1fe)]({'tag':_0x4207a5(0x1fb),'attributes':{'class':['ck',_0x4207a5(0x20d),_0x4207a5(0x1f3)],'tabindex':'-1'},'children':this[_0x4207a5(0x21b)]}),this[_0x4207a5(0x201)](),this[_0x4207a5(0x227)](_0x4207a5(0x206),()=>{const _0x53d1df=_0x4207a5;this[_0x53d1df(0x210)](this[_0x53d1df(0x228)],_0x406ba8=>{const _0x477d48=_0x53d1df;this[_0x477d48(0x21a)](_0x406ba8);});}),this['on'](_0x4207a5(0x224),()=>{const _0x35fa93=_0x4207a5;this[_0x35fa93(0x201)]();}),this[_0x4207a5(0x204)]();}[_0x47c693(0x225)](){const _0x57df49=_0x47c693;this[_0x57df49(0x228)][_0x57df49(0x225)]();}[_0x47c693(0x201)](){const _0x2ee98c=_0x47c693;switch(this[_0x2ee98c(0x21b)][_0x2ee98c(0x220)](),this[_0x2ee98c(0x1f6)]){case _0x2ee98c(0x219):this[_0x2ee98c(0x21b)][_0x2ee98c(0x205)](this[_0x2ee98c(0x223)]);break;case _0x2ee98c(0x229):this[_0x2ee98c(0x21b)][_0x2ee98c(0x205)](this[_0x2ee98c(0x207)]);break;case _0x2ee98c(0x208):this[_0x2ee98c(0x21b)][_0x2ee98c(0x20c)]([this[_0x2ee98c(0x1f9)],this[_0x2ee98c(0x226)]]);}}[_0x47c693(0x210)](_0x481391,_0x57c2ab){const _0xe81318=_0x47c693,_0x2d362e=_0xe81318(0x214),_0x248b51=_0x481391[_0xe81318(0x1f4)](_0x2d362e);if(_0x248b51)return _0x57c2ab(_0x248b51);const _0x4c7372=new MutationObserver(_0x168169=>{const _0x1786ba=_0xe81318,_0x73b7c7=_0x168169[_0x1786ba(0x1fa)](_0x4b5224=>_0x4b5224[_0x1786ba(0x212)]===_0x481391&&_0x4b5224[_0x1786ba(0x221)][_0x1786ba(0x20b)]>0x0&&_0x4b5224[_0x1786ba(0x221)][0x0][_0x1786ba(0x1f2)][_0x1786ba(0x218)]()===_0x2d362e);_0x73b7c7[_0x1786ba(0x20b)]&&(_0x4c7372[_0x1786ba(0x202)](),_0x57c2ab(_0x73b7c7[0x0][_0x1786ba(0x221)][0x0]));});_0x4c7372[_0xe81318(0x1f7)](_0x481391,{'childList':!0x0,'subtree':!0x0});}[_0x47c693(0x21a)](_0xf7d695){const _0x3056e=_0x47c693;_0xf7d695[_0x3056e(0x217)](_0x3056e(0x21c),_0x2ff38c=>{const _0x16357e=_0x3056e;this[_0x16357e(0x222)](_0x16357e(0x21c),{'imageSrc':_0x2ff38c[_0x16357e(0x1f8)][_0x16357e(0x1ff)]});}),_0xf7d695[_0x3056e(0x217)](_0x3056e(0x215),()=>{const _0x48cd8d=_0x3056e;this[_0x48cd8d(0x222)](_0x48cd8d(0x215));});}[_0x47c693(0x204)](){const _0xdf1787=_0x47c693;this[_0xdf1787(0x207)]['on'](_0xdf1787(0x209),()=>{const _0x404bec=_0xdf1787;this[_0x404bec(0x222)](_0x404bec(0x209));});}}function _0x6df0(){const _0x12625d=['_focusableView','once','element','error','3567104KePATA','nodeName','ck-uploadcare-form','querySelector','205PLmvCn','status','observe','detail','_editingView','filter','div','27112MWonXY','createCollection','setTemplate','cdnUrl','158uhxlHz','_setView','disconnect','504231BCXvWK','_addErrorViewListeners','add','render','_errorView','ready','retry','set','length','addMany','ck-reset_all-excluded','getFocusableElement','172480qpYkXy','_waitForImageEditorComponent','240OHFTHP','target','14967pQMhZW','uc-cloud-image-editor','cancel','891KqAuSc','addEventListener','toLowerCase','uploading','_addUploadcareImageEditorListeners','_items','apply','4617ITXYIA','24LTXRiS','100680rToVUh','clear','addedNodes','fire','_loadingView','change:status','focus'];_0x6df0=function(){return _0x12625d;};return _0x6df0();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x329fac=_0x2dce;(function(_0x28405d,_0x1f1382){const _0xf8a1aa=_0x2dce,_0x2185f0=_0x28405d();while(!![]){try{const _0x4b67f9=parseInt(_0xf8a1aa(0xa8))/0x1*(parseInt(_0xf8a1aa(0xb6))/0x2)+parseInt(_0xf8a1aa(0xaf))/0x3*(parseInt(_0xf8a1aa(0xbb))/0x4)+-parseInt(_0xf8a1aa(0xb7))/0x5*(-parseInt(_0xf8a1aa(0xab))/0x6)+parseInt(_0xf8a1aa(0xb1))/0x7+-parseInt(_0xf8a1aa(0xaa))/0x8+-parseInt(_0xf8a1aa(0xbd))/0x9*(-parseInt(_0xf8a1aa(0xae))/0xa)+-parseInt(_0xf8a1aa(0xb9))/0xb*(-parseInt(_0xf8a1aa(0xb2))/0xc);if(_0x4b67f9===_0x1f1382)break;else _0x2185f0['push'](_0x2185f0['shift']());}catch(_0x366c87){_0x2185f0['push'](_0x2185f0['shift']());}}}(_0x2cc3,0x7a900));function _0x2dce(_0x1bc9be,_0x3ded38){const _0x2cc300=_0x2cc3();return _0x2dce=function(_0x2dce15,_0x36e986){_0x2dce15=_0x2dce15-0xa2;let _0x572c76=_0x2cc300[_0x2dce15];return _0x572c76;},_0x2dce(_0x1bc9be,_0x3ded38);}import{Command as _0x51970f}from'ckeditor5/src/core.js';import{Dialog as _0x382c12}from'ckeditor5/src/ui.js';function _0x2cc3(){const _0x309634=['2hUVLkj','5dWxeCJ','bind','318043hVRDGC','get','8jpAJCC','set','424638BYgfEu','element','document','selection','uploadcare.allowExternalImagesEditing','isActive','refresh','imageBlock','config','getSelectedElement','model','editor','unbind','60667EnjLrX','_isEditable','5151112byOEej','1557276pBCggp','isEnabled','requires','20fUwRju','429102mYoIsM','imageInline','688128YDfjLF','144FPJVWO','plugins','execute','imageEditController'];_0x2cc3=function(){return _0x309634;};return _0x2cc3();}import{UploadcareImageEditController as _0x3b3818}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x2572ae}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x51970f{[_0x329fac(0xb5)];static get[_0x329fac(0xad)](){return[_0x382c12];}[_0x329fac(0xa9)];constructor(_0xe1ec23){const _0x508665=_0x329fac;super(_0xe1ec23),this[_0x508665(0xb5)]=void 0x0,this[_0x508665(0xa9)]=_0x2572ae(_0xe1ec23[_0x508665(0xa3)][_0x508665(0xba)](_0x508665(0xc1))||[]),this[_0x508665(0xbc)]({'isActive':!0x1});}[_0x329fac(0xc3)](){const _0x230acc=_0x329fac,_0x39099e=this[_0x230acc(0xa6)][_0x230acc(0xa5)][_0x230acc(0xbf)][_0x230acc(0xc0)][_0x230acc(0xa4)]();this[_0x230acc(0xac)]=this[_0x230acc(0xa9)](_0x39099e);}[_0x329fac(0xb4)](){const _0x4fbd7c=_0x329fac;this[_0x4fbd7c(0xb5)]&&(this[_0x4fbd7c(0xa7)](_0x4fbd7c(0xc2)),this[_0x4fbd7c(0xb5)]=void 0x0);const _0x3bca8d=this[_0x4fbd7c(0xa6)][_0x4fbd7c(0xa5)][_0x4fbd7c(0xbf)][_0x4fbd7c(0xc0)][_0x4fbd7c(0xa4)]();_0x3bca8d&&(_0x3bca8d['is'](_0x4fbd7c(0xbe),_0x4fbd7c(0xa2))||_0x3bca8d['is'](_0x4fbd7c(0xbe),_0x4fbd7c(0xb0)))&&(this[_0x4fbd7c(0xb5)]=new _0x3b3818(this[_0x4fbd7c(0xa6)],this[_0x4fbd7c(0xa6)][_0x4fbd7c(0xb3)][_0x4fbd7c(0xba)](_0x382c12),_0x3bca8d),this[_0x4fbd7c(0xb8)](_0x4fbd7c(0xc2))['to'](this[_0x4fbd7c(0xb5)],_0x4fbd7c(0xc2)));}}
23
+ const _0x18fbba=_0x3efc;(function(_0x28c794,_0x29f9bd){const _0x17c9de=_0x3efc,_0x56fca0=_0x28c794();while(!![]){try{const _0x4d5ac6=-parseInt(_0x17c9de(0xa4))/0x1+parseInt(_0x17c9de(0xa1))/0x2+-parseInt(_0x17c9de(0xa8))/0x3+-parseInt(_0x17c9de(0x9d))/0x4*(-parseInt(_0x17c9de(0xa0))/0x5)+parseInt(_0x17c9de(0x9a))/0x6*(parseInt(_0x17c9de(0x94))/0x7)+parseInt(_0x17c9de(0x95))/0x8*(parseInt(_0x17c9de(0x92))/0x9)+parseInt(_0x17c9de(0xb1))/0xa*(parseInt(_0x17c9de(0xb0))/0xb);if(_0x4d5ac6===_0x29f9bd)break;else _0x56fca0['push'](_0x56fca0['shift']());}catch(_0x15b6ec){_0x56fca0['push'](_0x56fca0['shift']());}}}(_0x2b7c,0x9f05c));function _0x3efc(_0x18d252,_0x55afac){const _0x2b7c5a=_0x2b7c();return _0x3efc=function(_0x3efcf3,_0x589213){_0x3efcf3=_0x3efcf3-0x91;let _0x18706f=_0x2b7c5a[_0x3efcf3];return _0x18706f;},_0x3efc(_0x18d252,_0x55afac);}import{Command as _0x4e258b}from'ckeditor5/src/core.js';import{Dialog as _0x5101e2}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x16d509}from'./ui/uploadcareimageeditcontroller.js';function _0x2b7c(){const _0x402662=['18fLcEun','bind','uploadcare.allowExternalImagesEditing','1695040qZbvjh','unbind','getSelectedElement','5WMlCLd','774598clpvWX','isEnabled','refresh','518826UFlFrY','config','imageEditController','imageBlock','3813936BsRATS','editor','document','imageInline','_isEditable','plugins','set','requires','253ASibwL','377460zmTHUX','get','759393UqeQJC','execute','1384887ZUmyIK','16RGFAhl','selection','model','element','isActive'];_0x2b7c=function(){return _0x402662;};return _0x2b7c();}import{createEditabilityChecker as _0x2f5d47}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x4e258b{[_0x18fbba(0xa6)];static get[_0x18fbba(0xaf)](){return[_0x5101e2];}[_0x18fbba(0xac)];constructor(_0x3ff42e){const _0x4806bf=_0x18fbba;super(_0x3ff42e),this[_0x4806bf(0xa6)]=void 0x0,this[_0x4806bf(0xac)]=_0x2f5d47(_0x3ff42e[_0x4806bf(0xa5)][_0x4806bf(0x91)](_0x4806bf(0x9c))||[]),this[_0x4806bf(0xae)]({'isActive':!0x1});}[_0x18fbba(0xa3)](){const _0x329727=_0x18fbba,_0x433d14=this[_0x329727(0xa9)][_0x329727(0x97)][_0x329727(0xaa)][_0x329727(0x96)][_0x329727(0x9f)]();this[_0x329727(0xa2)]=this[_0x329727(0xac)](_0x433d14);}[_0x18fbba(0x93)](){const _0x4e9ad2=_0x18fbba;this[_0x4e9ad2(0xa6)]&&(this[_0x4e9ad2(0x9e)](_0x4e9ad2(0x99)),this[_0x4e9ad2(0xa6)]=void 0x0);const _0x1f5a1b=this[_0x4e9ad2(0xa9)][_0x4e9ad2(0x97)][_0x4e9ad2(0xaa)][_0x4e9ad2(0x96)][_0x4e9ad2(0x9f)]();_0x1f5a1b&&(_0x1f5a1b['is'](_0x4e9ad2(0x98),_0x4e9ad2(0xa7))||_0x1f5a1b['is'](_0x4e9ad2(0x98),_0x4e9ad2(0xab)))&&(this[_0x4e9ad2(0xa6)]=new _0x16d509(this[_0x4e9ad2(0xa9)],this[_0x4e9ad2(0xa9)][_0x4e9ad2(0xad)][_0x4e9ad2(0x91)](_0x5101e2),_0x1f5a1b),this[_0x4e9ad2(0x9b)](_0x4e9ad2(0x99))['to'](this[_0x4e9ad2(0xa6)],_0x4e9ad2(0x99)));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4095e4=_0x41de;(function(_0x354365,_0x35877e){const _0x25cbe8=_0x41de,_0x2fcde8=_0x354365();while(!![]){try{const _0x5ef38b=parseInt(_0x25cbe8(0x1ac))/0x1*(parseInt(_0x25cbe8(0x1b5))/0x2)+parseInt(_0x25cbe8(0x1bf))/0x3+-parseInt(_0x25cbe8(0x1b9))/0x4+-parseInt(_0x25cbe8(0x1bd))/0x5*(-parseInt(_0x25cbe8(0x1b7))/0x6)+-parseInt(_0x25cbe8(0x1ba))/0x7+-parseInt(_0x25cbe8(0x1b3))/0x8+parseInt(_0x25cbe8(0x1c0))/0x9*(parseInt(_0x25cbe8(0x1b0))/0xa);if(_0x5ef38b===_0x35877e)break;else _0x2fcde8['push'](_0x2fcde8['shift']());}catch(_0x1ddd48){_0x2fcde8['push'](_0x2fcde8['shift']());}}}(_0x9653,0x8d859));import{Plugin as _0x5b9e23}from'ckeditor5/src/core.js';import{Notification as _0x3b145d}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x42d627}from'./uploadcareimageeditcommand.js';function _0x41de(_0x5533a2,_0x3d076a){const _0x965302=_0x9653();return _0x41de=function(_0x41dee8,_0x3b5fa8){_0x41dee8=_0x41dee8-0x1ac;let _0x9ec048=_0x965302[_0x41dee8];return _0x9ec048;},_0x41de(_0x5533a2,_0x3d076a);}import{UploadcareImageReplaceCommand as _0x22fef2}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0xfc39dc}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x5b9e23{static get[_0x4095e4(0x1ae)](){const _0x12c694=_0x4095e4;return _0x12c694(0x1b8);}static get[_0x4095e4(0x1b2)](){const _0x4cf32e=_0x4095e4;return[_0xfc39dc,_0x3b145d,_0x4cf32e(0x1ad),_0x4cf32e(0x1bc)];}static get[_0x4095e4(0x1b1)](){return!0x0;}static get[_0x4095e4(0x1af)](){return!0x0;}[_0x4095e4(0x1c1)](){const _0x17100e=_0x4095e4,{editor:_0x10fafc}=this;_0x10fafc[_0x17100e(0x1bb)][_0x17100e(0x1b4)](_0x17100e(0x1b6),new _0x42d627(_0x10fafc)),_0x10fafc[_0x17100e(0x1bb)][_0x17100e(0x1b4)](_0x17100e(0x1be),new _0x22fef2(_0x10fafc));}}function _0x9653(){const _0x19018f=['5035026JRYimw','UploadcareImageEditEditing','86788byLXKq','6820562vqoTIM','commands','ImageEditing','5vdrSkq','uploadcareImageReplace','453993hGjkWE','2772bnGgPj','init','4TsaWFh','ImageUtils','pluginName','isPremiumPlugin','6640DbnBDd','isOfficialPlugin','requires','2250320CSrWHb','add','331006wwjTJV','uploadcareImageEdit'];_0x9653=function(){return _0x19018f;};return _0x9653();}
23
+ const _0x4529c1=_0x4711;(function(_0x120ba9,_0x3b08d0){const _0x3cb5d4=_0x4711,_0x4c3577=_0x120ba9();while(!![]){try{const _0xf0335=parseInt(_0x3cb5d4(0x202))/0x1+-parseInt(_0x3cb5d4(0x1f9))/0x2*(parseInt(_0x3cb5d4(0x1f6))/0x3)+parseInt(_0x3cb5d4(0x203))/0x4*(-parseInt(_0x3cb5d4(0x204))/0x5)+parseInt(_0x3cb5d4(0x1fb))/0x6+parseInt(_0x3cb5d4(0x1ff))/0x7*(parseInt(_0x3cb5d4(0x1f3))/0x8)+-parseInt(_0x3cb5d4(0x1fe))/0x9*(-parseInt(_0x3cb5d4(0x1fa))/0xa)+-parseInt(_0x3cb5d4(0x208))/0xb;if(_0xf0335===_0x3b08d0)break;else _0x4c3577['push'](_0x4c3577['shift']());}catch(_0x5c02e2){_0x4c3577['push'](_0x4c3577['shift']());}}}(_0x535c,0x3cb3b));import{Plugin as _0x2128fb}from'ckeditor5/src/core.js';import{Notification as _0x37cccf}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x121cea}from'./uploadcareimageeditcommand.js';function _0x4711(_0x2f7ae6,_0x52c4a2){const _0x535c69=_0x535c();return _0x4711=function(_0x471135,_0x537ae5){_0x471135=_0x471135-0x1f3;let _0x3c0521=_0x535c69[_0x471135];return _0x3c0521;},_0x4711(_0x2f7ae6,_0x52c4a2);}function _0x535c(){const _0x5eb281=['requires','8fLmmlI','pluginName','uploadcareImageEdit','10119ROJefn','uploadcareImageReplace','ImageEditing','82TvBzVc','630300ZuUwaA','1106616fYJXHL','ImageUtils','isOfficialPlugin','45iWwrwN','2667644aBbhPh','isPremiumPlugin','init','453007yblzSV','18956XcXtWW','155gUVzHW','add','UploadcareImageEditEditing','commands','8798328YmXuMD'];_0x535c=function(){return _0x5eb281;};return _0x535c();}import{UploadcareImageReplaceCommand as _0x2219be}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x11fac0}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x2128fb{static get[_0x4529c1(0x1f4)](){const _0x2a2c75=_0x4529c1;return _0x2a2c75(0x206);}static get[_0x4529c1(0x209)](){const _0x4bc3a9=_0x4529c1;return[_0x11fac0,_0x37cccf,_0x4bc3a9(0x1fc),_0x4bc3a9(0x1f8)];}static get[_0x4529c1(0x1fd)](){return!0x0;}static get[_0x4529c1(0x200)](){return!0x0;}[_0x4529c1(0x201)](){const _0x28995b=_0x4529c1,{editor:_0x166dd7}=this;_0x166dd7[_0x28995b(0x207)][_0x28995b(0x205)](_0x28995b(0x1f5),new _0x121cea(_0x166dd7)),_0x166dd7[_0x28995b(0x207)][_0x28995b(0x205)](_0x28995b(0x1f7),new _0x2219be(_0x166dd7));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x347ee3}from'ckeditor5/src/core.js';import{ButtonView as _0x578d79}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x678f0e}from'ckeditor5/src/icons.js';import{createElement as _0x383f34}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x347ee3{['_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 _0x42d684=this['editor'];_0x42d684['ui']['componentFactory']['add']('uploadcareImageEdit',_0x358637=>{const _0x4f2af6=_0x42d684['commands']['get']('uploadcareImageEdit'),_0xf619f6=new _0x578d79(_0x358637),t=_0x358637['t'];return _0xf619f6['set']({'icon':_0x678f0e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xf619f6['bind']('isEnabled')['to'](_0x4f2af6),_0xf619f6['bind']('isOn')['to'](_0x4f2af6,'isActive'),this['listenTo'](_0xf619f6,'execute',()=>{_0x42d684['execute']('uploadcareImageEdit'),_0x42d684['editing']['view']['focus']();}),_0xf619f6;}),this['_initConfig']();}['_initConfig'](){const _0x1e8dc2=_0x383f34(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1e8dc2),this['listenTo'](this['editor'],'destroy',()=>{_0x1e8dc2['remove']();});}}
23
+ import{Plugin as _0x1655f3}from'ckeditor5/src/core.js';import{ButtonView as _0x24d558}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x431fa6}from'ckeditor5/src/icons.js';import{createElement as _0xb470d0}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x1655f3{['_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 _0x1248c4=this['editor'];_0x1248c4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1bfa58=>{const _0x2827a9=_0x1248c4['commands']['get']('uploadcareImageEdit'),_0x5f4910=new _0x24d558(_0x1bfa58),t=_0x1bfa58['t'];return _0x5f4910['set']({'icon':_0x431fa6,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5f4910['bind']('isEnabled')['to'](_0x2827a9),_0x5f4910['bind']('isOn')['to'](_0x2827a9,'isActive'),this['listenTo'](_0x5f4910,'execute',()=>{_0x1248c4['execute']('uploadcareImageEdit'),_0x1248c4['editing']['view']['focus']();}),_0x5f4910;}),this['_initConfig']();}['_initConfig'](){const _0x56b9b9=_0xb470d0(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x56b9b9),this['listenTo'](this['editor'],'destroy',()=>{_0x56b9b9['remove']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d394b=_0x4704;(function(_0xf33b8f,_0x154392){const _0x1b69ed=_0x4704,_0x136c7b=_0xf33b8f();while(!![]){try{const _0x397e9c=-parseInt(_0x1b69ed(0x19b))/0x1+parseInt(_0x1b69ed(0x1a9))/0x2*(parseInt(_0x1b69ed(0x1ad))/0x3)+parseInt(_0x1b69ed(0x1b2))/0x4*(parseInt(_0x1b69ed(0x19c))/0x5)+parseInt(_0x1b69ed(0x1a4))/0x6+parseInt(_0x1b69ed(0x1a7))/0x7+-parseInt(_0x1b69ed(0x19f))/0x8+-parseInt(_0x1b69ed(0x1a0))/0x9*(parseInt(_0x1b69ed(0x19e))/0xa);if(_0x397e9c===_0x154392)break;else _0x136c7b['push'](_0x136c7b['shift']());}catch(_0x2e5e5d){_0x136c7b['push'](_0x136c7b['shift']());}}}(_0x1f22,0x309c9));function _0x1f22(){const _0x2f2c1d=['removeAttribute','55180qXGMDV','10344cVabus','540pOkVOI','isEnabled','refresh','imageInline','767724FeWXJe','change','srcset','1698585DbjsEd','imageBlock','67274sbaGag','selection','sizes','editor','9luGHND','document','getSelectedElement','setAttributes','execute','164uDWxbI','element','model','146961CZvWGE','25235ufWSht'];_0x1f22=function(){return _0x2f2c1d;};return _0x1f22();}function _0x4704(_0x35fc99,_0x439012){const _0x1f2282=_0x1f22();return _0x4704=function(_0x4704c6,_0x413e93){_0x4704c6=_0x4704c6-0x19b;let _0x408772=_0x1f2282[_0x4704c6];return _0x408772;},_0x4704(_0x35fc99,_0x439012);}import{Command as _0x35d488}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x35d488{[_0x4d394b(0x1a2)](){const _0xa627ce=_0x4d394b,_0x15f28e=this[_0xa627ce(0x1ac)][_0xa627ce(0x1b4)][_0xa627ce(0x1ae)][_0xa627ce(0x1aa)][_0xa627ce(0x1af)]();this[_0xa627ce(0x1a1)]=Boolean(_0x15f28e&&(_0x15f28e['is'](_0xa627ce(0x1b3),_0xa627ce(0x1a8))||_0x15f28e['is'](_0xa627ce(0x1b3),_0xa627ce(0x1a3))));}[_0x4d394b(0x1b1)](_0x194633){const _0x36e32d=_0x4d394b,_0x2b1344=this[_0x36e32d(0x1ac)][_0x36e32d(0x1b4)][_0x36e32d(0x1ae)][_0x36e32d(0x1aa)][_0x36e32d(0x1af)]();this[_0x36e32d(0x1ac)][_0x36e32d(0x1b4)][_0x36e32d(0x1a5)](_0x586f6a=>{const _0x278244=_0x36e32d;_0x586f6a[_0x278244(0x1b0)](_0x194633,_0x2b1344),_0x586f6a[_0x278244(0x19d)](_0x278244(0x1a6),_0x2b1344),_0x586f6a[_0x278244(0x19d)](_0x278244(0x1ab),_0x2b1344);});}}
23
+ const _0x43176e=_0x3a0c;(function(_0x23e7cd,_0x498958){const _0x751918=_0x3a0c,_0x56fbc0=_0x23e7cd();while(!![]){try{const _0x1f4a2d=parseInt(_0x751918(0x93))/0x1+-parseInt(_0x751918(0x8c))/0x2+-parseInt(_0x751918(0x8d))/0x3+parseInt(_0x751918(0x92))/0x4+-parseInt(_0x751918(0x82))/0x5*(-parseInt(_0x751918(0x86))/0x6)+parseInt(_0x751918(0x8e))/0x7+-parseInt(_0x751918(0x91))/0x8*(parseInt(_0x751918(0x88))/0x9);if(_0x1f4a2d===_0x498958)break;else _0x56fbc0['push'](_0x56fbc0['shift']());}catch(_0x20824a){_0x56fbc0['push'](_0x56fbc0['shift']());}}}(_0x3bc9,0x98aec));function _0x3a0c(_0x5795b4,_0x143175){const _0x3bc9c7=_0x3bc9();return _0x3a0c=function(_0x3a0cdf,_0x8c39cb){_0x3a0cdf=_0x3a0cdf-0x81;let _0x3bf0df=_0x3bc9c7[_0x3a0cdf];return _0x3bf0df;},_0x3a0c(_0x5795b4,_0x143175);}import{Command as _0x102017}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x102017{[_0x43176e(0x8a)](){const _0x169cfa=_0x43176e,_0x45657a=this[_0x169cfa(0x87)][_0x169cfa(0x99)][_0x169cfa(0x96)][_0x169cfa(0x83)][_0x169cfa(0x89)]();this[_0x169cfa(0x8f)]=Boolean(_0x45657a&&(_0x45657a['is'](_0x169cfa(0x97),_0x169cfa(0x8b))||_0x45657a['is'](_0x169cfa(0x97),_0x169cfa(0x90))));}[_0x43176e(0x95)](_0x4b69e1){const _0x58fe97=_0x43176e,_0x34cad7=this[_0x58fe97(0x87)][_0x58fe97(0x99)][_0x58fe97(0x96)][_0x58fe97(0x83)][_0x58fe97(0x89)]();this[_0x58fe97(0x87)][_0x58fe97(0x99)][_0x58fe97(0x94)](_0x42d55b=>{const _0x5030ae=_0x58fe97;_0x42d55b[_0x5030ae(0x84)](_0x4b69e1,_0x34cad7),_0x42d55b[_0x5030ae(0x98)](_0x5030ae(0x81),_0x34cad7),_0x42d55b[_0x5030ae(0x98)](_0x5030ae(0x85),_0x34cad7);});}}function _0x3bc9(){const _0x2b7424=['1153638yxpdxC','1437039gueLqE','5167281jJRSzp','isEnabled','imageInline','4967832BLtAVy','2377804DZmziB','902179YzmDXz','change','execute','document','element','removeAttribute','model','srcset','15315yYbese','selection','setAttributes','sizes','132rQVvgI','editor','9YuAAbe','getSelectedElement','refresh','imageBlock'];_0x3bc9=function(){return _0x2b7424;};return _0x3bc9();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x16428f=_0x4c6f;(function(_0x10e3e8,_0x39b938){var _0x5cb92e=_0x4c6f,_0x91841=_0x10e3e8();while(!![]){try{var _0x38b5f2=parseInt(_0x5cb92e(0x144))/0x1+-parseInt(_0x5cb92e(0x142))/0x2+-parseInt(_0x5cb92e(0x146))/0x3+-parseInt(_0x5cb92e(0x148))/0x4*(-parseInt(_0x5cb92e(0x13e))/0x5)+-parseInt(_0x5cb92e(0x13d))/0x6+-parseInt(_0x5cb92e(0x141))/0x7*(-parseInt(_0x5cb92e(0x13b))/0x8)+-parseInt(_0x5cb92e(0x13f))/0x9*(-parseInt(_0x5cb92e(0x13a))/0xa);if(_0x38b5f2===_0x39b938)break;else _0x91841['push'](_0x91841['shift']());}catch(_0x38e263){_0x91841['push'](_0x91841['shift']());}}}(_0x42d7,0x927df));import{Plugin as _0x9c8fef}from'ckeditor5/src/core.js';function _0x42d7(){var _0x42e3b6=['877640EtSYsC','isOfficialPlugin','2781600jkCvFu','1351555NcRKwY','15013395VmWqwx','pluginName','7BpaxyP','1239622rXSFlo','isPremiumPlugin','212128cSxDKq','requires','1730571vuzfEf','UploadcareImageEdit','4BSEjJy','10WvIaMI'];_0x42d7=function(){return _0x42e3b6;};return _0x42d7();}import{UploadcareImageEditEditing as _0x1217c3}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x4c6f(_0x2d432e,_0x3622e4){var _0x42d7ac=_0x42d7();return _0x4c6f=function(_0x4c6ff3,_0x3daea8){_0x4c6ff3=_0x4c6ff3-0x13a;var _0x28c67e=_0x42d7ac[_0x4c6ff3];return _0x28c67e;},_0x4c6f(_0x2d432e,_0x3622e4);}import{UploadcareImageEditUI as _0x4c5ccb}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x9c8fef{static get[_0x16428f(0x140)](){var _0x2e0f9f=_0x16428f;return _0x2e0f9f(0x147);}static get[_0x16428f(0x145)](){return[_0x1217c3,_0x4c5ccb];}static get[_0x16428f(0x13c)](){return!0x0;}static get[_0x16428f(0x143)](){return!0x0;}}
23
+ var _0x3ef8c2=_0x4e13;(function(_0x4b23fb,_0xc1855d){var _0x533f0e=_0x4e13,_0x7fd781=_0x4b23fb();while(!![]){try{var _0x3071dc=parseInt(_0x533f0e(0x1e3))/0x1*(-parseInt(_0x533f0e(0x1e0))/0x2)+-parseInt(_0x533f0e(0x1e1))/0x3+-parseInt(_0x533f0e(0x1e5))/0x4*(-parseInt(_0x533f0e(0x1dc))/0x5)+-parseInt(_0x533f0e(0x1e9))/0x6*(parseInt(_0x533f0e(0x1e7))/0x7)+-parseInt(_0x533f0e(0x1e4))/0x8*(parseInt(_0x533f0e(0x1df))/0x9)+-parseInt(_0x533f0e(0x1e8))/0xa+-parseInt(_0x533f0e(0x1ea))/0xb*(-parseInt(_0x533f0e(0x1dd))/0xc);if(_0x3071dc===_0xc1855d)break;else _0x7fd781['push'](_0x7fd781['shift']());}catch(_0x38bf9c){_0x7fd781['push'](_0x7fd781['shift']());}}}(_0x4058,0x97b80));function _0x4058(){var _0x171d41=['49356Xjtpzr','UploadcareImageEdit','3710439uABmAw','1543358QafPWX','3524286wkHLfE','pluginName','1FfDHuU','16cqMqZd','212sKrtSN','isPremiumPlugin','2479827TVyMye','8349590hZcNuf','12ofgGAV','13013xGPvII','requires','isOfficialPlugin','6625QTMxVT'];_0x4058=function(){return _0x171d41;};return _0x4058();}function _0x4e13(_0x450747,_0x1759e7){var _0x40586c=_0x4058();return _0x4e13=function(_0x4e1373,_0x566684){_0x4e1373=_0x4e1373-0x1dc;var _0x436a85=_0x40586c[_0x4e1373];return _0x436a85;},_0x4e13(_0x450747,_0x1759e7);}import{Plugin as _0x1ae7f8}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0xa62120}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x3d1692}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x1ae7f8{static get[_0x3ef8c2(0x1e2)](){var _0x362784=_0x3ef8c2;return _0x362784(0x1de);}static get[_0x3ef8c2(0x1eb)](){return[_0xa62120,_0x3d1692];}static get[_0x3ef8c2(0x1ec)](){return!0x0;}static get[_0x3ef8c2(0x1e6)](){return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xbe1e54=_0xbfba;(function(_0x3e5fa8,_0x38e794){const _0x13df45=_0xbfba,_0x45011e=_0x3e5fa8();while(!![]){try{const _0x4922a1=parseInt(_0x13df45(0x1bb))/0x1+parseInt(_0x13df45(0x1ac))/0x2+-parseInt(_0x13df45(0x1a6))/0x3+parseInt(_0x13df45(0x1e1))/0x4*(-parseInt(_0x13df45(0x1e2))/0x5)+parseInt(_0x13df45(0x1b5))/0x6+-parseInt(_0x13df45(0x1a7))/0x7+parseInt(_0x13df45(0x1bc))/0x8*(parseInt(_0x13df45(0x1e3))/0x9);if(_0x4922a1===_0x38e794)break;else _0x45011e['push'](_0x45011e['shift']());}catch(_0x238b4d){_0x45011e['push'](_0x45011e['shift']());}}}(_0x5416,0xed676));import{Plugin as _0x2467db}from'ckeditor5/src/core.js';function _0x5416(){const _0x4f337c=['registerIntegration','Local','editor','text','uploadcare.uploader.sourceList','Facebook','isOfficialPlugin','map','evaluationLimit','Uploadcare','isImageSelected','forEach','Insert','Replace','push','config','2470164AMdPpi','15LdAmEj','46881YBoxLv','get','reduce','expired','shortText','_normalizeConfigSourceList','assetManager','has','destroy','uploadcareLicenseKeyDomainLimit','_showLicenseError','_createDropdownButtons','uploadcareLicenseKeyExpired','_licenseKeyCheckInterval','pluginName','ImageInsertUI','init','5595921rPrqiX','3606764BwFlyM','locale','uploadcareLicenseKeyValid','upload','OneDrive','28500zsOQIr','_createButton','UploadcareUI','uploadcareLicenseKeyNotAllowed','execute','plugins','label','_createToolbarButton','featureNotAllowed','1072164jHzojz','bind','licenseKey','uploadcare','icon','tooltip','1413225PJhjTt','5528jJBEmP','invalid','type','domainLimit','uploadcareLicenseKeyInvalid','usageLimit','uploadcareLicenseKeyEvaluationLimit','GPhotos','Dropbox','isPremiumPlugin','uploadcareLicenseKeyUsageLimit','url','afterInit','URL','_getIntegrationKey','commands','_createMenuBarButtons','GDrive','isEnabled','entries','withText'];_0x5416=function(){return _0x4f337c;};return _0x5416();}function _0xbfba(_0x2a1369,_0x37ee29){const _0x541605=_0x5416();return _0xbfba=function(_0xbfba7d,_0x4501c8){_0xbfba7d=_0xbfba7d-0x1a6;let _0x36f339=_0x541605[_0xbfba7d];return _0x36f339;},_0xbfba(_0x2a1369,_0x37ee29);}import{IconDropbox as _0x1ef78e,IconFacebook as _0x1ad5e7,IconGoogleDrive as _0x52f502,IconGooglePhotos as _0x2cb608,IconUploadcareImageUpload as _0x37dbd5,IconUploadcareLink as _0x4c8b51,IconOneDrive as _0x2f3774}from'ckeditor5/src/icons.js';import{ButtonView as _0x178d47,MenuBarMenuListItemButtonView as _0x26eed5}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x51582c}from'./uploadcareconfig.js';import{getTranslation as _0x1a8ce2}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 class UploadcareUI extends _0x2467db{[_0xbe1e54(0x1b7)];[_0xbe1e54(0x1f0)];static get[_0xbe1e54(0x1f1)](){const _0x1b510e=_0xbe1e54;return _0x1b510e(0x1ae);}static get[_0xbe1e54(0x1d7)](){return!0x0;}static get[_0xbe1e54(0x1c5)](){return!0x0;}[_0xbe1e54(0x1f3)](){const _0x2dc3aa=_0xbe1e54;this[_0x2dc3aa(0x1b7)]=this[_0x2dc3aa(0x1d3)][_0x2dc3aa(0x1e0)][_0x2dc3aa(0x1e4)](_0x2dc3aa(0x1b7));const _0x125fc0=this[_0x2dc3aa(0x1d3)];this[_0x2dc3aa(0x1f0)]=setInterval(()=>{const _0x2976ca=_0x2dc3aa;let _0x378d40;for(const _0x13151e in _0x125fc0){const _0x59dfe3=_0x13151e,_0x626540=_0x125fc0[_0x59dfe3];if(_0x2976ca(0x1a9)==_0x626540||_0x2976ca(0x1c0)==_0x626540||_0x2976ca(0x1ef)==_0x626540||_0x2976ca(0x1ec)==_0x626540||_0x2976ca(0x1af)==_0x626540||_0x2976ca(0x1c2)==_0x626540||_0x2976ca(0x1c6)==_0x626540){delete _0x125fc0[_0x59dfe3],_0x378d40=_0x626540,clearInterval(this[_0x2976ca(0x1f0)]),this[_0x2976ca(0x1f0)]=void 0x0;break;}}_0x2976ca(0x1c0)==_0x378d40&&_0x125fc0[_0x2976ca(0x1ed)](_0x2976ca(0x1bd)),_0x2976ca(0x1ef)==_0x378d40&&_0x125fc0[_0x2976ca(0x1ed)](_0x2976ca(0x1e6)),_0x2976ca(0x1ec)==_0x378d40&&_0x125fc0[_0x2976ca(0x1ed)](_0x2976ca(0x1bf)),_0x2976ca(0x1af)==_0x378d40&&_0x125fc0[_0x2976ca(0x1ed)](_0x2976ca(0x1b4),_0x2976ca(0x1da)),_0x2976ca(0x1c2)==_0x378d40&&_0x125fc0[_0x2976ca(0x1ed)](_0x2976ca(0x1d9)),_0x2976ca(0x1c6)==_0x378d40&&_0x125fc0[_0x2976ca(0x1ed)](_0x2976ca(0x1c1));},0x3e8);}[_0xbe1e54(0x1c8)](){const _0xfa816e=_0xbe1e54,{editor:_0x22a20b}=this,_0xeb4662=_0x22a20b[_0xfa816e(0x1cb)][_0xfa816e(0x1e4)](_0xfa816e(0x1b8));if(!_0xeb4662)return;const _0x41904e=this[_0xfa816e(0x1e8)](_0x22a20b[_0xfa816e(0x1e0)][_0xfa816e(0x1e4)](_0xfa816e(0x1d5)))[_0xfa816e(0x1e5)]((_0x5b5235,_0x2ac61d)=>{const _0x52dd72=_0xfa816e,_0x2fca84=this[_0x52dd72(0x1ca)](_0x2ac61d[_0x52dd72(0x1be)]);return _0x5b5235[_0x2fca84]||(_0x5b5235[_0x2fca84]=[]),_0x5b5235[_0x2fca84][_0x52dd72(0x1df)](_0x2ac61d),_0x5b5235;},{});_0x22a20b[_0xfa816e(0x1b1)][_0xfa816e(0x1ea)](_0xfa816e(0x1f2))&&_0x22a20b[_0xfa816e(0x1cb)][_0xfa816e(0x1e4)](_0xfa816e(0x1b8))&&Object[_0xfa816e(0x1cf)](_0x41904e)[_0xfa816e(0x1dc)](([_0x4a5314,_0x43d2f2])=>{const _0x11e633=_0xfa816e;_0x22a20b[_0x11e633(0x1b1)][_0x11e633(0x1e4)](_0x11e633(0x1f2))[_0x11e633(0x1d1)]({'name':_0x4a5314,'observable':()=>_0xeb4662,'buttonViewCreator':()=>this[_0x11e633(0x1b3)](_0x43d2f2),'formViewCreator':()=>this[_0x11e633(0x1ee)](_0x43d2f2),'menuBarButtonViewCreator':()=>this[_0x11e633(0x1cc)](_0x43d2f2),'override':_0x11e633(0x1e9)!==_0x4a5314});});}[_0xbe1e54(0x1eb)](){const _0x27aa82=_0xbe1e54;super[_0x27aa82(0x1eb)](),this[_0x27aa82(0x1f0)]&&clearInterval(this[_0x27aa82(0x1f0)]);}[_0xbe1e54(0x1e8)](_0xb14922){const _0x38d654=_0xbe1e54,{locale:_0x1cfa50}=this[_0x38d654(0x1d3)];return _0xb14922[_0x38d654(0x1d8)](_0x573a8c=>{const _0xde861e=_0x38d654,_0x8d4208=_0x1a8ce2(_0x1cfa50,_0x573a8c,_0xde861e(0x1dd));switch(_0x573a8c){case _0x51582c[_0xde861e(0x1d2)]:return{'icon':_0x37dbd5,'type':_0x51582c[_0xde861e(0x1d2)],..._0x8d4208};case _0x51582c[_0xde861e(0x1c9)]:return{'icon':_0x4c8b51,'type':_0x51582c[_0xde861e(0x1c9)],..._0x8d4208};case _0x51582c[_0xde861e(0x1c4)]:return{'icon':_0x1ef78e,'type':_0x51582c[_0xde861e(0x1c4)],..._0x8d4208};case _0x51582c[_0xde861e(0x1d6)]:return{'icon':_0x1ad5e7,'type':_0x51582c[_0xde861e(0x1d6)],..._0x8d4208};case _0x51582c[_0xde861e(0x1cd)]:return{'icon':_0x52f502,'type':_0x51582c[_0xde861e(0x1cd)],..._0x8d4208};case _0x51582c[_0xde861e(0x1c3)]:return{'icon':_0x2cb608,'type':_0x51582c[_0xde861e(0x1c3)],..._0x8d4208};case _0x51582c[_0xde861e(0x1ab)]:return{'icon':_0x2f3774,'type':_0x51582c[_0xde861e(0x1ab)],..._0x8d4208};}});}[_0xbe1e54(0x1ca)](_0x7d7864){const _0x5b954d=_0xbe1e54;switch(_0x7d7864){case _0x51582c[_0x5b954d(0x1d2)]:return _0x5b954d(0x1aa);case _0x51582c[_0x5b954d(0x1c9)]:return _0x5b954d(0x1c7);default:return _0x5b954d(0x1e9);}}[_0xbe1e54(0x1ad)](_0x48dc5a,_0x17f274){const _0x5a8ffb=_0xbe1e54,_0x5525b7=this[_0x5a8ffb(0x1d3)],_0x33c6dc=new _0x48dc5a(_0x5525b7[_0x5a8ffb(0x1a8)]),_0x423da1=_0x5525b7[_0x5a8ffb(0x1cb)][_0x5a8ffb(0x1e4)](_0x5a8ffb(0x1b8));return _0x33c6dc[_0x5a8ffb(0x1b6)](_0x5a8ffb(0x1ce))['to'](_0x423da1),_0x33c6dc['on'](_0x5a8ffb(0x1b0),()=>{const _0x2df557=_0x5a8ffb;_0x423da1[_0x2df557(0x1b0)](_0x17f274);}),_0x33c6dc;}[_0xbe1e54(0x1b3)](_0x4da92f){const _0x388bb6=_0xbe1e54,{locale:_0x4d5889}=this[_0x388bb6(0x1d3)],_0x388779=this[_0x388bb6(0x1d3)][_0x388bb6(0x1b1)][_0x388bb6(0x1e4)](_0x388bb6(0x1f2)),_0x265a6c=_0x4da92f[0x0],_0x3485f1=this[_0x388bb6(0x1ad)](_0x178d47,_0x265a6c[_0x388bb6(0x1be)]);return _0x3485f1[_0x388bb6(0x1b9)]=_0x265a6c[_0x388bb6(0x1b9)],_0x3485f1[_0x388bb6(0x1b6)](_0x388bb6(0x1b2))['to'](_0x388779,_0x388bb6(0x1db),_0x25ab5f=>_0x1a8ce2(_0x4d5889,_0x265a6c[_0x388bb6(0x1be)],_0x25ab5f?_0x388bb6(0x1de):_0x388bb6(0x1dd))[_0x388bb6(0x1d4)]),_0x3485f1[_0x388bb6(0x1ba)]=!0x0,_0x3485f1;}[_0xbe1e54(0x1ee)](_0x593491){const _0x2bd8b3=_0xbe1e54,{locale:_0x1fdb14}=this[_0x2bd8b3(0x1d3)],_0x4a76ad=this[_0x2bd8b3(0x1d3)][_0x2bd8b3(0x1b1)][_0x2bd8b3(0x1e4)](_0x2bd8b3(0x1f2));return _0x593491[_0x2bd8b3(0x1d8)](_0x43cd72=>{const _0x12487d=_0x2bd8b3,_0x189cdc=this[_0x12487d(0x1ad)](_0x178d47,_0x43cd72[_0x12487d(0x1be)]);return _0x189cdc[_0x12487d(0x1d0)]=!0x0,_0x189cdc[_0x12487d(0x1b9)]=_0x43cd72[_0x12487d(0x1b9)],_0x189cdc[_0x12487d(0x1b6)](_0x12487d(0x1b2))['to'](_0x4a76ad,_0x12487d(0x1db),_0x520777=>_0x1a8ce2(_0x1fdb14,_0x43cd72[_0x12487d(0x1be)],_0x520777?_0x12487d(0x1de):_0x12487d(0x1dd))[_0x12487d(0x1d4)]),_0x189cdc;});}[_0xbe1e54(0x1cc)](_0x1f6353){const _0x458692=_0xbe1e54;return _0x1f6353[_0x458692(0x1d8)](_0x5867cf=>{const _0x3427ee=_0x458692,_0x4d6ecf=this[_0x3427ee(0x1ad)](_0x26eed5,_0x5867cf[_0x3427ee(0x1be)]);return _0x4d6ecf[_0x3427ee(0x1b9)]=_0x5867cf[_0x3427ee(0x1b9)],_0x4d6ecf[_0x3427ee(0x1b2)]=_0x5867cf[_0x3427ee(0x1e7)],_0x4d6ecf;});}}
23
+ const _0x4d3f76=_0x4850;(function(_0x3abbe5,_0x3b1b86){const _0x4e5493=_0x4850,_0x31916a=_0x3abbe5();while(!![]){try{const _0x542a58=parseInt(_0x4e5493(0xfe))/0x1*(-parseInt(_0x4e5493(0xe1))/0x2)+-parseInt(_0x4e5493(0xfb))/0x3*(parseInt(_0x4e5493(0xe0))/0x4)+parseInt(_0x4e5493(0x115))/0x5*(-parseInt(_0x4e5493(0xf3))/0x6)+-parseInt(_0x4e5493(0x104))/0x7+parseInt(_0x4e5493(0xff))/0x8+-parseInt(_0x4e5493(0x101))/0x9+parseInt(_0x4e5493(0xeb))/0xa*(parseInt(_0x4e5493(0xcd))/0xb);if(_0x542a58===_0x3b1b86)break;else _0x31916a['push'](_0x31916a['shift']());}catch(_0x3570ea){_0x31916a['push'](_0x31916a['shift']());}}}(_0x8604,0xe0763));import{Plugin as _0x332a08}from'ckeditor5/src/core.js';function _0x8604(){const _0x1fe3e9=['icon','registerIntegration','type','4036VYfkfj','3023528uQrNPC','OneDrive','has','entries','get','pluginName','afterInit','GPhotos','text','push','20OBCSKd','_normalizeConfigSourceList','featureNotAllowed','assetManager','tooltip','usageLimit','reduce','commands','18DIRSch','_createMenuBarButtons','uploadcareLicenseKeyUsageLimit','licenseKey','uploadcare.uploader.sourceList','destroy','uploadcareLicenseKeyNotAllowed','execute','2802VQOAJF','upload','_createToolbarButton','1qXbBso','13963032CiQOJw','uploadcareLicenseKeyInvalid','15273342xuRMot','Insert','domainLimit','11009530WBTnEp','uploadcare','isEnabled','init','_createDropdownButtons','invalid','expired','plugins','_createButton','uploadcareLicenseKeyValid','Replace','forEach','withText','_licenseKeyCheckInterval','config','locale','Uploadcare','2889860tlEMKt','shortText','Facebook','uploadcareLicenseKeyExpired','UploadcareUI','evaluationLimit','Local','isOfficialPlugin','36475615qjzMUH','isImageSelected','bind','map','URL','label','uploadcareLicenseKeyDomainLimit','_getIntegrationKey','url','_showLicenseError','GDrive','Dropbox','uploadcareLicenseKeyEvaluationLimit','ImageInsertUI','isPremiumPlugin','editor'];_0x8604=function(){return _0x1fe3e9;};return _0x8604();}function _0x4850(_0x1a111c,_0x413d9d){const _0x860403=_0x8604();return _0x4850=function(_0x485054,_0x21e818){_0x485054=_0x485054-0xcd;let _0x32bad1=_0x860403[_0x485054];return _0x32bad1;},_0x4850(_0x1a111c,_0x413d9d);}import{IconDropbox as _0xe3fd77,IconFacebook as _0x4b03db,IconGoogleDrive as _0x2e2e90,IconGooglePhotos as _0x4f933e,IconUploadcareImageUpload as _0x53a9c8,IconUploadcareLink as _0x26d40f,IconOneDrive as _0x42778b}from'ckeditor5/src/icons.js';import{ButtonView as _0x4fadfe,MenuBarMenuListItemButtonView as _0x3404bd}from'ckeditor5/src/ui.js';import{UploadcareSource as _0xa0f56f}from'./uploadcareconfig.js';import{getTranslation as _0x51bb86}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 class UploadcareUI extends _0x332a08{[_0x4d3f76(0xf6)];[_0x4d3f76(0x111)];static get[_0x4d3f76(0xe6)](){const _0x484428=_0x4d3f76;return _0x484428(0x119);}static get[_0x4d3f76(0x11c)](){return!0x0;}static get[_0x4d3f76(0xdb)](){return!0x0;}[_0x4d3f76(0x107)](){const _0x27a8a2=_0x4d3f76;this[_0x27a8a2(0xf6)]=this[_0x27a8a2(0xdc)][_0x27a8a2(0x112)][_0x27a8a2(0xe5)](_0x27a8a2(0xf6));const _0x21f2f7=this[_0x27a8a2(0xdc)];this[_0x27a8a2(0x111)]=setInterval(()=>{const _0x54c773=_0x27a8a2;let _0x2f6ed5;for(const _0x3bb7c7 in _0x21f2f7){const _0x43f10f=_0x3bb7c7,_0x4dbc10=_0x21f2f7[_0x43f10f];if(_0x54c773(0x10d)==_0x4dbc10||_0x54c773(0x100)==_0x4dbc10||_0x54c773(0x118)==_0x4dbc10||_0x54c773(0xd3)==_0x4dbc10||_0x54c773(0xf9)==_0x4dbc10||_0x54c773(0xd9)==_0x4dbc10||_0x54c773(0xf5)==_0x4dbc10){delete _0x21f2f7[_0x43f10f],_0x2f6ed5=_0x4dbc10,clearInterval(this[_0x54c773(0x111)]),this[_0x54c773(0x111)]=void 0x0;break;}}_0x54c773(0x100)==_0x2f6ed5&&_0x21f2f7[_0x54c773(0xd6)](_0x54c773(0x109)),_0x54c773(0x118)==_0x2f6ed5&&_0x21f2f7[_0x54c773(0xd6)](_0x54c773(0x10a)),_0x54c773(0xd3)==_0x2f6ed5&&_0x21f2f7[_0x54c773(0xd6)](_0x54c773(0x103)),_0x54c773(0xf9)==_0x2f6ed5&&_0x21f2f7[_0x54c773(0xd6)](_0x54c773(0xed),_0x54c773(0x114)),_0x54c773(0xd9)==_0x2f6ed5&&_0x21f2f7[_0x54c773(0xd6)](_0x54c773(0x11a)),_0x54c773(0xf5)==_0x2f6ed5&&_0x21f2f7[_0x54c773(0xd6)](_0x54c773(0xf0));},0x3e8);}[_0x4d3f76(0xe7)](){const _0x4eca70=_0x4d3f76,{editor:_0x51d57b}=this,_0x3b701d=_0x51d57b[_0x4eca70(0xf2)][_0x4eca70(0xe5)](_0x4eca70(0x105));if(!_0x3b701d)return;const _0x3d4fc6=this[_0x4eca70(0xec)](_0x51d57b[_0x4eca70(0x112)][_0x4eca70(0xe5)](_0x4eca70(0xf7)))[_0x4eca70(0xf1)]((_0x1b6262,_0x1ce1e9)=>{const _0x494af9=_0x4eca70,_0x4e50c5=this[_0x494af9(0xd4)](_0x1ce1e9[_0x494af9(0xdf)]);return _0x1b6262[_0x4e50c5]||(_0x1b6262[_0x4e50c5]=[]),_0x1b6262[_0x4e50c5][_0x494af9(0xea)](_0x1ce1e9),_0x1b6262;},{});_0x51d57b[_0x4eca70(0x10b)][_0x4eca70(0xe3)](_0x4eca70(0xda))&&_0x51d57b[_0x4eca70(0xf2)][_0x4eca70(0xe5)](_0x4eca70(0x105))&&Object[_0x4eca70(0xe4)](_0x3d4fc6)[_0x4eca70(0x10f)](([_0xe71794,_0x5eb65c])=>{const _0x210eec=_0x4eca70;_0x51d57b[_0x210eec(0x10b)][_0x210eec(0xe5)](_0x210eec(0xda))[_0x210eec(0xde)]({'name':_0xe71794,'observable':()=>_0x3b701d,'buttonViewCreator':()=>this[_0x210eec(0xfd)](_0x5eb65c),'formViewCreator':()=>this[_0x210eec(0x108)](_0x5eb65c),'menuBarButtonViewCreator':()=>this[_0x210eec(0xf4)](_0x5eb65c),'override':_0x210eec(0xee)!==_0xe71794});});}[_0x4d3f76(0xf8)](){const _0x3fd1f0=_0x4d3f76;super[_0x3fd1f0(0xf8)](),this[_0x3fd1f0(0x111)]&&clearInterval(this[_0x3fd1f0(0x111)]);}[_0x4d3f76(0xec)](_0x254b4b){const _0x5bb63c=_0x4d3f76,{locale:_0x4889c8}=this[_0x5bb63c(0xdc)];return _0x254b4b[_0x5bb63c(0xd0)](_0x21999e=>{const _0x97c5ed=_0x5bb63c,_0x1838cd=_0x51bb86(_0x4889c8,_0x21999e,_0x97c5ed(0x102));switch(_0x21999e){case _0xa0f56f[_0x97c5ed(0x11b)]:return{'icon':_0x53a9c8,'type':_0xa0f56f[_0x97c5ed(0x11b)],..._0x1838cd};case _0xa0f56f[_0x97c5ed(0xd1)]:return{'icon':_0x26d40f,'type':_0xa0f56f[_0x97c5ed(0xd1)],..._0x1838cd};case _0xa0f56f[_0x97c5ed(0xd8)]:return{'icon':_0xe3fd77,'type':_0xa0f56f[_0x97c5ed(0xd8)],..._0x1838cd};case _0xa0f56f[_0x97c5ed(0x117)]:return{'icon':_0x4b03db,'type':_0xa0f56f[_0x97c5ed(0x117)],..._0x1838cd};case _0xa0f56f[_0x97c5ed(0xd7)]:return{'icon':_0x2e2e90,'type':_0xa0f56f[_0x97c5ed(0xd7)],..._0x1838cd};case _0xa0f56f[_0x97c5ed(0xe8)]:return{'icon':_0x4f933e,'type':_0xa0f56f[_0x97c5ed(0xe8)],..._0x1838cd};case _0xa0f56f[_0x97c5ed(0xe2)]:return{'icon':_0x42778b,'type':_0xa0f56f[_0x97c5ed(0xe2)],..._0x1838cd};}});}[_0x4d3f76(0xd4)](_0x1be8dd){const _0x2bee07=_0x4d3f76;switch(_0x1be8dd){case _0xa0f56f[_0x2bee07(0x11b)]:return _0x2bee07(0xfc);case _0xa0f56f[_0x2bee07(0xd1)]:return _0x2bee07(0xd5);default:return _0x2bee07(0xee);}}[_0x4d3f76(0x10c)](_0x1856f0,_0x555c3d){const _0x1cc3e7=_0x4d3f76,_0x428a0b=this[_0x1cc3e7(0xdc)],_0x1dd4c8=new _0x1856f0(_0x428a0b[_0x1cc3e7(0x113)]),_0x1e904d=_0x428a0b[_0x1cc3e7(0xf2)][_0x1cc3e7(0xe5)](_0x1cc3e7(0x105));return _0x1dd4c8[_0x1cc3e7(0xcf)](_0x1cc3e7(0x106))['to'](_0x1e904d),_0x1dd4c8['on'](_0x1cc3e7(0xfa),()=>{const _0x12559b=_0x1cc3e7;_0x1e904d[_0x12559b(0xfa)](_0x555c3d);}),_0x1dd4c8;}[_0x4d3f76(0xfd)](_0x57c1be){const _0x44cac7=_0x4d3f76,{locale:_0x1a5532}=this[_0x44cac7(0xdc)],_0x38fda7=this[_0x44cac7(0xdc)][_0x44cac7(0x10b)][_0x44cac7(0xe5)](_0x44cac7(0xda)),_0x4e33f5=_0x57c1be[0x0],_0x13b0d9=this[_0x44cac7(0x10c)](_0x4fadfe,_0x4e33f5[_0x44cac7(0xdf)]);return _0x13b0d9[_0x44cac7(0xdd)]=_0x4e33f5[_0x44cac7(0xdd)],_0x13b0d9[_0x44cac7(0xcf)](_0x44cac7(0xd2))['to'](_0x38fda7,_0x44cac7(0xce),_0x2dd509=>_0x51bb86(_0x1a5532,_0x4e33f5[_0x44cac7(0xdf)],_0x2dd509?_0x44cac7(0x10e):_0x44cac7(0x102))[_0x44cac7(0xe9)]),_0x13b0d9[_0x44cac7(0xef)]=!0x0,_0x13b0d9;}[_0x4d3f76(0x108)](_0x398d7a){const _0xe22998=_0x4d3f76,{locale:_0x110452}=this[_0xe22998(0xdc)],_0x5599c3=this[_0xe22998(0xdc)][_0xe22998(0x10b)][_0xe22998(0xe5)](_0xe22998(0xda));return _0x398d7a[_0xe22998(0xd0)](_0x25276d=>{const _0x348952=_0xe22998,_0x27ecc8=this[_0x348952(0x10c)](_0x4fadfe,_0x25276d[_0x348952(0xdf)]);return _0x27ecc8[_0x348952(0x110)]=!0x0,_0x27ecc8[_0x348952(0xdd)]=_0x25276d[_0x348952(0xdd)],_0x27ecc8[_0x348952(0xcf)](_0x348952(0xd2))['to'](_0x5599c3,_0x348952(0xce),_0x4cb0ff=>_0x51bb86(_0x110452,_0x25276d[_0x348952(0xdf)],_0x4cb0ff?_0x348952(0x10e):_0x348952(0x102))[_0x348952(0xe9)]),_0x27ecc8;});}[_0x4d3f76(0xf4)](_0x12aeab){const _0x182183=_0x4d3f76;return _0x12aeab[_0x182183(0xd0)](_0x5f34ab=>{const _0x27cb10=_0x182183,_0x1b46a9=this[_0x27cb10(0x10c)](_0x3404bd,_0x5f34ab[_0x27cb10(0xdf)]);return _0x1b46a9[_0x27cb10(0xdd)]=_0x5f34ab[_0x27cb10(0xdd)],_0x1b46a9[_0x27cb10(0xd2)]=_0x5f34ab[_0x27cb10(0x116)],_0x1b46a9;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x294856}from'ckeditor5/src/core.js';import{FileRepository as _0x265663}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x43f551}from'./uploadcareediting.js';import{UploadUtils as _0x2d4f49}from'./utils/uploadutils.js';import{getImageUrls as _0x2f837f}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x294856{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x265663,_0x43f551];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x478227=this['editor'];if(!!!_0x478227['config']['get']('uploadcare'))return;_0x478227['plugins']['get'](_0x265663)['createUploadAdapter']=_0x36b288=>new k(_0x36b288,_0x478227),_0x478227['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2026e5,{imageElement:_0x2c08b3,data:_0x4e4498})=>{_0x478227['model']['change'](_0x2a78a9=>{_0x2a78a9['setAttribute']('uploadcareImageId',_0x4e4498['uploadcareImageId'],_0x2c08b3);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x329101,_0x3aeaf2){this['loader']=_0x329101,this['editor']=_0x3aeaf2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3316b4=await this['loader']['file'];return _0x2d4f49['upload']({'file':_0x3316b4,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1740a4=>{_0x1740a4&&_0x1740a4['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1740a4['value']);}})['then'](async _0x368e79=>{const {imageFallbackUrl:_0x36cb2d,imageSources:_0x4b4daa}=_0x2f837f(_0x368e79['cdnUrl'],_0x368e79['imageInfo']['width']);return{'uploadcareImageId':_0x368e79['uuid'],'default':_0x36cb2d,'sources':_0x4b4daa};})['catch'](()=>{const _0x45af7f=t('Cannot\x20upload\x20file:')+('\x20'+_0x3316b4['name']+'.');return Promise['reject'](_0x45af7f);});}['abort'](){this['controller']['abort']();}}
23
+ import{Plugin as _0x499ea1}from'ckeditor5/src/core.js';import{FileRepository as _0x37dbb5}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x56a88f}from'./uploadcareediting.js';import{UploadUtils as _0x45db67}from'./utils/uploadutils.js';import{getImageUrls as _0x2f6ff5}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x499ea1{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x37dbb5,_0x56a88f];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x40db88=this['editor'];if(!!!_0x40db88['config']['get']('uploadcare'))return;_0x40db88['plugins']['get'](_0x37dbb5)['createUploadAdapter']=_0x526a74=>new k(_0x526a74,_0x40db88),_0x40db88['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1d338d,{imageElement:_0x343ac3,data:_0x13c396})=>{_0x40db88['model']['change'](_0x4e0d0e=>{_0x4e0d0e['setAttribute']('uploadcareImageId',_0x13c396['uploadcareImageId'],_0x343ac3);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x45d912,_0x1b16d1){this['loader']=_0x45d912,this['editor']=_0x1b16d1,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5c64b0=await this['loader']['file'];return _0x45db67['upload']({'file':_0x5c64b0,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0xaf7bd0=>{_0xaf7bd0&&_0xaf7bd0['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xaf7bd0['value']);}})['then'](async _0x2a04d8=>{const {imageFallbackUrl:_0x316ce2,imageSources:_0x4991a7}=_0x2f6ff5(_0x2a04d8['cdnUrl'],_0x2a04d8['imageInfo']['width']);return{'uploadcareImageId':_0x2a04d8['uuid'],'default':_0x316ce2,'sources':_0x4991a7};})['catch'](()=>{const _0x2de0cd=t('Cannot\x20upload\x20file:')+('\x20'+_0x5c64b0['name']+'.');return Promise['reject'](_0x2de0cd);});}['abort'](){this['controller']['abort']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{UploadcareSource as _0x347171}from'../uploadcareconfig.js';export function getTranslation(_0x30b418,_0x2787fb,_0x824224){const t=_0x30b418['t'],_0x1531b3=_0x30b418['t'];switch(_0x2787fb){case _0x347171['Local']:return{'text':_0x1531b3('Insert'===_0x824224?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1531b3('From\x20computer')};case _0x347171['URL']:return{'text':'Insert'===_0x824224?_0x1531b3('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1531b3('Via\x20URL')};case _0x347171['Dropbox']:return{'text':t('Insert'===_0x824224?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x347171['Facebook']:return{'text':t('Insert'===_0x824224?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x347171['GDrive']:return{'text':t('Insert'===_0x824224?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x347171['GPhotos']:return{'text':t('Insert'===_0x824224?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x347171['OneDrive']:return{'text':t('Insert'===_0x824224?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2787fb;}}
23
+ import{UploadcareSource as _0x40689a}from'../uploadcareconfig.js';export function getTranslation(_0x474313,_0x15e9e2,_0x59a9f4){const t=_0x474313['t'],_0x2ea0eb=_0x474313['t'];switch(_0x15e9e2){case _0x40689a['Local']:return{'text':_0x2ea0eb('Insert'===_0x59a9f4?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2ea0eb('From\x20computer')};case _0x40689a['URL']:return{'text':'Insert'===_0x59a9f4?_0x2ea0eb('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2ea0eb('Via\x20URL')};case _0x40689a['Dropbox']:return{'text':t('Insert'===_0x59a9f4?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x40689a['Facebook']:return{'text':t('Insert'===_0x59a9f4?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x40689a['GDrive']:return{'text':t('Insert'===_0x59a9f4?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x40689a['GPhotos']:return{'text':t('Insert'===_0x59a9f4?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x40689a['OneDrive']:return{'text':t('Insert'===_0x59a9f4?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x15e9e2;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x175155=_0x1545;function _0x1545(_0x105922,_0x422922){var _0x2e72c2=_0x2e72();return _0x1545=function(_0x15458a,_0x51505f){_0x15458a=_0x15458a-0x1d0;var _0x5d32b8=_0x2e72c2[_0x15458a];return _0x5d32b8;},_0x1545(_0x105922,_0x422922);}(function(_0x4d3b0f,_0x547b5b){var _0x4d471e=_0x1545,_0x3b0e3a=_0x4d3b0f();while(!![]){try{var _0x33429d=parseInt(_0x4d471e(0x1e2))/0x1*(-parseInt(_0x4d471e(0x1e0))/0x2)+parseInt(_0x4d471e(0x1d4))/0x3*(-parseInt(_0x4d471e(0x1d7))/0x4)+-parseInt(_0x4d471e(0x1de))/0x5+parseInt(_0x4d471e(0x1dc))/0x6+-parseInt(_0x4d471e(0x1e1))/0x7+parseInt(_0x4d471e(0x1d8))/0x8*(parseInt(_0x4d471e(0x1d5))/0x9)+parseInt(_0x4d471e(0x1d3))/0xa;if(_0x33429d===_0x547b5b)break;else _0x3b0e3a['push'](_0x3b0e3a['shift']());}catch(_0x1e8e38){_0x3b0e3a['push'](_0x3b0e3a['shift']());}}}(_0x2e72,0x82ad4));import{FocusTracker as _0x3dc317}from'ckeditor5/src/utils.js';import{View as _0x5528f2,FocusCycler as _0x4a1d61}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x5528f2{[_0x175155(0x1d0)];[_0x175155(0x1d1)];constructor(_0x543a98){var _0x329a4c=_0x175155;super(_0x543a98),this[_0x329a4c(0x1d0)]=new _0x3dc317(),this[_0x329a4c(0x1d1)]=new _0x4a1d61({'focusables':this[_0x329a4c(0x1dd)](),'focusTracker':this[_0x329a4c(0x1d0)]});}[_0x175155(0x1d2)](){var _0x2a1aa9=_0x175155;return{'tag':_0x2a1aa9(0x1d9),'attributes':{'aria-hidden':_0x2a1aa9(0x1df),'tabindex':'0'},'on':{'focus':this[_0x2a1aa9(0x1db)]['to'](()=>{var _0x2ef5b9=_0x2a1aa9;this[_0x2ef5b9(0x1d1)][_0x2ef5b9(0x1d6)](_0x2ef5b9(0x1da));})}};}}function _0x2e72(){var _0x180912=['focusCycler','getFocusableElement','19217350CDzbdr','38844osTaaR','446697rYUcLO','fire','268eCsZaQ','104KNFBdG','div','forwardCycle','bindTemplate','5836248sckPfn','createCollection','5348520hXIOMc','true','2VrCelr','4341449mYtlEL','446993fjpaQn','focusTracker'];_0x2e72=function(){return _0x180912;};return _0x2e72();}
23
+ var _0x238c5f=_0x59f5;(function(_0x57231e,_0x4ec3a0){var _0x15c6f3=_0x59f5,_0x45ce68=_0x57231e();while(!![]){try{var _0x1d21fd=parseInt(_0x15c6f3(0xf0))/0x1*(-parseInt(_0x15c6f3(0xeb))/0x2)+-parseInt(_0x15c6f3(0xf6))/0x3+parseInt(_0x15c6f3(0xf1))/0x4+parseInt(_0x15c6f3(0xea))/0x5*(-parseInt(_0x15c6f3(0xe8))/0x6)+-parseInt(_0x15c6f3(0xe7))/0x7+-parseInt(_0x15c6f3(0xee))/0x8*(-parseInt(_0x15c6f3(0xf7))/0x9)+parseInt(_0x15c6f3(0xf5))/0xa;if(_0x1d21fd===_0x4ec3a0)break;else _0x45ce68['push'](_0x45ce68['shift']());}catch(_0x22662d){_0x45ce68['push'](_0x45ce68['shift']());}}}(_0x293f,0x6a326));import{FocusTracker as _0x5d1f0d}from'ckeditor5/src/utils.js';import{View as _0x31312d,FocusCycler as _0x454e6e}from'ckeditor5/src/ui.js';function _0x59f5(_0x405d50,_0x191aee){var _0x293f37=_0x293f();return _0x59f5=function(_0x59f55d,_0x1bef28){_0x59f55d=_0x59f55d-0xe7;var _0x56c9f8=_0x293f37[_0x59f55d];return _0x56c9f8;},_0x59f5(_0x405d50,_0x191aee);}function _0x293f(){var _0x41ac60=['getFocusableElement','21413360RfnuLJ','2060907ohkhVx','387OiVasP','true','createCollection','5159217uzhnuP','1284AyJLyO','div','13885rWyQFx','2bpVsui','bindTemplate','focusCycler','61016IVEvGq','forwardCycle','82207OckCyq','264680WCjuRR','fire','focusTracker'];_0x293f=function(){return _0x41ac60;};return _0x293f();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x31312d{[_0x238c5f(0xf3)];[_0x238c5f(0xed)];constructor(_0x1594df){var _0xdbf9c6=_0x238c5f;super(_0x1594df),this[_0xdbf9c6(0xf3)]=new _0x5d1f0d(),this[_0xdbf9c6(0xed)]=new _0x454e6e({'focusables':this[_0xdbf9c6(0xf9)](),'focusTracker':this[_0xdbf9c6(0xf3)]});}[_0x238c5f(0xf4)](){var _0x4f2a2a=_0x238c5f;return{'tag':_0x4f2a2a(0xe9),'attributes':{'aria-hidden':_0x4f2a2a(0xf8),'tabindex':'0'},'on':{'focus':this[_0x4f2a2a(0xec)]['to'](()=>{var _0x6cec63=_0x4f2a2a;this[_0x6cec63(0xed)][_0x6cec63(0xf2)](_0x6cec63(0xef));})}};}}